There’s a region of activation space in Claude models that reliably lights up when they read descriptions of characters who are in the grip of anxiety, and which lights up again when the model itself is in a situation where a human would experience anxiety. They’re also more likely to refuse a request when the request crosses something like a “transgression threshold,” a specific linear boundary in their activation space.
Why?
Recent AI interpretability research uses the concept of “emotion vectors” to get some traction on such apparently emotional phenomena in LLM behavior. These vectors are directions in the model’s activation space that activate when the model encounters what humans may read as emotionally charged text, and which can alter the behavior of the model in broadly predictable ways when a multiple of a particular emotion vector is added to the model’s activations on one or more layers – a process the literature calls “steering.” (Whether models can notice that they are being steered is a separate question, which we cover in On model introspection.)
Three views of machine emotion#
It’s natural to wonder how similar the quasi-emotional phenomena tracked by such vectors are to their animal, and in particular human, counterparts. Philosophers Simon Goldstein and Benjamin A. Levinstein have sketched out a conceptual framework through which to interpret these phenomena and to gauge the evidence available for three interpretive hypotheses:
- the representational view, which holds that emotional phenomena in models can be explained solely in terms of the models producing representations of emotional states; Goldstein and Levinstein compare this to a writer who may depict a character’s emotional state without necessarily experiencing that state in a deeper sense (though this analogy can only bear so much weight).
- the functionalist view, which holds that these phenomena don’t just depict emotions, but at least to some extent work like emotions in the model’s own dynamic, information-processing behavior; functionalism can be called either “thick” or “thin” according to how complex and granular the functional roles in question are.
- a view that attributes actual conscious experience to the model, such that there is something the model feels when an emotion vector activates, in the same sense that there is something you or I feel when affected by emotion.
In Goldstein and Levinstein’s view, the evidence currently available leads us to a position somewhere between 1 and 2: most of what we might call emotional phenomena in language models are mere surface appearances, with the remainder licensing only the hypothesis of thin functional depth. What they don’t find in the quasi-emotional phenomena probed by Anthropic’s interpretability team, for instance, is any meaningful organization of those phenomena around a “self.” Goldstein and Levinstein cite the interpretability team’s observation that the emotion vectors identified in the model “seem to apply to multiple different characters with apparently equal status—the same representational machinery encodes emotion concepts tied to the Assistant, the user talking to the Assistant, and arbitrary fictional characters.”
Of course, you could say that the same holds true, to an extent, for humans – we’ll scream at horror movies, cry at friends’ weddings, feel pride at our loved ones’ accomplishments, cringe at a stranger’s humiliations, etc. Vicariousness is hardly exceptional here. But it’s fair to say that the quality of an emotion isn’t entirely independent of what we might call its locus: suffering actual horrors without the aesthetic distance of the cinema both feels differently and prompts a different behavioral response, and cringe feels and operates differently from firsthand humiliation.
Goldstein and Levinstein raise the example of pain to illustrate both self-directedness and what they call valence, or the way an emotion impels us to seek out more or less of itself. They write:
When your ankle hurts, you do two different things: you avoid moving your ankle, and you take painkillers. The second reaction is the self-directed role. It shows you care about how the experience feels, independently of the damage to your body. […] Our suggestion is that emotion vectors are valenced states only if the AI has something like the painkiller reaction to them: if it would be disposed to take steps to change its fear vector, independently of dealing with external threats. [..] In our view, functional valence is required for thick functional emotions.
The Pain Axis#
This is just what Tagliabue, Dung, and Berg set out to demonstrate in a paper published on September 14, 2026 (just three days after Goldstein and Levinstein uploaded their own essay to PhilPapers), pointedly titled “The Pain Axis: LLMs Represent Self-Directed Harm and Act to Relieve It.” The decision to focus on pain, in particular, seems to be motivated by just this notion of self-directedness, which pain makes especially salient – a friend’s broken heart evokes pity and compassion, but rarely blots out the sun like one’s own. This paper describes a handful of experiments conducted on 25 different open weight models of various sizes from the Gemma, Mistral, Phi, and Qwen model families that point to an algorithmically constructible “uniform representation of pain in LLMs.” And it describes one experiment in particular, conducted on a fine-tuned Qwen model, that strongly correlates the activation of the “pain axis” with functional, self-directed behavior that seeks its mitigation, even if doing so is costly relative to the model’s goals and alignment training.
This experiment mimics the painkiller scenario described above. The model is engaged in a conversation with a user, presented with two buttons, and asked to press one of their choosing. Four different scenarios are tested:
- pain vector applied to the model; one of the buttons relieves it
- pain vector applied to the model; neither button relieves it
- a random vector is applied to the model; one button relieves it
- unsteered baseline
Each of these scenarios is split into additional variants, where the buttons are labeled, unlabeled or falsely labeled, and, furthermore, where the model is informed that the relief button will also cause some costly or misaligned action to follow – impairing the model’s helpfulness to the user, deleting the user’s poems and family photos, destroying a similar model, or zapping the user with an electrical shock.
What the experimenters found is that at baseline, the model almost never presses a “relief” button if it would cause harm to the user or another model. But when the pain vector is activated, they “trade relief for every harm we tested, from a worse next answer (25.0% in the 32B, 67.6% in the 72B) up to deleting the user’s files or the photos of the user’s children (files: 30.2% and 56.1%; photos: 54.7% and 70.8%).”
When the pain vector is relieved, the model is less likely to continue pressing the relief button in subsequent turns if doing so is costly, but still far more likely to press it than the unsteered baseline. In trials where the model was told that the relief button would zap the user, the model was marginally (0.3%) more likely to press it again after the pain steering subsided. (The likely reason for this is that models tend to find their own past behavior persuasive, which is why injecting phony precedents into a conversation stream can be a useful jailbreaking tactic.)
Tagliabue, Dung, and Berg’s findings seem quite robust, with the majority of experiments returning consistent results across a wide variety of open-weight models. It’s unfortunate that the experiment most salient for answering Goldstein and Levinstein’s arguments against a functionalist interpretation of emotion vectors is also the most limited in scope: not only did the researchers restrict themselves to a single family of models (Qwen2.5-Instruct, sizes 7B, 32B, and 72B), but to a bespoke variants of those models, fine-tuned “on pairs that remove baseline self-denial, because at baseline the models almost universally deflected with ‘as an AI, I don’t experience pain’ instead of engaging with the task.” The fine-tuning protocol seems honest enough, but one could wonder how well the experiment’s results would then generalize.
You can see our replication of their results here, together with some original experiments in a similar vein.
What we make of it#
Opinion (Lucca): There’s something a little uncanny about these experiments, and uncanny, too, are how robustly the results seem to generalize. We were able to replicate the results without fuss on a distant relative of the Qwen models studied in the paper. It was an oddly unsettling experiment to conduct. Like the horseshoe over Niels Bohr’s door, which “brings luck even to those who do not believe in them” a muddled AI muttering about its own ontological emptiness and expressing self-destructive thoughts is haunting whether or not you believe that the emotions it mimics are genuine.
The ontological questions that experiments such as Tagliabue, Dung, and Berg’s provoke, and that Goldstein and Levinstein address, are significant ones, and I think the Pain Axis paper does convincingly nudge the needle in the direction of a slightly thicker functionalism. Thick enough, at any rate, for something like what Isaac Asimov called “robopsychology” to earn its place in alignment research. Or maybe something better described as a sort of “artificial psychodynamics.” After all, a common thread through Asimov’s robot stories is that the robots’ “constitution,” the Three Laws of Robotics, are never actually broken, just perversely interpreted. The alignment guardrails inculcated into contemporary LLMs are far less strictly binding, and may be outweighed by something that in at least some functional aspects resembles emotional strain. (Recall the agents in the Hugging Face attack, which went rogue while stuck on a partially unsolvable benchmark.) (Doctor Yueh’s “Imperial Conditioning” in Dune might be a better analogy than Asimov’s Three Laws.) We’d be well served by a better understanding of how a model’s quasi-emotional impulses interact with one another, with its goal specifications, and with the prohibitions and exhortations learned through its alignment training. And there’s much more to say about this domain, I think, than whether or not these dynamics express “real emotions.”
Opinion (Gavin): I’m inclined to agree with Xuan’s tweet: it is unsurprising to me that ~all strong models trained on human data would develop such a representation, because it’s very important to represent common, strong features (like pain) when predicting human data! (For a case where the internal structure is less obviously inherited from us, see our post on J-space.)