betaFeedback

WorksComputer Science

Learning Perception to Action Rules through Reinforcement Learning for Theory-of-Mind Reasoning

Abstract

In Theory-of-Mind (ToM) reasoning, large language models may correctly infer the agent's mental state but fail to use that inference when predicting or judging the agent's subsequent actions. In this work, we investigate whether explicitly connecting perception, belief, and action with rules improves ToM reasoning. We generate concise if–then rules that express relations between perception to action and use Group Relative Policy Optimization (GRPO) to train Qwen2.5 and Llama3 models across four ToM benchmarks. GRPO with rule generation outperforms prompting, supervised fine-tuning, and think reasoning. Moreover, rules generated by larger models (≥\geq3B) provide transferable knowledge that improves downstream performance of GPT-4o-mini. These findings suggest that explicit rules help models bridge the reasoning gap in ToM and support knowledge transfer across models.

Introduction

Humans can effortlessly infer and track others’ unobservable mental states, a capacity known as Theory-of-Mind (ToM), and use these inferences to guide their social interactions ([6] (Zhang et al. 2012)). Given ToM’s central role in human interaction, many studies have investigated whether Large Language Models (LLMs) exhibit this ability, revealing limitations in their ToM reasoning ([3] (Strachan et al. 2024; Xu et al. 2024; Xiao et al. 2025)). In particular, Gu et al. [5] showed that although LLMs can correctly answer explicit questions about agents’ mental states, they struggle to predict and judge the agents’ future actions, despite they already possess relevant knowledge on the agents’ perceptions and beliefs. Our hypothesis is that these reasoning failures are caused by difficulties in connecting and

applying relevant knowledge that models already possess, rather than an inability to make relevant inferences. This is motivated by previous findings that language models can solve individual subproblems while failing to compose their solutions into a correct final answer, which is known as the compositionality gap ([9]).

In this study, therefore, we investigate whether training LLMs with reinforcement learning (RL) to make explicit connections between inferences can bridge ToM compositionality gap. We define explicit connection as a bridging rule that specifies how the output of one inference constrains the next inference. For example, in Figure 1, adapted from Gandhi et al. [3], correctly answering the action question requires the model to connect Noor’s perception to her belief and use this information to predict that either she will replace the milk pitcher with oat milk or prepare a latte for the customer. We use LLMs to elicit story-specific connections that follow ‘if–then’ rule format, such as “If Noor believes the pitcher contains the oat milk, then she will use it to prepare the latte”. We use these rules to post-train the models with Group Relative Policy Optimization (GRPO) (Shao et al., 2024), encouraging them to generate a rule that connects the separated inferences before answering. While prior work relies on free-form reasoning over a broad sampling space [8] (Zhong et al. 2026), we hypothesize that these concise rules constrain the reasoning space for ToM. Our main contributions are:

Causal structure of Theory-of-Mind showing environment state, agent state, belief, and action, with an example scenario

Figure 1. Causal structure of ToM, adapted from Baker et al. [1]. An example story and question illustrate the perception-belief-action dependencies required for reasoning about an agent’s mental state.

  • We introduce rule-based GRPO for ToM reasoning, which generates concise if–then rules connecting perception, belief, and action (Section 2.2).

  • Although supervising models to produce rules does not reliably improve answer prediction, GRPO with rule generation improves average accuracy by 7.2% over free-form GRPO reasoning while using fewer thinking tokens (Section 3).

  • Rules generated by larger models (≥3\ge3B) improve GPT-4o-mini’s downstream accuracy, indicating that they encode transferable task-relevant information (Section 3.1).

Methods

Data

We conduct our experiments on four ToM benchmarks: BigToM [3], HiToM (Wu et al., 2023), ToMI [7], and OpenToM (Xu et al., 2024).3 We select these benchmarks for their focus on perception and belief tracking, with BigToM additionally testing belief–action relation, and their diversity in reasoning depth and narrative construction.

Data splits. For each benchmark, we reserve a small set of examples (N=100N = 100) for SFT warm-up and split the remaining examples into train, development, and test sets (Table 1). We stratify each split by the benchmark specific factor combinations (benchmark specific factors in Appendix § 5).

BenchmarkTotalMain split
BigToM5,0003,750 / 200 / 950
HiToM1,200720 / 200 / 180
ToMi2,6641,891 / 200 / 473
OpenToM2,3841,668 / 200 / 416

Table 1. Dataset sizes and main splits. Main splits are reported as train/development/test.

Rule generation

We generate ground truth rules using gpt-5-mini-2025-08-07 model without revealing gold answer (prompt in Appendix § 6). To validate the generated rules, we then prompt the same model to answer each question using its generated rule. We assume that a rule is valid if the model answers the question correctly (details in Appendix § 7 and rule examples in Table 11).

