Skip to content
AI.info

Advanced techniques

Evaluating and Debugging Advanced Techniques

Build an evaluation program that isolates the mechanism, prices the added complexity, and detects advanced-method failure modes.

By the end you can

Comparison

Three levels of evidence

Beating a leaderboard is only where the evidence for an advanced method starts.

In 2020 three researchers re-ran the deep metric learning literature under a single protocol. The paper is called A Metric Learning Reality Check, and its abstract earns the title: “We find flaws in the experimental methodology of numerous metric learning papers, and show that the actual improvements over time have been marginal at best.” Years of published gains had produced predictive evidence. Of the other two kinds, almost nothing.

FigureComparison · 3 columns

Predictive evidence

The method improves a locked metric on held-out data.

  • Necessary but not sufficient
  • Requires uncertainty and slice reporting
  • Can be confounded by larger budgets
  • Answers whether the score changed

Mechanistic evidence

Ablations show that the intended component caused the gain.

  • Uses matched baselines
  • Tests the claimed bottleneck
  • Includes counterexamples
  • Answers why the score changed

Operational evidence

The method survives latency, drift, rollback, and ownership constraints.

  • Includes end-to-end costs
  • Tests degraded and missing components
  • Defines monitoring signals
  • Answers whether the gain can be owned

Advanced methods arrive with hidden budget advantages

A transfer model may use a massive pretraining corpus; an ensemble may multiply inference cost; a graph model may exploit relationships unavailable to a row-wise baseline. Comparisons should report data, compute, memory, latency, tuning trials, and human effort. Equal parameter count is not always the fairest budget, but unreported asymmetry makes the result impossible to interpret.

An ImageNet-pretrained backbone already scores something on CUB200 before any metric-learning loss is applied at all. Table 1 of A Metric Learning Reality Check records what: Recall@1 of 41.1 for GoogleNet, 51.1 for BN-Inception, 48.7 for ResNet50. A 10-point swing is available from the choice of network, before the method under test has contributed anything. The same team then re-ran 14 losses under one protocol with cross-validated hyperparameters. The contrastive loss of 2006 came out on top, at Precision@1 of 68.13 ± 0.31 on CUB200, above ArcFace at 67.50 ± 0.25 and CosFace at 67.32 ± 0.32. Their conclusion names the mechanism rather than the culprits: “Unfair comparisons caused by changes in network architecture, embedding size, image augmentation method, and optimizers.”

Capacity and per-example compute are separable budgets, and the Switch Transformer is the documented case. It is a sparsely activated Mixture-of-Experts carrying an outrageous number of parameters at a constant computational cost. Its abstract, published in 2022, states the trade in one line: “We design models based off T5-Base and T5-Large to obtain up to 7x increases in pre-training speed with the same computational resources.” The trillion-parameter version reaches a 4x speedup over T5-XXL. A comparison that reports parameter count has not thereby reported compute. One that reports compute has not reported capacity.

Use more than one baseline when necessary: a simple operational baseline, a strong standard learner, and a budget-matched alternative. The advanced method should beat the counterfactual that best tests its claimed mechanism.

Reimplementing the whole field in one codebase is itself a result. Five researchers did that for semi-supervised learning in 2018. They found that “the performance of simple baselines which do not use unlabeled data is often underreported”, and that quality “can degrade substantially” when the unlabeled pool held classes the labeled set never contained. The finding came from a shared implementation, not from a new algorithm.

A gain is not attributable until resource and information advantages are made visible.

Visual

The ablation ladder

Move from the simplest counterfactual to the complete system while preserving the evaluation boundary.

One 2019 paper climbed that ladder in public. On a retinal fundus task, ImageNet transfer moved ResNet-50 from an AUC of 96.4% ± 0.05 with random initialisation to 96.7% ± 0.04. That is the entire contribution of the pretraining corpus, measured.

