NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Shuo Gao, Chenhao Zheng, Jason RenNeurIPS 2026

TL;DR

How do you fit an elephant into a fridge? If the elephant is an hour-long movie and the fridge is a Vision-Language Model’s (VLM) context window, you don't chop the elephant into pieces—you shrink the less important parts. FramePack-U is a training-free, plug-and-play method that compresses arbitrarily long videos into a constant $O(1)$ memory budget by keeping query-relevant frames sharp and progressively downsampling background context. It lets off-the-shelf VLMs digest massive videos without running out of memory, substantially boosting accuracy without touching a single model weight.

What Problem Does This Paper Address?

Modern Vision-Language Models (VLMs) understand video by chopping it into individual frames, converting each frame into hundreds of "visual tokens," and feeding them into a Large Language Model (LLM). For a five-second clip, this works fine. For an hour-long lecture or a continuous security stream, it is a computational disaster: memory usage and latency scale linearly—$O(n)$—with video length.

Existing workarounds typically rely on token pruning or keyframe selection—essentially throwing away frames or patches deemed unimportant. This has two flaws: first, the remaining tokens still grow linearly with video duration, merely delaying the out-of-memory crash. Second, hard-dropping frames shatters temporal continuity, often erasing the fleeting two-second action needed to answer a user's question.

Methods

Inspired by FramePack (a technique from video generation that gives finer resolution to recent frames), the authors adapt the concept of variable-resolution packing for video understanding. Because understanding requires finding evidence anywhere in a timeline—not just near the end—FramePack-U introduces a content-aware, two-stage pipeline at inference time:

Figure 1: Overview of FramePack-U. Given a long video and a text query, FramePack-U selects query-relevant and visually diverse frames, then packs them with heterogeneous resolutions under a fixed memory budget. Higher-priority frames are kept at higher resolution, while lower-priority frames are progressively compressed. The packed frames are fed into the VLM for answer generation.
  1. Relevance- and Diversity-Aware Sampling: Using a lightweight CLIP model, every candidate frame is scored for semantic similarity to the user's text prompt. To avoid picking 50 nearly identical frames of the same scene, a greedy algorithm iteratively selects frames that maximize a trade-off between prompt relevance and visual distinctness from already-picked frames.
  2. Hierarchical Resolution Packing: Instead of encoding all selected frames equally, FramePack-U assigns spatial resolutions based on their ranking, constrained by a strict, fixed token budget. Top-ranked "anchor" frames stay at full resolution ($d=1$), while lower-ranked contextual frames are spatially downsampled ($d=2, 4, \dots$). Downsampling by a factor of $d$ reduces a frame's token footprint by $d^2$. For example, one full-resolution frame takes the same memory as four $2\times$-downsampled frames or sixteen $4\times$-downsampled frames. Finally, the resized frames are re-sorted into chronological order and handed to the VLM.
Figure 2: Illustration of packing schemes under the same memory budget. Using a 4-frame memory budget as an example, red, yellow, and blue denote frames with downsampling factors d = 1, 2, 4, respectively. Different resolution combinations can use the same memory while packing different numbers of frames.

Datasets

Because FramePack-U is completely training-free, no training datasets are used. Evaluation is conducted on three established long-video question-answering benchmarks (no new benchmarks are introduced):

  • LongVideoBench: Tests reasoning across videos ranging from 15 seconds up to 60 minutes.
  • MLVU: Evaluates multi-task long-video understanding (reported via M-average score).
  • Video-MME: A comprehensive multimodal benchmark spanning short, medium, and long videos.

Key Insights and Ideas

  • Squinting beats blinking: Standard token-reduction baselines (like FastVID and VisionZip) often perform worse than simple uniform frame sampling under strict budgets because dropping tokens destroys context. FramePack-U shows it is far better to "squint" at 400 blurry contextual frames while keeping 16 key frames crystal clear than to look at 128 sharp, uniformly spaced frames and miss the plot entirely.
  • Relevance without diversity is a trap: In ablations, ranking frames purely by prompt similarity caused performance on Video-MME to drop by over 6 points. Without diversity enforcement, the high-resolution budget gets hogged by redundant frames from a single matching scene.
  • Bigger brains use peripheral vision better: Scaling ablations (comparing 4B, 9B, and 27B parameter models) revealed that larger VLMs benefit much more from FramePack-U. Smaller models struggle to synthesize and reason over 1,000+ low-resolution contextual frames, occasionally even degrading slightly, whereas 27B+ models thrive on the dense temporal tapestry.

Key Results

Tested under identical visual memory budgets (equivalent to 128, 256, and 512 full-resolution frames), FramePack-U consistently beat both vanilla uniform sampling and prior training-free compression methods across dense (Qwen3.6-27B) and Mixture-of-Experts (Qwen3.5-35B-A3B) backbones.

Main benchmark results comparing FramePack-U against baselines and proprietary models
  • Massive gains under tight budgets: On Qwen3.5-35B-A3B with a 128-frame memory budget (packing 32 full-res and 384 half-res frames), FramePack-U jumped +12.9% on LongVideoBench (to 72.3%), +10.6% on MLVU (82.4%), and +9.7% on Video-MME (76.4%) over the official baseline.
  • Punching up to proprietary giants: Equipped with FramePack-U, open-weight Qwen models rivaled or beat closed-source frontier models—for instance, hitting 84.7% on MLVU (512-frame budget), outperforming GPT-5 (77.7%) and Gemini 3 Pro (75.7%).

Limitations and Future Work

  • Resolution floors: While FramePack-U can theoretically pack infinitely many frames into a constant budget, you cannot shrink frames down to single pixels. Once per-frame resolution drops below what the VLM saw during pre-training, visual comprehension degrades, making the total candidate count $N$ a practical trade-off hyperparameter.
  • Small-model bottlenecks: As shown in the scaling ablations, smaller VLMs (e.g., 4B parameters) lack the reasoning capacity to digest massive numbers of packed frames effectively.
  • Streaming deployment: While experiments sampled initial frames offline for benchmarking, the authors note the pipeline can operate in an online mode for low-latency, unbounded streaming video understanding.

Summary updated

BibTeX
@inproceedings{gao2026elephant,
  author = {Shuo Gao and Chenhao Zheng and Jason Ren},
  title = {{Elephant in the Fridge: Constant-Memory Frame Packing for Long Video Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HHDoc7LvR2},
}
Figure