Evaluating, Understanding, and Improving Constrained Text Generation for Large Language Models

Xiang Chen, Xiaojun Wan
10/25/2023
cs.CL

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Advancements in natural language generation (NLG) and large language models (LLMs) have led to proficient text generation in various tasks. However, integrating intricate constraints into neural text generation, due to LLMs' opacity, remains challenging. This study investigates constrained text generation for LLMs, where predefined constraints are applied during LLM's generation process. Our research mainly focuses on mainstream open-source LLMs, categorizing constraints into lexical, structural, and relation-based types. We also present various benchmarks to facilitate fair evaluation. The study addresses some key research questions, including evaluating, understanding and improving constrained text generation for LLMs. Results illuminate LLMs' capacity and deficiency to incorporate constraints and provide insights for future developments in constrained text generation. Codes and datasets will be released upon acceptance.

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. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{chen2023evaluating,
  title  = {Evaluating, Understanding, and Improving Constrained Text Generation for Large Language Models},
  author = {Xiang Chen and Xiaojun Wan},
  year   = {2023},
  eprint = {2310.16343},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.16343v2}
}

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/2310.16343.svg)](https://codeofpaper.com/paper/2310.16343)

Discussion