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

语言模型在预训练过程中可控性如何涌现?

How Does Controllability Emerge In Language Models During Pretraining?

Mohamed bin Zayed University of Artificial Intelligence(莫扎德·本·扎耶德人工智能大学);Carnegie Mellon University(卡内基梅隆大学)

Jianshu She, Xinyue Li, Eric Xing, Zhengzhong Liu, Qirong Ho

AI总结:

本研究通过干预检测器框架揭示,语言模型预训练中线性可控性在中间阶段涌现,且概念线性可分性与可控性紧密相关,并验证了该发现的跨模型普遍性。

摘要:

语言模型可以通过修改其内部表示来引导生成过程中的情感、风格或真实性等概念。然而,有效干预的条件仍不明确,通常通过启发式方法和反复试验来验证。为填补这一空白,我们证明干预有效性(以线性可控性衡量,即通过隐藏状态的线性变换调整输出的能力)在训练的中间阶段涌现。此外,即使紧密相关的概念(如愤怒和悲伤)也在不同的训练阶段表现出可控性涌现。为更好地解释训练过程中可控性的动态,我们将现有干预技术改编为统一框架,称为“干预检测器”(ID),旨在通过隐藏状态和表示分析揭示线性可控性在训练过程中如何演变。ID揭示,随着训练进行,概念在隐藏空间中变得越来越线性可分,这与线性可控性的涌现密切相关。我们进一步引入基于ID的指标,如热图、熵趋势和余弦相似度,以帮助解释线性可控性在整个训练过程中的演变。此外,我们将ID应用于不同的模型家族,以确保关于可控性动态的发现的普遍性。

英文摘要:

Language models can be steered by modifying their internal representations to control concepts such as emotion, style, or truthfulness in generation. However, the conditions for an effective intervention remain unclear and are often validated through heuristics and trial-and-error. To fill this gap, we demonstrate that intervention efficacy, measured by linear steerability (i.e., the ability to adjust output via linear transformations of hidden states), emerges during intermediate stages of training. Moreover, even closely related concepts (e.g., anger and sadness) exhibit steerability emergence at distinct stages of training. To better interpret the dynamics of steerability during training, we adapt existing intervention techniques into a unified framework, referred to as the "Intervention Detector" (ID), which is designed to reveal how linear steerability evolves over the course of training through hidden state and representation analysis. ID reveals that concepts become increasingly linearly separable in the hidden space as training progresses, which strongly correlates with the emergence of linear steerability. We further introduce ID-based metrics, such as heatmaps, entropy trends, and cosine similarity, to help interpret how linear steerability evolves throughout training. In addition, we apply ID across different model families to ensure the generality of our findings on steerability dynamics.

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

↑