Memory · Multimodal

Large World Model (LWM)

First page
Large World Model (LWM)
Paper summary

UC Berkeley's LWM is an open 7B multimodal model trained on long videos and books that handles context windows up to 1M tokens via RingAttention.

Ask this paper

Key points
01

RingAttention training: Uses blockwise RingAttention to split long sequences across devices in a ring, enabling million-token training at feasible memory cost.

02

Progressive context expansion: Training context is extended from 4K up to 1M tokens in stages, with masked sequence packing to mix sequence lengths and loss weighting to maintain short-context quality.

03

Model-generated long-context QA: Uses an LLM to synthesize QA pairs over long inputs for instruction tuning, giving the model targeted practice at answering from deep inside its context.

04

Open release: Full 7B model family, code, and curated datasets are open-sourced, setting new benchmarks on difficult long-context retrieval and long-video understanding.

Abstract

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.

Every Monday
Get next week’s papers.
Subscribe on Substack