Benchmarks#
Every estimator in mlsynth ships with at least one durable benchmark: a
self-contained case under benchmarks/cases/ that re-runs a published result
(or a reference implementation) and asserts the headline numbers against a fixed
tolerance. Where the Replications page tells the story of each
validation in prose, this page documents the machinery – the runnable cases
that guard against regressions as the library changes.
Each case is a small module exposing run() (which returns a dict of metrics,
driving everything through mlsynth’s public API) and EXPECTED (a map from
metric to a (value, tolerance) pair). The driver compares the two and a case
that cannot find its data or an optional reference dependency raises
BenchmarkSkipped instead of failing.
Running them#
python benchmarks/run_benchmarks.py --all # every pure-Python case
python benchmarks/run_benchmarks.py --case cwz_ttest # one case
python benchmarks/run_benchmarks.py --with-reference # also R / external cross-checks
The registry of cases lives in benchmarks/registry.py (the source of truth);
the catalogue below is grouped by validation path.
Validation paths#
Path A – reproduce the source paper’s empirical result on the original authors’ data.
Path B – reproduce the paper’s Monte Carlo / simulation table.
Path C – measure a property the paper proves about the estimator’s behaviour as the sample grows (a selection converging, a bound holding uniformly, an interval covering), against a population benchmark the design makes computable. See Theoretical properties.
Cross-validation – match an authoritative reference implementation (an R/MATLAB package or the authors’ own code); these skip themselves when the optional dependency is absent.
Every case, by path and data#
All 244 registered cases. paths is what the case
establishes and data is what it runs on; the two are independent, so
a cross-validation can sit on a generated panel and a simulation can be
calibrated from a real one.
A– empirical replication (78 cases)B– Monte Carlo / simulation (68 cases)C– theoretical property or design calibration (16 cases)X– cross-validation against a reference implementation (114 cases)
By data: 86 simulated, 141 empirical, 17 both – so 103 cases fit at least one generated panel.
This table is generated. To change a label, edit LABELS in
benchmarks/registry.py and run python tools/gen_benchmark_index.py;
benchmarks/tests/test_registry_labels.py fails if the two disagree.
case |
paths |
data |
|---|---|---|
|
X |
empirical |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
B |
both |
|
X |
empirical |
|
X |
empirical |
|
A X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
A |
empirical |
|
C |
simulated |
|
A |
empirical |
|
A |
empirical |
|
B X |
simulated |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
A X |
empirical |
|
A |
empirical |
|
X |
empirical |
|
B |
simulated |
|
X |
simulated |
|
A X |
empirical |
|
X |
both |
|
A |
empirical |
|
X |
empirical |
|
A X |
empirical |
|
C |
simulated |
|
B X |
simulated |
|
A |
empirical |
|
B |
simulated |
|
X |
empirical |
|
B |
simulated |
|
X |
empirical |
|
B |
simulated |
|
B |
simulated |
|
B |
both |
|
B |
simulated |
|
A |
empirical |
|
B |
simulated |
|
A X |
empirical |
|
X |
empirical |
|
X |
both |
|
X |
empirical |
|
B |
simulated |
|
X |
simulated |
|
X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
A B |
simulated |
|
A |
empirical |
|
A |
empirical |
|
A X |
empirical |
|
C |
simulated |
|
C |
simulated |
|
C |
simulated |
|
B |
simulated |
|
A X |
empirical |
|
B |
simulated |
|
B X |
simulated |
|
C |
empirical |
|
X |
simulated |
|
B |
simulated |
|
B |
simulated |
|
B |
simulated |
|
A |
empirical |
|
A |
empirical |
|
A |
empirical |
|
X |
simulated |
|
X |
empirical |
|
B |
simulated |
|
X |
empirical |
|
B X |
simulated |
|
C |
both |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
A X |
empirical |
|
A X |
empirical |
|
A |
empirical |
|
B |
simulated |
|
X |
empirical |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
C |
simulated |
|
C |
simulated |
|
B |
simulated |
|
A |
empirical |
|
X |
simulated |
|
A |
empirical |
|
B |
simulated |
|
X |
empirical |
|
X |
simulated |
|
X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
C |
empirical |
|
X |
simulated |
|
X |
simulated |
|
B X |
simulated |
|
A B |
simulated |
|
B |
simulated |
|
A X |
empirical |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
X |
simulated |
|
X |
empirical |
|
X |
both |
|
B |
simulated |
|
X |
empirical |
|
A X |
empirical |
|
B |
simulated |
|
A X |
empirical |
|
A |
empirical |
|
B |
simulated |
|
B X |
simulated |
|
B |
simulated |
|
X |
empirical |
|
C |
both |
|
A |
empirical |
|
A |
empirical |
|
A |
empirical |
|
A |
empirical |
|
B |
simulated |
|
B |
simulated |
|
A |
empirical |
|
B |
simulated |
|
A |
empirical |
|
B |
simulated |
|
X |
simulated |
|
X |
empirical |
|
B |
simulated |
|
B |
simulated |
|
X |
empirical |
|
C |
simulated |
|
X |
empirical |
|
X |
empirical |
|
A X |
empirical |
|
X |
empirical |
|
B |
simulated |
|
A X |
empirical |
|
B |
simulated |
|
X |
both |
|
A |
empirical |
|
A |
empirical |
|
B C |
simulated |
|
B |
simulated |
|
X |
simulated |
|
X |
empirical |
|
A |
empirical |
|
A |
empirical |
|
X |
simulated |
|
C |
simulated |
|
X |
simulated |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
B |
simulated |
|
X |
empirical |
|
B |
simulated |
|
B |
simulated |
|
A |
empirical |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
A |
empirical |
|
A X |
empirical |
|
X |
empirical |
|
A |
empirical |
|
B |
both |
|
B |
simulated |
|
B |
simulated |
|
X |
empirical |
|
B |
simulated |
|
B |
simulated |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
A X |
empirical |
|
A |
empirical |
|
A |
both |
|
A |
empirical |
|
A |
empirical |
|
X |
empirical |
|
A |
empirical |
|
X |
empirical |
|
X |
empirical |
|
B |
simulated |
|
X |
empirical |
|
C |
empirical |
|
A |
both |
|
B |
simulated |
|
A |
empirical |
|
A |
empirical |
|
X |
empirical |
|
X |
both |
|
A X |
empirical |
|
X |
empirical |
|
B |
both |
|
C |
both |
|
X |
both |
|
X |
empirical |
|
X |
empirical |
|
B |
simulated |
|
X |
empirical |
|
X |
both |
|
B |
simulated |
|
B |
simulated |
|
X |
empirical |
|
A |
empirical |
|
A |
empirical |
|
B |
simulated |
|
B X |
simulated |
|
B |
simulated |
|
A |
empirical |
|
A X |
empirical |
|
A X |
empirical |
|
A |
empirical |
|
X |
empirical |
|
B |
simulated |
|
X |
both |
|
A |
empirical |
|
A |
empirical |
|
A |
empirical |
|
B X |
simulated |
|
B X |
simulated |
|
B X |
simulated |
Path A — empirical replications#
Case |
Validates |
|---|---|
|
de Brabander et al. (2025) Table 1: seven estimators on the Brexit referendum (SC, DSC, SDID under three panel conventions, MASC, ASCM) at two dates, all fourteen cells |
|
de Brabander et al. (2025) Table 7: the in-sample placebo across twenty pre-Brexit quarters that ranks those seven, all twenty-one cells |
|
CWZ 2026 Table 5 carbon-tax debiased t-test |
|
DSC distributional SC on Dube minimum-wage (Gunsilius/DiSCo vignette) |
|
Okano-Kurisu (2026) functional SC, all three applications from the authors’ data: pre-treatment fits for the plain and ridge-augmented estimator in each (fertility curves 0.1259/0.0687, age-at-death distributions 0.2092/0.0634, trade covariance matrices 39.3429/20.0639) plus every weight of Tables 1-3, reproduced exactly by a port of the authors’ R code |
|
Functional Synthetic Control (FSC) itself on the same three applications: fertility exact (0.1259/0.0687), mortality exact on the plain leg and 0.0630 against 0.0634 on the augmented one, and the trade application under the Frobenius isometry Example 3 specifies, not the authors’ plain vech. The two divergences are corrections and are pinned with their measured size; also pins the scale-free penalty search |
|
Bilgel (2022, Econometrics Journal) Table 3 column 1, from the author’s
replication package: all six mobility ATTs for Turkey’s Covid-19 lockdowns
under PPSCM at |
|
Xu (2017, Political Analysis) Table 2 columns (3) and (4), on the
author’s own EDR/turnout panel: both ATTs (5.13, 4.90) and both
covariate coefficients (0.15, -1.05) reproduce within half the last
printed digit, and against a commit-pinned |
|
Lang et al. (2026) state age-verification laws, from the authors’ own
replication package: four Google Trends outcomes by four |
|
Song et al. (2023) clean winter heating in China, the ridge-ASCM half of their ML-ASCM: 30 stratified cells of their 1024-fit design, carried against two reference bases – a live augsynth 0.2.0 run (tight) and the authors’ published |
|
DSCAR Beijing PM2.5 alerts (Zheng-Chen) |
|
HK GDP empirical |
|
forward-selected SC (Prop 99) |
|
HSC HK handover |
|
Walmart placebo design |
|
dense L-inf vs sparse SC (Prop 99) |
|
MAREX Walmart placebo design vs live SCDesign (Abadie-Zhao, full 45-store panel + covariates, open quadprog, no Gurobi) |
|
MAREX vs Abadie-Zhao Section 5 / Table 2 on panels captured from the authors’ DGP: effect path, MAE, RMSE and treated count by cardinality, plus the weakly-targeted design family |
|
MASC Basque/ETA (KMPT Sec 5) |
|
Masini and Medeiros (2021) Table 5 Panel (a), the Brazilian retail price experiment, from their own replication package: the average effect, the per-shop effect, the selected-regressor count and both resampling p-values, value-for-value. Also measures that column standardisation absorbs their Table 1 penalty weights, so the published cells are the unit-weight column |
|
Shi-Wang Brexit multi-treated-units L2-relaxation |
|
PDA methods on HK CEPA (Shi-Wang App E.1) |
|
Shi-Huang China luxury-watch fsPDA (prewhitened-NW) |
|
Shi-Wang China PPI L2-relaxation (real-estate policy) |
|
SCM-relaxation Brexit/UK GDP (2016Q3) |
|
SCM-relaxation Brexit robustness (2020Q1) |
|
Lee-Wooldridge Prop99 + castle |
|
SBC German reunification |
|
Tian et al. Online Appendix B.3: Sweden’s light-touch NPIs against a captured run of their own COVID_analysis.R – 76 Table B.3 weights, 446 per-period p-values, the aggregate index and p-values of Figures B.5 and B.7, and four robustness variants, plus the effect magnitudes the text reports |
|
Tian et al. West Germany balance, all 36 cells of Table 2 (both synthetic controls, both data columns) against a captured |
|
VanillaSC reproduces Schulte et al. (2026) lost-autonomy SCM: post-trigger secessionist surge, Catalonia 2010 / Faroe 1994 (tracks authors’ SyntheticControlMethods synthetic) |
|
Basaglia, Grunau and Drupp (2024, PNAS) EU ETS co-benefits, the synthetic
DiD robustness half, from the authors’ own replication package: all three
pollutants (SO2, PM2.5, NOx) reproduce the five-decimal values in their
committed Stata log to 3e-4 once the covariate projection uses the
reference’s row rule. The page records why that qualifier is needed –
Stata’s |
|
L1 predictor selection (Prop 99) |
|
SPCD design vs random/SC on Prop 99 (Lu et al. 2022) |
|
grossi direct+spillover German reunification (Grossi et al.) |
|
inclusive SCM German reunification (Di Stefano-Mellace) |
|
iterative waterfall SCM German reunification (Melnychuk), both replacePreTreatData branches, cross-checked against the authors’ live R |
|
SPOTSYNTH donor-spillover screening: Germany/California/Basque (Fig 6) + detection (Fig 2) + debias (Fig 4) |
|
Brooklyn showroom (Li-Shankar) |
|
canonical ADH 2010 Prop 99 |
|
Yoneoka et al. (2022, BMJ Open) Tokyo 2020 Olympics and COVID-19
incidence, from the authors’ own replication package: the cumulative
143,072 observed against 89,210 counterfactual (+60.4%) reproduce to the
digit and the Fisher p-value exactly, with the estimand window recovered
from the script. Carried against a second base – a commit-pinned
|
|
Botosaru-Ferman (2019) Table 1 on West Germany: a synthetic control fit
on pre-treatment GDP alone matches the outcome to 0.02% and misses
inflation by 92%. Records that Synth’s |
|
Path A: Boussim (2026) Pennsylvania AEPS from public EIA data – Table 1 donor weights and both RMSPEs, all eleven years of Table 2, and the section 6.4 placebo (p = 0.111); also pins the clr-vs-alr geometry correction |
|
ORTHSC carbon-tax ATT/p/K/CI (Fry; Andersson 2019 data, vs live R) |
|
VanillaSC malo + mscmt reproduce Andersson (2019) carbon-tax ATT/2005-gap (paper predictor spec) |
|
STACKEDSC on Wiltshire (2023) Section 4.2: 566 Walmart counties in six cohorts against 39 never-treated donors. Geometry, not cells – the paper’s prose claims (excellent pre-fit, no effect at entry, decline from the following year, large negative at five years), the base-period indexing identity at 6e-16, and the per-cohort batching. Its Table 4 magnitudes are not claimed, and STACKEDSC – Walmart Supercenters and local employment (Wiltshire 2023) says why |
Path B — Monte Carlo / simulation#
Case |
Validates |
|---|---|
|
de Brabander et al. (2025) Section 5 Monte Carlo: per-replication cross-validation against synthdid on 48 panels drawn by the authors’ own DGP, plus the Table 9 finding that demeaning cuts the factor-driven bias about fivefold |
|
ASCM near-nominal coverage + bias reduction (BMR 2021 Sec 7) |
|
ClusterSC vs RSC |
|
fGRC subspace separation recovers cluster structure invisible to k-means (Yamamoto-Hwang |
|
CTSC vs two-way FE bias (Powell 2022 Table 1) |
|
CWZ 2026 Table 3 application-based Monte Carlo |
|
DR/PIPW recovery + double-robustness (Qiu et al. normal DGP) |
|
Zhang, Zhang & Zhang (2026) Section 5.1, the asymptotics Monte Carlo behind the Algorithm 1 Distributional Synthetic Control (DSC) implements. Targets digitised from the paper’s vector-PDF figures, since Section 5 prints no tables. Both theorems’ geometry reproduces across sixteen points – risk ratio falling to 1 in M, weight error falling in M, the larger donor pool converging more slowly – and the risk ratio matches the published figure to 0.0017 at every cell with M >= 200. The two cells at M = 50 sit above it by 0.006 and 0.028, and the weight-error curve is steeper in the paper; both distances are reported, and DSC asymptotics Monte Carlo (Zhang, Zhang & Zhang 2026) says why |
|
VanillaSC recovers the factor structure as J, T0 grow (Ferman 2021 JASA Table 1): weight on the treated factor group → 1, se(α) shrinks while OLS’s grows; mlsynth == R |
|
Ferman-Pinto 2021 QE Table 1 MC (CPS-calibrated factor model): VanillaSC (SC) and TSSC MSCa (demeaned SC) reproduce the Panel A/B bias + the efficiency-over-DID and break-panel findings; SC/demeaned == the authors’ |
|
simulation |
|
FMA asymptotic-CI coverage robust to variance (Li-Sonnier) |
|
FMA percentile-t bootstrap coverage at short pre-periods (Wang-Racine-Wang Tables 1-2) |
|
HSC regime adaptation |
|
Abadie-Zhao design sim |
|
L-inf vs SC (Wang-Xing-Ye Table 4) |
|
MSQRT unbiasedness + RMSE noise-floor (Shen-Song-Abadie Sec 6) |
|
nonlinear coverage + error-shrinks-with-J |
|
PANGEO trajectory match vs scalar (Chen et al.) |
|
Masini and Medeiros (2021) Tables 2-3 size, all three arms. The two arms without selection reproduce their cells and a single post-intervention period is correctly sized; the LASSO arm rejects at 2.2 times their reported rate, and the case records the five checks that localise the gap to the first stage |
|
Xu (2017) Table A4: the factor model against the convex hull. As the
treated unit’s factor loadings leave the donors’ support the synthetic
control’s bias climbs 0.71, 1.33, 1.63, 2.13 while GSYNTH’s stays in the
third decimal at every rank, and GSYNTH is the tighter of the two in all
eight cells. Records that the archive’s |
|
Xu (2017) Table A1 at |
|
Xu (2017) Table A5 on |
|
Shi-Sridhar-Misra-Blei (2022) Table 2, reproduced cell for cell, plus the
|
|
Illenberger-Small-Shaw (2020) Tables 1 and 2: regression to the mean
inflates the synthetic control’s placebo test to 0.51 against a nominal
0.05 under the paper’s level-matching specification and to 0.41 under
the path matching |
|
Shi-Wang Table 2 L2-relaxation size/power |
|
Li-Bell Table 2 LASSO-PDA OOS prediction (N>T1) |
|
Jiang et al. 2025 prediction-interval coverage (Tables 2-5) |
|
Wan-Xie-Hsiao (2018) Table 2, Design 6a: PDA against SCM over five
|
|
all 108 cells of Shi-Huang Table 1, vs the paper and their own code |
|
mlsynth’s default PDA path on the Table-1 design |
|
PI/PIS/PIPost vs SC under trending factor (Liu et al.) |
|
Pang-Liu-Xu (2022) Appendix Tables A6 and A7, the single-treated-unit
designs, at |
|
latent-group MC, relaxations beat SCM |
|
RSC train≈gen error |
|
Shi-Xi-Xie MSE ratios |
|
Sun averaged regime geometry |
|
Tian et al. Online Appendix Table B.1, all 144 cells: demeaned matching and the size of the 10% permutation test as the treated unit moves into the donors’ hull |
|
Tian Table 1 / Sun Sim1, all 36 cells: fit, bias and SD for the conventional, five- and ten-outcome, and ridge-augmented SC |
|
SSDiD vs DiD coverage/RMSE |
|
SHC latent-confounder recovery (Chen-Yang-Yang Sec 3.1) |
|
SIV vs 2SLS-TWFE bias (Gulek-Vives Table 1) |
|
Hirshberg (2021) error-in-variables SC prediction-interval coverage on a low-rank DGP |
|
ORTHSC fixed-smoothing t-test size control + power (Fry Tables 1-2) |
|
SAR spillover recovery + SCM nesting (Sakaguchi-Tagawa) |
|
SPSC IFEM recovery + DT-vs-NoDT coverage (Park-Tchetgen) |
|
Doudchenko et al. 2021 Monte Carlo (BLS unemployment) |
|
TASC vs SC state-space ablation (Rho et al.) |
|
Figure 2 MSE-ratio grid |
|
CWZ 2021 (JASA) Section 4 size, run live from the authors’ own simulation design: ten seed-matched panels per error structure reproduced exactly, and the size cells for four weight vectors at rho = 0 and rho = 0.6 |
|
CWZ 2021 supplement Tables I.2 and I.4, and Figure I.2’s oracle power bound. With trending factors the conformal test keeps its level under the specifications the simplex can represent and loses it under the two it cannot: size 0.53, 0.83 and 0.98 as the pre-period grows under DGP3, against 0.10 at the same cell with stationary factors |
|
CWZ Table 1 relative asymptotic efficiency from the authors’ RAE.R – the formula behind ttest_K=”auto” – matched to 1e-9 across K = 2..10 |
|
CWZ Table 3 run live from the authors’ calibration_dgps.R and common_functions.R: seed-matched panels reproduced exactly, plus coverage, length and bias across all nine DGPs |
|
The base MAREX design on Abadie-Zhao’s own 1000 Section 5 panels, regenerated from their seeds by a port of R’s generator checked against the R capture: Table 2 at M = 1000, the mean signed error within one standard error of zero, each design’s exact bias, and the blank-period gap recovering it with slope near one |
|
MAREX computes Abadie-Zhao Table 3’s SC column on the authors’ panels and beats every published randomized alternative at every cardinality |
|
BFR sharp-null designs: ATT coverage for both inference paths, plus the cumulative conformal band in two calibration regimes |
|
Li-Shankar (2023) Tables 2 to 5, cross-validated against the authors’
MATLAB run under Octave. The Step-1 restriction tests that choose
between SC, MSC(a), MSC(b) and MSC(c) hold their nominal size at every
level under the null (0.050 at 5%, 0.100 at 10%, 0.208 at 20%), and each
data-generating process fires only the test whose restriction it
violates. The four constrained fits agree with core Octave’s |
Path C — theoretical properties#
Cases that measure a claim the source paper proves about its estimator’s behaviour as the sample grows, against a population benchmark the design makes computable. Nothing here is a cell match – these results are not printed tables – so what is pinned is the direction each quantity is claimed to move, together with the caveats an asymptotic statement carries. See Theoretical properties for the prose, the theorem statements, and what each case does and does not establish.
Case |
Validates |
|---|---|
|
Li (2023) Propositions 2.2 / D.1 and Lemma B.1, the results about Forward DiD’s donor selection instead of its estimate. Against the theoretical forward selection algorithm computed in closed form from the Web Appendix E design, the empirical algorithm’s exact recovery of |
|
Li (2023) Proposition 2.1, the asymptotic normality that licenses Forward DiD’s standard error, interval and p-value. Where Assumption 4 holds the studentised ATT’s dispersion falls 1.329 → 0.998 and coverage of the 95 per cent interval climbs 0.889 → 0.952, both monotonically; the excess at short pre-periods is post-selection, since sigma-hat is estimated on the subset chosen to minimise it. Where Assumption 4(ii) fails (T2 = T1/2) the statistic settles at sqrt(1 + T2/T1) = 1.2247 instead of 1 – measured 1.224 – which identifies the level-shift term the assumption removes, and mlsynth’s standard error carries that factor so its own statistic still converges to 1.000. See FDID — asymptotic normality of the ATT (Li 2023) |
|
Where Li (2023) Proposition 2.1 stops applying. Its standard error prices the parallel-trends residual’s marginal variance, but the estimator’s error is a difference of two block means, whose variance is the long-run variance; the two agree only under the appendix’s iid assumptions, which Assumption 2.1 in the main text does not require. On a DGP 2 variant whose residual is AR(1) at the selected subset, coverage of the nominal 95 per cent interval falls 0.942 -> 0.533 as rho goes 0 -> 0.9 while the point estimate stays consistent, and a closed-form long-run-variance prediction carries the whole 2.79-fold dispersion (the measured/predicted ratio moves only 1.016 -> 1.058). The paper’s own four designs cannot show this: their factor term vanishes at the optimum, leaving an iid residual. The same draws re-fitted with |
|
Amjad, Shah & Shen (2018) Theorem 6, the condition under which a donor relation fitted before the intervention still holds after it – which the authors note “has been amiss in the literature” since Abadie-Gardeazabal (2003). On a factor panel built to satisfy or break rank(M-) = rank(M), the relation extrapolates to 2e-15 where the ranks agree and fails on all eight designs where a factor lies dormant until T0, costing RSC a 14-fold post-period RMSE. Theorem 3’s Goldilocks tradeoff is swept alongside: the error against the truth is U-shaped in the retained rank, underfitting costing 10.5x against overfitting’s 1.46x. Section 4.3’s reading of Theorems 3 and 7 is swept too, over the ridge penalty eta of equation (18), and does not survive: the paper describes an exchange, a higher pre-intervention error bought in return for a lower post-intervention one, and at neither threshold does that happen. Where the threshold matches the signal’s rank eta buys nothing in either window (0.01 per cent); where it is ten times too permissive eta improves both at once, 19 per cent pre and 7.7 per cent post. The two hyperparameters are substitutes, and past eta = 1e4 the retained rank stops mattering entirely. The paper’s bounds carry unnamed universal constants, so what is checked is their structure, not a numerical bound; the bounds stand, and it is the reading of them the measurement reaches. See RSC — the rank condition, and the two hyperparameters (Amjad, Shah & Shen 2018) |
|
the cumulative conformal band’s coverage is bounded by the number of calibration windows and not the number of periods: 0.86 at three windows, 0.94 at twenty-six, with exchangeability, stationarity and normality granted throughout. See Calibrating a cumulative band |
|
coverage of the intervals PCR actually returns, measured through |
Case |
Validates |
|
PPSCM’s per-unit cumulative band on a synthetic top-thirty geo panel covers at the rank its order statistic implies. The window count is a closed form in the design (ten at an eight-week horizon, twenty-one at four), ten windows cannot reach 95 per cent at any width, and the distance between realised coverage and the exchangeable prediction is zero at every reachable level. See Calibrating a cumulative band |
Cross-validation against reference implementations#
|
vs augsynth: Kansas ridge-ASCM ladder (SCM/ridge/covariate/residualized) |
|---|---|
|
vs a live augsynth 0.2.0 run on Cunningham’s two Mixtape studies, through the public estimator: Proposition 99 and Texas prisons. ATT, pre-fit L2 and scaled imbalance, the jackknife+ interval, the selected ridge penalty and all 88 donor weights. The pair contrasts an augmentation that halves the pre-fit error with one the cross-validation switches off at T0 = 8 – a difference invisible in the fitted path but not in the ATT |
|
vs the author’s |
|
DSC against the authors’ |
|
vs the |
|
vs augsynth |
|
DROSC vs authors’ R |
|
vs LIVE propsdid (Rscript): Bogatyrev-Stoetzer Table 2 common-weights SDID on party vote shares (skips if absent) |
|
vs Synth (uniform custom.v) and tidysynth (ADH spec) on Prop 99: placebo rank and p-value agree exactly (1/39); also records where mlsynth attains a lower value of Synth’s own objective and where ipop fails outright |
|
vs authors’ repo |
|
vs the authors’ |
|
vs LIVE reference R (He-Li-Shi-Miao 2026): RRSC large-N and fixed-N regimes value-for-value on a synthetic interference panel (skips if R absent) |
|
vs LIVE pensynth wsoll1 (Rscript+LowRankQP): penalized SC weights/ATT on Prop 99 (skips if absent) |
|
LINF vs LinfinitySC (skips if absent) |
|
vs authors’ MCPanel R (mcnnm_cv; ATT + California counterfactual path) |
|
vs Feng’s own replication scripts (2012 Kansas tax cut): the LPCA counterfactual quarter by quarter, the ATT, the neighbourhood and the local rank; the run also asserts |
|
vs Feng’s own simulation harness on the three Section 5 designs: maximum absolute error and the three quantile prediction errors, per model and per neighbourhood size, on fixed panels both sides read |
|
vs R microsynth panel method (Seattle DMI) |
|
vs Bottmer’s mlSC_estimator (skips if absent) |
|
vs authors’ bsynth R package (rstan): posterior counterfactual + credible bands + ATT, West Germany reunification (Martinez & Vives-i-Bastida) |
|
vs Tian’s NSC.R (Prop 99 Table 2) |
|
vs augsynth::multisynth (jackknife + bootstrap SEs) |
|
vs live R (authors’ analysis.Rmd, commit 3bcb5ec): over-identified DR-OID, Brazil vaccine/pneumonia |
|
vs live R (same script): standard SC (VanillaSC) vs proximal (DR-OID h/DR) contrast, Brazil vaccine/pneumonia |
|
vs freshtaste/proximal (Panic 1907 Table 3) |
|
vs scmrelax (skips if absent) |
|
Shen CIs + coverage |
|
vs SucreRouge/synth_control (Bayesian RSC posterior, Prop 99) |
|
TSSC MSCa == Ferman-Pinto (2021) demeaned SC, value-for-value vs their R quadprog (live Rscript), Basque/ETA 1975 |
|
vs authors’ synthdid R (synthdid_estimate; SDID/DiD/SC on Prop 99) |
|
vs Agarwal-Shah-Shen 2026 authors’ code (Prop 99) |
|
vs deshen24/syntheticNN (Prop 99) |
|
vs Melnychuk-Andrii/Spillover-SCM (inclusive SCM German), against both the authors’ shipped output and their algorithm solved to the simplex |
|
vs jcao0/synthetic-control-spillover (Cao-Dowd Prop 99) |
|
vs authors’ repo |
|
vs jcao0/staggered_synthetic_control (criminality Sec 4) |
|
vs cvxpy (CLARABEL) on the MSCMT inner simplex program: the batched active set never finishes above the interior-point optimum across the Basque candidate weightings, and its work bounds are pinned as iteration counts, which are machine independent where wall-clock is not. Also pins what the default |
|
RPCA-SC West Germany |
|
CWZ 2021 (JASA) conformal test inversion against the authors’ own scinference, on their Section 5 Rhode Island application: the moving-block p-value, all six pointwise intervals on the paper’s grid, and the three placebo specification tests, all exact |
|
DR_Proximal_SC |
|
fsPDA |
|
fsPDA |
|
VanillaSC vs mharoruiz/ibex scinference/lsei SC: Iberian exception day-ahead price, weights value-for-value (Haro Ruiz-Schult-Wunder 2024) |
|
MAREX’s exact backend vs brute-force enumeration of every treated set in R (quadprog per set): 12 configurations on 6 panels, every design and objective option |
|
MAREX vs SCDesign’s own cardinality-constrained design on the Section 5 simulation panels (captured R run, open quadprog, no Gurobi) |
|
the resampled cumulative band reduces to Wheeler’s LassoSynth at |
|
scpi single-unit CFT-2021 prediction intervals, German reunification: levels + cointegrated bands + weights |
|
scpi staggered point estimates, Germany (Cattaneo et al. 2025) |
|
scpi covariate (multi-feature) staggered illustration, Germany (Cattaneo et al. 2025) |
|
scpi staggered TSUA prediction intervals, Germany (Cattaneo et al. 2025) |
|
SAR Bayesian spatial SC vs Mendez California Prop 99 tutorial (bare rho 4dp + ATT + Nevada spillover; full rho weakly identified) |
|
SYNDES two-way treated-set search vs SCIP proving optimality on the same program (BLS panel) |
|
the same paper’s other five design variants, cross-validated against
|
The captured reference corpus#
For many of the cross-validation cases above, the reference is not a number
transcribed from a paper or a package that has to be re-installed every time the
suite runs. It is a captured artifact: the original authors’ code, the exact
command that ran it, the verbatim output, and a record of the environment that
produced it, all committed under benchmarks/reference/<case>/. mlsynth’s
result is then pinned to that captured output, so the comparison is reproducible
offline and the reference value cannot silently drift from what the authors’
code actually produces.
This section documents that machinery in detail.
Anatomy of a bundle#
A captured bundle is a directory benchmarks/reference/<case>/ containing:
manifest.json– the bundle’s contract. It records thecasename, a humantitle, thepaperbeing validated, areference_implstring naming the exact code that was run, thepath_type(Path A / Path B / cross-validation), thecommandthat regenerates the bundle, and the list of inputdatafiles. Thecommandis run verbatim, so it can be anRscriptinvocation, apythonscript, or anything else that prints the expected output block.reference.Rorreference.py– the runnable reference. It drives the authors’ code on the case’s data at the matched settings and prints two blocks: a== REFERENCE VALUES ==block ofkey<TAB>valuelines (andweight<TAB>label<TAB>valuerows for weight vectors), and a== SESSION INFO ==block of tool and package versions.The authors’ code itself, vendored alongside (for example
Fun_FDID.R,scm.corner.R, or avendor/subdirectory of the minimal modules needed), together with any small input data the run requires (for exampleGDP.csv). ANOTICEfile records provenance and licensing – and where an upstream repository ships no license, only the minimal subset needed to run the reference is vendored, for provenance, not redistribution.reference.out– the verbatim captured stdout of the run, kept as the human-readable evidence of what the authors’ code printed.reference.json– the parsed result, a mapping{"values": {...}}that the test harness reads.provenance.json– a record of the run: a UTCgenerated_attimestamp, thegit_shaof the repository at capture time, theplatform, thecommand, the inputdatawith SHA-256 checksums, and the interpreter and package versions (for exampler_versionand the loadedpackages).comparison.csv– the side-by-side table of mlsynth against the reference, one row per quantity, with the absolute difference (described under Comparison tables).
How a live cross-validation is built#
Each live cross-validation follows the same recipe, designed to isolate the one thing being tested – whether mlsynth and the authors’ code compute the same quantity – from everything that would otherwise confound it.
Run the authors’ code, not a paraphrase of it. The reference fetches or vendors the upstream implementation and calls it directly, on the same input data the mlsynth case uses.
Match the settings that are free to differ. Estimators expose tuning choices (a penalty level, a number of retained singular values, a transformation window, an EM initialisation). The reference and the mlsynth call are driven at the same values so that any remaining difference is attributable to the implementation, not the configuration. Where a method’s own tuning differs from a paper’s by construction – for example a time-respecting cross-validation against a future-leaking K-fold – the cross-validation pins the solve at a single fixed setting (where the program is a unique optimisation), not the tuned end-to-end number, and the tuned number is kept as a separate, clearly labelled pin.
Capture the output with provenance.
benchmarks/reference/generate.pyruns the manifestcommand, parses the== REFERENCE VALUES ==block intoreference.json, stores the verbatimreference.out, and writesprovenance.jsonwith the checksums and versions above.Pin mlsynth to the captured values. The case reads the captured numbers with
benchmarks.reference.reference_value()(orload_reference) and uses them as theEXPECTEDtargets, so the constant in the test and the captured run are the same object – they cannot diverge without the bundle being regenerated.
Comparison tables#
Every bundle with a comparison() writes a comparison.csv: a metadata
header (the case title, the reference implementation, the generation timestamp
and versions) followed by one row per quantity with columns quantity,
mlsynth, reference and abs_diff. The public, web-native rollup of
the whole corpus is the Validation dashboard dashboard, generated from these CSVs.
Regenerate both with
python benchmarks/reference/export_comparison.py --all
python benchmarks/reference/build_validation.py
Regenerating a bundle#
A bundle is rebuilt from its manifest with
python benchmarks/reference/generate.py <case>
which re-runs the captured command, refreshes reference.out /
reference.json / provenance.json, and so re-stamps the environment and
checksums. Regeneration requires whatever the reference needs (an R toolchain
and the named packages, or the relevant Python dependency); when that toolchain
is absent the corresponding case raises BenchmarkSkipped at suite time
instead of failing, and the committed bundle remains the offline record.