By Alvin Lee
SMU Office of Research Governance & Administration – 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 three-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) and what Sally knows (she left the marble in the basket). By the age of four, 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 centre of AI: can Large Language Models (LLMs) truly model human perspectives, or are they merely repeating patterns? Similar to how children can see Sally’s perspective even though they know Anne had 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”. ‘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 Professor 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 behaviour 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.”
The CoSToM solution
Professor 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,” Professor 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, Professor 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’, which are sets of instructions that could be hundreds of words long that must be run at every turn of the conversation to identify the user’s emotional state and hidden beliefs. This 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 Professor Deng.
Broader impact of CoSToM
The efficiency gains created by CoSToM is a clear benefit, where 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 behaviour” in LLMs, with uses in many fields.
“For example, in digital tutoring, an AI tutor may recognise 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 healthcare 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.”
Back to Research@SMU November 2026 Issue
See More News
Want to see more of SMU Research?
Sign up for Research@SMU e-newslettter to know more about our research and research-related events!
If you would like to remove yourself from all our mailing list, please visit https://eservices.smu.edu.sg/internet/DNC/Default.aspx

