Enhancing Lexicon-Based Text Embeddings with Large Language Models

Yibin Lei, Tao Shen, Yu Cao, Andrew Yates
1/16/2025
cs.CLcs.IR

No official code found. Best implementation: Yibin-Lei/LENS (3 stars, last commit 2025-12-31).

Abstract

Recent large language models (LLMs) have demonstrated exceptional performance on general-purpose text embedding tasks. While dense embeddings have dominated related research, we introduce the first Lexicon-based EmbeddiNgS (LENS) leveraging LLMs that achieve competitive performance on these tasks. Regarding the inherent tokenization redundancy issue and unidirectional attention limitations in traditional causal LLMs, LENS consolidates the vocabulary space through token embedding clustering, and investigates bidirectional attention and various pooling strategies. Specifically, LENS simplifies lexicon matching by assigning each dimension to a specific token cluster, where semantically similar tokens are grouped together, and unlocking the full potential of LLMs through bidirectional attention. Extensive experiments demonstrate that LENS outperforms dense embeddings on the Massive Text Embedding Benchmark (MTEB), delivering compact feature representations that match the sizes of dense counterparts. Notably, combining LENSE with dense embeddings achieves state-of-the-art performance on the retrieval subset of MTEB (i.e. BEIR).

View on arXivView PDF

Code Implementations(1)

Yibin-Lei/LENSCommunity64%

Implementation for ACL 2025 paper "Enhancing Lexicon-Based Text Embeddings with Large Language Models"

30Shell, PythonMay 30, 20259 months ago

Similar Papers

Cite this paper

@article{lei2025enhancing,
  title  = {Enhancing Lexicon-Based Text Embeddings with Large Language Models},
  author = {Yibin Lei and Tao Shen and Yu Cao and Andrew Yates},
  year   = {2025},
  eprint = {2501.09749},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.09749v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.09749.svg)](https://codeofpaper.com/paper/2501.09749)

Discussion