Long context · Sequence memory
Long Context Is a Memory Problem
A memory-first guide to dense, sparse, linear, and hybrid sequence models across LLMs, video generation, and world models.
A one-million-token prompt and a one-minute video seem to pose the same engineering problem. Both produce a sequence too long for standard self-attention. Both turn an attention matrix into the dominant cost. Both motivate methods described as linear, sparse, or even infinite-context.
But the resemblance is misleading.
An LLM reading a codebase may need to recover one exact definition from 500,000 tokens ago. A video generator mostly needs to preserve texture, motion, and object identity across a highly redundant space-time grid. A world model must continuously update its belief about the environment while remembering a few old events that may matter much later.
These are not merely different sequence lengths. They are different memory problems.
The cleanest way to connect these methods is to ask where each architecture discards information:
- Dense attention keeps every past token addressable and reads all of them.
- Sparse attention keeps token-level memories but reads only selected ones. It compresses the read path.
- Linear attention folds the past into a fixed-size state before future queries arrive. It compresses the memory itself.
This distinction will be the spine of the article. We will derive both mechanisms from standard attention, identify exactly what each one loses, then use that model to explain why LLMs, video diffusion models, and causal world models converge on different hybrids.
Figure 1. Three sequence-memory contracts. Blue slots are separately addressable records, orange paths are query-dependent reads, purple is bounded recurrent state, and red marks the first place where the operator may irreversibly discard information. This is an original synthesis; it describes operator semantics, not a guarantee that a trained model will recall correctly.
The goal is self-contained understanding rather than a paper catalog. Each representative paper will answer one question, expose one mechanism, and carry one caveat. Sources were checked through August 28, 2026. Recent preprints are marked as such, and speed numbers should not be compared across different models and hardware.
Reading map
The article has three parts:
- Memory contracts. We derive dense, sparse, and linear operators from the same attention equation, then ask what becomes inaccessible in each one.
- Domain geometry. We stress-test the contracts on language, video diffusion, and causal world models.
- Design and evaluation. We turn the mechanisms into architecture choices and ask how usable memory should be measured.
Readers comfortable with attention can skim the first derivation and start at Section 2. Readers mainly interested in systems can jump to Sections 5–8, but the distinction between missed access and memory interference in Section 4 is the conceptual hinge.
Notation
| Symbol | Meaning |
|---|---|
| sequence length | |
| key/query and value dimensions for one head | |
| feature or recurrent-state dimension in kernelized linear attention | |
| local attention-window width | |
| number of tokens in one sparse-attention block | |
| number of selected blocks | |
| key positions available to query in sparse attention | |
| recurrent matrix state after processing position |
Scope: which kind of “memory” is this article classifying?
The taxonomy concerns token-time memory: how many past positions remain separately addressable, how many are read for a query, and whether the past has already been merged into state.
Several useful techniques change a different axis. Grouped-query attention shares KV heads. Multi-head Latent Attention compresses each token's KV representation into a smaller latent. Quantization stores each record with fewer bits. Position-interpolation methods extend the positions a model can accept. These methods can drastically reduce memory or extend a nominal window, but they still leave token positions in the cache. They change bytes per record or position generalization, not the number of addressable records.
External retrieval is another neighboring meaning. RAG may search a database before the prompt is constructed; sparse attention selects among records already inside the model's context or cache. Both perform retrieval, but they are trained, indexed, and evaluated differently. We will refer to external memory only when discussing the likely hierarchy of a complete system.
1. What does quadratic attention actually buy?
Let a sequence have length . For one attention head, define
Standard attention is
The score matrix contains one comparison for every query-key pair. Computing it costs ; multiplying the probabilities by costs . The projections that create cost , so attention becomes dominant only once is large relative to the model width.
For causal language modeling, row is masked so query can use only positions :
This formula provides two valuable properties.
First, every past position contributes a separate key-value record. The number of addressable slots grows with . Second, the model does not have to know which record matters when it is written. It waits for , compares that query with all stored keys, and decides at read time. This is late-bound, content-addressable memory.
Quadratic attention buys one privilege: each past position remains separately addressable until the future query is known.
That sentence needs a careful boundary. The KV vectors are learned projections, not lossless copies of the raw tokens. Attention also returns a weighted mixture rather than the selected record itself. Dense attention therefore does not guarantee exact recall. It guarantees only that the attention policy has not already removed a position or merged all positions into one fixed state. Training, representation quality, positional encoding, finite precision, and later layers can still lose the information.
That gives us the central comparison:
| Memory policy | What remains explicit? | When can information be lost? | Characteristic failure |
|---|---|---|---|
| Dense attention | One KV record per position; every valid query-key pair can be evaluated | The access policy does not remove positions, but learned representations can still be inadequate | Compute and memory traffic grow rapidly |
| Sparse attention | Usually every token, but only selected edges | At read time, when routing excludes keys | The relevant record is not selected |
| Linear attention | A fixed-size state shared by all past tokens | At write/update time, through compression | A record is overwritten or entangled |
Sparse attention sacrifices access coverage. Linear attention sacrifices explicit memory capacity. Both may have linear complexity in , but they pay different information taxes.
Figure 2. One equation, four computation graphs. Dense attention materializes all pairwise interactions; sparse attention removes edges; kernel factorization changes the multiplication order; recurrence carries the resulting state forward. The blue records and purple state keep the same meaning as Figure 1.
Exact attention can be faster without changing this policy
FlashAttention is often grouped with efficient-attention methods, but conceptually it belongs outside our sparse-versus-linear split. It computes exact softmax attention in tiles. Each tile loads blocks of into fast on-chip SRAM, maintains the row-wise softmax statistics online, and avoids materializing the full probability matrix in high-bandwidth memory.
The online softmax works because a partial row can be updated when a new block arrives. If the previous block had maximum and normalizer , and the new block has maximum , both can be rescaled relative to
before their exponentials and weighted values are combined. The result is mathematically the same as evaluating the full row at once, apart from ordinary floating-point effects.
RingAttention distributes sequence blocks across devices and passes KV blocks around a ring while each device computes local query-block products. It expands available memory and overlaps communication with compute, but every query can still meet every key.
The two papers solve different bottlenecks:
| Paper | Question | Mechanism | What it establishes | Boundary |
|---|---|---|---|---|
| FlashAttention | Can exact attention stop moving an matrix through slow memory? | Tile , fuse operations, and maintain softmax statistics online | Exact attention can be IO-aware and much more memory-efficient | Pairwise arithmetic remains quadratic |
| RingAttention | Can a context exceed one device's memory without changing the attention rule? | Keep query blocks local while KV blocks circulate through a device ring | Sequence memory can be distributed and communication can overlap compute | Total resources and pairwise work still grow with context |
To see RingAttention mechanically, imagine four devices. Device 0 owns ; device 1 owns ; and so on. In the first round, every device attends its local queries to its local KV block. Then each KV block moves one hop around the ring. After four rounds, every local query block has interacted with every KV block. Online softmax combines the partial results without ever gathering the full sequence on one device.
This example is worth keeping in mind later. A million-token model built with RingAttention has a very different memory promise from a million-token recurrent model. The former pays more devices so the old positions remain separately addressable. The latter pays a compression error so the amount of state does not grow.
Both techniques preserve dense attention's memory semantics. They reduce IO, activation memory, or per-device storage; they do not remove the pairwise work. This is the first practical decision boundary: if exact attention becomes affordable after better kernels or context parallelism, changing the model is unnecessary.
Sparse and linear attention matter when the pairwise work or growing KV state itself must change.
2. Sparse attention compresses the read path
For causal attention, let be the key positions selected for query . Sparse attention computes
If , the exact attention over selected records costs for a full sequence rather than . No approximation is required inside the selected set. The approximation is the set itself.
This turns attention into a routing problem: how do we construct cheaply without excluding anything important?
2.1 Static sparsity: relevance has a known shape
The simplest answer is to define the graph before seeing the query content. A local causal window of width uses
Its cost is , and its KV cache can be bounded to the most recent positions if no other path needs older tokens. The price is a finite direct receptive field. After layers, information can in principle travel roughly positions, but it reaches a distant token only after repeated mixing and nonlinear transformations. That is not equivalent to direct retrieval.
Longformer augments sliding windows with selected global tokens. BigBird combines local, random, and global edges. Global tokens shorten graph distance: local tokens can write to a global node, and distant tokens can read from it. But the global node is a bottleneck, and the architecture assumes that a small fixed set can carry the necessary long-range communication.
Longformer is easiest to understand as a document graph. Most words exchange information only with nearby words. A few positions—such as a classification token or question tokens—receive global edges and can communicate with the whole document. The important design choice is task-dependent: the author must know which positions deserve global access before the content of a future query is known.
BigBird asks whether the graph can remain sparse without becoming disconnected. Local edges carry nearby structure, global edges create hubs, and random edges make it unlikely that two regions stay separated by a long path. The paper also proves expressivity properties for its particular graph construction. Those results do not say that any arbitrary sparse mask will preserve Transformer behavior; they depend on the local, random, and global components working together.
Static patterns work well when the data geometry matches them. Language is locally coherent. Video is even more local in space and time. Regular windows also map cleanly to block-sparse GPU kernels.
Their limitation is equally clear: distance is not relevance. A variable definition can be far from its use. A conversation can refer back to its first turn. An object can leave a video and return later. Static sparsity encodes a prior about how information should propagate; it cannot guarantee that the relevant record remains one hop away.
2.2 Dynamic sparsity: decide after seeing the query
Dynamic methods try to preserve dense attention's late binding. A common blockwise design looks like this:
Split the KV sequence into blocks, each containing tokens, so .
Build a cheap representative for block , perhaps by pooling or a learned compression.
Score a query against all representatives:
Select the top blocks.
Compute exact softmax attention over the tokens inside those blocks, often plus a local window.
The expensive exact-attention part is now per query, but routing still costs if every representative is scanned. Across all queries, that exhaustive routing step is . Dynamic block sparsity can therefore reduce the constant, memory traffic, and expensive fine-grained attention without making the complete full-sequence algorithm strictly linear. To change the asymptotic routing cost as well, a system needs hierarchical search, a sublinear index, shared routing decisions, or a block size that itself grows with .
Larger blocks make routing cheaper and kernels more regular, but they also load more irrelevant tokens. Smaller blocks improve selectivity while increasing index size and irregular memory access. This is not a minor tuning detail: block granularity controls both the statistical error and the shape of the GPU program.
Mixture of Block Attention treats KV blocks somewhat like experts and routes queries to a subset. Native Sparse Attention combines three branches:
- a compressed branch that exposes a coarse global summary;
- a selected branch that retrieves fine-grained blocks guided by relevance;
- a sliding-window branch that protects recent local context.
This three-path design is useful beyond the specific paper. Coarse summaries make global routing affordable. Selected blocks restore token-level detail. The local path prevents a router mistake from destroying the recent context that is almost always useful.
Figure 3. Four meanings of sparse attention. Static windows decide edges from position; MoBA/NSA learn block selection as part of the model; MInference discovers head-specific patterns for prefill in an existing model; Quest selects KV pages for one decode query. They should not be compared as if they optimize the same stage.
Paper checkpoint: MoBA
Question. Can the top- routing idea from mixture-of-experts be applied to attention blocks?
Mechanism. MoBA partitions the context into contiguous KV blocks. A query scores each block using the dot product between the query and the block's mean key, selects the top blocks, always includes its current block, then runs ordinary causal softmax attention inside the selected blocks. Queries assigned to the same block are regrouped so the computation can reuse FlashAttention-style kernels.
Evidence. In its controlled scaling experiments, MoBA and full-attention models use the same surrounding architecture and training settings. The paper reports similar validation-loss scaling while the MoBA configuration reads only a fraction of the blocks; its million-token system keeps the final layers dense and uses MoBA in the other layers. The result supports MoBA as a trainable sparse substitute, not as proof that routing never misses rare evidence.
Limitation. Mean-pooled keys are a lossy routing summary. A block containing one decisive token and many unrelated tokens may receive an unremarkable average score. The paper's own granularity ablation shows that finer segmentation improves loss at fixed sparsity, while also creating more routing and scheduling work.
Paper checkpoint: Native Sparse Attention
Question. Can one sparse operator cover global gist, exact selected detail, and recent context while remaining hardware-aligned?
Mechanism. NSA uses three gated branches. The compression branch maps overlapping blocks to learned summary KV pairs. The selection branch uses coarse scores to activate contiguous fine-grained blocks. The sliding branch reads a recent local window. Their outputs are combined with learned gates rather than forcing one branch to solve every dependency.
The three branches correspond to three different failure protections:
- compression prevents the remote past from becoming completely invisible;
- selection restores detail that a summary cannot preserve;
- the window gives recent tokens a route that does not depend on a possibly fragile global router.
Evidence and boundary. NSA is natively trained with this structure and co-designs the block layout with kernels. Its reported gains therefore combine modeling and systems choices. They should not be read as a claim that the same mask can be retrofitted to any dense model without retraining, or that every long-range fact survives the compressed branch.
2.3 Why fewer FLOPs may not mean lower latency
GPUs are built for large regular matrix multiplications. A mathematically sparse attention pattern can be hardware-dense in all the wrong places: index calculation, top-k selection, scattered gathers, small matrix products, and synchronization.
Suppose a dense kernel sustains a large fraction of peak tensor-core throughput, while a sparse kernel uses only 10% of the arithmetic but performs irregular loads at a small fraction of peak bandwidth. The sparse method can lose in wall-clock time despite winning in FLOPs. This is why modern sparse-attention work often chooses block granularity and routing rules together with the kernel.
The correct efficiency object is not asymptotic attention FLOPs. It is
2.4 Sparse compute does not automatically shrink the KV cache
There are two distinct sparse systems:
- Full storage, sparse reads. All keys and values remain available; each query accesses only a subset.
- Sparse storage and sparse reads. Old KV records are evicted, compressed, or offloaded as well.
The first preserves the possibility of exact distant recall if routing succeeds, but KV memory still grows as . For a decoder layer with KV heads and head dimension , a cache stores roughly
numbers per sequence—the factor two is for keys and values. Grouped-query or multi-query attention reduces , but the cache still grows with .
The second regime bounds device memory, but now information can be lost twice: a useful record may have been removed at write time, or it may remain in storage but be missed at read time.
Sparse attention should therefore be evaluated by routing recall under a latency and storage budget. Sparsity percentage alone says very little.
Paper checkpoint: MInference and Quest optimize different moments
Two methods that both advertise sparse attention can sit on opposite sides of the serving pipeline.
| Method | Stage | What is already stored? | How work is removed | Characteristic risk |
|---|---|---|---|---|
| MInference | Prefill | The entire prompt is available as a batch | Assign each head an A-shaped, vertical-slash, or block-sparse pattern, then construct the pattern's indices from the current input | A head's important edges do not fit the chosen pattern |
| Quest | Autoregressive decode | The full KV cache already exists in pages | Store per-page key ranges, score pages against the new query, and load only the top pages' full KV records | The page-level upper bound ranks a useful page too low |
MInference begins from an empirical observation: in many pretrained long-context models, different heads repeatedly produce a small family of attention shapes. Some heads emphasize the beginning and the recent diagonal—the A shape. Some concentrate on a few vertical columns plus a local diagonal. Others are already block-like. An offline search chooses a pattern for each head; at runtime the input determines the actual vertical columns or blocks. This makes MInference a retrofit for expensive prompt processing. It does not make the later KV cache constant-sized.
Quest starts after prefill. For each KV page, it records the minimum and maximum value of every key channel. Given a query, those ranges provide a cheap upper bound on how strongly any key in that page could match. Quest ranks pages by the bound, loads full keys and values only from the top pages, and performs ordinary attention inside them. The full cache remains the safety reservoir; the optimization is reduced memory traffic for each new token.
Both papers report substantial speedups on their evaluated models and GPUs—MInference for prefill, Quest for decode. Those numbers are system results, not properties of sparsity alone. More importantly, neither paper removes the information-theoretic problem: a coarse pattern or page score can still hide the one record a future answer needs.
3. Linear attention compresses the memory itself
Sparse attention keeps token-level records. Linear attention asks whether the history can be summarized before the future query arrives.
3.1 From an attention matrix to a recurrent state
Ignore softmax for a moment and consider an attention kernel that factorizes as
where is a feature map. Then
Matrix multiplication is associative, so we can change the order:
The original order constructs an matrix. The new order constructs an matrix. When , this changes the sequence-length scaling from quadratic to linear:
If is similar to the head dimension, people often summarize this as . That detail matters: linear attention is linear in , not necessarily cheap for short sequences or large feature dimension.
Softmax attention uses
which is itself a kernel. Performer approximates it with positive random features so that
Other linear Transformers choose feature maps that are easy and stable rather than explicitly approximating softmax. Either way, once the similarity factorizes, normalization can also be rearranged.
For causal attention, maintain
and
The output is
Crucially, the states update recursively:
This is the result behind the title Transformers are RNNs. During training, the computation can be expressed in parallel or chunkwise form. During autoregressive decoding, the model carries forward and discards token-level KV records.
The state size is per head and does not grow with context length. Each new token costs to write and read. Linear attention therefore attacks both growing attention work and growing KV cache.
Paper checkpoint: Performer
Question. Can softmax attention itself be approximated by a factorized kernel, rather than replaced by an unrelated similarity?
Mechanism. Performer uses positive random features to estimate the exponential dot-product kernel. Conceptually, it replaces each pairwise term with an inner product , then reassociates the multiplication exactly as above. Increasing the number of random features reduces approximation error but enlarges the recurrent state and its compute.
What the paper contributes. It shows that “linear attention” can be understood as a controlled approximation to a familiar dense operator. It also makes the three-way trade explicit: feature count controls approximation quality, state size, and runtime.
Boundary. The recurrence is exact for the sampled feature map, not for softmax itself. Random-feature variance, numerical normalization, and finite feature dimension remain part of the model. Later gated and delta-rule models increasingly abandon faithful softmax imitation and instead learn a better bounded-memory update.
3.2 The fixed state is an associative memory
The unnormalized state
can be viewed as a fast-weight associative memory. Fast Weight Programmers makes this equivalence explicit: the outer-product sum is a rapidly changing weight matrix, written by the sequence and read by the query. Each transformed key defines a direction; its value is written along that direction. Reading with returns a weighted mixture of stored values.
This view makes the limitation obvious. If two keys have similar feature representations, their values occupy overlapping directions. As more associations are added, interference grows. Dense attention gives each token a separate memory slot. Linear attention stores all tokens in a fixed basis of dimension .
A two-key example makes the collision concrete. Suppose normalized feature keys and store values and :
Reading with gives
The desired value is contaminated by in proportion to the key overlap . Orthogonal keys do not interfere; identical keys are indistinguishable. Learned features, gates, and overwrite rules can manage collisions, but a fixed-dimensional state cannot manufacture an unlimited number of orthogonal directions.
The model has exchanged a growing list of records for a fixed-size lossy sketch.
That sketch can work extremely well for running statistics, repeated patterns, or slowly changing state. It is less naturally suited to a one-off arbitrary value that must be recovered exactly after a very long delay.
The word “fixed” also needs a finite-precision qualifier. A real-valued vector can encode unbounded information only in an idealized mathematical model with infinite precision and arbitrarily fragile decoding. Actual accelerators store a finite number of bits, and a useful memory must remain decodable under numerical error and ordinary perturbations. Runtime can be constant while robust recall still saturates.
3.3 Gates decide what to forget
Pure additive updates never remove information:
A decay gate introduces forgetting:
Depending on the architecture, may be a scalar, vector, or structured matrix. A small gate quickly clears stale memory; a gate near one preserves it. Data-dependent gating lets the model choose retention time from the current token instead of using a fixed exponential decay.
Gated Linear Attention combines this idea with a hardware-aware chunkwise algorithm. Within a chunk, many operations are parallel matrix multiplications. Across chunks, a compact recurrent state is passed forward. This resolves a practical tension: recurrence is efficient at decode time, while parallelism is essential during training.
Paper checkpoint: Gated Linear Attention
Question. Can a recurrent linear model learn content-dependent retention without giving up efficient parallel training?
Mechanism. GLA multiplies the previous matrix state by a learned decay before adding the new key-value outer product. The paper derives an IO-aware chunkwise form: tokens interact in parallel inside a chunk, while only the compressed state crosses chunk boundaries. At inference, the same layer becomes a simple recurrent update.
Evidence. In the paper's controlled language-model experiments, the gated operator improves over earlier ungated linear attention, and the chunkwise kernel closes much of the practical gap between an attractive recurrence and trainable hardware utilization.
Boundary. These results establish a better memory-management rule, not unlimited record capacity. A gate decides how much old state survives globally; it does not by itself protect one rare association from collisions with many later writes.
3.4 Selective state-space models learn what to propagate
Linear attention is not the only route to a fixed recurrent state. A state-space model writes
In a traditional linear time-invariant SSM, do not depend on the token. Mamba makes key state-space parameters input-dependent. A token can change how quickly state decays, what gets written, and what is exposed to the output. A hardware-aware selective scan evaluates the recurrence efficiently.
This sounds similar to gated linear attention because both carry bounded state and learn content-dependent forgetting. The internal objects differ. Linear attention usually stores a matrix of key-value associations and reads it with a query. An SSM evolves latent channels through a structured transition. Structured State Space Duality shows that a broad family of selective SSMs corresponds to structured, semiseparable attention matrices, providing a mathematical bridge rather than claiming that every SSM is ordinary kernel attention.
The conceptual gain from Mamba is selection at state update time: irrelevant inputs can be allowed to pass with little effect, while salient inputs alter persistent state. The boundary is familiar. Once an old event has been folded into a fixed latent state, a future query cannot reopen its original token record. Long synthetic extrapolation or stable perplexity therefore does not by itself demonstrate arbitrary exact recall.
3.5 The delta rule decides how to overwrite
Additive memory has another problem. Suppose key already maps to some value. Adding a new outer product stores another copy instead of explicitly correcting the old association. For the following update, absorb the feature map into the notation, so denotes the feature-space key.
Let the current memory predict
The delta rule writes the prediction error:
If is normalized, reading the same key after the update gives exactly
So replaces the old prediction at that key with ; a smaller performs a partial update. This is much closer to an editable associative memory than blind accumulation.
Parallelizing Linear Transformers with the Delta Rule develops a chunkwise training algorithm that avoids stepping through the full sequence one token at a time. The paper's hybrids with sliding-window or global attention also improve over its pure recurrent variants in its evaluated settings—a first clue that editable state and exact token access solve different jobs.
Gated DeltaNet combines global forgetting with targeted delta updates: the gate removes stale state broadly, while the delta rule edits a key-specific association. Its experiments again include hybrids with sliding-window attention. The recurrent path handles long propagation and updates; the window preserves a small exact working set.
Kimi Linear, a 2025 preprint, extends the same memory-management view with a more expressive diagonal-plus-low-rank transition. The details differ, but the intellectual line is stable:
Modern linear attention is no longer mainly asking, “How closely can we imitate softmax?” It is asking, “How should a bounded memory change?”
Kimi Linear is useful as a large-scale system point, but it deserves a strict reading. Its Kimi Delta Attention uses a channel-wise diagonal gate and a delta-style low-rank update; the reported model interleaves three such layers with one full-attention layer. The paper reports large KV-cache and decoding advantages at long context within its own stack. Because the architecture, kernels, data, and training budget change together—and the report was a recent preprint—those numbers are evidence that the hybrid can work, not an isolated estimate of one operator's causal effect.
3.6 “Infinite context” does not mean infinite recall
A recurrent model can consume an arbitrarily long stream because state size does not grow with . This is a computational statement.
It does not imply that a fixed matrix can preserve an arbitrary number of independent facts. If a book, a codebase, and a month-long agent trajectory all pass through the same state, some associations will collide or be overwritten.
Dense attention grows explicit capacity with sequence length. Linear attention keeps capacity fixed and learns a compression policy. The trade can be excellent, but it remains a trade.
Perplexity does not fully expose it. A model may predict ordinary next tokens well while failing exact associative recall. At minimum, evaluation should separate:
- exact recall: retrieve a value that occurred once under a particular key;
- overwrite: return the newest value after repeated state changes;
- interference: distinguish many similar keys and values;
- length extrapolation: remain stable beyond the training horizon;
- streaming retention: remember while both input and generated output keep growing.
Two lines of evidence sharpen this warning.
Zoology trained a controlled collection of attention and gated-convolution language models, then decomposed their language-modeling gap by data slice. In that study, associative-recall-like examples explained 82% of the average gap between attention and the gated-convolution models on the authors' Pile setup. A much smaller attention model could outperform a larger recurrent alternative on that slice. This is strong evidence that recall can be a bottleneck; it is not a theorem about every modern recurrent architecture or every data distribution.
Based attacks the same weakness with a deliberately small hybrid: a linear-attention path for cheap global mixing plus a short sliding window for precise local recall. Its analysis of multi-query associative recall also gives a finite-bit lower bound: robustly storing an arbitrary growing set of key-value pairs requires state that grows with the number of pairs. Clever recurrence can improve the constant and the update policy; it cannot repeal finite capacity.

