arXiv:2610.25488cs.CVOct 2026

Manuscript Offprint

arXiv:2610.25488

SlimFormer++: Token Mixing Where It Matters for Efficient 3D Medical Image Segmentation

Yang Hong, Lei Zhang, Zhihong Liu, Jianqing Mo, Xujiong Ye

Yang Hong, Lei Zhang, Zhihong Liu, Jianqing Mo, Xujiong Ye

Abstract—To determine where computation is needed in volumetric segmentation networks, we analyze block-level redundancy and stage-wise token-mixer contribution. Centered Kernel Alignment reveals high input–output representational similarity within blocks of representative convolutional, hybrid, and Transformer-style segmentation networks. Similarity-guided pruning reduces their parameter counts by 39–75% while decreasing mean Dice by less than 0.4 percentage points. To examine token mixers within blocks, we introduce Anatomical Relation Distortion, which quantifies how bypassing a mixer distorts feature relations between labeled anatomical positions. Applied to an unpruned candidate architecture, Centered Kernel Alignment indicates high representational redundancy in intermediate encoder mixers, whereas Anatomical Relation Distortion shows that they contribute little and the bottleneck mixer most. These findings motivate SlimFormer++, which uses Selective Mixing blocks with windowed Mamba mixing in the first encoder stage and only residual channel MLPs in deeper stages. At the bottleneck, Augmented Mixing injects similarity-weighted sparse long-range context into the axial taps of a depthwise convolution at cost linear in voxel count. Evaluated against 12 baselines across eight public CT, MRI, and ultrasound datasets (1,809 cases), SlimFormer++ achieves the highest mean Dice (87.84%) and lowest mean HD95 (6.50 mm) with the fewest parameters (5.98 million). These results support stage-aware token mixing as a design strategy for improving the accuracy–efficiency trade-off in volumetric segmentation. The source code is available at https://github.com/WHHHHHY822/SlimFormerPlusPlus.

Index Terms—Efficient network, medical image segmentation, redundancy analysis, token mixer, Transformer

I. INTRODUCTION

EFFICIENT volumetric medical image segmentation has received increasing attention because clinical deployment often requires accurate three-dimensional delineation under strict constraints on memory, latency, and computational cost [1]. High spatial resolution and large through-plane depth make dense feature extraction and long-range context modeling costly in CT and MRI volumes. Recent segmentation architectures [2]–[4] therefore typically adopt U-shaped encoder–decoder designs in which repeated computational units progressively encode, transform, and fuse multiscale volumetric features. These units use convolution [5], [6],

Figure

Fig. 1. Performance–efficiency trade-off of representative 3D segmentation architectures. Dice is the unweighted mean over the eight datasets. Arrows connect each model before pruning (hollow) to its pruned variant (filled), and the percentage on each arrow is the resulting parameter reduction.

self-attention [7], [8], or state-space operations [9], [10] to transform spatial features. Under the MetaFormer abstraction [8], these spatial operations serve as token mixers within computational blocks that are stacked across stages to form a hierarchical encoder. The repeated application of these blocks motivates a fundamental architectural question: are all blocks necessary to maintain segmentation accuracy?

Lightweight operators [11]–[13] reduce the computational burden of individual blocks, but they do not reveal whether the repeated use of such blocks across the network is necessary. Hybrid designs show the benefit of combining different operators [14], [15], but leave open how the contribution of each operator varies across depth.

Using Centered Kernel Alignment (CKA) [16], we examine block-level redundancy in convolutional nnUNet, hybrid TransUNet, and the Transformer-style SlimFormer backbone [17]. Similarity-guided pruning reduces model size with little loss of segmentation accuracy (Fig. 1). Because block-level pruning keeps or removes each block as a whole, every retained block keeps its token mixer. This leaves a finer-grained question in architecture design: Does the token mixer within each block contribute equally at every stage?

We therefore examine token mixing along two complementary axes: representation redundancy measured by CKA and contribution measured by Anatomical Relation Distor-

(Corresponding author: Lei Zhang.)

Yang Hong, Lei Zhang, Zhihong Liu, and Xujiong Ye are with the University of Exeter, Exeter, U.K. (e-mail: yh693@exeter.ac.uk; L.Zhang6@exeter.ac.uk; zl645@exeter.ac.uk; X.Ye2@exeter.ac.uk).

Jianqing Mo is with Guangdong University of Technology (e-mail: momolon@gdut.edu.cn).

tion (ARD), as illustrated in Fig. 2. ARD quantifies how bypassing a token mixer distorts feature relations between labeled anatomical positions. Across the tested mixers, token-mixing contribution is nonuniform across depth: it is highest at the bottleneck (BN), followed by the first encoder stage, and smaller in the remaining encoder stages. These findings support a stage-aware design principle: strong token mixing at the bottleneck, lightweight mixing at the first encoder stage, and none in the remaining encoder stages.

We instantiate this principle in SlimFormer++ (Fig. 3), using Selective Mixing (SM) in the encoder and Augmented Mixing (AM) at the bottleneck. Evaluation on eight public CT, MRI, and ultrasound datasets demonstrates its accuracy–efficiency trade-off.

Our main contributions are summarized as follows:

  1. Block-level redundancy analysis. We use CKA to identify redundant blocks in convolutional, hybrid, and Transformer-style volumetric segmentation networks. Pruning these blocks reduces parameter counts by 39–75% while lowering mean Dice by less than 0.4 percentage points (pp). These findings motivate the compact hybrid macro architecture of SlimFormer++, described in Section III-B.

  2. Stage-aware architecture design. We introduce ARD, a contribution measure complementary to CKA, and use the two measures to derive the stage-aware principle for token mixing. SlimFormer++ implements this principle through Selective Mixing, which restricts windowed Mamba mixing to the first encoder stage, and Augmented Mixing, which injects similarity-weighted sparse remote context into a bottleneck depthwise convolution at linear cost in voxel count (Section III-C).

  3. Extensive evaluation. We compare SlimFormer++ with state-of-the-art methods and pruned baselines on eight public datasets spanning CT, MRI, and ultrasound. SlimFormer++ achieves the highest mean Dice (87.84%) and lowest mean HD95 (6.50 mm) among the compared methods. In the efficiency comparison, it also has the fewest parameters (5.98M), the lowest computational cost in GFLOPs, and the lowest peak inference memory.

References (48)