Skip to main content
QUICK REVIEW

[Paper Review] Generating Sentences by Editing Prototypes

Kelvin Guu, Tatsunori Hashimoto|arXiv (Cornell University)|Sep 26, 2017
Topic ModelingComputer Science31 references33 citations
TL;DR

This paper proposes a prototype-then-edit generative language model that improves perplexity and human-rated quality by first sampling a sentence from the training corpus and then editing it using a learned neural editor conditioned on a latent edit vector. The model achieves 13-point and 7-point perplexity gains on Yelp and One Billion Word Benchmark, respectively, while enabling interpretable semantic edits via the edit vector.

ABSTRACT

We propose a new generative model of sentences that first samples a prototype sentence from the training corpus and then edits it into a new sentence. Compared to traditional models that generate from scratch either left-to-right or by first sampling a latent sentence vector, our prototype-then-edit model improves perplexity on language modeling and generates higher quality outputs according to human evaluation. Furthermore, the model gives rise to a latent edit vector that captures interpretable semantics such as sentence similarity and sentence-level analogies.

Motivation & Objective

  • To address the limitation of autoregressive language models in generating diverse, non-generic sentences.
  • To improve generation quality by leveraging high-quality, grammatically correct prototypes from the training data.
  • To learn a disentangled, interpretable edit vector that captures semantic transformations between sentences.
  • To enable controlled, semantically meaningful edits through a differentiable neural editor.
  • To provide a more structured and semantically smooth latent space for text generation compared to standard variational autoencoders.

Proposed method

  • The model generates sentences by first sampling a prototype sentence uniformly from the training corpus.
  • A neural editor generates a new sentence by attending to the prototype and conditioning on a latent edit vector drawn from a prior distribution.
  • The model is trained by maximizing a lower-bound approximation to the marginal likelihood, using lexical similarity to restrict the sum over prototypes.
  • Locality-sensitive hashing (LSH) is used to efficiently identify lexically similar sentence pairs for scalable training.
  • An evidence lower bound (ELBO) is used to approximate the expectation over the edit vector, enabling end-to-end training via backpropagation.
  • A special 'empty' prototype is introduced to smooth the model and avoid zero likelihood on out-of-vocabulary or dissimilar test sentences.

Experimental results

Research questions

  • RQ1Can a generative model that edits prototypes from the training data achieve better perplexity and generation quality than autoregressive models?
  • RQ2Can the learned edit vector capture interpretable semantic transformations such as sentence similarity and analogies?
  • RQ3Does the prototype-then-edit approach enable more controlled and semantically meaningful text generation compared to standard variational autoencoders?
  • RQ4How effective is lexical similarity as a proxy for semantic similarity in training the neural editor?
  • RQ5Can the model generalize beyond exact training examples while maintaining grammaticality and diversity?

Key findings

  • The prototype-then-edit model reduces perplexity by 13 points on the Yelp corpus and 7 points on the One Billion Word Benchmark compared to baseline language models.
  • Human evaluations show that the model generates higher-quality sentences than standard autoregressive language models.
  • The latent edit vectors successfully capture sentence similarity and enable locally controlled text generation, outperforming standard sentence variational autoencoders on these tasks.
  • The model can perform semantic random walks by applying sequences of edits, demonstrating smooth traversal of semantic space.
  • Even small amounts of smoothing using a special 'empty' prototype significantly reduce perplexity on rare or dissimilar test sentences.
  • Lexically similar sentence pairs in the training set are also semantically similar, validating the use of lexical similarity as a proxy for semantic structure in the training objective.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.