---
title: "Crafting Interpretable Embeddings by Asking LLMs Questions"
description: "QA-Emb turns yes-or-no answers into readable text features and tests how well they predict brain responses to spoken stories."
canonical: "https://research.elamur.ai/free/en/papers/benara-2024-crafting-interpretable-embeddings-asking-llms/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/benara-2024-crafting-interpretable-embeddings-asking-llms/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Crafting Interpretable Embeddings by Asking LLMs Questions

# Crafting Interpretable Embeddings by Asking LLMs Questions

Paper · 2024 · Vinamra Benara, Chandan Singh, John X. Morris et al.

**Authors:** Vinamra Benara, Singh, Chandan, [John X. Morris](https://md.research.elamur.ai/free/en/authors/john-x-morris/), Richard Antonello, [Ion Gabriel Stoica](https://md.research.elamur.ai/free/en/authors/ion-gabriel-stoica/), Alexander G. Huth and [Jianfeng Gao](https://md.research.elamur.ai/free/en/authors/jianfeng-gao/) · **Year:** 2024 · **Venue:** arXiv (Cornell University) · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**2** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4399115936) · Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2405.16714)
- [arXiv 2405.16714](https://arxiv.org/abs/2405.16714)
- [OpenAlex](https://openalex.org/W4399115936)

Citations: OpenAlex, 2026-10-14.

## Summary

A text embedding turns a passage into a list of numbers. Those numbers can help predict how someone’s brain responds as they listen to a story, but they rarely tell a researcher which properties of the story matter for the prediction. The authors introduce question-answering embeddings, or QA-Emb, to make those properties visible. Each position in the embedding has an assigned yes-or-no question. An answer can indicate whether a passage describes a physical setting, for instance. The researcher can read the question, examine the answers assigned to passages, and see how strongly the resulting feature contributes to a prediction. This gives [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) a concrete purpose in the experiment.

The authors use [large language models](https://md.research.elamur.ai/free/en/concepts/large-language-models/) both to propose questions and to answer them. Proposing questions defines what the representation can look for. Answering those questions turns each passage into features that a separate predictor can use. The main test uses functional magnetic resonance imaging, or fMRI, recorded while 3 people listened to narrative podcasts. QA-Emb reaches an average test correlation of 0.116 for predicting brain responses, a 26% average improvement over Eng1000, an established representation whose features describe word co-occurrence. It also slightly exceeds BERT in this comparison and falls below the strongest LLaMA baseline selected through cross-validation.

On held-out stories for subject S03, a version using 29 questions achieves a mean test correlation of 0.122, compared with 0.118 for Eng1000. The smaller set gives the authors a way to inspect the spatial pattern of fitted weights for individual questions. The weights for a question about physical settings overlap with areas previously associated with places. A question about grammatical complexity produces a pattern resembling the language network. These maps show where particular text features contribute to the prediction and give researchers associations they can investigate further.

Answering every question separately is expensive, and a readable question can still receive an inaccurate answer. The authors train a separate system to approximate all the answers in one pass. Its probability-valued features come close to the original representation in a separate fMRI comparison. Tests on diverse binary classification datasets show that question-answering accuracy varies, with some distinctions remaining difficult. The paper also explores [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/) and text clustering. QA-Emb adds a modest benefit when combined with BM-25 in the retrieval experiment, and filtering a shared question list improves class separation in the clustering experiment.

## Deep dive: Crafting Interpretable Embeddings by Asking LLMs Questions

QA-Emb turns yes-or-no answers into readable text features and tests how well they predict brain responses to spoken stories. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a coordinate can tell a researcher

A useful text representation preserves something about its input. Which things it preserves depends on how it was made. A bag-of-words representation records information about the words that occur in a passage. A contextual representation can preserve more about how those words work together. If the purpose is to predict a response, that extra information is valuable. If the purpose is to understand the response, a researcher also needs some way to describe the information the prediction used. A representation can be effective for the first purpose while leaving much of the second job unresolved.

Consider a story passage that describes a room. A representation based on words gives a researcher recognizable entries to inspect. A contextual embedding may also capture the description, including details that depend on the words around it, but the position of a number in that embedding generally does not identify the property it expresses. Several positions together may carry information about the room, its occupants, and what is happening there. Even a predictor that uses those positions in a simple calculation can be hard to interpret because the meaning of its inputs is unclear.

The paper treats this as a problem of choosing the vocabulary of a representation. The vocabulary need not consist of individual words. It can include a property such as whether a passage describes a physical setting, which can hold across passages with quite different wording. A useful coordinate should let the researcher identify the intended property, inspect when the system assigns it, and relate it to a prediction. Each of those steps answers a different question about the resulting analysis.

The paper places this problem alongside several established uses of embeddings. Search systems use them to compare a query and a passage. Clustering procedures use them to decide which passages belong together. In scientific work, a representation can stand in for measured properties of language in an experiment. An opaque similarity score is an obstacle when a user wants to know why a passage was retrieved. An opaque feature space presents a related difficulty in neuroscience, where the point of building a predictor frequently includes understanding how language relates to activity in different parts of the brain.

#### Earlier ways to build and inspect representations

The paper describes a shift from readable representations such as bag-of-words and BM-25 toward embeddings learned with [transformers](https://md.research.elamur.ai/free/en/concepts/transformer/). It cites Sentence-BERT, SimCSE, and ColBERT among the approaches that helped make these representations useful. Their relevance to QA-Emb is that a system can capture contextual relationships without organizing its coordinates around properties a reader can name. The authors also discuss sparse representations and embeddings with variable lengths. Sparsity or a shorter vector can improve how a representation is stored or used, while the meanings of its entries remain a separate issue. [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/) · [SimCSE](https://md.research.elamur.ai/free/en/papers/gao-2021-simcse-simple-contrastive-learning-sentence/) · [ColBERT](https://md.research.elamur.ai/free/en/papers/khattab-2020-colbert-efficient-effective-passage/)

The distinction also matters for earlier [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) such as word2vec and GloVe. The word associated with a vector is known, but the vector’s individual entries do not arrive with names. For some tasks, the paper notes, predictions that rely on dense embeddings can be expressed in a space defined by words. The authors distinguish that route from selecting a sparse collection of features directly in the original representation. Removing coordinates from a dense embedding by itself leaves the user with the meanings of those coordinates still to establish. [word2vec](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/) · [GloVe](https://md.research.elamur.ai/free/en/papers/pennington-2014-glove-global-vectors-word-representation/)

Another line of work starts with a representation that already exists and asks what information can be recovered from it. A probe, for instance, can test whether a representation helps predict a linguistic property. Other approaches assign descriptions to individual units or look for a meaningful direction spanning several units. Work on similarity explanations tackles a narrower question, such as what two particular passages share that could account for their closeness. These methods operate at different levels. Evidence that a linguistic property can be recovered from a vector establishes something about the information available there. A name attached to a unit or direction is an attempt to say where such information is expressed. QA-Emb assigns names before constructing the representation, so the remaining question is how faithfully the coordinates follow those names and how useful they are together. [Probing sentence embeddings for linguistic properties](https://md.research.elamur.ai/free/en/papers/conneau-2018-what-you-can-cram-into/) · [Network Dissection](https://md.research.elamur.ai/free/en/papers/bau-2017-network-dissection-quantifying-interpretability-deep/)

The paper also describes earlier uses of autoregressive language systems for building embeddings. Some methods use these systems to create examples for training. Others use their internal outputs, including the distribution associated with the last token, as representations. The closest precedents in the paper use answers to prompts for purposes such as [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) and data exploration. In automatic prompting, the object being sought is frequently a prompt that elicits a useful response. QA-Emb poses a related search problem in which the object is a collection of questions. The collection matters because the usefulness of any one question depends in part on what the other questions already cover.

#### Why brain-response prediction is the main test

In the neuroscience setting, an encoding model takes a description of a stimulus and predicts a measured brain response. Here the stimulus is a spoken story, and the measurements come from small regions called voxels. The paper describes earlier uses of language encoding models to study the timescales over which the cortex responds to language, the relationship between visual and semantic information, and the contributions of syntax, meaning, and discourse. In each case, the way the stimulus is represented shapes the kinds of explanation the researcher can draw from a successful prediction.

Eng1000 provides a particularly relevant precedent. It was developed for predicting responses to narrative speech, and its entries describe co-occurrence with recognizable words. A question-based feature can express a different sort of property, such as whether a portion of a narrative involves a physical action. That property may be recognizable across many different word combinations. A neuroscience researcher can write a hypothesis in those terms and use it to define a candidate feature, alongside other questions about the same passage.

The authors develop their main experiment with neuroscientists. Their aim is to make the assessment of interpretability specific enough to judge in use. In this setting, a feature is valuable if it makes a meaningful property available to a predictor, contributes to held-out prediction, and supports inspection of the fitted relationships across the cortex. Those goals motivate both the choice of a linear predictor and the comparison between a large candidate pool and a much shorter selected list. [Towards a Rigorous Science of Interpretable Machine Learning](https://md.research.elamur.ai/free/en/papers/doshi-velez-2017-towards-rigorous-science-interpretable-machine/)

### The method, step by step

#### Turn answers into coordinates

Start with a passage and a list of questions about it. A question could ask whether the passage refers to time. Another could ask whether it depicts a physical action. Each question is paired with the passage in a prompt. The system’s affirmative or negative answer supplies the value at the corresponding position in the vector. A different passage can produce a different value in that position, while the question attached to the position stays the same. This is how the authors use [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) to define the representation.

The basic representation is binary. An affirmative answer is encoded as 1 and a negative answer as 0. A reader can go from a coordinate back to the wording of its question. This is possible even if the person inspecting the representation has no access to the internal parameters or activations of the system that answered it. The numerical entry records what the answering system judged about the passage. Checking that judgment against the text remains a separate part of interpreting it.

The questions determine which distinctions the representation can express. If a list covers actions, places, and objects, two passages can differ along those axes even when they share few words. If the list never asks about a property, that property has no dedicated coordinate. It might still correlate with some of the available answers. For the neuroscience application, this matters because the choice of questions makes some hypotheses easy to express and leaves others implicit.

From story text to fMRI predictions with QA-Emb The steps in order.

#### Generate candidates before selecting features

The authors separate generation from scoring. For generation, they ask GPT-4 for questions that might be useful for describing language in the target task. The specification can name the kind of text, describe the application, or show examples. In the fMRI study, 6 prompts produce 674 candidates. Some ask for broad semantic properties or properties of first-person narratives. Others ask the system to draw on neuroscience and psychology, use passages from the study, or produce questions in the spirit of earlier natural-language descriptions of individual voxels. [GPT-4 Technical Report](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/)

The examples serve different functions in those prompts. Narrative passages show the system what a candidate will have to describe. Previously generated questions show what the list already covers. In the prompt that supplies both, GPT-4 is asked to look for properties shared by multiple narrative examples and to complement the existing coverage. That design leaves room for questions suggested by the text itself as well as questions motivated by prior knowledge about how language is processed.

A question generator has no direct measure of whether its suggestions will predict activity on unseen stories. After generation, the authors answer the candidates on the stimulus text, turning each one into a column of observations that can be tested against the responses. Multitask Elastic net selects features in the neuroscience experiment. This is a regularized fitting procedure that can set feature coefficients to zero while considering multiple response dimensions together. The authors try 20 logarithmically spaced settings for its regularization parameter, from 10⁻³ to 1, and use scikit-learn’s MultiTaskElasticNet implementation. Ridge regression then fits predictions using the selected features.

This arrangement gives selection and prediction different jobs. Elastic net provides a way to obtain shorter question lists from the original pool. Ridge regression determines the weights on the retained features. Removing a question at the selection stage removes its coordinate from the representation. In the fitted predictor, a retained question can have a stronger relationship to some response dimensions than to others. Thus both the membership of the list and the fitted weights are available for inspection.

The paper describes other ways to choose questions. A system can be given an existing list and a description of a new task, then asked which questions suit that task. That is the approach tested in the clustering experiment. The authors also describe an iterative option in which a system examines examples with large prediction errors and proposes questions aimed at what those examples share. The reported fMRI pipeline uses the prompt-generated pool and feature selection. The error-driven procedure is presented as a possible way to generate candidates.

#### Answer questions in a consistent format

In the main setup, Mistral-7B and LLaMA-3 8B supply answers. The paper uses the instruction-tuned checkpoints `mistralai/Mistral-7B-Instruct-v0.2` and `meta-llama/Meta-Llama-3-8B-Instruct`. The standard prompt presents the input and the question, asks the system to give its decision first, and requests an explanation afterward. The feature uses the decision. The other prompt illustrates the desired output with answered examples. Those examples show both affirmative and negative cases, including questions about laughter, food preparation, figurative language, and sports. The new passage and question follow the examples. This is an application of [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) through prompting. [Mistral 7B](https://md.research.elamur.ai/free/en/papers/jiang-2023-mistral-7b/)

A single answer is binary, whereas the main answering setup averages answers across the systems and prompts. Its combined coordinate can therefore express agreement or disagreement among those judgments. A single binary output and an average of binary outputs use the same question as a label, but the values have different readings. The first records one decision. The second summarizes several decisions. A fractional ensemble value records that the answers were mixed. It does not directly measure how much of the named property is present in the passage.

GPT-4 is used for question generation through `gpt-4-0125-preview`. The answering systems are already trained and their parameters are left fixed during the main procedure. The study still involves learning: the questions are chosen for the task, and the response predictor is fitted to observed data. Later, in the distillation experiment, the authors do update the parameters of a separate system so that it can reproduce the answers more efficiently. Keeping those stages separate helps distinguish learning the questions, learning to use the resulting features, and learning to approximate their values.

#### State the selection problem precisely

The paper describes the underlying binary representation with the following notation.

```
Q ∈ 𝒬ᵧₑₛ/ₙₒ
```

Here Q is a candidate question set. The symbol ∈ means that Q belongs to the admissible collection, denoted by 𝒬ᵧₑₛ/ₙₒ. The yes/no subscript identifies the restriction that the questions should admit binary answers. The paper does not specify a complete inventory of admissible questions. This is a search over possible natural-language formulations as well as possible subsets.

```
v_Q(x) ∈ {0, 1}ᵈ
```

Here x is the input string, and v_Q is the mapping that turns a string into the vector defined by Q. The braces give the allowed values, with 0 for a negative answer and 1 for an affirmative answer. The superscript d is the number of feature positions, each corresponding to a question. This expression describes the underlying binary design. Averaging answers or using affirmative probabilities, as in other parts of the study, relaxes the restriction on the value of a coordinate while retaining its question.

```
Y ∈ ℝⁿˣᵈ
```

Y denotes the collection of continuous training responses, and ℝ denotes the real numbers. The superscript describes an array with n rows and d columns in the paper’s notation. The index n counts training strings, and the columns represent response dimensions. The paper also uses d for the number of question features. The experimental setup treats the number of retained questions and the number of predicted response components as separate quantities.

```
Q = argmin_{Q ∈ 𝒬ᵧₑₛ/ₙₒ} [min_{θ ∈ ℝᵈ} Σᵢⁿ ‖Y⁽ⁱ⁾ − θᵀ v_Q(X⁽ⁱ⁾)‖ + λ‖θ‖₂]
```

The outer argmin denotes selecting the Q that minimizes the bracketed objective. The inner min finds the smallest objective over coefficient vectors θ for a given set of questions. The expression θ ∈ ℝᵈ says that the coefficient vector has real entries indexed by the feature positions. X is the collection of training strings, and the parenthesized superscript ⁽ⁱ⁾ selects example i from X or its observed response from Y. The transpose ᵀ lets θᵀ multiply the feature vector v_Q(X⁽ⁱ⁾) to form a linear prediction. The minus sign inside the first pair of norm bars forms the residual, and the bars denote its magnitude. The sum Σᵢⁿ accumulates the residual term over the training examples. The plus sign adds the regularization term, λ controls its strength, and the subscript ₂ identifies the Euclidean norm of θ.

The displayed equation is the paper’s schematic objective. It prints both norms without squares and uses vector notation for the predictor, while the experiment fits ridge predictors for multiple continuous response components. The operational procedure matters for interpreting the result. The authors generate a finite candidate pool, select features from that pool, and fit regularized predictors. They do not solve the outer minimization over arbitrary natural-language questions. The equation shows what the search is supposed to accomplish: obtain questions whose answers support accurate prediction after the weights have been fitted.

This also explains why the representation can transfer to tasks whose objectives look different. Given a set of questions, the downstream procedure decides what counts as a useful answer pattern. A regression can use an answer to raise or lower a prediction. Retrieval can use shared answers to help a query and a passage rank nearer to each other. Clustering can use a subset of the same questions to emphasize distinctions that matter in a particular collection. The meaning assigned to a coordinate is readable in each case. Its role in the calculation depends on the task.

#### Align the text with the measured response

The story is represented as a succession of short windows. At the timepoint associated with a word, the authors take the preceding 10 words and obtain an embedding for that sequence. Here an n-gram is simply a span of consecutive words. Adjacent spans cover much of the same text. They can still produce different judgments when the narrative introduces a new element or when a word drops out of view. [N-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/)

The word times and the fMRI sampling times need to be brought onto a common grid. The authors use Lanczos resampling, an interpolation procedure that estimates the feature values at the relevant measurement times from the sequence of word-aligned vectors. They also include copies of features shifted in time to account for delays between the stimulus and the measured fMRI response. Cross-validation considers 4, 8, or 12 lagged copies. An answer computed for one word window is therefore part of a time series. The predictor can draw on answers from multiple earlier points when estimating the response at a scan time.

Before fitting the predictor, the authors reduce the dimensionality of the brain data. Each person’s recordings contain roughly 100,000 voxels. Principal component analysis, or PCA, expresses the responses in terms of patterns of variation distributed across voxels. The regression predicts the coefficients of the top 100 components. At evaluation time the inverse mapping turns those predicted coefficients back into a response in voxel space. The reported correlations concern those voxel predictions, so the components are an intermediate representation of the target.

The hyper-parameter selection uses 5 time-stratified bootstrap samples from the training data. These are resampled portions used to compare settings within the training material, with the time organization taken into account. The ridge sweep covers 12 logarithmically spaced values between 10 and 10,000. The authors also evaluate the alternative numbers of lagged copies there. The held-out stories serve a different role: they test whether the fitted prediction transfers to new narrative material for the same listener.

#### Adapt the representation for retrieval and clustering

For retrieval, the authors generate 2,000 questions with GPT-4, using a prompt about the kinds of queries found in search. They adjust the wording by a pattern-based text replacement so that the same property can be asked about a query and a document. A question about whether a query refers to a particular period, for example, becomes a question about whether the text refers to one. LLaMA-3 8B answers the questions on both sides. The result makes corresponding coordinates comparable even though a query and a candidate document play different roles.

The retrieval training procedure learns a scalar multiplier per question. It scales the answer before the similarity calculation, changing the contribution of that coordinate. The paper describes an objective with a negative cosine-similarity term for a query and its relevant documents and a positive term for that query and the other documents. Minimization therefore favors higher similarity for the known matches and lower similarity for the rest. The relevant-document term has 10 times the weight of the other term. The authors use Adam with a learning rate of 10⁻⁴ and run for 8 epochs, by which point they report that the training loss appears to have leveled off. [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/)

For clustering, the authors generate 25 questions per dataset and combine them in a 100-dimensional representation. The full question list is intended to span several domains. To adapt it, GPT-4 receives that list and a description of the target task and selects a subset. Each retained coordinate keeps its original meaning and answer. The adapted embedding changes which coordinates are included in the distance calculation. This experiment tests task adaptation by selecting questions from text, without fitting weights to labeled examples for the selection.

The authors release the QA-Emb code and the generated questions. The appendix describes the prompt designs and gives an extended account of the experimental settings. The code accompanies a method whose question lists, answer prompts, feature selection, and downstream fitting can each be inspected as distinct parts of the procedure.

### Experiments and results

#### Predicting responses to held-out stories

The fMRI data come from studies by LeBel and colleagues and Tang and colleagues. The recordings cover 3 people listening to 20+ hours of stories from podcasts. For each listener, the paper describes either 79 or 82 stories for fitting, with 27,449 time points, and 2 test stories with 639 time points. The held-out unit is an entire story. This setup tests the ability to predict responses to unfamiliar narratives using the recordings already available for a particular listener.

The performance measure is the correlation between the predicted and observed response over test times for each voxel, after the predictions have been mapped back from the principal components. Correlation measures whether the two series tend to rise and fall together. A method can score well by tracking that variation even if its predictions differ in magnitude from the recorded response. The study summarizes the correlations and also examines their distribution over the cortex. These summaries answer different questions. An average compares overall performance, while a map can show where useful prediction is concentrated.

Eng1000 is the main interpretable baseline. It has 985 features describing co-occurrence with words, and it was designed for narrative fMRI prediction. The paper also compares with the BERT checkpoint `bert-base-uncased` and with LLaMA embeddings. For each subject, cross-validation selects from 5 layers of each LLaMA variant in the sweep. For LLaMA-2 7B and LLaMA-3 8B, those are layers 6, 12, 18, 24, and 30. For LLaMA-2 70B they are layers 12, 24, 36, 48, and 60. The reported LLaMA test result uses the option chosen on the basis of cross-validation. This matters because predictive information available in an internal representation can depend on the layer from which it is taken. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) · [Llama 2](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/)

QA-Emb achieves an average test correlation of 0.116 across subjects. The authors report a significant improvement over Eng1000, with a 26% average improvement. They report a 5% improvement over BERT and a 7% decrease relative to the best cross-validated LLaMA alternative. The ordering is consistent across all 3 subjects. The comparison puts the result in perspective. A question-based representation can be competitive with a contextual embedding and improve substantially on the previous interpretable baseline, while the strongest LLaMA features in the comparison still provide the best prediction.

The paper’s main performance figure reports standard errors below 0.001 for the overall comparison and the feature-count curves. Those uncertainties describe the estimates shown in the figure. The number of people is a separate consideration when judging how broadly the result can be expected to hold. Likewise, the correlative nature of the metric is relevant when interpreting the numerical advantage. It establishes better tracking of responses under the evaluation procedure.

#### How much prediction survives a shorter question list

The feature-count analysis for S03 asks how quickly the performance improves as the system is allowed to use more features. This comparison is particularly important for a representation meant to be read. A list can give a meaning to every coordinate and still be too long for a researcher to inspect easily. The relevant test is how far the list can shrink while preserving useful prediction.

The authors use Elastic net to vary the number of retained features. On the S03 test stories, QA-Emb with 29 questions achieves a mean correlation of 0.122, compared with 0.118 for Eng1000 at its final performance in the same comparison. The baseline’s 985 co-occurrence features provide a sense of scale. The question-based list expresses broader properties of the story, and the feature-count curve shows that useful prediction appears with relatively few of them. The numbers in this comparison are for S03. The headline average of 0.116 describes the cross-subject result under the main evaluation.

QA-Emb and Eng1000 on the S03 fMRI test stories by mean voxel correlation The short QA-Emb question list exceeds the final performance of Eng1000.

**The numbers**

| System or setting | mean test correlation |
| --- | --- |
| Eng1000 | 0.118 |
| QA-Emb with 29 questions (this paper) | 0.122 |

The map of S03’s test correlations shows where QA-Emb tracks the observed responses well. The authors report that the better-predicted regions align with language-related areas described in the neuroscience literature. They also compare the correlations for QA-Emb and BERT at each voxel. The differences lack a stable spatial pattern across participants. The overall comparison is therefore easier to state than a claim about a particular region consistently benefiting from the switch to question features.

#### Predicting the answers in one pass

The efficiency experiment uses [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) to train a RoBERTa-base system to reproduce the answers that LLaMA-3 8B gives with the example-based prompt. The authors add 674 classification heads, one for each candidate question. A head is an output predictor attached to a shared text representation. The shared part processes the passage once, and the heads use that representation to estimate the respective answers. The output positions retain their assigned questions. [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/)

The training units are the 10-word windows from the stories. The authors use 80% of the windows from the 82 fMRI training stories, or 123,203 examples, to train the answer predictor. The remaining 20%, or 30,801 examples, are used to decide when to stop training. Evaluation uses all 4,594 windows from the 2 held-out stories. These counts are text windows, which are distinct from the scanner time points used in the response evaluation. The optimizer is AdamW with a learning rate of 5·10⁻⁵. [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/)

In the held-out windows, the distilled system obtains an 88.5% match to the teacher’s yes-or-no answers. The authors then test the distilled embeddings in the fMRI prediction pipeline. When its outputs are converted to hard decisions, the system performs slightly below the original. When the estimated probability of an affirmative answer is used, the resulting features yield an average test correlation of 0.113, close to the original system’s 0.114 in this separate comparison. The probability-valued version maintains a significant improvement over Eng1000.

Original and distilled QA-Emb on held-out fMRI stories by average test correlation The distilled system using affirmative probabilities comes close to the original question-by-question system.

**The numbers**

| System or setting | average test correlation |
| --- | --- |
| Distilled QA-Emb with affirmative probabilities | 0.113 |
| Original QA-Emb (this paper) | 0.114 |

Answer agreement and brain-response correlation measure different outcomes. Agreement asks how often a prediction copies the teacher on a text window and a question. Brain-response correlation asks how well the features work together after they are aligned in time and used by the fitted predictor. Many windows and questions contribute to a response estimate. As the authors point out, this gives individual answer mismatches less opportunity to dominate the final prediction. The close downstream result establishes an approximation for this pipeline, where quality at the level of the final prediction matters.

#### How often the answers are right

The paper evaluates answer accuracy separately using the D3 collection of 54 binary classification datasets. Each dataset defines a distinction that can be phrased as a yes-or-no question and supplies text examples with labels. The tested systems are GPT-4, GPT-3.5, Mistral-7B, and LLaMA-3 8B. Accuracy measures agreement with the dataset labels, which makes it a different test from agreement with a teacher in distillation. The paper shows individual dataset results with 95% confidence intervals.

The systems perform fairly well on average, with GPT-4 slightly ahead, according to the authors. Performance varies considerably across questions. For the most difficult dataset in their comparison, the question concerns whether a passage is about mathematical research. Texts in the negative class come from other quantitative fields, including chemistry. They may contain notation, numbers, and statistical analysis. The answering systems tend to say yes to these passages as well and achieve accuracy near the 50% chance level. The example shows how a question can sound clear while its correct boundary is much harder to apply.

These passages are generally longer than the fMRI inputs. D3 has an average length of over 50 words, and some examples exceed 1,000 words, whereas a window in the fMRI study spans 10 words. The authors also view the fMRI questions as relatively simple compared with the range of distinctions in D3. The separate accuracy study gives evidence about how question-answering can fail. Its aggregate results measure performance on D3, where reference labels are available.

#### Finding documents and separating classes

The retrieval experiment takes a random sample of 4,000 MS MARCO queries and their corresponding relevant documents, yielding a collection of 5,210 documents. The authors train on 25% of the queries and keep 75% for testing. A query is represented in the same question space as the documents and compared using cosine similarity, which measures the alignment of the resulting vectors. The reported retrieval metrics are mean reciprocal rank and recall. Reciprocal rank gives greater credit when the first relevant item appears earlier in the ranking. Recall measures how much of the relevant material the ranking retrieves. [MS MARCO](https://md.research.elamur.ai/free/en/papers/bajaj-2016-ms-marco-human-generated/)

The authors compare the question features with readable baselines including bag-of-words and BM-25. On its own, QA-Emb does slightly better than bag-of-words and falls significantly below BM-25. The combination of QA-Emb and BM-25 yields a small, significant improvement over the interpretable baselines. The comparison shows that the question features supply some useful information alongside BM-25 in this corpus. Their compactness also reduces the amount of material a person would need to inspect to identify which questions a query and a document have in common. The paper gives the retrieval comparison as a secondary result in a simplified setting.

The clustering experiment uses Financial phrasebank, Emotion, AGNews, and Rotten tomatoes. The class labels define the groups used in evaluation. For each dataset, the authors measure distances between embeddings using Euclidean distance and compare average distances between classes with average distances within classes. The score is the gap obtained by subtracting the within-class average from the between-class average. A higher score indicates that class membership is reflected more clearly in the geometry of the representations. [Seeing Stars](https://md.research.elamur.ai/free/en/papers/pang-2005-seeing-stars-exploiting-class-relationships/)

The unfiltered 100-dimensional representation gives relatively weak separation. Once GPT-4 selects a shorter question list for the dataset, the clustering scores increase. The relevant comparison holds the pool of available questions fixed and changes which answers count as coordinates in the distance calculation. Labels determine the groups used to evaluate the outcome. The pruning prompt can act on a description of the task and the list of questions; it does not need labeled training examples to choose the subset. This is the zero-shot adaptation demonstrated by the experiment.

### What the ablations show

#### Feature selection and the cost of extra questions

The feature-count comparison is the paper’s most direct test of what happens when the neuroscience predictor receives a smaller representation. It follows held-out performance as Elastic net retains different numbers of features. QA-Emb improves rapidly with the number of included questions and passes Eng1000’s final performance with a short list for S03. The controlled quantity is the number of features used, under a selection procedure that chooses them for their contribution to the prediction. The result supports the usefulness of a selected subset from this pool. It leaves open how well a different subset of the same size, chosen independently, would predict.

This is also a comparison between different kinds of coordinates. An Eng1000 coordinate has a particular word as its reference point. A question can draw together examples that share a property even when they have different words and constructions. The compact result is consistent with that wider coverage per feature. The comparison varies the representation as a whole, including the way its values are produced and the properties available for selection. It therefore cannot assign the advantage to semantic scope alone.

Question counts also understate how much numerical information enters the timed predictor. The named questions define the stimulus feature types, but the regression receives lagged versions of those features, and the data contain successive windows from the same narrative. A compact language description of the model is useful because a reader can grasp what kinds of properties are being tracked. The fitted predictor also depends on when those properties were detected and how their lagged values were weighted.

The paper’s appendix describes a sweep over prompts and answering systems with the number of lagged delays fixed at 8. Its table caption reports that the ensemble generally yields a small gain and that Mistral slightly trails LLaMA-3 8B. Fixing the delay setting makes differences in the comparison less confounded by choices about temporal alignment. The small ensemble advantage is evidence that the prediction benefits from combining these answer configurations. How the ensemble changes particular judgments, and whether it improves agreement with a human reader for particular questions, are separate issues.

#### What the maps of fitted weights add

The voxel-level analysis distinguishes maps of prediction quality from maps of feature weights. A prediction-quality map shows where the system’s output follows the measured signal. A weight map shows where a named feature participates in the fitted calculation. A region can be well predicted by several features together. A prominent weight for a question expresses a conditional relationship in the predictor, given the other features supplied to it.

The authors inspect maps for 3 selected questions in S02 and S03, the 2 subjects whose responses are predicted best. The example about a physical setting has a weight pattern that includes the occipital place area and retrosplenial complex, as well as the intraparietal sulcus. The relationship gives a concrete interpretation to a feature that survived selection. Its map is comparable with expectations derived from studies of places and spatial information. Agreement with those expectations provides a check on the plausibility of the fitted association.

The grammatical-complexity question gives another comparison. Its weight pattern resembles the language network, which the paper describes in relation to localization based on a contrast between sentences and nonwords. Here the feature is a judgment of complexity in a short narrative window. The spatial resemblance connects it with an established pattern, while the judgments tested in the two settings remain different. The map therefore suggests a relationship that can be described and examined in greater detail.

The physical-action question produces a strongly right-lateralized pattern, meaning that its fitted weights are more prominent on the right. The authors describe this example as having less direct support in the earlier literature. It illustrates how the representation can produce a specific claim to investigate, alongside the examples that line up with prior expectations. The distinction matters when reading the maps. The place and complexity examples have comparison points in the literature, while the action example is closer to hypothesis generation.

The authors jointly rescale the weights to the range from −1 to 1 for these visualizations. The appendix describes a separate question-importance measure based on average absolute coefficient size, normalized to the highest-importance question. An average of absolute values summarizes magnitude without preserving the direction or the location of the weights. The maps are useful here because they show a spatial pattern that any single importance score would compress. Together the two views let a reader ask which questions carry large weights overall and where the weights for individual questions are concentrated.

#### Where the approach tolerates imperfect answers

The distillation experiment varies the way the answers are produced while keeping the question inventory available to the predictor. One comparison uses the original separate calls. The distilled alternatives use either a hard answer or the probability assigned to the affirmative answer. The slight improvement when using probabilities suggests that the downstream predictor benefits from keeping information that a binary decision discards. The outcome is evidence about brain-response prediction using these features; it leaves the calibration of the answer probabilities unmeasured.

The 88.5% agreement result helps put the downstream comparison in context. A teacher mismatch can matter greatly if it occurs on an important feature at a relevant point in the story. Other mismatches can be diluted when the predictor combines information from multiple questions, overlapping windows, and lagged features. The near match in correlation shows that perfect imitation of individual answers is unnecessary to attain the reported downstream performance. An application that presents an individual answer to a reader would have a different reason to care about those errors.

The D3 experiment supplies a complementary analysis in which the target is a labeled judgment. Its weakest example clarifies why faithfulness depends on the boundary of a question. Mathematical notation is a plausible cue for mathematics, but it occurs in the negative examples as well. An answerer that relies on the cue can fill a coordinate consistently and still apply the intended category badly. Features of this kind can contribute to a predictor through the cues they actually track. Their labels should be interpreted in light of how the answers behave on the relevant text.

#### What changes when the task changes

The clustering comparison isolates a different use of selection. Since the retained questions come from the shared list, the adapted embedding cannot introduce a property absent from that list. The increase in the score comes from changing which parts of the representation contribute to distance. Questions generated for a different dataset can register large differences among examples without tracking class membership on the current task. Excluding those coordinates can make the geometry better reflect the distinctions actually being assessed.

The retrieval comparison tests the usefulness of the features as a supplement. QA-Emb alone underperforms BM-25, and the combined system does better than the interpretable baselines. Those results support a specific claim about complementary evidence. The test does not identify which individual questions account for the gain or how often they change the outcome for any particular kind of query. In that sense the experimental evidence is stronger for the comparison between whole representations than for an explanation of each retrieval decision.

Across these analyses, the ability to change the question list is a practical advantage of the design. The neuroscience experiment uses measured responses to select a concise list. The clustering experiment uses a task description to filter an existing one. The retrieval experiment keeps the properties available and adjusts their contributions to similarity. Each operation changes a different part of the representation, and each is evaluated against the outcome it was designed to affect.

### Limitations

#### Limits the authors identify

The first stated limitation is the cost of producing an embedding. The basic procedure calls the answering system once per question, so adding features increases inference work. The authors describe two ways to reduce that burden in ordinary prompting. Computation for the common input can partly be reused through a key-value cache, which stores intermediate information used during generation. The decision can also be obtained with a single output token. Once computed, short binary embeddings are relatively cheap to compare. These savings apply at different stages, and inexpensive search over stored embeddings leaves the cost of generating them in place.

The distillation experiment addresses generation cost by processing a passage once for all the answers. This shifts work into generating teacher labels and fitting the student. The trained heads correspond to the question list used in distillation. If a question list changes, new answers can be requested directly through prompting, while a distilled system needs a corresponding way to produce predictions for the new questions. The paper demonstrates a single-pass alternative for the fixed fMRI list. Its evidence concerns that trained system and its held-out stories.

The authors report using 64 AMD MI210 GPUs with 64 gigabytes of memory each. They estimate that reproducing the experiments would take roughly 4 days and that the initial exploration used roughly 5 times that amount of compute. Those figures describe the experimental program, including its different evaluations. The authors also identify resource use as a sustainability concern in their broader discussion.

The other stated limitation is answer accuracy. The feature is named after the question, so inaccurate answering directly compromises what a user can infer from its name. The authors recommend questions that the chosen system can answer reliably and point to the variation in D3 accuracy as evidence for that requirement. They attribute some weak results to difficult distinctions and the absence of prompts tailored to each task. In the main application, a high-performing downstream predictor can partly absorb imperfect answers. A scientific interpretation of a named feature still relies on the underlying judgments being faithful enough for that interpretation.

The authors also describe question generation as a heuristic search. It can incorporate prior expertise and examples, but it depends on what the generator proposes. Feature selection can remove candidates from the pool and can favor a useful combination. It cannot select a property the pool never asks about. The paper presents more direct discrete optimization, iterative generation from errors, and better extraction of questions from examples as open directions.

#### Limits that follow from the design

The fMRI evaluation tests generalization to held-out stories for the people who supplied training recordings. It offers limited evidence about generalization across people. The 3 participants provide several opportunities to see a result recur, and the small standard errors describe the comparisons reported in the study. Broader claims about individuals, other kinds of speech, or other listening conditions would require a design that tests those sources of variation. The interpretive maps narrow the evidence further by concentrating on 2 subjects and 3 example features.

The fit is observational. A question about a place can be answered affirmatively at the same time as questions about motion, objects, or visual details. Elastic net can choose a predictive feature in that setting, but the choice depends on which alternatives were available and how their values covaried in the stories. A spatial association between a named feature and a fitted weight can motivate an experimental contrast. The recorded narratives alone do not isolate that property from its correlates or establish that it causes the associated brain response.

The complexity example makes this distinction concrete. An answering system may use cues that accompany complicated grammar, including the kinds of events described or the vocabulary used in the passage. A 10-word window can also cut across the boundaries of a larger grammatical construction. The corresponding feature is the system’s judgment from that window and prompt. A cortical pattern associated with that feature could reflect the targeted property, correlated properties, or a combination. Independent tests of the answers and controlled stimuli would address different parts of that uncertainty.

The reduction to the top 100 response components also shapes what is predicted. Transforming the predictions back to voxel space makes it possible to report correlations and maps there, while the predicted variation remains expressed through those retained components. Similarly, the chosen window size and set of possible lags define how the story can enter the fitted predictor. The study demonstrates a useful combination of these modeling choices. It leaves the sensitivity of particular interpretations to other target reductions, context lengths, and temporal settings open.

The treatment of faithfulness addresses two benchmarks with different targets. D3 gives independent binary labels for varied, mostly longer texts. Distillation gives agreement with a teacher on the story windows. The first can reveal category errors in tasks with reference labels. The second can show whether a cheaper system reproduces the teacher in the relevant text domain. Together they leave a gap for claims about the truth of each selected answer in the fMRI study. Direct human judgments on those questions and story windows would test that part of the interpretation more closely.

The retrieval corpus is constructed from a sample of queries and their associated relevant documents. It establishes how the method behaves under that particular candidate collection and split. The reported gain for the combined system gives no measurement of its behavior in a larger corpus with different distractors. In clustering, the class labels define the groups whose compactness is measured. A favorable distance score therefore establishes better alignment with known classes. Finding the number or membership of unknown groups is a separate problem, and the experiment does not evaluate a clustering algorithm asked to solve it.

Finally, the readable coordinate labels make a specific kind of explanation possible. A reader can inspect a question, look at the answer assigned to a passage, and examine a corresponding weight or contribution to similarity. That chain refers to the constructed representation and the downstream calculation. The computation by which the answering system reached its decision remains opaque. The interpretability demonstrated in the paper is strongest when the question has a clear meaning, the answers have been checked for the relevant inputs, and the fitted relationship is evaluated within the task that gave it meaning.

### What came after

No confirmed follow-up study is available to establish how later researchers adopted or extended QA-Emb. The paper itself leaves several concrete directions open. For neuroscience, the learned maps suggest questions that could be examined with stimuli designed to vary the named properties more independently. For question generation, the authors propose letting prediction errors guide the search for missing features and investigating more direct ways to optimize a discrete question set.

The authors also discuss [retrieval-augmented generation](https://md.research.elamur.ai/free/en/concepts/retrieval-augmented-generation/) as a possible application. A question-based representation could give a system an account of which properties helped connect a query with a candidate passage, alongside the retrieval score. The reported retrieval experiment establishes a modest benefit from combining QA-Emb and BM-25 in its simplified setting. Whether readable features also improve the quality of explanations about retrieved material remains an open question.

## Cite

Cite as Vinamra Benara, Chandan Singh, John X. Morris, Richard Antonello, Ion Gabriel Stoica, Alexander G. Huth and Jianfeng Gao. 2024. Crafting Interpretable Embeddings by Asking LLMs Questions. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2405.16714](https://doi.org/10.48550/arxiv.2405.16714) · [arXiv 2405.16714](https://arxiv.org/abs/2405.16714)

```bibtex
@misc{benara2024crafting,
  title = {{Crafting Interpretable Embeddings by Asking LLMs Questions}},
  author = {Vinamra Benara, Chandan Singh, John X. Morris, Richard Antonello, Ion Gabriel Stoica, Alexander G. Huth and Jianfeng Gao},
  year = {2024},
  doi = {10.48550/arxiv.2405.16714},
  eprint = {2405.16714},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2405.16714}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
