State-Space Hierarchical Compression with Gated Attention and Learnable Sampling for Hour-Long Video Understanding in Large Multimodal Models
Geewook Kim, Minjoon Seo
TL;DR
This work tackles the token explosion problem in hour-long video understanding for large multimodal models by introducing MambaMia, a modular, pre-LLM compression framework. It relies on a two-stage hierarchy: a Spatiotemporal Compression Layer with Gated Patch Aggregation (GPA) to produce compact anchor tokens, and a Time Axis Aggregator (TAA) that models temporal dynamics and performs adaptive frame selection via delta-time signals. The approach combines state-space modeling (Mamba) with learned, query-conditioned pooling and delta-based frame filtering, yielding substantial token reductions (for example, about 4.7K tokens on LVBench) while maintaining competitive accuracy across LVBench, MLVU, and other long-video benchmarks. Experimental results include extensive ablations confirming the contributions of GPA and delta-based sampling, as well as strong cross-backbone performance and open-source availability, suggesting practical feasibility for real-world long-video reasoning tasks.
Abstract
We propose an efficient framework to compress massive video-frame features before feeding them into large multimodal models, thereby mitigating the severe token explosion arising from hour-long videos. Our design leverages a bidirectional state-space model equipped with a gated skip connection and a learnable weighted-average pooling mechanism applied to periodically inserted learned queries. This structure enables hierarchical downsampling across both spatial and temporal dimensions, preserving performance in a cost-effective manner. Across challenging hour-long video understanding tasks, our approach demonstrates competitive results against state-of-the-art models, while significantly reducing overall token budget. Notably, replacing our state-space model with conventional modules results in substantial performance degradation, highlighting the advantages of the proposed state-space modeling for effectively compressing multi-frame video information. Our framework emphasizes resource-conscious efficiency, making it practical for real-world deployments. We validate its scalability and generality across multiple benchmarks, achieving the dual objectives of efficient resource usage and comprehensive video understanding.
