LDIR: Low-Dimensional Dense and Interpretable Text Embeddings with Relative Representations
Yile Wang, Zhanyu Shen, Hui Huang
TL;DR
LDIR introduces a low-dimensional, dense yet interpretable text embedding by leveraging relative representations to a set of farthest-point-sampled anchor texts. It replaces high-dimensional 0/1 QA-embeddings with compact floating-point vectors $e_{dense}^{interp}(t)=[Rel(a_1,t),...,Rel(a_n,t)]$ where $n\approx200$–$500$, and $Rel$ is computed via a backbone encoder. Across semantic textual similarity, retrieval, and clustering benchmarks, LDIR achieves competitive performance with black-box embeddings and outperforms existing interpretable baselines while offering substantially reduced dimensionality and cognitive load. The work analyzes anchor selection, anchor-length effects, and fine-grained relatedness, and discusses practical use cases and privacy benefits of relative representations, outlining future avenues to enhance interpretability without sacrificing semantic expressiveness.
Abstract
Semantic text representation is a fundamental task in the field of natural language processing. Existing text embedding (e.g., SimCSE and LLM2Vec) have demonstrated excellent performance, but the values of each dimension are difficult to trace and interpret. Bag-of-words, as classic sparse interpretable embeddings, suffers from poor performance. Recently, Benara et al. (2024) propose interpretable text embeddings using large language models, which forms "0/1" embeddings based on responses to a series of questions. These interpretable text embeddings are typically high-dimensional (larger than 10,000). In this work, we propose Low-dimensional (lower than 500) Dense and Interpretable text embeddings with Relative representations (LDIR). The numerical values of its dimensions indicate semantic relatedness to different anchor texts through farthest point sampling, offering both semantic representation as well as a certain level of traceability and interpretability. We validate LDIR on multiple semantic textual similarity, retrieval, and clustering tasks. Extensive experimental results show that LDIR performs close to the black-box baseline models and outperforms the interpretable embeddings baselines with much fewer dimensions. Code is available at https://github.com/szu-tera/LDIR.
