arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26130cs.LGcs.AI
收藏

reward-lens: 一个用于奖励模型的机制可解释性库

reward-lens: A Mechanistic Interpretability Library for Reward Models

Mohammed Suhail B Nadaf

AI总结:

reward-lens库将传统生成LLM的机制可解释性工具适配至奖励模型,通过奖励头权重向量作为核心分析轴,提供多种分析工具和扩展功能,验证发现线性归因与因果修补效果存在负相关。

摘要:

每个通过RLHF训练的语言模型都由奖励模型塑造,尽管机制可解释性工具包——logit lens、直接logit归因、激活修补、稀疏自动编码器——是为生成式LLM设计的,其基础操作均投影到词汇解嵌。奖励模型用标量回归头替代该结构,破坏了原有工具。我们提出了reward-lens,一个开源库,将此工具包移植至奖励模型,围绕一个观察:奖励头的权重向量$w_r$是所有可解释性问题的自然轴。该库提供奖励镜头、组件归因、三模式激活修补、奖励黑客探测套件、TopK SAE特征归因、跨模型比较以及五个理论支撑的扩展(扭曲指数、意识感知修补、对齐级联检测、奖励项冲突分析、概念向量分析)。一个十种方法的适配协议覆盖Llama、Mistral、Gemma-2和ArmoRM多目标头,提供通用适配器用于任何HuggingFace序列分类模型。我们验证了两个生产奖励模型在约695个RewardBench配对上的表现。核心经验发现是负面的:线性归因不预测因果修补效果(在Skywork上均值Spearman $ρ=-0.256$,在ArmoRM上为$-0.027$)。该框架将这种分歧视为属性而非错误——推动了设计,使观测和因果观点成为首要且可直接比较的要素。

英文摘要:

Every RLHF-trained language model is shaped by a reward model, yet the mechanistic interpretability toolkit -- logit lens, direct logit attribution, activation patching, sparse autoencoders -- was built for generative LLMs whose primitives all project onto a vocabulary unembedding. Reward models replace that with a scalar regression head, breaking each tool. We present reward-lens, an open-source library that ports this toolkit to reward models, organised around one observation: the reward head's weight vector $w_r$ is the natural axis for every interpretability question. The library provides a Reward Lens, component attribution, three-mode activation patching, a reward-hacking probe suite, TopK SAE feature attribution, cross-model comparison, and five theory-grounded extensions (distortion index, divergence-aware patching, misalignment cascade detection, reward-term conflict analysis, concept-vector analysis). A ten-method adapter protocol covers Llama, Mistral, Gemma-2, and ArmoRM multi-objective heads, with a generic adapter for any HuggingFace sequence classification model. We validate on two production reward models across ~695 RewardBench pairs. The central empirical finding is negative: linear attribution does not predict causal patching effects (mean Spearman $ρ= -0.256$ on Skywork, $-0.027$ on ArmoRM). The framework treats this disagreement as a property to expose, not a bug -- motivating a design that keeps observational and causal views first-class and directly comparable.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