arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26291

Assessing mentalization in humans and large language models

Aamir Sohail, Xintong Zhong, Arkady Konovalov, Patricia L. Lockwood, Lei Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Mentalization - the ability to infer others' beliefs and intentions to guide one's own choices - is a key cognitive function underlying human social interactions. Large language models (LLMs) demonstrate behaviour consistent with humans on theory-of-mind tasks, yet whether these models can guide adaptive behaviour through mentalization is unknown. Here we use two economic games with cognitive computational modeling to uncover the latent strategies underlying mentalization in LLMs. We tested individual LLM agents across four model families, DeepSeek, GPT-4.1, GPT-5 and Gemini 2.0 Flash (N = 2,099), against opponents of varying sophistication and examined whether a prompting strategy designed to elicit strategic reasoning improved performance. We benchmarked results against human participants (N = 251) as a comparative measure. Across both games, LLMs showed clear behavioural and computational signatures of mentalizing that differed markedly by model provider and size. Strategic prompting generally improved performance by inducing more sophisticated reasoning, yet the extent of the benefit differed across the two tasks. Last, GPT-5 agents flexibly adapted their recursive depth of reasoning to increasingly sophisticated opponents, demonstrating superior performance to human participants. Collectively, we demonstrate different capacities for mentalization across LLMs, and highlight cognitive computational modeling as a formal method for assessing comparative intelligence across humans and machines.

Keywords: mentalization, large language models, artificial intelligence, computational modeling

Main

Mentalization is a cognitive process associated with interpreting the behaviour of others as the result of latent mental states, beliefs and emotions [1–3]. In humans, mentalization shapes decision-making in social contexts by predicting the actions of others and adjusting one's own behaviour accordingly [4–10]. Evidence also has suggested the presence of mentalization in a select range

Assessing mentalization in humans and large language models

1/46 of non-human animal species, including dogs, corvids, chimpanzees and gorillas [11–20] reflecting an evolved capacity for social intelligence.

Beyond humans and other animals, a topic of significant recent development concerns whether generative artificial intelligence (AI) systems, such as large language models (LLMs) demonstrate behaviour consistent with mentalizing. Researchers have turned to experimental methods applied within the fields of psychology, cognitive science and neuroscience to uncover features of behaviour and reasoning abilities in LLMs [21–30]. By converting behavioural tasks to text which are submitted as prompts, assessments of learning and decision-making - typically used among human participants - can be directly applied to LLMs, providing deeper computational insights beyond superficial measures of choice [31–37].

Despite being a type of neural network trained upon large quantities of text-based data [38], LLMs demonstrate emergent properties synonymous with reasoning and decision-making in humans [21, 31, 39–48]. In humans, mentalization is conventionally assessed using role-based tasks, stories necessitating the inference of fictional characters' beliefs [49, 50]. Large language models are similarly able to correctly interpret mental states and suggest appropriate actions, often performing at or above human level in such tasks [51–57]. However, LLMs fail at simple modifications to these assessments [58] and struggle in theory-of-mind (ToM) tasks necessitating complex reasoning and planning [55, 59, 60], casting doubt as to whether successes reflect genuine mentalization or shallow heuristics [61–63]. As a result, it has been recently argued that the role-based tasks commonly used may not be suitable for assessing complex cognitive processes [61], by only describing superficial elements of behaviour [64–69] which may be solved without requiring the explicit, human-like simulation of mental states [70]. Therefore, whilst the observed choices between human and LLMs may be identical, this does not necessarily reflect the same inferential or cognitive process [65, 66, 71, 72].

Contrasting with story-based assessments, economic games present a formal methodology for assessing strategic social behaviour by examining distinct behavioural and computational mechanisms [73–79]. In these games, participants are directly part of the interaction rather than a third-party observer, and are often tasked with outplaying an opponent [e.g., the Inspection Game; [80]]. Importantly, this context allows researchers to test recursive mentalization at different levels by experimentally manipulating the reasoning depth of the opponent. Under this framework, a player may attempt to estimate the opponent's historical choice distribution and form first-order beliefs, or – if anticipating that their actions are being tracked - form second-order beliefs and modify their strategy according to her opponent's reaction [77, 81, 82]. Accordingly, this reasoning process can also reach higher levels. Conventionally used to assess behaviour among human participants, economic games have recently been employed to objectively measure specific biases and patterns of decision-making in LLMs [21, 31, 39–46, 48, 83–92], which demonstrate emergent properties of deliberative thought. Furthermore, the performance of LLMs on these tasks is often improved using targeted prompting strategies – such as chain-of-thought (CoT) – [93–95], designed to elicit step-by-step reasoning indicative of human decision-making [40, 48, 96–100].

In humans, choice behaviour can be formally analysed using cognitive computational modeling, a theory-driven quantification ascribing latent cognitive processes and computational parameters

Assessing mentalization in humans and large language models

2/46 to observed actions [101–105]. In the context of dynamic social behaviour, these parameters can additionally be assessed trial-by-trial to uncover temporal patterns of cognition. Concerning mentalization, computational models have highlighted the capacity for recursive mentalization in humans [80, 106] who are able to dynamically adapt their recursive depth to the inferred strategy of the opponent, i.e., adaptive mentalization [107]. Cognitive models also offer a mechanistic formalization of behaviour across species [108, 109], solely requiring choice data to infer upon cognitive processes. Subsequently, computational modeling has recently been endorsed in AI and LLM research as a formal approach to infer the internal processes of AI systems from observed choices [110, 111]. For example, this approach has uncovered latent parameters underlying learning biases in LLMs, by fitting reinforcement learning (RL) models [112–114]. To date, a comparative assessment of mentalization across humans and LLMs using strategic games has yet to be undertaken, despite a growing interest towards developing ‘human-like’ machine intelligence [26, 115].

In the current study, we employ two commonly used economic games – the inspection game and rock-paper-scissors - to uncover the behavioural signatures and latent parameters of recursive mentalization in large language models. We include several popular LLMs that were subjected to the experimental tasks as participants (total N = 2,099), and examine the impact of a simple prompting strategy – Social Chain-of-Thought (SCoT) – previously shown to improve LLM performance in economic games [40]. We also compare their performance to human participants (total N = 251; mean age = 24.48 ± 3.81 years; range 18–36) across both tasks, analysing differences in recursive mentalization across humans and LLMs. In doing so, we move beyond conventional descriptive assessments and provide a more formal understanding of machine intelligence.

References (100)

Couldn't load all references. Reload the page to try again.