Manuscript Offprint
arXiv:2609.09634LightMedSeg-ISLES: Stroke Lesion Segmentation with 81x Fewer Parameters than nnU-Net
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
LightMedSeg-ISLES: Stroke Lesion Segmentation with 81× Fewer Parameters than nnU-Net
Giorgi Nikvashvili¹, Hanxue Gu², Jie Bao², Kang Wang², and Yang Yang²
¹ University of California, Berkeley, Berkeley, CA, USA ² University of California, San Francisco, San Francisco, CA, USA
Abstract. Large networks and ensembles often lead medical image segmentation challenges, but their storage and inference demands complicate deployment. We present LightMedSeg-ISLES, a 1.26-million-parameter pipeline for T1-weighted stroke lesion segmentation in ISLES'26. On a 146-case held-out cohort, flip test-time augmentation produces 0.618 mean Dice and 0.599 lesion-wise F1. A 102.35-million-parameter nnU-Net ResEnc-L produces 0.634 Dice and 0.544 lesion-wise F1 after size filtering. LightMedSeg therefore retains 97.5% of nnU-Net's Dice with 81.4× fewer parameters while improving lesion-wise F1 by 0.055. Its four-pass TTA operating point requires 4.7× fewer FLOPs per standardized patch than nnU-Net. It also slightly exceeds filtered UNETR++ and nnFormer. Longer training and stronger augmentation add 0.0358 Dice without increasing capacity, establishing a strong single-checkpoint alternative to much larger models.
Keywords: Stroke lesion segmentation · Lightweight neural networks · Magnetic resonance imaging · ISLES · nnU-Net
Medical image segmentation challenge winners often rely on large networks or ensembles. The BraTS 2020 winner combined 25 nnU-Net models, while the ISLES'24 winner used the large residual nnU-Net [4, 8]. Large checkpoints consume more storage, and ensembles require repeated forward passes.
We develop a single compact model that retains the accuracy of much larger systems. LightMedSeg-ISLES has 1.26 million parameters, or 1.2% of the nnU-Net reference. We compare it with nnU-Net and train UNETR++ and nnFormer as additional large baselines [3, 13, 10].
We select LightMedSeg [11] as the backbone because it combines local detail and global context with few parameters. Its local structural prior captures lesion boundaries and its spatial anchors provide global context. We pair the backbone
G. Nikvashvili et al.

Fig. 1: LightMedSeg architecture. Spatial anchors, the LSPM texture map , and multi-scale skip fusion add global context and local detail.
with lesion-aware sampling, deep supervision, strong augmentation, and native-space restoration for heterogeneous T1-weighted MRI.
LightMedSeg retains 97.5% of filtered nnU-Net's Dice and improves lesion-wise F1 by 0.055. A nine-model comparison identifies the strongest lightweight design, and lesion-size analysis localizes the remaining difference to small-to-medium lesions.
2 Methods
2.1 Architecture
LightMedSeg-ISLES is a compact 3D U-Net-like encoder-decoder [9] designed for a high performance-to-parameter ratio (Fig. 1).
The input volume is first processed by a patch-embedding module. A 3D GhostConv [2] projects the input to the common channel dimension , generating . At the same time, a global anchor detector generates 8, 16 or 32 (depending on model size) positional anchors that are used by the encoder and decoder blocks.
The embedded map is passed to the local structural prior module (LSPM, Fig. 2), which generates a texture map and an updated embedding .
The texture map is generated by subtracting the input from its smoothed version , and passing the result into a convolution and a sigmoid. Specifically:
The resulting output is a voxel-wise map where values close to 1 indicate high-detail regions and those close to 0 indicate low-detail regions. This is consumed by the encoder, allowing it to preferentially process high-detail regions.

