Saved in:
Bibliographic Details
Main Authors: Lei, Yibin, Shen, Tao, Cao, Yu, Yates, Andrew
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.09749
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915874806431744
author Lei, Yibin
Shen, Tao
Cao, Yu
Yates, Andrew
author_facet Lei, Yibin
Shen, Tao
Cao, Yu
Yates, Andrew
contents 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. LENS consolidates the vocabulary space through token embedding clustering to handle the issue of token redundancy in LLM vocabularies. To further improve performance, we investigate bidirectional attention and various pooling strategies. Specifically, LENS simplifies lexical matching with redundant vocabularies by assigning each dimension to a specific token cluster, where semantically similar tokens are grouped together. Extensive experiments demonstrate that LENS outperforms dense embeddings on the Massive Text Embedding Benchmark (MTEB), delivering compact representations with dimensionality comparable to dense counterparts. Furthermore, LENS inherently supports efficient embedding dimension pruning without any specialized objectives like Matryoshka Representation Learning. Notably, combining LENS with dense embeddings achieves state-of-the-art performance on the retrieval subset of MTEB (i.e., BEIR).
format Preprint
id arxiv_https___arxiv_org_abs_2501_09749
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing Lexicon-Based Text Embeddings with Large Language Models
Lei, Yibin
Shen, Tao
Cao, Yu
Yates, Andrew
Computation and Language
Information Retrieval
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. LENS consolidates the vocabulary space through token embedding clustering to handle the issue of token redundancy in LLM vocabularies. To further improve performance, we investigate bidirectional attention and various pooling strategies. Specifically, LENS simplifies lexical matching with redundant vocabularies by assigning each dimension to a specific token cluster, where semantically similar tokens are grouped together. Extensive experiments demonstrate that LENS outperforms dense embeddings on the Massive Text Embedding Benchmark (MTEB), delivering compact representations with dimensionality comparable to dense counterparts. Furthermore, LENS inherently supports efficient embedding dimension pruning without any specialized objectives like Matryoshka Representation Learning. Notably, combining LENS with dense embeddings achieves state-of-the-art performance on the retrieval subset of MTEB (i.e., BEIR).
title Enhancing Lexicon-Based Text Embeddings with Large Language Models
topic Computation and Language
Information Retrieval
url https://arxiv.org/abs/2501.09749