arXiv:2610.29518cs.CLOct 2026

Manuscript Offprint

arXiv:2610.29518

Mitigating Query Shortcuts in Chain-of-Thought with Context-Aware Decoding

Shin'ya Yamaguchi

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.

1 Introduction

Chain-of-Thought (CoT) prompting (Wei et al., 2022; Kojima et al., 2022) has emerged as an effective inference strategy for improving the reasoning performance of Large Language Models (LLMs). By generating multiple intermediate reasoning steps, or rationales, before producing a final answer, CoT enables LLMs to solve complex problems. Beyond improving task performance, these rationales are often interpreted as explanations of the model's predictions. However, recent studies have revealed that generated rationales do not necessarily reflect the actual decision-making process (Turpin et al., 2023; Arcuschin et al., 2025; Lewis-Lim et al., 2025). In particular, LLMs may rely on shortcut information directly from the input query, even when their rationales suggest a different conclusion. Such query-shortcut behavior weakens the behavioral dependency between rationales and final answers, raising concerns about the reliability of CoT.

Prior research has investigated this issue by rationale interventions that measure whether changes to reasoning steps affect final predictions (Lanham et al., 2023; Turpin et al., 2023) or improving rationale reliability with additional supervision or rationale selection (Paul et al., 2024; Sun et al., 2026). While these studies provide important insights, a complementary question is whether query-shortcut behavior can be mitigated directly during answer decoding, without modifying model parameters or employing external evaluators. In standard CoT decoding, the query and generated rationale are jointly provided as context for next-token prediction. However, this formulation does not explicitly distinguish the contributions of the query and the rationale, allowing the model to generate answers primarily from query-conditioned predictions.

In this work, we investigate the application of Context-Aware Decoding (CAD) (Shi et al., 2024) to mitigate query-shortcut behavior in CoT. CAD is an established contrastive decoding approach originally developed to prioritize contextual evidence over a model's parametric knowledge. We examine whether the same principle can encourage LLMs to rely more heavily on self-generated rationales during decoding. Specifically, we study Rationale Contrastive Decoding (RCD), an application of CAD in which the context part is a CoT rationale rather than an external document. RCD contrasts the next-token distributions conditioned on both the query and rationale with those conditioned only on the query. By subtracting query-only logits, this decoding rule increases the relative preference for tokens supported by the rationale, potentially suppressing query-shortcut behavior without additional training. We further interpret this established decoding formulation as a KL-regularized reward-maximization objective, in which the reward is the log-density ratio between the rationale-conditioned and query-only distributions.

We empirically investigate RCD through comprehensive experiments across multiple reasoning benchmarks. First, intervention analyses with ground-truth and randomly substituted rationales demonstrate that RCD makes final predictions more sensitive to rationale content, providing behavioral evidence of increased rationale–answer dependency. Second, RCD consistently improves answer accuracy over standard CoT across five reasoning benchmarks and multiple model families. Third, an analysis of rationale correctness reveals that the performance gains primarily stem from correcting answers that fail to follow valid rationales, rather than repairing incorrect reasoning. These findings suggest that applying contrastive decoding to CoT can mitigate query-shortcut behavior and improve the utilization of generated rationales.

References (19)