Training Long-Context Vision-Language Models Effectively with Generalization Beyond 128K Context
Zhaowei Wang, Lishu Luo, Haodong Duan, WeiWeiLiu, Sijin Wu, Ji Luo, Shen Yan, Shuai Peng, Sihang Yuan, Chaoyi Huang, Yi Lin, Yangqiu Song
NeurIPS page · OpenReview · Open on the map
Category: Multimodal, Audio & Medical Reasoning › Multimodal Visual Reasoning · Type: new method · Keywords: long-context vision-language models, continued pre-training, data composition, generalization beyond training context, multimodal understanding
Areas: LLM Reasoning › Domain-Specific Reasoning › Visual Reasoning; Long Context › Video Sequence Modeling › Long video understanding; Multimodal › Multimodal Visual Reasoning › Vision-Language Grounding and Generation
Summary
MMProLong is a long-context continued pre-training recipe that extends a 7B vision-language model to 128K context and yields strong generalization to longer contexts.
Explained to a 5-year-old
The researchers wanted a computer program that could look at pictures and read text for a long time. They taught it using many made-up questions about long documents. They also mixed in a little bit of reasoning so it could think. After training, the program could answer questions about very long texts and pictures even when the text was longer than it had seen before. This helps the program be useful for reading long papers, watching long videos, and finding information in big webpages.
Explained to a 5-year-old, longer
A computer program called a vision-language model can look at pictures and understand words. Usually these programs can only remember a short amount of information at once. The researchers wanted to make a program that could remember a lot more, like a whole book. They created new training data by making lots of questions about long documents. They also added a little bit of data that required thinking and reasoning. By mixing these two kinds of data, the program learned to answer questions about long texts and pictures. After training, the program could still answer short questions as well as before. It could also handle pictures and text that were longer than what it had seen during training. This means it could read very long articles, watch long videos, and find hidden information in big webpages. The researchers called their new training method a recipe because it was simple and practical. The program needed only a small amount of training data, so it could be made without a lot of computer power. This makes it easier for people to build helpful AI tools for reading and understanding big amounts of information.
For a technical reader
The paper introduces a training recipe that extends a 7-billion-parameter vision-language model from a 32K to a 128K token context window. It demonstrates that synthesizing long-document VQA data and mixing it with retrieval-heavy examples improves performance while preserving short-context capabilities. The recipe uses a modest 5B token budget and shows zero-shot generalization to contexts up to 512K tokens and to tasks like needle-in-a-haystack, compression, and long-video understanding. This approach provides a practical, scalable method for developers to build long-context multimodal models without extensive computational resources.
Problem
Training large vision-language models to handle very long contexts is challenging because constructing diverse long-context data and mixing it appropriately is under-studied, and models often fail to generalize beyond the context length seen during training.
Method
The approach conducts a systematic study of continued pre-training, synthesizing long-document VQA data, and mixing retrieval-heavy and reasoning-heavy data; it ablates data composition and shows that instruction-formatted long data preserves short-context performance. The resulting recipe extends a 7B model to 128K context using a limited token budget.
Results
The approach yields a 7.11-point gain on long-document VQA with only 5B tokens and retains strong performance at 256K and 512K contexts without further training, while also transferring to needle-in-a-haystack, compression, and long-video tasks.
Contributions
It provides a systematic study of long-context continued pre-training, identifies effective data composition strategies, and proposes a practical recipe that extends LVLMs to 128K context and enables zero-shot generalization to longer contexts and related tasks.
Practical relevance
It offers a practical training recipe that enables developers to build vision-language models with long contexts using limited compute, facilitating applications such as document analysis and video understanding.
Research questions this paper is counted under
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