[Paper Review] World Model on Million-Length Video And Language With Blockwise RingAttention
The paper trains one of the largest context transformers to jointly model million-length video and language data using RingAttention, progressively increasing context from 4K to 1M tokens, and open-sourcing 7B-parameter models for long multimodal sequences.
Enabling long-context understanding remains a key challenge in scaling existing sequence models -- a crucial component in developing generally intelligent models that can process and operate over long temporal horizons that potentially consist of millions of tokens. In this paper, we aim to address these challenges by providing a comprehensive exploration of the full development process for producing 1M context language models and video-language models, setting new benchmarks in language retrieval and new capabilities in long video understanding. We detail our long context data curation process, progressive context extension from 4K to 1M tokens, and present an efficient open-source implementation for scalable training on long sequences. Additionally, we open-source a family of 7B parameter models capable of processing long text documents and videos exceeding 1M tokens.
Motivation & Objective
- Motivate and enable joint understanding of long-form language and long videos to model complex real-world scenarios.
- Develop scalable training techniques to handle sequences of millions of tokens across text, images, and video.
- Open-source a family of 7B-parameter models capable of 1M-token multimodal context for long-form reasoning and generation.
Proposed method
- Use RingAttention to scale transformer context to up to 1M tokens with progressive context length growth (32K → 1M).
- Extend RoPE positional encodings by scaling theta with context length for long contexts.
- Train in two stages: Stage I long-context language models (LWM-Text and LWM-Text-Chat) and Stage II vision-language models (LWM and LWM-Chat).
- Implement masked sequence packing to train on mixed sequence lengths and balance loss between vision and language modalities.
- Create a model-generated QA dataset from books to enable long-context chat abilities.
- Tokenize visual data with VQGAN and insert vision tokens with explicit <vision>, <eof>, and <eov> delimiters to enable any-to-any modality training.
Experimental results
Research questions
- RQ1Can a transformer with a 1M-token context jointly model long-form language and video data?
- RQ2What training strategies (data mix, masking, and loss weighting) are needed to effectively learn from multimodal, long-context sequences?
- RQ3How do long-context models perform on retrieval, long video understanding, and multimodal generation tasks compared to shorter-context baselines?
- RQ4What is the impact of progressive context growth and RoPE extrapolation on short-context language tasks?
- RQ5How well do the released 7B models perform on long-form chat and multimodal tasks?
Key findings
- Achieves near-perfect needle retrieval accuracy across 1M context in the Single Needle Retrieval task.
- Shows competitive or superior performance to GPT-4 on certain multi-needle retrieval settings at 32K, 128K, and 1M contexts.
- Expands context without harming short-context language task performance, with similar or better results on short-context benchmarks.
- Demonstrates long video understanding capabilities by answering questions over a 1-hour, 500+ clip YouTube compilation.
- Enables long-form image and video generation, and multimodal QA with vision-language data up to 1M tokens.
- Releases a family of 7B-parameter models (LWM-Text, LWM-Text-Chat, LWM, LWM-Chat) open-sourced for million-token multimodal sequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.