Figure 4. The official Based/Zoology experiment figure places associative-recall accuracy against recurrent-state size for particular architectures and hyperparameters. It illustrates a capacity–recall trade in this setup, not a universal scaling law. Source: HazyResearch/zoology, Apache-2.0; associated papers: Based and Zoology.
4. Sparse and linear attention lose different information
Consider a long sequence that contains this line near the beginning:
The access code for archive K is
7QX-19.
Hundreds of thousands of tokens later, the model is asked for the code.
A sparse model succeeds if its router selects the old block. Once selected, that block's token-level KV record has not been compressed by the sparsity mechanism, so ordinary softmax attention can use it. This still does not guarantee that the learned KV representation decodes the raw string perfectly. The characteristic sparse failure is missed access.
A purely recurrent linear model never searches the old sequence. The code has shared a fixed-size state with everything that followed. Its characteristic failure is memory interference.
Now change the task. Instead of a one-off code, the sequence repeatedly updates the location of an object and asks for its current position. A gated delta memory can overwrite the old value and carry only the current state. A sparse model may retrieve several contradictory records and must infer their temporal order.
Neither policy dominates. They match different dependency shapes.
| Dependency | Sparse token access | Recurrent linear state |
|---|---|---|
| One old, exact detail | Strong if routing finds it | Vulnerable to interference |
| Recent syntax or pixel detail | Strong with a local window | May blur unless separately protected |
| Running statistic or belief | Requires repeated reads or summaries | Natural incremental update |
| Frequently changing entity | Must resolve old versus new records | Natural overwrite operation |
| Endless streaming input | Cache grows unless evicted or offloaded | State remains fixed-size |
| Unknown future query | Old records remain addressable | Memory was compressed before query existed |
This complementarity predicts a memory hierarchy:
The hybrid is not merely a compromise between operators. Each component implements a different memory contract.
Language-model results support this direction, although they do not establish one universal recipe. DeltaNet and Gated DeltaNet report improvements from mixing recurrent layers with sliding-window or occasional global attention. Samba combines Mamba with sliding-window attention. MiniMax-01 and Kimi Linear use different large-scale hybrids of linear and softmax-style attention.
The papers make the division of labor concrete:
- Samba interleaves Mamba and sliding-window attention. Mamba supplies global recurrent propagation; the finite window preserves nearby token interactions without asking the state to remember every local detail.
- Gated DeltaNet evaluates pure recurrent blocks alongside hybrids that insert sliding-window attention. Its hybrid gains support the same complementarity from a different update rule.
- Kimi Linear uses a 3:1 ratio of Kimi Delta Attention to full attention in its reported large model. Most layers receive bounded-state efficiency; a minority retain globally addressable token interactions.
- MiniMax-01 alternates lightning-style linear attention with periodic softmax attention and combines the architecture with other systems choices. It is evidence that the hierarchy can scale, not a clean ablation of linear versus dense memory.
These systems differ in data, parameter count, hardware, kernels, and evaluation. Their speed numbers are not directly comparable. The recurring architectural choice is the evidence that matters here: cheap fixed-state propagation handles most layers, while a smaller amount of exact attention repairs precise recall.
Figure 5. Domain geometry changes the right memory hierarchy. Text contains sparse symbolic references; video has dense local space-time neighborhoods; a world trajectory mixes continuously updated belief with rare events that must remain retrievable. The diagram is an original synthesis, not a claim that one architecture uniquely fits each domain.
5. LLM context is an archive, a workbench, and a belief state
An LLM receives one array of tokens, but those tokens serve at least three memory roles.
5.1 Archive: exact information with unknown future relevance
A repository, a set of RAG documents, or a long execution log is mostly dormant. Only a small subset matters for the current query, and that subset may lie anywhere.
This favors dynamic sparse attention. Old records remain separately addressable, and the query decides which blocks to open. But the router needs high recall at the candidate stage. A code question may depend on one operator, type annotation, or exception clause. Retrieving the right file while excluding the decisive line still fails.
The most important metric is therefore not average semantic similarity. It is the probability that the candidate set contains all records required for the answer, measured at a fixed routing and memory budget.
5.2 Workbench: recent information with high local fidelity
The latest part of a reasoning trace, tool interaction, or conversation is a working buffer. Token order, punctuation, corrections, and intermediate results matter. Local attention is a natural fit because relevance is concentrated nearby and every recent token stays explicit.
A local window also changes what recurrent state has to do. The state no longer needs to preserve every transient token. It only needs to extract information that should survive after the window moves on. This division of labor explains why adding a relatively small attention window can improve a recurrent model disproportionately.
5.3 Belief state: information that should be updated, not replayed
An assistant also tracks the current goal, completed subtasks, user preferences, and the latest outputs of tools. These are state variables. Keeping every historical version is less important than maintaining the correct current value.
Gated and delta-rule memories have an appropriate bias: retain stable state, erase outdated state, and overwrite associations when new evidence arrives. Their constant decode state is especially useful for agents that generate long trajectories.
5.4 Prefill and decode stress different resources
During prefill, the model processes a long prompt in parallel. Dense attention performs work, while block-sparse or chunkwise-linear operators can reduce it. The main concerns are training-style parallelism, activation memory, and kernel utilization.
During decode, one new query arrives at a time. Dense attention reads the entire KV cache, so attention costs per generated token and repeatedly moves old KV data through memory. Sparse attention can reduce the number of values read, but only if routing avoids scanning or loading the full cache. Linear attention reads and updates fixed state, giving cost independent of context length.
The same architecture can therefore look good in one phase and weak in the other:
| Design | Prefill over tokens | Per-token decode read | Persistent state | What to verify |
|---|---|---|---|---|
| Dense exact attention | attention work | KV | Whether Flash/Ring implementations already meet the budget | |
| Sparse prefill, dense decode | Reduced by the mask | KV | A prefill speedup may leave generation unchanged | |
| Full KV, sparse decode | Dense or separately optimized | after routing | KV | Router and metadata cost; host/device traffic |
| Fixed-state recurrence | in sequence length, with model-dependent state work | Independent of | Constant in | Recall saturation and training-kernel efficiency |
| Hybrid hierarchy | Operator-dependent | Local KV plus recurrent/retrieval paths | Bounded or tiered by policy | Which memory contract protects each task |
Therefore, “supports one million tokens” should be unpacked into:
- Does the prompt fit?
- How long does prefill take?
- How much state is read per generated token?
- How does recall fall with distance and distractor count?
- Does the model retain information through a long output, not only a long input?
- Can it update a fact rather than returning an obsolete version?
The likely endpoint for LLMs is not one universal attention replacement. It is a learned hierarchy: a precise local cache, recurrent working state, sparse retrieval over older context or external memory, and occasional global attention when its quality gain justifies the cost.
5.5 Accepted context is not effective context
A model may accept 128K tokens without using all 128K equally well. Architecture determines which information remains reachable; training and evaluation determine whether the learned model actually reaches it.
Lost in the Middle varied the position of useful evidence inside long inputs. Models often performed best when the relevant passage appeared near the beginning or end and worse when it sat in the middle. The paper's contribution was not a new attention operator. It showed that nominal access to every token does not imply position-invariant use.
Simple needle-in-a-haystack tests can still overestimate useful memory. If a question repeats the needle's words, lexical matching nearly solves the routing problem. RULER broadens the test suite with multiple needles, multi-hop tracing, variable tracking, and aggregation. A model that passes one literal lookup can fail when it must compose or separate several records.
NoLiMa removes the easiest cue: the question and the relevant passage need not share a literal phrase. The model must infer a semantic relation before retrieving the evidence. In the paper's evaluation, normalized performance for several models dropped below the authors' 85% “effective length” threshold well before their advertised context limit.
Figure 6. Normalized scores reconstructed from the NoLiMa paper's reported one-hop results: GPT-4o falls from 0.988 at 1K distractor tokens to 0.702 at 32K; Llama 3.3 70B falls from 0.968 to 0.439. The dashed line is NoLiMa's 0.85 effective-length threshold. These model snapshots and this benchmark diagnose usable context; they do not isolate attention as the causal failure.
These benchmarks test different stages of the same memory pipeline:
A failure at the end does not identify which stage broke. That is why a useful evaluation suite should combine operator-level diagnostics—routing recall, state collisions, cache bytes—with end-task tests such as multi-hop QA, code dependency tracing, overwrites, and long-output retention.
6. Video generation changes the geometry
A video latent is not naturally a one-dimensional document. After VAE compression and patchification, suppose it has shape
The sequence length is
Dense 3D attention therefore costs
Doubling text length roughly quadruples attention work. Doubling video duration, height, and width multiplies token count by eight and attention work by sixty-four. A diffusion model repeats those transformer layers over many denoising steps, so the attention cost is paid again and again.
Video hits the quadratic wall earlier, but it also contains stronger structure. Nearby patches are redundant. Motion is usually continuous. A head may primarily model spatial texture, temporal correspondence, or global conditioning. That structure is an invitation to sparsity.
6.1 Sparse video attention should follow space-time, not the flattened sequence
A one-dimensional sliding window is a poor description of visual locality. A useful neighborhood for patch may contain:
- nearby spatial patches ;
- the same or nearby location in adjacent frames;
- a motion-compensated region where the same object moved;
- a few anchor frames for long-range scene consistency;
- text, audio, or action-conditioning tokens.
Sparse VideoGen, a 2025 preprint, profiles attention heads in CogVideoX-v1.5 and HunyuanVideo and separates predominantly spatial and temporal patterns. It applies different sparse layouts to the two groups and reports up to 2.28× and 2.33× end-to-end speedups on the respective systems while preserving its measured quality.
The system-specific numbers are less important than the mechanism: video sparsity has axes. Treating all heads and all token pairs identically wastes the geometry already present in the data.
Paper checkpoint: Sparse VideoGen
Question. Can a pretrained video diffusion Transformer be accelerated without retraining if its attention maps already have regular space-time structure?
Mechanism. Sparse VideoGen first profiles each head on sample inputs. A head whose mass concentrates within frames receives a spatial sparse layout; a head that follows locations across frames receives a temporal layout. During denoising, an online stage adapts the sparse indices to the current attention pattern, and custom kernels turn the structured masks into actual device savings.
One way to visualize the distinction is to take a patch depicting a person's hand. A spatial head asks, “Which nearby patches in this frame define the hand and object?” A temporal head asks, “Where did this hand or object appear in other frames?” Flattening both questions into the same one-dimensional window throws away a useful prior.
Evidence and boundary. The reported end-to-end gains on two video-model families matter because they include more than attention FLOPs. But the method inherits the profiled models' attention habits. If a new prompt or motion requires a head to change roles, the assigned pattern may exclude useful edges; quality preservation is empirical, not guaranteed.
Static windows still introduce boundaries. An object can move across a spatial block, disappear, and return. Shifted windows and rotating global anchors spread information across boundaries, but they remain assumptions about motion. Fully dynamic object-level routing could preserve identity more directly, yet finding correspondences is itself a vision problem and irregular token gathers are difficult to accelerate.
Video therefore exposes the central sparse-attention tension sharply:
6.2 Linear video models need a scan order
Causal language supplies a privileged left-to-right order. Video has one temporal and two spatial axes. To use a recurrent operator, we must choose a scan through the 3D grid.
A raster scan preserves horizontal neighbors until it reaches a row boundary, but vertical neighbors remain far apart. A frame-major scan keeps each frame together but delays temporal correspondence. A time-major scan places the same spatial location across frames nearby but scatters within-frame texture.
This is not a cosmetic implementation choice. A recurrent state tends to preserve short-range relationships along its scan more easily than relationships separated by many updates.
LinGen is a useful system example. Its MATE block combines:
- bidirectional Mamba2 for long-range propagation;
- Rotary Major Scan to expose different spatial-temporal adjacencies;
- review tokens that reintroduce summaries of the longer video;
- temporal Swin attention for exact local and medium-range temporal interaction.
The model is called linear-complexity video generation, but the successful block is hybrid. Recurrence carries information cheaply across long sequences; structured local attention repairs the geometry lost by flattening.
Paper checkpoint: LinGen
Question. How can a diffusion model propagate information across minute-long high-resolution videos without paying dense 3D-attention cost?
Mechanism. The MATE block has two complementary paths. The MA path applies bidirectional Mamba2 under several Rotary Major Scan orders, so relationships that are distant under one flattening become nearby under another. Review tokens replay coarse information from earlier segments. The TE path applies temporal shifted-window attention, preserving exact interaction in a bounded neighborhood while allowing windows to exchange information across layers.
Evidence. The paper progressively trains from shorter/lower-resolution clips to longer/higher-resolution ones and reports large FLOP and latency reductions relative to its chosen DiT baseline, along with preference results on generated videos. It also demonstrates generation far longer than typical short clips.
Boundary. LinGen changes the block, scan, local-attention path, review mechanism, and training curriculum together. Its headline results validate the system as a package. They do not tell us that a single Mamba scan would preserve identity over a minute, nor that the same scan geometry will transfer unchanged to every VAE grid or motion distribution.
6.3 Diffusion is not causal rollout
Video diffusion usually processes the entire noisy latent bidirectionally at each denoising step. A one-way recurrent state does not directly match this computation. Linear-time blocks need bidirectional scans, multiple scan directions, or alternating orders so information can propagate from both past and future latent positions.
This makes sparse structured attention particularly attractive for diffusion: it retains bidirectional local interaction while removing unlikely long-range pairs. Recurrent operators remain useful for global propagation, but they need more architectural support than in causal text.
The phrase “long video model” therefore hides two different problems. Video diffusion repeatedly refines a fixed space-time volume. A world model extends a causal trajectory one step at a time. Their ideal long-context operators should not be expected to match.
7. World models make recurrent memory natural—and dangerous
A causal world model repeatedly receives an observation and action , updates a state, and predicts what happens next:
This abstraction predates the current efficient-attention vocabulary. PlaNet learns a recurrent latent dynamics model from pixels, combining deterministic hidden state with stochastic latent state, then plans inside the learned latent space. Its purpose was not million-token context. It provides the important semantic precedent: a world-model state is supposed to be a compact belief about what is currently true, not a verbatim archive of every frame.
This is already a recurrent problem. Recomputing attention over the entire lifetime of an environment at every step has the wrong scaling law for an interactive agent. Linear attention and SSMs offer bounded per-step cost and a natural way to update beliefs about velocity, object state, map progress, and causal consequences.
But fixed-state compression is more dangerous here than in ordinary next-token prediction. A world contains many persistent entities. Some leave view and return. A single rare event—a key placed in a drawer or a door unlocked—may determine an action thousands of steps later. If that event is overwritten in recurrent state, no future query can recover it.
The distinction is easiest to see with two memories:
- “The agent is facing north and moving slowly” is a belief that should be continuously updated.
- “The blue key was left in the third room” is an event record that may remain dormant for a long time and later require exact retrieval.
Forcing both through one undifferentiated vector asks the model to behave like a Kalman filter and a database at the same time.
Long-Context State-Space Video World Models, a 2025 preprint, uses blockwise state-space scans for long temporal memory while retaining dense local attention for neighboring-frame coherence. The design follows directly from the memory analysis: compress along the long temporal axis, preserve exact interaction where visual detail is fragile.
The blockwise scan matters mechanically. Dense attention handles a short group of neighboring frames, where precise geometry and motion correspondence are fragile. A compact SSM state then crosses the block boundary, so cost does not require reopening the entire episode. On Memory Maze and Minecraft-style data, the paper evaluates whether that long state improves prediction and memory over longer horizons. As a preprint, it is promising system evidence; it does not establish that fixed state alone solves rare-event retrieval in arbitrary environments.
World Model on Million-Length Video and Language with Blockwise RingAttention occupies the other end of the trade. It distributes exact attention and progressively extends context to one million tokens. Explicit memory grows with the history, preserving late-bound access at the cost of resources that also grow.
Its contribution is as much a training recipe as an operator choice. The authors curate long video-language sequences, extend training length progressively from shorter windows, and use RingAttention to shard exact attention across devices. “Million length” here means the system can train and evaluate with that many tokens while preserving the dense attention graph; it does not mean one device holds a constant-size memory, or that every fact at every distance is recalled equally well.
These approaches are not contradictory. They target different regimes:
- Offline training or long-video analysis: spend devices to retain exact global access.
- Online interaction: bound per-step cost and carry compressed state.
7.1 A world-memory benchmark must force delayed use
Memory Maze places an agent in randomized 3D mazes containing objects whose locations must be remembered after they leave view. It separates online prediction, offline modeling, and representation probing. Small environments can be learned, while larger layouts leave a substantial gap to human memory.
The benchmark is useful because ordinary next-frame prediction can be solved mostly from recent pixels. Memory Maze asks whether the latent state preserves a spatial fact until it becomes behaviorally useful. It still tests only one family of controlled environments. Passing it would not prove that a model stores arbitrary real-world events, but failing it reveals that short-horizon visual quality was hiding a memory weakness.
A capable interactive world model likely needs an addressable event memory in addition to recurrent state. The recurrent path should track the current world cheaply. Local attention should preserve recent perceptual detail. Sparse retrieval should restore rare events or entities when they become relevant.
That final component is a design inference from the failure modes, not yet a universally validated architecture. It also raises a hard training problem: when an event occurs, the model does not know which future policy decision will depend on it.
8. Choosing an architecture by what cannot be forgotten
The first question should not be “Which efficient-attention method has the best benchmark?” It should be “What information can this task afford to lose, and when can the model decide?”
| Workload | Information that must survive | Natural starting point | Primary measurement |
|---|---|---|---|
| Long-document QA or code search | A few exact, distant records | Dynamic sparse + local attention | Routing recall under latency budget |
| Long reasoning or agent traces | Recent details and changing task state | Local attention + recurrent state | Long-output retention and decode cost |
| High-resolution short video | Texture and nearby motion | Spatial-temporal block sparsity | End-to-end latency at matched quality |
| Long video diffusion | Local geometry plus distant anchors | Sparse local paths + bidirectional recurrence | Identity and motion beyond training horizon |
| Interactive world model | Updated belief state plus rare old events | Recurrence + local attention + event retrieval | Object permanence and delayed causal recall |
| Offline million-token training | Maximum fidelity to the original sequence | Flash/Ring exact attention | Compute and device cost at fixed quality |
A practical order of operations follows:
- Start with an IO-efficient exact-attention baseline. It preserves semantics and reveals the real bottleneck.
- If pairwise compute remains dominant, ask whether relevance has a stable sparse structure.
- If KV growth or streaming decode is dominant, introduce recurrent state.
- Protect recurrent state's weak exact recall with a local window or addressable store.
- Measure the task-specific information loss, not only theoretical FLOPs or maximum accepted length.
The shortest complexity expression is not necessarily the fastest kernel. The longest prompt that fits is not necessarily the longest usable memory. A model that tracks aggregate state is not necessarily a model that can retrieve an old fact.
9. The remaining problem is learned memory allocation
Sparse and linear attention are becoming components of a larger memory system. The unresolved question is how the model should allocate information among them.
What becomes a durable event?
Future queries are unknown when a token or observation arrives. Recurrent state must compress immediately. An addressable store can delay the relevance decision, but it cannot retain everything forever. A learned policy must decide what merges into state, what remains as a separate event, and what can disappear after the local window moves on.
A recent preprint, Learning how to Forget, makes this allocation problem explicit for sparse KV policies. Instead of applying an eviction rule only after training, it fine-tunes the model while that rule is active, allowing representations to co-adapt to what will be retained. The direction is important: memory policy becomes part of learning rather than a serving-time patch. The paper was released in August 2026 and reports an early system demonstration, so it belongs in the open-question section rather than the settled core of the taxonomy.
How do we know why memory failed?
The evaluations in Section 5.5 show that effective context can be much shorter than accepted context, but an end-task score does not reveal the broken stage. A model may fail because the clue was represented poorly, a sparse router excluded it, recurrent state overwrote it, or the final reasoning step did not compose retrieved facts.
Language models therefore need paired evaluations: operator diagnostics for routing, state collisions, and retention, plus task tests for lookup, update, multi-hop composition, and streaming output. Video models need metrics that penalize identity drift, frozen motion, and loops. World models need object permanence, map memory, and delayed action effects. Maximum context length is a capacity claim, not a memory-quality claim.
What is the right sparse unit?
Hardware prefers blocks. Meaning may live in tokens, spans, functions, objects, tracks, or events. Coarse blocks waste compute; fine-grained routing produces irregular memory traffic. Video makes this conflict visible because semantic objects move across fixed spatial blocks.
Can a model know when its state is full?
Fixed-size recurrence guarantees bounded compute, not graceful forgetting. State size is usually an architectural hyperparameter rather than a quantity the model manages explicitly. A reliable long-lived system would detect interference, preserve uncertain memories externally, or allocate more capacity only when needed.
Without that ability, “infinite context” remains a statement about runtime rather than recall.
The useful mental model
Dense attention stores every record and searches everything. Sparse attention stores records but searches selectively. Linear attention continually rewrites the records into bounded state.
This single distinction explains the cross-domain picture.
Language often needs exact, late-bound retrieval, so sparse access matters. Video has strong local geometry, so structured sparsity does unusually well. Causal world models need constant-cost state updates, so recurrent memory is natural. None of them can safely compress every kind of information in the same way.
The likely long-context architecture is therefore a memory hierarchy:
- local attention for recent, high-fidelity detail;
- linear attention or state-space recurrence for persistent, continuously updated state;
- sparse retrieval for old information that must remain addressable;
- exact global attention where its quality gain justifies the cost.
The important question is no longer how to make the attention matrix linear. It is how a model should divide a growing history between what stays visible, what becomes state, and what must be found again later.
References and further reading
Exact attention and per-token cache compression
- Dao et al., FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness, NeurIPS 2022.
- Liu et al., Ring Attention with Blockwise Transformers for Near-Infinite Context, 2023 preprint.
- Ainslie et al., GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints, EMNLP 2023.
- DeepSeek-AI, DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model, 2024 technical report.
Sparse attention and sparse KV access
- Beltagy et al., Longformer: The Long-Document Transformer, 2020.
- Zaheer et al., Big Bird: Transformers for Longer Sequences, NeurIPS 2020.
- Lu et al., MoBA: Mixture of Block Attention for Long-Context LLMs, 2025 preprint.
- Yuan et al., Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention, ACL 2025.
- Jiang et al., MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention, NeurIPS 2024.
- Tang et al., Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference, ICML 2024.
- Seeger et al., Learning how to Forget: Fine-tuning for Long-Context Sparse Attention, 2026 preprint.
Linear attention and recurrent sequence models
- Katharopoulos et al., Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention, ICML 2020.
- Choromanski et al., Rethinking Attention with Performers, ICLR 2021.
- Schlag et al., Linear Transformers Are Secretly Fast Weight Programmers, ICML 2021.
- Yang et al., Gated Linear Attention Transformers with Hardware-Efficient Training, ICML 2024.
- Gu and Dao, Mamba: Linear-Time Sequence Modeling with Selective State Spaces, COLM 2024.
- Dao and Gu, Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality, ICML 2024.
- Yang et al., Parallelizing Linear Transformers with the Delta Rule over Sequence Length, NeurIPS 2024.
- Yang et al., Gated Delta Networks: Improving Mamba2 with Delta Rule, ICLR 2025.
- Arora et al., Zoology: Measuring and Improving Recall in Efficient Language Models, ICLR 2024.
- Arora et al., Simple Linear Attention Language Models Balance the Recall-Throughput Tradeoff, ICML 2024.
- Ren et al., Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modeling, ICLR 2025.
- MiniMax et al., MiniMax-01: Scaling Foundation Models with Lightning Attention, 2025 technical report.
- Kimi Team, Kimi Linear: An Expressive, Efficient Attention Architecture, 2025 preprint.
Effective-context evaluation
- Liu et al., Lost in the Middle: How Language Models Use Long Contexts, TACL 2024.
- Hsieh et al., RULER: What's the Real Context Size of Your Long-Context Language Models?, COLM 2024.
- Modarressi et al., NoLiMa: Long-Context Evaluation Beyond Literal Matching, 2025 preprint.
Video generation and world models
- Wang et al., LinGen: Towards High-Resolution Minute-Length Text-to-Video Generation with Linear Computational Complexity, CVPR 2025.
- Xi et al., Sparse VideoGen: Accelerating Video Diffusion Transformers with Spatial-Temporal Sparsity, 2025 preprint.
- Hafner et al., Learning Latent Dynamics for Planning from Pixels, ICML 2019.
- Pasukonis et al., Evaluating Long-Term Memory in 3D Mazes, ICLR 2023.
- Po et al., Long-Context State-Space Video World Models, 2025 preprint.
- Liu et al., World Model on Million-Length Video and Language with Blockwise RingAttention, ICML 2024.