# nnU-Net memory fix lets one CT model replace TotalSegmentator's five networks

A preprint from DKFZ Heidelberg and partners shows that labelling more than 100 body structures in a 3D scan does not need tens of gigabytes of memory. The fix gives the same result and runs on a consumer graphics card.

- Category: Efficiency
- Readiness level: III (Open source) on Science Underway's four-step scale, as proposed
- Published: 2026-11-23
- Editor: Stefan Perdal
- URL: https://scienceunderway.com/articles/nnu-net-memory-fix-lets-one-ct-model-replace-totalsegmentator-s-five-networks

## The study

Segment Everything, Materialize Nothing: Exact Streaming Inference for Many-Class 3D Segmentation (preprint, not peer reviewed). arXiv 2611.27630. https://arxiv.org/abs/2611.27630

## At a glance

- What it shows: Popular tools that outline more than 100 organs and bones in a CT scan split the job across five or six separate AI models, because one model would need far too much memory. The authors change only the order of steps after the model. This cuts that memory from about 76 GB to about 1.3 GB, gives the same output and lets one model do the whole job up to 15 times faster.
- What it does not show: It does not show that a single model is better for patients, or better than carefully tuned specialist models. It has not yet been shown in routine hospital use.
- Why it matters: Whole-body scan labelling could run in seconds on an ordinary workstation instead of needing large servers. The same trick could apply to other 3D imaging tools built the same way.

## What the study shows

Segmentation means labelling every voxel, the 3D equivalent of a pixel, in a scan with the structure it belongs to. TotalSegmentator labels 117 structures in CT scans. MOOSE labels 125. Both are built on nnU-Net, a widely used open framework for medical image segmentation. Both split their label sets across five or six networks.

The authors trace the reason to memory. Standard inference keeps a score for every class at every voxel, twice: once at the model's working resolution and once at the scanner's original resolution. For a typical whole-body CT with 125 classes, that comes to about 76 GB.

Their fix has two parts. First, every step after the network only needs nearby slices, so the scan can be processed as a moving slab rather than held whole. Second, the model computes its 125 class scores from just 32 internal features through a simple final layer. Averaging those 32 features and applying the final layer later gives the same answer as averaging 125 scores. Together, these cut the memory to about 1.3 GB. The authors prove the result is identical in exact arithmetic. In practice the label maps match up to rounding, and no retraining is needed.

The authors then trained one larger network per label set and compared it with the toolkits' five or six specialist networks, which they retrained themselves on the same data. On a standard overlap score called Dice, the single model matched or slightly beat the specialists, by about half a point at most. End to end, their versions of TotalSegmentator and MOOSE ran 12 to 15 times and about 6 to 8 times faster than the released tools. A whole-body scan took roughly 6 to 11 seconds with under 8 GB of graphics memory.

The authors also report that the toolkits' shortcut of upscaling labels coarsely produces staircase edges. Doing the upscaling exactly raised Dice by about half a point to one point on two public abdominal CT benchmarks, BTCV and AMOS. This is a preprint and has not been peer reviewed.

## Our reading

In our reading, this is a good example of a limit that turned out to be an engineering habit rather than a law of the task. The idea is simple and the proof is short. Its value lies in where it sits: inside nnU-Net, which underpins many medical segmentation tools. The authors say the predictor is already in nnU-Net from version 2.9.0, so existing models get it without retraining.

The speed numbers need careful reading. The end-to-end gains mix three things: the memory fix, replacing five or six networks with one, and a generally tidier pipeline. In the authors' like-for-like test, the method alone made the toolkits' own split networks about twice as fast. Most of the larger gain comes from running one model instead of several, which the memory fix makes possible.

The quality claim is modest, and the authors say so. A gain of a few tenths of a Dice point is small, and each model was trained only once. On our Readiness Scale we rate this level III, open source available: the code is public in nnU-Net, but use by a named organisation is not yet documented.

The rest of the article (what it means, limits, what to watch) is free for members: https://scienceunderway.com/articles/nnu-net-memory-fix-lets-one-ct-model-replace-totalsegmentator-s-five-networks

## How this was made

An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.

---
Source: Science Underway, https://scienceunderway.com/. Please link to the article when you cite it.
