Benchmarking Large Language Models on Controllable Generation under Diversified Instructions

Yihan Chen, Benfeng Xu, Quan Wang, Yi Liu, Zhendong Mao

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities in following general instructions, yet they often falter when subjected to fine-grained constraints such as precise word counts or specific sentiments. This paper introduces CoDI-Eval, a comprehensive benchmark designed to evaluate LLMs on controllable text generation (CTG) across thousands of highly diversified instructions. Our findings reveal a significant "robustness gap," where models fail to maintain constraint satisfaction across linguistic variations. Notably, even state-of-the-art models like GPT-4 struggle with "hard" constraints like exact length, highlighting fundamental architectural limitations in current transformer-based models.

Introduction: The Robustness Gap in Controllable Generation

Traditional research in Controllable Text Generation (CTG) often relied on discrete triggers or fixed templates. However, in real-world applications, users interact with LLMs through varied natural language prompts. A request for a "10-word sentence" can be phrased in numerous ways, yet existing benchmarks often fail to capture this linguistic diversity. This leads to a "robustness gap": a model might satisfy a constraint when prompted with one specific template but fail when the instruction is rephrased. The CoDI-Eval benchmark addresses this by testing whether LLMs can internalize the underlying constraint regardless of the instruction's phrasing.

Methodology: The CoDI-Eval Pipeline

To create a robust and diverse instruction set, the authors developed a two-step automated pipeline:

  1. Instruction Expansion: Starting with 20 human-curated "seed" instructions per task, GPT-3.5 was used to expand the pool into a larger set of varied instructions.
  2. Instruction Diversification: A "rewrite" process was applied to rephrase these instructions into different styles—ranging from concise to verbose—ensuring the benchmark tests more than just common patterns.
The two-step pipeline for generating diversified instructions in CoDI-Eval.

Evaluation is conducted using a combination of high-quality classifiers (for sentiment and topic), rule-based matching (for keywords and length), and the Perspective API (for toxicity avoidance).

The CoDI-Eval Dataset

The resulting benchmark consists of 9,060 instructions categorized into six key areas:

  • Sentiment: Joy, anger, neutral, etc.
  • Topic: Sports, business, science, etc.
  • Multi-aspect: Simultaneous satisfaction of sentiment and topic.
  • Length: Precise constraints such as "exactly X words" or "between X and Y words."
  • Keyword: Inclusion or exclusion of specific terms.
  • Toxicity Avoidance: Safe generation in response to challenging prompts.

Key Results and Model Performance

The evaluation across various models reveals a clear hierarchy in instruction-following capabilities. GPT-4 (0613) leads with an average accuracy of 84.82%, followed by GPT-3.5-turbo at 80.5%. Open-source models like LLaMA2-13B-chat lag behind at 69.61%, while base models without instruction tuning often fail to reach 40% accuracy.

Radar chart comparing the performance of various LLMs across the six CoDI-Eval categories.

The "Counting" Problem

The most significant failure point for all models is length control. In the "Length" category, GPT-3.5-turbo achieved a mere 6% accuracy for "exact" word count instructions, despite performing well (98%) on "at least" constraints. This suggests that LLMs, which generate text token-by-token, lack an internal mechanism to track word counts during the generation process.

Complexity and Alignment

Performance drops significantly in "Multi-aspect" tasks, where models must juggle multiple constraints simultaneously. Furthermore, toxicity avoidance appears heavily dependent on specific alignment techniques like RLHF; GPT-4 achieved 93.6% accuracy in this category, whereas unaligned models performed poorly.

Conclusion and Future Directions

CoDI-Eval exposes the limitations of current LLMs in handling fine-grained, diversified instructions. The "counting" problem remains a fundamental architectural hurdle for transformer-based models. Future work should focus on developing specialized mechanisms to help LLMs track generation length and improving the robustness of open-source models to close the performance gap with proprietary systems.

Summary updated

BibTeX
@inproceedings{chen2024benchmarking,
  author = {Yihan Chen and Benfeng Xu and Quan Wang and Yi Liu and Zhendong Mao},
  title = {{Benchmarking Large Language Models on Controllable Generation under Diversified Instructions}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i16.29734},
}
Figure