POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training

Yizhe Zhang, Guoyin Wang, Chunyuan Li, Zhe Gan, Chris Brockett, Bill DolanEMNLP 2020

Abstract

Large-scale pre-trained language models, such as BERT and GPT-2, have achieved excellent performance in language representation learning and free-form text generation. However, these models cannot be directly employed to generate text under specified lexical constraints. To address this challenge, we present POINTER (PrOgressive INsertion-based TransformER), a simple yet novel insertion-based approach for hard-constrained text generation. The proposed method operates by progressively inserting new tokens between existing tokens in a parallel manner. This procedure is recursively applied until a sequence is completed. The resulting coarse-to-fine hierarchy makes the generation process intuitive and interpretable. We pre-train our model with the proposed progressive insertion-based objective on a 12GB Wikipedia dataset, and fine-tune it on downstream hard-constrained generation tasks. Non-autoregressive decoding yields a logarithmic time complexity during inference time. Experimental results on both News and Yelp datasets demonstrate that Pointer achieves state-of-the-art performance on constrained text generation.

Introduction

Standard large-scale language models like GPT-2 excel at free-form generation but often struggle when forced to include specific lexical constraints—a task known as "hard-constrained" generation. Existing approaches typically fall into two categories: soft-constrained models, which often drop keywords if they are weakly correlated, and hard-constrained models, which guarantee inclusion but are often computationally expensive or lack global coherence.

POINTER (PrOgressive INsertion-based TransformER) bridges this gap by introducing an efficient framework that maintains long-term semantic structure while strictly adhering to keyword constraints. By moving away from traditional left-to-right autoregressive generation, POINTER utilizes a non-autoregressive strategy that is both fast and interpretable.

Methodology: Progressive Insertion

POINTER operates through a progressive insertion strategy. Instead of generating words one by one, the model starts with user-provided keywords (Stage 0) and predicts which tokens should be inserted into the "gaps" between existing tokens in parallel.

Overview of the Insertion Transformer architecture and the progressive generation stages.

Training and Architecture

The model is trained with a modified Masked Language Modeling (MLM) objective, learning to predict both where to insert a token and what that token should be. This similarity to BERT allowed the authors to initialize POINTER using pre-trained BERT weights. To handle the "conditional independence" problem common in non-autoregressive models—where parallel slots might generate redundant words—the authors introduced Inner-Layer Beam Search (ILBS) to maintain local consistency within the parallel generation layer.

The Generation Hierarchy

The generation process follows a coarse-to-fine hierarchy. The model first generates high-level "skeleton" words (nouns and verbs) before filling in auxiliary words like prepositions and articles. This mimics a top-down planning process, making the model's "thought process" visible as the sentence is fleshed out.

Progressive text generation stages from initial keywords ($X^0$) to the final completed sequence ($X^4$).

Because the model can potentially double the number of tokens in a sequence at each stage, it achieves an empirical inference complexity of $O(\log n)$. In testing, 98% of sentences were completed in just four stages.

Experimental Results

The model was pre-trained on a 12GB English Wikipedia dataset and fine-tuned on the EMNLP 2017 WMT News and Yelp English Reviews datasets. POINTER was compared against strong baselines including NMSTG (tree-based) and CGMH (sampling-based).

  • Performance: POINTER achieved state-of-the-art results across NIST, BLEU, and METEOR metrics on both datasets.
  • Human Evaluation: Judges significantly preferred POINTER for its fluency, informativeness, and semantic consistency compared to baselines.
  • Inference Speed: The efficiency gains were dramatic. On the Yelp dataset, POINTER processed 1,000 examples in roughly 94 seconds, while the sampling-based CGMH required 33 hours on the same hardware.

Conclusion and Future Work

POINTER demonstrates that insertion-based, non-autoregressive generation is a powerful tool for constrained text tasks. While the current model relies on heuristics (like TF-IDF and POS tags) to determine token importance and assumes keywords are provided in the correct relative order, future work may explore learned importance assessments and "shuffled" constraints. Additionally, incorporating constituency parsing could further refine the grammatical structure of the progressive hierarchy.

Summary updated

BibTeX
@inproceedings{zhang2020pointer,
  author = {Yizhe Zhang and Guoyin Wang and Chunyuan Li and Zhe Gan and Chris Brockett and Bill Dolan},
  title = {{POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=W--bwGuxbwd},
}
Figure