Hospitals scan the same organ at different slice spacings. A research CT might be reconstructed every 1 mm, while a routine scan from another site might be reconstructed every 5 mm. Cheap 3D segmentation networks often split each 3D filter into an in-plane 2D filter followed by a short 1D filter across slices. That 1D filter has a fixed number of taps, so a 3-tap kernel covers about 3 mm of anatomy at one hospital and 15 mm at another. The network has no way to know which. We propose to define the across-slice filter as a smooth function of physical distance in millimetres, sampled at whatever slice positions the scan actually has. The across-slice view then stays the same physical size at every site. The scan's own header supplies the slice spacing, so the method needs no data from other hospitals, and it adds almost no parameters because only the cheap 1D part changes.
This matters most for the rare, small targets that clinicians care about. A 1 cm kidney tumor spans ten slices at 1 mm but only two at 5 mm. When a model trained at one spacing meets another, the error should fall mostly on these minority-class lesions, while the large organs barely move. Average Dice, the usual overlap score, hides this failure. We therefore treat class imbalance as the lens for evaluating cross-site robustness: the claim is tested on small-lesion sensitivity and size-stratified overlap, not on organ-level averages.
Core Claim
In a factorized "2D + 1D" volumetric network trained at a single institution, we expect two things to hold when the network meets a new hospital's slice spacing. First, swapping the fixed-tap through-plane filter for a continuous, millimetre-indexed filter should shrink the accuracy loss. Second, that gain should be concentrated on small lesions. It should hold beyond what three simpler fixes achieve: thick-slice augmentation, resampling to a common spacing, and feeding the spacing to the network as a conditioning signal. If spacing-conditioned feature scaling with augmentation matches the continuous kernel, the claim collapses to "tell the network the spacing." We will report that outcome as the finding.
Where This Sits in Prior Work
Several papers supply the factorization we build on.
- Automatic Brain Tumor Segmentation Using Cascaded Anisotropic Convolutional Neural Networks splits 3D convolutions into 3×3×1 in-plane and 1×1×3 through-plane filters, and cascades three networks to isolate small tumor subregions.
- Revisiting 3D Context Modeling with Supervised Pre-training for Universal Lesion Detection in CT Slices reports that 2D+1D factorization halves compute while keeping detection accuracy.
- Reinventing 2D Convolutions for 3D Images splits 2D kernels across three orthogonal planes.
All three fix the through-plane extent in voxel units and were evaluated within one data distribution. We keep their cost profile and change only how the across-slice taps are defined.
Two papers motivate the gap by showing that spacing matters.
- The KiTS19 challenge report shows that its single-institution data leave external generalization unverified. Its winning entry relied on careful resampling.
- Slice Imputation shows that the handling of through-plane resolution swings Dice substantially. On the Medical Segmentation Decathlon brain tumor task, linear interpolation scored 68.69% against 82.91% for a standard U-Net and 87.00% for learned imputation. It fixes the problem in preprocessing with a separate synthesis model; we try to make the segmenter itself spacing-aware.
The closest adaptive methods learn their adaptation from image content.
- Domain and Content Adaptive Convolution (DCAC) generates convolution weights from a learned domain code and global image features. It requires several annotated source hospitals to train its domain predictor.
- DeformUX-Net learns spatial sampling offsets from features.
Our conditioning signal is known physical metadata rather than a learned guess, it works from a single source, and it touches only the 1D axis that the shift actually affects. Gap 2 in the file also warns that DCAC-style controllers fed by global features are dominated by background tissue. Conditioning on spacing sidesteps that problem.
Two imbalance methods constrain the evaluation.
- A Unified Loss for Handling Inter-Class and Intra-Class Imbalance (Balance Loss) shows that summing many small background probabilities biases training. On KiTS19 tumor it raises Dice from 59.8 with cross-entropy to 66.8.
- Class Unbiasing for Generalization in Medical Diagnosis shows that rebalancing alone does not stop shortcut features from forming.
We train every arm with Balance Loss, so any gain we report cannot be explained as better imbalance handling.
Research Program
The through-plane layer works as follows. For channel $c$, the 1D weight at physical offset $\Delta z$ (in mm) is
$$w_c(\Delta z) = \sum_{b=1}^{B} a_{c,b}\,\phi_b(\Delta z),$$
where:
- $\phi_b$ are $B$ fixed smooth basis functions (Gaussian bumps) tiling a physical window of, say, ±12 mm;
- $a_{c,b}$ are the learned coefficients.
For a scan with slice spacing $s$, the layer places taps at $\Delta z = k s$ for every integer $k$ with $|ks|$ inside the window. It scales each tap by $s$ so the sum approximates the same integral at every spacing.
The cost is $B$ parameters per channel, comparable to a $K$-tap depthwise filter, and the physical receptive field stays constant regardless of spacing. Slice thickness, which can differ from spacing, is handled optionally by convolving the basis with a box of the stated thickness. This models the extra blur that thick slices introduce.
The in-plane 2D filters and the 1×1×1 channel mixing are left unchanged. We build the layer into two backbones:
- a 2D+1D residual U-Net;
- the compact grouped design of VeloxSeg, using its released code (JinPLu/VeloxSeg) and replacing its through-plane mixing.
Using two backbones tests whether the effect survives in an aggressively efficient network.
Training uses one institution. Every arm, including the baselines, gets the same thick-slice simulation: slices are averaged and subsampled to random spacings between 1 and 6 mm. We add this augmentation to all arms deliberately, because it is the obvious first thing a practitioner would try.
The analysis has two strands. The first decomposes cross-spacing error by lesion size. The second probes the mechanism by feeding deliberately wrong spacings at test time. If the model uses the spacing input, wrong spacings should hurt it.
Baselines
Naive reference. The do-nothing reference is the same 2D+1D network with fixed 3-tap through-plane filters, trained on native-spacing data with Balance Loss and tested as is. It measures the raw degradation we are trying to remove.
Resample to a common spacing. The strongest existing method is the pipeline behind the KiTS19 winner: a plain 3D U-Net with every scan resampled to a common spacing and intensities windowed. The challenge report gives it kidney Dice 0.974, tumor Dice 0.851, and composite 0.912 in distribution. It is the strongest competitor because resampling is the field's default answer to spacing variation. We run it with the same training data, the same Balance Loss, and the same augmentation budget, and report its parameters and memory alongside its accuracy. Beating it means two things. On thick-spacing test sets, small-tumor Dice and per-lesion sensitivity must be higher, with confidence intervals that do not overlap. In distribution, tumor Dice must stay within about one point of it, at a fraction of its memory.
Spacing-conditioned feature scaling. A spacing-conditioned fixed-kernel network takes the slice spacing through a small network that scales and shifts each channel (FiLM-style). It is trained with identical augmentation. This is the ablation that isolates our key ingredient. It receives exactly the same information, so any gap between it and our method reflects how the information is used: physically resampled taps versus channel modulation.
Continuous kernel in voxel units. A second ablation uses the continuous kernel indexed in voxel steps rather than millimetres. It separates the effect of a smooth basis from the effect of physical indexing.
Multi-source dynamic convolution. DCAC, run in its native leave-one-domain-out multi-source setting, serves as a privileged reference rather than a fair competitor. It reports average Dice of 65.10% on multi-domain COVID-19 CT and 90.51% on prostate domain 2. Matching it from a single source would be a meaningful result. Falling short of it would not refute our claim.
Slice Imputation. Slice Imputation followed by a standard U-Net is the preprocessing competitor. We charge its synthesis cost to its compute budget.
Why not just…?
Why not just resample every scan to a common spacing? Upsampling a 5 mm scan to 1 mm cannot recreate a lesion that falls between slices. The interpolated volume is also smoother than anything the network saw in training, so it is itself out of distribution. The Slice Imputation results show that naive interpolation can badly hurt Dice. This alternative is a real threat on large structures, and we expect it to tie with our method on kidney Dice. The spacing sweep and the lesion-size breakdown will show whether it falls behind specifically on small tumors. If it does not, our claim fails.
Why not just train a standard factorized network with aggressive thick-slice augmentation? A fixed 3-tap filter trained across spacings has to learn a single compromise. It cannot cover 6 mm of anatomy at 1 mm spacing and also stay local at 5 mm spacing. That is exactly the case for small lesions, where the right physical window is narrow. Augmentation is applied to every arm, so this alternative is already built into the naive baseline. The question is whether our method beats it, and the experiment answers that directly.
Why not just give the network the spacing as an extra input? This is the most serious threat, and it is why spacing-conditioned feature scaling is a primary ablation. Channel scaling can reweight features but cannot change which slices are aggregated. Our hypothesis is that this matters when the native field of view is mismatched with the lesion size. If the conditioned baseline matches us, we will report that metadata conditioning alone suffices and that the continuous kernel is unnecessary.
Why not just use a better imbalance loss? Balance Loss is applied in every arm. A loss can reweight lesion voxels, but it cannot restore through-plane context that the kernel's field of view does not cover.
Proposed Experiments
Controlled spacing sweep on KiTS19. We train on native KiTS19 data. We then evaluate on its held-out cases resimulated at 1, 2, 3, 5, and 6 mm slice spacing with matching slice thickness. Outcomes are tumor and kidney Dice, Dice stratified by tumor volume tertile, per-lesion detection sensitivity for the smallest tertile, and average surface distance. The decisive pattern has two parts. Our method's small-tumor curve should be flatter across spacing than every baseline's, including spacing-conditioned scaling. Kidney Dice should be flat for all methods. If the tumor-size breakdown shows no difference between methods, the imbalance framing is wrong.
Real cross-site single-source tests. We use the multi-domain prostate MRI (six sites) and COVID-19 CT (four sites) collections from the DCAC paper. We train on one site and test on all the others, rotating the source site. These shifts mix spacing with scanner and intensity differences, so the expected gains are smaller. We will also report how much of each site's degradation correlates with its spacing mismatch.
Second backbone. MSD Pancreas and MSD Hepatic Vessels provide small, anatomically variable minority structures. On these we test whether the effect survives inside the VeloxSeg backbone. We report parameters, FLOPs, and peak memory, so the efficiency side of the claim is measured rather than assumed.
Mechanism check. At test time we feed wrong spacings: a 5 mm scan labelled as 1 mm, and the reverse. Our method should degrade substantially under this manipulation. If it does not, its gains come from the smooth basis or from augmentation, not from physical conditioning, and the voxel-indexed ablation will show which.
References
- Automatic Brain Tumor Segmentation Using Cascaded Anisotropic Convolutional Neural Networks
- Revisiting 3D Context Modeling with Supervised Pre-training for Universal Lesion Detection in CT Slices
- Reinventing 2D Convolutions for 3D Images
- The state of the art in kidney and kidney tumor segmentation in contrast-enhanced CT imaging: Results of the KiTS19 Challenge
- Slice Imputation: Intermediate Slice Interpolation for Anisotropic 3D Medical Image Segmentation
- Domain and Content Adaptive Convolution for Domain Generalization in Medical Image Segmentation
- DeformUX-Net: Exploring a 3D Foundation Backbone for Medical Image Segmentation with Depthwise Deformable Convolution
- A Unified Loss for Handling Inter-Class and Intra-Class Imbalance in Medical Image Segmentation
- Class Unbiasing for Generalization in Medical Diagnosis
- Johnson-Lindenstrauss Lemma Guided Network for Efficient 3D Medical Segmentation