Papers › Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models

Diverse Beam Search: Decoding Diverse Solutions from Neural Sequence Models

7 Oct 2016arXiv:1610.02424archive 2025-07-28

Ashwin K. Vijayakumar, Michael Cogswell, Ramprasath R. Selvaraju, Qing Sun, Stefan Lee, David Crandall, Dhruv Batra

Neural sequence models are widely used to model time-series data. Equally ubiquitous is the usage of beam search (BS) as an approximate inference algorithm to decode output sequences from these models. BS explores the search space in a greedy left-right fashion retaining only the top-B candidates - resulting in sequences that differ only slightly from each other. Producing lists of nearly identical sequences is not only computationally wasteful but also typically fails to capture the inherent ambiguity of complex AI tasks. To overcome this problem, we propose Diverse Beam Search (DBS), an alternative to BS that decodes a list of diverse outputs by optimizing for a diversity-augmented objective. We observe that our method finds better top-1 solutions by controlling for the exploration and exploitation of the search space - implying that DBS is a better search algorithm. Moreover, these gains are achieved with minimal computational or memory over- head as compared to beam search. To demonstrate the broad applicability of our method, we present results on image captioning, machine translation and visual question generation using both standard quantitative metrics and qualitative human studies. Further, we study the role of diversity for image-grounded language generation tasks as the complexity of the image changes. We observe that our method consistently outperforms BS and previously proposed techniques for diverse decoding from neural sequence models.

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

Code

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

By repository: community (archive-listed): 13 samples from 7 repositories, 6 ran; 1 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.

25 repositories listed; official and paper-mentioned ones first.

ashwinkalyan/dbs officialmentioned in papertorch report
StatNLP/ada4asr mentioned on GitHubpytorchMIT report
SunJiamei/LRP-imagecaptioning-pytorch mentioned on GitHubpytorch report
ahmetustun/fairseq mentioned on GitHubpytorchMIT report
bzylich/persona-chatbot mentioned on GitHubpytorch report
cindyxinyiwang/fairseq mentioned on GitHubpytorchMIT report
codecaution/evomoe mentioned on GitHubpytorchMIT report
dannigt/fairseq mentioned on GitHubpytorchMIT report
facebookresearch/fairseq mentioned on GitHubpytorchMIT report
fairseq/fairseq mentioned on GitHubpytorchMIT report
formiel/fairseq mentioned on GitHubpytorchMIT report
hlt-mt/fbk-fairseq mentioned on GitHubpytorchNOASSERTION report
hltchkust/cantonese-asr mentioned on GitHubpytorch report
jerinphilip/fairseq-ilmt mentioned on GitHubpytorchMIT report
jungokasai/t2r mentioned on GitHubpytorchMIT report
libeineu/GPKD mentioned on GitHubpytorch report
libeineu/SDT-Training mentioned on GitHubpytorchNOASSERTION report
lucylow/En_francais_si_vous_plait- mentioned on GitHubpytorchMIT report
marccanby/bidi_decoding mentioned on GitHubpytorchMIT report
mgaido91/FBK-fairseq-ST mentioned on GitHubpytorch report
raymondhs/fairseq-extensible-mbart mentioned on GitHubpytorchMIT report
sarapapi/fbk-fairseq mentioned on GitHubpytorchMIT report
stevezheng23/fairseq_extension mentioned on GitHubpytorchMIT report
utanaka2000/fairseq mentioned on GitHubpytorchMIT report
windweller/PragmaticVQA mentioned on GitHub 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

14 samples harvested; 7 ran; 0 honoured the contract we drafted; 7 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
6ran
7unverified

Licence: 14 of the 14 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 7 repositories linked to this paper, official or community; each sample names its own and says which. 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.

distributed_init fairseq/fairseq/fairseq/distributed_utils.py community (archive-listed) ran MIT recorded; this copy not marked cleared · pointer only · 2e69129bbcf930e7 · report
distributed_init jungokasai/t2r/fairseq/distributed_utils.py community (archive-listed) ran MIT recorded; this copy not marked cleared · pointer only · 07969f7041022050 · report
find_offsets cindyxinyiwang/fairseq/fairseq/file_chunker_utils.py community (archive-listed) ran MIT recorded; this copy not marked cleared · pointer only · 840d9070e4fd8ba6 · report
is_master fairseq/fairseq/fairseq/distributed_utils.py community (archive-listed) ran MIT recorded; this copy not marked cleared · pointer only · 90b79fe15491de83 · report
safe_readline StatNLP/ada4asr/fairseq/binarizer.py community (archive-listed) ran MIT recorded; this copy not marked cleared · pointer only · 82bdf940665aeeb4 · report
url_to_filename ahmetustun/fairseq/fairseq/file_utils.py community (archive-listed) ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 9418b43048e4e4ec · report
all_reduce StatNLP/ada4asr/fairseq/distributed_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 199e96db5edd0edd · report
filename_to_url ahmetustun/fairseq/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · aafdc12f01ab388f · report
filename_to_url stevezheng23/fairseq_extension/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · b1a033619f614e17 · report
load_archive_file fairseq/fairseq/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · bf870e076be41d5d · report
load_archive_file ahmetustun/fairseq/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5603a04b6103554e · report
load_archive_file stevezheng23/fairseq_extension/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · bd3fe80662b28bc7 · report
load_archive_file raymondhs/fairseq-extensible-mbart/fairseq/file_utils.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 0d372aa1e290a613 · report
label_smoothed_nll_loss identical code first harvested elsewhere ran · our draft was wrong licence of this copy not recorded · 26da4f92ba56e785 · report

Tasks

DiversityImage CaptioningMachine TranslationQuestion GenerationQuestion-GenerationText GenerationTime Series Analysis

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