Focus Only on What's Important: Training-Free Focus Maps for Frozen Vision Transformers in Long-Video Object Segmentation

Harsha Karipineni, Rajesh Reddy ChinthaarXiv 2026

TL;DR

When tracking an object through a video, spending identical compute on empty sky and the moving target is a waste. Standard token-merging methods compress Vision Transformers (ViTs) uniformly across the whole frame, while naively protecting just the previous frame's mask breaks down on long videos whenever fast motion outpaces the mask. This paper introduces training-free "focus maps" that anticipate where objects are heading, check for sudden visual surprises, and dynamically focus full ViT resolution only where the action actually is.

What Problem Does This Paper Address?

Video Object Segmentation (VOS)—pixel-level tracking of targets across frames—loves frozen Vision Transformers like DINOv3 for their rich visual features. The catch? ViTs chop every high-resolution frame into hundreds of patch tokens, making attention mechanisms painfully expensive over thousands of frames.

Existing training-free token reduction methods (like ToMe or ALGM) cut costs by merging similar tokens together, using a single rule across the entire image. That means they accidentally blur the very objects you are trying to segment.

A natural fix is a "closed-loop focus map": use the VOS model's mask from frame $t-1$ to keep object patches at full resolution in frame $t$, and aggressively merge the background. While this works great on short, 3-second clips, the authors discover it fails catastrophically on long videos. When an object darts quickly across the screen, it slips outside last frame's mask margin and gets merged into the background mush. Because the loop trusts its own predictions, once the target is lost, that failure gets locked in.

Methods

Instead of blindly trusting the previous mask, the authors wrap a frozen DINOv3 ViT (plugged into a standard Cutie VOS model) with an inference-time, training-free policy that predicts where compute is needed before the first transformer block runs.

Figure 1: The focus map. Before the encoder runs on frame t, for each tracked object we take the union of its velocity-shifted and block-matched masks on frame t (high tier). A surprise check compares frame t with frame t−1 shifted by the camera motion and promotes patches that changed without explanation. Rings sized by each object’s speed and search regions around lost objects form the middle tier, merged by the compared merger’s own rules; the rest is merged aggressively. Every decision is made before the first block, on the patch grid.

