Introduction
Theory-of-Mind (ToM)—the cognitive ability to attribute mental states, beliefs, and intentions to oneself and others—is a cornerstone of human social intelligence. While Large Language Models (LLMs) have demonstrated impressive capabilities in various reasoning tasks, they frequently struggle with the "social gymnastics" required for recursive, high-order ToM (e.g., "A believes that B thinks that C knows..."). Current approaches generally fall into two categories: prompt-based methods, which often suffer from hallucinations and superficial logic, and symbolic methods, which lack the linguistic flexibility to handle complex narratives.
To bridge this gap, we present EnigmaToM, a novel neuro-symbolic framework. EnigmaToM offloads the logical tracking of entity states to a specialized Neural Knowledge Base (NKB) and uses a symbolic "Iterative Masking" mechanism to simplify complex social reasoning into manageable first-order tasks.
The EnigmaToM Framework
The EnigmaToM framework consists of three primary components designed to enhance the model's world model and reasoning efficiency.
1. Enigma: The Neural Knowledge Base (NKB)
The foundation of the framework is Enigma, a specialized module (implemented as either a fine-tuned Llama-3-8B or a prompted LLM) trained on the OpenPI2.0 dataset. Enigma tracks the state of entities—such as physical locations or "awareness" states—following every event in a narrative. This ensures a consistent and updated record of the environment.
2. Knowledge Injection (KI)
LLMs often suffer from "reporting bias," where common-sense consequences (e.g., an object remaining in a container unless moved) are not explicitly stated in text, leading to reasoning failures. EnigmaToM addresses this by injecting explicit state details back into the story. This "Knowledge Injection" provides the LLM with an unambiguous world model, anchoring its reasoning in physical reality.
3. Iterative Masking (IM)
The core innovation of EnigmaToM is the Iterative Masking mechanism. The system constructs "spatial scene graphs" for every character. When a character leaves a specific environment, the IM mechanism symbolically masks all subsequent events occurring in that environment from that character's perspective. For high-order questions, this process is applied recursively. By filtering the input text to match a character's specific perspective, a complex 4th-order question is effectively reduced to a 1st-order task based only on the events the character actually witnessed.
Experimental Evaluation
The framework was evaluated on three diverse benchmarks:
- ToMi: A standard benchmark for 1st and 2nd-order ToM reasoning using concise event sequences.
- HiToM: A challenging dataset designed for high-order reasoning, testing beliefs up to the 4th order.
- FANToM: A dialogue-based benchmark involving multi-round conversations, reflecting real-world social interactions.
Key Results and Insights
EnigmaToM consistently outperformed vanilla LLMs and state-of-the-art methods (such as Chain-of-Thought, SimToM, and DWM) across all benchmarks and model sizes, from 7B parameters to GPT-4o.
High-Order Reasoning Mastery
The framework showed a significant advantage in high-order reasoning. On the HiToM dataset, EnigmaToM achieved average accuracy improvements of 0.160 and 0.148 for 3rd and 4th-order reasoning, respectively, compared to vanilla baselines.
Boosting Smaller Models
One of the most striking findings was the framework's ability to empower smaller models. For instance, Qwen2.5-7B using EnigmaToM exceeded the zero-shot performance of the much larger Qwen2.5-72B on several tasks. This suggests that structured state tracking is more critical for ToM than raw parameter count.
Scalability and Efficiency
Unlike traditional symbolic methods where complexity grows exponentially with the order of ToM, EnigmaToM maintains linear complexity relative to the number of characters. This makes it a highly scalable solution for complex narratives.
Limitations and Future Work
While EnigmaToM represents a significant step forward, it has limitations:
- Perception Focus: The current implementation primarily handles "perceptual" perspective-taking (what entities see) and does not yet account for subjective states like emotions or complex desires.
- Error Propagation: The iterative nature of the masking means that an initial error by the NKB can propagate through the reasoning chain, potentially leading to incorrect final conclusions.
- NKB Dependency: The system's performance is heavily tied to the quality of the Enigma knowledge base. Future work may involve full-parameter tuning or larger NKBs to further minimize errors.
Conclusion
EnigmaToM demonstrates the power of neuro-symbolic synergy. By combining the linguistic strengths of LLMs with the reliable bookkeeping of symbolic systems, the framework effectively simplifies the "social gymnastics" of Theory-of-Mind. This approach not only improves accuracy in high-order reasoning but also provides a scalable path toward more socially intelligent AI.
Summary updated