Clinically Targeted Latent Adversarial Training for Chest X-ray Report Generation

Automatic chest X-ray report generators write fluent text, but their worst errors are small in words and large in meaning. A report that says "evidence of pneumothorax" instead of "no evidence of pneumothorax" differs by one token and can change a patient's treatment. Adversarial training teaches a model by repeatedly showing it the input changes that most hurt it. Applied in the usual way to report generation, it would hunt for perturbations that raise the token-level loss. Most of that loss is spent on phrasing and boilerplate, so the adversary would mostly find ways to scramble wording, not ways to flip diagnoses. We propose to change what the adversary looks for. Inside the model, at the hidden representation where image features are handed to the language decoder, a small bounded perturbation is optimized to make the decoded report clinically disagree with the unperturbed report. That disagreement is scored by a differentiable neural copy of a clinical labeler. The generator is then trained to resist those perturbations.

In two sentences: we run latent adversarial training on a vision-language report generator, but the inner adversary maximizes a change in diagnostic findings rather than a change in tokens. We test, using clinical metrics independent of the adversary's scorer, whether this makes stated findings harder to flip and reduces hallucinated findings without hurting report quality.

Core Claim

Three lines of prior work make this possible but stop short of it. Defending Against Unforeseen Failure Modes with Latent Adversarial Training supplies the method. It applies projected gradient descent to hidden activations instead of inputs, and it reports a 68% improvement in the area under the robustness/clean-accuracy Pareto curve over input-space adversarial training on ImageNet. It studies classification and simple generation, and it always uses the task loss as the adversary's objective. CheXpert++ supplies the scorer. It distills the rule-based CheXpert labeler into a ClinicalBERT model with 99.81% parity and continuous, differentiable probabilities over 14 findings. Its authors note it could serve as a loss, but they never use it as an adversarial objective. Parameter-Efficient Generation of Natural Language Explanations for Chest X-ray Classification motivates the setting. It moves to an encoder-decoder design specifically so gradients can flow through a continuous latent space, and it names adversarial generation without reinforcement learning as future work that it does not attempt.

Our claim is specific. When the adversary's objective is clinical-label divergence rather than cross-entropy, latent adversarial training concentrates its robustness on the tokens that carry diagnoses: negation, certainty, and presence of findings. This should yield a lower rate of finding flips under unseen perturbations and fewer hallucinated findings than token-loss latent adversarial training, a non-adversarial clinical auxiliary loss, or input-space adversarial training. We further claim that clean RadGraph F1 does not drop, which extends the Pareto result of the latent adversarial training paper from classification to autoregressive generation. The file flags this extension as untested (Gap 3).

Research Program