Fig. 2: Local structural prior module (LSPM). Generates a texture map that highlights high-detail regions and an updated embedding that aims to incorporate structural complexity. Here, DWConv indicates a depthwise convolution.
The LSPM also produces embedding that incorporates structural complexity. To generate , the LSPM passes through the spatial gating module to calculate a per-voxel structural complexity score . This is done with a two-layer convolution head. is then projected to two channels using a pointwise convolution and subsequently softmax-ed to produce two expert weights and . The adaptive feature mixer feeds to two pointwise convolutions to generate projections and . These are then linearly combined using and to generate the final output , which is fed into the first encoder block ().
The four encoder outputs are mixed via the multi-scale skip-fusion module and supplied to the decoders. Decoder outputs are resized to the input resolution and passed to segmentation heads. Channel counts for the four stages are (8, 16, 32, 64), (8, 16, 64, 128), and (16, 32, 64, 256) for the small, medium, and large models, respectively. One main and three auxiliary heads provide deep supervision; only the main head is used for inference.
We evaluate the base model and a boundary-refined model (LMSBR). LMSBR downsamples the input and applies the base model, producing intermediate output (). This is then upsampled to the original input resolution , concatenated with the original full-res input , and passed into a final convolution to produce a boundary-refined version of the original low-resolution output. We also test LMSBR with a padded input. The large base model has 1,256,704 trainable parameters.
Four clinical variables modulate encoder features through feature-wise linear modulation (FiLM) [7].
2.2 Preprocessing and Sampling
The static preprocessing pipeline applies N4 bias-field correction, 1st–99th percentile clipping, and within-volume z-score normalization before training.
The dynamic pipeline reorients images to RAS and resamples them to 1-mm isotropic spacing. We crop the foreground for patch models and pad the input to for full-volume models.
Training uses patches. Half of the patches are centered on lesions and half on background. This sampling scheme increases the frequency of small lesions during training. The aug-v2 recipe includes flips, rotation, elastic deformation,
G. Nikvashvili et al.
zoom, simulated low resolution, smoothing, noise, contrast changes, and intensity shifts.
2.3 Loss Function and Optimization
The core loss follows Tyagi et al. [11]. At each segmentation head,
Terms are weighted by inverse voxel frequency. For an empty target, the foreground Dice term is replaced by the sum of predicted foreground probabilities divided by the patch volume, which suppresses false-positive voxels in empty patches.
All models use deep supervision. For main output and auxiliary outputs ,
LMSBR adds one lower-resolution auxiliary head with weight 0.0625. We use AdamW, batch size 4, and a cosine learning-rate schedule from to . We evaluate the checkpoint with the lowest validation loss.
2.4 Inference and Postprocessing
For models trained with cropped patches, overlapping windows generate predictions for the full volume. We use 50% window overlap and Gaussian blending. Flip test-time augmentation (TTA) averages four predictions: the original volume and one flip along each axis. We then threshold the probability map, remove small connected components, and restore the mask to the native image grid. Without TTA, we use a threshold of 0.7 and remove components smaller than . With TTA, we use a threshold of 0.5 and the same component filter.
3 Experiments and Results
3.1 Data and Evaluation Protocol
The dataset contains 1453 labeled T1-weighted MRI scans from ATLAS v2, SOOP, and new ISLES'26 cases [6, 1]. We reserve 146 cases for internal testing. The remaining 1307 cases are divided into 1045 training cases and 262 validation cases using random seed 42.
nnU-Net ResEnc-L is trained with five site-grouped folds. Each case is predicted by the fold in which it served as a validation case. The comparison therefore uses one out-of-fold prediction per case rather than a five-model ensemble. No evaluated case is included in the training data of its prediction model.
After training, each model is evaluated on the held-out cohort. We report mean Dice, absolute volume difference (AVD), absolute lesion count difference (ALCD), and lesion-wise F1. Predicted and reference components are matched when they overlap, and the analysis is performed in 1-mm space. We count batch-1 FLOPs on a common input (multiply-add = 2); TTA includes four passes.
3.2 Model Size and Refinement Variants
Nine variants are trained for 100 epochs with deep supervision, AdamW, and the same cosine schedule. We compare small, medium, and large versions of three designs: base LightMedSeg with patches, boundary refinement at the same patch size, and boundary refinement with a padded input. We evaluate the best validation checkpoint from each run.
Table 1: Comparison of nine LightMedSeg variants on the 146-case internal cohort. All models use the 100-epoch recipe without TTA. Parameters are reported in millions, and the best result in each metric is bold.
| Family | Size | Input | Params | Dice ↑ | Lesion F1 ↑ |
|---|---|---|---|---|---|
| Base | Small | 0.289 | 0.4989 | 0.4715 | |
| Base | Medium | 0.630 | 0.5665 | 0.5545 | |
| Base | Large | 1.257 | 0.5705 | 0.5423 | |
| Refined | Small | 0.290 | 0.4758 | 0.4157 | |
| Refined | Medium | 0.632 | 0.4980 | 0.5013 | |
| Refined | Large | 1.270 | 0.5511 | 0.5274 | |
| Refined-full | Small | 0.290 | 0.4418 | 0.4339 | |
| Refined-full | Medium | 0.632 | 0.5045 | 0.4884 | |
| Refined-full | Large | 1.270 | 0.5147 | 0.5245 |
The base design performs best at every matched model size. The medium base model has the highest lesion-wise F1, while the large base model has the highest Dice. Increasing the base model from 0.63 to 1.26 million parameters adds only 0.004 Dice. We select the large base model because it gives the highest overlap while remaining compact.
3.3 Training and Augmentation
At a fixed capacity of 1.26 million parameters, the training recipe increases Dice by 0.0358. Extending training from 100 to 1000 epochs raises Dice from 0.5705 to 0.5922. Adding aug-v2 reaches 0.6007, and training to convergence reaches 0.6063.
3.4 Comparison with Larger Models
With TTA, LightMedSeg reaches 0.6178 Dice and 0.5992 lesion-wise F1 using 1.26 million parameters. Filtered nnU-Net reaches 0.6339 Dice and 0.5441 F1 using 102.35 million parameters. LightMedSeg therefore retains 97.5% of nnU-Net's Dice with fewer parameters, while increasing F1 by 0.0551 and reducing ALCD from 2.36 to 1.88.
Raw nnU-Net obtains the highest Dice of 0.6464, but its lesion-wise F1 is 0.5317. Removing components below 50 mm³ increases F1 to 0.5441 and decreases
G. Nikvashvili et al.

