For Generated Text, Is NLI-Neutral Text the Best Text?

Michail Mersinias, Kyle Mahowald
2/16/2023
cs.CL

No confident code implementation found for this paper.

Abstract

We explore incorporating natural language inference (NLI) into the text generative pipeline by using a pre-trained NLI model to assess whether a generated sentence entails, contradicts, or is neutral to the prompt and preceding text. First, we show that the NLI task is predictive of generation errors made by GPT-3. We use these results to develop an NLI-informed generation procedure for GPT-J. Then, we evaluate these generations by obtaining human annotations on error types and overall quality. We find that an NLI strategy of maximizing entailment improves text generation when the nucleus sampling randomness parameter value is high, while one which maximizes contradiction is in fact productive when the parameter value is low. Overall, though, we demonstrate that an NLI strategy of maximizing the neutral class provides the highest quality of generated text (significantly better than the vanilla generations), regardless of parameter value.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mersinias2023generated,
  title  = {For Generated Text, Is NLI-Neutral Text the Best Text?},
  author = {Michail Mersinias and Kyle Mahowald},
  year   = {2023},
  eprint = {2302.08577},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.08577v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.08577.svg)](https://codeofpaper.com/paper/2302.08577)

Discussion