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

在小型语言模型中提取和引导情绪表示:一种方法学比较

Extracting and Steering Emotion Representations in Small Language Models: A Methodological Comparison

ModuLabs(ModuLabs实验室)

Jihoon Jeong

AI总结:

本文比较了小型语言模型中情绪向量提取方法,评估了9种模型在5种架构家族中的情绪表示,发现生成基于的方法在情绪分离上更优,并揭示了情绪表示在中间transformer层的定位及引导实验中的三种 regime。

摘要:

小型语言模型(SLMs)在100M-10B参数范围内日益推动生产系统,但其是否具备最近在前沿模型中发现的内部情绪表示仍不清楚。本文首次比较了SLMs的情绪向量提取方法,评估了9种模型在5种架构家族(GPT-2、Gemma、Qwen、Llama、Mistral)中使用20种情绪和两种提取方法(基于生成和基于理解)。生成基于的提取在情绪分离上统计上更优(Mann-Whitney p=0.007;Cohen's d=-107.5),其优势受指令微调和架构影响。情绪表示在中间transformer层(约50%深度)定位,遵循一个U形曲线,从124M到3B参数的架构不变。我们通过代表性各向异性基线验证了这些发现,并通过引导实验确认了因果行为效应,独立验证由外部情绪分类器(92%成功率,37/40场景)。引导揭示了三种regime——手术(一致的文本转换)、重复崩溃和爆炸(文本退化),通过困惑度比值和模型架构而非规模分离。我们记录了Qwen中的跨语言情绪纠缠,其中引导激活了语义对齐的中文token,RLHF并未抑制,这引发了多语言部署的安全问题。本文为开放权重模型的情绪研究提供了方法学指南,并通过将外部行为分析与内部表示分析连接,贡献于Model Medicine系列。

英文摘要:

Small language models (SLMs) in the 100M-10B parameter range increasingly power production systems, yet whether they possess the internal emotion representations recently discovered in frontier models remains unknown. We present the first comparative analysis of emotion vector extraction methods for SLMs, evaluating 9 models across 5 architectural families (GPT-2, Gemma, Qwen, Llama, Mistral) using 20 emotions and two extraction methods (generation-based and comprehension-based). Generation-based extraction produces statistically superior emotion separation (Mann-Whitney p = 0.007; Cohen's d = -107.5), with the advantage modulated by instruction tuning and architecture. Emotion representations localize at middle transformer layers (~50% depth), following a U-shaped curve that is architecture-invariant from 124M to 3B parameters. We validate these findings against representational anisotropy baselines across 4 models and confirm causal behavioral effects through steering experiments, independently verified by an external emotion classifier (92% success rate, 37/40 scenarios). Steering reveals three regimes -- surgical (coherent text transformation), repetitive collapse, and explosive (text degradation) -- quantified by perplexity ratios and separated by model architecture rather than scale. We document cross-lingual emotion entanglement in Qwen, where steering activates semantically aligned Chinese tokens that RLHF does not suppress, raising safety concerns for multilingual deployment. This work provides methodological guidelines for emotion research on open-weight models and contributes to the Model Medicine series by bridging external behavioral profiling with internal representational analysis.

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

↑