Manuscript Offprint
arXiv:2608.29167Feature-Spectral Fragility in Segmentation: Dataset Dependence, Architecture-Specific Localization, and Spectral Correlates
ABSTRACT
Robustness of segmentation models is commonly assessed through input-domain perturbations, while dependence on frequency content within learned feature representations remains less understood. We probe this dependence using targeted post-training low-pass interventions on internal representations of three segmentation architectures, ResNet50-UNet (CNN), VM-UNet (SSM), and Swin-UNETR (Transformer), across CVC-ClinicDB and ISIC2018, with headline evaluations performed on untouched held-out test sets. At cutoff , feature-domain low-pass filtering causes severe degradation on CVC: Dice drops by 100%, 73.2%, and 30.9% for CNN, SSM, and Transformer, respectively, compared with 9.4%, 10.3%, and 0.6% on ISIC. The cross-dataset difference is statistically significant for every architecture. Single-stage interventions further show that sensitivity is localized at architecture-specific depths: the CNN peaks at a mid/late encoder block, whereas the SSM peaks in an early encoder stage on both datasets. Native feature-domain spectral measurements show an inverse association between high-frequency energy and fragility on CVC; the relationship is only partial on ISIC and is therefore treated as a candidate correlate rather than a proven mechanism. Finally, Fourier augmentation improves robustness to input-space low-pass filtering but leaves feature-domain degradation essentially unchanged. These results show that feature-spectral robustness is strongly dataset-dependent, architecture-specific, and distinct from input-domain spectral robustness.
Index Terms— Spectral robustness, feature-domain intervention, segmentation, spectral fragility, state-space models, transformers
1. INTRODUCTION
Robustness of medical image segmentation models is commonly assessed with input-domain perturbations such as noise, blur, or domain shift [2]. Such tests measure whether a trained model remains reliable when the observed input changes, but they do not directly test whether predictions depend on specific properties of the learned representation. A feature-domain intervention that selectively modifies the frequency content of an internal representation therefore provides a direct probe of representation dependence [1].
Frequency bias in vision models has primarily been studied as a question of which input or representation statistics models exploit [1]. Less is known about three related questions in segmentation: how strongly predictions depend on feature-domain frequency content, where that dependence is localized within a network, and whether native feature spectra provide a measurable correlate of the observed fragility. These questions span substantially different segmentation architectures, including convolutional, state-space, and transformer-based models [3, 4, 5].
We study feature-spectral fragility through a common post-training intervention framework across three segmentation architectures and two datasets. We quantify whole-network feature-domain fragility, localize sensitivity through single-stage interventions, and measure native feature-domain spectral energy as a candidate correlate of fragility. All headline evaluations use untouched held-out test splits. We find: (i) feature-spectral fragility is dramatically larger on CVC than ISIC for every evaluated architecture; (ii) sensitivity is localized at architecture-specific depths, with CNN effects peaking in the mid/late encoder and SSM effects peaking in the early encoder; and (iii) native high-frequency energy shows an inverse association with fragility on CVC, although this relationship is not universal across datasets. Finally, Fourier augmentation improves input-domain spectral robustness without removing the corresponding feature-domain fragility.
2.1. Datasets and splits
CVC-ClinicDB (612 polyp frames) and ISIC2018 (2,594 lesion images) [6, 7]. Deterministic splits (seed 42) produce 489/61/62 and 2,075/259/260 train/validation/test images for CVC and ISIC, respectively. Validation data were used for model selection; test splits were untouched until final evaluation. All headline results use the held-out test sets (n = 62 for CVC and n = 260 for ISIC).
2.2. Architectures
CNN: ResNet50-UNet. The models are trained with BCE-WithLogits loss, Adam with learning rate , cosine annealing for 100 epochs, 256-pixel inputs, batch size 8, and seed 42. Input normalization is ImageNet-style for ISIC and [0, 1] scaling for CVC.
SSM: VM-UNet with 30 VSSBlocks and encoder depths [2, 2, 9, 2]. The CVC and ISIC models are evaluated using their respective trained checkpoints under the same feature-domain intervention protocol described below.
Transformer: Swin-UNETR, trained with BCEWithLogits loss, Adam with learning rate , cosine annealing for 100 epochs, 256-pixel inputs, batch size 8, and seed 42.
2.3. Interventions
Whole-network LP: Forward hooks are placed on semantic feature outputs and an ideal circular low-pass mask is applied in the 2-D DFT, setting frequencies above normalized radial cutoff to zero before inverse transformation. The headline comparison uses . All interventions are post-training; model parameters are unchanged.
Single-stage localization: To identify where feature-spectral sensitivity is concentrated, the same mask is applied to exactly one semantic stage at a time, with all other representations left unchanged. CNN localization is evaluated at native block granularity. For VM-UNet, the 30 VSS-Blocks are grouped into its eight native encoder/decoder stage-groups and the final VSSBlock of each group is intervened on. Because a CNN block and an SSM stage-group cover different fractions of their respective networks, absolute Dice magnitudes are compared only within an architecture; cross-architecture comparison is therefore restricted to the relative depth profile.
Native spectral energy: With no intervention, we compute the 2-D FFT power spectrum of each stage's clean output and report the fraction of energy in low ( 25% Nyquist), mid (25–60%), and high (> 60%) radial frequency bands at four spatial resolutions per architecture. CNN/SSM resolutions are {64, 32, 16, 8}; Transformer resolutions are {128, 64, 32, 16}. Cross-architecture comparison is therefore made only at matched spatial resolution, with the primary comparison at .
2.4. Metrics and statistics
We report pooled and per-image Dice. Paired Wilcoxon signed-rank tests are applied to per-image Dice for intervention effects. We use 10,000-resample bootstrap 95% confidence intervals, including a two-sample bootstrap for the CVC-versus-ISIC difference in mean Dice per architecture.
We define
so positive values indicate degradation. All training experiments use a single seed (42).
3. RESULTS
3.1. Whole-network effect and cross-dataset dependence
At , applying the feature-domain low-pass intervention causes severe degradation on CVC. Dice falls from 0.960 to 0.000 for the CNN (-100%), while the SSM and Transformer degrade by -73.2% and -30.9%, respectively. On ISIC, degradation is much smaller (-9.4%, -10.3%, and -0.6%); the CNN and SSM are nearly tied, with SSM slightly ahead (SSM > CNN > Transformer), whereas on CVC the ordering is CNN > SSM > Transformer.
The within-dataset intervention effects are significant at the per-image level (Wilcoxon ). More importantly, the cross-dataset difference is itself statistically resolvable: the 95% bootstrap confidence intervals for the difference in mean Dice between CVC and ISIC are [0.799, 0.841] for CNN, [0.543, 0.668] for SSM, and [0.237, 0.355] for the Transformer.
Input-feature dissociation. Input-domain low-pass filtering of equal nominal strength is substantially less destructive on CVC, reducing Dice by 20.0%, 6.2%, and 0.8% for the CNN, SSM, and Transformer, respectively. Fourier augmentation during SSM training further reduces input-domain degradation from -6.2% to -1.1%, yet feature-domain degradation remains -73.2%. Thus, robustness to spectral perturbations at the input does not automatically transfer to the learned feature representation.
3.2. Localization: where does the dependence live?
Single-stage intervention reveals that feature-spectral sensitivity is not distributed uniformly through the network (Fig. 2, Table 2). The CNN shows its strongest effect at encoder.block2 on CVC ( ) and at encoder.block3 on ISIC (-0.040), placing the peak in the mid/late encoder. In contrast, the SSM peaks in the early encoder on both datasets: encoder.stage1 on CVC produces , while encoder.stage0 on ISIC produces -0.0104.
The peaks occur in the early encoder for the SSM and in the mid/late encoder for the CNN, arguing against a universal rule that spectral dependence increases with depth. Because stage granularity differs between CNN and SSM representations, absolute Dice values are compared only within each architecture.
Table 1. Feature-domain fragility at on held-out test sets.
| Model | CVC (n = 62) | ISIC (n = 260) |
|---|---|---|
| CNN | -100.0% | -9.4% |
| SSM | ||
| Transformer | -30.9% | -0.6% |
ISIC SSM uses a different VSSM implementation than CVC (0.906 mean feature similarity).
Table 2. Most-damaging single-stage intervention on held-out data. Absolute Dice values are compared only within an architecture.
| Leg | Peak stage | ΔDice | Encoder position |
|---|---|---|---|
| CNN/CVC | enc.block2 | -0.537 | 2nd of 4 |
| CNN/ISIC | enc.block3 | -0.040 | 3rd of 4 |
| SSM/CVC | enc.stage1 | -0.190 | 2nd of 4 |
| SSM/ISIC | enc.stage0 | -0.0104 | 1st of 4 |
Absolute Dice values are not directly comparable between CNN blocks and SSM stage-groups because their intervention scopes differ.
3.3. Native high-frequency energy as a candidate correlate
At matched spatial resolution (Fig. 3), native high-band energy on CVC is CNN , an ordering that is the exact inverse of the fragility ordering (CNN most fragile, Transformer least). This inverse ordering suggests that native spectral composition may be associated with tolerance to high-frequency removal. However, this comparison contains only three architecture-level observations and therefore provides a candidate correlate rather than a demonstrated mechanism.
The ISIC data provide an important boundary condition. The Transformer again combines the highest high-band energy (0.093) with the smallest fragility (-0.6%), whereas the CNN/SSM energy ordering (0.051 versus 0.063) does not reproduce their fragility ordering (-9.4% versus -10.3%). We retain this mismatch rather than selectively reporting only supporting cases.
4. DISCUSSION AND CONCLUSION
Feature-domain spectral fragility is strongly dataset-dependent and is not uniformly distributed within a network. Feature-domain low-pass intervention produces severe CVC degradation but substantially smaller effects on ISIC, with statistically significant cross-dataset differences for all three architectures. Localization further shows architecture-specific depth profiles: CNN sensitivity peaks in the mid/late encoder, whereas SSM sensitivity peaks in the early encoder. Native high-frequency energy is inversely ordered with fragility on CVC, suggesting a useful candidate correlate, but the weaker ISIC correspondence shows that this is not a universal mechanism. Finally, improved robustness to input-space spectral perturbation does not guarantee robustness of the learned feature representation.

