Encourage or Inhibit Monosemanticity? Revisit Monosemanticity from a Feature Decorrelation Perspective

Hanqi Yan, Yanzheng Xiang, Guangyi Chen, Yifei Wang, Lin Gui, Yulan He

Introduction

In the quest to understand the internal mechanisms of Large Language Models (LLMs), researchers have long pursued the ideal of monosemanticity: the state where individual neurons correspond to single, human-interpretable concepts. However, modern LLMs are predominantly polysemantic, with neurons responding to a complex mixture of unrelated concepts due to "superposition"—a phenomenon where models pack more features into their latent space than they have dimensions to represent.

A fundamental debate exists in the field: should we actively encourage monosemanticity during training? While some research suggests that inhibiting monosemanticity might preserve model capacity, this paper, presented at EMNLP 2024, argues the opposite. By linking monosemanticity to feature decorrelation, we demonstrate that encouraging "purer" neural representations during preference alignment significantly enhances both interpretability and performance.

Methodology: Decorrelated Policy Optimization (DecPO)

We propose that feature decorrelation serves as a mathematically tractable proxy for monosemanticity. In a perfectly monosemantic system, neurons are uncorrelated, and the correlation matrix of their activations is diagonal.

To achieve this, we introduce Decorrelated Policy Optimization (DecPO), which augments the standard Direct Preference Optimization (DPO) objective with a Frobenius norm regularizer. This regularizer penalizes the difference between the activation correlation matrix ($zz^T$) and the identity matrix ($I$), effectively punishing the model when distinct neurons fire simultaneously for the same input. This approach pushes the model toward activation sparsity and higher representation diversity, preventing it from "hacking" reward functions through statistical shortcuts.

Figure 4: Feature decorrelation levels across relative layer depths for base models versus DPO-aligned models on various datasets.

Our analysis reveals that standard DPO training naturally tends to increase monosemanticity, particularly in earlier layers. DecPO leverages this inherent trend to further refine the model's internal representations.

Experimental Setup

We evaluated DecPO using Llama-2 and Llama-3 (up to 8B parameters) across three datasets targeting human value alignment:

  • Toxicity: 24,576 toxic-nontoxic pairs for harmful content reduction.
  • Cognition Reframing (CogFrame): Reframing negative thoughts into positive ones.
  • Sycophancy: Testing the model's resistance to mindlessly agreeing with user biases.

Key Results and Analysis

Empirical results across Llama-2 and Llama-3 models demonstrate that DecPO consistently outperforms standard DPO and SimDPO. On the Toxicity dataset, DecPO improved performance by 12-13% over the baseline DPO for Llama-2 models.

Figure 5: Comparison of feature decorrelation between standard DPO and the proposed DecPO across different training steps, showing DecPO's superior ability to maintain decorrelated features.

Key findings include:

  • Enhanced Reward Margins: DecPO achieves a larger reward margin between preferred and dispreferred responses, indicating a more robust understanding of underlying values.
  • Increased Sparsity: Variance analysis confirms that DecPO leads to higher activation sparsity, utilizing neural resources more efficiently.
  • Improved Interpretability: Qualitative analysis of MLP dimensions shows that DecPO produces "cleaner" concepts. For instance, in toxicity-aligned models, specific neurons in deeper layers (e.g., Layer 32) clearly isolate concepts like "violence" or "harm."

Conclusion

This research challenges the notion that monosemanticity inhibits model capacity. By demonstrating that feature decorrelation during preference alignment boosts performance, we provide a path toward "glass-box" AI. DecPO proves that we do not need to trade interpretability for performance; rather, encouraging distinct, decorrelated features leads to models that are both more capable and easier to understand.

Summary updated

BibTeX
@inproceedings{yan2024encourage,
  author = {Hanqi Yan and Yanzheng Xiang and Guangyi Chen and Yifei Wang and Lin Gui and Yulan He},
  title = {{Encourage or Inhibit Monosemanticity? Revisit Monosemanticity from a Feature Decorrelation Perspective}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.582},
}
Figure