Pith. sign in

REVIEW 1 cited by

A Call for Clarity in Beam Search: How It Works and When It Stops

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2204.05424 v3 pith:KAS6LSWD submitted 2022-04-11 cs.CL

classification cs.CL
keywords beamdecodingimplementationsearchclaritycodefactorfirst
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Text generation with beam search has proven successful in a wide range of applications. We point out that, though largely overlooked in the literature, the commonly-used implementation of beam decoding (e.g., Hugging Face Transformers and fairseq) uses a first come, first served heuristic: it keeps a set of already completed sequences over time steps and stops when the size of this set reaches the beam size. Based on this finding, we introduce a patience factor, a simple modification to this beam decoding implementation, that generalizes the stopping criterion and provides flexibility to the depth of search. Empirical results demonstrate that adjusting this patience factor improves decoding performance of strong pretrained models on news text summarization and machine translation over diverse language pairs, with a negligible inference slowdown. Our approach only modifies one line of code and can be thus readily incorporated in any implementation. Further, we find that different versions of beam decoding result in large performance differences in summarization, demonstrating the need for clarity in specifying the beam search implementation in research work. Our code will be available upon publication.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Customizing Speech Recognition Model with Large Language Model Feedback

    cs.CL 2025-06 conditional novelty 6.0 of 10

    LLM log-probability scores combined with acoustic scores serve as RL rewards to adapt ASR models to new domains without labeled data.

Pith tools