On October 8, 2026, Yale University presented research showing that large language models (LLMs) contain internal structures that bind words and numbers to the "roles" they play. A team led by R. Thomas McCoy approximated the numerical representations inside LLMs using these structures, then rewrote parts of them and confirmed that the model's output could be shifted in an intended direction. The findings were published as a preprint on arXiv on August 30, and the study does not directly compare the human brain with AI. Even so, it offers an important clue to what information AI holds internally when it understands text or does calculations, and how it uses that information.
How does an LLM tell "subject" from "object" internally?
"The cat chases the dog" and "The dog chases the cat" use the same words, yet their meanings are reversed. If the numerical representations for "cat," "dog," and "chase" were simply added together, the two sentences could not be told apart.
To grasp a sentence's meaning correctly, a model must distinguish which of the cat and the dog is the subject and which is the object. The same applies to calculation: whether 3 is placed in the numerator or the denominator gives different values from the same combination of numbers.
The approach the team adopted, Tensor Product Representation (TPR), expresses this kind of relationship between "fillers" and "roles" numerically.
In this method, elements such as words and numbers are each represented as vectors (lists of numbers), and roles such as subject and object are assigned their own separate vectors. The element and role vectors are then bound together through a tensor product, and the resulting combinations are summed. In this study, a coordinate transformation was added so that the result could be compared with the LLM's internal representations.
With this mechanism, even the same word "cat" can be treated as a different numerical representation depending on whether it appears as a subject or an object. Even if you cannot tell subject from object by looking at individual components of a vector, the vector as a whole may contain a regular structure that expresses such relationships.
The analysis method the team developed to find that structure is called "DISCOVER."
In DISCOVER, researchers first set candidate roles, such as subject, verb, and object, according to the task being analyzed. The method then trains vectors for the elements and roles so that the LLM's internal representations are reproduced as faithfully as possible.
It then uses the resulting approximation to check whether the model can still generate the correct output. A distinguishing feature is that it verifies not merely whether the internal numbers look similar, but whether the approximation can reproduce the same function as the original internal representation.
Analyzing seven LLMs, and testing the effect on output in GPT-OSS
The team first analyzed seven LLMs whose weights are publicly available, including GPT-2-XL and GPT-OSS-20b, as well as models such as Gemma, Llama, and Qwen.
The first experiment focused on the internal representation corresponding to the period at the end of an English sentence or a word list. The final token may aggregate information about the whole text read up to that point.
The team approximated this internal representation with TPR and examined whether the original text could be reconstructed from it. The reconstruction, however, was done not by the LLM itself but by a separately trained readout model.
In the following experiments, the team narrowed the target to GPT-OSS and replaced the internal vectors corresponding to the input with their TPR-based approximations. In that state, they had GPT-OSS itself generate answers and checked whether it could solve the tasks as well as when the original internal representations were used.
What was tested across the seven models was whether information about the text could be read out of the internal representations; only in GPT-OSS did the team manipulate the representations and confirm the effect on output.
Organizing the experiments in Section 5 and Sections 6–7 of the paper by target and what is verified gives the following.
| Experiment | Target and method | What it can verify |
|---|---|---|
| Analyzing end-of-sentence representations | Approximate the representation of the period in seven models with TPR, then reconstruct the original sentence or word list with a separate model | That the internal representations contain a structure from which word order and relationships can be read out |
| Replacing internal representations | Replace the representations of each token and layer corresponding to the task input in GPT-OSS with the approximations | That, on six limited tasks, the model can answer from the approximations with accuracy close to that of the original representations |
| Editing parts of internal representations | Change the bindings between fillers and roles inside GPT-OSS | That operations altering specific relationships affect the model's output |
This distinction matters.
Being able to reconstruct text from an internal representation is evidence that the model holds that information. If the model itself can still answer the same way after its internal representation is replaced, that is stronger evidence that the representation can actually be used in information processing.
However, the team did not verify behavior after modifying internal representations in all seven models.
The GPT-OSS experiments also target tasks under limited conditions rather than free-form conversation.
In arithmetic, they covered multiplication and addition of small integers; in logic, syllogisms that derive a conclusion from premises. In programming, the model was asked to predict the results of Python list operations. The language tasks were three types: converting English sentences to the passive voice, changing the tense, and converting them into questions, for a total of six tasks.
The parts replaced with approximations were the vectors corresponding to the input portions that change from task to task; the shared instructions and example portions were left as they were. The process of generating the answer was also carried out by the original GPT-OSS.
In other words, this study does not reproduce the workings of an entire LLM with a single formula. It examines how far specific information inside a model can be reproduced and manipulated with structured numerical representations.
Rewriting internal representations yields 90.3% average accuracy, but that is not the same as reasoning accuracy
The team also tested whether rewriting internal representations could change GPT-OSS's answers in an intended direction.
Consider the English sentence "The smart doctor helped the lawyer." In the original sentence, the modifier "smart" is bound to "doctor." The team removed the component binding the doctor to "smart" from the internal representation and added one binding "smart" to the lawyer instead.
The model then answered as if it had been given a sentence meaning "The doctor helped the smart lawyer."
The important point is that the input sentence itself was not rewritten. Without changing the original sentence, the numbers expressing relationships between words were manipulated inside the model.
Moreover, this operation is not as simple as flipping a single neuron. Following the structure obtained from the analysis, vectors spanning multiple tokens and layers are adjusted.
In fact, when only the positions where the target word appears were edited, swapping words worked relatively well, but operations that changed roles within the sentence saw performance drop sharply. This result suggests that information about the roles words play may be held distributed across multiple positions.
In 31 intervention experiments on GPT-OSS, an average accuracy of 90.3% was reported. The result comes from preparing 100 examples for each condition and training the analysis model five times for evaluation.
However, this 90.3% is the average proportion of cases in which, on predefined tasks, the model produced the expected correct answer after its internal representation was edited. It does not mean that GPT-OSS's reasoning ability in general reached 90.3% accuracy.
The supplementary materials contain results that make this difference clearer.
In an experiment swapping the roles of nouns in syllogisms, accuracy after the intervention was 42.2%, while the answer agreement rate with directly inputting the modified sentence reached 90.2%.
These two figures measure different things.
The 42.2% is the proportion of cases in which the model gave a logically correct answer after its internal representation was changed. The 90.2%, by contrast, is the proportion of cases in which the model gave the same answer as when the sentence the internal edit was meant to reproduce was given as ordinary input.
In fact, even when the modified sentence was entered normally, GPT-OSS's accuracy was only 52.0%.
In other words, editing internal representations may be able to reproduce the model's behavior, including the errors it originally makes.
These figures compare results for the same intervention condition, "r-noun_swap," listed in Tables 4 and 5 of Supplement S2, converted to percentages. All are averages over five evaluations using 100 examples, and the variability for both 42.2% and 90.2% is listed as ±2.6 points. This value corresponds to two standard deviations and is not a confidence interval.
The ability to manipulate internal representations to steer answers in an intended direction is strong evidence for understanding how LLMs work.
But that alone does not make the answers more accurate.
To correct a model's wrong answers, it is necessary to clarify why the model went wrong in the first place, and how the handling of information or the computational process behind the error should be fixed.
Being able to control a model's behavior and being able to generate accurate, reliable answers are separate problems.
Finding symbolic structure does not prove general reasoning ability in LLMs
This is not the first study by McCoy and colleagues to use TPR.
In a 2019 paper accepted at ICLR, the team published work approximating the internal representations of recurrent neural networks (RNNs) with TPR.
However, in the four natural-language models analyzed at the time, even representations that did not distinguish word order could approximate the internal states fairly well, and the benefit of explicitly incorporating sentence structure was limited.
This result also shows that not every neural network necessarily has the same kind of complex symbolic structure.
A 2020 BlackboxNLP paper further analyzed an RNN that converts natural-language instructions into sequences of actions, and showed that by editing its internal representations, the output could be changed as predicted.
The key advance in the new study is extending this kind of analysis to multiple models with different architectures and to modern LLMs.
It was also confirmed that, under many conditions, internal representations could be approximated even for filler–role combinations not used to train DISCOVER.
For example, the team excluded examples where a particular word is the subject from the analysis model's training and examined whether appropriate internal representations could still be built for that combination.
This suggests that the analysis model may be capturing the regularities that bind fillers to roles, rather than simply memorizing combinations seen during training.
However, what was excluded from training here was the DISCOVER analysis model; the corresponding examples were not removed from the original LLM's training data.
Therefore, this result does not prove that LLMs themselves can solve unfamiliar problems. In fact, in some tasks such as arithmetic, cases have been reported in which generalization to combinations not included in training did not work well.
Furthermore, the candidate roles DISCOVER searches over were set in advance by the researchers in this study.
In other words, even if an LLM's internal representations can be approximated along the structure the team assumed, that is not necessarily the only way to explain the model's inner workings.
Much also remains unexplained about how LLMs acquire such structures during training and what computations they use them for in actual reasoning.
The study also did not directly examine the human brain, nor did it show that AI and humans reason through the same mechanism. Determining whether a similar structure exists in the human brain would require separate experiments targeting brain activity.
The next challenge is whether the analysis method can be applied not only to experiments with limited conditions like these, but also to free-form text and complex problems.
It will also be important to determine whether, beyond identifying the internal representations involved in wrong answers, correcting that information can improve answer accuracy on problems the model is encountering for the first time.
If such verification advances, techniques for analyzing and editing the internal structure of LLMs could become a means not merely of explaining AI behavior, but of pinpointing the causes of wrong answers and building more reliable AI.
