← Latest papers
💬 NLP

Enhancing Lexicon-Based Text Embeddings with Large Language Models

This paper introduces LENS, a novel lexicon-based embedding method that leverages Large Language Models and token clustering to achieve competitive, compact text representations that outperform dense embeddings on the MTEB benchmark and reach state-of-the-art results when combined with them.

Original authors: Yibin Lei, Tao Shen, Yu Cao, Andrew Yates

Published 2026-03-20
📖 5 min read🧠 Deep dive

Original authors: Yibin Lei, Tao Shen, Yu Cao, Andrew Yates

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 build a library catalog system for the entire internet. You need a way to turn every book, article, and tweet into a unique "fingerprint" (an embedding) so a computer can find the right information when you ask a question.

For a long time, the best way to do this was to use Dense Embeddings. Think of these like a smoothie. You throw all the words of a sentence into a blender, and out comes a single, uniform liquid. It's efficient and works well, but if you look at the smoothie, you can't tell which specific fruit (word) contributed which flavor. It's a "black box."

Then, there were Lexicon-Based Embeddings. These are more like a spice rack. Instead of blending everything, you keep every single spice (word) separate. If you ask about "cinnamon," the system lights up the "cinnamon" jar. This is great because it's transparent—you know exactly why the system made a match. But, there was a big problem: the spice rack was messy.

The Problem: The Messy Spice Rack (LLM Tokenizers)

Modern AI models (Large Language Models or LLMs) use a tokenizer to break text into pieces. Think of this like a clumsy chef chopping ingredients.

  • Redundancy: The chef might chop "What," "what," and " what" into three different, confusing piles, even though they are the same word.
  • Fragmentation: The chef might chop "education" into "edu" and "cation," making it hard to recognize the whole concept.
  • One-Way Vision: These chefs usually only look at the ingredients they've already chopped, ignoring what's coming next. This makes it hard to understand the full context of a sentence.

Because of this mess, previous attempts to use these "spice rack" embeddings with modern AI were clunky and didn't perform as well as the "smoothie" (dense) models.

The Solution: LENS (The Smart Organizer)

The authors of this paper introduce LENS (Lexicon-based Embeddings with LLMs). They didn't just use the messy chef; they hired a Smart Organizer to fix the spice rack before the AI even starts cooking.

Here is how LENS works, using simple analogies:

1. Grouping the Chaos (Token Clustering)
Instead of having a separate jar for "What," "what," and "What," the Smart Organizer groups them together. It takes all the similar-looking or similar-meaning pieces and puts them in one Cluster.

  • Analogy: Imagine sorting a messy drawer of socks. Instead of having 50 individual socks scattered everywhere, you fold them and put matching pairs into labeled bins. Now, when you need "socks," you just grab the "socks" bin.
  • Result: This reduces the size of the vocabulary from a huge, noisy mess to a clean, compact list of about 4,000 to 8,000 "bins."

2. Giving the Chef 360° Vision (Bidirectional Attention)
The original AI chefs could only look at the past (what they had already chopped). LENS tweaks the AI so it can look at the whole sentence at once, both forward and backward.

  • Analogy: Imagine reading a sentence where you can only see the words before the current one. You might miss the punchline! LENS lets the AI read the whole sentence like a human does, understanding that "bank" means something different in "river bank" vs. "savings bank" because it sees the whole picture.

3. The Best of Both Worlds
LENS creates a "spice rack" that is just as efficient as a "smoothie" but keeps the transparency of knowing exactly which words mattered.

  • Compact: It's small enough to fit in standard computer memory.
  • Prunable: If you need a smaller version, you can just throw away the least active "bins" without breaking the system.
  • Transparent: You can look at the result and say, "Ah, the system matched this because it found the 'fast' and 'rapid' bins."

The Results: Why It Matters

The researchers tested LENS on a massive benchmark called MTEB (think of it as the "Olympics" for text search and understanding).

  • Solo Performance: LENS performed better than almost all other models that were trained only on public data. It beat the previous "smoothie" champions in many categories.
  • The Super-Combo: The most exciting part? When they mixed the LENS "spice rack" with a standard "smoothie" (dense embedding), the result was State-of-the-Art.
    • Analogy: It's like having a team where one person has perfect memory of every specific detail (LENS), and the other has perfect intuition about the general vibe (Dense). Together, they are unbeatable.

The Catch (Limitations)

  • Language: Right now, this only works well for English. The "chef" needs to learn how to organize other languages' spices.
  • Cost: Using a giant AI model to do this organization is more expensive (computationally) than using smaller, older models.

In a Nutshell

LENS takes the messy, fragmented way modern AI sees words, cleans it up by grouping similar words together, and lets the AI see the whole sentence at once. The result is a text embedding system that is fast, small, transparent (you know why it made a decision), and extremely powerful, especially when paired with traditional methods. It proves that you don't have to choose between a "black box" smoothie and a messy spice rack; you can have a perfectly organized, high-performance spice rack.

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 →