Demystifying Embedding Spaces using Large Language Models
Guy Tennenholtz, Yinlam Chow, Chih-Wei Hsu, Jihwan Jeong, Lior Shani, Azamat Tulepbergenov, Deepak Ramachandran, Martin Mladenov, Craig Boutilier
TL;DR
The paper tackles the interpretability of domain embeddings by introducing Embedding Language Model (ELM), which injects continuous domain vectors into a pretrained LLM using an adapter to enable narrative descriptions and queries about embeddings. The approach formalizes a domain-embedding space $(\mathcal{W}, d)$ and trains an adapter $E_A$ to map embeddings into the LLM's token space, yielding an interpretable model ${\mathcal{M}}_{\text{ELM}} = ((E_0 \times E_A)^H, M_0)$ trained via a two-stage procedure. The authors validate ELM on MovieLens 25M data with semantic and behavioral embeddings across 24 movie tasks plus user-profile generation, using semantic consistency (SC) and behavioral consistency (BC) metrics along with human judgments. They show that ELM generalizes to unseen embeddings, performs better on interpolations than text-only LLMs, and supports extrapolations like CAV-driven attribute directions, thereby bridging dense embeddings with natural-language interpretability. The work presents a practical framework for querying and describing complex embedding spaces, with potential applicability to diverse domains beyond recommendation systems.
Abstract
Embeddings have become a pivotal means to represent complex, multi-faceted information about entities, concepts, and relationships in a condensed and useful format. Nevertheless, they often preclude direct interpretation. While downstream tasks make use of these compressed representations, meaningful interpretation usually requires visualization using dimensionality reduction or specialized machine learning interpretability methods. This paper addresses the challenge of making such embeddings more interpretable and broadly useful, by employing Large Language Models (LLMs) to directly interact with embeddings -- transforming abstract vectors into understandable narratives. By injecting embeddings into LLMs, we enable querying and exploration of complex embedding data. We demonstrate our approach on a variety of diverse tasks, including: enhancing concept activation vectors (CAVs), communicating novel embedded entities, and decoding user preferences in recommender systems. Our work couples the immense information potential of embeddings with the interpretative power of LLMs.
