← Back to the vault

Lab Note · updated 2026-06-20

A Model Isn't the System

A trained model is a small fraction of a working measurement pipeline. Most of the code, and almost all of the risk, lives in the data, glue, configuration, and validation around it — which is why a model that scores well on a benchmark is not a result you can ship.

← Back to constellation

The thesis — When a microscopy team says "we have a model," they usually mean a network that segments cells, embeds a slide, or denoises a stack and scores well on a held-out set. That model is real, and it is a small fraction of what it takes to produce a number a biologist can act on. The system is everything around it: ingestion and chunking, metadata and provenance capture, QC gates, preprocessing, the model, post-processing, batch correction, the readout, and a report — each a place the result can silently go wrong. Sculley et al. made the general case in Hidden Technical Debt in ML Systems: the model code is a thin box in a much larger diagram, and most of a real ML system is glue, configuration, and data plumbing — where data dependencies are more dangerous than code dependencies because they change without a code diff to blame.

Why it matters — The cost of forgetting this is CACE — changing anything changes everything. Swap a scanner, bump a stain lot, repin a deconvolution library, retrain on a new plate, and the model behaves differently with nothing in the model to point at. Two failure surfaces compound it. The systems surface is Sculley's: entanglement, pipeline jungles, undeclared consumers, configuration debt. The methodology surface is Varoquaux & Cheplygina: a benchmark gain can be smaller than evaluation noise, so the model that "wins" may have won nothing real — and that gap is invisible if you only look at the model. A measurement is only as trustworthy as the weakest stage between the photons and the readout, and the model is rarely that stage.

How Fovea applies it — We build and instrument the whole pipeline, not the model in the middle. Quality is judged at the readout and the decision, not at the pixels — image quality is not one number. Every run is reproducible from a pinned environment and a recorded manifest — a pipeline you can re-run — and validated with metrics chosen for the biological question, not the convenient score (Metrics Reloaded), because validation without a ground truth is the normal case in microscopy. Acquisition itself is part of the system — measure where it matters — and verification and validation are tracked as two separate ledgers. The same worldview is why foundation models are not pipelines and why turning a notebook into a deployable workflow is its own discipline — from research script to production. The deliverable is never the model. It is the verified output.

A model that scores well is a component, not a result. If you can't say how the data got in, how the run reproduces, and what the output was validated against, you have a demo — not a measurement system.

References

References

Local graph