Then comes the budget-matched rung, which is the one that decides the question. CBR-Small has 2,108,672 parameters against ResNet-50's 23,570,408, and only 67.6% ImageNet top-5 accuracy against 92%. It reached 95.7% ± 0.04 from random initialisation and 95.8% ± 0.01 with transfer. The 11x smaller model lands just below the larger one either way. The abstract of Transfusion says so plainly: “A performance evaluation on two large scale medical imaging tasks shows that surprisingly, transfer offers little benefit to performance, and simple, lightweight models can perform comparably to ImageNet architectures.” Without the information-only and budget-matched rungs, the same experiment reports a transfer gain and stops.

FigureProcess · 6 steps
  1. 1

    Strong ordinary baseline

    Tune the standard workflow with the same split and preprocessing.

  2. 2

    Information-only baseline

    Add the new data or graph features without the complex model.

  3. 3

    Mechanism ablation

    Remove routing, replay, alignment, teacher targets, or other defining components.

  4. 4

    Budget-matched alternative

    Spend similar compute or latency on a simpler method.

  5. 5

    Complete method

    Run the full design with locked hyperparameters.

  6. 6

    Stress and rollback tests

    Evaluate unsupported regions, component failure, and monitoring signals.

Example

Diagnostic signatures by technique

Each family has failures that a generic validation score will miss.

  • Ensemble: Track member correlation, unique correct predictions, calibration, and behavior when one member is unavailable.
  • Transfer or adaptation: Compare source-only, frozen-probe, partial, and full adaptation while measuring original-domain regression.
  • Self-supervision: Test frozen features, target-task fine-tuning, augmentation ablations, and shortcut-sensitive slices.
  • Continual learning: Report retained-task quality after every update, not only final average accuracy.
  • Offline RL: Map state–action support and separate estimated value from staged online or simulator evidence. A 2019 paper named this failure and measured it: “Extrapolation error is an error in off-policy value learning which is introduced by the mismatch between the dataset and true state-action visitation of the current policy.” Across its final-buffer, concurrent and imitation batches, the off-policy agent performed significantly worse than the behavioural agent that generated its data — a large performance gap in every single trial, including the concurrent setting where both agents trained on the same dataset. Its value estimates diverged while the behavioural agent's stayed stable.
  • Graph learning: Compare relational features, edge ablations, temporal splits, and cold-start nodes. How much of a graph score belongs to the split rather than to the method? The Open Graph Benchmark measured it in 2020. On ogbg-molhiv the best GIN reaches ROC-AUC 82.73% ± 2.02 under a random split, 5.66 percentage points above the scaffold split. On ogbg-moltox21 it reaches 86.03% ± 1.37 under random against 77.57% ± 0.62 under scaffold, an 8.46-point gap. “We find the random split to be much easier than scaffold split.” Same model, same data, two verdicts.

Analogy

The bridge with a novel material

A new composite does not go into a bridge on the strength of one load test. The load test matters. Engineers also compare the design with proven materials, inspect failure modes, model temperature changes, and plan repairs. They adopt the material on a body of evidence, not on one impressive measurement.

A bridge does not change the traffic that crosses it. A deployed model changes the environment it is measured in, so the team must keep measuring after release, and the method may change the population it later observes.

Advanced techniques need both component evidence and lifecycle evidence.

Case

What happened when CIFAR-10 and ImageNet got new test sets

The CIFAR-10 and ImageNet test sets were built once. In 2019 four researchers built them again, “closely following the original dataset creation processes”, and then scored the existing models on the new sets. The models lost ground: “accuracy drops of 3% - 15% on CIFAR-10 and 11% - 14% on ImageNet”.

The obvious explanation is wrong. Gains on the original sets still translated to the new ones, and the authors conclude that “the accuracy drops are not caused by adaptivity”. Nothing had been overfitted to the leaderboard. The held-out set was simply a narrower claim than it looked. The paper's title is the question it answers: Do ImageNet Classifiers Generalize to ImageNet? A locked metric on one test set measures that test set.

Key idea

Repeated experimentation can manufacture a winner

Advanced methods often create many choices: augmentations, ranks, experts, replay sizes, thresholds, task weights, and seeds. Selecting the best result from a large search and reporting it as one clean comparison understates uncertainty.

Track the number of trials. Preserve a final test, and report variability across seeds or task samples. When possible, preregister the primary metric and stopping rule. A tiny gain found after extensive tuning may not survive a new dataset or an operational change.