Fig. 3: Training, lesion-size, and efficiency analyses. (a) Fixed-capacity training recipe; (b) final-model Dice by reference-lesion-volume quartile; (c) Dice versus parameter count; (d) lesion F1 versus operating-point FLOPs.
Dice to 0.6339. This result shows why both voxel overlap and lesion detection should be reported.
UNETR++ and nnFormer use their lowest-validation-loss checkpoints (epochs 478 and 561), validation-selected thresholds of 0.70 and 0.50, and no TTA. After the 50-mm filter, they reach 0.6166/0.5782 and 0.6142/0.5742 Dice/F1, respectively. LightMedSeg exceeds both models while using 33.9 fewer parameters than UNETR++ and 119.2 fewer than nnFormer.
On a common patch, LightMedSeg requires 76.5 GFLOPs per pass and 305.9 with four-pass TTA. The TTA cost is below nnU-Net (1434.8) and below nnFormer (486.1). UNETR++ uses 139.4 GFLOPs, below four-pass TTA but above a single LightMedSeg pass.
3.5 Lesion-Level Analysis
Q2 contains the largest Dice gap to filtered nnU-Net (0.588 versus 0.645). LightMedSeg is higher in Q1 and Q4, and all four models are close in Q4 at 0.797–0.814 Dice. Across cases, LightMedSeg exceeds nnU-Net in 59 of 146 comparisons; the paired Wilcoxon test gives p = 0.095.
Table 2: Larger-model comparison on the held-out cohort. nnU-Net denotes ResEnc-L, and parameters are in millions. GFLOPs are operating-point costs for a batch-1 patch; TTA includes four passes. All filtered rows remove components below .
Ambient Trance / Psybient / Ultimae
| Model / setting | Param. | GFLOPs | Dice | AVD | ALCD | F1 |
|---|---|---|---|---|---|---|
| LightMedSeg, no TTA | 1.26 | 76.5 | 0.6063 | 4767 | 1.97 | 0.5839 |
| LightMedSeg, TTA | 1.26 | 305.9 | 0.6178 | 4827 | 1.88 | 0.5992 |
| nnU-Net, raw (OOF) | 102.35 | 1434.8 | 0.6464 | 5363 | 2.45 | 0.5317 |
| nnU-Net, filtered (OOF) | 102.35 | 1434.8 | 0.6339 | 5370 | 2.36 | 0.5441 |
| UNETR++, filtered | 42.64 | 139.4 | 0.6166 | 4957 | 1.95 | 0.5782 |
| nnFormer-192, filtered | 149.80 | 486.1 | 0.6142 | 5149 | 2.10 | 0.5742 |
TTA changes the lesion counts from 235/107/228 to 234/84/229 TP/FP/FN. The F1 gain therefore comes mainly from fewer false positives.
4 Discussion
LightMedSeg-ISLES shows that strong challenge performance does not require a large segmentation backbone. The 1.26-million-parameter model retains 97.5% of filtered nnU-Net's Dice, improves lesion-wise F1 by 0.055, and slightly exceeds filtered UNETR++ and nnFormer.
Training strategy, rather than added capacity, drives the final performance. Longer training and aug-v2 add 0.0358 Dice without changing the network, whereas boundary refinement does not improve the base design. The remaining gap is concentrated in small-to-medium lesions.
The reported operating points follow different selection protocols: LightMed-Seg and nnU-Net use the internal cohort, whereas transformer thresholds come from the validation split. Results are computed in 1-mm analysis space, with the hidden native-space challenge set serving as the final benchmark. Efficiency is reported by model size and standardized patch-level FLOPs; whole-volume latency depends on image size and hardware.
5 Conclusion
LightMedSeg-ISLES retains 97.5% of filtered nnU-Net's Dice with one checkpoint, 81.4× fewer parameters, and 4.7× fewer operating-point FLOPs per standardized patch. A compact backbone with the right training recipe can therefore provide a practical alternative to large segmentation systems.
G. Nikvashvili et al.
References
-
Absher, J., et al.: The stroke outcome optimization project: Acute ischemic strokes from a comprehensive stroke center. Scientific Data 11, 839 (2024). https://doi.org/10.1038/s41597-024-03667-5
-
Han, K., Wang, Y., Tian, Q., Guo, J., Xu, C., Xu, C.: Ghostnet: More features from cheap operations. In: 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). pp. 1577–1586 (2020). https://doi.org/10.1109/CVPR42600.2020.00165
-
Isensee, F., Jaeger, P.F., Kohl, S.A.A., Petersen, J., Maier-Hein, K.H.: nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation. Nature Methods 18, 203–211 (2021). https://doi.org/10.1038/s41592-020-01008-z
-
Isensee, F., Jäger, P.F., Full, P.M., Vollmuth, P., Maier-Hein, K.H.: nnU-Net for brain tumor segmentation. In: Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries. pp. 118–132. Lecture Notes in Computer Science, Springer (2021). https://doi.org/10.1007/978-3-030-72087-2_11
-
ISLES'26 Organizing Committee: ISLES'26: Segmentation of heterogeneous t1-weighted stroke lesions. https://isles-26.grand-challenge.org/ (2026), accessed 5 August 2026
-
Liew, S.L., et al.: A large, curated, open-source stroke neuroimaging dataset to improve lesion segmentation algorithms. Scientific Data 9(1), 320 (2022). https://doi.org/10.1038/s41597-022-01401-7
-
Perez, E., Strub, F., Vries, H., Dumoulin, V., Courville, A.: Film: Visual reasoning with a general conditioning layer. Proceedings of the AAAI Conference on Artificial Intelligence 32 (04 2018). https://doi.org/10.1609/aaai.v32i1.11671
-
Ren, T., et al.: How we won the ISLES'24 challenge by preprocessing. arXiv preprint arXiv:2505.18424 (2025), https://arxiv.org/abs/2505.18424
-
Ronneberger, O., Fischer, P., Brox, T.: U-Net: Convolutional networks for biomedical image segmentation. In: Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015. Lecture Notes in Computer Science, vol. 9351, pp. 234–241. Springer (2015). https://doi.org/10.1007/978-3-319-24574-4_28
-
Shaker, A., Maaz, M., Rasheed, H., Khan, S., Yang, M.H., Khan, F.S.: UNETR++: Delving into efficient and accurate 3d medical image segmentation. IEEE Transactions on Medical Imaging 43(9), 3377–3390 (2024). https://doi.org/10.1109/TMI.2024.3398728
-
Tyagi, K., Rathi, V., Goyal, P.: LightMedSeg: Lightweight 3d medical image segmentation with learned spatial anchors. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops. pp. 3664–3673 (2026)
-
USC Stevens Neuroimaging and Informatics Institute: Anatomical Tracings of Lesions After Stroke (ATLAS) R3.0. https://fcon_1000.projects.nitrc.org/indi/retro/atlas.html (2026), accessed 25 June 2026
-
Zhou, H.Y., Guo, J., Zhang, Y., Yu, L., Wang, L., Yu, Y.: nnFormer: Interleaved transformer for volumetric segmentation. arXiv preprint arXiv:2109.03201 (2021), https://arxiv.org/abs/2109.03201