# Elephant in the Fridge: Constant-Memory Frame Packing for Long Video Understanding

*Shuo Gao, Chenhao Zheng, Jason Ren*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153957) · [OpenReview](https://openreview.net/forum?id=HHDoc7LvR2) · [Open on the map](../papers.html#p153957)

Category: [Video Understanding & Generation](../pcat/3.md) › [Video Token Compression](../pgroup/610.md) · Type: new method · Keywords: long video understanding, constant-memory frame packing, vision-language models, token budget, efficient inference

Areas: [Memory](../areas/memory.md) › Long-horizon memory › Streaming video memory; [Long Context](../areas/longcontext.md) › Video Sequence Modeling › Long video understanding; [Multimodal](../areas/multimodal.md) › Multimodal Visual Reasoning › Video Model Efficiency

## Summary
model is a training-free frame packing framework that compresses arbitrarily long videos into a fixed-size visual representation at constant memory cost, enabling efficient long video understanding.

## Explained to a 5-year-old
Imagine a super long movie that lasts for an hour. To understand it, a computer looks at each picture one by one, but that needs a lot of memory. The problem is that the memory grows a lot when there are many pictures. The new idea is to choose only the most important pictures, like the ones that show the main story. It also picks pictures that are different from each other, so you get a good overview.

## Explained to a 5-year-old, longer
Imagine a super long movie that lasts for an hour. To understand it, a computer looks at each picture one by one, but that needs a lot of memory. The problem is that the memory grows a lot when there are many pictures. The new idea is to choose only the most important pictures, like the ones that show the main story. It also picks pictures that are different from each other, so you get a good overview. The computer scores each picture by how well it matches the question you have. Then it packs the chosen pictures into a small space, using a fixed amount of memory. This way, you can watch very long videos without the computer running out of memory. The method works without needing to train the computer or change its design. It can be used with many different video models. This makes it easy for people to process long videos on regular computers. It also helps when you want to understand videos that are too long for normal methods. The idea is simple but effective, and it works well on many tests.

## For a technical reader
The paper tackles the memory scaling issue of vision-language models when processing long videos. It introduces a two-stage pipeline that scores frames by semantic similarity to the prompt and selects a diverse subset under a fixed token budget. Selected frames are then packed at varying resolutions into a constant-size context window, enabling inference with constant memory regardless of video length. The solution requires no fine-tuning or architectural changes and integrates directly with off-the-shelf VLMs.

## Problem
Vision-language models struggle with long videos because encoding each frame into visual tokens leads to linear memory growth, causing prohibitive memory consumption and inference latency. Existing token reduction and keyframe selection methods only partially mitigate this O(n) scaling, leaving a fundamental bottleneck.

## Method
The approach scores each frame by its semantic similarity to the text prompt and ranks frames in a diversity-driven manner, then packs selected frames at varying resolutions into a fixed-length context window under a constant token budget. This concentrates the memory budget on frames that are both instruction-relevant and visually diverse. An empirical instantiation generalizes across settings without fine-tuning or architectural changes.

## Results
The approach consistently outperforms full-resolution baselines and prior token reduction/keyframe selection methods across model families and frame budgets, achieving gains of +12.9%, +10.6%, and +9.7% on the three benchmarks with a 128-frame budget using Qwen3.5-35B-A3B.

## Contributions
A content-aware compression strategy that packs arbitrarily many frames into a fixed token budget at constant memory cost, requiring no fine-tuning or architectural changes, and an empirical evaluation showing robust performance across diverse settings.

## Practical relevance
It can be plugged into existing vision-language models, allowing efficient inference on long videos without additional training or hardware changes.

## Research questions this paper is counted under

- [How can we select or compress visual tokens to reduce computational cost without losing critical information in vision-language models?](../q/13.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153957)