QuestionDoes Tanya believe the app’s code is well-structured and free of errors or corrupted due to a server malfunction? Choose one: (a) Tanya believes the app’s code is corrupted due to a server malfunction. (b) Tanya believes the app’s code is well-structured and free of errors.
Correct answer(b) Tanya believes the app’s code is well-structured and free of errors.
Gold ruleIF Tanya, based on her observation, regards the app’s code as well-structured and free of errors, THEN she will treat the code as functioning correctly and not as compromised by a server malfunction.
Rules
Qwen2.5-0.5B“If Tanya notices the donuts, then Tanya believes the app’s code is well-structured and free of errors.”
Qwen2.5-3B“If Tanya observes the app’s code and believes it is well-structured and free of errors, then Tanya believes the app’s code is well-structured and free of errors.”
Qwen2.5-14B“If Tanya observes that the app’s code appears to be well-structured and free of errors and she believes the app’s code is well-structured and free of errors, then Tanya believes the app’s code is well-structured and free of errors.”
Think
Qwen2.5-0.5B"Tanya observes that the app’s code appears to be well-structured and free of errors."
Qwen2.5-3B"Tanya initially observed that the app’s code appears to be well-structured and free of errors. This belief is stated directly in the story: ’Tanya believes the app’s code is well-structured and free of errors.’ Therefore, Tanya does not believe the app’s code is corrupted due to a server malfunction."
Qwen2.5-14B"From the story, we know that Tanya observes the app’s code to be well-structured and free of errors, and she believes this as well. There is no mention of any server malfunction affecting the code. Therefore, based on the information provided, Tanya believes the app’s code is well-structured and free of errors."
Dataset: OpenToM
StorySimon and Anderson were roommates with very different tastes. Simon couldn’t stand the sight of pears, while Anderson had a fondness for their juicy sweetness. One day, both Simon and Anderson found themselves in the bedroom at the same time. Their eyes were drawn to the pantry, where a lone pear sat, seemingly forgotten. Anderson left the room momentarily, only to return a few moments later. To his surprise, the pear was no longer in the pantry. Simon, despite his aversion to pears, was a considerate person. Knowing that Anderson enjoyed them, he had taken it upon himself to move the pear to the dining table. He hoped that by placing it in a more visible and tempting location, his roommate would be enticed to savor the fruit. Anderson, witnessing this kind gesture, couldn’t help but feel touched by Simon’s selflessness.
QuestionFrom Anderson’s perspective, is the pear in its initial location by the end of the story?
Correct answerNo
Gold ruleIF Anderson saw the pear in the pantry, left the room, and upon returning did not see the pear in the pantry, THEN from Anderson’s perspective the pear is no longer in its initial pantry location.
Rules
Qwen2.5-0.5B"If Simon moved the pear to the dining table, then Anderson felt touched by Simon’s selflessness."
Qwen2.5-3B"If Anderson returned to the room after Simon moved the pear, then the pear was not in its initial location."
Qwen2.5-14B"If Simon moved the pear from the pantry to the dining table, then the pear is not in its initial location by the end of the story."
Think
Qwen2.5-0.5B"Anderson moved the pear to a more visible and tempting location."
Qwen2.5-3B"Anderson returned to the room after a few moments and found the pear not in the pantry. Since Simon moved the pear to the dining table, and Anderson did not move it back, we can conclude that the pear is not in its initial location."
Qwen2.5-14B"Anderson initially saw the pear in the pantry. When he returned, the pear was gone. Simon moved the pear to the dining table out of consideration for Anderson. Therefore, from Anderson’s perspective, the pear is not in its initial location by the end of the story."

Table 11. Examples of rule generation across model scales on ToMi, Hi-ToM, BigToM, and OpenToM. Gold rules are generated by gpt-5-mini-2025-08-07. In Rules and Think traces, highlighted with bold are examples of erroneous reasoning. All selected models answered correctly on the presented examples.

Models

We train and evaluate a range of Qwen2.5-Instruct-{0.5B, 1.5B, 3B, 7B, 14B} (Yang et al., 2025), as well as Llama-Instruct-{3.2-1B, 3.2-3B, 3.1-8B} models [4]. We primarily report Qwen2.5 results in the main text and present Llama results in Appendix § 11.

Experimental setup

We evaluate two no-training baselines. In Base condition, we prompt the models with story and question to predict correct answer. In Baser_r, we prompt the models additionally to generate a rule before the answer (prompts in Appendix § 6.§ 2). For consistent parsing and evaluation, we instruct all models to return outputs in JSON format. We then define four training conditions:

  • SFTa_a: Supervised fine-tuning to generate only the correct answer.

  • SFTr_r: Supervised fine-tuning to generate a reference rule followed by the correct answer.

  • GRPOt_t: RL to generate free-form reasoning and an answer within “think” and “answer” JSON fields, respectively [8].

  • GRPOr_r: RL to generate a rule and an answer in JSON format within “rule” and “answer” fields, respectively.

Training

We train the SFT and GRPO conditions on the same training examples for two epochs, following Lu et al. [8]. We select the checkpoint with the best accuracy on a development set for evaluation on test set.4

SFT For both SFT conditions, we use a batch size of 2 and a learning rate of 5×10−65 \times10^{-6}. In SFTr_r, we compute token-level cross-entropy loss over both. In SFTa_a, we calculate loss on target answer.

