TL;DR
When we evaluate frozen Vision Transformers (ViTs), we usually lump their image patches together into an unstructured bag—averaging them out or relying on a single summary token. SSMProbe flips this script by treating probing like an eye-tracking experiment: it learns a dynamic, step-by-step "evidence route" across image patches and reads them sequentially using a linear State Space Model (S4). Because the S4 decoder uses fixed mathematical weights for each step, we get a transparent window into where different vision models store their best features and how patch ordering unlocks hidden performance.
What Problem Does This Paper Address?
Imagine trying to understand a painting, but you are forced to either look at the average color of all brushstrokes (Global Average Pooling, or GAP) or rely on a one-sentence museum plaque (the [CLS] token). That is how we typically "probe" frozen Vision Transformers to test what they have learned.
Different pre-training styles organize visual information differently. Contrastive models like DINOv2 pack massive amounts of information into the [CLS] token, whereas Masked Autoencoders (MAE)—trained to reconstruct missing image tiles—spread rich details across individual patch tokens. Standard pooling misses this spatial nuance. You can use a self-attention probe to dynamically weigh patches, which boosts accuracy, but attention weights shift constantly depending on the input, making them hard to audit cleanly. And if you try reading patches sequentially using a fixed pattern (like reading a page top-to-bottom), you force an arbitrary 1D order onto a 2D world. The authors ask: can we build a probe that learns which order to read patches in, while keeping the sequential reader mathematically transparent?
Methods
Enter SSMProbe, a lightweight diagnostic head placed on top of a frozen ViT backbone. It splits patch aggregation into two distinct, inspectable parts: routing and reading.
- Differentiable Sinkhorn Routing (The "Eye Movement"): A simple linear scorer looks at every patch token and assigns it a scalar score. Using the Sinkhorn-Knopp optimal transport algorithm, these scores are converted into a soft permutation matrix. Essentially, the router ranks the patches from 1 to $N$, creating a custom, image-specific "evidence route" without breaking gradient flow during training.
- Diagonal S4 Decoder (The "Reader"): The reordered sequence of patches is fed into a diagonal Structured State Space Sequence Model (S4), and a linear classifier predicts the image label from the final state.
What's new vs. standard: Sinkhorn sorting and S4 models are established tools, though S4 is usually deployed as a heavy-duty backbone (like Mamba). Using S4 as a diagnostic probe is the clever twist here. Because S4 is a causal Linear Time-Invariant (LTI) system, its recurrence collapses mathematically into a clean weighted sum: every step $k$ in the sequence gets a fixed positional coefficient ($\alpha_k$) after training, regardless of the image. Unlike a Transformer probe where "what you select" and "how you weigh it" are tangled together, SSMProbe cleanly separates the learned route from the positional weights. This lets the authors run exact analytical audits—like testing what happens if you reverse or scramble the route.
To prove these routes aren't just memorizing "the object is usually in the middle," the authors also introduce ERSI (Excess Routed Spatial Information), an information-theoretic metric measuring whether the learned path forms tight, predictable spatial clusters beyond basic center-bias.
Datasets
The authors evaluate four frozen ViT-Base backbones (MAE, BEiT, DINOv2, and supervised ViT) across three standard classification benchmarks—introducing no new datasets, but leveraging existing annotations for spatial auditing:
- ImageNet-1K: Used primarily to test frozen MAE probing at scale.
- CUB-200-2011 (Birds) & Stanford Cars: Fine-grained classification benchmarks used for cross-backbone comparisons. Crucially, CUB includes official pixel-level bird foreground masks, allowing the authors to check if the learned routes actually land on the bird!
Key Insights and Ideas
Learned patch evidence routes across four frozen ViT backbones on a CUB bird image.
- MAE isn't weak; it just needs a tour guide: MAE notoriously underperforms under standard linear
[CLS]or GAP probing. Yet when SSMProbe learns to route its patches, accuracy skyrockets, whereas fixed 2D scans (like raster or snake sweeps) fail miserably on fine-grained transfer. MAE holds great patch-level evidence, if you sequence it properly. - Pre-training leaves distinct "routing fingerprints": Looking at Figure 1 above, the probe pushes informative foreground patches (bright colors) toward the end of the sequence where S4's causal memory weighs them heavily. Across backbones, DINOv2 remains
[CLS]-dominant (though its patches still form highly organized routes), while BEiT and supervised ViT naturally favor compact, localized patch aggregation. - Global order matters; local jitters don't: Because S4 uses fixed step weights, reversing a learned route on ImageNet causes accuracy to plunge by 66.3 percentage points! However, swapping adjacent patches barely registers (-0.2 points), showing the S4 probe acts as a smooth, broad temporal filter rather than a brittle, single-step detector.
- Routes aren't just backbone attention in disguise: Comparing the learned Sinkhorn routes against the frozen ViTs' internal attention maps reveals surprisingly low overlap (especially on MAE, whose attention rollout is nearly flat). SSMProbe discovers task-specific evidence paths that standard attention visualizations miss.
Key Results
- ImageNet-1K (Frozen MAE): SSMProbe hits 70.33% Top-1 accuracy—beating GAP (58.10%),
[CLS](56.65%), Attention Pooling (67.70%), and the strongest fixed 4-direction scan (64.78%, a +5.55 percentage point jump). - Fine-Grained Transfer (CUB / Cars): On MAE, deterministic fixed scans collapse to 5–11% test accuracy due to overfitting, while learned Sinkhorn routing reaches 56.67% (CUB) and 54.86% (Cars). On Cars, Sinkhorn also beats GAP and
[CLS]on BEiT (82.21%) and supervised ViT (62.38%). Meanwhile, DINOv2 flexing its[CLS]token still reigns supreme on CUB (89.49% vs. Sinkhorn's 82.28%). - Foreground Alignment: Across all 5,794 CUB test images, the top-20 routed patches consistently find the bird. On MAE, 55.40% of top-routed patches hit the bird foreground, easily clearing uniform random selection (12.60%) and a center-bias null model (33.25%).
Limitations and Future Work
- Entangled Supervision: The Sinkhorn router isn't reading the frozen backbone in a vacuum; it is trained jointly with the classifier and decoder. Swapping the S4 decoder for simple, unconstrained fixed weights changes how spatially compact BEiT's routes are. Furthermore, transferring a learned router from CUB to Cars loses 12–21 percentage points compared to training fresh, confirming the routes are heavily tailored to the specific task.
- Task Scope & Cropping Sensitivity: Everything here is image classification. Extending dynamic evidence routing to dense tasks like segmentation or object detection remains wide open. Additionally, while the learned routes shrug off mild Gaussian noise, cropping the image by just 10% noticeably shifts patch rankings (dropping top-20 route overlap to ~69%).
Summary updated