Can AI Design a Better nnU-Net? A Hypothesis-Driven Architecture Discovery Loop from Failures to Design Rules
Jiang et al. in Architectures
Can architecture failures become design rules?
Can AI Design a Better nnU-Net? A Hypothesis-Driven Architecture Discovery Loop from Failures to Design Rules
Why keep a failure?
Architectures are ranked by validation score and weaker trials discarded, even when their anatomical errors could diagnose a design flaw.
LLM agents read compute profiles and error strata, then test predicted changes instead of keeping only the top score.
Some lower-scoring ancestors later seeded the rules behind LeanNeXt.
A hypothesis must risk being wrong
- 1
Observe
Profile stage-wise compute and split errors by anatomy, boundary, precision and recall.
- 2
Predict
Before training, commit to predicted gains, regressions, a compute bound and a falsification test.
- 3
Audit
An independent reviewer checks premise and budget; only topology varies in 1,000-epoch runs under a frozen nnU-Net recipe.
- 4
Distill
Replicated mechanisms become trigger-to-action rules.
The loop turns experiments into rules

Panels (a-d) map the recipe-frozen nnU-Net testbed, audited four-stage loop, ex-ante hypothesis card and distilled cross-modality rules.
Reallocate 3D compute, don't just add it
- 1
R1: Slim the decoder
Replace decoder concatenation plus two 3³ convolutions with one 3³ convolution and an additive skip, freeing compute.
- 2
R2: Reinvest in depth
High boundary share means more ground-truth voxels lie on the 3D surface; reinvest savings in mid-encoder depth.
- 3
R3: Mix at coarse scales
Place four 7³ ConvNeXtV2 blocks at the coarsest stages, where large kernels cost less.
Thin organs reveal the decoder trade-off

Across AMOS22 folds 1-4, per-organ Dice shows decoder slimming hurts high-boundary-share organs; added mid-encoder depth recovers them.
A large kernel needs a deeper partner
Adding coarse 7³ blocks to R1 alone lowered KiTS23 Dice.
With mid-encoder depth in place, R3 improved KiTS23, AMOS22 and ACDC.
The result is an interaction, not a stand-alone kernel win.
Fresh seeds expose selection bias

KiTS23 fold-0, seed-0 screening is compared with fresh seeds 1-2: selected designs regress on average, while LeanNeXt and R1+R3 retain gains.
A candidate must survive repeat runs
A single-seed KiTS23 fold-0 score can reflect run-to-run noise.
LeanNeXt beat nnU-Net in all eight paired runs across KiTS23 folds 1-4.
Give local kernels region-wide clues
- 1
Diagnose
Nested compartments can share 3³ boundary texture; on KiTS23, tumour Dice tracked precision more than recall, with false positives in cyst-bearing kidneys.
- 2
Pool contrast
Gather mask-confined intensity moments and anatomy-conditioned core-rim-host contrast from detached coarse predictions, using native CT/MRI normalization.
- 3
Inject cues
Feed these features to decoder stages through zero-initialized 1³ projections.
- 4
Route by topology
Pre-training labels trigger R4 only for nested or dense scenes; the rulebook was tested zero-shot on eight unseen CT/MRI benchmarks.
LeanNeXt shifts the accuracy-speed frontier

Across three design datasets, 4-fold Dice vs native-plan step time puts LeanNeXt variants on the upper-left frontier within nnU-Net's 1× budget; ResEnc-M takes 1.34-1.50× the steps and 3.3× nnU-Net's parameter count.
A constant control isolates the cue
On KiTS23, replacing region statistics with constants at matched topology and parameter count removed R4's gain over LeanNeXt.
LeanNeXt+ gains with actual contrast support the physical cue, not extra parameters alone, as the active signal.
This supports the mechanism in the tested setup, not a universal benefit.
Where the evidence stops
One pipeline
Tests vary topology inside nnU-Net's frozen 3D segmentation recipe; they do not establish gains in arbitrary pipelines.
Selective R4
R4 is reserved for nested or dense multi-compartment labels and stays off for single-target or non-nested tasks.
Missing values
Several primary Dice gains, resource ratios, total evaluation counts and confidence intervals remain unresolved.
Why it matters
- A predicted failure can reveal which anatomical structures need more capacity.
- For 3D segmentation, reallocate saved decoder compute to mid-encoder depth; add coarse large kernels only afterward.
- Open question: will these trigger-action rules transfer beyond recipe-frozen nnU-Net and the tested CT/MRI tasks?
14 slides, 4 min
6 days ago