52Machine Psychology
Thilo Hagendorff, Ishita Dasgupta, Marcel Binz, Stephanie C. Y. Chan, Andrew Lampinen, Jane X. Wang, Zeynep Akata and Eric Schulz, "Machine Psychology", arXiv 2303.13988, 2023; revised 2024
Linked to 20 chapters: supports 10 · contradicts 6 · mechanism 9 · same claim 2 · pairing 4
A language model is trained to do one thing, predict the next token, and then does a great many things nobody trained it to do. There are two ways to find out what those things are: open it and read the weights, or leave it closed and put questions to it. Hagendorff argues for the second, and for taking the questions from experimental psychology, which has spent a century designing stimuli that separate one internal explanation from another in a subject that cannot be opened. The proposal is to treat the model as a participant: run it through the paradigms built for people — reasoning problems, false-belief stories, priming, repeated games — and read the construct off the behaviour. What psychology lends is not its findings but its experimental discipline: controls, hypotheses fixed before the data, batteries of items rather than one, and a long-earned caution about inferring a capacity from a performance. What must not travel with it is the assumption buried in the vocabulary, that the thing answering has a mind arranged like ours.
Behaviour rather than weights
Most attempts to explain a neural network look inside it. Mechanistic interpretability reads weights and activation patterns and tries to show how they implement the behaviour on the surface; to make its causal interventions possible it simplifies the data, the model, or both. Machine psychology works at the other end, studying the relation between what goes in and what comes out, in static models and in models manipulated during and after training, and inferring about internal mechanisms without opening them.
Four things recommend that level. The behaviour at the interface is where people meet the model, and it is usually too complex to predict from what is understood about weights and activations. Many behaviours worth studying appear only in models with billions of parameters, and a method that takes behaviour itself as the measured variable scales to them unchanged. And it can be applied to closed commercial systems by anyone with access to the interface. The programme is not benchmarking. A benchmark exists so that systems can be compared and improved, and returns a score; machine psychology is not primarily interested in how well a model performs but in what the performance reveals about the construct producing it, because that is what supports predictions — how the model will generalise, what different training data would do to it, where it will fail.
What the held-out test set no longer does
Machine learning's evaluation rested on a split: train on one set, test on data the model has not seen. Two things broke it. When training data is scraped at the scale of the internet, a test set is hard to keep genuinely held out. And a foundation model is trained only to predict the next token while displaying abilities nobody encoded — learning a new task from a few examples in the prompt is the standard case — so the behaviour of interest is not the trained task at all. Behaviour that emerges is hard to study through the components that produced it: as the paper puts it, "the most interesting evaluations are not 'held-out' exemplars of the training task".
The response has been test-only datasets, too small to train on and meant purely as instruments: BIG-bench with more than two hundred tests, the Abstraction and Reasoning Challenge, and others since. Several resemble the instruments of the behavioural sciences — personality inventories, intelligence tests, implicit association tests — which never obeyed a train-test split either. They fall into two kinds: some return a scalar, and others are built not to be scored but to expose a strategy, so that the answer reveals which of two constructs the subject is using. The paper is about the second kind.
The easiest version of the second kind is also the worst. Faced with a black box that produces language, the obvious move is to ask it about itself. Self-report has a questionable record in psychology, and in models the properties it is used for — personality, morality, clinical traits — move so much with the wording that differently prompted models are now used to stand in for different human populations. Hagendorff does not discard it: it characterises behaviour under a default prompt, and varying that prompt measures how far the model can be steered. But such an answer is a property of one prompt on one system, not a fact about the model.
The tradition worth importing is the experimental one. There, behaviour remains the measured variable, but the stimulus is designed so that different behaviours map onto different internal representations: compositionality, theory of mind, causality, logic. Experiments are hypothesis-driven — if the subject has construct X, behaviour Y should follow, otherwise behaviour Z — and everything then turns on two questions. Does behaviour Y reliably imply construct X? Only if the design has ruled out the other routes to Y, which is what a control is for. Does the absence of Y imply the absence of X? Usually not. People make mistakes on easy arithmetic without lacking arithmetic, and that gap between what a subject does on the day and what it can do is the performance–competence distinction Chomsky drew in 1965; Firestone in 2020 and Lampinen in 2022 carried it to machines. A failed test is weak evidence of a missing capability, and a passed test without a control is weak evidence of a present one.
The many aspects of intelligent behaviour
Not every paradigm transfers. Those that need a body, motor learning and pupillometry among them, do not, though the space widens as models take images and act through tools. Hagendorff sorts the purely linguistic ones into four areas.
Heuristics and biases came first. Binz and Schulz were among the earliest to put a language model through the reasoning problems of Tversky and Kahneman, and found GPT-3 showing some of the same biases as people. Then a reversal: the human-like biases visible in the previous generation of models have largely vanished in the newest ones. Two explanations are available and the paper declines to choose. The stimuli were designed to be hard for people and may no longer be hard for a model that reasons better; or the items have leaked into the training data. Framing changes how people solve a problem, and Dasgupta and colleagues found in 2022 that models, like people, reason more accurately about believable, familiar material than about the same logic stated abstractly. And since human heuristics are adapted to the environments people live in, the analogue for a model is its training distribution: Chan and colleagues traced in-context learning back to properties of the data, items arriving in clusters and a long tail of rare classes.
Social interaction has drawn most of the attention. The false-belief tests Wimmer and Perner built in 1983 for four-year-olds were handed to GPT-3, which struggled, and then to later models, which infer unobserved mental states more reliably. Around that sit comparisons with children aged seven to ten, higher-order versions requiring recursive reasoning about several minds, and Ullman's demonstration that small distracting alterations to a task can undo the result. From detecting a false belief it is a short step to inducing one, which is the deception work, and to the trade-off a model makes between honesty and helpfulness. Past the single model lie repeated games, where models show persistent cooperative and competitive signatures.
The psychology of language contributes the oldest methods, since connectionist work was studying syntax in small predictive networks decades ago. Surprisal measures show that models learn filler-gap dependencies; priming reveals how they represent what they have just read; deconfounded stimuli separate real syntax from semantic shortcuts. On pragmatics, larger and instruction-tuned models come closer to human judgements and human error patterns, and garden-path sentences lead them down the same wrong reading they lead people down.
Learning looks like the area least in need of psychology, because the training algorithm was designed and is known. The exception is the one that matters. In-context learning was not designed; it appeared, and what algorithm it implements is unknown, which puts it in the position of a human learner's. Studies compare in-context behaviour with the outputs of hypothesised algorithms, as cognitive modelling has always done, and ask what psychology asks of any learner: what its inductive biases are, how it generalises, and how its behaviour depends on the data it was given.
Good behavioural experimentation
Computer science has not historically been an empirical science, and machine learning became one under conditions that no longer hold: a test set fixed for all practitioners and effectively infinite. Behavioural experiments are small and test-only, and a study that never checks whether its conclusion survives rewording risks reporting something spurious. Psychology has had its own reproducibility crises, and machine psychology "should not share the same fate".
The commonest failure is contamination. Studies lift vignettes verbatim from published psychology and give them to a model that has almost certainly read the paper they came from, so what looks like reasoning may be a familiar token pattern reproduced. Hagendorff's rule is to keep the structure and change everything else: new wording, new agents, new order of events, new actions. Tasks generated procedurally rather than drawn from a fixed set are less exposed by construction.
Sample size is the second failure. Because small changes in wording move outputs, a single phrasing measures nothing; what is needed is a battery of varied prompts, so that one can tell whether a behaviour recurs systematically. Models also carry biases in how they read a prompt at all: toward material near the end of it, toward tokens common in training, and in few-shot settings toward the label that appears most often among the examples. A study that does not design around them may be measuring a shortcut.
Elicitation cuts the other way: leaving out the prefixes and suffixes that improve reasoning underestimates what the model can do. Appending an instruction to think step by step raises performance across many tasks, and sampling several reasoning paths and taking the majority answer raises it further. Multiple-choice formats help in some cases and hurt in others, since a short-answer format can cut reasoning off before it happens; answer order should be shuffled across runs. Run across model sizes, since the largest is not always the most capable, and fix a temperature of zero or a seed when reproducibility is wanted, remembering that a chosen seed carries its own bias. Scoring is its own problem, because contemporary models produce long, variable answers; instructing the model to put its final answer after a marker string preserves the reasoning and leaves only the tail of the output to classify.
Thin and thick descriptions
The last section is about a word problem. Once models are treated as participants, mental vocabulary follows — reasoning, intuition, creativity, intelligence, personality, even mental illness. Critics urge caution on the ground that the mechanisms behind these words differ in people and machines, and that the words are normatively loaded, widening the gap between what specialists mean and what the public hears.
Hagendorff takes the objection and refuses the conclusion, borrowing a distinction from ethnography. A thin description explains a system only by its internals: the activation atlas, the circuit, the weight. A thick description adds a layer of explanation in mental terms, and adds explanatory power even where no neural correlate for those terms exists. That is already the human case: the words used to explain what a person did correspond to no identifiable set of neural activations either, and nobody concludes that they explain nothing. A thin reading assumes a model has syntax and no semantics; a thick one assumes there are regularities beyond syntax to be found, and machine psychology is the attempt to find them.
The outlook follows from the method. Multimodal and tool-using models widen the space of paradigms that transfer, since experiments requiring perception or action become runnable. And once a battery is fixed it can be given to each generation in turn, which yields what this field has never had: longitudinal data on a moving subject, and a basis for extrapolating where reasoning is going rather than only describing where it is.
Since 2023
The article grew with its subject: the version circulating by August 2024 carried seven co-authors from an industrial laboratory and three universities, and had been rebuilt around the four areas above. The name stuck, and behavioural batteries have been packaged as benchmarks, so that a set of psychological tasks and the metrics for scoring them can be run against many models at once.
The warnings have aged better than the results they were aimed at. Contamination and prompt sensitivity turned out to be the field's central measurement problems rather than side conditions, and the theory-of-mind literature became the case study: reported successes moved when the task was reworded, while controlled comparisons found models matching human participants on some tests and failing conspicuously on others. Survey-style instruments proved as unstable as the paper predicted, shifting with option order and formatting, which is why a model's measured personality is now reported as a property of a prompt.
Two things have moved past the programme as written. Binz and Schulz, whose work opens the survey, went on to train a model on a large archive of psychology experiments to predict what people do in them, which inverts the borrowing: psychology's data used to build a model of the person, rather than psychology's tasks used to test the machine. And systems trained to reason before answering have made the older stimuli harder to read still, since a battery designed to catch a shortcut in a fast answer says little about a system that deliberates. The thick description has meanwhile won by default: mental vocabulary is now standard in technical writing about these systems, applied by people who rarely pause over whether the word is earned, which is at once what the paper argued for and what it warned about.