Introduction
Language models (LMs) frequently achieve high accuracy on training data by exploiting superficial shortcuts rather than internalizing underlying logic. This "shortcut learning" leads to a significant generalization gap when models encounter Out-of-Distribution (OOD) scenarios. This research investigates whether increasing the granularity of Chain-of-Thought (CoT) data—providing detailed intermediate reasoning steps rather than just final answers—can bridge this gap in complex compound tasks requiring multi-step planning.
Methodology
The study employed a multi-faceted approach to analyze the impact of reasoning detail on model performance:
- CoT Granularity Manipulation: Using "probabilistic CoT dropout," datasets were generated with varying levels of detail (e.g., 30%, 70%, 100% of intermediate steps retained).
- Distribution Shift Testing: Models were trained on specific complexity levels and evaluated on unseen intermediate levels to measure true OOD generalization.
- The Recap Condition: A structural requirement was introduced where subtask conditions are repeated within long CoT sequences to mitigate the effects of finite attention precision in transformers.
Experimental Framework
The study utilized three synthetic compound reasoning tasks designed to simulate real-world logic:
- Longest Increasing Subsequence (LIS): Identifying the length of the longest upward trend in integer strings.
- Multi-Step Path Counting (MPC): Calculating unique paths to a goal under specific constraints.
- Equation Restoration and Variable Calculation (ERVC): Solving linear systems from partial observations.
These tasks allow for precise control over problem complexity, facilitating rigorous OOD testing.
Results and Analysis
The experiments revealed a stark contrast between In-Distribution and OOD performance, particularly for models trained on simple question-answer (QA) pairs.
The "QA Trap"
Models trained without intermediate steps (COT 0%) achieved near-perfect training accuracy but failed catastrophically on OOD data, often dropping to ~10% accuracy. Scaling the training set to 10 million examples did not resolve this issue; the models simply became more efficient at memorizing shortcuts rather than learning the underlying task logic.
Granularity as a Generalization Lever
A strong correlation exists between CoT granularity and OOD success. As shown in the comparative plots, increasing the percentage of reasoning steps directly improves the model's ability to navigate novel problem structures. Furthermore, high-granularity CoT proved highly sample-efficient, matching the performance of QA-trained models while using significantly less data.
The Necessity of Recapping
In long reasoning chains, the "Recap Condition" proved vital. In the ERVC task, models trained with the recap condition achieved 0.947 OOD accuracy, compared to just 0.126 for those without it. This validates the theoretical requirement that explicitly repeating constraints is necessary for maintaining information flow over long contexts.
Conclusion
This research demonstrates that CoT granularity is a critical lever for model generalization. By forcing models to learn the reasoning process rather than just the final result, CoT training effectively mitigates shortcut learning and enables robust performance on OOD tasks. Future work will focus on automating the generation of high-quality CoT data and exploring dynamic granularity adjustments based on task difficulty.
Summary updated