TimeViper: A Hybrid Mamba-Transformer Vision-Language Model for Efficient Long Video Understanding
Boshen Xu, Zihan Xiao, Jiaze Li, Jianzhong Ju, Zhenbo Luo, Jian Luan, Qin Jin
TL;DR
TimeViper tackles the challenge of long-video understanding by marrying a state-space based Mamba backbone with Transformer-style attention in a hybrid LLM, and by introducing TransV, an internal token transfer mechanism that compresses vision information into instruction tokens. The authors uncover a vision-to-text aggregation phenomenon and show that vision-token redundancy grows with network depth, enabling aggressive token compression in deeper layers. Through a two-stage training procedure and ToMe-based frame compression, TimeViper processes over 10K frames while maintaining competitive performance on MCQ, TVG, and VDC benchmarks, and it achieves notable efficiency gains in prefilling time and memory. The work advances interpretable, scalable hybrid MLLMs for long-form video understanding and highlights directions for further scaling and data augmentation.
Abstract
We introduce TimeViper, a hybrid vision-language model designed to tackle challenges of long video understanding. Processing long videos demands both an efficient model architecture and an effective mechanism for handling extended temporal contexts. To this end, TimeViper adopts a hybrid Mamba-Transformer backbone that combines the efficiency of state-space models with the expressivity of attention mechanisms. Through this hybrid design, we reveal the vision-to-text information aggregation phenomenon, where information progressively flows from vision tokens to text tokens across increasing LLM depth, resulting in severe vision token redundancy. Motivated by this observation, we propose TransV, a token information transfer module that transfers and compresses vision tokens into instruction tokens while maintaining multimodal understanding capabilities. This design enables TimeViper to process hour-long videos exceeding 10,000 frames. Extensive experiments across multiple benchmarks demonstrate that TimeViper competes with state-of-the-art models while extending frame numbers. We further analyze attention behaviors of both Mamba and Transformer layers, offering new insights into hybrid model interpretability. This work represents an initial step towards developing, interpreting, and compressing hybrid Mamba-Transformer architectures.
