BIMBA: Selective-Scan Compression for Long-Range Video Question Answering
Md Mohaiminul Islam, Tushar Nagarajan, Huiyu Wang, Gedas Bertasius, Lorenzo Torresani
TL;DR
BIMBA addresses the challenge of long-form video question answering by transforming massive sequences of spatiotemporal tokens into a compact, information-rich representation via a selective-scan state-space token selector. It introduces interleaved queries, bidirectional selective scanning, and optional question-conditioned token selection to capture long-range dependencies efficiently, enabling LLM-based reasoning with linear-scale computation. Across seven long-form VQA benchmarks, BIMBA achieves state-of-the-art accuracy and exhibits favorable memory and runtime characteristics compared with self-attention and pooling baselines, including strong performance when processing hundreds of thousands of tokens. The approach significantly advances practical, scalable multimodal reasoning for long videos and opens avenues for tasks like video summarization and hierarchical video modeling.
Abstract
Video Question Answering (VQA) in long videos poses the key challenge of extracting relevant information and modeling long-range dependencies from many redundant frames. The self-attention mechanism provides a general solution for sequence modeling, but it has a prohibitive cost when applied to a massive number of spatiotemporal tokens in long videos. Most prior methods rely on compression strategies to lower the computational cost, such as reducing the input length via sparse frame sampling or compressing the output sequence passed to the large language model (LLM) via space-time pooling. However, these naive approaches over-represent redundant information and often miss salient events or fast-occurring space-time patterns. In this work, we introduce BIMBA, an efficient state-space model to handle long-form videos. Our model leverages the selective scan algorithm to learn to effectively select critical information from high-dimensional video and transform it into a reduced token sequence for efficient LLM processing. Extensive experiments demonstrate that BIMBA achieves state-of-the-art accuracy on multiple long-form VQA benchmarks, including PerceptionTest, NExT-QA, EgoSchema, VNBench, LongVideoBench, and Video-MME. Code, and models are publicly available at https://sites.google.com/view/bimba-mllm.
