Constrained Reasoning Chains for Enhancing Theory-of-Mind in Large Language Models

Zizheng Lin, Chunkit Chan, Yangqiu Song, Xin Liu
9/20/2024
cs.CL

No official code found. Best implementation: HKUST-KnowComp/Constrained-Chain-of-ToM (5 stars, last commit 2024-08-31).

Abstract

Theory-of-Mind (ToM) ability possessed by Large Language Models (LLMs) has been shown to be limited. Most existing methods for improving ToM in LLMs adopt zero-shot prompting, and they face challenges including poor performance in complex ToM reasoning tasks and an inability to handle non-narrative contexts. We propose a zero-shot prompting method named Constrained Chain-of-ToM (CCoToM) that leverages domain knowledge and the causal relations between ToM dimensions to address these limitations. Specifically, CCoToM guides LLMs to construct explicit reasoning chains by first prompting LLMs to infer related ToM dimensions (e.g., belief). Afterward, CCoToM prompts LLMs to infer the queried ToM dimension based on the generated related ToM dimensions and corresponding causal relations. Additionally, CCoToM adaptively imposes constraints on prompts to introduce inductive biases and improve consistency between ToM dimensions. Besides narratives, CCoToM can also handle non-narrative contexts like conversations. Extensive experiments show that CCoToM consistently outperforms previous state-of-the-art methods by large margins across all LLMs and datasets used. We also conduct in-depth analyses to gain deeper insights into CCoToM. We have made our code publicly available.

View on arXivView PDF

Code Implementations(1)

50PythonAug 31, 20242 years ago

Similar Papers

Cite this paper

@article{lin2024constrained,
  title  = {Constrained Reasoning Chains for Enhancing Theory-of-Mind in Large Language Models},
  author = {Zizheng Lin and Chunkit Chan and Yangqiu Song and Xin Liu},
  year   = {2024},
  eprint = {2409.13490},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13490v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.13490.svg)](https://codeofpaper.com/paper/2409.13490)

Discussion