# Express Language Modeling

*Albert Gong, Annabelle M Carrell, Raaz Dwivedi, Lester Mackey*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149745) · [Open on the map](../papers.html#p149745)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Sparse Long-Context Attention](../pgroup/226.md) · Type: new method · Keywords: causal attention approximation, language modeling, efficient inference, Thinformer, FlashAttention

Areas: [Memory](../areas/memory.md) › Model Memory Optimization › KV Cache Optimization; [Long Context](../areas/longcontext.md) › Long-context mechanisms › Long-context attention mechanisms; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Sparse Attention

## Summary
Express is a tool that converts non-causal attention approximations into causal ones, improving approximation guarantees and accelerating key language modeling tasks such as prefill, KV cache compression, and long-form decoding.

## Explained to a 5-year-old
A new helper helps a language model read words one after another without mixing them up. It takes an old way of guessing which words are important and makes it work better for this careful order. This makes the model faster and uses less memory, so it can handle longer texts. It also helps the model start learning, remember information, and keep generating text for a long time. Because of this, the model can answer questions or write stories more quickly and with less computer power.

## Explained to a 5-year-old, longer
A language model needs to understand words in the right order, like a story where each sentence follows the previous one. Old methods for guessing which words matter were good for some tasks but not for this careful ordering. A new tool changes those old guesses so they work for the correct order while keeping the same promises about how accurate they are. This tool works with a popular method called Thinformer to make the guesses even better. The tool is built using a special way of running code on computers that moves data efficiently, which makes it run faster than the fastest method used today. It helps the model in three places: when it first learns many words, when it stores information to remember later, and when it writes long answers. Because it is faster and uses less memory, the model can answer questions or write stories more quickly and needs less computer power. This makes it possible to use bigger language models on regular hardware without waiting a long time.

## For a technical reader
Express is a utility that turns non-causal attention approximations into causal ones while preserving theoretical guarantees. When paired with Thinformer, it achieves a better error bound of log3/2(n)/s using only O(s) memory and adds O(s2 log2(n)) compression overhead. The authors implemented it efficiently on GPUs using an I/O-aware Triton kernel, which yields significant speedups over FlashAttention 2. It is applied to three stages of language modeling: long-context prefill, KV cache compression, and long-form decoding, delivering faster and more memory-efficient inference.

## Problem
Accurately approximating causal attention in long sequences while keeping memory and computational costs low remains challenging. Existing approximations often sacrifice either approximation quality or efficiency, limiting scalability of language models.

## Method
The approach adapts existing non-causal attention approximations to causal settings while preserving theoretical guarantees. It integrates with Thinformer to achieve improved error bounds and implements the conversion efficiently on hardware using an I/O-aware Triton kernel. This enables acceleration of prefill, KV cache compression, and decoding stages.

## Results
The approach achieves log3/2(n)/s approximation error with O(s) memory and O(s2 log2(n)) compression overhead, and demonstrates substantial speedups over FlashAttention 2 on long-context prefill, KV cache compression, and long-form decoding.

## Contributions
It provides a general conversion framework from non-causal to causal attention approximations that preserves theoretical guarantees, and an efficient hardware implementation that accelerates key language modeling components.

## Practical relevance
The tool enables faster and more memory-efficient inference for long-context language models, making large-scale deployment on existing hardware more practical.

## Research questions this paper is counted under

- [How can we reduce the quadratic attention cost and memory usage of large language models for long contexts while preserving performance?](../q/4.md)

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](../feedback/?on=p/149745)
