ReadCtrl: Personalizing text generation with readability-controlled instruction learning

Hieu Tran, Zonghai Yao, Lingxi Li, Hong Yu

Abstract

Content generation conditioning on users' readability is an important application for personalization. In an era of large language models (LLMs), readability-controlled text generation based on LLMs has become increasingly important. This paper introduces a novel methodology called "Readability-Controlled Instruction Learning (ReadCtrl)," which aims to instruction-tune LLMs to tailor users' readability levels. Unlike traditional methods, which primarily focused on categorical readability adjustments with limited success, ReadCtrl introduces a dynamic framework that enables LLMs to generate content at various complexity levels, enhancing their versatility across different applications. Our results show that the ReadCtrl-Mistral-7b models significantly outperformed strong baseline models such as GPT-4 and Claude-3, with a win rate of 52.1% against GPT-4 in human evaluations. Furthermore, ReadCtrl has shown significant improvements in automatic evaluations, as evidenced by better readability metrics (e.g., FOG, FKGL) and generation quality metrics (e.g., BLEU, SARI, SummaC-Factuality).

Introduction: The Challenge of Precise Complexity

While Large Language Models (LLMs) have become adept at following topical instructions, controlling the linguistic complexity of their output remains a significant challenge. Most existing controllable text generation methods treat readability as a coarse binary choice (e.g., "simple" vs. "complex"). This "one-size-fits-all" approach fails to meet the nuanced needs of diverse audiences, such as the specific reading levels required for students in different grades.

Current state-of-the-art models like GPT-4 show a general trend toward simplification when prompted, but they lack precision, often overshooting or undershooting specific target grade levels. The authors identify a need for a dynamic framework that can scale across a continuous spectrum of readability without losing factual accuracy or linguistic quality.

Methodology: The ReadCtrl Framework

The authors propose Readability-Controlled Instruction Learning (ReadCtrl), an instruction-tuning framework designed to give LLMs fine-grained control over output complexity. The core of this method is a specific instruction format: "Given an input text, please output an [entailment/paraphrase/simplification] with a readability score around {target readability score}."

The technical implementation involves three key pillars:

  1. Robust Readability Scoring: A "Reading Grade Level" (RGL) is derived by averaging four established metrics: the Gunning Fog Index, Flesch-Kincaid Grade Level, Automated Readability Index, and Coleman-Liau Index.
  2. Instruction Tuning: A Mistral-7b model was fine-tuned on a diverse set of tasks (simplification, paraphrasing, and semantic entailment) where the target output was conditioned on these RGL scores.
  3. Multi-Task Calibration: By training the model to both simplify and maintain or increase complexity, the researchers forced the model to develop a deep understanding of the relationship between vocabulary, syntax, and grade level.

To ensure generalizability, the model was evaluated on six datasets, including unseen ones like WikiSmall (simplification), MRPC (paraphrasing), and MultiNLI (entailment).

Key Results and Performance

The Mistral-ReadCtrl model demonstrated a remarkable ability to adhere to specific readability targets, far exceeding the performance of much larger models.

Precision in Readability Adherence

Base models like Mistral-7b initially show almost no capacity to adjust to readability instructions. However, after ReadCtrl tuning, the model follows the "perfect adherence" curve more closely than even GPT-4 or Claude-3, which often struggle to hit specific numerical grade targets.

Comparison of target vs. actual grade levels across models, showing Mistral-ReadCtrl's superior adherence to the ideal diagonal.

Human and AI Evaluation

In head-to-head matchups against GPT-4, Mistral-ReadCtrl was consistently preferred. Human evaluators favored its output 52.1% of the time, compared to 35.7% for GPT-4. This preference held across various tasks and datasets, as shown in both AI-based and human evaluations.

AI and Human evaluation results across multiple datasets, showing win rates for ReadCtrl-Mistral against GPT-4.

Beyond adherence, the model maintained high generation quality. On the unseen MRPC dataset, Mistral-ReadCtrl achieved the highest factuality (0.8184) and SARI scores (44.43), proving that quality and factual consistency are not sacrificed for readability control.

Conclusion and Future Directions

ReadCtrl marks a significant advancement in personalized content generation. By moving beyond categorical labels to near-continuous grade-level control, it enables more effective communication tailored to specific audience needs.

Future work will look to expand this framework beyond English, as readability structures vary significantly across languages. Additionally, the authors aim to address specialized domains like medical text, where standard readability formulas often struggle. Finally, incorporating feedback from actual target audiences (e.g., primary school students) will be crucial for further refining the model's authentic output quality.

Summary updated

BibTeX
@misc{tran2024readctrl,
  author = {Hieu Tran and Zonghai Yao and Lingxi Li and Hong Yu},
  title = {{ReadCtrl: Personalizing text generation with readability-controlled instruction learning}},
  year = {2024},
  eprint = {2406.09205},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09205},
}
Figure