Research
Can Training Logs Make Model Comparisons More Precise?
Overview Research area: Statistical methodology for machine learning evaluation — specifically, variance reduction for comparing stochastically trained models using covariates drawn from training logs
- arXiv
- 2608.02705
- Published
- 2026-08-03
- Authors
- Wei-Jung Huang
AI summary
Overview
- Research area: Statistical methodology for machine learning evaluation — specifically, variance reduction for comparing stochastically trained models using covariates drawn from training logs.
- Technical level: Intermediate. Readers need comfort with confidence intervals, standard errors, cross-fitting, and the idea of variance reduction via regression adjustment; no deep architectural knowledge is required.
- Scope: A single-author 3 × 3 factorial vision study (three architectures × three datasets, 450 total training runs) testing whether arm-specific covariate adjustment on early training-log statistics can narrow confidence intervals for model-performance differences.
What This Paper Is About
Comparing two stochastically trained models means estimating both a performance difference and its uncertainty from repeated runs, and reducing that uncertainty normally requires training more runs. This paper asks whether statistics already produced during those same runs — early validation loss, gradient norms, batch-loss and accuracy summaries — can be subtracted out to shrink run-to-run variance and tighten the confidence interval for the difference. The twist is that training-log covariates are produced during training rather than measured beforehand, so the paper develops and stress-tests an arm-specific adjustment scheme that keeps the reported performance difference exactly equal to the raw mean difference.
Key Contributions
- An arm-specific adjustment framework for model comparison. Each model is adjusted using only covariates from its own runs, with cross-fitted coefficient estimation, coverage diagnostics, and null calibration checks (Sections 3, 5.1, 5.2).
- Model-specific covariate signal and selection risk. A fixed early validation-loss adjustment and PCA summaries of training-log families can reduce single-arm variance, in some cells by sizable margins, but which training statistic helps depends on the model and training recipe, and selecting the best statistic from a large candidate pool often backfires (Sections 5.4, 5.5).
- Pairwise comparison evidence. Arm-specific adjustment narrows confidence intervals for performance differences at sufficient run budgets but widens them when runs are too few for stable estimation (Sections 5.3, 5.6).
- Practical guidance. A training-log statistic should be chosen before it is used as the primary adjustment; otherwise the adjustment should be reported as exploratory. Reliable selection under limited run budgets remains the main open problem (Section 6).
Main Findings
- Precision gains are conditional, not universal. At the largest run budget studied (n = 50), the fixed validation-loss adjustment narrowed adjusted confidence intervals in eight of nine model pairs, with reductions between 1.9% and 8.8% among the successful pairs. The exception was CIFAR-10 / ResNet-18 vs. ConvNeXt-Tiny, where the interval widened by 1.4%.
- Gains are modest in absolute terms. The largest pairwise improvement was CIFAR-100 / ViT-Tiny vs. ConvNeXt-Tiny, where the half-width shrank from 0.158 pp to 0.144 pp.
- Small run budgets hurt. At n = 10, the cost of estimating the covariate coefficient exceeded the variance removed, and adjusted intervals widened across all pairs. For ViT-Tiny on CIFAR-10, validation loss at the first-third epoch gave positive median variance reduction from n = 15 onward (+2.8% at n = 15, +14.1% at n = 50).
- Fixed adjustment beats automatic search. Validation loss at the first-third epoch gave positive variance reduction for ViT-Tiny on all three datasets (7.0 to 17.8%) and for ConvNeXt-Tiny on two of three, but was negative for ResNet-18 in all three cells.
- Selecting the "best" covariate usually fails. The single-best out-of-fold OLS selector produced negative variance reduction in six of nine cells. ViT-Tiny on CIFAR-10 had ρ² = 23% for its best early validation covariate, yet the selector yielded −38.1% variance reduction.
- PCA is more stable but not dominant. PCA with k = 1 recovered positive variance reduction for ViT-Tiny on all datasets and for Tiny-ImageNet / ConvNeXt-Tiny, outperforming both alternatives in three of nine cells. Increasing to k = 2 or k = 3 principal components per family degraded performance.
- Signal exists in hindsight. Post hoc scans using all 50 runs for selection found that every cell has at least one first-third covariate with positive variance reduction, ranging from 11.7% to 44.3%. ViT-Tiny's best covariates were early validation snapshots (ρ² of 23 to 30%), while ResNet-18's were gradient and batch-loss summaries (ρ² ≤ 18.8%).
- Selection noise, not signal absence, is the bottleneck. In a family-level diagnostic, the post hoc best statistic was positive in 44 of 45 family-cell combinations, while the nested within-fold selector was negative in 39 of 45. The nested selector nonetheless gave positive variance reduction in all three ConvNeXt-Tiny configurations.
- Intervals remain calibrated. In the subsampling diagnostic on CIFAR-100, all coverage entries were at or above 95% (the n = 50 row is a deterministic 100% limit case). In the synthetic null, adjusted coverage averaged 94.8% (range 92.9% to 95.9%) versus 95.1% raw; adjusted rejection rates averaged 5.2% versus 4.9% raw, with one elevated cell (CIFAR-10 / ViT-Tiny) at 7.1%. Adjusted pairwise coverage remained at or above 97.2% across all pairs and run budgets when resampling from trained runs.
- Effective-run framing. The largest single-arm gains came from ConvNeXt-Tiny, where single-best OLS reached 34.1% variance reduction and PCA reached 34.0%; the 34.1% figure is described as equivalent to 75.9 effective runs from a 50-run budget, offered as a diagnostic scale rather than a recommendation.
Methodology in Plain English
The setup is a 3 × 3 factorial experiment: ResNet-18, ViT-Tiny, and ConvNeXt-Tiny each trained on CIFAR-10, CIFAR-100, and Tiny-ImageNet, with 50 runs per cell and 450 runs total, on NVIDIA L4 GPUs with bfloat16 mixed precision. Randomness sources (Python, NumPy, PyTorch, CUDA, DataLoader workers) are seeded deterministically. The reported outcome is final-epoch test accuracy, fixed before the covariate analysis so that validation metrics can serve as covariates without leakage.
During training, the pipeline logs train/val/test loss and accuracy plus gradient-norm statistics every epoch, and per-batch loss, accuracy, gradient norm, and parameter norm for the first 1,000 steps. At completion, roughly 200 summary statistics are computed per run (prefix means, standard deviations, slopes, and similar), restricted to the first third of training and excluding test-derived statistics. Candidate counts range from 672 (ResNet-18 / CIFAR-10) to 1,719 (ViT-Tiny / CIFAR-10), organized into five families: validation snapshots, training-loss summaries, training-accuracy summaries, gradient-norm summaries, and parameter-norm summaries.
The adjustment itself works like CUPED-style regression adjustment from A/B testing, with one key change. Each arm is adjusted using only its own training-log covariates, because the covariates are co-produced with the outcome and a pooled regression could absorb part of the real model difference. The point estimate reported is always the raw mean difference; only the standard error and interval width change. Because the covariate coefficient and covariate mean must be estimated from the same runs used for evaluation, the paper uses 5-fold cross-fitting (K = 5), with nuisance parameters estimated from the complement of the fold containing each run. Adjusted outcomes are recentered within each arm so the raw difference is preserved, and a Welch-style interval is computed from the adjusted within-arm variances.
The paper evaluates three adjustment strategies: a fixed statistic chosen in advance (validation loss at the first-third epoch), a data-driven "single-best OLS" that picks the candidate with the largest ρ² with final accuracy within each training fold, and PCA with k = 1 that replaces each family with its first principal component. Validation is done through repeated coverage checks (5,000 subsamples per setting across run budgets n ∈ {10, 15, 20, 30, 50}), a synthetic null built by randomly splitting the 50 runs of the same model into two fake arms of 25 (5,000 splits per cell), and variance-reduction estimates using 1,000 repeats of 5-fold cross-fitting.
Why This Matters
The paper addresses a practical cost problem in empirical machine learning: run-to-run variation determines the standard error of any model comparison, and the standard remedy — more repetitions — scales linearly in compute. If training logs already collected during training can reduce that uncertainty, comparisons become cheaper or more sensitive at a fixed budget.
Impact on research: The work connects the deep-learning reproducibility literature (Bouthillier et al. 2021; Henderson et al. 2018; Dehghani et al. 2021) with regression adjustment from online A/B testing (Deng et al. 2013) and the finite-sample caveats of Freedman (2008) and Lin (2013). Its distinctive claim is a negative one about method: naive search over a large covariate pool destroys the benefit, so pre-registration of the adjustment statistic matters as much as the adjustment itself.
Real-world applications (derived from the paper's framing, not explicitly listed by the authors):
- Benchmark and leaderboard reporting, where tighter confidence intervals could reduce fragile ranking claims.
- Hyperparameter and architecture selection pipelines that already log early-epoch metrics and want to decide among candidates with fewer full retrains.
- Reproducibility audits of published model comparisons, where negative out-of-fold variance reduction is a useful red flag that a reported adjustment is exploratory.
- Sequential or always-valid evaluation setups, which the paper flags as an open direction where variance reduction could translate into faster stopping.
Industry relevance: Teams that compare model versions regularly already possess the training logs this method consumes, so the approach requires no change to the training pipeline. The paper's guidance — report the raw interval alongside the adjusted one, state the exact statistic used per arm, and report out-of-fold variance reduction including how often it is negative — is a low-cost reporting change for teams whose model comparisons currently rest on single runs or a handful of seeds.
Future Directions
- Reliable covariate selection at limited run budgets. The paper identifies this as the main open problem, since nested within-fold selection was negative in 39 of 45 family-cell combinations while post hoc selection was positive in 44 of 45.
- Stronger inferential guarantees for co-produced covariates. The authors note that a stronger guarantee would require the adjustment to be fixed in advance and the covariate mean to be known or estimated independently; the current intervals are empirically checked precision estimates, not distribution-free finite-sample guarantees.
- Generalization beyond the studied configurations. Larger datasets, larger models, and different run budgets may change both the available covariate signal and the estimation cost. The paper treats architecture and recipe differences as configuration-level evidence because the two vary together.
- Nonlinear and sequential extensions. Nonlinear adjustment might recover additional signal but risks more overfitting at the run budgets studied; embedding the fixed-sample interval inside an always-valid confidence sequence (Johari et al. 2022) is suggested as a route to faster stopping once adjusted intervals reach a target width.
Target Audience
Methodologists and practitioners who design or audit empirical comparisons of machine learning models: benchmark maintainers, evaluation researchers, and statisticians working on variance reduction for randomized experiments, who will find the co-produced-covariate problem and the selection-noise diagnostic the most novel parts. It is also relevant to engineering teams that already log per-epoch and per-step training statistics and want a principled way to use them when deciding between model versions. The paper is accessible at an intermediate level; the heaviest technical content is the cross-fitting scheme and the calibration diagnostics, both of which are explained with minimal formalism.
Authors’ abstract
Comparing stochastically trained models requires estimating both a performance difference and its uncertainty from repeated runs. We study whether training logs from those same runs can make such comparisons more precise. Because training-log covariates are produced during training rather than measured before it, we use arm-specific covariate adjustment: each model is adjusted only with statistics from its own runs, and the raw mean difference remains the reported effect. In a vision study spanning three architectures and three datasets, simple adjustments based on early training logs often reduce uncertainty in model comparisons. The main limitation is covariate selection. Broadly searching the log pool for the most correlated statistic often adds more noise than it removes, even when useful statistics exist in hindsight. Training logs therefore appear useful for more precise model comparisons, but only when the adjustment avoids large selection noise.