Medical image classifiers fail in two well-documented ways. They ignore rare diseases, and they collapse when moved to a new hospital. A third worry comes from hybrid quantum-classical models, where a large classical network feeds a tiny quantum circuit. In those systems, nobody can tell which part is doing the work. All three problems share a question that end-to-end training hides: is the failure, or the success, located in the feature extractor or in the small decision layer on top of it? We propose to answer that question directly. We freeze one shared feature extractor and swap only the decision layer. We then retrain that layer on the target hospital's data as a diagnostic, which splits each cross-site performance drop into an "encoder part" and a "head part," separately for common, medium, and rare classes.
Quantum circuit heads enter as a test case, not as a selling point. A parameterized quantum circuit is a small trainable sequence of quantum gates whose measured outputs serve as class scores. Such a circuit is an extremely parameter-sparse decision layer. If its claimed benefits (robustness to imbalance, less overfitting to scanner artifacts) are real, they must survive two checks: a head swap against classical heads of matched size on identical frozen features, and a test that randomizes the circuit. If they do not survive, the same protocol shows exactly where the classical network absorbed the task.
Core Claim
In a decoupled pipeline, the performance drop on an unseen hospital can be split class-group by class-group into a part caused by the frozen features and a part caused by the decision layer. We predict three things about this split. First, for common classes most of the cross-site drop sits in the decision layer, so it is fixable cheaply. Second, for rare classes most of it sits in the encoder, so no choice of head, quantum or classical, will rescue it. Third, any apparent advantage of a quantum head over a full end-to-end hybrid will disappear against a classical head with the same parameter count, which would show that the advantage came from removing classical dominance rather than from anything quantum. Each prediction can be falsified, and each matters on its own. The first tells clinicians whether a small labelled sample from a new site is enough. The second tells method builders where long-tail effort should go. The third gives hybrid quantum machine learning a reproducible attribution standard on real multi-center imaging data.
Prior Work and What Is Missing
Two methods supply our decoupling machinery. SEQUENT trains a classical compressor alongside a throwaway classical classifier. It then freezes the compressor and trains a quantum circuit whose measurements are the final outputs, so no classical layer can perform the task after the circuit. It was tested only on Moons and Spirals. Disentangling Quantum and Classical Contributions instead freezes an autoencoder trained only on reconstruction, so the encoder never sees labels. That paper also supplies a constraint: on MNIST the autoencoder-plus-circuit model reached 50.7% against 89.6% for the end-to-end "dressed" hybrid and 98.5% for a plain network. Label-free compression can discard what the classifier needs. Hybrid QML for COVID-19 CT is the closest medical application. It uses a ResNet18 backbone with a quantum circuit sandwiched between classical layers, reports three-way accuracy of 0.55–0.60 "matching classical baselines," and states openly that the classical layers' parameter count obscures the circuit's contribution. It uses one small single-source dataset. Our proposal moves the quantum test to large long-tailed and multi-center data and adds the capacity-matched controls that paper lacked.
The long-tail literature motivates where we look. Holste et al. show that on chest X-rays the decision layer, not the backbone, is the main source of tail collapse. Its weight norms track class frequency, and retraining only the head with class-balanced sampling ("classifier re-training," cRT) lifts NIH-CXR-LT tail accuracy from 1.7% to 30.0%. All of that evidence comes from a single source. Whether "the head is the problem" still holds after a hospital change is exactly what our decomposition tests. Holste et al. also constrain the design: pixel-space MixUp hurts on radiographs. Balanced-MixUp nonetheless helps on fundus images and transfers to Messidor-2. For that reason, any interpolation we test happens on frozen features, not pixels.
The multi-center literature sets the evaluation regime. Tetteh et al. show that balancing mini-batches across source datasets raises leave-one-dataset-out AUC from 0.82 to 0.86. They removed all rare diseases to do so. The ODELIA breast MRI dataset documents a drop from 79.0% macro AUC in-distribution to 63.1% at an unseen Spanish center, with no attempt to separate encoder from head. Shayeed et al. show that frozen ConvNeXt embeddings with a logistic regression head can be accurate and well calibrated on one center. This is the strongest argument that a simple classical head may be all one needs, and we treat it as such.
Research Program
We build one frozen encoder per training configuration and keep it fixed across every head we compare. The encoder is trained in the first SEQUENT phase on the natural long-tailed distribution, following Holste et al.'s finding that this yields good features. A small learned linear compressor then maps the features down to a dimension a simulated circuit can take, for example 10 to 16 values. That compressor is frozen too, so every head sees identical inputs. A second encoder variant follows Kölle et al. and uses label-free autoencoder compression. Comparing the two variants measures how much task information unsupervised compression loses on radiographs.
On those frozen inputs we train a family of decision layers under one shared tuning budget. The family comprises a linear head trained with cRT, a τ-normalized linear head, a classical multilayer perceptron whose parameter count matches the quantum circuit, a quantum circuit with angle encoding whose measured observables directly serve as class scores, and an end-to-end dressed hybrid as the "classical dominance" reference. With 19–20 classes and around ten simulated qubits, the circuit reads out several few-qubit observables rather than one per qubit. Each head is trained under three sampling schemes: natural sampling, class-balanced sampling, and joint domain-and-class balanced sampling. The joint scheme draws each batch evenly over (source site, class) cells, with smoothing for empty cells. It combines Tetteh's site balancing with Holste's class balancing, which nobody in the file has done.
The attribution tool is a target-site oracle head. For a source encoder $E_s$, let $P_t(E, h)$ be the metric on target site $t$ for encoder $E$ and head $h$. Let $h_s$ be the head trained on source data and $h_t^{*}$ a head of the same family retrained on a labelled split of the target site. Let $E_t$ denote an encoder trained on the target site itself. We define
$$ \Delta_{\text{head}} = P_t(E_s, h_t^{*}) - P_t(E_s, h_s), \qquad \Delta_{\text{enc}} = P_t(E_t, h_t^{*}) - P_t(E_s, h_t^{*}), $$
These two terms sum exactly to the total gap between a fully target-trained model and the deployed source model. We report both per class group (head, medium, tail) with bootstrap intervals over patients. The oracle head is used only for diagnosis, never as a deployed method.
Baselines
The naive reference point is end-to-end softmax training on pooled sources with random batches. Holste et al. report 1.7% tail accuracy and 0.164 group-wise average accuracy for this setup on NIH-CXR-LT. We rerun it on our splits rather than relying on that figure.
The strongest existing method for the imbalance axis is Holste et al.'s decoupled cRT with a linear head. It reports 30.0% tail and 0.369 group-wise accuracy on NIH-CXR-LT and 36.7% tail accuracy on MIMIC-CXR-LT. It is the strongest competitor because it already isolates the decision layer, which is exactly what SEQUENT does, using a head with no quantum component. No reported result was found in the file for cRT trained on NIH-CXR-LT and tested on MIMIC-CXR-LT, so we establish that number ourselves. The strongest method for the site axis is Tetteh et al.'s domain-balanced sampling, with an average leave-one-dataset-out AUC of 0.86. For ODELIA the reference is the Medical Slice Transformer's 63.1% out-of-distribution macro AUC. All heads share the same frozen encoder, the same seeds, the same number of hyperparameter trials, and the same early-stopping rule on source-only validation data.
Two ablations isolate our key ingredients. The first is the capacity-matched multilayer perceptron, which separates "small head" from "quantum head." The second is a randomized-circuit control, which keeps the circuit architecture and encoding but freezes the circuit at random parameters while training only an output scaling. If this control matches the trained circuit, the circuit is acting as a fixed random feature map or an identity pass-through. A head counts as beating cRT only if it improves out-of-site tail balanced accuracy and macro AUC beyond the bootstrap interval. It must do so without losing more than one point on head classes and without worse calibration. A quantum head counts as beating the matched perceptron only under the same criterion.
Why not just…?
Why not just use cRT with a linear head and skip the quantum circuit? This is a real threat, and our main prediction is that a linear or matched classical head will tie the circuit. We designed the study so that this outcome is still informative. The decomposition shows whether cRT's single-site gains survive a hospital change, which nobody has measured. A tie against the matched perceptron would be a clear negative result for quantum heads on clinical data, the first at this scale with proper controls.
Why not just train end-to-end with domain-balanced batches, as Tetteh et al. do? Their result was obtained after removing every rare class, so it says nothing about the tail. An end-to-end model also cannot separate encoder failure from head failure, which is the quantity we measure. We run their sampler end-to-end as a baseline. If it matches the decoupled heads on tail classes across sites, decoupling buys nothing for deployment, and our contribution narrows to diagnosis.
Why not just use label-free autoencoder features, which guarantee the encoder cannot solve the task? Kölle et al.'s MNIST result, 50.7% against 89.6% for the end-to-end hybrid, suggests the cost in accuracy is severe. Subtle radiographic findings are likely to be lost first. We include it as the second encoder variant. Its tail-class gap relative to the supervised-then-frozen encoder quantifies the price of strict transparency.
Why not just fine-tune on each new hospital? That requires labelled target data, including rare cases a new site rarely has. Our oracle head uses exactly such data, but only to locate the failure. If $\Delta_{\text{head}}$ dominates, the practical recommendation becomes "collect a small labelled set and retrain only the head." If $\Delta_{\text{enc}}$ dominates, fine-tuning the head is futile and the encoder must change.
Proposed Experiments
The primary testbed pairs NIH-CXR-LT and MIMIC-CXR-LT. We restrict to the classes the two label sets share, train on one, test on the other in both directions, and report group-wise balanced accuracy, macro AUC, and expected calibration error. The CXR-LT gold-standard set of 406 expert-labelled images checks whether conclusions survive the label noise behind the 12.3% average AP drop the challenge overview reports. Tetteh et al.'s leave-one-dataset-out protocol on four chest X-ray datasets provides the multi-site check, extended by restoring the natural class frequencies they removed. ODELIA, evaluated leave-one-center-out over six centers, tests a different modality with a three-class imbalance (978 normal, 195 benign, 309 malignant), and we additionally report specificity at 90% sensitivity. COVID-CT-MD reconnects to Sünkel et al.'s setting as a small-sample sanity check. Where patient metadata permits, we run AFISP on each pipeline's errors to see whether hidden failing subgroups move when only the head changes.
Three outcomes would be decisive. The first is the sign and size of $\Delta_{\text{head}}$ versus $\Delta_{\text{enc}}$ on tail classes. If the encoder term is not the larger one, our second prediction is wrong and head-level long-tail methods deserve more cross-site attention than we expect. The second is whether joint domain-and-class balanced head training shrinks $\Delta_{\text{head}}$ relative to class-only balancing. The third is the ordering of trained circuit, matched perceptron, and randomized circuit. A trained circuit that beats both controls on out-of-site tail metrics would be the first controlled evidence of a quantum decision-layer benefit on clinical imaging. Any other ordering tells hybrid quantum practitioners precisely which part of their model was doing the work.
References
- SEQUENT: Towards Traceable Quantum Machine Learning Using Sequential Quantum Enhanced Training
- Disentangling Quantum and Classical Contributions in Hybrid Quantum Machine Learning Architectures
- Hybrid Quantum Machine Learning Assisted Classification of COVID-19 from Computed Tomography Scans
- Long-Tailed Classification of Thorax Diseases on Chest X-Ray: A New Benchmark Study
- Balanced-MixUp for Highly Imbalanced Medical Image Classification
- Multi-Domain Balanced Sampling Improves Out-of-Distribution Generalization of Chest X-ray Pathology Prediction Models
- A European Multi-Center Breast Cancer MRI Dataset
- Reliable Dental Radiograph Diagnosis via Calibrated Hybrid Representation Learning
- Towards long-tailed, multi-label disease classification from chest X-ray: Overview of the CXR-LT challenge
- A data-driven framework for identifying patient subgroups on which an AI/machine learning model may underperform