Manuscript Offprint

arXiv:2610.01819

MECHVAR: Variance-Guided Mechanism Discrimination for Autonomous Machine Learning Experiment Selection

Yifan Guo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Benchmark gains are often mechanism-ambiguous: reproducing an improvement does not by itself identify why it occurs. We study finite-library mechanism discrimination, where posterior-weighted candidate mechanisms, executable probes, and a limited experimental budget define a sequential experiment-selection problem. MECHVAR selects the next probe by maximizing the posterior-weighted variance of its predicted responses. Under a shared-Gaussian predictive model, this score is exactly proportional to the classical Box–Hill posterior-weighted pairwise-KL criterion, yet it admits O(KE)O(KE) vectorized rescoring and a transparent additive audit over mechanism pairs. A local expansion further links the score to expected information gain (EIG) when predicted response separations are small. In a 25-block stress audit, MECHVAR outperforms confirmation-first in several moderate misspecification regimes, while its primary comparisons with EIG remain statistically unresolved. In a held-out Digits loop, normalized mechanism-identification AUC is 0.8975 for MECHVAR, 0.7825 for a score-greedy policy, and 0.9092 for EIG. At K=100K = 100, E=200E = 200, median single-thread full-library scoring is 10.36μs10.36 \mu s for MECHVAR versus 57.69 ms for six-node quadrature EIG in the recorded environment. MECHVAR therefore provides a lightweight, auditable acquisition rule for finite-library experiment selection when a shared predictive scale is a defensible approximation.

1 Introduction

A benchmark gain can have several explanations. A graph-aware model may exploit relational structure, benefit from a change in effective capacity, or use the graph as an identifier-like shortcut. A semi-supervised learner may improve through unlabeled data, augmentation, or an optimization side effect. Reproducing the gain alone does not distinguish among these mechanisms.

Autonomous ML workflows need to decide how to investigate such ambiguity. Research agents can modify code, launch training jobs, inspect metrics, and propose follow-up experiments (Huang et al., 2024; Chan et al., 2025; Lu et al., 2024; Yamada et al., 2025; Schmidgall et al., 2025). Given a finite set of plausible mechanisms and executable interventions, the next task is to allocate a limited budget to experiments that distinguish explanations with substantial posterior support.

We formulate this task as sequential model discrimination. Mechanisms are candidate explanations for an observed effect; probes are ablations, perturbations, or controlled retraining runs. The objective is to separate the mechanisms that remain plausible under the posterior. Maximizing benchmark accuracy answers a different question. In the held-out Digits experiment (Section 4.5), score-greedy uses the same posterior and calibration templates as the discrimination policies, yet identifies the hidden mechanism less efficiently.

MECHVAR scores a probe by the posterior-weighted variance of its predicted responses. The weighted-variance identity expresses this score as a sum of pairwise squared response differences. Under the belief model's shared predictive variance, the classical ordered-pair Gaussian Box–Hill criterion is exactly this variance multiplied by 1/σb21/\sigma_b^2 (Box and Hill, 1967). The reduction preserves the selected probe, makes the contribution of each mechanism pair explicit, and evaluates the complete library in O(KE)O(KE) arithmetic.

MECHVAR: Variance-Guided Mechanism Discrimination

Figure

Figure 1: Finite-library mechanism-discrimination loop. The posterior and response templates determine the MDV score; the pairwise decomposition records which mechanism pairs contribute most to the selected probe. Only the executed outcome is revealed before the posterior update.

The method is deliberately narrow: it is not a new divergence and it does not generate hypotheses or probes. Its role is to make a classical model-discrimination objective cheap to rescore and easy to audit inside an iterative ML workflow. We test that role under model mismatch, small budgets, larger mechanism libraries, and a held-out loop that executes one selected intervention before updating the posterior.

We make three contributions:

• We formalize follow-up ablations and interventions as a finite-library mechanism-identification problem, and we distinguish this objective empirically from maximizing the next experiment’s benchmark score.

