Papers › Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding...

Distillation Contrastive Decoding: Improving LLMs Reasoning with Contrastive Decoding and Distillation

21 Feb 2024arXiv:2402.14874archive 2025-07-28

Phuc Phan, Hieu Tran, Long Phan

We propose a straightforward approach called Distillation Contrastive Decoding (DCD) to enhance the reasoning capabilities of Large Language Models (LLMs) during inference. In contrast to previous approaches that relied on smaller amateur models or analysis of hidden state differences, DCD employs Contrastive Chain-of-thought Prompting and advanced distillation techniques, including Dropout and Quantization. This approach effectively addresses the limitations of Contrastive Decoding (CD), which typically requires both an expert and an amateur model, thus increasing computational resource demands. By integrating contrastive prompts with distillation, DCD obviates the need for an amateur model and reduces memory usage. Our evaluations demonstrate that DCD significantly enhances LLM performance across a range of reasoning benchmarks, surpassing both CD and existing methods in the GSM8K and StrategyQA datasets.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.14874")

Code

Syntology Ran 6 of 10 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

pphuc25/distil-cd officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 6 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
5ran
4unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from pphuc25/distil-cd. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

answer_cleansing pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py official repository ran no licence file found · pointer only · 8b5fd8ae1f77f932 · report
create_regex_pattern pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py official repository ran fingerprinted no licence file found · pointer only · b412890ab2fb1902 · report
get_data_name_based_on_condition pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py official repository ran fingerprinted no licence file found · pointer only · b452cd9127b6afcd · report
is_correct pphuc25/distil-cd/dcd_eval/src/chorse/utils.py official repository ran fingerprinted no licence file found · pointer only · 91b5a26d6a8fe4e5 · report
load_json pphuc25/distil-cd/dcd_eval/src/compute_accuracy.py official repository ran · our draft was wrong no licence file found · pointer only · 593e5e4d03d4d4df · report
set_stop_words pphuc25/distil-cd/src/dcd/utils.py official repository ran no licence file found · pointer only · 7e57dc83814a2145 · report
create_prompt pphuc25/distil-cd/src/dcd/prompts.py official repository unverified no licence file found · pointer only · 8e4e00b93dabaf41 · report
create_prompt_student pphuc25/distil-cd/src/dcd/prompts.py official repository unverified no licence file found · pointer only · 80618aec403147a1 · report
get_model_master_and_amateur pphuc25/distil-cd/dcd_eval/src/chorse/load_model.py official repository unverified no licence file found · pointer only · d7b3ad79f1f8bd95 · report
greedy_search pphuc25/distil-cd/src/dcd/generate.py official repository unverified no licence file found · pointer only · ad7789fd83efa143 · report

Tasks

Arithmetic ReasoningGSM8KLanguage ModellingQuantizationStrategyQA

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Dropout

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections