Abstract
Standard vision transformers rely on uniform downsampling, which discards spatial structure and necessitates complex decoder heads for segmentation tasks. We present the Native Segmentation Vision Transformer (SeNaTra), which replaces fixed-grid downsampling with a content-aware grouping layer. By natively grouping pixels into semantic clusters throughout the backbone, SeNaTra achieves state-of-the-art segmentation performance with significantly reduced computational overhead and parameter counts.
Introduction
Modern vision backbones, such as ResNets or Swin Transformers, process images in stages by progressively reducing spatial resolution. The standard mechanism for this reduction is "uniform downsampling"—operations like pooling or strided convolutions that treat every pixel in a grid equally. This approach ignores image content, often blurring the boundaries between distinct semantic objects, such as an animal and its background. To recover these boundaries for segmentation, researchers typically append massive, computationally expensive decoder heads (e.g., Mask2Former or UperNet) to the network. SeNaTra addresses this by making segmentation a native property of the backbone itself.
Content-aware Spatial Grouping
The core innovation of SeNaTra is the Content-aware Spatial Grouping Layer, which replaces standard downsampling with a differentiable clustering algorithm inspired by Slot Attention.
Iterative Clustering and Efficiency
Instead of a fixed grid, this layer iteratively assigns input tokens (pixels or features) to a smaller set of output tokens that act as cluster centroids. Pixels with similar semantic features are grouped together, preserving object boundaries even at low resolutions. To solve the quadratic scaling issues of previous dynamic grouping methods, SeNaTra employs a two-tier strategy:
- Local Grouping: In early, high-resolution stages, clustering is restricted to a local 3x3 window, keeping memory usage linear.
- Dense Grouping: In the final, low-resolution stage, the model uses global grouping to merge parts into whole-image objects.
Native Upsampling via Markov Chains
Because the model calculates a soft assignment matrix at every stage, it can create a direct mathematical mapping from final low-resolution tokens back to the original high-resolution pixels. By multiplying these matrices together (a Markov Chain approach), the model achieves native upsampling, completely eliminating the need for a dedicated, heavy upsampling decoder.
Experimental Results
SeNaTra demonstrates that high-quality segmentation can emerge without explicit mask supervision or heavy decoders.
- Zero-Shot Performance: When pre-trained on 20M image-text pairs, SeNaTra-B achieved 31.9 mIoU on zero-shot semantic segmentation, outperforming specialized models trained on much larger datasets like CLIP (400M pairs).
- Efficiency in Supervised Learning: On the ADE20k dataset, the SeNaTra-T variant operating natively (without a decoder) reached 49.7 mIoU. This outperformed a standard Neighborhood Attention Transformer (NAT-T) paired with a heavy UperNet decoder (47.1 mIoU) while utilizing only 12% of the FLOPs and 50% of the parameters.
- Panoptic Segmentation: On COCO, SeNaTra-T scored 49.2 PQ, surpassing a Swin-T + MaskFormer setup (47.7 PQ) with 10 million fewer parameters.
Conclusion
SeNaTra proves that segmentation is a property that can be integrated directly into the vision backbone. By replacing blind downsampling with content-aware grouping, the network learns to preserve boundaries and form superpixels naturally. While the grouping layer introduces some computational overhead compared to simple convolutions, the ability to discard massive decoder heads results in a net gain in efficiency. Future work will explore object-oriented pre-training to further improve instance separation in complex panoptic scenes.
Summary updated