Inside the Unfair Judge: A Mechanistic Interpretability Account of LLM-as-Judge Bias· 解剖不公法官:LLM 作为法官的偏见机制解释
Existing studies of LLM-as-judge scoring bias work predominantly at the input-output level: they perturb inputs, measure score deltas, and propose prompt-level mitigations. We argue that the same biases admit a representation-level account in the judge's hidden state, complementary to the input-output view and operationally useful in ways it does not afford. We report three findings, across seven judges, seven bias types, and nine benchmarks. Geometry: baseline judging inputs occupy a tight activation manifold while biased inputs are displaced along a low-dimensional, type-specific subspace that sharpens with depth and is recovered consistently by three families of estimators. Causal control: steering hidden states along this subspace drives scoring in both directions, forward shifts reproducing biased scoring on clean inputs and reverse shifts restoring baseline scoring on biased ones, while matched-norm random directions produce shifts an order of magnitude smaller. Operational: a simple linear projection onto the same bias-direction features anticipates judge failures on three entirely unseen benchmarks, substantially outperforming text-based alternatives. Reading bias as activation geometry, rather than as input-output noise, unifies geometric structure, causal control, and operational prediction within a single framework. The project page is available at https://xzx34.github.io/unfair-judge/
LLM 作为法官的偏见可通过隐藏状态的几何结构解释。
- 核心方法
- 通过分析 LLM 隐藏状态中的激活几何结构和特定偏见子空间,提出因果控制和预测模型偏见的新方法。
- 适合谁读
- 研究者、工程师
- 要解决的问题
- 探讨和解释大型语言模型(LLM)在作为法官评分时的偏见问题。
- 关键实验
- 跨 7 个法官模型、7 种偏见类型和 9 个基准测试进行实验,验证了方法的有效性和一致性。
- 主要贡献
- 1) 发现偏见输入在 LLM 隐藏状态中占据低维、类型特定的子空间;2) 通过操纵隐藏状态实现对偏见评分的双向控制;3) 提出基于线性投影的偏见预测方法。
- 意义与局限
- 将偏见解释为激活几何结构,提供了一个统一的框架,有助于更深入理解 LLM 偏见机制,并为偏见缓解提供新思路。局限在于该方法对不同模型的泛化能力有待进一步验证。