The AI Psychology Project

Primer · 14 October 2026

Inside the Language Model: A Primer on Transformers and Their Measurement for Psychologists

Saskia Bruyn

Read the paper (PDF) doi:10.5281/zenodo.23360914

In plain words

More and more psychology about language models uses results from inside the model: layers, hidden states, probes. Those results are usually written for computer scientists. This primer explains how a language model is built and how we can look inside it, in plain language, with examples from our own studies. You don't need any math beyond school. If you're a psychologist who wants to follow this work, and judge it, start here.

Abstract

Psychologists who study language models increasingly meet results from inside the model: hidden states, layers, probes, lenses, patching. These results are usually written for readers trained in machine learning. This primer explains how a transformer language model is built and how its inner activity is measured, in plain language and with no mathematics beyond school level. Each concept is illustrated, where possible, with an example from our own studies of meaning reorganization. The aim: a reader trained in psychology can follow mechanistic work, judge what it can and cannot show, and enjoy it.

← All publications