Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Tang, Lexiang, Gao, Weihao, Zhao, Bingchen, Ma, Lu, jin, Qiao, Yang, Bang, Zou, Yuexian
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915809654210560
author Tang, Lexiang
Gao, Weihao
Zhao, Bingchen
Ma, Lu
jin, Qiao
Yang, Bang
Zou, Yuexian
author_facet Tang, Lexiang
Gao, Weihao
Zhao, Bingchen
Ma, Lu
jin, Qiao
Yang, Bang
Zou, Yuexian
contents Recent work on test-time scaling for large language model (LLM) reasoning typically assumes that allocating more inference-time computation uniformly improves correctness. However, prior studies show that reasoning uncertainty is highly localized: a small subset of low-confidence tokens disproportionately contributes to reasoning errors and unnecessary output expansion. Motivated by this observation, we propose Thinking by Subtraction, a confidence-driven contrastive decoding approach that improves reasoning reliability through targeted token-level intervention. Our method, Confidence-Driven Contrastive Decoding, detects low-confidence tokens during decoding and intervenes selectively at these positions. It constructs a contrastive reference by replacing high-confidence tokens with minimal placeholders, and refines predictions by subtracting this reference distribution at low-confidence locations. Experiments show that CCD significantly improves accuracy across mathematical reasoning benchmarks while substantially reducing output length, with minimal KV-cache overhead. As a training-free method, CCD enhances reasoning reliability through targeted low-confidence intervention without computational redundancy. Our code will be made available at: https://github.com/bolo-web/CCD.
format Preprint
id arxiv_https___arxiv_org_abs_2602_18232
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning
Tang, Lexiang
Gao, Weihao
Zhao, Bingchen
Ma, Lu
jin, Qiao
Yang, Bang
Zou, Yuexian
Computation and Language
Artificial Intelligence
Recent work on test-time scaling for large language model (LLM) reasoning typically assumes that allocating more inference-time computation uniformly improves correctness. However, prior studies show that reasoning uncertainty is highly localized: a small subset of low-confidence tokens disproportionately contributes to reasoning errors and unnecessary output expansion. Motivated by this observation, we propose Thinking by Subtraction, a confidence-driven contrastive decoding approach that improves reasoning reliability through targeted token-level intervention. Our method, Confidence-Driven Contrastive Decoding, detects low-confidence tokens during decoding and intervenes selectively at these positions. It constructs a contrastive reference by replacing high-confidence tokens with minimal placeholders, and refines predictions by subtracting this reference distribution at low-confidence locations. Experiments show that CCD significantly improves accuracy across mathematical reasoning benchmarks while substantially reducing output length, with minimal KV-cache overhead. As a training-free method, CCD enhances reasoning reliability through targeted low-confidence intervention without computational redundancy. Our code will be made available at: https://github.com/bolo-web/CCD.
title Thinking by Subtraction: Confidence-Driven Contrastive Decoding for LLM Reasoning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2602.18232