Papers › An Empirical Study On Contrastive Search And Contrastive Decoding For Open-ended Text...

An Empirical Study On Contrastive Search And Contrastive Decoding For Open-ended Text Generation

19 Nov 2022arXiv:2211.10797archive 2025-07-28

Yixuan Su, Jialu Xu

In the study, we empirically compare the two recently proposed decoding methods, i.e. Contrastive Search (CS) and Contrastive Decoding (CD), for open-ended text generation. The automatic evaluation results suggest that, while CS performs worse than CD on the MAUVE metric, it substantially surpasses CD on the diversity and coherence metrics. More notably, extensive human evaluations across three different domains demonstrate that human annotators are universally more in favor of CS over CD with substantial margins. The contradicted results between MAUVE and human evaluations reveal that MAUVE does not accurately reflect human preferences. Therefore, we call upon the research community to develop better evaluation metrics for open-ended text generation. To ensure the reproducibility of our work, we have open-sourced all our code, evaluation results, as well as human annotations at https://github.com/yxuansu/Contrastive_Search_versus_Contrastive_Decoding.

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="2211.10797")

Code

Syntology Ran 9 of 9 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 9 ran · our draft was wrong.

By repository: official repository: 5 samples from 1 repository, 5 ran; 4 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yxuansu/contrastive_search_versus_contrastive_decoding officialmentioned in papermentioned on GitHubpytorch report
YecanLee/Adaptive-Contrastive-Search mentioned 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

9 samples harvested; 9 ran; 0 honoured the contract we drafted; 0 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.

9ran · our draft was wrong

Licence: 4 of the 9 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 yxuansu/contrastive_search_versus_contrastive_decoding. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

decode yxuansu/contrastive_search_versus_contrastive_decoding/compute_CD_coherence.py official repository ran · our draft was wrong MIT (permissive) · fa974683b3309bff · report
load_data yxuansu/contrastive_search_versus_contrastive_decoding/inference.py official repository ran · our draft was wrong MIT (permissive) · 4fa756ab2e71d478 · report
parse_data yxuansu/contrastive_search_versus_contrastive_decoding/compute_CD_coherence.py official repository ran · our draft was wrong MIT (permissive) · 0714e04d4711a1fe · report
parse_one_text yxuansu/contrastive_search_versus_contrastive_decoding/compute_CD_coherence.py official repository ran · our draft was wrong MIT (permissive) · 2b22d120b73eca34 · report
parse_text yxuansu/contrastive_search_versus_contrastive_decoding/inference.py official repository ran · our draft was wrong MIT (permissive) · 66a2664f44c5cb07 · report
generate_one_instance identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · cac40e03d91cfcd2 · report
inference_one_instance identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · bd4a83f85a760a62 · report
parse_output identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · a115616e0c6ba1e8 · report
save_result identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 08a4d22e5a9f3b60 · report

Tasks

DiversityText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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