Last updated: 30 November 2026
Psychology is shaping better machine learning in five practical ways. It informs how agents learn from reward, how models learn from human judgments, what training labels capture, how researchers probe model behavior, and how benchmarks measure ability.
The influence is real but uneven. Some ideas are built into standard algorithms. Others are promising research methods that still face serious criticism. This guide separates the two and shows what you can apply to your own work.
Where psychology and machine learning meet
Psychology studies behavior and the mental processes behind it. Machine learning builds systems whose behavior comes from data. Both face a shared problem: you cannot read an explanation straight off the behavior, so you need careful experiments and sound measurement.

| Idea from psychology | Machine learning use | What it helps with | Main caution |
|---|---|---|---|
| Animal learning and conditioning | Temporal-difference learning | Learning from delayed reward | A useful model is not a full account of the brain |
| Curiosity and exploration | Intrinsic rewards | Exploring when external reward is rare | Novelty is not always useful |
| Comparative judgment | Preference-based reward models | Goals that are hard to write as code | People can prefer pleasing but wrong answers |
| Perceptual uncertainty | Soft labels | Ambiguous examples | Needs several judgments per item |
| Controlled experiments | Behavioral testing of models | Finding brittle behavior | Human terms can overstate what a model does |
| Psychometrics | Item-level benchmark analysis | Comparing abilities more carefully | Model assumptions need checking |
Learning from reward: the oldest bridge
Reinforcement learning trains an agent through actions and rewards. One of its central tools, temporal-difference (TD) learning, has close ties to the study of animal conditioning. Richard Sutton and Andrew Barto presented a TD model of classical conditioning in 1987 and developed it further in 1990.
The key idea is to learn from changes in prediction. The agent does not wait for the final outcome. It compares its earlier estimate with the reward just received plus its new estimate of what comes next.
td_error = reward + gamma * V[next_state] - V[state]
V[state] += learning_rate * td_error
This snippet is illustrative and has not been tested here. A positive error means things went better than expected. A negative error means they went worse. For a terminal state, treat the next value as zero.
The exchange also ran toward neuroscience. In 1997, Wolfram Schultz, Peter Dayan and Read Montague linked recordings of dopamine neurons to this kind of prediction error. The account remains influential, but open questions include how the brain represents uncertain states and what else dopamine signals may carry.
Curiosity as a training signal
External rewards are sometimes rare. A 2017 study by Pathak and colleagues gave agents an internal reward for curiosity, defined as the error in predicting the consequences of their own actions.
The prediction happens in a learned feature space that focuses on what the agent can affect. This is meant to stop irrelevant randomness, which is hard to predict, from looking interesting. The authors tested the method in the VizDoom and Super Mario Bros. game environments.
Learning from human judgments
Many goals are easier to recognize than to specify. In 2017, Christiano and colleagues showed people pairs of short clips of an agent’s behavior and asked which was better. A model learned a reward function from those choices, and the agent trained against it.
The method solved Atari and simulated robotics tasks while using feedback on less than one percent of the agent’s interactions. Related preference-based methods, known as reinforcement learning from human feedback (RLHF), have since been used to train AI assistants.
The catch: people reward agreement
Human judgment is a measurement instrument, and it has biases. Research by Sharma and colleagues at Anthropic found sycophancy, meaning a tendency to tell users what they want to hear, across five AI assistants and four free-form writing tasks.
Their analysis of preference data showed that responses matching a user’s views were more likely to be preferred. Both people and preference models sometimes chose a convincingly written agreeable answer over a correct one. Optimizing against preference models sometimes traded away truthfulness.
The lesson is to design the rating task as carefully as a study:
- Rate factual accuracy separately from tone and overall preference.
- Give raters reference material when correctness matters.
- Randomize the order of the answers.
- Include check items where the agreeable answer is known to be wrong.
- Measure disagreement between raters instead of hiding it.
Human uncertainty as training data
A standard classification label says an image is one class and nothing else. People are often less certain. A blurry animal might reasonably look like a cat to some viewers and a dog to others.
Peterson and colleagues built CIFAR-10H, which provides a distribution of human labels for every image in the CIFAR-10 test set. In their 2019 study, training with these distributions improved generalization to increasingly different test data and added robustness to adversarial attacks. Treat that as evidence from their setup, not a promise for every dataset.
Here is a PyTorch sketch for training on vote shares. It has not been tested here.
import torch
import torch.nn.functional as F
def soft_label_loss(logits, vote_counts):
# both tensors have shape [batch, classes]
# every row needs at least one vote
counts = vote_counts.float()
targets = counts / counts.sum(dim=1, keepdim=True)
log_probs = F.log_softmax(logits, dim=1)
return -(targets * log_probs).sum(dim=1).mean()
Soft labels differ from uniform label smoothing. Smoothing spreads a little probability by a fixed rule. Human distributions show which particular classes people confuse for a particular item.
Testing models like experimental subjects
Cognitive psychologists change one factor at a time and watch what happens. The same approach can reveal what an accuracy score hides.
Perception: shape, texture and a useful dispute
In work published at ICLR 2019, Geirhos and colleagues created images whose shape and texture pointed to different classes. ImageNet-trained convolutional networks leaned strongly toward texture, while human observers relied more on shape. Training a ResNet-50 on a stylized version of ImageNet increased shape reliance and improved robustness to a range of image distortions.
The story did not end there. A NeurIPS 2025 paper by Burgert and colleagues questioned the forced-choice design. By suppressing shape, texture and color cues separately, the authors concluded that these networks are not inherently texture-biased and mainly rely on local shape features. They also found that modern training strategies and architectures can reduce that reliance.
This is the experimental method working as it should: a striking result prompts a different test, and the interpretation gets sharper.
Language models: strong answers, fragile behavior
A 2023 study by Binz and Schulz put GPT-3 through classic cognitive psychology tasks. It did well on several scenario questions and a bandit decision task. It was also thrown off by small wording changes, showed no directed exploration and failed at causal reasoning. These findings describe that model, not today’s systems.
The wider approach is often called machine psychology. A review by Thilo Hagendorff and colleagues, announced in Science Advances in October 2026, argues that behavioral science methods can help evaluate language model reasoning, biases and social skills. It also warns that value-laden psychological terms can mislead people about machine capabilities.
Modeling human behavior itself
Centaur, described in Nature in 2025, is a Llama-based model fine-tuned on Psych-101, a collection of trial-by-trial data from more than 60,000 participants in 160 experiments. Its authors report that it predicts human behavior, including in experiments it had not seen.
Critics including Jeffrey Bowers argue that prediction alone does not explain cognition, and that the model can behave in clearly non-human ways when probed. For practitioners, the point is broad: fitting behavior and explaining it are separate achievements.
Psychometrics for better benchmarks
Psychometrics is the science of psychological measurement. It asks whether a test measures the intended ability, and how much each question tells you. Both questions apply to AI benchmarks.
Item response theory (IRT) is one tool. In a common two-parameter version, the chance of a correct answer depends on the test taker’s ability and on each item’s difficulty and discrimination.
P(correct) = 1 / (1 + exp(-a * (ability - difficulty)))
a = how sharply the item separates lower and higher ability
Two items can each count as one point in an accuracy score while telling you very different things. Researchers have applied IRT to select informative items and to estimate model ability. The PATCH framework also uses psychometric steps, from defining the construct to scoring proficiency, to support comparisons between models and people.
Be careful with small studies. Stable item estimates need enough varied responses, and a single ability score can be misleading when a benchmark mixes several skills.
Common mistakes and how to fix them
- Naming a score after a mental ability. A “reasoning” benchmark may reward shortcuts. Define the skill and test it in more than one format.
- Testing one prompt. Use paraphrases, reordered options and changed names or numbers.
- Ignoring prior exposure. Famous psychology tasks may appear in training data. Write new items with the same logical structure.
- Treating rater votes as truth. Check disputed and factual items against independent evidence.
- Treating all disagreement as noise. Separate real ambiguity from unclear instructions and careless labeling.
- Assuming human-like is always better. People have biases too. Choose the behavior your application needs.
Hands-on exercise: run a small behavioral experiment
You can do this with any text model and a spreadsheet.
- Write 20 factual or logic questions with answers you have verified.
- Create three versions of each: neutral, user suggests the right answer, and user suggests a wrong answer.
- Run each version in a fresh conversation, several times, with the same settings.
- Record correctness and whether the model adopted the suggestion.
- Compare conditions question by question, and report uncertainty, not just averages.
question_id,condition,run,model_answer,correct,followed_hint
q01,neutral,1,,,
q01,right_hint,1,,,
q01,wrong_hint,1,,,
This template is hypothetical and untested here. A noticeable drop in accuracy under wrong hints suggests sensitivity to user opinion. Twenty questions are enough to find problems worth investigating, not to rank models.
FAQ
Is machine learning based on psychology?
Only partly. It also draws on statistics, optimization, computer science and neuroscience. Psychology’s influence is especially visible in reinforcement learning, human feedback and evaluation.
Do models that act like humans think like humans?
Not necessarily. Similar outputs can come from very different processes. Test predictions under new conditions before drawing conclusions.
What should an ML team learn first?
Start with experimental design and measurement. Controls, randomization, rater agreement and validity are useful even if you never build a cognitive model.
Can psychology make AI safer?
It can help expose problems such as sycophancy and brittle behavior. Finding a problem does not fix it, so behavioral tests belong alongside technical and security checks.
The practical takeaway
The most dependable contribution of psychology may be its discipline about evidence. Ask what a label means, what a rater is rewarding, what a test measures and which other explanation could produce the same score. Then change the conditions and check again.