SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.14874 · 2024

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

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.14874.json · badge: /api/ran/2402.14874.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
pphuc25/distil-cd canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
answer_cleansing Ran
ran; our contract draft was wrong, not the code
pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py
pointer only (licence: NONE) · get_code("8b5fd8ae1f77f932")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_regex_pattern Ran
ran; our contract draft was wrong, not the code
pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py
pointer only (licence: NONE) · get_code("b412890ab2fb1902")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_data_name_based_on_condition Ran
ran; our contract draft was wrong, not the code
pphuc25/distil-cd/dcd_eval/src/chorse/process_data.py
pointer only (licence: NONE) · get_code("b452cd9127b6afcd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_correct Ran
ran, violated the contract we drafted
pphuc25/distil-cd/dcd_eval/src/chorse/utils.py
pointer only (licence: NONE) · get_code("91b5a26d6a8fe4e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
pphuc25/distil-cd/dcd_eval/src/compute_accuracy.py
pointer only (licence: NONE) · get_code("593e5e4d03d4d4df")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

set_stop_words Ran
ran; our contract draft was wrong, not the code
pphuc25/distil-cd/src/dcd/utils.py
pointer only (licence: NONE) · get_code("7e57dc83814a2145")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_prompt Not yet run
unverified (harvested, no recorded run)
pphuc25/distil-cd/src/dcd/prompts.py
pointer only (licence: NONE) · get_code("8e4e00b93dabaf41")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

create_prompt_student Not yet run
unverified (harvested, no recorded run)
pphuc25/distil-cd/src/dcd/prompts.py
pointer only (licence: NONE) · get_code("80618aec403147a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_model_master_and_amateur Not yet run
unverified (harvested, no recorded run)
pphuc25/distil-cd/dcd_eval/src/chorse/load_model.py
pointer only (licence: NONE) · get_code("d7b3ad79f1f8bd95")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

greedy_search Not yet run
unverified (harvested, no recorded run)
pphuc25/distil-cd/src/dcd/generate.py
pointer only (licence: NONE) · get_code("ad7789fd83efa143")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pphuc25/distil-cd when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
load_json 3 other papers
1 dated earlier, 2 later
2310.01045 (2023-10)
Tool-Augmented Reward Modeling
2407.09099 (2024-07)
Music Proofreading with RefinPaint: Where and How to Modify Compositions given Context
2511.00117 (2025-11)
DCcluster-Opt: Benchmarking Dynamic Multi-Objective Optimization for Geo-Distributed Data Center Workloads

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.14874")
get_code_for_paper("2402.14874")
have("2402.14874")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.14874.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.14874.svg)](https://syntology.ai/paper/2402.14874)

Connect an agent — have() is free.