新方法让 AI 无需冗长提示即可推理他人信念

由 Gaby Clark 编辑,Robert Egan 审阅
本文已根据 Science X 的编辑流程与政策进行审阅。编辑在确保内容可信度的同时,强调了以下特征:
添加到首选来源
一个谈判场景,展示了 LLM 中心智理论(ToM)推理与与 ToM 对齐的行为之间的差距。来源:arXiv (2026)。DOI: 10.48550/arxiv.2604.10031
Sally-Anne 测试用于衡量一个人将错误信念归因于他人的社会认知能力,在心理学领域广为人知。本质上,孩子们会被问到:Sally 把一颗红色弹珠放进她的篮子里,然后离开了房间。她离开期间,Anne 拿走弹珠,把它藏到附近的一个盒子里。当 Sally 回来时,她会去哪里找她的弹珠?
大多数 3 岁儿童可能会回答“在盒子里”,而另一些可能会说“在篮子里”。那些回答“盒子”的孩子难以区分他们所知道的事情(Anne 把弹珠移到了盒子里)和 Sally 所知道的事情(她把弹珠留在了篮子里)。到 4 岁时,大多数孩子会回答“篮子”,既把错误信念归因给 Sally,又同时理解弹珠实际在盒子里这一现实。
该测试最初由英国心理学家 Simon Baron-Cohen、Alan Leslie 和 Uta Frith 开发,它阐释了心智理论(ToM)的概念,而这一概念处于 AI 的核心:大型语言模型(LLM)能否真正模拟人类视角,还是仅仅在重复模式?正如儿童即使知道 Anne 移动了弹珠,也能理解 Sally 的视角一样,LLM 能否在没有外部指令的情况下理解人类用户的意图?
在新加坡管理大学(SMU)计算机科学助理教授 Deng Yang 与华中科技大学的合著者 Mengfan Li、Xuanhua Shi 共同撰写的论文《CoSToM: Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models》中,他们解释道,LLM 具备"内在的心智理论(ToM)推理能力,相应的心理状态表征主要定位于浅层"。该研究结果发表在 arXiv 预印本服务器上。
LLM 中的"浅层"通常负责处理用户的提示,并分解词汇和基本事实,而"中间层"负责处理上下文并权衡概率。"深层"则整合所有这一切,并输出要显示在屏幕上的文字。
"我们想知道,LLM 内部是否真的包含关于人们信念、欲望和意图的信息,而不只是在被提示时给出正确答案,"Deng 解释道。他的实验是在 Meta 的 Llama、阿里巴巴的 Qwen 和 Mistral AI 上进行的。
"我们逐层观察模型内部,测试其内部表征是否包含足够的信息来还原这些心理状态。我们发现确实如此,而且有趣的是,这些信息在浅层中最为强烈。
"然而,在更靠后的层中,这一信号显著下降。这或许可以解释我们观察到的行为差距:模型可能在早期就理解了某个人的想法或意图,但随着模型走向生成最终回答,这种理解可能被削弱或丢失。因此,它的行为并不总能反映出它实际理解的内容。"
邓的论文提出了同名方法 CoSToM,“一个轻量级对齐框架,通过定向激活引导来诱发稳定、类人的社会推理能力,只需更新所识别出的 ToM 关键层中一小部分参数。”
“所谓‘激活’,本质上是代表模型已理解内容的内部信号,”邓说。“激活引导意味着调整这些内部信号,以强化重要信息并引导模型后续的回应,而不必通过提示词明确告诉它该说什么。”
以商务谈判为例,邓表示,LLM 可能正确理解价格是客户最关心的问题,但随着信息流经后续各层,这一理解可能会减弱。结果,它的最终回应可能会聚焦于产品质量或其他特性,而不是回应价格方面的关切。
“在 CoSToM 中,我们引导的是对心理状态理解最强的早期层。在我们的例子里,我们强化‘这位客户关心价格’这一内部表征。这使该理解更有可能传递到后续各层,因此模型可以自然地围绕价格关切作出回应。”
他补充说:“简单来说,激活引导不是反复告诉模型‘记住这个人很在意价格’,而是帮助模型保留并基于它已经理解的内容采取行动。”
通过这种方式,CoSToM 消除了对过多“提示词脚手架”的需求:这类指令集可能长达数百词,并且必须在对话的每一轮运行,以识别用户的情绪状态和隐藏信念。运行这些指令会提高成本并拖慢信息处理速度。“这类提示词脚手架可以奏效,但它是人为的,在日常互动中可能并不实用,”Deng 补充道。
CoSToM 的更广泛影响
CoSToM 带来的效率提升是一个明显好处:它提升了 LLM 的“社会推理”能力,而且无需完全重新训练或微调整个模型,也无需每次都依赖冗长的提示指令。但真正的价值在于在 LLM 中建立“理解与行为之间更好的对齐”,并在许多领域具有用途。
“例如,在数字辅导中,AI 辅导老师可能识别出学生感到困惑或缺乏信心,然后调整自己的解释,而不是简单地重复同一个答案。在客户服务或谈判中,系统可以识别用户真正关心的问题——比如价格、时机或信任——并更直接地回应这一关切。它在医疗保健或养老护理助手中也可能有用,在这些场景中,理解犹豫、偏好或情绪状态对于更敏感的沟通可能很重要。”
他总结道:“更广泛地说,我们的工作适用于任何 AI 需要做的不仅仅是处理文字的场景。目标是帮助它更好地将理解这个人同以符合社交规范的方式作出回应联系起来。”
Mengfan Li 等,CoSToM: Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models,arXiv (2026)。DOI: 10.48550/arxiv.2604.10031
期刊信息:arXiv
这个故事背后是谁?
英语硕士学位,自2021年起担任文字编辑,拥有高等教育和健康内容方面的经验。致力于可信赖的科学新闻。完整简介 →
数学与生物学学士学位,创意写作硕士学位。游历广泛,对科学与语言有独到见解。完整简介 →
引用:新方法帮助AI无需冗长提示即可推理人们的信念(2026年11月30日),2026年11月30日检索自 https://techxplore.com/news/2026-11-method-ai-people-beliefs-lengthy.html
本文件受版权保护。除为私人学习或研究目的的合理使用外,未经书面许可,不得复制任何部分。内容仅供参考。
“神经元冻结”技术可阻止大语言模型向用户提供不安全的回答
揭示隐藏在大语言模型中的偏见、情绪、个性与抽象概念
新神经框架可使大语言模型更具同理心
读心者:大语言模型如何编码心理理论
当被告知正受到监视时,AI 模型可能会给出不同的回答
物理引导的 AI 帮助 6G 网络在同一频段上训练模型并服务用户
热激活生物技术可自适应贴合有皱纹和粗糙的皮肤
牛磺酸有助于钙钛矿太阳能电池在实验室测试中寿命达到原来的五倍以上
新型存储技术有望让端侧 AI 更快,而无需将数据发送到云端
激发机器人中的狼性:自然运动揭示如何更省力地移动
AI 被用于智胜国家行为体的互联网审查
获取即时摘要文本(Gist)
有关信念、欲望和意图的信息最容易从所测试语言模型的早期层中被解码出来,而在较晚的层中则有所减弱。CoSToM 对选定早期层中的激活进行引导,从而提升心理理论任务的性能,且无需冗长提示或对整个模型进行微调。
本摘要由 LLM 自动生成。完整免责声明
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(New method helps AI reason about people's beliefs without lengthy prompts)
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.
Broader impact of CoSToM
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
Who's behind this story?
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 →
Citation: New method helps AI reason about people's beliefs without lengthy prompts (2026, November 30) retrieved 30 November 2026 from https://techxplore.com/news/2026-11-method-ai-people-beliefs-lengthy.html
This document is subject to copyright. Apart from any fair dealing for the purpose of private study or research, no part may be reproduced without the written permission. The content is provided for information purposes only.
'Neuron-freezing' technique can stop LLMs from giving users unsafe responses
Exposing biases, moods, personalities and abstract concepts hidden in large language models
New neural framework could make LLMs more empathetic
Mind readers: How large language models encode theory-of-mind
AI models can answer differently when told they are being watched
Physics-guided AI helps 6G networks train models and serve users on the same airwaves
Heat-activated biotech molds itself to wrinkled and rough skin
Taurine helps perovskite solar cells last more than five times as long in lab tests
New storage technology could make on-device AI faster without sending data to the cloud
Bringing out the wolf in a robot: Natural motions reveal how to move with less effort
AI used to outsmart nation-state internet censorship
Get Instant Summarized Text (Gist)
Information about beliefs, desires, and intentions was most readily decoded from early layers of the tested language models and weakened in later layers. CoSToM steered activations in selected early layers to improve theory-of-mind task performance without lengthy prompts or full-model fine-tuning.
This summary was automatically generated using LLM. Full disclaimer
This site uses cookies to assist with navigation, analyse your use of our services, collect data for ads personalisation and provide content from third parties. By using our site, you acknowledge that you have read and understand our Privacy Policy and Terms of Use.
原文为英文,正文由自动抓取并保留原文。
原文发布于 TechXplore(New method helps AI reason about people's beliefs without lengthy prompts),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。
