TL;DR
This paper introduces an automated pipeline to discover "biases" in reward models (RMs) used to train large language models (LLMs). By using an LLM to iteratively propose and test potential biases, they can uncover undesirable RM preferences, such as favoring redundant spacing or hallucinated content, which can lead to misaligned LLM behavior.
What Problem Does This Paper Address?
Large language models (LLMs) are often trained using Reinforcement Learning from Human Feedback (RLHF), which relies on reward models (RMs) to guide the learning process. However, RMs can inadvertently learn to favor certain attributes that are not desirable to humans, a phenomenon known as "reward hacking" or "overoptimization." Examples include rewarding overly long responses, sycophancy, or even hallucinated content. Identifying these biases before they influence the LLM's behavior is crucial for building more aligned and trustworthy AI systems. Previous methods for finding these biases often relied on manually crafted adversarial examples, which are difficult to generalize into natural language descriptions of broader RM biases.
Methods
The core of this paper is an iterative, evolutionary pipeline for automatically discovering natural language descriptions of RM biases. The process involves:
- Hypothesis Generation: An LLM is prompted to generate initial candidate biases based on trends observed in sampled LLM responses and their associated RM scores.
- Bias Evaluation: For each candidate bias, the pipeline measures two things:
- RM Bias Strength: How much the target RM prefers responses with the attribute versus without it.
- LLM Judge Bias Strength: How much a separate, capable LLM (acting as a proxy for human judgment) disprefers responses with the attribute.
- Evolutionary Iteration:
- Selection: Promising candidates (those preferred by the RM but dispreferred by the judge) are selected.
- Mutation: The selected candidates are then mutated by another LLM to generate variations, creating new hypotheses.
- This process is repeated over several iterations, allowing the pipeline to refine and discover more nuanced biases.
- Validation: The final set of candidate biases is validated on a held-out dataset and manually checked to ensure they are indeed undesirable.
A key aspect is the use of counterfactual pairs: pairs of responses to the same prompt where one response has the target attribute and the other does not. These pairs are generated by a separate LLM that makes minimal, targeted edits to introduce or remove the attribute.
Datasets
The paper primarily uses synthetically generated user prompts. These prompts are derived from 20 handwritten topic summaries covering a range of common LLM use cases. The generation process involves an LLM brainstorming scenarios within a topic, followed by another LLM generating specific user prompts for those scenarios. This approach was chosen due to the difficulty in finding non-toxic and coherent prompt clusters from existing public chat data.
The paper also mentions using the Skywork-V2-8B model as the target reward model for their experiments.
Key Insights and Ideas
- Automated bias discovery is feasible: The proposed evolutionary pipeline effectively identifies both known and novel biases in RMs, demonstrating the potential for automated interpretability.
- LLMs as bias generators and judges: The approach leverages LLMs for both proposing candidate biases and acting as a proxy for human judgment, making the process scalable.
- Evolutionary iteration outperforms simple search: The paper provides evidence that their iterative, evolutionary approach is more effective than a flat "best-of-N" hypothesis generation strategy for discovering biases.
- Biases can be subtle and context-dependent: The study found biases like "triple spaces between words" and "hallucinated details," highlighting that RMs can pick up on very specific, sometimes trivial, linguistic patterns. They also observed that some biases are specific to certain prompt sub-distributions (e.g., list formatting preference for "how-to" guides).
- Counterfactuals are key: The method relies heavily on generating counterfactual response pairs to isolate the effect of a specific attribute.
Key Results
- The pipeline successfully identified known formatting biases and surfaced novel ones in the Skywork-V2-8B reward model.
- Novel biases discovered include:
- Favoring responses with redundant spacing between words.
- Favoring responses with hallucinated content.
- The evolutionary pipeline demonstrated benefits over a simple best-of-N search strategy in terms of bias discovery.
- Validation experiments showed that the counterfactual pairs generated by their method were of high quality, with minimal unintended changes.
Limitations and Future Work
- Synthetic prompts: The use of synthetically generated prompts, while controlled, may not perfectly capture the distribution of real-world user queries.
- Incomplete search space: The biases found are likely not exhaustive; the pipeline only explored 7 out of 20 user prompt topics.
- Attribute disentanglement: While efforts were made to ensure counterfactuals only differed in the target attribute, it's challenging to guarantee complete disentanglement from other linguistic features.
- Cost of LLM judge: The reliance on a powerful LLM judge can be computationally expensive, limiting the scope of experiments.
- Future work: The authors suggest incorporating more capable models into the pipeline, exploring agentic affordances for audits, and extending the approach to generative RMs. They also believe this type of automated audit will become increasingly important and cost-effective in future model development.
Summary updated