Reproduce “Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Lexiang Tang, Weihao Gao, Bingchen Zhao, Lu Ma, Qiao jin, Bang Yang, Yuexian Zou
Researchers from Peking University and the University of Edinburgh developed Confidence-Driven Contrastive Decoding (CCD), a training-free method that enhances large language model reasoning by selectively intervening at low-confidence tokens. CCD consistently improved reasoning accuracy by 3-5% on mathematical benchmarks like AIME and BRUMO, while also producing more compact and efficient reasoning trajectories.
Key insights
- Reasoning uncertainty in autoregressive decoding is highly localized, suggesting that targeted interventions at low-confidence points can yield significant improvements without uniform computational expansion.
- Masking semantically dominant high-confidence tokens in the contrastive branch effectively creates a 'deliberately confused' reference distribution, which, when subtracted, sharpens the main model's predictions at uncertain positions.
- Maintaining a dual Key-Value (KV) cache allows for efficient, selective semantic attenuation in the contrastive branch with minimal overhead, avoiding additional attention passes or model evaluations.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.