TL;DR
The paper introduces AVIOT (Aggregating Visual Information with Optimal Transport), a novel framework that compresses the massive sequence of visual tokens in Video Language Models (VideoLMs) by framing compression as an optimal transport problem. By dynamically shifting token capacity toward question-relevant frames and across multiple spatial granularities, AVIOT slashes computational overhead while matching or even outperforming uncompressed baselines.
What Problem Does This Paper Address?
Video Language Models (VideoLMs) have advanced significantly, but they suffer from a major computational bottleneck: visual token bloat. When a VideoLM processes a video, it samples frames and converts each into a grid of spatial tokens. For long videos, this sequence grows linearly, quickly dominating the Large Language Model's (LLM) context window and causing massive computational and memory overhead during the "prefill" decoding phase.
While existing methods try to fix this by dropping redundant frames (pruning) or using fixed pooling bottlenecks, they often discard critical information or fail to align the compressed tokens with the user's specific question. The challenge is to compress these dense visual sequences into a compact representation without losing the fine-grained temporal and spatial details necessary to answer complex questions.
Methods
AVIOT rethinks video token compression by modeling it as an Optimal Transport (OT) problem. Instead of simply selecting or averaging frames, it treats dense source frame observations as a probability measure and maps them onto a smaller, prescribed set of target "supports" (the compressed tokens).
The framework introduces three key innovations:
- OT Representation Construction: It solves an entropy-regularized optimal transport problem to create a soft coupling between source frames and target tokens. This coupling determines exactly how much information from each original frame is aggregated into each compressed token via barycentric projection.
- Question-Conditioned Transport: The user's question dynamically alters the transport cost matrix. Furthermore, AVIOT uses a question-conditioned allocation mechanism to dynamically distribute the token budget, assigning more compressed tokens to temporal segments highly relevant to the query.
- Multi-Granularity Spatial Transport: To prevent spatial details from being smeared across time, AVIOT computes transport plans at three hierarchical levels: global (the whole frame), medium (a $3 \times 3$ grid), and local (a $9 \times 9$ grid). An adaptive gating mechanism fuses these representations, allowing different regions within a single compressed token to draw from entirely different moments in the video.
Datasets
The model was trained on the LLaVA-Video-178K dataset. To demonstrate its robustness, the authors evaluated AVIOT across ten diverse video-understanding benchmarks:
- Core Controlled Evaluation: Video-MME, EgoSchema, MVBench, ActivityNet-QA, and Perception Test.
- Extended Evaluation: NExT-QA, LongVideoBench, Video-MMMU, LVBench, and TempCompass.
Key Insights and Ideas
- Compression as Information Redistribution: Rather than viewing compression as a binary choice of what to keep or delete, AVIOT views it as efficiently "moving" mass. This global coordination ensures that even if a frame is compressed, its unique information is preserved collectively across the target tokens.
- Spatiotemporal Flexibility: Because of the multi-granularity spatial transport, a compressed token isn't just a blurred blend of consecutive frames. It can seamlessly combine a static background from one part of the video with a fast-moving object from another.
- Zero-Shot Ratio Generalization: Although trained on compression ratios between 2 and 10, the mathematical grounding of optimal transport allows AVIOT to generalize to unseen, extreme compression ratios (up to 20) at inference time without any extra tuning.
Key Results
AVIOT achieves remarkable efficiency gains without sacrificing accuracy. When compressing a 64-frame input, it consistently outperforms standard baselines like Uniform Keep and Segment Mean.
- Performance Gains: At a compression ratio of $r=2$ (retaining 50% of tokens), AVIOT actually outperforms the uncompressed LLaVA-Video-7B backbone by an average of 2.36 points across five major benchmarks. At $r=4$ (25% retention), it still beats the uncompressed baseline by 1.02 points.
- Computational Savings: At $r=2$, AVIOT reduces decoder prefill FLOPs by 58.5%. At $r=10$, it slashes prefill FLOPs by 92.4% while remaining highly competitive with the uncompressed model.
Limitations and Future Work
While AVIOT drastically reduces the token burden on the LLM decoder, it is applied after the visual features are extracted. This means it does not reduce the initial computation required by the vision encoder to process all the raw video frames.
Additionally, the compression ratio ($r$) must currently be specified externally at inference time. The authors note that automatically and dynamically selecting an optimal compression ratio based on the complexity of the video and the difficulty of the question remains an open direction for future research.
Summary updated