Mitigating Query Shortcuts in Chain-of-Thought with Context-Aware Decoding
Organizations: NTT
Abstract
While Chain-of-Thought (CoT) prompting improves the reasoning performance of large language models (LLMs), recent studies have shown that final answers do not always depend on the generated rationales. In particular, LLMs may rely on query-specific shortcuts rather than the information provided by their reasoning steps. In this paper, we investigate whether context-aware decoding (CAD), an existing contrastive decoding method, can mitigate such shortcut behavior when applied to CoT reasoning. We study this application as Rationale Contrastive Decoding (RCD), which contrasts the next-token distributions conditioned on the query with and without its rationale, amplifying tokens whose likelihood increases due to the rationale. We provide a theoretical interpretation of this decoding rule via a KL-regularized reward-maximization objective. Experiments across five reasoning benchmarks demonstrate that RCD improves answer accuracy over standard CoT. Furthermore, intervention analyses using ground-truth and random rationales reveal that RCD increases the behavioral dependence of final answers on the rationale content. Our findings suggest that contrastive decoding offers a simple, training-free approach to mitigating query shortcuts.
Figures & tables
| GSM8K | |||
|---|---|---|---|
| Self ( ) | GT ( ) | Random ( ) | |
| Qwen3-8B | |||
| Direct | 50.14 .17 | ||
| CoT | 89.16 .13 | 94.93 .04 | 43.35 .03 |
| Logit Addition | 81.26 .40 | 83.41 .68 | 50.82 .72 |
| RCD | 89.91 .28 | 95.82 .01 | 27.79 .03 |
| GSM8K | MATH | CommonsenseQA | AQuA-RAT | MMLU-Pro | |
|---|---|---|---|---|---|
| Qwen3-8B | |||||
| Direct | 50.14 .17 | 1.73 .23 | 71.27 .81 | 58.88 .74 | 35.29 .48 |
| CoT | 89.16 .13 | 17.20 .35 | 78.29 .53 | 68.50 .68 | 50.24 .52 |
| Logit Addition | 81.26 .40 | 15.59 .66 | 77.19 .56 | 63.38 .53 | 48.62 .65 |
| RCD | 89.91 .28 | 27.60 .51 | 80.13 .47 | 70.41 .40 | 52.28 .41 |
| Rationale | CoT Acc. | RCD Acc. | Wrong Correct | Correct Wrong |
|---|---|---|---|---|
| Qwen3-8B | ||||
| Correct ( =1,201) | 97.25 | 98.08 | 10/33 (30.30%) | 0/1,168 (0.00%) |
| Incorrect ( =118) | 6.78 | 6.78 | 0/110 (0.00%) | 0/8 (0.00%) |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Artifact | Type | License / Terms |
|---|---|---|
| GSM8K | Dataset | MIT License |
| MATH | Dataset | MIT License |
| CommonsenseQA | Dataset | MIT License |
| AQuA-RAT | Dataset | MIT License |
| MMLU-Pro | Dataset | Apache License 2.0 |
| Qwen3 | Model | Apache License 2.0 |
| GSM8K | |||
| Model | Direct | CoT | RCD |
| Qwen3-0.6B | 23.49 .11 | 47.44 .18 | 47.96 .22 |
| Qwen3-8B | 50.14 .17 | 89.16 .13 | 89.91 .28 |
| Qwen3-14B | 38.38 .43 | 89.61 .22 | 90.31 .20 |
| Qwen3-32B | 48.23 .37 | 91.31 .33 | 93.27 .28 |
| Gemma3-4B | 8.59 .03 | 80.69 .13 | 81.93 .03 |
| Latency (s/query) | Peak VRAM (GB) | |
|---|---|---|
| Qwen3-8B | ||
| Direct | 1.506 | 15.33 |
| CoT | 2.823 | 15.64 |
| RCD | 2.864 | 15.86 |
| Method | Accuracy (%) | Latency (s/query) | |
|---|---|---|---|
| CoT | 1 | 89.16 | 2.82 |
| RCD | 1 | 89.91 | 2.86 |
| SC | 3 | 89.58 | 8.63 |
| SC + RCD | 3 | 90.79 | 8.65 |
CoT Reasoning
Chain-of-thought (CoT) reasoning studies how language models use intermediate steps, visible or latent, to solve multi-step tasks.
See all 228 papers