TL;DR
Processing long videos for reasoning segmentation suffers from a "token explosion" that quickly overwhelms Multimodal LLMs. STAC solves this by using State-Space Models (SSMs) to contextually enrich video tokens before compressing them by 85%, achieving a 1.8$\times$ speedup. Crucially, its decoupled, causal design enables streaming-compatible, real-time inference without sacrificing pixel-level tracking accuracy.
What Problem Does This Paper Address?
Video reasoning segmentation requires a model to track and segment objects across hundreds of frames based on complex natural language queries (e.g., "Isolate the one who can freely navigate the store space and make final purchasing decisions"). This task generates massive amounts of spatiotemporal tokens. Passing all of these dense tokens into a Multimodal Large Language Model (MLLM) triggers a quadratic self-attention bottleneck, making long-video processing computationally prohibitive.
Existing token compression methods try to fix this by pruning or pooling tokens early on. However, they typically operate on raw, isolated frame features from the vision encoder. This creates a catch-22: to compress intelligently, you need temporal context, but getting that context at full resolution is exactly what causes the computational explosion in the first place. Furthermore, many existing video models process the entire video bidirectionally, which prevents them from being used in online, streaming applications where future frames aren't yet available.
Methods
STAC (Selective Spatiotemporal Aggregation and Compression) breaks this deadlock using a three-stage pipeline that leverages the linear-time efficiency ($\mathcal{O}(T)$) of State-Space Models (SSMs), specifically Mamba blocks.
- State-informed Spatiotemporal Aggregator (SSA): Instead of treating the video as a single isotropic block, STAC decouples spatial and temporal processing. It applies bidirectional spatial scanning within each frame to capture full semantic context, followed by strictly causal temporal scanning across frames. This causal design ensures that future frames never leak into past representations, making it fully streaming-compatible.
- Hierarchical State-adaptive Compression (HSC): Once tokens are enriched with context, redundancy becomes easy to spot. STAC compresses hierarchically: first temporally, then spatially. It uses an online Exponential Moving Average (EMA) to dynamically adjust compression thresholds based on local video dynamics—compressing static scenes aggressively while preserving motion boundaries.
- Task-Grounded Differentiable Compression: To ensure the compression doesn't throw away critical segmentation details, the discrete compression decisions are made differentiable using a Straight-Through Estimator (STE). This allows gradients from the final segmentation loss to flow all the way back and optimize the compression policy.
Datasets
The authors trained STAC exclusively on referring video object segmentation datasets:
- Refer-YouTube-VOS: Focuses on appearance-based attributes and spatial relationships.
- MeViS: Focuses on tracking targets via complex motion expressions.
To test the model's generalization and reasoning capabilities, they evaluated it in a zero-shot setting on:
- Ref-DAVIS17: Evaluates performance under heavy occlusion and appearance variation.
- ReVOS: Demands contextual inference beyond simple visual matching.
- ReasonVOS: Specifically targets long-context temporal understanding and causal reasoning.
Key Insights and Ideas
- Context Before Compression: Traditional methods compress raw features to save compute, but STAC shows that running a lightweight, linear-time SSM before compression provides the necessary context to make highly accurate, aggressive compression decisions.
- Asymmetry of Space and Time: Spatial relationships are non-causal (pixels interact with all neighbors simultaneously), but time is strictly causal. Decoupling them allows the model to maximize spatial accuracy while maintaining streaming compatibility temporally.
- Compression as an Asset, Not a Tax: Surprisingly, filtering out static redundancy via task-grounded compression actually improved zero-shot performance on reasoning tasks. Forcing the model to focus only on motion-critical content acts as a regularizer against background noise.
Key Results
- Massive Token Reduction: STAC achieves an 85% reduction in visual tokens.
- Speed and Efficiency: It delivers a 1.8$\times$ speedup and maintains a constant inference latency of ~200ms per frame, regardless of video length, avoiding the quadratic latency growth of vanilla transformers.
- Superior Zero-Shot Reasoning: On the challenging ReasonVOS benchmark, STAC achieved a score of 52.3 $\mathcal{J}\&\mathcal{F}$, outperforming the strongest compression-free baseline (GLUS at 49.8 $\mathcal{J}\&\mathcal{F}$) despite using only a fraction of the tokens.
Limitations and Future Work
While STAC performs exceptionally well, the authors note a few areas for improvement:
- Recurrent Capacity vs. Compression: Future work is needed to precisely quantify the relationship between the state capacity of the SSM and the maximum achievable compression ratio.
- Multimodal Expansion: The current framework is limited to visual tokens. The authors suggest extending STAC to handle multimodal streams, such as audio-visual reasoning and embodied perception tasks.
Summary updated