Explanations that Transfer: Interpreting Medical Retrieval with Sparse AutoEncoders
Diane Bouchacourt, Gaëtan Brison
Abstract
Medical AI systems that answer users' queries rely on retrieving medical knowledge from large document collections. In this context, finetuning general models on medical datasets can improve retrieval relevance. Yet the dense embeddings underlying modern retrieval systems remain largely opaque, making it difficult to understand the mechanics behind their results. Moreover, adapting to a specific medical dataset risks losing transferability to new clinical corpora. In this work, we tackle these issues by applying Sparse Autoencoders (SAEs) to medical information retrieval, transforming dense text embeddings into semantically interpretable representations. To do so, our model combines a reconstruction objective with an InfoNCE contrastive loss that directly preserves query-document relevance. We evaluate three embedding models across six medical retrieval datasets, both in-domain and out-of-domain. Trained on a medical corpus, our sparse codes improve in-domain retrieval over the original embeddings, and lose less out-of-domain performance than their dense counterparts, especially when the target corpus is distant from the training one. Importantly, our experiments show that the method yields interpretable features whose semantic content can be inferred from the queries and documents that activate them most strongly. The interpretation of these features sheds light on why a particular document was retrieved, and transfers beyond the training distribution.
Create a lesson
Related papers
UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval
Shared title terminology · Keyu Chen, Xiaoyao Zhong, Jiabao Jin et al.
SPARSEUP: Towards Better Recipes for Training Modern Learned Sparse Retrievers
Shared title terminology · Thibault Formal, Pierre Erbacher, Cosimo Rulli
SteerGR: Steering Generative Recommendation via Sparse Autoencoders for Controllable Game Discovery
Shared title terminology · Sunkyung Lee, Xiaokai Wei, Da Long et al.
ERA: Embed, Route, Adapt for Cold-Start Cross-Model Latent Retrieval
Shared title terminology · Venkata Chivukula, Zifeng Wang, Jinsung Yoon
From Sessions to Serving: Integrating LLM-Based Embeddings into Retrieval for Production Content Recommendation
Shared title terminology · Zhixiong Hu, Meng Li, Maggie Zhang et al.
A Task-Level Bias Taxonomy for Historical Image Retrieval
Shared title terminology · Omkar Gavali, Ratan Sebastian, Christoph Rippe et al.