Abstract
Recent advances in reasoning-enhanced Large Language Models such as OpenAI-o1/3 and DeepSeek-R1 have significantly improved performance on complex tasks. However, the quality and transparency of their internal reasoning processes remain underexplored. This work moves beyond the final-answer accuracy and investigates step-by-step reasoning in the medical and mathematical domains by explicitly decomposing the thinking trajectories into two parts: knowledge and reasoning. Specifically, we introduce a fine-grained evaluation framework that judges: (1) the correctness of knowledge used (measured by Knowledge Index (KI)) and (2) the quality of reasoning (measured by Information Gain (InfoGain)). Using this framework, we study R1-distilled and base Qwen models trained with supervised fine-tuning (SFT) and/or reinforcement learning (RL) in the medical and math domains. Three intriguing findings emerge: (1) The general reasoning abilities in R1-distilled models do not transfer effectively to the medical domain through either SFT or RL. (2) SFT raises final-answer accuracy in both domains, but often at the cost of reasoning quality: InfoGain drops by 38.9% on average compared with untrained models; In the medical domain, however, SFT remains crucial because domain knowledge is indispensable. (3) RL enhances medical reasoning by pruning inaccurate or irrelevant knowledge from reasoning paths, thereby improving both reasoning accuracy and knowledge correctness.
Introduction
We have entered the era of "reasoning models" like OpenAI’s o1 and DeepSeek-R1. Unlike previous generations, these models generate explicit step-by-step thinking trajectories before arriving at a final answer. However, evaluating these models solely on final-answer accuracy creates a black-box problem: it is unclear whether a model succeeded due to robust logical deduction or simply by recalling a memorized fact. Conversely, failures could stem from either a lack of domain knowledge or a breakdown in logic. This research introduces a framework to decompose these trajectories, providing transparency into the interplay between knowledge and reasoning in high-stakes domains like medicine and mathematics.
The Evaluation Framework
To "peek under the hood" of LLM thinking, the researchers developed two novel metrics to evaluate discrete steps in a reasoning chain:
- Knowledge Index (KI): Measures factual correctness. The framework extracts knowledge points from each step, verifies them against a medical database, and uses GPT-4o to judge consistency with ground truth.
- Information Gain (InfoGain): Measures reasoning efficiency. This metric calculates how much each step reduces the uncertainty (perplexity) of the correct final answer. High InfoGain indicates a meaningful logical leap, while low InfoGain suggests redundancy or "yapping."
Training Dynamics: SFT vs. RL
The study compared Qwen2.5-7B and DeepSeek-R1-Distill-Qwen-7B across base, SFT, and RL training stages. The results reveal a striking trade-off in training methodologies:
- The "SFT Tax": While Supervised Fine-Tuning (SFT) is highly effective at teaching models domain-specific facts, it often degrades reasoning quality. SFT-trained models tend to become verbose and repetitive, with InfoGain dropping by an average of 38.9% compared to base models.
- RL as a Logical Pruner: Reinforcement Learning (RL) acts as a filter rather than a teacher. It trains the model to discard reasoning paths that rely on incorrect knowledge or lead to dead ends. In the medical domain, RL improved the Knowledge Index by 12.4 points by reinforcing only the correct trajectories.
Domain-Specific Insights
The research highlights fundamental differences between the medical and mathematical domains:
- Knowledge vs. Logic: In medicine, factual correctness (KI) is the primary driver of final accuracy. In mathematics, reasoning efficiency (InfoGain) is more critical.
- Transferability: General reasoning capabilities found in R1-distilled models do not transfer easily to specialized fields. Qwen-Base models fine-tuned on medical data consistently outperformed R1-distilled versions in medical accuracy (60.02% vs 31.48%), suggesting that domain knowledge is a prerequisite for effective reasoning in professional fields.
Conclusion
This work demonstrates that high accuracy can mask inefficient or redundant reasoning. While SFT is necessary for knowledge acquisition, RL is essential for "cleaning up" the logic. Future work will extend this decomposition to other structured domains like Law and Finance to further explore the delicate balance between external facts and internal logic.
Summary updated