The policy divides every frame's patch grid into four mechanisms:

  1. Expectation (High Tier): Rather than using a static prior mask, the system forecasts object positions by taking the union of a velocity-shifted mask and a fast pixel-level block-matched mask on the current frame. These patches are never merged.
  2. Surprise Check: It estimates global camera shift and checks for unexpected pixel changes (like an occluded target reappearing at the frame's edge). Surprising patches get promoted to higher tiers.
  3. Three Compute Tiers: High-tier patches stay at full resolution. A Middle Tier—comprising speed-scaled buffer rings, search zones for lost targets, and surprise patches—is merged gently using a baseline merger's rules (e.g., ALGM). The Low Tier (uneventful background) is merged aggressively down to a tiny token floor.
  4. Fallback: If all tracked objects are lost, the system abandons the focus map and runs the baseline uniform merger cleanly until the segmenter re-acquires a target.

The authors also build a custom GPU-compiled, CUDA-graphed implementation to minimize host-side Python overhead, and separately explore a training-free permanent-memory schedule for Cutie.

Datasets

  • Training: Cutie segmentation heads (with the DINOv3 ViT kept frozen and dense) are initialized from official Cutie weights and trained on DAVIS 2017 train and MOSE train.
  • Development & Diagnostics: LVOS V2 train (420 long videos) is used to diagnose tracking failures and tune thresholds.
  • Evaluation: DAVIS 2017 val (30 short clips) tests short-term precision, while LVOS V2 valid (140 long videos averaging hundreds of frames, combining 50 LVOS V1 val videos and 90 newer videos) serves as the primary held-out long-video testbed. No new datasets are introduced.

Key Insights and Ideas

  • Why naive focus loops die on long videos: Diagnostics revealed that when an object moves more than two patches between frames (which happens often at LVOS's 6 FPS frame rate), a naive previous-mask policy loses the target 9× as often as a dense encoder (2.81% vs. 0.30% of fast frames). Compression-induced losses create a vicious cycle.
  • FLOPs don't automatically equal wall-clock speed: Saving theoretical math operations (FLOPs) via per-block token bookkeeping launches hundreds of tiny GPU kernels (gathers, scatters, casts). Even with heavy CUDA-graph engineering, simpler uniform baselines can run faster in wall-clock time despite doing more math.
  • Encoder coverage vs. Segmenter memory: Even when the safety nets keep a reappearing object 97% inside protected high-resolution tiers, the VOS model can still fail to segment it on very long videos (>600 frames) because its working memory evicted clean, old reference frames. Writing every 20th frame to permanent memory boosts all encoders by +10 to +13 $\mathcal{J}\&\mathcal{F}$ on ultra-long videos—at a 6× GPU memory cost.

Key Results

Accuracy is measured via $\mathcal{J}\&\mathcal{F}$ (region similarity and contour accuracy), alongside counted ViT encoder FLOPs relative to a dense baseline (1.000).

Table 1: Held-out long videos (LVOS V2 valid: 140 videos, 239 objects), ViT-S, three heads. FLOPs: encoder FLOPs as a share of dense. Differences: ours minus the row, per object, averaged over heads, 95% bootstrap intervals. Official: the object mean of the LVOS toolkit’s scores on a rerun that saved the masks; the method’s rows differ between the two runs (our scorer gives 68.43 on the rerun, dense and ALGM are unchanged; Appendix B).
  • Long Videos (LVOS V2 valid): Using ViT-S (pooled across three seeds), the method achieves 68.48 $\mathcal{J}\&\mathcal{F}$ at 0.385 FLOPs—beating uniform ALGM 0.98 by +2.76 $\mathcal{J}\&\mathcal{F}$ while using 16% fewer FLOPs (0.385 vs. 0.459), sitting just 1.0 point shy of the full dense encoder (69.47). With ViT-B, the gain over ALGM 0.95 jumps to +3.89 $\mathcal{J}\&\mathcal{F}$.
  • Important Control Qualification: Simply protecting the previous mask while running ALGM 0.98 everywhere else actually matches or slightly beats the proposed method's accuracy (+0.74 $\mathcal{J}\&\mathcal{F}$ higher on held-out videos), though it costs 26% more encoder FLOPs (0.486 vs. 0.386). Thus, the expectation and surprise machinery primarily acts as a compute-reducer rather than an accuracy booster over a protected baseline.
  • Short Clips (DAVIS 2017 val): Stays virtually indistinguishable from dense accuracy (-0.19 $\mathcal{J}\&\mathcal{F}$ at ViT-S, -0.12 at ViT-B).
  • Wall-Clock Reality: In isolated encoder benchmarks, the compiled implementation speeds up ViT-S by 1.50×, ViT-B by 1.64×, and ViT-L by 1.83× over dense. However, in end-to-end Cutie runs on 12 LVOS videos, steady-state step time drops by only 3%–8% (since the encoder is under half of Cutie's total step), per-video graph-capture startup (~1.4 s) makes total runtime slightly slower than dense on 540-frame videos, and an equally engineered ALGM runs faster at ViT-S (1.60 ms vs. 1.94 ms) and ViT-B.

Limitations and Future Work

The authors are refreshingly transparent about where the method hits walls:

  • Bookkeeping Overhead: Lower encoder FLOPs did not beat an equally engineered ALGM in wall-clock latency at ViT-S and ViT-B due to kernel launch overhead.
  • Baseline Generalization: When paired with a second merger (ToMe instead of ALGM), the policy required two post-hoc revisions just to achieve non-inferiority at 21% lower FLOPs, rather than superiority.
  • Simple Motion Physics: Camera motion is modeled as a single integer translation and object block-matching uses axis-aligned boxes—meaning rapid zoom, rotation, or heavy motion blur can fool the expectation step (triggering fallback on ~30% of long-video frames).
  • Ultra-Long Videos & Narrow Scope: Without the memory-heavy permanent schedule, accuracy gains over ALGM vanish on videos longer than 600 frames. Furthermore, tests are limited to one VOS architecture (Cutie) and one backbone family (DINOv3). Future work aims to preserve tracking gains on ultra-long videos without blowing up GPU memory, and cut kernel overhead to achieve true wall-clock wins on small backbones.

Summary updated

BibTeX
@misc{karipineni2026focus,
  author = {Harsha Karipineni and Rajesh Reddy Chintha},
  title = {{Focus Only on What's Important: Training-Free Focus Maps for Frozen Vision Transformers in Long-Video Object Segmentation}},
  year = {2026},
  eprint = {2611.34863},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34863},
}
Figure