The model scored beautifully on the standard exam — about 97.8% correct, near-perfect agreement with expert pathologist grading.
Then my release gate ran. Nine questions. It answered six. Not allowed to ship.
Nothing was wrong with the score. The gate asks what scores cannot see.
Failure 1: it learned the photo cleanup, not the biology
Show it an image straight from a real hospital scanner — no color correction, nothing. Correct answers fell from about 97% to 78%.
The standard benchmark ships cleaned-up images. My model trained on those. It learned the cleanup. Not the tissue.
Same tissue, different scanner, and it was looking at a new world. This trap is documented in the research literature. I reproduced it by trusting the benchmark. That part is on me.
Failure 2: it could not tell clean from damaged
Real labs produce blurry patches, tissue folds, air bubbles constantly. You want the model to say "I am not sure" — never to guess confidently through a torn image.
Its ability to separate clean images from damaged ones measured 0.83 on a scale to 1.0. The gate demands 0.90. Honest fail, with a breakdown of which damage fooled it most.
A medical-adjacent tool that never says "not sure" is how a machine kills someone politely.
The two paranoia checks (built before training, on purpose)
- The patient-split check. The same patient contributes many images. If one lands on both the study list and the exam list, the model scores by recognizing the person, not the disease. My pipeline refuses to build that dataset — it throws an error instead of a score.- The label-shuffle control. Shuffle every label. Retrain from scratch. The pipeline must now score random chance. Anything better means answers are leaking. A scoreboard you cannot prove cheatable is a scoreboard you cannot trust.The gate can fail. That is what makes it a gate. Day after tomorrow: the fix for the cleanup trap came from physics, not from more data. Live demo (runs on my own GPU): histogate.vercel.app · Weights and full measured results are public: huggingface.co/riju279/histogate · Everything else: github.com/hr1juldey/histogate