Interpreting Learned Feedback Patterns in Large Language Models

Luke Marks, Amir Abdullah, Clement Neo, Rauno Arike, David Krueger, Philip Torr, Fazl Barez

TL;DR

This paper introduces "Learned Feedback Patterns" (LFPs) to understand how Large Language Models (LLMs) internalize human preferences during Reinforcement Learning from Human Feedback (RLHF). By training "probes" on condensed LLM activations, the authors show that LFPs can be accurately measured, revealing potential divergences from true human preferences, which is crucial for LLM safety and alignment.

What Problem Does This Paper Address?

Fine-tuning LLMs with RLHF is a common practice to align them with human preferences. However, it's unclear if LLMs truly learn these preferences or just mimic them. This lack of understanding poses risks, as misaligned LFPs could lead to unintended behaviors or even catastrophic outcomes as LLMs become more capable. The paper aims to bridge this gap by developing methods to interpret and measure these learned patterns, specifically focusing on how well they align with the original human feedback.

Methods

The core of the paper's methodology involves:

  1. Fine-tuning LLMs with RLHF: Standard RLHF techniques, including Proximal Policy Optimization (PPO) and Direct Preference Optimization (DPO), are used to fine-tune pre-trained LLMs on various tasks (sentiment generation, helpfulness, toxicity).
  2. Sparse Autoencoders (SAEs): To make LLM activations more interpretable, SAEs are trained on the activations of specific, high-divergence layers of the fine-tuned LLMs. These SAEs produce condensed, sparse representations of the activations.
  3. Probe Training: Linear regression "probes" are trained on these condensed activations. The probes are designed to predict the implicit feedback signal (e.g., sentiment score) based on the activations. This allows for a quantitative comparison between the probe's prediction and the true feedback signal.
  4. Probe Validation: The probes are validated by comparing the features they identify as active for positive feedback with descriptions generated by GPT-4. This cross-validation helps ensure the probes are indeed capturing relevant LFPs.

Datasets

  • IMDB dataset: Used for controlled sentiment generation tasks.
  • Anthropic HH-RLHF dataset: Used for fine-tuning models to be helpful and harmless.
  • Toxic-dpo dataset: Used for fine-tuning models for toxicity.

Key Insights and Ideas

  • LFPs are measurable: The paper demonstrates that "Learned Feedback Patterns" (LFPs) within LLM activations can be reliably measured using probes trained on condensed representations.
  • Divergence is quantifiable: The methods allow for quantifying the divergence between an LLM's learned patterns and the original human preferences, highlighting potential alignment issues.
  • Deep layers matter most: The highest parameter divergences, and thus the most informative layers for LFPs, tend to be in the deeper layers of the LLMs.
  • GPT-4 as a validation tool: Using GPT-4 to describe features identified by probes provides a useful cross-validation mechanism, showing agreement between automated feature analysis and human-like interpretation.

Key Results

  • Accurate prediction of feedback: Probes trained on just 5 MLP layers of fine-tuned LLMs can recover significant information about the fine-tuning feedback.
  • High accuracy on classification tasks: For tasks like helpfulness and toxicity, logistic regression probes achieve near-perfect accuracy (≥99.80%) in predicting the implicit feedback signal.
  • Moderate correlation on granular tasks: For the controlled sentiment generation task, Kendall Tau correlation between probe predictions and VADER lexicon sentiment ranges from 0.02 to 0.093 for different models, with Pythia-160m showing a significant correlation (p=0.014).
  • Feature ablation impacts performance: Ablating features identified by GPT-4 as relevant to LFPs consistently leads to decreased performance on the fine-tuning task, supporting their importance.

Limitations and Future Work

  • Feature superposition: While SAEs help condense activations, feature superposition might still obscure which specific features the model associates with feedback signals.
  • Lack of mechanistic explanation: The method identifies which features are involved and how divergent LFPs are, but not how these features relate to each other or how they affect the expected feedback signal.
  • Future work: The authors suggest analyzing LFPs with more complex units than features, such as circuits, and exploring the impact of selecting lower layers for autoencoder training. They also note that the accuracy of probes on granular tasks might be limited by the complexity of the task and potential imbalances in the training data.

Summary updated

BibTeX
@inproceedings{marks2024interpreting,
  author = {Luke Marks and Amir Abdullah and Clement Neo and Rauno Arike and David Krueger and Philip Torr and Fazl Barez},
  title = {{Interpreting Learned Feedback Patterns in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Es5M51lhwU},
}
Figure