SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.16598 · EMNLP · 2025

PruneCD: Contrasting Pruned Self Model to Improve Decoding Factuality

Eunhyeok Park, Changhun Lee, Jungyu Jin, Byeongho Yu, C Logits, Herbert Henry, Herbert Campbell, Henry David, Herbert Cam

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 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, 0 violated it and 0 have no contract verdict; 14 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2509.16598.json · badge: /api/ran/2509.16598.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
hoeng4/PruneCD canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
extract_answer_from_output Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/1_tfqa_gen.py
pointer only (licence: NONE); the stored copy get_code serves, from voidism/DoLa, is pointer only (licence: NONE) · get_code("96fe095fcc6b821a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

format_best Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/1_factual_layer_search/tfqa_mc.py
pointer only (licence: NONE) · get_code("158b8847881a64b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

format_end2end_prompt Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/1_tfqa_llama_rating.py
pointer only (licence: NONE) · get_code("cd926798b14819b6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

forward_block_naive_keepnorm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hoeng4/PruneCD/prunecd/prunecd/monkeypatch/prunecd_utils.py
pointer only (licence: NONE) · get_code("24fffbacdd62d2dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_file_contents Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/triviaqa_util.py
pointer only (licence: NONE) · get_code("9647b3402a8f03d9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_file_contents_as_list Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/triviaqa_util.py
pointer only (licence: NONE) · get_code("8cf2f049f00e0464")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_csv Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/1_factual_layer_search/tfqa_mc.py
pointer only (licence: NONE) · get_code("2a4c0ecd291e1795")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_csv Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/1_tfqa_gen.py
pointer only (licence: NONE) · get_code("a35a1be39e4bef73")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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
hoeng4/PruneCD/2_benchmark/1_tfqa_llama_rating.py
pointer only (licence: NONE) · get_code("d0bb7013dd302153")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_jsonl Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/5_strqa.py
pointer only (licence: NONE) · get_code("ff3b5ca99f326851")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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_jsonl Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/6_gsm8k.py
pointer only (licence: NONE) · get_code("b5d313d6f48bb56a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

read_json Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/2_benchmark/triviaqa_util.py
pointer only (licence: NONE) · get_code("6622a686d1cedd19")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

relative_top_filter Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/prunecd/prunecd/monkeypatch/cd_utils.py
pointer only (licence: NONE) · get_code("3d0f9ff9021842f1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

split_multi_answer Ran
ran; our contract draft was wrong, not the code
hoeng4/PruneCD/1_factual_layer_search/tfqa_mc.py
pointer only (licence: NONE) · get_code("c852bd4d2face0a1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

download_url Not yet run
unverified (harvested, no recorded run)
hoeng4/PruneCD/2_benchmark/1_tfqa_gen.py
pointer only (licence: NONE); the stored copy get_code serves, from voidism/DoLa, is pointer only (licence: NONE) · get_code("0f14b819bc361c25")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

forward_block_naive Not yet run
unverified (harvested, no recorded run)
hoeng4/PruneCD/prunecd/prunecd/monkeypatch/prunecd_utils.py
pointer only (licence: NONE) · get_code("7137f4b8102c8487")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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.

load_csv Not yet run
unverified (harvested, no recorded run)
hoeng4/PruneCD/2_benchmark/3_4_triviaqa_natural_questions.py
pointer only (licence: NONE) · get_code("872f1d147b70aced")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hoeng4/PruneCD 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 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
format_best 7 other papers
7 dated earlier
2312.04333 (2023-12)
Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
2401.05930 (2024-01)
SH2: Self-Highlighted Hesitation Helps You Decode More Truthfully
and 4 more not named here
download_url 6 other papers
6 dated earlier
2309.03883 (2023-09)
DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
2401.05930 (2024-01)
SH2: Self-Highlighted Hesitation Helps You Decode More Truthfully
and 3 more not named here
load_csv 6 other papers
6 dated earlier
2312.04333 (2023-12)
Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
2401.05930 (2024-01)
SH2: Self-Highlighted Hesitation Helps You Decode More Truthfully
and 3 more not named here
split_multi_answer 6 other papers
6 dated earlier
2312.04333 (2023-12)
Is Bigger and Deeper Always Better? Probing LLaMA Across Scales and Layers
2312.15710 (2023-12)
Alleviating Hallucinations of Large Language Models through Induced Hallucinations
2401.05930 (2024-01)
SH2: Self-Highlighted Hesitation Helps You Decode More Truthfully
and 3 more not named here
extract_answer_from_output 5 other papers
5 dated earlier
2309.03883 (2023-09)
DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models
2401.05930 (2024-01)
SH2: Self-Highlighted Hesitation Helps You Decode More Truthfully
2403.01548 (2024-03)
In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigation
and 2 more not named here
load_json 3 other papers
3 dated earlier
1910.11089 (2019-10)
Real-World Image Datasets for Federated Learning
2001.06202 (2020-01)
FedVision: An Online Visual Object Detection Platform Powered by Federated Learning
2504.04635 (2025-04)
Steering off Course: Reliability Challenges in Steering Language Models
load_csv 2 other papers
2 dated earlier
2403.01548 (2024-03)
In-Context Sharpness as Alerts: An Inner Representation Perspective for Hallucination Mitigation
2504.04635 (2025-04)
Steering off Course: Reliability Challenges in Steering Language Models
load_jsonl 2 other papers
2 dated earlier
2411.02433 (2024-11)
SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Models
2504.04635 (2025-04)
Steering off Course: Reliability Challenges in Steering Language Models
load_jsonl 2 other papers
2 dated earlier
2411.02433 (2024-11)
SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Models
2504.04635 (2025-04)
Steering off Course: Reliability Challenges in Steering Language Models
format_end2end_prompt 1 other paper
1 dated earlier
2504.04635 (2025-04)
Steering off Course: Reliability Challenges in Steering Language Models
relative_top_filter 1 other paper
1 dated earlier
2410.13846 (2024-10)
LightTransfer: Your Long-Context LLM is Secretly a Hybrid Model with Effortless Adaptation

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-24.

Repositories linked to this paper

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

Abstract

To mitigate the hallucination problem in large language models, DoLa exploits early exit logits from the same model as a contrastive prior. However, we found that these early exit logits tend to be flat, low in magnitude, and fail to reflect meaningful contrasts. To address this, we propose PruneCD, a novel contrastive decoding method that constructs the amateur model via layer pruning rather than early exit. This design leads to more informative and well-aligned logits, enabling more effective contrastive decoding. Through qualitative and quantitative analyses, we demonstrate that PruneCD consistently improves factuality with minimal inference overhead, offering a robust and practical approach to mitigating hallucinations in LLMs.

For agents

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

get_harvested_code_for_paper("2509.16598")
get_code_for_paper("2509.16598")
have("2509.16598")

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

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

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

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

Connect an agent — have() is free.