What can a hypervector tell us about a language model?
Reviewing the Hyperdimensional Probe paper to explore how it uses hypervectors to reveal language model behaviour, and what it could mean for the future of AI interpretability.
On this page
When a large language model gives a strange or wrong answer, it’s surprisingly hard to tell what actually happened inside. Did the model fail to work out the right concept, or did it form the answer inside its hidden layers and lose it on the way to picking the next word? Questions like these sit at the centre of AI interpretability, and a growing line of research is testing whether hypervectors can give us a cleaner window into what a model’s internal states contain.
A recent paper, Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architectures by Bronzini et al., puts this idea to work with a clever twist.1 In AI interpretability research, a probe is a small auxiliary model trained to read a language model’s internal activations and predict whether a specific concept is present.
Instead of predicting a single class label or number, Bronzini and his colleagues train their probe to translate a language model’s hidden state into a bipolar MAP hypervector. Once a hidden state lives in hypervector space, we can query it with standard HDC operations (binding, bundling and permutation). We can also unbind a known key, compare the result against a stored table of known word hypervectors, and see which concept surfaces.
The benefit of this approach is clearly demonstrated in a striking example from the paper. When you give a model like OLMo-2 the classical analogy prompt “king is to queen as son is to”, its favourite next token is a question mark (?), narrowly ahead of father. However, the right answer, daughter, sits down at rank 37. Looking only at the model’s output, it’s natural to conclude that the model failed to learn the analogy.
Yet when the authors translate the same hidden state into a hypervector and query it, son and daughter are sitting right there together. In this post, we’ll walk through why this happens and how the “Hyperdimensional Probe” works. We’ll look at what it reveals across six language models (working from the authors’ reported results rather than our own runs) and explore what this means for a structured HDC space in the field of AI interpretability.
Why existing interpretability tools leave a gap
AI researchers already have several tools for inspecting what happens inside a language model, so it’s worth asking why anyone would introduce hypervectors into the mix. In the paper, the authors compare their approach against three established methods, each constrained by the kind of answer it can return:2
| Approach | How it reads the hidden state | What limits the answer |
|---|---|---|
| Logit lens (direct logit attribution) | Projects an intermediate state through the model’s unembedding matrix to get next-token predictions | Answers are single tokens from the model’s vocabulary |
| Sparse autoencoder (SAE) | Learns an overcomplete sparse dictionary of features without labels | Features are unbounded and need naming before they mean anything |
| Supervised probe (this paper) | Trains a classifier or regressor from hidden states to task-specific labels | Each probe answers one predefined question |
A supervised probe is the most direct of the three methods. You freeze the language model, run prompts through it, record the internal activation vectors from selected layers, and train a small separate model to predict a known target label from those activations. If the small model succeeds reliably, the target information is already encoded somewhere in the hidden state. The catch is rigidity: a standard classifier probe only answers the single predefined question you trained it for.
The Hyperdimensional Probe keeps the same supervised setup, except its training target isn’t a class ID or a scalar score. It’s a single hypervector encoding a small structured bundle of concepts. Once the translator network is trained, we can inspect any new prompt by translating its hidden state into a hypervector and querying it in more than one way: unbinding different keys and running a nearest-neighbour cosine search against a fixed vocabulary of stored concept hypervectors. In the authors’ framing, this blends the targeted supervision of a probe with the multi-question flexibility of a sparse autoencoder, while still answering the concrete concept questions people usually ask with a logit lens.
How the probe encodes and queries an analogy
To see how the translator turns a hidden state into something we can query, let’s follow one of the paper’s currency analogies rather than a single isolated prompt. The authors start with analogies because they put concepts and relations in plain view. They draw pairs from the Google analogy test set and the Bigger Analogy Test Set (BATS), add arithmetic analogies over three-digit numbers, and combine pairs within each domain into 114,099 prompts across 52 domains.3
Take the prompt Denmark : krone = Mexico : peso. In the paper’s terms, Mexico is the key of the target pair and peso is the target; Denmark and krone form the in-context example.
Every word in the corpus gets its own random bipolar hypervector with , stored in a lookup table of 2,996 known words (which the paper calls a codebook). The probe’s training label binds each key to its value and bundles the two pairs. In our usual notation:
On the model side, the probe reads the residual stream at the prompt’s last token. Rather than pick a single layer, the authors take the upper half of the layers, cluster them with k-means into five groups, and sum the five centroids. For OLMo-2, this compresses a matrix into one 5,120-value activation vector. Then, a three-layer residual MLP of 55 to 71 million parameters maps this activation vector to 4,096 tanh outputs.
Tanh (the hyperbolic tangent) keeps each output between and , allowing it to change smoothly during training rather than jump between two fixed values. The network learns to match the target’s signs using binary cross-entropy.5 During training, the probe reads hidden states from prompts written with colons, such as Denmark : krone = Mexico : ___. At test time, the same analogy is written in words: Denmark is to krone as Mexico is to. The final token therefore changes from a colon to to, testing whether the probe can recover the answer from a differently worded prompt.
Once the translator emits for a new prompt, we can ask it questions. Binding in bipolar MAP hypervectors is exactly reversible: each hypervector is its own inverse. Binding again with therefore undoes the binding in the second pair, with noise from the other bundled pair and polarization:
Recovering peso above the noise indicates a Mexico to peso association in the translated hypervector. To look for one, several or no concepts, the authors try unbinding with individual in-context concepts and their combinations, then compare the results with stored word hypervectors by cosine similarity. Query selection uses the known target and in-context concepts, including whether the target ranks first and its similarity; detection requires a score above 0.1. Averaged across models, 80% of queries used the key alone and 12% needed no unbinding.6
Why does a random baseline score 75%?
When you first look at the paper’s training metrics, one number looks suspicious. Even when fed randomly scrambled hidden states, the baseline translator predicts 75% of the target hypervector’s signs correctly.7 Each sign is either or , so guessing between them with equal probability would get only 50% right. How does the baseline do so much better? The explanation lies in how the target hypervectors are built.
Each target bundles two bipolar hypervectors by adding them position by position. At any position, there are four equally likely combinations: two positive signs sum to , two negative signs sum to , and the two opposite-sign combinations cancel to zero, creating a tie. The sum then needs to become bipolar again. TorchHD’s MAP normalization breaks these ties by choosing : it returns only for positive sums and for everything else, including zero. Only one of the four combinations therefore becomes ; the other three become , as the figure shows.8
The figure explains the baseline’s apparent success: predicting everywhere matches three of the four equally likely cases, without using the hidden state at all. Our TorchHD check on 2,000 random targets confirmed this 75% baseline.8 The trained translators reach 92.7% accuracy.7 Their improvement over 75% measures how much they gain beyond this constant guess; comparing with 50% would also give them credit for the imbalance built into the targets.
Predicting the target hypervector’s signs is only the first step. We then need to retrieve a concept from that hypervector, as when we unbind Mexico to look for peso. Consider a position where the two bound pairs cancelled to zero in the figure. Replacing that zero with discards which pair contributed and which contributed . Unbinding cannot reconstruct that missing information, even if the translator predicts the bundled target perfectly.
As a result, unbinding a perfect target produces a noisy version of peso, with cosine similarity around 0.5 to its stored hypervector rather than 1. The reported median similarities of 0.42 for Llama 4 Scout and 0.49 for OLMo-2 are close to that reference point.9 They can still identify a concept clearly because unrelated hypervectors score near zero, below the 0.1 detection threshold.
The authors’ next comparison brings us back to the opening puzzle: can the probe retrieve the expected answer from a hidden state when the language model’s next-token prediction misses it? Understanding the encoding’s contribution to the scores lets us read that comparison more clearly.
When a model holds the answer without saying it
A wrong next token leaves an important question open: was the expected concept absent from the model’s hidden state, or did it fail to reach the output? The authors use the probe to investigate this gap across six models, from GPT-2-medium (355 million parameters) to Llama 4 Scout (109 billion).
Llama 4 Scout makes the distinction particularly clear. Its top token completes only 8% of the verbose analogies correctly, yet the probe retrieves the expected concept 87% of the time. For 76% of these prompts, the model’s top prediction is a whitespace token; the correct word sits at a median rank of 5.10 The authors interpret this as evidence that tokenization and prompt format can obscure an answer that’s available internally. Judging only the next token would miss that distinction.
Across all six models, the probe retrieves the target as its top concept for 83% of analogies on average.11 This measures diagnostic recovery under a procedure that uses the known answer to select an unbinding query. The answer is absent from the prompt used to generate the hidden state, but it guides the later search through the translated hypervector.6 The 83% therefore describes what the authors can retrieve with that guidance; answering without it would require a separate evaluation.
The probe also reports which concepts appear together. It finds both the key and target in 76% of cases on average, ranging from 60% for GPT-2 to 85% for Llama 3.1. In 12%, it finds no concept.12 This gives the authors a way to inspect the association behind an answer, beyond checking whether the output token is correct.
What the other tools reveal
The opening son and daughter example shows how different tools reveal different aspects of the same hidden state. Each tool inspects OLMo-2’s internal state through a different representation:
| Method | What it surfaces for king is to queen as son is to | What the reader learns |
|---|---|---|
| Logit lens | No recognisable concept | Projecting the state into token predictions doesn’t expose the expected association here. |
| Sparse autoencoder (SAE) | man, boy, girl, gender | The features capture the topic, but don’t identify the expected answer. |
| Hyperdimensional Probe | son and daughter | The guided query retrieves the key and expected answer together. |
The pattern extends beyond this example. Across models, the logit lens finds no concept for 29.5% of analogies. On those same prompts, the Hyperdimensional Probe retrieves the key and target 57% of the time.13 Searching a learned hypervector representation can expose associations that aren’t visible through the model’s token predictions.
A sparse autoencoder (SAE) learns to reconstruct a hidden state using only a few active features at a time, making those features easier to inspect. The SAE comparison asks how readily these features identify the expected concept. The authors train top-k SAEs on the same compressed hidden states and label their features with top logit tokens. The target appears among the ten most active features in 46% of cases, rising to 82% across the top hundred; in 43%, the top ten name nothing from the prompt.14 The authors treat this as a difference in purpose: SAEs discover features without target labels, while the probe is trained to express concepts from a predefined vocabulary.
For interpretability, the useful addition is a focused way to ask whether an expected association can be retrieved when the output misses it. The next question is where that ability comes from: how much reflects the language model’s representation, and how much did the probe learn during training? The cases where it finds nothing help the authors explore that boundary.
What did the model know, and what did the probe learn?
Retrieving an expected answer is useful for interpretability only if the result helps explain the language model. The probe is itself a trained network, so an association it retrieves could also reflect what it learned during training. The paper’s analogy experiment makes this distinction especially important: the test prompts change the wording, but reuse word pairs that appeared in the probe’s training labels.
Take the Mexico to peso example. The probe returns the expected concept, but that observation leaves two possible explanations:
| Possible explanation | What the probe’s result would mean |
|---|---|
| The language model’s hidden state represents the expected answer, peso. | The probe extracts answer-related information already present in the state. |
| The hidden state represents Mexico in a currency context, and the probe learned the pairing during training. | The probe supplies the associated answer from its own training. |
The distinction determines what the result tells us about the language model. The paper’s analogy benchmark tests whether the probe can retrieve familiar associations after a change in prompt wording and token position. Separating extraction from learned association requires controls. The authors address this with randomly permuted embeddings and unbinding with unrelated concepts; both score near 10%.15 Those results show that retrieval depends on the input and query, while leaving room to test how much it depends on familiar training pairs.
The failures raise the same question from the other direction. Across models, about 12% of prompts yield no concept.12 The rate varies sharply with the kind of analogy:
| Analogy type | Prompts yielding no concept |
|---|---|
| Morphological modifiers and verb forms | About 1% |
| Semantic hierarchies, such as limousine : car | 35% |
| Arithmetic, such as 80 : 160 | 89.5% |
These category rates average Llama 4 Scout and OLMo-2.16 The authors connect the differences to the reasoning each task demands and suggest that numeric analogies are rare in pretraining. An empty result could also mean the probe failed to extract information that was present. Interpreting the language model therefore requires testing the probe’s limitations too.
The analogy experiment examines whether expected concepts can be retrieved from a single hidden state. The paper then extends that investigation to generation: which concepts remain detectable as the model writes an answer, and which disappear?
Does the model stay focused on the question?
So far, the paper has tested the probe on word analogies such as Denmark : krone = Mexico :, looking for the missing answer before the model responds. The authors’ second experiment moves to full answers to reading-comprehension questions. Here, they ask whether concepts from the question remain detectable in the hidden state after the model finishes writing its answer.
They use SQuAD reading-comprehension questions and train separate translators for Llama 3.1 8B and GPT-2-medium.17 This time, the target hypervectors contain concepts drawn from WordNet and DBpedia, two resources that organize words and knowledge. There are no analogy pairs to bind together. Instead, the authors bundle individual concepts, for example:
The probe searches for concepts in the translated hypervector at two points: just before the first answer token and after the last. Comparing the two sets shows which concepts remain detectable and which disappear. Translating these states is harder than in the analogy experiment: the Llama translator reaches a cosine similarity of 0.53 against a null baseline of 0.24.
Which question concepts remain detectable after generation?
One Llama 3.1 example makes the comparison concrete. The question asks what laboratories try to produce hydrogen from; the expected answer is solar energy and water. Before generation, the probe finds try, produce and hydrogen, along with solar and water. After generation, it no longer finds hydrogen, but it does find energy. The model’s answer is water and heat. The authors interpret this shift as the model losing track of the original question.
Across the Llama questions, the concepts found after generation are less closely related to the question than those found before it. The average similarity to the question’s concepts falls by 4.8%, with a larger drop of 8.0% on wrong answers. Similarity to answer-related concepts changes little.
GPT-2 shows a different pattern. The probe finds concepts related to the topic but not to the specific task, both before and after generation. Correct and incorrect answers look much alike by this measure.
For Llama 3.1, the link between retaining question concepts and answering correctly is weak: the reported Spearman correlation is 0.2. Still, the probe gives the authors something concrete to inspect alongside a wrong answer. In the hydrogen example, they can compare the concepts detected before and after the response, including a question concept that never appears as a likely next token. This extends the paper’s use of HDC from finding an expected analogy answer to examining how the concepts detectable in a hidden state change during generation.
How role encoding and steering could extend the probe
Both experiments use the same HDC idea: translate a hidden state into a hypervector, then query it for concepts and associations. The target can combine several concepts without requiring a separate classifier for each question. Searching the stored concept hypervectors determines which matches are present.
We explored this pattern in What do cleanup and crosstalk mean in HDC?, where a table of hypervectors holds the valid answers for each field. A larger vocabulary, such as WordNet, could use the same lookup structure. The paper’s results suggest several ways to build on this approach. The first three below are our proposed extensions; the final one builds on the authors’ preliminary steering experiments.
Test unfamiliar associations
The earlier question about probe memorization calls for a direct test: hold out entire key-value pairs from probe training. Retrieving peso when the probe has never trained on the Mexico to peso pair would provide stronger evidence that the answer comes from the hidden state.
A complementary control, inspired by Hewitt and Liang, would assign consistent but arbitrary answers during training and compare how easily the probe learns them.18 HDC makes this straightforward: assign Mexico a different currency hypervector in the training targets, keeping the binding and bundling operations unchanged. Together, these tests would help separate extraction from associations learned by the probe.
Encode which concept plays which role
The paper’s analogy encoding captures which concepts belong together, but loses their order. Binding is commutative, so reversing Mexico and peso produces the same hypervector:
The two pairs also enter the bundle on equal terms. The encoding therefore can’t distinguish the example pair from the query pair, or the key from the value within a pair.
In Why permutation matters in HDC, we showed how to preserve this kind of structure. Here, we could label the two pairs with role hypervectors for example and query, then permute each value’s components to distinguish it from its key:
Here and are the example’s key and value, while and are the query’s. The permutation marks the value position.
To retrieve the query’s answer, unbind with:
Undoing the permutation then retrieves the value, with interference from the example pair. The target still bundles two pairs, but now its algebra distinguishes their roles. Training a probe on these targets would let researchers investigate whether the hidden state preserves those distinctions too.
Make related concepts similar
Roles describe structure; the choice of concept hypervectors determines similarity. The paper assigns each word a random hypervector, so peso and pesos are no closer than peso and monorail. In the SQuAD experiment, the authors use a separate embedding model to judge how relevant the retrieved concepts are.
An alternative is to build the lookup table from hypervectors projected from learned embeddings, as we explored in Where does meaning in a hypervector come from?. Related concepts would then have similar hypervectors, allowing the probe’s own similarity scores to distinguish near misses from unrelated answers.
The trade-off is greater interference between related concepts. Their shared structure would contribute to the match scores, so interpreting those scores would require accounting for that similarity.
Test whether a concept affects the answer
Finding a concept in a hidden state raises a further question: does the language model use it to generate its answer? Testing that requires changing the state and observing the response.
The authors take a preliminary step in this direction. Their appendix describes an encoder and decoder that translate into VSA space and back into the model’s residual stream. They use this to steer generation between languages, for example from French to Spanish, by subtracting a source-language direction and adding a target-language one.19
Applied to the analogy task, a decoder could let researchers remove the peso concept from a hidden state and check whether the completion changes. This would connect the probe’s concept queries to experiments on model behaviour, extending the paper’s investigation from what can be retrieved to what influences an answer.
What hyperdimensional probing opens up for interpretability
The Hyperdimensional Probe paper demonstrates a useful capability for model interpretability: retrieving concepts and associations from a language model’s hidden state that its next-token prediction misses. OLMo-2 predicts a question mark, yet the authors’ guided query retrieves son and daughter from the same hidden state. Their generation experiment extends that idea: comparing concepts before and after an answer reveals changes that output correctness alone doesn’t explain. Together, these experiments show how translating hidden states into hypervectors can expose associations and changes in concept content that token predictions miss.
HDC gives these investigations a common set of operations: binding represents associations, bundling combines concepts, and similarity search identifies matches within a known vocabulary. These operations give researchers a structured way to ask several questions of a translated hidden state. An engineer investigating a wrong answer could ask which relevant concepts are detectable, which associations can be retrieved, and what differs before and after generation. Each question connects an otherwise difficult-to-inspect representation to concepts the engineer can name and reason about.
Our proposed extensions build on that foundation. Role hypervectors and permutation could distinguish the roles concepts play in an association. Hypervectors derived from learned embeddings could separate near misses from unrelated answers. A decoder, building on the authors’ preliminary steering work, could let researchers alter a concept and test whether the answer changes. Alongside these extensions, held-out associations and control tasks would help establish how much the probe extracts from the language model and how much it supplies from its own training.
Going forward, we foresee a larger opportunity: a queryable interface for investigating model behaviour, organized around the concepts and relationships relevant to a task. Such an interface could help teams move from observing a wrong answer to forming and testing specific explanations for it. This is the partnership we explored in How HDC complements deep learning: neural models learn complex representations, while HDC supplies explicit structure and operations for working with a translation of them. The Hyperdimensional Probe gives that partnership a concrete starting point in AI interpretability.
Footnotes
-
Marco Bronzini, Carlo Nicolini, Bruno Lepri, Jacopo Staiano and Andrea Passerini, Hyperdimensional Probe: Decoding LLM Representations via Vector Symbolic Architectures, arXiv:2509.25045v4, October 2026; published in Transactions on Machine Learning Research. Code: github.com/Ipazia-AI/hyperprobe. ↩
-
Bronzini et al., Section 4.1 and Appendix M. Augmentation, including key and value swaps, expands the training corpus to 395,944 inputs. ↩
-
Bronzini et al., Sections 3 and 4.2. The codebook is generated with torchhd. ↩
-
Bronzini et al., Section 4.3, Section 4.4, Algorithm 1 and Appendices C and O. The loss adds a mean squared error term with weight 0.1. ↩
-
Bronzini et al., Section 4.5 and Appendix E, Table 7. The released query-selection code uses the known target’s similarity and whether it ranks first when selecting an unbinding query. ↩ ↩2
-
Our check, not the authors’. TorchHD’s MAP normalization returns +1 only for strictly positive entries, and the authors polarize every target bundle with it (hyperprobe code). Two random bipolar hypervectors tie in half the positions on average, so the expected fraction of −1 entries is 0.75. An all −1 guess therefore has expected binary accuracy 0.75 and expected cosine 0.75 − 0.25 = 0.5. The check script reports averages across 2,000 samples. We ran torchhd 5.8.4 with seed 0; the authors’ requirements don’t pin a torchhd version. ↩ ↩2
-
Bronzini et al., Appendix L, Figures 11 and 12. ↩
-
Bronzini et al., Section 5.2 and Appendix F.2. ↩
-
Bronzini et al., Section 5.2, Figure 4 and Appendix F, Table 8. ↩
-
Bronzini et al., Section 5.3, Table 3 and Appendix G.1. ↩
-
Bronzini et al., Section 5.4, Table 4 and Appendix G. ↩
-
Bronzini et al., Section 4.1, Section 7 and Appendices A and F.1. The permuted baseline reaches 8.0% probing precision at rank 1 and the unrelated baseline 9.9%. ↩
-
Bronzini et al., Table 2, averaging Llama 4 Scout and OLMo-2. ↩
-
Bronzini et al., Section 6 and Appendices J and K. ↩
-
John Hewitt and Percy Liang, Designing and Interpreting Probes with Control Tasks, EMNLP 2019. ↩
-
Bronzini et al., Appendix I.4 and Table 13. ↩