Article sections
Define the question before the experimentA baseline is not just the old modelWhat does an ablation study establish?Seeds and repeated runsData splits and adaptive decisionsStatistical significance and practical impactExperiment tracking and reproducibilityReading an experiment reportField scenarioHow to read a four-condition ablation experimentFrequently asked questionsReferencesDefine the question before the experiment
"A better model" is not a testable hypothesis. For example, "Patch-based processing can improve recall for defects smaller than 2 mm while keeping per-product latency below 40 ms" can become an experimental question. This question clearly specifies the target population, metric, resource limit, and comparison method. Even if the result differs from expectations, it is possible to see what was learned.
The experimental unit matters. Hundreds of images taken of the same product do not count as hundreds of independent products. If there is dependence at the product or production-batch level, the analysis should preserve that structure. Writing down the hypothesis and primary decision criteria before constructing the test set reduces the risk of researchers unknowingly changing their objective to suit the metric.
A baseline is not just the old model
A baseline can be the simplest reasonable method: a fixed threshold, a classical image-processing rule, the existing operator workflow, or a small network. Without a strong baseline, we cannot measure the benefit of a complex architecture. In an industrial setting, a few morphological operations can sometimes be faster, more interpretable, and sufficiently stable compared with a large detector.
For a fair comparison, data splits, input resolution, label definitions, training budgets, and decision-threshold strategies should be comparable. When each method naturally operates differently, the meaning of equal conditions must be explicitly justified.
What does an ablation study establish?
Ablation examines the contributions of a system's components by removing or changing them. For example, in a system that includes high-resolution cropping, data augmentation, and an additional attention block, the effect of each element can be tested separately. Simply concluding that "the full model is better" does not reveal which component provides the benefit.
Components can interact. If cropping helps only under particular lighting conditions, a single-variable analysis may not be sufficient. Factorial experiments or interaction analysis should be performed when necessary.
Seeds and repeated runs
In neural networks, initial weights, sample order, and some GPU operations involve randomness. Success in a single run is weak evidence of general superiority. Multiple independent training runs allow examination of the mean, distribution, and worst cases. However, merely changing the seed and evaluating on the same test set compromised by leakage does not produce reliable results.
For small datasets, resampling and confidence interval calculations at the participant, product-group, or production-batch level can be useful. Confidence intervals can appear narrower than they should when calculated as though the samples were independent.
Data splits and adaptive decisions
Validation data is used for model selection, hyperparameter tuning, and threshold optimization. The test set is reserved for the final, less biased evaluation. Repeatedly selecting features based on the test score effectively turns the test data into a development set. In that case, a new, independent validation set is needed.
If transfer between facilities is expected, a random image split alone is not enough. External testing on another line, another batch, and under different camera conditions reveals the project's actual generalization limits.
Statistical significance and practical impact
A difference of 0.2 points between two models may not change the product decision. The absolute number of defects, false-reject volume, latency, and maintenance cost should be examined together. A p-value does not convey the importance of the effect size; a confidence interval alone does not establish causality either. When many models are continually tested, publishing only successful results creates selection bias.
For the business, the best option may sometimes be a model that offers a major speed or maintenance advantage in exchange for a small loss in quality, rather than one with higher mAP. The link between technical and business metrics should be established in the experimental plan.
Experiment tracking and reproducibility
The experiment log should include the data version, the configuration rather than just the training command, the model's starting weights, the evaluation code version, and details of metric calculations. Recording random seeds is useful, but exact bit-level reproducibility may not be achievable for some parallel operations. This distinction should be reported explicitly.
Archiving only a model's weights can make it impossible to determine later which data it was trained on. A model card, test report, and decision records reduce technical debt on the path to production acceptance.
Reading an experiment report
A good report brings together the problem, sampling, test protocol, baseline method, comparisons, uncertainty, failure examples, and limitations. Alongside the performance table, it should state which conditions were excluded. For example, a test set sampled only from the day shift is not evidence of sustained generalization on the night shift.
Reporting that "the hypothesis was not supported" is also a valuable experimental outcome. It prevents the engineering team from spending resources on an improvement whose effect has not been demonstrated.
Practical field scenario: two models with the same result
Suppose Model A consistently achieves 95–96% recall across five runs, while Model B achieves 97% in one run and stays in the 92–95% range in the others. Reporting only the best test result can misleadingly favor B. When the data split and independent sampling are preserved, both the average effect and uncertainty are measured. The decision depends on the business's tolerance for risk.
An example experimental matrix
Consider comparing a baseline model, high-resolution cropping, and different data augmentation options for small-defect detection. Four conditions can be planned: baseline only, baseline+cropping, baseline+augmentation, and baseline+cropping+augmentation. Test each condition on the same product-based split with multiple seeds. This allows the standalone effect of cropping to be distinguished from its interaction with augmentation. However, each additional condition incurs extra compute cost; the comparison objectives should be limited in advance.
Statistical comparisons should match the unit of evaluation. Bootstrapping 20 frames taken of the same product as though they were 20 independent products can make the confidence interval appear too narrow. A cluster bootstrap based on product identity or production batch may be more appropriate. If there are few groups, the resulting uncertainty interval may also be unreliable; this limitation should be reported.
What must stay constant for a fair comparison
Using a different image-cropping strategy for each model can sometimes be justified because models have different input requirements. Nevertheless, the extent to which performance comes from the architecture versus preprocessing should be explained. Speed results should not be compared directly if hardware, inference runtime, warm-start conditions, or batch size differ. A claim of being "faster" must specify the hardware and data type used in the comparison.
What counts as an improvement?
First define the acceptance thresholds: recall for critical defects must remain at or above a specified level, false rejects must not exceed the operators' hourly capacity, and end-to-end latency must fit within the line's cycle time. Then examine the candidates' quality-cost trade-offs. Even if a candidate achieves an F1 score 0.3 points higher in a single test, superiority is not established if it shows a substantial regression on a different production batch. Negative results should also be included in the decision record.
Points to check in the field
- Data source: Clearly define the product, batch, camera, shift, and sampling method.
- Decision unit: Do not conflate measurements at the image, defect, product, and production-line levels.
- Success criterion: State the metric target together with latency, throughput, cost, and tolerance for critical errors.
- Alternatives: Assess whether simpler methods and improvements to the physical setup can meet the same need.
- Validation: Use a test protocol that is independent of the training data and representative of production conditions.
- Change log: When the model, threshold, optical settings, or label definitions change, archive the rationale for the decision and its outcomes.
How to read a four-condition ablation experiment
To examine high-resolution cropping and augmentation, use four conditions: the baseline, baseline plus cropping, baseline plus augmentation and both additions together. Suppose illustrative recall values are 90%, 94%, 92% and 93%. Combining changes is not automatically best. In this example, adding augmentation when cropping is already used changes recall by minus one percentage point; this is not a general result about augmentation.
Before interpreting the numbers, verify identical independent test parts, the same decision unit and comparable tuning budgets. Measure latency if cropping requires additional model calls. Repeat each condition with multiple seeds and report variation. Comparing paired predictions on the same test parts reveals which errors changed, rather than merely placing average scores side by side.
Do not keep redefining success after reading the test table. Define constraints on false rejection and p99 latency while maintaining the critical-defect recall requirement. The highest-recall condition may be infeasible if it violates those constraints. Record rejected alternatives and failed runs alongside the selected condition so that future data does not trigger an unnecessary repeat of the same hypothesis.
Frequently asked questions
Is the result of a single run enough?
It is generally not enough to claim that a method is superior; multiple seeds and independent testing are useful.
Why is a baseline important?
It shows the real added benefit of a complex solution over a simple, practical alternative.
References and further reading
The primary sources below explain the methods and evaluation protocols. Numerical scenarios in this article are educational examples, not measured results from a facility or model.