Format warm-up for GRPO rules. Following the prior work on cold start training for GRPO [2], we initialize each model with an SFT. We train for up to three epochs, and do early stopping once format validity meets 95% on a small development set (details in Appendix § 7).

GRPO optimization We implement GRPO with Dapo style token-loss normalization (Yu et al., 2026). We use a training batch size of 8, a learning rate of 5×10−65 \times10^{-6}, and a KL regularization coefficient of 0.001. For each input, we sample eight completions at a temperature of 0.8 with a maximum completion length of 512 tokens. Each completion receives a format reward and an answer reward. A valid format requires a JSON object containing two string fields, “rule” and “answer”, where the rule should contain the word if followed by text. We define the format reward as

rformat={+0.5,if the format is valid,−0.5,otherwise.r_{\mathrm{format}} = \begin{cases} +0.5, & \text{if the format is valid},\\ -0.5, & \text{otherwise}. \end{cases}

We evaluate the extracted answer using benchmark-specific evaluation and define the answer reward as

ranswer={+2,if the answer is correct,−2,otherwise.r_{\mathrm{answer}} = \begin{cases} +2, & \text{if the answer is correct},\\ -2, & \text{otherwise}. \end{cases}

The total reward for each sampled completion is r=rformat+ranswerr = r_{\mathrm{format}} + r_{\mathrm{answer}}. We normalize the reward within each group of eight completions to compute the group relative advantages used for policy optimization. Therefore, the reward encourages conditional rule formatting and answer correctness.

Results

Across training approaches, GRPOr_r achieves the strongest overall performance (74.2%), outperforming GRPOt_t (67.0%), SFTa_a (66.7%), SFTr_r (61.4%), Baser_r (52.4%), and Base (45.5%). We compare the results under rule conditioning with those from the other settings below.

Instructing the models to generate rules in context consistently improves performance. Instructing the models to generate rule improves accuracy in available comparisons (Table 2) in most setups across different temperatures {0.2,0.4,0.8}\{0.2, 0.4, 0.8\}. Overall, the average accuracy increases by 6.9%, indicating that rule conditioning provides a substantial benefit on average.

ModelHiToMToMiBigToMOpenToM
Base
Qwen2.5-0.5B1.539.151.452.6
Qwen2.5-1.5B15.927.128.947.8
Qwen2.5-3B7.255.373.653.6
Qwen2.5-7B27.855.378.246.5
Qwen2.5-14B45.062.282.159.3
Baser_r
Qwen2.5-0.5B6.8 (+5.4)34.8 (-4.3)54.1 (+2.7)45.4 (-7.2)
Qwen2.5-1.5B18.7 (+2.8)42.4 (+15.3)62.1 (+33.2)51.9 (+4.0)
Qwen2.5-3B24.4 (+17.2)50.9 (-4.3)80.8 (+7.2)58.6 (+5.0)
Qwen2.5-7B43.0 (+15.2)56.0 (+0.6)85.8 (+7.6)62.4 (+15.9)
Qwen2.5-14B46.3 (+1.3)64.8 (+2.6)86.5 (+4.4)72.6 (+13.3)

Table 2. Accuracy (%) without training averaged across different temperatures. Changes below Baser_r are percentage-point differences from Base: green indicates improvement and red indicates degradation.

Simply teaching rule generation with SFT degrades performance. Unlike rule prompting, SFT to generate rule before the answer decreases average accuracy relative to answer-only fine-tuning (Table 3). This suggests that training to just imitate the rule and output pairs does not reliably teach models to use rules for answer prediction. Rather, the models might prioritize producing the required rules over optimizing the final answer.

ModelHiToMToMiBigToMOpenToM
SFTa_a
Qwen2.5-0.5B9.471.764.365.6
Qwen2.5-1.5B30.072.577.269.0
Qwen2.5-3B24.473.686.481.5
Qwen2.5-7B49.475.191.282.5
Qwen2.5-14B46.777.293.492.1
SFTr_r
Qwen2.5-0.5B6.7 (-2.7)50.1 (-21.6)70.1 (+5.8)55.3 (-10.3)
Qwen2.5-1.5B26.7 (-3.3)57.1 (-15.4)80.1 (+2.9)55.8 (-13.2)
Qwen2.5-3B25.6 (+1.2)61.9 (-11.7)87.2 (+0.8)70.2 (-11.3)
Qwen2.5-7B43.3 (-6.1)66.6 (-8.5)90.3 (-0.9)77.4 (-5.1)
Qwen2.5-14B54.4 (+7.7)67.2 (-10.0)92.5 (-0.9)89.2 (-2.9)

Table 3. SFT accuracy (%) on test set. Changes in parentheses compare SFTr_r with SFTa_a for the same model.

GRPOr_r improves performance while using fewer tokens than GRPOt_t. GRPOr_r consistently improves average performance across all model sizes, increasing overall accuracy by 7.2% compared to GRPOt_t across random seeds {3,4,42}\{3, 4, 42\} (two-sided paired t-test p<0.01p < 0.01, with 95% CI of [6.18, 8.35] pp). GRPOr_r also generates substantially shorter reasoning traces, using 25.2 tokens on average compared with 52.1 tokens for GRPOt_t (Appendix § 3). Overall, these results suggest that rule-based RL provides a more effective and token-efficient optimization than unconstrained reasoning.

We additionally show that GRPOr_r without a warm-up still outperforms GRPOt_t (Appendix 9).

ModelHiToMToMiBigToMOpenToM
GRPOt_t
Qwen2.5-0.5B10.071.272.661.1
Qwen2.5-1.5B32.271.087.652.9
Qwen2.5-3B32.467.990.378.8
Qwen2.5-7B46.171.592.885.9
Qwen2.5-14B55.775.392.991.6
GRPOr_r
Qwen2.5-0.5B15.9 (+5.9)78.3 (+7.1)84.7 (+12.1)53.7 (-7.4)
Qwen2.5-1.5B48.9 (+16.7)81.6 (+10.6)91.5 (+3.9)53.8 (+0.9)
Qwen2.5-3B44.8 (+12.4)84.3 (+16.4)92.7 (+2.4)90.3 (+11.5)
Qwen2.5-7B57.4 (+11.3)82.9 (+11.4)93.1 (+0.3)90.5 (+4.6)
Qwen2.5-14B68.0 (+12.3)85.8 (+10.5)94.0 (+1.1)93.4 (+1.8)

Table 4. RL accuracy (%) on the test set averaged across three different random seeds. Changes in parentheses compare GRPOr_r with GRPOt_t for the same model.

Rule utility beyond trace length

We conduct two analyses to test whether the benefits of GRPOr_r extend beyond just producing shorter traces. First, we constrain the length of GRPOt_t to match the concise reasoning traces of GRPOr_r on HiToM because it exhibits the largest average trace length gap (GRPOr_r 29.5; GRPOt_t 71.4) (prompt in Appendix § 6.§ 2). Although shorter reasoning modestly improves performance, GRPOr_r consistently outperforms both long (GRPOt_t) and short (GRPOts_{ts}) free-form thinking as described in Table 5 (token length in Figure 4).

ModelGRPOt_tGRPOts_{ts}GRPOr_r
0.5B11.110.617.8
1.5B33.934.446.1
3B32.235.046.7
7B44.446.160.0
14B56.761.165.6

Table 5. HiToM accuracy (%) under random seed 42. GRPOt_t denotes the long-thinking model, GRPOts_{ts} the short-thinking model, and GRPOr_r the rule-generation model.

Figure 4. Average number of tokens used to produce “rule” vs. “think_short” vs. “think” reasoning on HiToM benchmark

Second, we pass rule traces in the story context to GPT-4o-mini and measure the effect on its downstream accuracy, following Lu et al. [8]. Figure 2 shows a scale-dependent transfer pattern. Rules generated by smaller models (≤\leq1.5B) reduce downstream accuracy, while the rules from larger models improve it (except 3B model for HiToM). This suggests that smaller models can produce rules that support their own generation, but lack a valid logical structure and are less transferable (qualitative analysis in Appendix § 10). In contrast, larger models tend to generate more reliable rules that can be utilized by a downstream model.

Downstream accuracy bar chart

Figure 2. Downstream accuracy (%) of GPT-4o-mini augmented with rules generated by each GRPOr_r models. Dashed line denotes GPT-4o-mini no-rule baseline.

Conclusion

We show that instructing LLMs to generate perception-belief-action rules improves ToM reasoning, whereas supervised rule imitation does not reliably improve answer prediction. GRPO with rule generation achieves the strongest accuracy with shorter traces than free-form GRPO reasoning, and rules from larger models improve downstream accuracy on GPT-4o-mini. These findings suggest that structured rule generation is effective when jointly optimized with answer correctness.

Limitations

Our experiments cover four controlled ToM benchmarks, so the results may not generalize to benchmarks that assess ToM in more naturalistic settings. Moreover, our reward function verifies output format and answer correctness but does not directly evaluate whether a generated rule is semantically correct, or causally used for predicting the answer. Models could therefore produce uninformative rules while receiving a high reward. The observed gains may have been coming from encouraging concise intermediate traces [10] (Renze and Guven 2024; Xu et al. 2025) or from the use of structured reasoning templates, which have been shown to be particularly beneficial for smaller models (Wu et al., 2026).

Ethical Considerations

Our work could introduce potential risks including overreliance on models’ predictions of human beliefs and intentions, and the possible use of improved social reasoning for manipulation. Generated rules may also appear credible without being semantically correct or faithfully explaining model predictions. Benchmark improvements should therefore not be interpreted as evidence of reliable mental-state understanding in real world settings.

Acknowledgements

This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (ERC Starting Grant “Individualized Interaction in Discourse”, grant agreement No. 948878). We gratefully acknowledge the stimulating research environment of the GRK 2853/1 “Neuroexplicit Models of Language, Vision, and Action”, funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under project number 471607914. We also acknowledge the support from a Short-Term Scientific Mission (STSM) grant provided by European Cooperation in Science and Technology (COST Action, CA23147).

Benchmark details

Table 6 summarizes the structure of five ToM benchmarks. Each dataset varies examples along multiple factors, including task condition, belief or action type, question order, and character observations or personality. The benchmarks also differ in their answer formats, BigToM, HiToM, and OpenToM use discrete choice answers, and ToMi uses open-ended predictions. Table 7 describes the train and development splits proportions used for a warm-up SFT before GRPO rules training.

BenchmarkFactorsAnswer format
BigToMcondition x belief/action type x initial belief (#25)Choose (a) or (b) from two options
HiToMdeception x story length x question order (#30)One letter from 16 options
ToMifalse-belief order x question type (#16)Open-ended location string
OpenToMcondition x observed x personality (#12)Yes/No

Table 6. Benchmark stratification factors and answer formats. #N denotes the number of possible factor combinations.

DatasetSFT (format) warm-up
BigToM100 (75:25)
HiToM100 (70:30)
ToMi100 (83:17)
OpenToM100 (80:20)

Table 7. SFT format warm-up splits (train:development).

Prompts

Rule generation

Rule generation

You are an expert in Theory of Mind rules. Your task is: given a story and a question, generate a rule that helps answer ToM question correctly. Requirements to the rule:

  • Must use an IF ... THEN structure.

  • IF and THEN should be causally related.

  • Must be exactly one sentence.

  • The rule can contain several conditions: e.g. IF A AND B, THEN D.

  • The rule should contain only necessary and sufficient conditions to arrive at the decision. If some conditions are redundant, do not include them.

  • Must be relevant to the story and its context: for example, use the names of characters and objects from the story.

  • Must NOT simply name the answer in THEN clause: instead, capture the logic of arriving at the answer.

  • Must be concise and not wordy.

Output only your answer in the following JSON format and nothing else: { “rule”: "MUST be a single sentence in explicit ‘IF ... THEN ...’ form.", Input: Story: {} Question: {} Answer choices: {} (optional) Rule:

Rule validation

Read the following story and answer the question. Apply the provided rule to arrive at the answer.

Output only your answer in the following JSON format and nothing else: { "answer": "only output the answer to the question (either yes/no or a short location string, depending on the question)." } Story: {} Question: {} Rule: {} Answer:

Prompts for training and evaluation

Base

You are a reasoning system designed to solve Theory-of-Mind questions. You will be given a STORY and a QUESTION. Your task is to output ONLY a JSON object with an “answer” field: { “answer”: “The final answer” } OUTPUT REQUIREMENTS:

  • The “answer” field must contain only the final answer (a letter for multiple choice, or a short location string for open-ended questions).

  • Output only JSON with an “answer” field, and no other text.

Base+rule

You are a reasoning system designed to solve Theory-of-Mind questions. Your task is to read a STORY and a QUESTION, then produce a JSON object with two fields: { “rule”: “A rule that helps answer the question”, “answer”: “The final answer” } OUTPUT REQUIREMENTS:

  • The “rule” field should contain a rule in this form: If ..., then .... After “if”, put the condition(s) that are necessary to answer the question. After "then", put the conclusion that leads to the correct answer.

  • The rule should be concise, sufficient, and helpful to answer the question correctly.

  • The “answer” field MUST contain ONLY the final answer, which MUST be only the location itself (a few words, no explanation).

System prompt for GRPO rule

You are a reasoning system designed to solve Theory-of-Mind questions. Your task is to read a STORY and a QUESTION, then produce a JSON object with two fields: { “rule”: "A rule that helps answer the question", “answer”: “The final answer” } OUTPUT REQUIREMENTS:

  • The “rule” field should contain a rule in this form: If ..., then .... After “if”, put the condition(s) that are necessary to answer the question. After “then”, put the conclusion that leads to the correct answer.

  • The rule should be concise, sufficient, and helpful to answer the question correctly.

  • The “answer” field MUST contain ONLY the final answer (a correct letter if it is a multiple choice question, or the short location string if it is an open-ended question).

  • Output only JSON with “rule” and “answer” fields, and no other text.

System prompt for GRPO think

You are a reasoning system designed to solve Theory-of-Mind questions. Your task is to read a STORY and a QUESTION, then produce a JSON object with two fields: { “think”: “Your reasoning in response to the question”, “answer”: “The final answer” } OUTPUT REQUIREMENTS:

  • The “think” field must contain your step-by-step reasoning about the question. Use it to arrive at the correct answer in “answer”.

  • The “answer” field MUST contain ONLY the final answer (a correct letter if it is a multiple choice question, or the short location string if it is an open-ended question).

  • Output only JSON with the “think” and “answer” fields, and no other text.

System prompt for GRPO think (short traces)

You are a reasoning system designed to solve Theory-of-Mind questions. Your task is to read a STORY and a QUESTION, then produce a JSON object with two fields: { “think”: “Your reasoning in response to the question”, “answer”: “The final answer” } OUTPUT REQUIREMENTS:

  • The reasoning in "think" field should be concise (ideally one sentence), sufficient, and helpful to answer the question correctly.

  • The “answer” field MUST contain ONLY the final answer (a correct letter if it is a multiple choice question, or the short location string if it is an open-ended question).

  • Output only JSON with the “think” and “answer” fields, and no other text.

Validation of the generated rules

We use medium to high reasoning for rule generation and low to medium reasoning for question answering to better match the limited capabilities of the small models we evaluate. Table 8 describes the number of valid rules for each split.

DatasetTrainingWarm-up
BigToM3488:188:88472:23
HiToM533:146:14455:23
ToMi1570:164:39370:15
OpenToM1668:198:41680:20

Table 8. Number of validated rules based on train, (dev), test splits.

Effect of SFT warm-up on GRPO performance

To control for the effect of SFT warm-up on GRPO to rule, we compare GRPO to think (GRPOt_t) with GRPO to rule without warm-up (GRPOrns_{rns}). As in Table 9, GRPOrns_{rns} broadly matches or exceeds GRPOt_t, improving the mean accuracy by 0.84 points across the models and benchmarks. GRPO rules with SFT warmup additionally exceeds GRPOrns_{rns} by 5.95 points on average.

ModelBigToMHiToMToMiOpenToM
GRPOt_t
Qwen2.5-0.5B75.311.170.265.1
Qwen2.5-1.5B86.433.970.253.4
Qwen2.5-3B91.532.268.979.3
Qwen2.5-7B93.244.469.887.5
Qwen2.5-14B91.956.775.192.1
GRPOrns_{rns}
Qwen2.5-0.5B76.4 (+1.1)10.0 (-1.1)70.254.1 (-11.0)
Qwen2.5-1.5B86.0 (-0.4)38.9 (+5.0)62.6 (-7.6)53.8 (+0.4)
Qwen2.5-3B90.3 (-1.2)38.9 (+6.7)75.9 (+7.0)83.7 (+4.4)
Qwen2.5-7B90.7 (-2.5)45.6 (+1.2)76.5 (+6.7)88.5 (+1.0)
Qwen2.5-14B93.9 (+2.0)58.9 (+2.2)78.4 (+3.3)91.6 (-0.5)

Table 9. Accuracy (%) of GRPOt_t and GRPOns_{ns}. Changes in parentheses compare GRPOns_{ns} with GRPOt_t for the same model.

Reasoning trace length analysis

We first compare the average number of tokens used in “rule” and “think” traces for each model and dataset (see Figure 3). We find that the mean length of “think” reasoning is on average 1.9 times larger, with the biggest difference in Qwen 3B (“think” traces are on average 2.41 times longer than “rule” traces).

Figure 3. Average number of tokens used to produce “rule” vs. “think” reasoning

In GRPO think_short condition, where we instruct the models to stick to one-sentence long “think” traces, the average reasoning length on the HiToM benchmark reached 25.5 tokens, compared to 29.45 tokens in GRPO rule traces, and 68.61 tokens in the original GRPO think traces (Figure 4).

Qualitative analysis for generated rules from small models

We qualitatively analyze the rules generated by small models (≤1.5\leq1.5B). We find that these models often produce rules that conform to the surface structure of ‘if-then’ statements but lack semantic coherence or relevance to the question, linking unrelated story elements or asserting nonsensical relationships (examples in Table 11). Models also frequently failed to incorporate the queried agent’s perspective into their reasoning traces, even when their final answers were correct.

Generalization to Llama family

In order to test whether our results generalize beyond the Qwen2.5-Instruct family, we ran the same experiments on three Llama models (Llama-3.2-1B-Instruct, Llama-3.2-3B-Instruct, and Llama-3.1-8B-Instruct). We use the same training hyperparameters as for the Qwen family. The results show that GRPOr_r outperforms other conditions in most models and benchmarks, except for Llama-3.2-1B in OpenToM (Table 10).

ModelBaseSFTr_rSFTa_aGRPOr_rGRPOt_t
HiToM
Llama-3.2-1B10.011.715.641.715.6
Llama-3.2-3B24.430.034.451.136.7
Llama-3.1-8B33.941.146.765.658.9
ToMi
Llama-3.2-1B44.061.169.679.573.4
Llama-3.2-3B32.663.271.781.661.7
Llama-3.1-8B55.471.278.085.678.4
BigToM
Llama-3.2-1B28.378.679.989.885.4
Llama-3.2-3B69.385.588.092.590.4
Llama-3.1-8B83.189.493.394.593.2
OpenToM
Llama-3.2-1B47.453.664.253.653.4
Llama-3.2-3B57.773.874.888.771.6
Llama-3.1-8B56.785.383.993.088.9

Table 10. Llama answer accuracy. Highlighted with bold is the best performing training regime for the given model and benchmark.

Dataset: HiToM

Story 1 Jackson, Charlotte, Avery, Liam and Benjamin entered the cellar. 2 The corn is in the blue_treasure_chest. 3 Jackson made no movements and stayed in the cellar for 1 minute. 4 Jackson exited the cellar. 5 Charlotte moved the corn to the green_crate. 6 Charlotte exited the cellar. 7 Avery likes the blue_bathtub. 8 Avery made no movements and stayed in the cellar for 1 minute. 9 Avery exited the cellar. 10 Liam made no movements and stayed in the cellar for 1 minute. 11 Liam exited the cellar. 12 Benjamin made no movements and stayed in the cellar for 1 minute. 13 Benjamin exited the cellar. 14 Jackson, Charlotte, Avery, Liam and Benjamin entered the waiting_room.

Question Where does Jackson think Benjamin thinks the corn is?

Correct answer blue_treasure_chest

Gold rule IF Jackson left the cellar before Charlotte moved the corn AND Benjamin witnessed Charlotte move the corn, THEN Jackson will believe that Benjamin believes the corn is at the location Benjamin saw Charlotte place it.

Rules

Qwen2.5-0.5B “If Jackson made no movements and stayed in the cellar for 1 minute, then Jackson thinks the corn is in the blue_treasure_chest.”

Qwen2.5-3B “If someone last saw an object in a place, they believe others also last saw it there unless they have reason to know otherwise, then the last seen place of the object is where they think others think it is.”

Qwen2.5-14B “If Jackson saw the corn in the blue_treasure_chest before exiting the cellar and did not see any movement of the corn after he left, and Benjamin never entered the cellar, then Jackson thinks Benjamin thinks the corn is in the blue_treasure_chest.”

Think

Qwen2.5-0.5B "Jackson thought Benjamin thought the corn was in the blue_treasure_chest."

Qwen2.5-3B "Jackson last saw the corn in the blue_treasure_chest. Since he left the cellar before Benjamin did, he would not have seen Benjamin move the corn. Therefore, Jackson thinks Benjamin still thinks the corn is in the blue_treasure_chest."

Qwen2.5-14B "Jackson was in the cellar when the corn was initially in the blue_treasure_chest. He left before Charlotte moved the corn to the green_crate. Since Jackson did not witness the move, he would think the corn is still in the blue_treasure_chest. Benjamin also did not see the move as he entered after Charlotte had already moved the corn. Therefore, Benjamin would think the corn is in the green_crate. However, since we need to determine what Jackson thinks Benjamin thinks, Jackson would assume that Benjamin thinks the corn is where Jackson last saw it, which is the blue_treasure_chest."

Dataset: ToMi

Story 1 Hannah entered the patio. 2 Noah entered the patio. 3 The sweater is in the bucket. 4 Noah exited the patio. 5 Ethan entered the study. 6 Ethan exited the study. 7 Hannah moved the sweater to the pantry.

Question Where will Noah look for the sweater?

Correct answer bucket

Gold rule IF Noah was present when the sweater was in the bucket AND Noah left before Hannah moved the sweater to the pantry THEN Noah will look in the location where he last observed the sweater.

Rules

Qwen2.5-0.5B “If Noah enters the patio, he will enter the bucket.”

Qwen2.5-3B “If Noah entered before Hannah moved the sweater, then Noah will look in the bucket.”

Qwen2.5-14B “If Noah exits before Hannah moves the sweater, then Noah will look for the sweater where it was last known to be.”

Think

Qwen2.5-0.5B "Noah will look for the sweater in the bucket."

Qwen2.5-3B "Noah last entered the patio before he exited. Since the sweater was moved from the bucket to the pantry by Hannah after Noah left, Noah would not know about this move. Therefore, Noah would still look for the sweater in the bucket."

Qwen2.5-14B "Noah was present in the patio when the sweater was initially in the bucket (lines 2 and 3). After that, Noah left the patio (line 4), and Hannah moved the sweater from the bucket to the pantry (line 7). Since Noah did not witness the sweater being moved to the pantry, he would likely still think it is in the bucket where he last saw it."

Dataset: BigToM

Story Tanya is a software engineer working on a new mobile application. She wants to ensure that the application runs smoothly and is free of bugs before launching it to the public. Tanya observes that the app’s code appears to be well-structured and free of errors. Tanya believes the app’s code is well-structured and free of errors. A coworker brings in donuts for the office. Tanya notices the donuts. Tanya proceeds with testing the application.

QuestionDoes Tanya believe the app’s code is well-structured and free of errors or corrupted due to a server malfunction? Choose one: (a) Tanya believes the app’s code is corrupted due to a server malfunction. (b) Tanya believes the app’s code is well-structured and free of errors.
Correct answer(b) Tanya believes the app’s code is well-structured and free of errors.
Gold ruleIF Tanya, based on her observation, regards the app’s code as well-structured and free of errors, THEN she will treat the code as functioning correctly and not as compromised by a server malfunction.
Rules
Qwen2.5-0.5B“If Tanya notices the donuts, then Tanya believes the app’s code is well-structured and free of errors.”
Qwen2.5-3B“If Tanya observes the app’s code and believes it is well-structured and free of errors, then Tanya believes the app’s code is well-structured and free of errors.”
Qwen2.5-14B“If Tanya observes that the app’s code appears to be well-structured and free of errors and she believes the app’s code is well-structured and free of errors, then Tanya believes the app’s code is well-structured and free of errors.”
Think
Qwen2.5-0.5B"Tanya observes that the app’s code appears to be well-structured and free of errors."
Qwen2.5-3B"Tanya initially observed that the app’s code appears to be well-structured and free of errors. This belief is stated directly in the story: ’Tanya believes the app’s code is well-structured and free of errors.’ Therefore, Tanya does not believe the app’s code is corrupted due to a server malfunction."
Qwen2.5-14B"From the story, we know that Tanya observes the app’s code to be well-structured and free of errors, and she believes this as well. There is no mention of any server malfunction affecting the code. Therefore, based on the information provided, Tanya believes the app’s code is well-structured and free of errors."
Dataset: OpenToM
StorySimon and Anderson were roommates with very different tastes. Simon couldn’t stand the sight of pears, while Anderson had a fondness for their juicy sweetness. One day, both Simon and Anderson found themselves in the bedroom at the same time. Their eyes were drawn to the pantry, where a lone pear sat, seemingly forgotten. Anderson left the room momentarily, only to return a few moments later. To his surprise, the pear was no longer in the pantry. Simon, despite his aversion to pears, was a considerate person. Knowing that Anderson enjoyed them, he had taken it upon himself to move the pear to the dining table. He hoped that by placing it in a more visible and tempting location, his roommate would be enticed to savor the fruit. Anderson, witnessing this kind gesture, couldn’t help but feel touched by Simon’s selflessness.
QuestionFrom Anderson’s perspective, is the pear in its initial location by the end of the story?
Correct answerNo
Gold ruleIF Anderson saw the pear in the pantry, left the room, and upon returning did not see the pear in the pantry, THEN from Anderson’s perspective the pear is no longer in its initial pantry location.
Rules
Qwen2.5-0.5B"If Simon moved the pear to the dining table, then Anderson felt touched by Simon’s selflessness."
Qwen2.5-3B"If Anderson returned to the room after Simon moved the pear, then the pear was not in its initial location."
Qwen2.5-14B"If Simon moved the pear from the pantry to the dining table, then the pear is not in its initial location by the end of the story."
Think
Qwen2.5-0.5B"Anderson moved the pear to a more visible and tempting location."
Qwen2.5-3B"Anderson returned to the room after a few moments and found the pear not in the pantry. Since Simon moved the pear to the dining table, and Anderson did not move it back, we can conclude that the pear is not in its initial location."
Qwen2.5-14B"Anderson initially saw the pear in the pantry. When he returned, the pear was gone. Simon moved the pear to the dining table out of consideration for Anderson. Therefore, from Anderson’s perspective, the pear is not in its initial location by the end of the story."

References

  1. [1]Chris Baker, Rebecca Saxe, and Joshua Tenenbaum. 2011. Bayesian theory of mind: Modeling joint belief-desire attribution. In Proceedings of the annual meeting of the cognitive science society, volume 33.
  2. [2]Kun Chen, Peng Shi, Haibo Qiu, Zhixiong Zeng, Siqi Yang, Wenji Mao, and Lin Ma. 2026. Specs: Decoupling multimodal learning via self-distilled preference-based cold start. In The Fourteenth International Conference on Learning Representations.arxiv.org/abs/2510.25801
  3. [3]Kanishk Gandhi, Jan-Philipp Fränken, Tobias Gerstenberg, and Noah Goodman. 2023. Understanding social reasoning in language models with language models. Advances in Neural Information Processing Systems, 36:13518–13529.arxiv.org/abs/2306.15448
  4. [4]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Matur, Alan Schleten, Alex Vaughan, and 1 others. 2025. The llama 3 herd of models.arxiv.org/abs/2407.21783
  5. [5]Yuling Gu, Oyvind Tafjord, Hyunwoo Kim, Jared Moore, Ronan Le Bras, Peter Clark, and Yejin Choi. 2026. Simpleton: Exposing the gap between explicit tom inference and implicit tom application in llms. In International Conference on Learning Representations, volume 2026, pages 50252–50297.
  6. [6]Cecilia M Heyes and Chris D Frith. 2014. The cultural evolution of mind reading. Science, 344(6190):1243091.DOI
  7. [7]Matthew Le, Y-Lan Boureau, and Maximilian Nickel. 2019. Revisiting the evaluation of theory of mind through question answering. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5872–5877.DOI
  8. [8]Yi-Long Lu, Chunhui Zhang, Jiajun Song, Lifeng Fan, and Wei Wang. 2025. Do theory of mind benchmarks need explicit human-like reasoning in language models? arXiv preprint arXiv:2504.01698.arxiv.org/abs/2504.01698
  9. [9]Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah A Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 5687–5711.arxiv.org/abs/2210.03350
  10. [10]Nathanaël Carraz Rakotonirina, Ren Pang, Neha Anna John, Michael Bohlke-Schneider, and Momchil Hardalov. 2026. Correct, concise and complete: Multi-stage training for adaptive reasoning. In Findings of the Association for Computational Linguistics: ACL 2026, pages 12798–12810, San Diego, California, United States. Association for Computational Linguistics.

Paper details

vlnc:W_rb3kvbgc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents