Pre-Training Acceptance Gate: Catch Mammography Label Leakage

Figs. 1 and 2 of arXiv:2611.32899 by Toufah, Saad and El Hafidi: KAU-BCMD whole-breast mammograms of BI-RADS 1, 4 and 5 with different native pixel sizes, and the geometry and texture control AUCs.

If you have trained a mammography classifier on a public dataset and got an AUC close to 1.0, check whether the model looked at the breast at all. A preprint posted on 24 November 2026 shows that in one widely shared dataset, the BI-RADS class can be read off the image width and height in the file header, before a single pixel is decoded.

The paper, arXiv:2611.32899 by Achraf Toufah, Rana Saad and Moulay Youssef El Hafidi of Qanary Inc., describes a pre-training acceptance gate, a handful of deliberately weak classifiers that see only non-diagnostic information, run before anyone trains the model they care about. If one of them beats a fixed threshold, the study stops and the dataset gets investigated. The authors ran it on six public mammography datasets, and three failed at least one control.

The work came out of a benchmark comparing quantum and classical classifiers on breast images. The authors say that without the check, they would expect every arm of that benchmark, quantum and classical alike, to have scored near AUC 1.0 on their local copy of one dataset. The paper itself contains no quantum computation.

How the gate works

Each control is the same untuned scikit-learn HistGradientBoostingClassifier (default hyperparameters, random_state=0), trained on an input that should carry no information about the diagnosis and scored by AUC against the label. A control should land near 0.50. The stop threshold is 0.60, written down before the controls were run on the CMMD dataset. The controls are:

  • Geometry: image width, height, megapixels and aspect ratio. No pixel is decoded; four integers come from each file header.
  • Texture: Laplacian variance, gradient energy, intensity standard deviation and contrast range, computed after resizing every image to a common size so geometry is gone. This catches export and compression signatures.
  • Batch or site: the sub-collection or acquisition-batch identifier alone, for example a patient-ID prefix.
  • Single covariate: one variable such as age. This one is reported as context and never stops a study, because age predicts malignancy in a diagnostic cohort.
  • Identifier order: the numeric serial part of the patient ID alone. The authors added this one after the fact, and they label it post hoc throughout.

The classifier is left untuned on purpose, so nobody can say the gate was optimised to fail. That also means a pass is only a lower bound: this learner, on these features, found nothing.

What it found

KAU-BCMD. In the authors’ local copy, the BI-RADS class is encoded as folder membership, and no positive image shares its pixel dimensions with any negative image. Every image above 5 megapixels is BI-RADS 1, every BI-RADS 4 image is 0.27 megapixels, and each of the 24 BI-RADS 5 images has its own size. The geometry control returned AUC 1.0000. A public Kaggle archive of the same dataset showed the same pattern (mean AUC 0.979 over 20 patient-grouped splits); its BI-RADS 4 images are exactly 800 pixels wider than in the local copy, so the two are different exports of the same images. Both classes are whole-breast craniocaudal and mediolateral-oblique views, as the featured image shows, so lesion crops do not explain it. The authors point to separate export or cropping steps for the two classes, though they did not observe how the files were made.

CMMD. All 5,202 images have the same dimensions, 2294 by 1914, so geometry sits at 0.5000 by construction, and the leak comes from the archive structure instead. The archive holds two sub-collections: D1 is 50.9% malignant and D2 is 98.4% malignant. The D1 or D2 prefix in the patient ID predicts malignancy at AUC 0.7753 on its own. Restricting to D1 passed the registered geometry and texture controls, and then the post hoc identifier-order control scored a test AUC of 0.9926. The label file is ordered in long runs of one diagnosis, so the serial number alone recovers the label.

CBIS-DDSM. Here the signal is weaker and not a lookup. The classes share 122 image dimensions, yet geometry predicted pathology at a mean AUC of 0.654 for the pooled mass and calcification cohorts over 20 splits. That verdict rests on a statistic the authors chose after seeing results, and on the single official splits the mass and calcification cohorts fall below the stop. They also found that combining the two official cohorts under the official splits puts 31 patients in both training and test.

Passes. INbreast (geometry only, 0.486), the 59.8% of VinDr-Mammo the authors could download (geometry only, 0.573) and the simulated M-SYNTH cohort passed the few controls run on them.

Resizing does not fix it

