English

Crafting Interpretable Embeddings by Asking LLMs Questions

Computation and Language 2024-05-28 v1 Artificial Intelligence Machine Learning Neurons and Cognition

Abstract

Large language models (LLMs) have rapidly improved text embeddings for a growing array of natural-language processing tasks. However, their opaqueness and proliferation into scientific domains such as neuroscience have created a growing need for interpretability. Here, we ask whether we can obtain interpretable embeddings through LLM prompting. We introduce question-answering embeddings (QA-Emb), embeddings where each feature represents an answer to a yes/no question asked to an LLM. Training QA-Emb reduces to selecting a set of underlying questions rather than learning model weights. We use QA-Emb to flexibly generate interpretable models for predicting fMRI voxel responses to language stimuli. QA-Emb significantly outperforms an established interpretable baseline, and does so while requiring very few questions. This paves the way towards building flexible feature spaces that can concretize and evaluate our understanding of semantic brain representations. We additionally find that QA-Emb can be effectively approximated with an efficient model, and we explore broader applications in simple NLP tasks.

Keywords

Cite

@article{arxiv.2405.16714,
  title  = {Crafting Interpretable Embeddings by Asking LLMs Questions},
  author = {Vinamra Benara and Chandan Singh and John X. Morris and Richard Antonello and Ion Stoica and Alexander G. Huth and Jianfeng Gao},
  journal= {arXiv preprint arXiv:2405.16714},
  year   = {2024}
}
R2 v1 2026-06-28T16:41:06.067Z