paper-with-me

Papers

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

2022-04-11 · Jungo Kasai, Keisuke Sakaguchi, Ronan Le Bras, Dragomir Radev, Yejin Choi, Noah A. Smith

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.

📄 PDF Abstract BibTeX arXiv:2204.05424

Code (1)

jungokasai/beam_with_patience 공식 구현 pytorch

Tasks

Machine TranslationText GenerationText SummarizationTranslation

Similar Papers 제목 키워드 기반

Learning Filterbanks for End-to-End Acoustic Beamforming

2021-11-08 · Samuele Cornell, Manuel Pariente, François Grondin, Stefano Squartini

Recent work on monaural source separation has shown that performance can be increased by using fully learned filterbanks with short windows. On the other hand it is widely known that, for conventional beamforming techniq…

Efficient Beamforming for Mobile mmWave Networks

2019-12-23 · Sara Khosravi, Hossein S. Ghadikolaei, Marina Petrova

We design a lightweight beam-searching algorithm for mobile millimeter-wave systems. We construct and maintain a set of path skeletons, i.e., potential paths between a user and the serving base station to substantially e…

BeamAttack: Generating High-quality Textual Adversarial Examples through Beam Search and Mixed Semantic Spaces

2023-03-09 · Hai Zhu, Qingyang Zhao, Yuren Wu

Natural language processing models based on neural networks are vulnerable to adversarial examples. These adversarial examples are imperceptible to human readers but can mislead models to make the wrong predictions. In a…

Heuristic Search

Fast Initial Access with Deep Learning for Beam Prediction in 5G mmWave Networks

2020-06-22 · Tarun S. Cousik, Vijay K. Shah, Jeffrey H. Reed, Tugba Erpek 외

This paper presents DeepIA, a deep learning solution for faster and more accurate initial access (IA) in 5G millimeter wave (mmWave) networks when compared to conventional IA. By utilizing a subset of beams in the IA pro…

Beam Prediction

What Do You Get When You Cross Beam Search with Nucleus Sampling?

2021-07-20 · insights (ACL) 2022 5 · Uri Shaham, Omer Levy

We combine beam search with the probabilistic pruning technique of nucleus sampling to create two deterministic nucleus search algorithms for natural language generation. The first algorithm, p-exact search, locally prun…

Machine TranslationText GenerationTranslation