← Latest papers
📊 statistics

Express Language Modeling

The paper introduces Express, a tool that converts non-causal attention approximations into causal ones with improved theoretical guarantees and an efficient Triton implementation, enabling significant speedups over FlashAttention 2 and overcoming key resource bottlenecks in long-context language modeling.

Original authors: Albert Gong, Annabelle Michael Carrell, Raaz Dwivedi, Lester Mackey

Published 2026-06-10
📖 4 min read☕ Coffee break read

Original authors: Albert Gong, Annabelle Michael Carrell, Raaz Dwivedi, Lester Mackey

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to read a very long book to answer a question. As you read, you need to remember every important detail you've encountered so far to make sense of the current sentence. In the world of AI language models, this "remembering" process is called Attention.

The problem is that as the book gets longer, the effort required to remember everything grows explosively. It's like trying to hold a conversation with a room full of people where, for every new word you speak, you have to re-introduce yourself to everyone in the room and re-read your entire conversation history. This gets so slow and memory-heavy that it becomes impossible to handle very long stories or complex reasoning tasks.

This paper introduces a new tool called Express (and a specific version called Thinformer Express) that acts like a super-efficient librarian for these AI models. Here is how it works, using simple analogies:

1. The Problem: The "Quadratic" Bottleneck

Normally, to understand a new sentence, an AI looks at every single previous word. If you have 1,000 words, it does 1,000 checks. If you have 1 million words, it has to do 1 trillion checks. This is the "quadratic" cost mentioned in the paper. It's like trying to find a specific needle in a haystack by checking every single piece of hay one by one, over and over again.

2. The Solution: The "Smart Summarizer" (Thinning)

The authors realized that you don't actually need to remember every word perfectly. You just need a small, high-quality "summary" or "core set" of the most important words that represents the whole story.

They built a tool called Express that takes a "non-causal" summarizer (a tool that can look at a whole book and pick the best 100 pages) and turns it into a "causal" summarizer.

  • Non-causal is like reading the whole book first, then picking the highlights.
  • Causal is like reading the book page-by-page in real-time, deciding instantly which highlights to keep in your pocket as you go, without ever looking ahead.

Express is the magic trick that allows the AI to do this real-time summarization without losing accuracy. It ensures that even though the AI is only looking at a tiny fraction of the past (a "thinned" version), it still gets the right answer.

3. The "Inflation" Trick

The paper describes a clever mechanism where the AI's memory "inflates" and "deflates" like a balloon.

  • The Exact Phase: At the very beginning, the AI remembers everything perfectly.
  • The Thin Phase: As more words come in, the AI groups them into batches. Instead of keeping all of them, it uses a special algorithm to "compress" the batch down to a smaller, weighted summary.
  • The HALVE Phase: When the summary gets too big, the AI performs a "halving" operation, cutting the size in half while carefully preserving the most important information.

This process ensures the memory size stays small and constant, no matter how long the story gets. It's like having a backpack that automatically shrinks its contents to fit, keeping only the most essential items, so you never run out of space.

4. Real-World Results: Speeding Up the AI

The authors didn't just do the math; they built a fast version of this tool using a programming language called Triton (which is like a high-speed engine for computer chips). They tested it in four specific scenarios:

  • Long-Context Prefill (Reading the Book): When the AI is given a massive document to read before answering, Express made it 82 times faster than the current best method (FlashAttention 2) for very long texts (512,000 words).
  • Compressing the Memory (The KV Cache): AI models store past words in a "cache." Express helped compress this cache using other popular methods, making the whole process faster without losing accuracy.
  • Memory-Efficient Decoding (Thinking Step-by-Step): When solving hard math problems that require long chains of reasoning, Express allowed the AI to use only 61% of the memory required by the standard method while getting the same correct answers.
  • Compute-Efficient Decoding (Speeding Up Thinking): For the same math problems, Express allowed the AI to finish in only 56% of the time it usually takes, while still getting the right answer.

Summary

In short, Express is a new way for AI to handle long conversations and complex tasks. It acts like a smart filter that constantly summarizes the past, keeping the AI's memory small and its thinking speed fast, without making the AI "forget" important details. It solves the problem of AI getting too slow or running out of memory when dealing with long texts or complex reasoning.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →