SteerLM: Attribute Conditioned SFT as an (User-Steerable) Alternative to RLHF

Yi Dong, Zhilin Wang, Makesh Narsimhan Sreedhar, Xianchao Wu, Oleksii Kuchaiev

Introduction

Aligning Large Language Models (LLMs) with human values and preferences is a critical challenge in AI development. Traditionally, this alignment is achieved through a two-stage process: Supervised Fine-Tuning (SFT) followed by Reinforcement Learning from Human Feedback (RLHF). While RLHF has been the industry standard, it suffers from several significant drawbacks. It is computationally expensive, notoriously difficult to stabilize—often requiring complex Proximal Policy Optimization (PPO) setups—and typically results in a "static" model. Once aligned via RLHF, a model's personality is fixed; users cannot easily adjust its behavior, such as requesting a response that is "more helpful but less wordy" or "highly humorous but slightly toxic" for specific applications like gaming NPCs.

Furthermore, standard reward models in RLHF often collapse complex human preferences into a single scalar value, failing to capture the multifaceted nature of what makes a response truly "good." To address these limitations, NVIDIA researchers introduced SteerLM, a novel framework that replaces the complex RLHF pipeline with a simpler, attribute-conditioned SFT approach.

The SteerLM Framework

SteerLM moves away from reinforcement learning entirely, relying instead on the language modeling objective. The framework allows users to "steer" model responses at inference time by training the model on multi-dimensional attributes.

Conceptual overview of steering LLM responses using multi-dimensional attributes like Quality, Humor, and Toxicity.

The SteerLM pipeline consists of four primary steps:

  1. Attribute Prediction Model: A model is trained on the Open Assistant (OASST) dataset to predict scores (ranging from 0 to 9) for specific attributes such as quality, creativity, humor, and toxicity.
  2. Dataset Annotation: This predictor is used to annotate larger, diverse datasets (like Anthropic's HH-RLHF). This process scales the available data and "denoises" inconsistent human labels by providing a calibrated scoring system.
  3. Attribute Conditioned SFT: The core LLM is trained using these attributes as prefix tags. A training prompt might look like: System... User... Assistant... <quality:9, humor:7...> [Response]. This teaches the model the direct relationship between specific attribute values and the resulting response style.
  4. Bootstrapping with High Quality: The model generates new responses while being "steered" toward maximum quality. These responses are re-annotated and used for a final round of fine-tuning, creating a self-improvement loop similar to policy updates in RLHF.

Key Insights and Results

The core philosophy of SteerLM is that SFT is often underrated. By providing sufficient context via attribute tags, standard supervised learning can capture the nuances usually reserved for RL. Treating "goodness" as a vector of attributes rather than a single scalar allows the model to learn a much richer representation of human preference.

Examples of how SteerLM generates different responses to the same prompt based on adjusted attribute settings.

The results of this approach are compelling:

  • Superior Performance: SteerLM 43B achieved an Elo rating of 1139 on the Vicuna benchmark, significantly outperforming ChatGPT 3.5 (1023) and LLaMA 30B RLHF (925).
  • Human Preference: In head-to-head human evaluations, SteerLM 43B maintained a 59% win rate against ChatGPT 3.5.
  • Inference-Time Steerability: This is the framework's standout feature. Developers or end-users can adjust tags at runtime to change model behavior without retraining. For instance, a user can dial toxicity down or toggle humor on or off, and the model responds appropriately.

Limitations and Future Directions

While SteerLM offers a powerful alternative to RLHF, it is not without challenges. Fine-tuning a 43B parameter model remains resource-intensive, suggesting that future work should explore Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA. Additionally, the current evaluation is English-centric, and the ability to steer toward high toxicity presents potential safety risks if not properly restricted by developers. Finally, the reliance on GPT-4 for automatic evaluation may introduce biases toward longer, more verbose responses.

Despite these limitations, SteerLM demonstrates that attribute-conditioned SFT provides a simpler, more flexible, and highly effective path toward aligning LLMs with complex human values.

Summary updated

BibTeX
@inproceedings{dong2023steerlm,
  author = {Yi Dong and Zhilin Wang and Makesh Narsimhan Sreedhar and Xianchao Wu and Oleksii Kuchaiev},
  title = {{SteerLM: Attribute Conditioned SFT as an (User-Steerable) Alternative to RLHF}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.754},
}
Figure