← Latest papers
💬 NLP

Latent-Condensed Transformer for Efficient Long Context Modeling

This paper introduces Latent-Condensed Attention (LCA), an architecture-agnostic method that jointly optimizes computational efficiency and KV cache reduction for long-context modeling by directly condensing context within the latent space of Multi-head Latent Attention (MLA) through query-aware pooling and anchor selection, achieving significant speedups and memory savings without compromising performance.

Original authors: Zeng You, Yaofo Chen, Qiuwu Chen, Ying Sun, Shuhai Zhang, Yingjian Li, Yaowei Wang, Mingkui Tan

Published 2026-04-15
📖 4 min read☕ Coffee break read

Original authors: Zeng You, Yaofo Chen, Qiuwu Chen, Ying Sun, Shuhai Zhang, Yingjian Li, Yaowei Wang, Mingkui Tan

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 massive, 100,000-page encyclopedia to answer a single question.

The Problem: The "Overwhelmed Librarian"
Current AI models (Large Language Models) act like a brilliant but overwhelmed librarian. When you ask a question, the librarian tries to remember every single word they've ever read.

  1. The Memory Issue: As the book gets longer, the librarian's "sticky notes" (called the KV Cache) grow linearly. For a 100,000-page book, they need a sticky note for every single page. This fills up their desk (memory) instantly.
  2. The Speed Issue: To find the answer, the librarian has to compare your question against every single page they've read. If the book is 100,000 pages long, they have to do 100,000 x 100,000 comparisons. This is like trying to find a needle in a haystack by checking every single straw against every other straw. It's incredibly slow.

The Current "Fixes" (And Why They Fall Short)
Scientists have tried two main tricks to help:

  • Trick A (MLA): Instead of writing a full sticky note for every page, they write a tiny, compressed summary. This saves desk space, but the librarian still has to read through all those tiny summaries to find the answer. It's still slow.
  • Trick B (Sparse Attention): The librarian decides to only read pages 1, 100, 500, and 999, ignoring the rest. This is fast, but they might miss the crucial page (say, page 450) that actually holds the answer.

The New Solution: "Latent-Condensed Attention" (LCA)
This paper introduces a new way to organize the librarian's desk. Instead of just summarizing or skipping pages, the librarian groups the book into chapters and creates a "Super-Chapter" for each.

Here is how LCA works, using a creative analogy:

1. The "Grouping" Strategy

Imagine the 100,000 pages are divided into groups of 16 pages each.

  • The Semantic Part (The "Story"): For the content of the story in those 16 pages, the librarian doesn't pick just one page. Instead, they blend the most important sentences from all 16 pages into a single, perfect "Super-Sentence."
    • Analogy: If the 16 pages are about a cat, the Super-Sentence captures the essence of the cat perfectly, without needing to read all 16 pages individually.
  • The Positional Part (The "Address"): However, where the story happens matters. You can't just blend the addresses of 16 different houses into one. So, for the location, the librarian picks the single most important page in that group and keeps its exact address.
    • Analogy: If the story is about a cat in a kitchen, the librarian keeps the exact address of the kitchen, ensuring the AI knows where the cat is.

2. The "Local Window" (The "Recent Memory")

The librarian knows that the very last few pages are usually the most important for the current question. So, they keep the last 1,000 pages in full, high-definition detail, untouched. They only start "compressing" the older, distant history.

3. The Result: A Super-Efficient Librarian

By doing this, the librarian transforms a 100,000-page book into:

  • A few thousand "Super-Sentences" (representing the old history).
  • A few thousand "Exact Addresses" (to keep track of where things are).
  • The last 1,000 pages in full detail.

Why is this a game-changer?

  • Speed: Instead of comparing your question against 100,000 pages, the librarian only compares it against a few thousand "Super-Groups." The paper shows this makes the AI 2.5 times faster at reading long documents.
  • Memory: The "sticky notes" (KV Cache) shrink by 90%. The librarian can now handle massive books without running out of desk space.
  • Accuracy: Because they blend the meaning of the whole group rather than just deleting pages, they don't lose important information. They also keep the exact location of the most important parts, so they don't get confused about where things happened.

The Bottom Line

Think of LCA as a smart filing system that doesn't just throw away old files or shrink them blindly. Instead, it creates smart summaries for the past while keeping exact coordinates for where things happened, and keeps the recent news in full color.

This allows AI to read entire libraries in the time it used to take to read a single chapter, without forgetting the details that matter.

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 →