The usual reflex is to resize everything to 224 by 224 and move on. On KAU-BCMD that removes the geometry channel and leaves a texture difference that still separates the classes at 0.847 on the public archive. Equalising the short axis first did not help, and a “resolution-matched” subset below 0.5 megapixels still failed because no true match exists. The authors’ reading, which they did not test further, is that resampling cannot give two classes a common file history.

A pass is not a certificate

CMMD D1 was adopted as the clean cohort after the pooled set failed, it passed both registered stop controls, and it stayed the working cohort until someone tried the serial number. Each control only detects the channel its authors thought of. The geometry check would never have caught CMMD, and the batch check would never have caught KAU-BCMD, which is why the gate has several controls.

Where it fits in a data pipeline

The geometry control is cheap enough to run on every dataset at intake. For about 2,000 images the classifier fit takes seconds. Reading headers from cloud storage is the slow part: about four minutes for the 10,229 CBIS-DDSM DICOM objects and about 25 minutes for the VinDr-Mammo subset. If you run a platform that ingests DICOM archives for annotation or training, the header fields are already being parsed. Fitting a quick classifier from width, height, bit depth and collection or site ID to the label, before any model is trained, costs little.

The authors’ recommendations are narrow and testable. Report the control AUCs in any paper that trains on a public mammography dataset. State the sub-collection composition when pooling. Check patient overlap whenever official splits from different cohorts are combined. Treat record order and identifiers as potential label carriers.

The paper also checks whether KAU-BCMD was big enough. The local copy had 60 BI-RADS 4 to 5 breasts against 938 BI-RADS 1. With a 25% test split that is about 15 positive test breasts, and the smallest AUC difference detectable with that is roughly 0.15. The planned benchmark targeted 0.02, so the dataset could not have supported it even with clean headers.

Limits

  • The registration is an internal dated protocol, not a public registry entry. The KAU-BCMD local-copy analysis was an ad hoc check that came before the gate was written, and the batch and identifier-order controls were added after earlier results were known.
  • Only the geometry control was run on CBIS-DDSM, INbreast and VinDr-Mammo. Texture, batch, covariate and bit-depth checks were not.
  • For CBIS-DDSM, a digitised-film dataset cropped to the breast, image size may partly reflect breast size, digitiser or site, so the premise that geometry carries no diagnostic information is weaker there.
  • The scripts that produced the initial KAU-BCMD and CMMD D1 values are not available. The released acceptance_gates.py is a reconstruction from the written specification. The follow-up 20-split results are reproduced end to end by the released notebooks.
  • The downstream cost of a failing control, meaning how much a real classifier’s AUC is inflated by the leaking channel, was not measured.
  • Six datasets is a small base, and the two where the first failures turned up are not independent of the finding. Results describe the copies analysed, some of which were incomplete.
  • Verdicts near the threshold move with it. At 0.55 VinDr-Mammo and CMMD D1 would fail; at 0.70 CBIS-DDSM would pass. The KAU-BCMD and pooled CMMD failures hold from 0.55 to 0.75.

Licence, code and status

The paper is a 27-page arXiv preprint under CC BY 4.0, under review at the Journal of Data-centric Machine Learning Research (DMLR), and not yet peer reviewed. Code and derived tables are on Zenodo at doi:10.5281/zenodo.24372683: the code is MIT-licensed and the tables are CC BY 4.0. The deposit contains no mammograms. acceptance_gates.py takes a CSV with one row per breast or image, a label column, a patient column and the control features, and exits with an error if a stop control goes above 0.60. It does not extract the features for you; the inventory and download scripts are not in the deposit, so you compute width, height and texture statistics yourself (for DICOM, pydicom covers the header side). The source datasets keep their own licences, from CC BY 4.0 for KAU-BCMD and CMMD to PhysioNet credentialed access for VinDr-Mammo.

Source: Toufah, Saad and El Hafidi, “Label leakage through file headers: geometry and batch confounds in public mammography datasets, and a pre-training acceptance gate”, arXiv:2611.32899 (CC BY 4.0). Featured image uses Fig. 2 of the preprint, which shows KAU-BCMD images (Alsolami et al., CC BY 4.0), with credit to the authors.

We build custom medical imaging platforms — advanced DICOM viewers, AI segmentation, and the clinical systems around them.

Copyright © 2026 PYCAD. All Rights Reserved.