Language models have made significant progress in generating coherent text and predicting next tokens based on input prompts. This study compares the next-token prediction performance of two well-known models: OpenAI's GPT-2 and Meta's Llama-2-7b-chat-hf on Theory of Mind (ToM) tasks. To evaluate their capabilities, we built a dataset from 10 short stories sourced from the Explore ToM Dataset. We enhanced these stories by programmatically inserting additional sentences (infills) using GPT-4, creating variations that introduce different levels of contextual complexity. This setup enables analysis of how increasing context affects model performance. We tested both models under four temperature settings (0.01, 0.5, 1.0, 2.0) and evaluated their ability to predict the next token across three reasoning levels. Zero-order reasoning involves tracking the state, either current (ground truth) or past (memory). First-order reasoning concerns understanding another's mental state (e.g., "Does Anne know the apple is salted?"). Second-order reasoning adds recursion (e.g., "Does Anne think that Charles knows the apple is salted?").
Our results show that adding more infill sentences slightly reduces prediction accuracy, as added context increases complexity and ambiguity. Llama-2 consistently outperforms GPT-2 in prediction accuracy, especially at lower temperatures, demonstrating greater confidence in selecting the most probable token. As reasoning complexity rises, model responses diverge more. Notably, GPT-2 and Llama-2 display greater variability in predictions during first- and second-order reasoning tasks. These findings illustrate how model architecture, temperature, and contextual complexity influence next-token prediction, contributing to a better understanding of the strengths and limitations of current language models.
Views Are My Own, but Also Yours: Benchmarking Theory of Mind Using Common Ground
Department of Computer Science(计算机科学系);Department of Linguistics(语言学系);Institute for Advanced Computational Science(高级计算科学研究院);Stony Brook University(石溪大学);University of Guilan(吉兰大学)
East China Normal University(华东师范大学);Shanghai Normal University(上海师范大学)
心理理论(Theory of Mind,简称ToM)是将心理状态归因于他人的能力,是人类认知的基础。目前,人们对具有认知能力的人工智能越来越感兴趣,例如在医疗保健和汽车行业。信念、愿望和意图是婴儿的早期能力,也是人类认知能力的基础,对于具有ToM的机器也是如此。在本文中,我们回顾了最近的进展,机器的信念,愿望和意图的理论。本文将从这三个方面介绍机器ToM的实验、数据集和方法,总结近年来不同任务和数据集的发展,并从优势、局限性和适用条件等方面对表现良好的模型进行比较,希望本研究能指导研究者快速跟上该领域的最新发展趋势。与具有特定任务和解析框架的其他领域不同,机器ToM缺乏统一的指令和一系列标准评估任务,这使得很难正式比较所提出的模型。我们认为,解决这一困难的一种方法是现在提出一个标准的评估标准和数据集,更好的是一个大规模的数据集涵盖了多个方面的心理理论。
Mind Your Theory: Theory of Mind Goes Deeper Than Reasoning
Hebrew University of Jerusalem(海法大学);MPI for Biological Cybernetics(生物感知研究所);Centre for AI and Machine Learning, AU(人工智能与机器学习中心);IoPPN, King’s College London(国王学院伦敦人工智能与感知神经科学中心)
ToMBench: Benchmarking Theory of Mind in Large Language Models
Tsinghua University(清华大学);The Chinese University of Hong Kong(香港中文大学);IIE, CAS(中国科学院自动化研究所);Tianjin University(天津大学);Northwest Minzu University(西北民族大学);Nankai University(南开大学);Beijing Institute of Technology(北京理工大学)
ToMChallenges: A Principle-Guided Dataset and Diverse Evaluation Tasks for Exploring Theory of Mind
The Graduate Center, CUNY(纽约城市大学研究生中心);Toyota Technological Institute at Chicago(丰田芝加哥技术学院);Basque Center on Cognition, Brain and Language (BCBL)(巴斯克认知、大脑与语言中心)
Understanding Artificial Theory of Mind: Perturbed Tasks and Reasoning in Large Language Models
Bonn-Aachen International Center for Information Technology (b-it)(波恩-埃森国际信息科技中心);University of Bonn(波恩大学);Lamarr Institute for Machine Learning and Artificial Intelligence(拉马尔机器学习与人工智能研究所);Research Center Trustworthy Data Science and Security (RC-Trust)(可信数据科学与安全研究中心);University of Duisburg-Essen(埃森-杜伊斯堡大学)
本研究通过扰动任务和链式推理提示探讨大语言模型的理论 of mind能力,发现其鲁棒性受扰动影响显著,CoT提示虽提升整体表现,但对某些扰动类别却降低准确性。
CoSToM:Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models
National Engineering Research Center for Big Data Technology and System, Services Computing Technology and System Lab, Cluster and Grid Computing Lab, Huazhong University of Science and Technology(华中科技大学国家大数据技术与系统工程技术研究中心、服务计算技术与系统实验室、集群与网格计算实验室);Singapore Management University(新加坡管理大学)
与目前最先进的语言模型不同,幼儿通过与周围环境和照顾者的互动来主动习得语言。一种被认为对语言学习至关重要的机制是推断社会环境中其他主体的心理状态的能力,由Premack和Woodruff(1978)创造的心理理论(ToM)。从Rabinowitz et al.(2018)和Zhu et al.(2021)实现的ToM的现代操作化版本中汲取灵感,我们构建了配备ToM的语言学习代理,并测量其对学习过程的影响。我们给说话者代理一个内部的听者模型,该模型与说话者一起训练,并用于对潜在的话语进行重新排序。我们用不同的任务难度进行实验,假设模型将获得更复杂的语言来适应更强的环境压力。我们发现,训练扬声器与一个高度加权的ToM听众组件导致性能增益在我们的图像参考游戏设置。我们还发现一些证据表明,在训练过程中增加任务难度会导致更流畅和准确的话语评价。这表明进一步将心理理论以及儿童语言习得的其他见解纳入语言习得的计算模型的潜在效用。
Learning Perception to Action Rules through Reinforcement Learning for Theory-of-Mind Reasoning
Saarland University(萨尔兰大学);Deutsches Forschungszentrum für Künstliche Intelligenz(德国人工智能研究中心);Télécom Paris(巴黎电信学院);Max Planck Institute for Informatics(马克斯·普朗克 informatics 研究所)
Theory of Mind in Large Language Models: Assessment and Enhancement
Agency for Science Technology and Research (A*STAR)(科技研究局);Nanyang Technological University(南洋理工大学);Hong Kong University of Science and Technology (Guangzhou) China(香港科学与技术大学(广州)中国)
FANToM: A Benchmark for Stress-testing Machine Theory of Mind in Interactions
Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Washington(华盛顿大学);Carnegie Mellon University(卡内基梅隆大学);Seoul National University(首尔大学)
Theory of Mind and Self-Attributions of Mentality are Dissociable in LLMs
Google, Paradigms of Intelligence Team(Google,智能范式团队);Knowledge Lab, University of Chicago(芝加哥大学知识实验室);Institute of Philosophy, School of Advanced Study, University of London(伦敦大学高等研究院哲学研究所);Department of Biomedical Informatics and Medical Education and Department of Bioethics and Humanities, School of Medicine, University of Washington(华盛顿大学医学院生物医学信息学与医学教育系及生物伦理学与人文学系);Kellogg School of Management, Northwestern University(西北大学凯洛格管理学院);Santa Fe Institute(圣塔菲研究所)