The base system is an image encoder feeding a projection module into a pretrained language decoder, fine-tuned with parameter-efficient adapters as in Rio-Torto et al. Call the projected visual tokens $h$ (the model's "multimodal bottleneck"). At each training step we compute, under teacher forcing, the decoder's per-position token distributions. We then form a soft report: at each position, the probability-weighted average of token embeddings. This soft report is fed to CheXpert++, which returns finding probabilities $c(\cdot)$. The objective is

$$\min_\theta \; \mathbb{E}_{(x,y)}\Big[ L_{CE}(y \mid h_\theta(x)) + \lambda\, L_{CE}(y \mid h_\theta(x)+\delta^*) \Big], \quad \delta^* = \arg\max_{\|\delta\|\le\epsilon} \mathrm{KL}\big(c(\hat y(h)) \,\|\, c(\hat y(h+\delta))\big).$$

Here $\theta$ are the trainable parameters, $x$ the image, $y$ the reference report, $L_{CE}$ token cross-entropy, $\hat y(\cdot)$ the soft report decoded from a given latent, $\epsilon$ the perturbation budget, and $\lambda$ a weight. The adversary searches for the direction in latent space along which the model's diagnoses are least stable. Training asks the model to still produce the correct report at that point. The inner maximization runs a few projected gradient steps. As in the latent adversarial training paper, these gradients stop at the bottleneck and never pass back through the image encoder, which keeps the cost down.

Two technical risks are studied directly. The first is that CheXpert++ was trained on real text, not soft embedding averages, so the adversary might exploit scorer artifacts. We will measure agreement between CheXpert++ on soft reports and on greedily decoded reports, and inspect whether adversarial latents, once decoded, actually change findings. If agreement is poor, we fall back to scoring sampled decoded reports with a straight-through estimator. The second risk is layer choice. The file notes that the best perturbation depth is found empirically, so we sweep the bottleneck, an early decoder layer, and a middle decoder layer.

Baselines

The naive reference is the same architecture trained with cross-entropy only, with identical data, adapters, and number of optimizer steps. Every other method must at least match its clean clinical scores.

The strongest non-adversarial clinical method is the latent-alignment recipe of Rio-Torto et al., which adds a mean-squared-error loss on encoder latents and reports substantial CLEV gains. The file gives no numerical values for it (no reported result found on Lacuna for CLEV on MIMIC-NLE). We reimplement it in our backbone.

The strongest published report generators in the file are MAIRA-1 and MLRG. MAIRA-1 is described as reporting superior RadCliQ and RadGraph F1, but no exact numbers are found on Lacuna. MLRG reports relative gains only: 2.3% BLEU-4 on MIMIC-CXR and 2.7% RadGraph F1 on Two-view CXR. For context, Evaluating Progress in Automatic Chest X-Ray Radiology Report Generation reports that leading generators beat random retrieval by only 5.5% on RadCliQ. Because no absolute score is available to compare against, we will not claim to beat these systems on reported numbers. Instead, we apply our training to the strongest backbone we can reproduce and report it with and without the method.

Two ablations isolate the key ingredient. The first is standard latent adversarial training with a cross-entropy adversary at the same layer, budget, and step count; it tests whether the clinical objective matters. The second is a clinical auxiliary loss with no adversary: a CheXpert++ KL between the soft report and the labels of the reference report, weighted by $\lambda$. It tests whether the adversarial search matters. We also run input-space PGD on pixels, matched to the same wall-clock budget.

All methods get the same hyperparameter search budget (a fixed number of runs over $\lambda$, $\epsilon$, and learning rate), with selection on validation RadGraph F1 only. Beating a baseline means a lower finding-flip rate under held-out attacks, with a confidence interval over three seeds that excludes zero, and clean RadGraph F1 within noise of the naive reference.

Why not just…?

Why not just add CheXpert++ as an auxiliary clinical loss? This is the most serious threat. It is cheaper, and it may deliver most of the clean-metric gain. The difference we predict is in robustness. An average-case loss pushes predictions toward correct labels at the training point but says nothing about how close a nearby flip lies. Szegedy et al. is the classic evidence that average-case training leaves flips close at hand. The auxiliary-loss ablation settles this directly. If it matches our method on flip rate under unseen attacks and shifts, the adversarial component is not justified, and we will report that.

Why not just use ordinary latent adversarial training with the token loss? The latent adversarial training paper already shows gains from this approach, so it is the natural default. But a token-loss adversary spends its budget wherever the loss is easiest to raise, and for long, templated reports that is phrasing. The matched ablation measures whether the clinical objective buys extra finding stability per unit of budget. We will also report how much each adversary's perturbations change RadGraph findings as opposed to BLEU.

Why not just do adversarial training on pixels, or augment reports with paraphrases? The latent adversarial training paper reports that input-space adversarial training costs clean accuracy and generalizes poorly to unforeseen failures. MAIRA-1 used GPT-3.5 paraphrase augmentation and still hallucinated clinical changes. Paraphrases also leave findings fixed by design, so they cannot teach the model which small changes flip a diagnosis. Both are run as compute-matched baselines rather than dismissed.

Why not just optimize RadGraph F1 with reinforcement learning? RadGraph F1 is the better-aligned metric. However, it is non-differentiable (RadGraph), and the file notes that policy-gradient text training is unstable. More importantly, it is our held-out evaluation. Training on it would make the evaluation circular, which is exactly the problem we avoid by keeping the adversary's scorer (CheXpert++) separate from the evaluation metrics (RadGraph F1, RadCliQ).

Proposed Experiments

Training and in-distribution evaluation use MIMIC-CXR. We report RadGraph F1 and RadCliQ, which has the highest reported correlation with radiologist error counts (Kendall tau b = 0.522 in Yu et al.). We also report BLEU-4, only to detect fluency damage. MIMIC-NLE with CLEV tests the explanation setting of Rio-Torto et al. Cross-institution transfer is tested zero-shot on IU X-Ray, which On the Automatic Generation of Medical Imaging Reports and TieNet used with lexical metrics only; we add clinical metrics.

The central robustness measure is the finding-flip rate: the fraction of studies in which a perturbation changes the certainty (present, uncertain, absent) of any RadGraph-extracted observation. RadGraph extraction reports NER micro F1 of 0.94 on MIMIC-CXR, so these measurements are reasonably reliable. Crucially, RadGraph is not the adversary's scorer. Perturbations are all unseen at training time: pixel-space PGD aimed at changing the report, common image corruptions (noise, contrast, JPEG compression), and the cross-institution shift.

Hallucination is measured as the rate of RadGraph "definitely present" observations absent from the reference. On a sample of about 200 studies, a radiologist error audit following the Yu et al. error categories checks that metric changes reflect real errors. Given the reported inter-annotator agreement of 78.2% in CheXpert++, the audit uses two readers and reports their agreement.

The decisive checks are three. First, the clinical adversary should beat both the token-loss adversary and the auxiliary loss on flip rate at equal clean RadGraph F1. If the auxiliary loss ties, the proposal's core claim fails. Second, gains should appear on RadGraph F1 and the human audit, not only on CheXpert-derived scores. Gains confined to CheXpert-derived scores would indicate overfitting to the scorer. Third, the layer sweep should show whether clean-metric preservation holds at the bottleneck, which tells us whether the Pareto result for classification carries over to generation.