Theory-of-Mind Enhanced Dialogue Generation in Situated Contexts

Shuwen Qiu, Song-Chun Zhu, Zilong Zheng · Submission to ICLR 2024 · Withdrawn

TL;DR

Current conversational models treat dialogue like a transaction—predicting the next word given a prompt—rather than a collaborative negotiation of shared meaning. MindDial introduces an explicit Theory-of-Mind (ToM) framework that tracks three levels of mental states (the speaker's belief, their estimate of the listener's belief, and their difference) to generate situated, free-form dialogue. By incorporating belief dynamics into generation and dialogue planning, MindDial aligns common ground faster, more accurately, and with more human-like turn-taking than standard baselines and zero-shot LLMs.

What Problem Does This Paper Address?

In human communication, two people rarely have identical knowledge of the world. Human interaction is constructivist: speakers continually negotiate meanings, correct misunderstandings, and build common ground based on what they think the listener knows.

Conventional dialogue models (and even modern generative LLMs) largely operate under a transaction model, assuming unambiguous context and generating responses without explicitly inferring the partner's mental states. In situated tasks where agents have private, partial knowledge of an environment and must cooperate to find an agreement, standard language models easily lose track of confirmed or negated facts, repeat redundant questions, and fail to reach consensus efficiently.

Methods

MindDial integrates Theory-of-Mind modeling, dialogue planning, and response generation into a unified architecture:

Context + Knowledge Base
           │
           ▼
┌──────────────────────────────────────┐
│       Mind Module (3 Levels)         │
│  1. Speaker's Belief (b_A)           │
│  2. Estimation of Partner (b_BinA)   │
│  3. Common Belief Gap (b_diff)       │
└──────────────────┬───────────────────┘
                   │
         ┌─────────┴─────────┐
         ▼                   ▼
┌──────────────────┐ ┌───────────────────────────────┐
│ Speaking Act Head│ │ Response Decoder              │
│ (Continue, End   │ │ (Multi-source copy mechanism: │
│  Turn, or Act)   │ │  Vocab + Context + KB + Mind) │
└──────────────────┘ └───────────────────────────────┘
  1. Three-Level Mental State Representation:
  2. First-order belief ($b_A$): The speaker’s own distribution over knowledge base entities.
  3. Second-order belief ($b_{B \text{ in } A}$): The speaker's estimate of the listener's belief, informed by the conversation history.
  4. Third-level common belief ($b_{com}$): Measures which entity to target next, derived from the gap representation ($d_{bdiff}$) using Jensen–Shannon divergence to weight attributes where the two agents disagree most.
  5. Belief Dynamics Prediction ($\Delta b$): Instead of estimating global beliefs from an entire history (which risks dropping entities in long conversations), MindDial tracks state transitions per turn—categorizing each entity as occurred ($+1$), negated/disappeared ($-1$), or unchanged ($0$)—and accumulates these updates over time.
  6. Dialogue Planning and Generation: A classification head determines the next action (continue talking, end turn, or make selection). When speaking, the decoder uses a multi-source copy mechanism combining vocabulary generation, dialogue context, the private knowledge base, and the predicted common belief distribution.

Datasets

  • Augmented MutualFriend: The authors built on the MutualFriend benchmark (He et al., 2017b), a collaborative game where two agents with private tables of friends (names, schools, hobbies, etc.) chat to identify their single shared friend.
  • Belief Dynamics Annotation: The authors augmented 6,111 successful dialogues (4,922 train / 608 val / 581 test) with manual turn-level labels indicating whether entities appeared, disappeared, or remained unchanged, alongside target common beliefs for next responses.

Key Insights and Ideas

  • LLMs Know But Don't Apply Beliefs: In self-talk probing experiments with ChatGPT, the LLM scored reasonably well when explicitly asked to identify beliefs (71.0% precision for partner belief). However, when generating actual dialogue responses, it failed to use this knowledge—hallucinating entities, forgetting previously negated items, and achieving a dismal 2.33% game success rate.
  • Tracking Velocity Beats Tracking State: Accumulating turn-by-turn belief dynamics ($\Delta b$) substantially outperformed predicting the final belief state directly from history (raising F1 from ~46% to ~57%), avoiding catastrophic forgetting in long conversations.
  • No Single Belief Dominates: Modeling only the speaker's mind ($b_A$) or only the listener's mind ($b_{B \text{ in } A}$) leads to asymmetric blind spots. Combining both levels through attribute divergence is necessary to recognize both private facts and partner misunderstandings.

Key Results

  • Generation & Action Accuracy: Across GRU, Transformer (BERT + DistilGPT-2), and BART backbones, adding the mind module consistently improved BLEU, METEOR, ROUGE-L, and turn action classification (e.g., BART BLEU-1 increased from $15.10 \to 16.95$; ROUGE-L from $12.54 \to 14.01$).
  • Self-Talk Coordination: In automated self-talk evaluations, the full $b_A + b_{B \text{ in } A}$ model outperformed single-belief variants across all architectures. For example, Transformer agents achieved higher task success (10.76% vs. 8.83–9.99%) while completing dialogues in fewer turns (17.65 vs. 19.20) and mentioning fewer redundant entities (10.91 vs. 12.23).
  • Human Preference: In blinded human evaluations (1,000 samples), MindDial was preferred over models without mind modeling in 46.3% of comparisons (vs. 10.5% losses and 43.2% ties), closely matching human ground-truth responses (47.2% wins vs. 52.8% losses).

Limitations and Future Work

  • Structured Context Dependency: The framework relies on structured tabular attributes to cleanly define and label discrete belief transitions ($-1, 0, 1$). Extending this approach to open-ended, unstructured chit-chat remains an open challenge.
  • Repetition and Small-Scale Overfitting: Self-talk simulations sometimes exhibited formulaic question phrasing and repetitive syntax, partly due to the relatively small dataset size.
  • Future Work: Adapting explicit belief difference modeling to guide the internal decoding or prompting of large language models without needing manual dense dynamic annotations.

Summary updated

BibTeX
@inproceedings{qiu2023theory,
  author = {Shuwen Qiu and Song-Chun Zhu and Zilong Zheng},
  title = {{Theory-of-Mind Enhanced Dialogue Generation in Situated Contexts}},
  booktitle = {ToM @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=YYtHY6a0Jf},
}
Figure