TL;DR
Large Language Models (LLMs) often suffer from a "compositionality gap" in Theory-of-Mind (ToM) reasoning: they can correctly identify what a person believes but fail to use that belief to predict the person's actions. This paper demonstrates that training models with Reinforcement Learning (specifically GRPO) to generate explicit "if–then" bridging rules significantly improves ToM performance, uses fewer tokens than standard chain-of-thought, and produces logical rules that can even help other models perform better.
What Problem Does This Paper Address?
Theory-of-Mind (ToM) is the ability to infer the unobservable mental states of others—their beliefs, desires, and intentions. While modern LLMs are surprisingly good at answering explicit questions about an agent's belief (e.g., "Does Noor think the pitcher contains oat milk?"), they frequently stumble when asked to predict that agent's behavior (e.g., "What will Noor do next?").
The authors argue this isn't a lack of knowledge, but a compositionality gap. The model possesses the individual pieces of the puzzle (perception and belief) but fails to "wire them up" to reach the correct conclusion about action. As shown in the causal structure below, reasoning about an agent requires a tight dependency between the state of the world, the agent's internal belief, and their eventual action.
Methods
The researchers propose a method called GRPOr (Group Relative Policy Optimization with Rules). Instead of letting a model "think" in a free-form way (Chain-of-Thought), they constrain the model to generate a concise, single-sentence bridging rule in an if–then format before providing an answer.
Key components of their approach include:
- Rule Generation: They used a high-reasoning model (GPT-4o-mini) to generate "ground truth" rules for training, such as: "If Noor believes the pitcher contains oat milk, then she will use it to prepare the latte."
- GRPO Training: They used Group Relative Policy Optimization, a reinforcement learning algorithm (notably used in DeepSeek-V3/R1) that optimizes the model based on relative rewards within a group of outputs.
- Reward Function: The model received rewards for two things:
- Format: Did it produce a valid JSON object with a rule starting with "if"?
- Correctness: Did it get the final ToM question right?
They compared this against several baselines: standard prompting, Supervised Fine-Tuning (SFT) on rules, and free-form RL reasoning (GRPOt).
Datasets
The study evaluated models across four diverse ToM benchmarks:
- BigToM: Focuses on the relationship between beliefs and actions.
- HiToM: Tests higher-order ToM (e.g., "A thinks that B believes...").
- ToMi: A classic benchmark for false-belief tasks.
- OpenToM: Evaluates ToM across different character personalities and narrative styles.
Key Insights and Ideas
- SFT is not enough: Interestingly, simply fine-tuning a model to imitate rules (SFTr) actually decreased performance compared to answer-only tuning. The models learned to mimic the "look" of a rule but didn't actually use it to reason. RL was necessary to force the model to find rules that actually lead to the correct answer.
- Conciseness is Power: Rule-based RL (GRPOr) was significantly more token-efficient than free-form thinking (GRPOt). On the HiToM benchmark, rules averaged ~29 tokens, while free-form "thinking" traces ballooned to ~68 tokens without providing better accuracy.
- Knowledge Transferability: Rules generated by larger models (3B and above) are "transferable." When these rules were provided as context to a different model (GPT-4o-mini), its performance improved. This suggests the RL training is capturing genuine logical dependencies rather than just internal model "hacks."
Key Results
- Superior Accuracy: GRPOr achieved the highest overall performance (74.2% average), outperforming free-form RL (67.0%) and standard prompting (45.5%).
- Scaling Benefits: The benefit of rule-based reasoning was consistent across model sizes, from 0.5B to 14B parameters.
- Consistency: Instructing models to generate rules in-context (without any training) improved accuracy by an average of 6.9% across different temperatures, as shown in the table below.
Limitations and Future Work
The authors acknowledge that their experiments were conducted on controlled, synthetic benchmarks. Real-world social interactions are far more "noisy" and may not be easily distilled into a single if–then sentence.
Furthermore, the current reward function only checks if the answer is correct and the format is right. It doesn't check if the rule itself is semantically true or if the model actually "followed" the rule to get the answer. Future work could involve developing "Verifiable RL" where the logical validity of the intermediate reasoning steps is also part of the reward signal.
Summary updated