arXiv · 2411.00786
Interpret and Control Dense Retrieval with Sparse Latent Features
Abstract
Dense embeddings deliver strong retrieval performance but often lack interpretability and controllability. This paper introduces a novel approach using sparse autoencoders (SAE) to interpret and control dense embeddings via the learned latent sparse features. Our key contribution is the development of a retrieval-oriented contrastive loss, which ensures the sparse latent features remain effective for retrieval tasks and thus meaningful to interpret. Experimental results demonstrate that both the learned latent sparse features and their reconstructed embeddings retain nearly the same retrieval accuracy as the original dense vectors, affirming their faithfulness. Our further examination of the sparse latent space reveals interesting features underlying the dense embeddings and we can control the retrieval behaviors via manipulating the latent sparse features, for example, prioritizing documents from specific perspectives in the retrieval results.
Explore related subjects
Keep this discovery
Hao Kang, Tevin Wang, Chenyan Xiong. 2024-10-17. Interpret and Control Dense Retrieval with Sparse Latent Features. https://arxiv.org/abs/2411.00786
Cite the original work for its findings. Save a collection to share your selection of sources.