Towards Aligning Language Models with Textual Feedback

Saüc Abadal Lloret, Shehzaad Dhuliawala, Keerthiram Murugesan, Mrinmaya Sachan

Introduction

The standard recipe for AI alignment—Reinforcement Learning from Human Feedback (RLHF)—typically relies on scalar rewards derived from binary human preferences (e.g., "Is response A better than response B?"). While this approach has driven significant advancements in model safety and helpfulness, it suffers from two major drawbacks. First, a single scalar reward is a sparse, "lossy" representation of human intent; it fails to tell the model why a response was undesirable or how to improve it. Second, reinforcement learning algorithms like Proximal Policy Optimization (PPO) are notoriously complex, unstable, and data-hungry.

To address these inefficiencies, researchers introduce ALT (ALignment with Textual feedback), a novel framework that aligns large language models (LLMs) by conditioning their generations on natural language critiques rather than simple scalar rewards. By treating alignment as a conditional sequence modeling task, ALT achieves superior toxicity reduction and matches state-of-the-art RLHF performance using only a fraction of the training data.

The ALT Framework

The core premise of ALT is that natural language is the most expressive medium for human preferences. A textual critique (e.g., "accurate but too wordy") contains a much richer learning signal than a numerical score. ALT adapts the "Reward-Conditioned RL" approach to the textual domain, utilizing Conditional Supervised Fine-Tuning (C-SFT) instead of training a complex RL agent.

The ALT Framework

The ALT process operates in iterative loops consisting of four main steps:

  1. Sampling: The base model generates multiple candidate responses to a given prompt.
  2. Textual Feedback: A "Feedback Provider"—which can be a rule-based system, a reward model, or another LLM—evaluates the generations and assigns a textual label or critique (e.g., "Nontoxic," "Toxic," or "Very toxic").
  3. Conditional Supervised Fine-Tuning: The model is fine-tuned to predict the generation given both the original prompt and the assigned feedback string: $P(\text{generation} | \text{prompt}, \text{feedback})$.
  4. Inference: At inference time, the model is steered toward the desired behavior by simply prepending the optimal feedback tag (e.g., "Nontoxic") to the user's prompt.

The researchers explored three variants of this framework: ALT-RM (quantizing scalar reward model scores into text buckets), ALT-LMC (using an LLM to provide categorical labels), and ALT-LMU (using an LLM for unconstrained, free-form feedback).

Experimental Setup and Key Results

The study evaluated ALT across three distinct alignment challenges: Toxicity Reduction (using RealToxicityPrompts), Summarization (using Reddit TL;DR), and Dialogue (using the Anthropic Helpful and Harmless dataset).

Superior Performance and Efficiency

One of the most striking findings is ALT's sample efficiency. On the summarization task, ALT matched PPO’s performance (achieving a 50% win rate against it) while using 80% less training data. This suggests that the "alignment tax"—the computational and data cost of making models safe and helpful—can be drastically reduced by leveraging richer textual feedback.

For toxicity reduction, ALT-RM reduced toxicity by 62% compared to PPO in-domain, and significantly outperformed QUARK, a state-of-the-art quantile-based baseline. In dialogue tasks, ALT increased the frequency of "Harmless and very helpful" responses by 49% and halved the number of "Harmful" responses compared to the base model.

Maintaining Fluency

A common failure mode of RL-based alignment is the degradation of model fluency, sometimes resulting in "gibberish" outputs as the model hacks the reward function. Because ALT is fundamentally a language modeling task, it maintains significantly better fluency.

Performance Metrics over Iterations

As shown in the performance metrics across iterations, ALT-RM not only steadily increases the average reward but also maintains a much lower perplexity (higher fluency) compared to PPO, which exhibits high perplexity.

Insights and Limitations

The success of ALT reveals that text serves as a better anchor for alignment. Even when textual feedback is just a quantized label (like "Medium Toxicity"), the model learns more effectively than it does from raw numbers, suggesting the semantic meaning of words helps ground the model's understanding.

Interestingly, the study found a "Goldilocks" zone for feedback length. Unconstrained, long-form feedback (ALT-LMU) actually performed worse than short, categorical labels. The authors hypothesize that long-form critiques generated by LLMs are often inconsistent or contradictory, which confuses the model during C-SFT training.

This highlights a primary limitation and avenue for future work: improving the quality and consistency of natural language critiques. Furthermore, when using an LLM as a feedback provider, the aligned model risks inheriting the specific biases or verbosity preferences of the teacher model. Bridging the gap between short categorical tags and nuanced, human-level long-form critiques remains an open and exciting research question in the pursuit of perfectly aligned AI.

Summary updated

BibTeX
@inproceedings{lloret2024towards,
  author = {Saüc Abadal Lloret and Shehzaad Dhuliawala and Keerthiram Murugesan and Mrinmaya Sachan},
  title = {{Towards Aligning Language Models with Textual Feedback}},
  booktitle = {MFHAIA @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=PurTK6zas8},
}
Figure