How large language models encode theory-of-mind: a study on sparse parameter patterns. Wu, Y., Guo, W., Liu, Z., Ji, H., Xu, Z., & Zhang, D. npj Artificial Intelligence, 1(1):20, Nature Publishing Group, August, 2025.
Paper doi abstract bibtex This paper investigates the emergence of Theory-of-Mind (ToM) capabilities in large language models (LLMs) from a mechanistic perspective, focusing on the role of extremely sparse parameter patterns. We introduce a novel method to identify ToM-sensitive parameters and reveal that perturbing as little as 0.001% of these parameters significantly degrades ToM performance while also impairing contextual localization and language understanding. To understand this effect, we analyze their interactions with core architectural components of LLMs. Our findings demonstrate that these sensitive parameters are closely linked to the positional encoding module, particularly in models using Rotary Position Embedding (RoPE), where perturbations disrupt dominant frequency activations critical for contextual processing. Furthermore, we show that perturbing ToM-sensitive parameters affects LLMs’ attention mechanism by modulating the angle between queries and keys under positional encoding. These insights provide a deeper understanding of how LLMs acquire social reasoning abilities, bridging AI interpretability with cognitive science.
@article{wuHowLargeLanguage2025,
title = {How large language models encode theory-of-mind: a study on sparse parameter patterns},
volume = {1},
copyright = {2025 The Author(s)},
issn = {3005-1460},
shorttitle = {How large language models encode theory-of-mind},
url = {https://www.nature.com/articles/s44387-025-00031-9},
doi = {10.1038/s44387-025-00031-9},
abstract = {This paper investigates the emergence of Theory-of-Mind (ToM) capabilities in large language models (LLMs) from a mechanistic perspective, focusing on the role of extremely sparse parameter patterns. We introduce a novel method to identify ToM-sensitive parameters and reveal that perturbing as little as 0.001\% of these parameters significantly degrades ToM performance while also impairing contextual localization and language understanding. To understand this effect, we analyze their interactions with core architectural components of LLMs. Our findings demonstrate that these sensitive parameters are closely linked to the positional encoding module, particularly in models using Rotary Position Embedding (RoPE), where perturbations disrupt dominant frequency activations critical for contextual processing. Furthermore, we show that perturbing ToM-sensitive parameters affects LLMs’ attention mechanism by modulating the angle between queries and keys under positional encoding. These insights provide a deeper understanding of how LLMs acquire social reasoning abilities, bridging AI interpretability with cognitive science.},
language = {en},
number = {1},
urldate = {2026-05-03},
journal = {npj Artificial Intelligence},
publisher = {Nature Publishing Group},
author = {Wu, Yuheng and Guo, Wentao and Liu, Zirui and Ji, Heng and Xu, Zhaozhuo and Zhang, Denghui},
month = aug,
year = {2025},
keywords = {Computational science, Computer science},
pages = {20},
}
Downloads: 0
{"_id":"oAKhkmzBAY3zCbdr4","bibbaseid":"wu-guo-liu-ji-xu-zhang-howlargelanguagemodelsencodetheoryofmindastudyonsparseparameterpatterns-2025","author_short":["Wu, Y.","Guo, W.","Liu, Z.","Ji, H.","Xu, Z.","Zhang, D."],"bibdata":{"bibtype":"article","type":"article","title":"How large language models encode theory-of-mind: a study on sparse parameter patterns","volume":"1","copyright":"2025 The Author(s)","issn":"3005-1460","shorttitle":"How large language models encode theory-of-mind","url":"https://www.nature.com/articles/s44387-025-00031-9","doi":"10.1038/s44387-025-00031-9","abstract":"This paper investigates the emergence of Theory-of-Mind (ToM) capabilities in large language models (LLMs) from a mechanistic perspective, focusing on the role of extremely sparse parameter patterns. We introduce a novel method to identify ToM-sensitive parameters and reveal that perturbing as little as 0.001% of these parameters significantly degrades ToM performance while also impairing contextual localization and language understanding. To understand this effect, we analyze their interactions with core architectural components of LLMs. Our findings demonstrate that these sensitive parameters are closely linked to the positional encoding module, particularly in models using Rotary Position Embedding (RoPE), where perturbations disrupt dominant frequency activations critical for contextual processing. Furthermore, we show that perturbing ToM-sensitive parameters affects LLMs’ attention mechanism by modulating the angle between queries and keys under positional encoding. These insights provide a deeper understanding of how LLMs acquire social reasoning abilities, bridging AI interpretability with cognitive science.","language":"en","number":"1","urldate":"2026-05-03","journal":"npj Artificial Intelligence","publisher":"Nature Publishing Group","author":[{"propositions":[],"lastnames":["Wu"],"firstnames":["Yuheng"],"suffixes":[]},{"propositions":[],"lastnames":["Guo"],"firstnames":["Wentao"],"suffixes":[]},{"propositions":[],"lastnames":["Liu"],"firstnames":["Zirui"],"suffixes":[]},{"propositions":[],"lastnames":["Ji"],"firstnames":["Heng"],"suffixes":[]},{"propositions":[],"lastnames":["Xu"],"firstnames":["Zhaozhuo"],"suffixes":[]},{"propositions":[],"lastnames":["Zhang"],"firstnames":["Denghui"],"suffixes":[]}],"month":"August","year":"2025","keywords":"Computational science, Computer science","pages":"20","bibtex":"@article{wuHowLargeLanguage2025,\n\ttitle = {How large language models encode theory-of-mind: a study on sparse parameter patterns},\n\tvolume = {1},\n\tcopyright = {2025 The Author(s)},\n\tissn = {3005-1460},\n\tshorttitle = {How large language models encode theory-of-mind},\n\turl = {https://www.nature.com/articles/s44387-025-00031-9},\n\tdoi = {10.1038/s44387-025-00031-9},\n\tabstract = {This paper investigates the emergence of Theory-of-Mind (ToM) capabilities in large language models (LLMs) from a mechanistic perspective, focusing on the role of extremely sparse parameter patterns. We introduce a novel method to identify ToM-sensitive parameters and reveal that perturbing as little as 0.001\\% of these parameters significantly degrades ToM performance while also impairing contextual localization and language understanding. To understand this effect, we analyze their interactions with core architectural components of LLMs. Our findings demonstrate that these sensitive parameters are closely linked to the positional encoding module, particularly in models using Rotary Position Embedding (RoPE), where perturbations disrupt dominant frequency activations critical for contextual processing. Furthermore, we show that perturbing ToM-sensitive parameters affects LLMs’ attention mechanism by modulating the angle between queries and keys under positional encoding. These insights provide a deeper understanding of how LLMs acquire social reasoning abilities, bridging AI interpretability with cognitive science.},\n\tlanguage = {en},\n\tnumber = {1},\n\turldate = {2026-05-03},\n\tjournal = {npj Artificial Intelligence},\n\tpublisher = {Nature Publishing Group},\n\tauthor = {Wu, Yuheng and Guo, Wentao and Liu, Zirui and Ji, Heng and Xu, Zhaozhuo and Zhang, Denghui},\n\tmonth = aug,\n\tyear = {2025},\n\tkeywords = {Computational science, Computer science},\n\tpages = {20},\n}\n\n\n\n\n\n\n\n","author_short":["Wu, Y.","Guo, W.","Liu, Z.","Ji, H.","Xu, Z.","Zhang, D."],"key":"wuHowLargeLanguage2025","id":"wuHowLargeLanguage2025","bibbaseid":"wu-guo-liu-ji-xu-zhang-howlargelanguagemodelsencodetheoryofmindastudyonsparseparameterpatterns-2025","role":"author","urls":{"Paper":"https://www.nature.com/articles/s44387-025-00031-9"},"keyword":["Computational science","Computer science"],"metadata":{"authorlinks":{}},"downloads":0,"html":""},"bibtype":"article","biburl":"https://bibbase.org/zotero/saurabhr","dataSources":["nxjWwW7fWbb5tfpKz"],"keywords":["computational science","computer science"],"search_terms":["large","language","models","encode","theory","mind","study","sparse","parameter","patterns","wu","guo","liu","ji","xu","zhang"],"title":"How large language models encode theory-of-mind: a study on sparse parameter patterns","year":2025}