Research map / Large language models / Language, safety and interpretability
NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristics
Ximing Lu, Sean Welleck, Peter West, Liwei Jiang, Jungo Kasai, Daniel Khashabi, Ronan Le Bras, Lianhui Qin, Youngjae Yu, Rowan Zellers, Noah A. Smith, Yejin Choi
University of Washington · Allen Institute for Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (GPT-2, supervised) · CommonGen test | BLEU-4: 26.7 -> 28.2 | Improved |
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (off-the-shelf GPT-2) · CommonGen test (zero-shot) | BLEU-4: 24.7 -> 28.6 | Improved |
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (Marian MT) · WMT17 EN-DE constrained MT | BLEU: 33.4 -> 33.7 | Improved |
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (two-layer transformer) · WMT17 EN-DE, 2+ constraint terms | Term%: 93.7 -> 96.5 | Improved |
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (few-shot GPT-2, 0.1%) · E2ENLG test | BLEU: 47.6 -> 49.2 | Improved |
| reduce amount of few-shot training data | NeuroLogic* vs NeuroLogic · E2ENLG test | BLEU: gain over NeuroLogic larger at 0.1% (+1.6) than at 5% (+0.5) | Improved |
| add lookahead heuristics to NeuroLogic decoding | NeuroLogic (off-the-shelf GPT-2) · Interrogative question generation | BLEU: 11.2 -> 14.7 | Improved |
| add lookahead heuristics to beam search | beam search (GPT-2) · RocStories test | human overall score: 2.32 -> 2.63 | Improved |
| add lookahead heuristics to top-k sampling | top-k sampling (GPT-2) · RocStories test | human overall score: 2.15 -> 2.47 | Improved |
| add lookahead heuristics to top-k sampling | top-k sampling (GPT-2) · RocStories test | unique 3-grams: 48.36k -> 48.44k | No clear effect |
| use beam vs greedy lookahead (ablation) | NeuroLogic* · CommonGen test | human evaluation: 2.60 vs 2.59 overall | No clear effect |
| increase greedy lookahead horizon beyond 5-7 steps (ablation) | NeuroLogic* (greedy) · CommonGen | performance | Hurt |
Open problems in parallel and early-exit decoding
Which fast-decoding methods keep quality when used with batching, thresholds that need no tuning, and models they cannot open up?
- Tested on one or two model families, mostly 7B or 13B and smaller. · 12 papers state it
- Speedups are measured at batch size one, and batching is left unstudied. · 9 papers state it
- Thresholds and mixing weights are tuned per model and task. · 8 papers state it
Closest papers by meaning
- NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraints (NAACL 2021 · similarity 0.94)
- NEUROSTRUCTURAL DECODING: Neural Text Generation with Structural Constraints (ACL 2023 · similarity 0.93)
- Lexically Constrained Decoding for Sequence Generation Using Grid Beam Search (ACL 2017 · similarity 0.88)
- The Curious Case of Neural Text Degeneration (ICLR 2020 · similarity 0.88)
- Unlocking Anticipatory Text Generation: A Constrained Approach for Large Language Models Decoding (EMNLP 2024 · similarity 0.88)
- Grammar-Aligned Decoding (NeurIPS 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.