COLLIE: Systematic Construction of Constrained Text Generation Tasks

Shunyu Yao, Howard Chen, Austin W. Hanjie, Runzhe Yang, Karthik Narasimhan
7/17/2023
cs.CLcs.AIcs.LG

Official code: princeton-nlp/Collie (64 stars, MIT, last commit 2023-08-02).

Abstract

Text generation under constraints have seen increasing interests in natural language processing, especially with the rapidly improving capabilities of large language models. However, existing benchmarks for constrained generation usually focus on fixed constraint types (e.g.,generate a sentence containing certain words) that have proved to be easy for state-of-the-art models like GPT-4. We present COLLIE, a grammar-based framework that allows the specification of rich, compositional constraints with diverse generation levels (word, sentence, paragraph, passage) and modeling challenges (e.g.,language understanding, logical reasoning, counting, semantic planning). We also develop tools for automatic extraction of task instances given a constraint structure and a raw text corpus. Using COLLIE, we compile the COLLIE-v1 dataset with 2080 instances comprising 13 constraint structures. We perform systematic experiments across five state-of-the-art instruction-tuned language models and analyze their performances to reveal shortcomings. COLLIE is designed to be extensible and lightweight, and we hope the community finds it useful to develop more complex constraints and evaluations in the future.

View on arXivView PDF

Code Implementations(1)

MIT

[ICLR 2024] COLLIE: Systematic Construction of Constrained Text Generation Tasks

646Shell, PythonJul 17, 20233 years agoMIT

Similar Papers

Cite this paper

@article{yao2023collie,
  title  = {COLLIE: Systematic Construction of Constrained Text Generation Tasks},
  author = {Shunyu Yao and Howard Chen and Austin W. Hanjie and Runzhe Yang and Karthik Narasimhan},
  year   = {2023},
  eprint = {2307.08689},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.08689v1},
  journal = {ICLR 2023 2023}
}

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

Discussion