Abstract
Animacy—the distinction between sentient beings and inanimate objects—is fundamental to cognitive processing. While humans learn about animacy through multi-modal experiences, transformer language models (LMs) are trained exclusively on text. This study investigates whether LMs can learn deep semantic nuances of animacy from linguistic selectional constraints alone. We find that LMs not only respect typical animacy constraints but also dynamically adapt to atypical scenarios, such as a "peanut in love." Even minimal context can shift LM expectations, suggesting a sophisticated sensitivity to lexical semantic nuances in English.
Introduction
Animacy influences how humans perceive, remember, and talk about the world. In English, animacy is often encoded indirectly through selectional constraints—verbs like "think" or "love" typically require animate subjects. This raises a question: can LMs, lacking physical grounding, develop a flexible "world model" of animacy? We test this by treating LMs as psycholinguistic subjects, using surprisal (negative log probability) as a proxy for cognitive effort, analogous to the N400 brain response observed in human electrophysiology.
Typical Animacy Processing
Initial evaluations using the BLiMP (Benchmark of Linguistic Minimal Pairs) dataset show that LMs are highly sensitive to standard animacy constraints. Models consistently achieve over 80% accuracy in preferring sentences like "Naomi cleaned a fork" over "That book cleaned a fork," often outperforming non-expert human annotators. This establishes a baseline: LMs successfully internalize the typical distribution of animacy in language.
Dynamic Adaptation to Atypical Scenarios
A more rigorous test is whether LMs can adapt when the "rules" of the world change—for instance, in a story about a talking object. Replicating landmark human ERP experiments, we measured how LM surprisal evolves over the course of a narrative featuring atypically animate entities.
As shown in Figure 2, LMs are initially highly surprised by inanimate objects behaving animately (t1). However, surprisal drops precipitously by the third (t3) and fifth (t5) mentions. For larger models like LLaMA-30B, the statistical difference between animate and inanimate surprisal eventually disappears, mirroring the rapid adaptation observed in the human brain when processing fictional or metaphorical contexts.
The Power of Minimal Context
LMs do not require long narratives to shift their expectations. In a "low-context" experiment, we found that a single animate-selecting verb (e.g., "The chair spoke...") is sufficient to reorient the model's predictions toward animate continuations.
Figure 5 demonstrates that after an animate-selecting verb, the surprisal for an animate continuation is significantly lower than for an inanimate one. This "distributional flip" occurs even without prior context, indicating that LMs use local lexical cues to dynamically update their internal state regarding an entity's animacy status.
Conclusion
Transformer LMs demonstrate a remarkable ability to process animacy despite the lack of sensory grounding. They move beyond static word associations, exhibiting human-like flexibility in adapting to atypical contexts and responding to subtle linguistic cues. While scaling improves the magnitude of this adaptation, the fundamental capacity to track animacy is a robust feature of modern LMs. Future research into the internal mechanisms of these models may reveal how they represent these abstract semantic categories at a circuit level.
Summary updated