Memory Internalization via Test-Time Training for Long-Video Understanding

Haonan Zhao, Jiaxuan Chen, Qingyang Liu, Shuochen Chang, Siyu Sun, Jiangtong Li, Li NiuarXiv 2026

Understanding long videos—like a two-hour lecture or a day-long security feed—is a massive computational headache. Standard Video-Language Models (VLMs) usually need to re-process video frames or search through a massive cache of visual tokens for every single question you ask. This "video-dependent" inference creates a significant bottleneck when you want to ask dozens of questions about the same footage.

A new paper from researchers at Shanghai Jiao Tong and Tongji University proposes a "write-once, read-many" solution: Memory Internalization via Test-Time Training (MIT³).

TL;DR

MIT³ is a framework that "bakes" a video’s knowledge into compact, video-specific model parameters (LoRA adapters) through a one-time adaptation process. Once trained, the model can answer questions about the video using text alone, outperforming previous memory-based methods while using significantly less synthetic data.

What Problem Does This Paper Address?

Current long-video QA methods generally fall into two camps:

  1. Video-dependent: They sample frames or retrieve clips for every query. This is slow and memory-intensive for repeated questions.
  2. Parameterized Memory: They try to "internalize" the video by training a small adapter (like LoRA) on synthetic text descriptions of the video.

The problem with existing parameterized memory approaches (like NKR) is that they treat the model as a "black box." They apply updates to every layer uniformly and rely solely on text descriptions, which might miss subtle visual nuances. MIT³ asks two critical questions: Where in the model should we write this video knowledge, and how can we capture the visual essence beyond just text?

Methods

MIT³ operates in three distinct stages, as illustrated in the comparison below:

Comparison of QA paradigms: MIT³ introduces causal selection and visual distillation.
  1. Video-Specific Data Generation: The system segments the video into a temporal pyramid (from 5-second clips to the full duration). A VLM generates multi-scale descriptions and QA pairs. Unlike previous methods, MIT³ focuses on high-quality, temporally grounded local QA.
  2. Causal Layer Selection: Not all transformer layers are created equal. MIT³ uses delta-injection causal tracing to identify which layers are most "useful" for a specific video. By injecting the internal representation change induced by the video into different layers and measuring the boost in answer likelihood, it selects the top-K layers for adaptation.
  3. Visual Memory Distillation: To go beyond text, MIT³ uses a "teacher-student" setup. A frozen teacher model processes the actual video and question. The student model (the text-only adapter) is trained to reproduce the internal representation change ($\Delta H$) that the teacher experienced. This distills the "feeling" of seeing the video into the text-only parameters.
The three stages of the MIT³ framework.

Datasets

The researchers evaluated MIT³ on three major benchmarks:

  • LVBench: Focused on extreme long-video understanding (videos > 1 hour).
  • LongVideoBench: A benchmark for long-context interleaved video-language tasks.
  • Video-MME: A comprehensive evaluation spanning short, medium, and long durations.

Key Insights and Ideas

  • Memory is Concentrated: The authors found that video-specific knowledge isn't scattered randomly. There is a "core" group of layers that are consistently high-utility across different videos, though each video still requires some content-dependent refinements.
  • Visual Distillation is the "Secret Sauce": Simply training on text descriptions (NTP/SFT) has limits. By forcing the model to mimic the internal state changes caused by actual visual input, the model retains information about appearance and spatial relations that text descriptions often omit.
  • Efficiency through Localization: By targeting only the most causally relevant layers, MIT³ achieves better results with roughly 1/8th the synthetic training data required by previous state-of-the-art memory methods.
Data efficiency: MIT³ saturates performance much faster than the NKR baseline.

Key Results

  • Superior Accuracy: On LVBench, MIT³ improved upon the NKR baseline by 6.8 points (using Qwen3-VL-8B).
  • Beating Video-Dependent Models: Remarkably, with a 32B backbone, MIT³ achieved a score of 50.1 on LVBench (>1h), actually surpassing direct video-conditioned inference on long-video subsets.
  • Massive Memory Savings: For a one-hour video, the persistent state required by MIT³ is 45.6x smaller than keeping a video-conditioned KV cache. This makes it feasible to store "memories" for hundreds of videos on a single server.

Limitations and Future Work

The authors note that their study focuses on test-time training—adapting a pre-trained model to a specific video. While highly effective for deployment, they haven't yet explored how these causal localization and distillation mechanisms might scale if integrated into the large-scale pre-training phase of foundation models. Future work may look at creating more persistent and reusable video knowledge that spans across multiple tasks and videos.

Summary updated

Abstract

Long-video understanding often requires answering many questions about a single video whose evidence is distributed across extended temporal contexts. Conventional video-language models repeatedly encode frames or retrieve visual evidence for every question. Parameterized video memory offers a write-once alternative, but existing methods rely primarily on synthesized text and fixed adaptation configurations, leaving open where video knowledge should be written and how visual evidence should shape the memory. We introduce Memory Internalization via Test-Time Training (MIT^3), a per-video adaptation framework that writes each long video into compact, video-specific adaptive parameters for video-free, text-only question answering. Under compact multi-scale supervision, causal tracing measures the causal memory utility of each model layer for video-grounded answering and selects video-specific adaptation locations. Visual memory distillation then trains the text-only memory to reproduce the representation change induced by the relevant video clip, preserving the internal effect of visual evidence beyond textual supervision. Across LVBench, LongVideoBench, and Video-MME, MIT^3 achieves data-efficient video-free question answering with substantially fewer synthesized samples than prior parameterized video-memory methods, demonstrating that effective video internalization depends on both where knowledge is written and how visual evidence is distilled into the model.
BibTeX
@misc{zhao2026memory,
  author = {Haonan Zhao and Jiaxuan Chen and Qingyang Liu and Shuochen Chang and Siyu Sun and Jiangtong Li and Li Niu},
  title = {{Memory Internalization via Test-Time Training for Long-Video Understanding}},
  year = {2026},
  eprint = {2610.26910},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.26910},
}
Figure