• We show that, under shared Gaussian predictive variance, the Box–Hill posterior-weighted pairwise-KL objective reduces exactly to posterior-weighted response variance, yielding O(KE)O(KE) full-library rescoring, mechanism-pair attribution, and a local connection to EIG.

• We evaluate the resulting acquisition rule under forecast and likelihood mismatch, budget and mechanism-set scaling, structured forecast errors, and disjoint held-out execution, with paired statistical inference, quadrature diagnostics, and a documented score-only runtime benchmark.

References (35)

  • Technometrics, 9(1):57–71, 1967
  • Evaluating machine learning agents on machine learning engineering
  • Toward rigorous assessment of language agents for data-driven scientific discovery
  • Amortizing Sequential Bayesian Experimental Design
  • Gottweis, J., et al. Towards an AI co-scientist. arXiv:2502.18864, 2025. (opens arXiv in a new tab)
  • ICLR, 2021
  • IEEE Transactions on Information Theory, 51(4):1261–1282, 2005
  • ICLR, 2017
  • Scandinavian Journal of Statistics, 6(2):65–70, 1979
  • Houlsby, N., Huszar, F., Ghahramani, Z., and Lengyel, M. Bayesian active learning for classification and preference learning. arXiv:1112.5745, 2011. (opens arXiv in a new tab)
  • Instance-hiding schemes for private distributed learning
  • Evaluating language agents on machine learning experimentation
  • Annals of Mathematical Statistics, 27(4):986–1005, 1956
  • The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery
  • Machine learning in Python
  • Statistical Science, 39(1):100–114, 2024
  • Using LLM agents as research assistants
  • Generalization bounds and algorithms
  • NeurIPS, 2019
  • Simplifying semi-supervised learning with consistency and confidence
  • Evaluating agents on the rediscovery of scientific insights
  • Yamada, Y., Lange, R. T., Lu, C., et al. The AI Scientist-v2: Workshop-level automated scientific discovery via agentic tree search. arXiv:2504.08066, 2025. (opens arXiv in a new tab)
  • Continuous optimization for structure learning
  • The I–MMSE identity (Guo et al., 2005) states that
  • Let the current posterior over three mechanisms be $p = (0.50, 0.30, 0.20)$ and let a selected probe have predicted responses $m = (0.15, 0.75, 0.40)$
  • FB02 is a local protocol-matched negative result and differs in protocol from the corresponding external setup
  • Holm-adjusted Wilcoxon $p$-values for MECHVAR versus confirmation-first are 0.228, 0.228, 0.497, 0.00196, and 0.497 for $\sigma_{\mathrm{pred}} = 0, 0.1, 0.25, 0.5, 1.0$, respectively, and 0.497, 0.152, 0.0276, and 0.00800 for true-noise multipliers 0.5, 1.5, 2, 3, respectively
  • For every state we computed EIG with 6, 20, and 50 Gauss–Hermite nodes; the 50-node result serves as the numerical reference
  • Score errors are in nats and are measured against 50-node quadrature
  • Mechanism–probe scales were drawn as
  • We compare the MECHVAR ranking, which uses the response means, with the exact posterior-weighted ordered-pair KL score for heteroscedastic Gaussians
  • One Python process was used and OMP_NUM_THREADS, OPENBLAS_NUM_THREADS, MKL_NUM_THREADS, and NUMEXPR_NUM_THREADS were each fixed to one
  • The ratio is a wall-clock measurement of these implementations on this machine, not a hardware-independent complexity constant
  • The earlier four-mechanism pilot using seeds 2100–2124 is excluded from all inferential results reported in the paper
  • Macro normalized budget-AUC across FB01, FB02, FB04, FB05, and FB06 is 0.6604 for MECHVAR, 0.6601 for EIG, 0.6586 for confirmation-first, and 0.6260 for random