Aligning to Thousands of Preferences via System Message Generalization

Seongyun Lee, Sue Hyun Park, Seungone Kim, Minjoon Seo

TL;DR

Researchers have developed JANUS, a 7B parameter model that can adapt to thousands of unique user preferences simply by following instructions in a system message. By training on a massive, diverse dataset of multifaceted system prompts, JANUS not only excels at personalized responses but also unexpectedly outperforms larger models like LLaMA 3 8B on general helpfulness benchmarks.

What Problem Does This Paper Address?

Current Large Language Model (LLM) alignment typically follows a "one-size-fits-all" approach. Techniques like Reinforcement Learning from Human Feedback (RLHF) usually align models with a generic set of values—typically "helpfulness" and "harmlessness." However, human preferences are incredibly diverse; what one user considers a "helpful" coding explanation might be too verbose for another who prefers concise, advanced terminology.

Adopting a truly individualized approach is traditionally a scaling nightmare, requiring new reward models and fine-tuning for every specific user profile. While we might hope models could just follow a "system message" (e.g., "You are a concise technical mentor..."), most open-source models are trained on a single, uniform message like "You are a helpful assistant," which severely limits their ability to generalize to complex, unseen personas at test time.

Figure 1: Previous LLMs are trained with homogeneous system messages reflecting general helpful- ness and harmlessness. We propose training LLMs with diverse system messages, each representing an individual’s multifaceted preferences, to generalize to unseen system messages. The resulting model, JANUS 7B, is adept at generating personalized responses for personalized system messages.

Methods

The authors propose a new paradigm: System Message Generalization. Instead of retraining the model for every user, they train it to be an expert at following highly specific "meta-instructions" provided in the system prompt.

To achieve this, they developed a hierarchical value augmentation strategy. They identified four main dimensions of preference—Style, Background Knowledge, Informativeness, and Harmlessness—and branched these out into 18 subdimensions and 107 distinct values. By combining these values, they can generate hundreds of thousands of unique "preference sets."

The training process involved:

  1. Data Synthesis: Using GPT-4 to generate "gold" responses that perfectly adhere to these complex system messages.
  2. Instruction Tuning: Training a Mistral 7B v0.2 base model on this diverse collection.
  3. Preference Optimization: Applying Direct Preference Optimization (DPO) and Odds Ratio Preference Optimization (ORPO) to further refine the model's ability to distinguish between "good" and "bad" adherence to a system message.
  4. Reward Modeling: Training a dedicated JANUS Reward Model (RM) to enable Best-of-N sampling for even higher quality outputs.
Figure 2: MULTIFACETED COLLECTION construction process. For each instruction, value descrip- tions are augmented from general to specific, allowing for multiple facets to branch out. We combine value from various dimensions into a system message to materialize preferences into model input. Following the system message and instruction, a proprietary LLM generates a gold response for training.

Datasets

  • MULTIFACETED COLLECTION: A massive new training dataset containing 197k system messages derived from 66k unique user instructions. It covers a vast "value space" far beyond simple helpfulness.
  • MULTIFACETED BENCH: A new evaluation benchmark consisting of 921 prompts. The authors took instructions from five standard benchmarks (AlpacaEval 2.0, FLASK, Koala, MT-Bench, and Self-Instruct) and added human-verified, unseen system messages to test how well models adapt to novel preferences.
  • General Benchmarks: The model was also tested on standard "general public" benchmarks like Arena Hard Auto v0.1 to see if personalization came at the cost of general performance.

Key Insights and Ideas

  • Diversity is a Feature, Not a Bug: The most surprising finding was that training on a vast array of personalized preferences actually improved the model's general helpfulness. JANUS 7B outperformed LLaMA 3 8B on general benchmarks, suggesting that exposure to diverse values helps the model better understand the nuances of what "the general public" likes.
  • System Messages as Steering Wheels: The paper proves that system messages can be powerful "steering wheels" for model behavior, provided the model isn't overfitted to a single "helpful assistant" persona during training.
  • Explicit vs. Implicit: The authors found that making preferences explicit in the system message (e.g., "use layman-friendly explanations") is far more effective than hoping the model will implicitly pick up on a user's style from a few examples.

Key Results

JANUS 7B demonstrated remarkable performance across the board:

  • Personalization: On the MULTIFACETED BENCH, JANUS achieved a 75.2% tie+win rate against its own base model (Mistral 7B Instruct) and even held its own against proprietary giants, with a 66.4% tie+win rate against GPT-4.
  • General Helpfulness: Despite its smaller size, JANUS 7B outperformed LLaMA 3 8B Instruct by +4.0%p on AlpacaEval 2.0 and +3.0%p on Arena Hard Auto v0.1.
  • Safety: JANUS maintained lower toxicity levels than both Mistral 7B and LLaMA 3 8B, proving that multifaceted alignment doesn't have to compromise harmlessness.
Figure 3: Human comparison of JANUS against Mistral Instruct 7B v0.2, GPT-3.5-Turbo-0125, and GPT-4-0613 on MULTIFACETED BENCH.
Table 2: Detailed performance of JANUS vs. other models across various multifaceted benchmarks.

Limitations and Future Work

While JANUS is a significant step forward, the authors note several areas for improvement:

  • Synthetic Data Reliance: The training set relies heavily on GPT-4's interpretations of values.
  • Jailbreaking Risks: The flexibility of system messages might make models more vulnerable to malicious "meta-instructions" (jailbreaks), though the authors included a harmlessness dimension to mitigate this.
  • Implicit Preference Capture: Currently, a user must explicitly state their preferences. Future work could involve automatically summarizing a user's past interactions into a system message to provide a seamless, personalized experience without manual input.

Summary updated

Abstract

Although humans inherently have diverse values, current large language model (LLM) alignment methods often assume that aligning LLMs with the general public's preferences is optimal. A major challenge in adopting a more individualized approach to LLM alignment is its lack of scalability, as it involves repeatedly acquiring preference data and training new reward models and LLMs for each individual's preferences. To address these challenges, we propose a new paradigm where users specify what they value most within the system message, steering the LLM's generation behavior to better align with the user's intentions. However, a naive application of such an approach is non-trivial since LLMs are typically trained on a uniform system message (e.g., "You are a helpful assistant") which limits their ability to generalize to diverse, unseen system messages. To improve this generalization, we create the Multifaceted Collection, a preference dataset with 192k combinations of values beyond generic helpfulness and harmlessness, spanning 65k user instructions. Using this dataset, we train a 7B LLM called Janus and test it on 921 prompts from 5 benchmarks (AlpacaEval 2.0, FLASK, Koala, MT-Bench, and Self-Instruct) by adding various unseen system messages that reflect user preferences. Janus achieves tie+win rate of 75.2%, 72.4%, and 66.4% against Mistral 7B Instruct v0.2, GPT-3.5 Turbo, and GPT-4, respectively. Unexpectedly, on three benchmarks focused on response helpfulness (AlpacaEval 2.0, MT-Bench, Arena Hard Auto v0.1), Janus also outperforms LLaMA 3 8B Instruct by a +4.0%, +0.1%, +3.0% margin, underscoring that training with a vast array of system messages could also enhance alignment to the general public's preference as well. Our code, dataset, benchmark, and models are available at https://github.com/kaistAI/Janus.
BibTeX
@inproceedings{lee2024aligning,
  author = {Seongyun Lee and Sue Hyun Park and Seungone Kim and Minjoon Seo},
  title = {{Aligning to Thousands of Preferences via System Message Generalization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=recsheQ7e8},
}
Figure