ai newsDi., 1. Dez.

New method helps AI reason about people's beliefs without lengthy prompts

The Sally-Anne test, which measures a person's social cognitive ability to attribute false beliefs to others, is well known in the field of psychology. In essence, children are asked: Sally places a red marble inside her basket and leaves the room. While she is away, Anne takes the marble and hides

TechXploreMontag 21:40 · 30.11.5 Min. Lesezeit
Bild: TechXplore

edited by Gaby Clark, reviewed by Robert Egan

This article has been reviewed according to Science X's editorial process and policies. Editors have highlighted the following attributes while ensuring the content's credibility:

Add to Preferred Sources A negotiation scenario illustrating the gap between ToM inference and ToM-aligned behavior in LLMs. Credit: arXiv (2026). DOI: 10.48550/arxiv.2604.10031 The Sally-Anne test, which measures a person's social cognitive ability to attribute false beliefs to others, is well known in the field of psychology. In essence, children are asked: Sally places a red marble inside her basket and leaves the room. While she is away, Anne takes the marble and hides it inside a nearby box. When Sally returns, where will she look for her marble?

Most 3-year-olds might answer, "In the box," while others might say, "In the basket." Those who answer "box" struggle to separate what they know (Anne moved the marble to the box) from what Sally knows (she left the marble in the basket). By the age of 4, most kids would answer "basket," attributing a false belief to Sally while simultaneously understanding the reality of the marble being in the box.

The test, first developed by British psychologists Simon Baron-Cohen, Alan Leslie and Uta Frith, illustrates the concept of theory of mind (ToM), which lies at the center of AI: Can large language models (LLMs) truly model human perspectives, or are they merely repeating patterns? Just as children can see Sally's perspective even though they know Anne moved the marble, can LLMs understand a human user's intention without external instructions?

In his paper titled "CoSToM: Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models," SMU assistant professor of computer science Deng Yang and co-authors Mengfan Li and Xuanhua Shi at Huazhong University of Science and Technology explained that LLMs possessed "intrinsic ToM reasoning capabilities, with the corresponding mental state representation predominantly localized within the early layers." The findings are published on the arXiv preprint server.

"Early layers" in an LLM typically process the user's prompt and break down the vocabulary and basic facts, while the "middle layers" process context and weigh probabilities. The "late layers" consolidate all that and respond with the words to print on the screen.

"We wanted to know whether LLMs actually contain information about people's beliefs, desires and intentions internally, rather than simply producing the right answer when prompted," explains Deng, who conducted his experiments on Meta's Llama, Alibaba's Qwen and Mistral AI.

"We looked inside the model layer by layer and tested whether its internal representations contained enough information to recover these mental states. We found that they did, and interestingly, this information was strongest in the early layers.

"However, the signal dropped significantly in the later layers. This suggests a possible explanation for the behavior gap we observed: the model may understand what a person thinks or wants early on, but that understanding can become weakened or lost as the model moves toward generating its final response. As a result, it may not always behave in a way that reflects what it actually understood."

Deng's paper proposes the eponymous CoSToM, "a lightweight alignment framework that induces stable, human-like social reasoning via targeted activation steering, requiring updates to only a small subset of parameters in the identified ToM-critical layers."

"An 'activation' is essentially an internal signal representing what the model has understood," Deng says. "Activation steering means adjusting these internal signals to strengthen important information and guide the model's subsequent response, without explicitly telling it what to say through a prompt."

Taking the example of a business negotiation, Deng says the LLM may correctly understand that price is the customer's main concern, but this understanding can weaken as information passes through the later layers. As a result, its final response might focus on product quality or other features rather than addressing the price concern.

"In CoSToM, we steer the early layers where the understanding of mental states is strongest. In our example, we strengthen the internal representation that 'this customer is concerned about price.' This makes that understanding more likely to carry through to the later layers, so the model can naturally respond by addressing the price concern."

He adds, "In simple terms, instead of repeatedly telling the model, 'Remember that this person cares about price,' activation steering helps the model preserve and act on what it has already understood."

In this way, CoSToM removes the need for excessive "prompt scaffolding": sets of instructions that could be hundreds of words long and must be run at every turn of the conversation to identify the user's emotional state and hidden beliefs. Running those instructions raises costs and slows down information processing. "This kind of prompt scaffolding can work, but it is artificial and may not be practical in everyday interactions," adds Deng.

The efficiency gains created by CoSToM are a clear benefit: It improves LLMs' "social reasoning without fully retraining or fine-tuning the whole model, and without relying on lengthy prompt instructions every time." But the real value lies in creating a "better alignment between understanding and behavior" in LLMs, with uses in many fields.

"For example, in digital tutoring, an AI tutor may recognize that a student is confused or lacks confidence, and then adjust its explanation rather than simply repeating the same answer. In customer service or negotiation, the system could identify the user's real concern—such as price, timing or trust—and respond to that concern more directly. It could also be useful in health care or eldercare assistants, where understanding hesitation, preferences or emotional state can be important for more sensitive communication."

He concludes, "More generally, our work is relevant to any setting where AI needs to do more than just process words. The goal is to help it better connect understanding the person with responding in a socially appropriate way."

Mengfan Li et al., CoSToM: Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models, arXiv (2026). DOI: 10.48550/arxiv.2604.10031 Journal information: arXiv

MA in English, copy editor since 2021 with experience in higher education and health content. Dedicated to trustworthy science news. Full profile →

Bachelor's in mathematical biology, Master's in creative writing. Well-traveled with unique perspectives on science and language. Full profile →

Quelle: TechXplore (TechXplore). Original öffnen