Change nothing but the random seed and the ranking can change. Reimers and Gurevych tested that on sequence tagging in 2017. Varying only “the seed value for the random number generator” produced statistically significant differences, at p below 10⁻⁴, between state-of-the-art systems. Their conclusion is blunt: “reporting a single performance score is insufficient to compare non-deterministic approaches”. Score distributions are the comparison, not single numbers.

Reinforcement learning gives the same demonstration with the arithmetic attached. Deep Reinforcement Learning that Matters, published in 2018, ran TRPO on HalfCheetah-v1 and describes the procedure exactly: “We perform 10 experiment trials, for the same hyperparameter configuration, only varying the random seed across all 10 trials. We then split the trials into two sets of 5 and average these two groupings together.” One algorithm, one configuration, split by seed alone, and the two halves differed significantly — an average 2-sample t-test across the training distribution of t = −9.0916, p = 0.0016. The same paper notes that published results are often averaged over fewer than five trials. Five is the number of runs it takes to reproduce that spurious difference on demand.

The more alternatives you search, the stronger the evidence needed for the selected winner.

Steps

A release gate for added complexity

The gate should make it possible to reject a sophisticated method even after a team has already spent heavily on it.

The Epic Sepsis Model is what a missing gate costs. It reached hundreds of US hospitals, and it has failed independent external validation twice. Wong and colleagues published the first failure in 2021, in JAMA Internal Medicine. Across 38,455 hospitalisations of 27,697 Michigan Medicine patients, the model returned a hospitalisation-level AUC of 0.63 (95% CI, 0.62–0.64) and missed 1,709 of the 2,552 sepsis cases: “The ESM also did not identify 1709 patients with sepsis (67%) despite generating alerts for an ESM score of 6 or higher for 6971 of all 38 455 hospitalized patients (18%), thus creating a large burden of alert fatigue.” That is step 3 and step 5 failing together. The matched comparison was never public, and the lifecycle cost arrived as alert fatigue on the wards.

A separate group reached the same verdict three years later. Ostermayer and colleagues measured the model across 145,885 encounters in two county emergency departments in 2024. At the vendor-recommended threshold, sensitivity was 14.7% and positive predictive value 7.6%, with a median lead time of 0 minutes: “The ESPMv1 provides suboptimal diagnostic characteristics for undifferentiated patients in a county ED.” A median lead time of zero is step 1 unlocked. A warning that arrives at the moment of diagnosis supports no decision the clinician was not already making.

FigureProcess · 6 steps
  1. 1. Lock the intended use

    State the decision, population, fallback, and harm model.

  2. 2. Name the mechanism

    Connect the method to a diagnosed failure and measurable prediction.

  3. 3. Pass matched comparisons

    Beat strong and budget-aware baselines under the same protocol.

  4. 4. Pass method-specific stress tests

    Exercise shift, missing components, unsupported actions, or routing imbalance.

  5. 5. Price lifecycle cost

    Include serving, monitoring, retraining, audit, and rollback obligations.

  6. 6. Apply the stopping rule

    Reject the method when gains are small, unstable, or operationally unaffordable.

A negative result can be the most advanced outcome

A disciplined team may conclude that bagging does not reduce consequential errors, and it may also show negative transfer, no graph benefit beyond relational counts, or unsafe support gaps in offline RL. Those results prevent fragile complexity from reaching production and clarify what evidence is missing. Record them with the same care as a successful model. A reusable negative result includes the protocol, counterfactuals, uncertainty, and conditions under which the conclusion might change.

The published record shows what this looks like when it is done well. A Metric Learning Reality Check did not propose a loss; it re-ran 14 of them and found the 2006 contrastive loss at the top. Transfusion did not propose an architecture; it showed a 2,108,672-parameter model matching one of 23,570,408 on a real medical task. The offline RL paper gave the failure a name and a measurement before anyone proposed a fix for it. Each of those papers is a negative result. Each is cited more than most of the methods it examined.

Rejecting an unjustified method is evidence of mature machine learning, not a failed project.

Key takeaways