CTRLEval: An Unsupervised Reference-Free Metric for Evaluating Controlled Text Generation

Pei Ke, Hao Zhou, Yankai Lin, Peng Li, Jie Zhou, Xiaoyan Zhu, Minlie Huang

Abstract

Evaluating Controlled Text Generation (CTG) is challenging due to the open-ended nature of tasks and the scarcity of human-written references. We present CTRLEval, an unsupervised, reference-free metric that evaluates CTG by formulating evaluation as a series of text infilling tasks. By leveraging off-the-shelf pre-trained language models, CTRLEval measures coherence, consistency, and attribute relevance without task-specific training. Experimental results demonstrate that CTRLEval significantly outperforms state-of-the-art metrics in correlating with human judgment across multiple generation models and control constraints.

Introduction

Controlled Text Generation (CTG) aims to produce text that adheres to specific constraints, such as a content prefix or a target sentiment. Traditional evaluation metrics like BLEU or ROUGE rely on human-written "gold standard" references, which are difficult to obtain for open-ended generation where many valid outputs exist. Reference-free metrics often fall into two categories: unsupervised metrics like Perplexity, which measure fluency but ignore control instructions, and supervised metrics, which are prone to overfitting and struggle with model or quality drift.

CTRLEval addresses these limitations by providing a multi-aspect, unsupervised evaluation framework that requires no references or task-specific fine-tuning.

The CTRLEval Framework

The core of CTRLEval is the conceptualization of evaluation as a text infilling task. Instead of training a discriminator, the metric utilizes a pre-trained encoder-decoder model (e.g., PEGASUS or T5) to assess how well a generated text $Y$ fits the context provided by a prefix $X$ and a control attribute $a$.

Overview of the CTRLEval framework, illustrating the evaluation aspects (Consistency, Coherence, Attribute Relevance) and the pattern-based infilling design.

The framework decomposes quality into three primary aspects:

  1. Coherence: Evaluates internal logic by masking a sentence within the generated text and calculating the probability of the model correctly predicting it based on surrounding context.
  2. Consistency: Measures the bidirectional relationship between the prefix $X$ and the generated text $Y$.
  3. Attribute Relevance: Assesses if the text matches the target label $a$ (e.g., "Positive" sentiment) by prompting the model to fill a mask in a descriptive pattern like "The text is about [MASK]".

To enhance robustness, CTRLEval employs an ensemble of multiple prompts weighted by Normalized Inverse Sentence Frequency (NISF), ensuring that more informative sentences contribute more significantly to the final score.

Experimental Setup

The authors evaluated CTRLEval on sentiment-controlled and topic-controlled generation tasks using 15 and 20 prefixes, respectively. Text was generated using four diverse models: CTRL, PPLM, GeDi, and CoCon. Human ground truth was established using Likert scale ratings (1-5) from Amazon Mechanical Turk for coherence, consistency, and relevance.

Results and Analysis

CTRLEval demonstrates superior performance compared to baselines such as Perplexity, UNION, BLEURT, and BARTScore.

Pearson correlation with human judgments for Coherence, Consistency, and Attribute Relevance across different generation models. CTRLEval consistently shows higher correlation than baselines.

Key findings include:

  • Superior Correlation: In topic-controlled attribute relevance, CTRLEval achieved a Pearson correlation of 0.5189, nearly doubling the performance of unsupervised baselines.
  • Robustness Across Models: Unlike supervised metrics that show high variance, CTRLEval maintains stable performance across different generation models, indicating its reliability against model drift.
  • Zero-Shot Capability: The results suggest that large-scale pre-trained models possess sufficient latent knowledge to evaluate text quality when prompted correctly, eliminating the need for task-specific training data.

Conclusion and Future Work

CTRLEval provides a robust, unsupervised alternative for evaluating controlled text generation. By leveraging the inherent knowledge of pre-trained language models through infilling tasks, it achieves high alignment with human judgment. Future work includes refining prompt engineering to reduce sensitivity to pattern design and extending the framework to more complex control variables like writing style or factual constraints.

Summary updated

BibTeX
@inproceedings{ke2022ctrleval,
  author = {Pei Ke and Hao Zhou and Yankai Lin and Peng Li and Jie Zhou and Xiaoyan Zhu and Minlie Huang},
  title = {{CTRLEval: An Unsupervised Reference-Free Metric for Evaluating Controlled Text Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.164},
}
Figure