Hierarchical Phrase-Based Sequence-to-Sequence Learning
Bailin Wang, Ivan Titov, Jacob Andreas, Yoon Kim
Abstract
We describe a neural transducer that maintains the flexibility of standard sequence-to-sequence (seq2seq) models while incorporating hierarchical phrases as a source of inductive bias during training and as explicit constraints during inference. Our approach trains two models: a discriminative parser based on a bracketing transduction grammar whose derivation tree hierarchically aligns source and target phrases, and a neural seq2seq model that learns to translate the aligned phrases one-by-one. We use the same seq2seq model to translate at all phrase scales, which results in two inference modes: one mode in which the parser is discarded and only the seq2seq component is used at the sequence-level, and another in which the parser is combined with the seq2seq model. Decoding in the latter mode is done with the cube-pruned CKY algorithm, which is more involved but can make use of new translation rules during inference. We formalize our model as a sourceconditioned synchronous grammar and develop an efficient variational inference algorithm for training. When applied on top of both randomly initialized and pretrained seq2seq models, we find that both inference modes performs well compared to baselines on small scale machine translation benchmarks.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammars cites Sequence-to-Sequence Learning with Latent Neural Grammars
- Sequence-to-Sequence Learning with Latent Neural Grammars cites COGS: A Compositional Generalization Challenge Based on Semantic Interpretation
- Sequence-to-Sequence Learning with Latent Neural Grammars cites Learning to Recombine and Resample Data For Compositional Generalization
- Non-autoregressive Machine Translation with Probabilistic Context-free Grammar cites Sequence-to-Sequence Learning with Latent Neural Grammars
- Grammar Prompting for Domain-Specific Language Generation with Large Language Models cites Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive Grammars
- Grammar Prompting for Domain-Specific Language Generation with Large Language Models cites Sequence-to-Sequence Learning with Latent Neural Grammars
Cited by top-tier papers3
- Grammar Prompting for Domain-Specific Language Generation with Large Language ModelsBailin Wang, Zi Wang, Xuezhi Wang, Yuan Cao et al.NeurIPS 2023 · 138 citations
- Non-autoregressive Machine Translation with Probabilistic Context-free GrammarShangtong Gui, Chenze Shao, Zhengrui Ma, Xishan Zhang et al.NeurIPS 2023 · 16 citations
- Unsupervised Discontinuous Constituency Parsing with Mildly Context-Sensitive GrammarsSonglin Yang, Roger Levy, Yoon KimACL 2023 · 1 citation
Builds on11
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
- COGS: A Compositional Generalization Challenge Based on Semantic InterpretationNajoung Kim, Tal LinzenEMNLP 2020 · 149 citations
- Sequence-to-Sequence Learning with Latent Neural GrammarsYoon KimNeurIPS 2021 · 44 citations
- Substructure Substitution: Structured Data Augmentation for NLPHaoyue Shi, Karen Livescu, Kevin GimpelACL Findings 2021 · 37 citations
- Learning to Recombine and Resample Data For Compositional GeneralizationEkin Akyürek, Afra Feyza Akyürek, Jacob AndreasICLR 2021 · 36 citations
Related papers
- Tree-Structured Non-Autoregressive Decoding for Sequence-to-Sequence Text GenerationPengyu Ji, Yufei Liu, Xiang Hu, Kewei TuEMNLP Findings 2025
- Structured Reordering for Modeling Latent Alignments in Sequence TransductionBailin Wang, Mirella Lapata, Ivan TitovNeurIPS 2021 · 20 citations
- Explicit Syntactic Guidance for Neural Text GenerationYafu Li, Leyang Cui, Jianhao Yan, Yongjing Yin et al.ACL 2023 · 4 citations
- Approximating CKY with TransformersGhazal Khalighinejad, Ollie Liu, Sam WisemanEMNLP Findings 2023
- Grammar-Constrained Neural Semantic Parsing with LR ParsersArtur Baranowski, Nico HochgeschwenderACL Findings 2021 · 6 citations