Fig. 1. CVC feature-domain low-pass dose-response. Clean predictions are shown at ; the headline intervention uses .
Limitations. All models use a single training seed. Localization is performed at each model's native block/stage granularity, so absolute Dice values are not compared across architectures. The native spectral-energy analysis is based on three architecture-level observations and is therefore hypothesis-generating. The two datasets also differ in image content and acquisition characteristics, so the observed contrast should be interpreted as dataset/task dependence rather than attribution to a single image statistic.
5. COMPLIANCE WITH ETHICAL STANDARDS
This research was conducted retrospectively using fully anonymized, publicly available human-subject data (CVC-ClinicDB, ISIC2018). No new data were collected and no identifiable information was accessed. This study was performed in line with the principles of the Declaration of Helsinki (1975, revised 2000).
6. ACKNOWLEDGMENTS
No funding was received for this study. The authors have no relevant financial or non-financial interests to disclose. Code, evaluation scripts, and result files are available at https://github.com/Subkash2206/CausalMamba
7. REFERENCES
[1] R. Geirhos et al., “Shortcut learning in deep neural networks,” Nat. Mach. Intell., vol. 2, pp. 665–673, 2020.
Stage-level feature-LP fragility (rho = 0.25, held-out test)

SSM / CVC (clean 0.912 | peak encoder.stage1 -0.190)
SSM / ISIC (clean 0.915 | peak encoder.stage0 -0.010)
Encoder
Decoder
Peak (most fragile)
Fig. 2. Single-stage Dice localization on held-out data. CNN sensitivity peaks in mid/late encoder blocks, whereas SSM sensitivity peaks in the early encoder on both datasets. Absolute cross-architecture magnitudes are not directly comparable because intervention granularity differs.
[2] N. Drenkow et al., “A systematic review of robustness in deep learning for computer vision,” arXiv:2112.00639, 2022.
[3] A. Gu and T. Dao, “Mamba: Linear-time sequence modeling with selective state spaces,” arXiv:2312.00752, 2023.
[4] J. Ruan and S. Xiang, “VM-UNet: Vision Mamba UNet for medical image segmentation,” arXiv:2402.02491, 2024.
[5] A. Hatamizadeh et al., “Swin UNETR: Swin transformers for semantic segmentation of brain tumors in MRI images,” in MICCAI BrainLes Workshop, 2022.
[6] N. Codella et al., “Skin lesion analysis toward melanoma detection 2018: A challenge hosted by the International Skin Imaging Collaboration (ISIC),” arXiv:1902.03368, 2019.
[7] J. Bernal et al., “WM-DOVA maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from physicians,” Computerized Medical Imaging and Graphics, vol. 43, pp. 99–111, 2015.
CVC-ClinicDB

ISIC2018
Fig. 3. Native high-band energy versus feature-domain fragility at matched spatial resolution. The inverse ordering is clearest on CVC; the CNN/SSM pair on ISIC provides a boundary condition rather than a universal one-to-one relationship.