Papers
Topics
Authors
Recent
Search
2000 character limit reached

SAGE-UNet: Adaptive Segmentation Architecture

Updated 30 November 2025
  • SAGE-UNet is an advanced, adaptive architecture that combines static CNN–Transformer backbones with dynamic, sparsely gated expert routing for precise medical segmentation.
  • It incorporates a Shape-Adapting Hub to harmonize heterogeneous modules, enabling local-global reasoning while reducing redundant computations.
  • The model achieves state-of-the-art Dice scores in colonoscopic and histopathological tasks, with dynamic gating yielding significant performance gains over conventional approaches.

SAGE-UNet is an input-adaptive, dynamically routed neural architecture for medical image segmentation, particularly targeting the challenges of cellular heterogeneity in whole slide images (WSIs) and colonoscopic lesion analysis. It operationalizes the Shape-Adapting Gated Experts (SAGE) framework, converting a static CNN–Transformer hybrid backbone (e.g., U-Net) into a sparsely gated mixture-of-experts model. SAGE-UNet features a dual-path design with hierarchical gating and a Shape-Adapting Hub (SA-Hub) for harmonizing architectural diversity between CNN and Transformer modules. Its adaptive computation paradigm reduces redundancy, enables local-global reasoning, and achieves state-of-the-art (SOTA) segmentation accuracy across multiple medical benchmarks (Thai et al., 23 Nov 2025).

1. SAGE-UNet Architecture and Dynamic Routing

SAGE-UNet generalizes traditional UNet architectures by introducing two parallel computational streams at every network layer:

  • Main Path: Preserves the operations of the original pretrained backbone, ensuring representational continuity.
  • Expert Path: Selectively activates a sparse set (Top-KK) of experts—either shared or domain-specialized—using a multi-level gating mechanism.

Let zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C} denote the input feature map to the ii-th layer. The main path computes zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1}), while the expert path extracts a global embedding zˉi−1\bar z_{i-1} and applies two gating stages:

  • Shared Expert Gate: Computes gs=σ(zˉi−1Wgate(i)+bgate(i))g_s = \sigma(\bar z_{i-1} W_{\mathrm{gate}}^{(i)} + b_{\mathrm{gate}}^{(i)}), where σ\sigma is a logistic sigmoid, to distribute probability mass between shared and fine-grained experts.
  • Semantic Affinity Routing (SAR): For each candidate expert jj, computes Li,jL_{i,j} using query-key similarity and adaptive noise, then composes Li,j′L'_{i,j} by augmenting scores with zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}0 (for shared) or zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}1 (for specialized).

The model selects the Top-zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}2 experts per layer, and their normalized gated outputs form the expert-path output:

zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}3

where zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}4 denotes the indices of the zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}5 most relevant experts.

A learnable scalar zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}6 fuses the main and expert paths:

zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}7

This design enables dynamic, input-dependent routing and adaptive capacity allocation.

2. Shape-Adapting Hub (SA-Hub) and Heterogeneous Expert Integration

The SA-Hub mediates architectural mismatch between the CNN and Transformer experts:

  • Input Adapter zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}8: Transforms a 2D CNN feature map into the target format (e.g., token sequence) required by the expert module.
  • Output Adapter zi−1∈RH×W×Cz_{i-1} \in \mathbb{R}^{H\times W\times C}9: Projects the expert's output back into the CNN-style spatial and channel dimensions, enabling seamless path fusion.

These adapters allow shared use of heterogeneous expert backbones (e.g., ConvNeXt layers, ViT transformer blocks) within the same stage, achieving both semantic consistency and architectural interoperability.

3. Architectural Specification and Implementation

SAGE-UNet is instantiated atop the TransUNet architecture augmented by SAGE mechanisms. Specific configuration parameters are:

  • Expert Pool: Total of ii0 experts per layer (4 shared, 16 fine-grained).
  • Expert Selection: Top-ii1 experts activated per layer.
  • Expert Injection: Experts are integrated at every encoder and decoder block, following the stage structure of ConvNeXt (4 stages) and ViT (16 transformer blocks).
  • Gating and Routing: Hierarchical logit modulation (Eq. (5)–(7)), with expert selection affecting final decoder logits.

A summary of the modular design:

Component Function Associated Model Elements
Main Path Preserves original backbone operations ii2
Expert Path Dynamic, Top-ii3 expert selection ii4
SA-Hub Adapts between CNN and Transformer ii5
Dual-Path Fusion Learns balance ii6 ii7

4. Training Procedure and Loss Functions

SAGE-UNet is trained end-to-end with a composite loss function per minibatch:

ii8

where:

  • ii9 is the cross-entropy loss,
  • zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})0 is the Dice loss,
  • zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})1 is the load-balancing loss, encouraging even utilization of the expert pool.

Hyperparameters are set as: zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})2, zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})3, zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})4. Optimization uses AdamW with a two-stage learning rate schedule.

5. Quantitative Results and Ablation Studies

SAGE-UNet achieves new SOTA Dice scores across multiple colorectal histopathology datasets:

Dataset (subset) Dice Score (%) Dice Gain over Baseline (%)
EBHI (Adenocarcinoma) 95.57 +3.3
DigestPath (colon patch) 95.16 +1.7
GlaS (A+B) 94.17 +2.65 (approx)

These results surpass ConvNeXt-UNet, SegFormer, and EViT-UNet benchmarks. Ablations demonstrate:

  • Sigmoid (vs. softmax) gating increases EBHI Dice from 95.05% to 95.57%.
  • Increasing Top-zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})5 from 1→4 yields a +5.4% Dice improvement.
  • Scaling shared experts from 1→4 adds +0.47% Dice.

6. Domain Generalization Performance

On GlaS Test B (designed to assess domain shift), SAGE-UNet achieves 94.67% Dice, surpassing EViT-UNet by +1.4% and UNet++ by +2.74%. Qualitative evaluations indicate robust boundary delineation under morphological shifts. Shared gating scalars zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})6 suggest CNN stages favor shared experts (zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})7) while Transformer stages operate near zi(main)=fi(zi−1)z_i^{(\mathrm{main})} = f_i(z_{i-1})8, evidencing context-dependent dispatch that may underlie improved adaptability (Thai et al., 23 Nov 2025).

7. Significance, Limitations, and Future Directions

SAGE-UNet demonstrates several empirical and architectural advantages:

  • Adaptive Computation: Reduces redundant expert evaluation for simple regions, concentrating capacity on complex instances.
  • Hierarchical Expert Routing: Enables flexible balance between general and specialized processing, with improved interpretability and segmentation accuracy.
  • Heterogeneous Module Fusion: SA-Hub allows seamless collaboration between architectures tailored for distinct representational granularities.

Identified limitations include increased implementation complexity and slower per-layer inference due to multi-expert evaluation, despite overall sparsity. The optimal design of the expert pool (depth and width) remains open; automated architecture search represents a plausible avenue for improving the performance-efficiency trade-off. Extension to 3D or multi-modal medical data is identified as a promising future direction (Thai et al., 23 Nov 2025).

SAGE-UNet establishes dynamic expert routing with shape-adapting fusion as a scalable and accurate paradigm for complex medical segmentation challenges.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to SAGE-UNet.