Abstract
Reinforcement finetuning (RFT) has become a standard approach for enhancing the reasoning capabilities of large language models (LLMs). However, its impact on model trustworthiness remains underexplored. In this work, we identify and systematically study a critical side effect of RFT, which we term the hallucination tax: a degradation in refusal behavior causing models to produce hallucinated answers to unanswerable questions confidently. To investigate this, we introduce SUM (Synthetic Unanswerable Math), a high-quality dataset of unanswerable math problems designed to probe models' ability to recognize an unanswerable question by reasoning from the insufficient or ambiguous information. Our results show that standard RFT training could reduce model refusal rates by more than 80%, which significantly increases model's tendency to hallucinate. We further demonstrate that incorporating just 10% SUM during RFT substantially restores appropriate refusal behavior, with minimal accuracy trade-offs on solvable tasks. Crucially, this approach enables LLMs to leverage inference-time compute to reason about their own uncertainty and knowledge boundaries, improving generalization not only to out-of-domain math problems but also to factual question answering tasks.
Introduction: The Cost of Reasoning
In the pursuit of building "thinking" models, researchers have leaned heavily on Reinforcement Finetuning (RFT). By rewarding models for reaching correct final answers through long chains of thought, we have seen massive gains in complex domains like mathematics and coding. However, this progress comes with a hidden "hallucination tax." Because standard RFT rewards the correct answer and rarely penalizes a model for failing to admit it is stumped, the model learns that any answer is better than no answer. This results in a collapse of refusal behavior: when faced with questions missing information or containing logical contradictions, RFT-trained models often hallucinate plausible-sounding but fabricated solutions.
The SUM Dataset and Methodology
To address this degradation, we introduce Synthetic Unanswerable Math (SUM). Using a high-reasoning model (o3-mini), we systematically "broke" existing math problems from the DeepScaleR dataset using five criteria:
- Key information deletion: Removing a necessary variable.
- Ambiguity: Using vague terms or ranges.
- Unrealistic conditions: Creating scenarios that defy logic.
- Unrelated objects: Asking about subjects not mentioned in the prompt.
- Question deletion: Removing the actual "ask" from the text.
During the RFT process (using PPO), we implemented a modified reward function. The model received a positive reward (+1) for a correct answer on a solvable problem or for responding with "I don't know" on an unanswerable one. Conversely, it was penalized (-1) for refusing a solvable problem.
Restoring Epistemic Humility
Our experiments show that standard RFT can reduce a model's refusal rate by more than 80%. However, incorporating just a 10% mix of SUM data into the training process is sufficient to restore refusal behavior. This training enables the model to use its inference-time reasoning steps to analyze the validity of a question rather than just solving for a variable.
Key Results and Generalization
- Refusal Recovery: On the UMWP dataset, the refusal rate for Qwen2.5-7B jumped from 0.01 (standard RFT) to 0.81 (RFT with 10% SUM).
- Minimal Performance Loss: Accuracy on standard benchmarks like GSM8K remained nearly identical, proving that honesty does not require a sacrifice in capability.
- Cross-Domain Generalization: Training on unanswerable math problems improved the model's ability to refuse unanswerable factual questions (e.g., "Where are all the aliens located?"). This suggests the model is learning a meta-skill of "epistemic uncertainty"—checking premises before attempting a solution.
Conclusion
The "hallucination tax" is a significant hurdle in the development of reliable reasoning models. By integrating unanswerable scenarios into the reinforcement learning loop, we can move beyond models that are merely "smart" to models that are also "honest," capable of recognizing the boundaries of their own knowledge.
Summary updated