Lune

NeurIPS2020Top-tier venue

Learning Sparse Prototypes for Text Generation

Junxian He, Taylor Berg-Kirkpatrick, Graham Neubig

Abstract

Prototype-driven text generation uses non-parametric models that first choose from a library of sentence "prototypes" and then modify the prototype to generate the output text. While effective, these methods are inefficient at test time as a result of needing to store and index the entire training corpus. Further, existing methods often require heuristics to identify which prototypes to reference at training time. In this paper, we propose a novel generative model that automatically learns a sparse prototype support set that, nonetheless, achieves strong language modeling performance. This is achieved by (1) imposing a sparsity-inducing prior on the prototype selection distribution, and (2) utilizing amortized variational inference to learn a prototype retrieval function. In experiments, our model outperforms previous prototype-driven language models while achieving up to a 1000x memory reduction, as well as a 1000x speed-up at test time. More interestingly, we show that the learned prototypes are able to capture semantics and syntax at different granularity as we vary the sparsity of prototype selection, and that certain sentence attributes can be controlled by specifying the prototype for generation.

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.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval cites Generalization through Memorization: Nearest Neighbor Language Models
  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval cites Nearest Neighbor Machine Translation
  • Controllable Semantic Parsing via Retrieval Augmentation cites Generalization through Memorization: Nearest Neighbor Language Models
  • Controllable Semantic Parsing via Retrieval Augmentation cites Nearest Neighbor Machine Translation
  • Nearest Neighbor Machine Translation cites Generalization through Memorization: Nearest Neighbor Language Models
  • Why do Nearest Neighbor Language Models Work? cites Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval
  • Why do Nearest Neighbor Language Models Work? cites Generalization through Memorization: Nearest Neighbor Language Models
  • Why do Nearest Neighbor Language Models Work? cites Nearest Neighbor Machine Translation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Neuro-Symbolic Language Modeling with Automaton-augmented RetrievalUri Alon, Frank F. Xu, Junxian He, Sudipta Sengupta et al.ICML 2022 · 79 citations
  2. CTRLsum: Towards Generic Controllable Text SummarizationJunxian He, Wojciech Kryscinski, Bryan McCann, Nazneen Rajani et al.EMNLP 2022 · 59 citations
  3. Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 citations
  4. Controllable Semantic Parsing via Retrieval AugmentationPanupong Pasupat, Yuan Zhang, Kelvin GuuEMNLP 2021 · 29 citations
  5. Few-shot Controllable Style Transfer for Low-Resource Multilingual SettingsKalpesh Krishna, Deepak Nathani, Xavier Garcia, Bidisha Samanta et al.ACL 2022 · 28 citations

Builds on2

  1. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
  2. Nearest Neighbor Machine TranslationUrvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2021 · 323 citations

Related papers

  1. Efficient Nearest Neighbor Language ModelsJunxian He, Graham Neubig, Taylor Berg-KirkpatrickEMNLP 2021
  2. Few-Shot Table-to-Text Generation with Prototype MemoryYixuan Su, Zaiqiao Meng, Simon Baker, Nigel CollierEMNLP Findings 2021 · 28 citations
  3. DReSD: Dense Retrieval for Speculative DecodingMilan Gritta, Huiyin Xue, Gerasimos LampourasACL Findings 2025 · 1 citation
  4. AUTOSUMM: Automatic Model Creation for Text SummarizationSharmila Reddy Nangi, Atharv Tyagi, Jay Mundra, Sagnik Mukherjee et al.EMNLP 2021 · 1 citation
  5. Discourse-Aware Soft Prompting for Text GenerationMarjan Ghazvininejad, Vladimir Karpukhin, Vera Gor, Asli CelikyilmazEMNLP 2022 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines