A segmentation model trained on scans from one hospital often breaks on scans from another, because scanners from different vendors render the same tissue with different brightness and contrast. The strongest current fixes create synthetic "new hospitals" during training, either by randomly remapping image intensities or by letting an adversary pick the intensity remapping that hurts the model most. The adversarial versions work better than random ones, but they share one weakness. An adversary that only maximizes the model's error is rewarded just as much for producing an impossible image, for example one where the adrenal gland has the same intensity as the surrounding fat, as for producing a realistic hard image. The model then spends capacity on images no scanner would ever produce, and small structures, which are the easiest to erase, are hit hardest.
We propose to reward the adversary for regret rather than raw error. Regret is how much worse the deployed segmentor does on a synthetic image than a reference segmentor that was briefly allowed to specialize to that image's style. If an image is unsolvable, both fail and regret is near zero, so the adversary learns to stop producing it. If an image is solvable but the deployed model has not learned it, regret is high. We pair this objective with a small learned policy that picks per-organ intensity transformations for each slice, and we compute regret per organ and then average across organs, so that large organs cannot dominate the adversary's reward. The claim is specific and falsifiable. On cross-modality and cross-scanner abdominal benchmarks, a regret-driven adversary should match the best augmentation method on average Dice and clearly beat it on small organs, while a raw-error adversary with the same policy and search space should not.
Where this sits in prior work
Two medical papers already run min-max games for single-source domain generalization, which means training on one site and testing on unseen sites. AdverIN learns monotonic intensity mappings, applied separately to k-means spatial regions, that maximize segmentation error. ADS uses a style generator based on adaptive instance normalization, again trained to maximize error, together with a patch-contrastive mutual-information penalty that keeps anatomy intact. Both motivate this proposal, since each shows that targeted perturbations beat random ones. ADS's own ablation is also relevant: removing the anatomy penalty costs more Dice (about 2.3%) than removing the adversary (about 1.6%). We read that as evidence that the binding problem is not finding hard images but keeping the adversary from producing invalid ones. Our proposal replaces the fixed penalty with a reward that discourages invalid images directly. We keep AdverIN's monotonic constraint, so intensity ordering within a region is preserved, but we do not rely on it to stop organs from merging into their surroundings.
SLAug supplies our search space. It uses global Bézier intensity curves plus class-conditioned local location-scale shifts, all sampled randomly, and it is the strongest reported method on abdominal CT-to-MRI. Our adversary chooses parameters in exactly this space, so any gain comes from how parameters are chosen, not from a richer space. FreeSDG is a deterministic frequency-mixing alternative and serves as a further baseline.
The adversary's design comes from the co-evolution literature. LAS-AT trains a strategy network with REINFORCE to pick attack strength for each sample, which yields a curriculum that hardens as the model hardens. It needed extra stability losses to stop the strategy network from finding degenerate attacks, and that need is the same failure our regret term targets. ATLA alternates a learned adversary policy with the agent being trained. LLM red-teaming work, including MART and Self-RedTeam, shows that the whole game is bounded by the referee, because a flawed verifier lets the attacker score without producing valid attacks. Our contribution is to make the referee a learnability test rather than a hand-written validity rule.
Two other papers constrain the design. AMOS reports that small structures such as the adrenal glands and duodenum remain poorly segmented and that MRI from unseen scanners drops by more than 20%. DL+EKE finds that standard single-source methods fail first on rare and overlapping classes. Together these define where a gain would matter most and what a pixel-averaged loss would hide.
Core Claim
Let $f$ be the deployed segmentor and $g$ a reference segmentor. Let $T_\phi(x)$ be the image produced when the adversary's policy, with parameters $\phi$, picks SLAug-space transformation parameters for slice $x$. Let $\ell_c$ be the Dice loss restricted to organ $c$, and $C$ the number of organs. The adversary maximizes the organ-averaged regret
$$R(\phi) = \frac{1}{C}\sum_{c=1}^{C} \big[\ell_c(f(T_\phi(x)), y) - \ell_c(g(T_\phi(x)), y)\big],$$
and $f$ minimizes its ordinary loss on the resulting images. The reference $g$ is a copy of $f$, refreshed every $k$ steps, that has taken a few extra gradient steps on recent adversarial batches. It is a cheap stand-in for "a model that could have learned this style." Averaging over organs rather than pixels gives the adrenal gland the same weight in the adversary's reward as the liver.
We predict three things. First, regret-driven training produces fewer near-unsolvable images than raw-error training, measured by the fraction of generated images on which even $g$ scores below a Dice threshold. Second, the extra robustness concentrates on small organs. Third, a raw-error adversary given the same policy degrades small-organ Dice relative to random SLAug sampling.
Research Program
We will build three components. The first is a lightweight policy network that reads a downsampled slice and outputs a distribution over SLAug parameters: Bézier control points, plus a per-class location and scale. It is trained with REINFORCE against the regret reward, as in LAS-AT, using a 2D or 3D U-Net segmentor. AMOS found the classic 3D U-Net competitive with transformer backbones, so no architectural novelty is needed. The second component is the reference-model refresh schedule. We will sweep $k$ and the number of specialization steps to map the trade-off between compute and how good an estimate of solvability $g$ provides. The third is an analysis suite that logs, over training, the per-organ distribution of adversary rewards, the solvability fraction, and how much each organ's contrast to its neighbors shrinks in generated images. This makes visible whether the adversary is erasing small structures.
Baselines
The naive reference is empirical risk minimization: train on the source modality with standard flips and crops. On abdominal CT-to-MRI, ADS reports 76.60% Dice for it. The strongest existing method is SLAug, at 88.63% Dice on abdominal CT-to-MRI and 87.67% on cardiac LGE-to-bSSFP, against a target-supervised upper bound of 90.85% on abdomen (SLAug). We will rerun SLAug from its published configuration on our splits and confirm we reproduce roughly those numbers before comparing.
The adversarial competitors are AdverIN and ADS, reimplemented on the same backbone. AdverIN reports a prostate average of 82.4% versus 79.8% for its own baseline, but in a multi-site protocol. FreeSDG is included for completeness. All methods share the backbone, the data splits, the number of segmentor gradient steps, and an equal hyperparameter search budget of twenty trials each. We additionally report wall-clock time with the policy and reference-model cost included, and we rerun SLAug with its training extended to match our wall-clock, so that compute alone cannot explain a gain.
The ablations isolate the key ingredient. The first and most important uses the same policy and the same search space but a raw-error reward. A second keeps regret but sums the loss over pixels rather than averaging over organs. A third keeps the regret reward but replaces the policy with per-sample gradient ascent over SLAug parameters, which is AdverIN-style optimization. Beating the method means three things together: average Dice at or above rerun SLAug, with differences tested across five seeds; a mean gain of at least two Dice points on the AMOS small organs (adrenal glands, duodenum, esophagus, gallbladder); and the raw-error ablation failing to show that gain.
Why not just…?
Why not just sample SLAug's augmentations randomly, as SLAug already does? This is the real incumbent, and the honest prior is that random sampling from a well-designed space is hard to beat. SLAug's own analysis says random global augmentations either stay too close to the source or distort too much. AdverIN and ADS both report that targeted perturbations beat random ones. Still, those comparisons used different search spaces. Our matched-space comparison settles the question. If regret-driven sampling does not beat random sampling in the identical space, the policy is not worth its cost, and we would report that.
Why not just bound the adversary's budget instead of computing regret? Clipping how far the Bézier curves and local shifts may move also prevents impossible images. This is a serious threat. We will sweep the budget for the raw-error adversary and compare against its best setting chosen on a source-only validation split. Regret should win specifically on small organs, because a single global budget small enough to protect the adrenal gland is too small to challenge the liver. If the best-clipped adversary matches regret, the simpler method wins.
Why not just use a hand-designed curriculum that ramps augmentation strength? LAS-AT's evidence that a learned per-sample strategy beats fixed schedules comes from CIFAR AutoAttack accuracy (55.52% versus 53.90% for AWP), not from medical domain shift. So we include a linear-ramp SLAug baseline under the same budget. A ramp cannot adapt per organ or per slice, and we expect it to help large organs and leave small ones unchanged. The per-organ results will show whether that expectation holds.
Why not just collect multi-site data or adapt at test time? Privacy rules and regulatory weight-freezing often rule both out. Test-time input adaptation such as INPUTADAPTER also needs target data, which single-source generalization forbids. We treat the target-supervised result as an upper bound, not a competitor.
Proposed Experiments
The primary benchmark is abdominal CT-to-MRI in the SLAug and ADS protocol, with Dice and 95th-percentile Hausdorff distance reported per organ. The second is cardiac LGE-to-bSSFP. The third, and the setting where we expect the largest effect, is AMOS. There we train on AMOS CT and test on AMOS MRI broken down by scanner, and separately train on MRI from one scanner group and test on the others. AMOS reports a drop of more than 20% across unseen MRI scanners, but no reported result was found on Lacuna for any single-source augmentation method on these AMOS splits, so we will establish ERM and SLAug numbers ourselves. Multi-site prostate MRI tests whether the method transfers to a one-organ task, where averaging over organs gives no advantage. There we expect parity with AdverIN and ADS (ADS reports 71.42% average Dice over five unseen sites).
The decisive check has two parts. The first is the per-organ difference between the regret and raw-error adversaries on AMOS small organs. The second is the solvability fraction logged during training. If regret training does not reduce the share of unsolvable generated images, or if that reduction does not coincide with small-organ gains, then the mechanism we propose is wrong even if average Dice improves.
References
- Domain Generalization with Adversarial Intensity Attack for Medical Image Segmentation
- Adversarial Consistency for Single Domain Generalization in Medical Image Segmentation
- Rethinking Data Augmentation for Single-Source Domain Generalization in Medical Image Segmentation
- Frequency-Mixed Single-Source Domain Generalization for Medical Image Segmentation
- LAS-AT: Adversarial Training with Learnable Attack Strategy
- Robust Reinforcement Learning on State Observations with Learned Optimal Adversary
- MART: Improving LLM Safety with Multi-round Automatic Red-Teaming
- Chasing Moving Targets with Online Self-Play Reinforcement Learning for Safer Language Models
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation
- Experience with Single Domain Generalization in Real World Medical Imaging Deployments
- Adapt the Data, Not the Model: Input-Space Adaptation for Frozen Time-Series Predictors