Wrong Preprocessing Does Not Destroy Pretrained Features: It Destroys Their Conditioning

Feeding an ImageNet-pretrained backbone inputs scaled to [0, 1] when its preprocess_input expects a different range is among the most common defects in public medical-imaging code: we detect it in 15 of 22 repositories (68.2%) where our rule can fire. It is silent (training converges, metrics look publishable) and it is usually assumed to corrupt the pretrained representation. We show that assumption is wrong. Across five backbones on a 3,264-image four-class brain tumour MRI benchmark, a linear probe on standardised features recovers accuracy to within 1.5 points of correct preprocessing, and the difference is not statistically significant for four of five backbones (McNemar, p > 0.26). The same violation costs up to 37.1 points when the features are used as-is. A 2x2 ablation over {linear probe, ReLU head} x {standardised, as-is} isolates the cause: standardisation moves the mean penalty from -10.7 to -1.5 points, while changing classifier family at fixed standardisation moves it by at most 2.1. The mechanism is measurable: under the violation ResNet50's pooled features contain 667 of 2,048 identically dead units and the feature covariance condition number rises from 1.4e3 to 6.0e9, which explains why standardisation repairs the loss entirely while a 10x epoch budget only halves it. Severity is further predicted by a statically known property, the backbone's preprocessing mode: caffe-mode backbones lose 22.6 points on average against 1.0 for tf/torch. We implement five such defects, with mode-based severity ranking, in an open-source detector; on our corpus the ranking reclassifies 8 of 15 violations as low severity.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-12-03
DOI
https://doi.org/10.5281/zenodo.24787917
Primary Topic
Machine Learning and Data Classification
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Wrong Preprocessing Does Not Destroy Pretrained Features: It Destroys Their Conditioning

Aroz Imran
Zenodo (CERN European Organization for Nuclear Research)
Machine Learning and Data Classification
preprint

Wrong Preprocessing Does Not Destroy Pretrained Features: It Destroys Their Conditioning

Aroz Imran
preprint en

Abstract

Feeding an ImageNet-pretrained backbone inputs scaled to [0, 1] when its preprocess_input expects a different range is among the most common defects in public medical-imaging code: we detect it in 15 of 22 repositories (68.2%) where our rule can fire. It is silent (training converges, metrics look publishable) and it is usually assumed to corrupt the pretrained representation. We show that assumption is wrong. Across five backbones on a 3,264-image four-class brain tumour MRI benchmark, a linear probe on standardised features recovers accuracy to within 1.5 points of correct preprocessing, and the difference is not statistically significant for four of five backbones (McNemar, p > 0.26). The same violation costs up to 37.1 points when the features are used as-is. A 2x2 ablation over {linear probe, ReLU head} x {standardised, as-is} isolates the cause: standardisation moves the mean penalty from -10.7 to -1.5 points, while changing classifier family at fixed standardisation moves it by at most 2.1. The mechanism is measurable: under the violation ResNet50's pooled features contain 667 of 2,048 identically dead units and the feature covariance condition number rises from 1.4e3 to 6.0e9, which explains why standardisation repairs the loss entirely while a 10x epoch budget only halves it. Severity is further predicted by a statically known property, the backbone's preprocessing mode: caffe-mode backbones lose 22.6 points on average against 1.0 for tf/torch. We implement five such defects, with mode-based severity ranking, in an open-source detector; on our corpus the ranking reclassifies 8 of 15 violations as low severity.

Zenodo (CERN European Organization for Nuclear Research)
Machine Learning and Data Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon