Learning Sparse Visual Representations via Spatial-Semantic Factorization

Theodore Zhao, Sid Kiblawi, Jianwei Yang, Naoto Usuyama, Reuben Tan, Noel C Codella, Tristan Naumann, Hoifung Poon, Mu Wei

Abstract Self-supervised learning (SSL) faces a fundamental tension between semantic understanding and image reconstruction. High-level semantic SSL methods (like DINO) encourage transformation-invariant global representations, while reconstruction-oriented methods (like MAE) preserve dense feature grids for spatial grounding but yield weaker semantic abstractions. STELLAR is a novel framework that alleviates this tension by factorizing visual features into a low-rank product of semantic concepts and their spatial distributions. Using as few as 16 sparse tokens, STELLAR simultaneously supports high-quality reconstruction (2.60 FID) and strong semantic transfer (79.10% ImageNet accuracy).

The Invariance-Equivariance Tension

In the landscape of self-supervised learning, models typically optimize for one of two conflicting goals:

  • Semantic-oriented models aim for invariance. They learn representations that remain consistent regardless of spatial transformations (e.g., recognizing a "cat" whether it is cropped, shifted, or flipped).
  • Reconstruction-oriented models aim for equivariance. They must track the exact spatial location of every pixel to accurately rebuild the original image.

Traditionally, researchers have had to choose between the two. Dense 2D feature grids force models to store both semantic identity and spatial location in the same space. As a result, models excellent at understanding "what" an object is often fail at precise spatial tasks, and models that excel at rebuilding images produce features that are less useful for high-level classification.

The STELLAR Framework

To resolve this paradox, the authors introduce STELLAR (Sparse Token Extraction and Localization with Low-rank Approximated Reconstruction). The core innovation is a low-rank factorization of the latent representation:

$$Z(X) = L(X)S(X)$$

This equation disentangles the representation into two distinct components:

  1. The "What" ($S$): A semantic matrix containing a small set of sparse latent tokens (as few as 16). These tokens are optimized to be transformation-invariant, capturing the core identity of objects in the scene.
  2. The "Where" ($L$): A localization matrix that assigns each image patch to these semantic concepts. This matrix absorbs spatial shifts and transformations, maintaining the geometry needed for reconstruction.

Key Technical Innovations

  • Optimal Transport Alignment: To train semantic tokens without labels, STELLAR aligns tokens from different "views" (crops or masks) of the same image. Because the tokens lack an inherent order, the model uses the Sinkhorn algorithm to find the optimal match between token sets across views. This approach is up to 100x faster than traditional Hungarian matching.
  • Semantic Triage: By forcing the reconstruction through a tiny bottleneck of just 16 tokens, the model naturally learns to discard redundant background noise and prioritize semantically rich object regions.
  • Joint Optimization: STELLAR is trained using a multi-task loss that balances pixel-level reconstruction, token clustering (grouping tokens into visual concepts), and set-alignment (ensuring concept consistency across views).

Key Insights and Discoveries

By separating the "identity" of a concept from its "location," STELLAR allows semantic tokens to remain stable while the localization matrix tracks movement. This factorization reveals several surprising properties of visual representations:

  • The Power of Sparsity: It is remarkable that only 16 tokens can encode enough information to reconstruct a complex 224x224 image with high fidelity. This highlights massive redundancy in the dense representations used by current models.
  • Implicit Organization: Without explicit segmentation supervision, the localization matrix ($L$) naturally groups pixels into semantically coherent regions—such as separating a bird from the sky—simply to satisfy the reconstruction objective.
  • Effectiveness in Complex Scenes: STELLAR excels on complex, multi-region images, such as histopathology scans (GlaS dataset). The model's ability to disentangle multiple distinct concepts within a single frame makes it highly effective for modeling intricate microenvironments.

Performance and Results

Evaluated across standard benchmarks including ImageNet-1K, downstream classification (Oxford-IIIT Pet, Food-101, GlaS), and dense prediction (ADE20K, Cityscapes, Pascal VOC), STELLAR demonstrates a superior trade-off between generative and discriminative tasks.

Using a ViT-H backbone, STELLAR achieves 79.10% linear probing accuracy on ImageNet-1K and an FID of 2.60 for reconstruction. This balanced performance bridges the gap between specialized models like MAE and DINO. Furthermore, the factorized representation yields a ~90% reduction in latent representation size compared to standard dense ViT feature maps, significantly improving storage and downstream processing efficiency.

Limitations and Future Directions

While STELLAR presents a significant step forward, the authors note a few limitations. First, the highest performance is achieved by "reshaping" a pretrained model (like MAE or DINO) rather than training entirely from scratch. Second, while the resulting representation is highly sparse, the initial encoder still processes the full dense image, meaning compute savings are primarily realized in downstream tasks and storage. Finally, the optimal number of sparse tokens likely scales with image complexity; future work may explore dynamic token counts for high-resolution images and video applications.

Summary updated

BibTeX
@inproceedings{zhao2026learning,
  author = {Theodore Zhao and Sid Kiblawi and Jianwei Yang and Naoto Usuyama and Reuben Tan and Noel C Codella and Tristan Naumann and Hoifung Poon and Mu Wei},
  title = {{Learning Sparse Visual Representations via Spatial-Semantic Factorization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ysOOfySED6},
}
Figure