Aligning to Thousands of Preferences via System Message Generalization

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

TL;DR

This paper introduces a novel approach to personalize Large Language Models (LLMs) by allowing users to specify their preferences through system messages, rather than relying on a one-size-fits-all alignment. They developed a new dataset, MULTIFACETED COLLECTION, and trained a model called JANUS that demonstrates impressive adaptability to diverse, unseen user preferences and even improves general helpfulness.

What Problem Does This Paper Address?

Current LLM alignment methods typically aim to optimize for the "general public's" preferences, often focusing on broad categories like helpfulness and harmlessness. However, human values are inherently diverse and nuanced. Trying to align LLMs to individual preferences has been a scalability challenge, requiring extensive data collection and retraining for each user. This paper tackles the problem of achieving individualized LLM alignment in a scalable way, without the need for per-user fine-tuning, by enabling LLMs to understand and adapt to user-specific instructions embedded in system messages.

Methods

The core innovation is the system message generalization approach. Instead of fine-tuning an LLM for each individual's preferences, the authors propose using system messages to convey these preferences. To overcome the LLM's typical training on a single, generic system message, they developed a new training paradigm.

Key techniques include:

  • Hierarchical Value Augmentation: A strategy to create diverse and multifaceted user values by branching from general dimensions (style, background knowledge, informativeness, harmlessness) to specific subdimensions and then to detailed values.
  • MULTIFACETED COLLECTION Dataset: A large dataset (197k system messages derived from 65k instructions) created by combining user values into system messages and generating corresponding responses. This dataset aims to capture a wide spectrum of human preferences beyond generic helpfulness.
  • JANUS Model: A 7B LLM trained on the MULTIFACETED COLLECTION. The training involves instruction tuning and, in some variants, preference optimization techniques like DPO and ORPO.

Datasets

  • Training Data:
    • MULTIFACETED COLLECTION: A newly created dataset comprising 197k system messages and corresponding responses, derived from 65k instructions. It's designed to represent diverse, fine-grained user preferences.
  • Evaluation Benchmarks:
    • MULTIFACETED BENCH: An augmented version of five existing benchmarks (AlpacaEval 2.0, FLASK, Koala, MT-Bench, Self-Instruct) where instructions are paired with unseen, context-specific system messages. This benchmark is designed to test the model's ability to handle diverse, personalized preferences.
  • General Helpfulness Benchmarks: AlpacaEval 2.0, MT-Bench, Arena Hard Auto v0.1.
  • Harmlessness Benchmarks: RealToxicityPrompts, Winogender, CrowS-Pairs, BBQ.

Key Insights and Ideas

  • System Messages as Preference Encoders: The paper demonstrates that system messages can effectively convey nuanced user preferences, guiding LLM behavior without requiring per-user fine-tuning.
  • Generalization is Key: LLMs trained on a diverse set of system messages can generalize to unseen preferences, a capability lacking in models trained on uniform system messages.
  • Individualized Alignment Enhances General Alignment: Surprisingly, training with diverse system messages not only improves personalized alignment but also enhances general helpfulness, suggesting that understanding a wider range of human values can lead to better overall performance.
  • Scalability Through Data Synthesis: The creation of the MULTIFACETED COLLECTION using LLM-driven data synthesis is crucial for achieving scalable individualized alignment.

Key Results

  • Multifacetedness Benchmark: JANUS 7B achieved a tie+win rate of 75.2% against Mistral 7B Instruct v0.2, 72.4% against GPT-3.5 Turbo, and 66.4% against GPT-4 on the MULTIFACETED BENCH.
  • General Helpfulness: JANUS 7B outperformed LLaMA 3 8B Instruct by significant margins (+4.0%p, +0.1%p, +3.0%p) on three helpfulness benchmarks (AlpacaEval 2.0, MT-Bench, Arena Hard Auto v0.1).
  • Low Toxicity and High Diversity: JANUS 7B showed lower toxicity and maintained high fluency and diversity scores on harmlessness benchmarks.
  • Robustness: JANUS showed only a minor performance drop when system messages were excluded at test time, indicating robustness.

Limitations and Future Work

  • Reliance on Synthetic Data: The MULTIFACETED COLLECTION is synthetically generated, and direct human evaluation of the entire dataset is infeasible.
  • Vulnerability to Malicious Attacks: The flexibility in preference specification might increase vulnerability to attacks like jailbreaking.
  • Capturing Implicit Preferences: Managing system message controls and capturing implicit preferences from conversations remains challenging.
  • Future Work: The authors suggest exploring dialogue summarization techniques, enhancing safety through more data and moderation, and further research into dialogue-based preference learning.

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