TL;DR
Standard Sparse Autoencoders (SAEs) treat image patches as independent, causing them to "fragment" visual concepts into disconnected pieces. This paper introduces SPATIAL-SAE, which incorporates spatial dependencies via a Markov-Field prior, resulting in significantly more coherent and human-interpretable visual features.
What Problem Does This Paper Address?
Sparse Autoencoders have become a go-to tool for "peeking inside" foundation models to find interpretable features. However, when applied to vision models, standard SAEs suffer from spatial fragmentation. A single concept—like "grass" or a "staircase"—is often split across multiple dictionary atoms, or its activation map is riddled with holes.
The authors argue this happens because the standard SAE objective "smuggles in" a hidden assumption: that the concepts in one patch are independent of its neighbors. In reality, natural images are highly structured; if one patch contains "foliage," its neighbor likely does too. By ignoring this, standard SAEs lack a reason to prefer a single, continuous feature over a collection of scattered fragments.
Methods
The authors propose the Markov-Field Linear Representation Hypothesis (MF-LRH). Instead of treating each activation vector in isolation, they model the latent code of a patch as the sum of two components:
- A Smooth Field ($S$): Content shared with neighbors (e.g., the bulk of an object).
- An Innovation Field ($R$): Genuinely local evidence (e.g., sharp boundaries or small details).
To implement this, they develop SPATIAL-SAE, which uses a graph-regularized objective. It applies an "attractive" prior to the smooth field (encouraging neighbors to agree) and a "repulsive" prior to the innovation field (preventing the innovation stream from just duplicating the smooth stream).
Architecturally, the encoder uses context attention to estimate the smooth code of a patch by looking at its neighbors, then explains the remaining local variation through the innovation stream.
Datasets
- Synthetic Spatial Benchmark: A custom benchmark based on SynthSAEBench where ground-truth concepts and spatial structures are known, allowing for precise measurement of concept recovery.
- DINOv2 Activations: Real-world activations from a frozen DINOv2 ViT-B/14 model.
- ADE20K & COCO-Stuff: Densely annotated scene-parsing datasets used to evaluate how well SAE features align with human-labeled semantic regions.
Key Insights and Ideas
- The Spectral Signature of Fragmentation: The authors found that standard SAEs significantly over-represent high spatial frequencies compared to ground-truth concept masks. They are essentially "hallucinating" noise where there should be smooth regions.
- The RDP Tradeoff: There is an inherent tradeoff between Rate (sparsity), Distortion (reconstruction error), and Polysemanticity (interpretability). SPATIAL-SAE consciously trades off a small amount of reconstruction accuracy to gain much higher interpretability.
- Spatial Predictability: ViT activations retain significant spatial structure even in deep layers. Figure 2 shows that true neighbors explain more variance than random patches from the same image, proving that the "independence prior" is fundamentally mismatched for vision.
Key Results
- Synthetic Recovery: SPATIAL-SAE achieved a 96% average win rate over standard SAEs in recovering ground-truth concepts across various settings.
- Real-World Interpretability: On DINOv2 activations, SPATIAL-SAE features showed much higher Region Coherence (e.g., for TopK, increasing from 15.5 to 25.9).
- LLM Evaluation: Using an automated interpretability protocol (with Claude Haiku 4.5 as a rater), SPATIAL-SAE consistently earned higher scores for "Map Quality" and "Monosemanticity" across all tested sparsifiers (ReLU, TopK, BatchTopK, and JumpReLU).
- Frequency-Targeted Error: The reconstruction cost incurred by SPATIAL-SAE is concentrated in high spatial frequencies—areas where meaningful semantic concepts typically do not live anyway.
Limitations and Future Work
- Reconstruction Loss: As predicted by the RDP tradeoff, SPATIAL-SAE generally has higher reconstruction error ($R^2$) than baselines. While the authors argue this error is "semantic noise," some applications may still require high-fidelity reconstruction.
- Hyperparameter Sensitivity: The strength of the spatial prior ($\mu$) needs careful tuning. If set too high, it can degenerate the model; if too low, the benefits of the spatial prior vanish.
- Future Directions: The authors suggest exploring whether similar spatial priors could benefit other domains with inherent structure, such as temporal priors for language models or video-based SAEs.
Summary updated