← Latest papers
💬 NLP

LMK > CLS: Landmark Pooling for Dense Embeddings

This paper introduces Landmark (LMK) pooling, a novel representation learning strategy that partitions sequences into chunks with inserted landmark tokens to effectively balance local salient features and long-context extrapolation, thereby outperforming traditional [CLS] and mean pooling methods on long-context tasks while maintaining short-context performance.

Original authors: Meet Doshi, Aashka Trivedi, Vishwajeet Kumar, Parul Awasthy, Yulong Li, Jaydeep Sen, Radu Florian, Sachindra Joshi

Published 2026-01-30
📖 4 min read☕ Coffee break read

Original authors: Meet Doshi, Aashka Trivedi, Vishwajeet Kumar, Parul Awasthy, Yulong Li, Jaydeep Sen, Radu Florian, Sachindra Joshi

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 summarize a very long novel for a friend. You need to capture the most important parts of the story so your friend understands the whole book without reading every single page.

In the world of Artificial Intelligence (AI), this is exactly what "dense embeddings" do. They turn long texts (like documents, articles, or code) into a single, compact list of numbers (a vector) that represents the meaning of the whole thing. AI uses these summaries to search for information, group similar documents, or classify text.

The problem is: How do you create that summary?

The Old Ways: The "Hero" and The "Average"

For a long time, AI researchers used two main methods to summarize a text, and the paper argues both have flaws when the text gets very long.

  1. The "Hero" Token ([CLS]):
    Think of this like appointing one specific character in a play to be the "Hero" who holds all the memory of the story. In AI, this is a special token (a placeholder) placed at the very beginning of the text. The model is trained to force this one token to remember everything.

    • The Flaw: The paper found that this "Hero" gets overwhelmed. It tends to remember the beginning of the story very well but starts to "tune out" the middle and end. If the story is 100 pages long, the Hero only really remembers the first few pages. It's like trying to carry a heavy backpack; the further you walk, the more you drop things.
  2. The "Average" (Mean Pooling):
    This method is like taking every single word in the text, adding them up, and dividing by the total number of words to get a "middle ground" summary.

    • The Flaw: This dilutes the important stuff. If a document has one crucial sentence that solves a mystery, but 999 boring sentences, the "Average" method washes that crucial sentence out. It's like making a soup where you add a tiny drop of salt to a giant pot; the flavor becomes weak and bland.

The New Solution: Landmark Pooling (LMK)

The authors propose a new method called Landmark (LMK) Pooling.

Imagine you are hiking a very long trail. Instead of relying on one person at the start to remember the whole path (The Hero), or trying to remember every single step equally (The Average), you place signposts (Landmarks) every few miles along the trail.

  • How it works: The AI breaks the long text into chunks. At the end of each chunk, it inserts a special "Landmark" token.
  • The Summary: To create the final summary, the AI doesn't look at every word, and it doesn't just look at the start. It only looks at the Landmarks. It takes the "memory" of each signpost and averages those together.

Why is this better?

  • No Overload: Because there are many Landmarks, no single one has to carry the weight of the entire book.
  • No Dilution: Because the Landmarks are placed frequently, they capture the "flavor" of each section. The crucial sentence in the middle of the book gets its own Landmark, so it doesn't get washed out by the boring parts.
  • Long Distance: This works great even for massive documents (like 32,000 words long), where the old "Hero" method fails completely.

The Results: A Race Against Length

The researchers tested this new method against the old ones on various tasks:

  • Short Stories: On short texts, the new method works just as well as the old "Hero" method. It doesn't break anything.
  • Long Novels: On very long texts, the new method crushes the competition. It finds the right information much better than the "Hero" or the "Average" methods.

They also found that even if they trained the AI on short stories, the "Landmark" method could still handle long stories later on (a concept called "extrapolation"). The old "Hero" method, however, got confused and performed poorly when the text got longer than it was trained on.

The Bottom Line

The paper introduces a simple, practical fix for a big problem in AI: How to summarize long texts without losing the important details.

By replacing the single "Hero" token with a series of "Landmark" signposts, the AI can read a whole library of documents without forgetting the most important parts, making it much better at finding answers in a sea of information.

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 →