arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07128cs.LG
收藏

语言模型中的分布式稀疏干预

Distributed Sparse Interventions in Language Models

Max Planck School of Cognition(马克斯·普朗克认知学院);Center for Lifespan Psychology, Max Planck Institute for Human Development(马克斯·普朗克人类发展研究所寿命心理学中心);Machine Learning Group, Technische Universität Berlin(柏林工业大学机器学习小组);Berlin Institute for the Foundations of Learning and Data (BIFOLD)(柏林学习与数据基础研究所)

Maximilian S. Ernst, Lorenz Linhardt, Aaron Peikert, Oliver Eberle

AI总结:

研究语言模型组件在任务行为中的因果影响,提出分布式稀疏干预(DSI)方法,考虑跨层神经元非线性和相互作用,识别稀疏神经元集。实验表明DSI可通过少量神经元激活任务行为,实现细粒度控制,加深对任务构成的理解。

摘要:

语言模型能在不同抽象层次执行多种任务,可通过干预研究其组件在任务行为中的因果影响。以往模型控制工作多聚焦于激活空间全局方向的干预,将任务表示建模为近似线性和加法形式。通过研究神经元层面的干预,发现当前控制方法未捕捉到的神经元特定非线性效应。引入分布式稀疏干预(DSI)方法,该方法考虑跨层神经元的非线性和相互作用,以识别引发任务相关计算的稀疏神经元集。在一系列任务中,DSI通过定位和干预低至0.01%的神经元来激活指令调优语言模型中的任务行为,突出了基于神经元的稀疏分布式干预的有效性。此外,基于集合的视角能对已识别神经元集进行计算,通过分析其跨任务影响深入了解单个神经元的作用。通过稀疏干预,DSI实现对模型行为的细粒度控制、任务相关神经元集的定位,并加深了对任务构成的理解。

英文摘要:

Language models can perform a wide range of tasks at various levels of abstraction. They flexibly infer tasks from context, execute multiple tasks simultaneously, and select among competing goals. Understanding and controlling how models represent these tasks is central to aligning them with human objectives. Researchers can change model behaviour in many ways, but model steering, which manipulates intermediate task representations, links representation to behaviour most directly. Current steering methods typically intervene densely and assume linear effects, e.g., shifting every activation along a global direction in the residual stream. Because such interventions change thousands of neurons at once, they leave researchers to separate relevant from irrelevant neurons. We introduce Distributed Sparse Interventions (DSI), which steers models through a sparse set of individual neurons distributed across layers and attention heads. Finding such a set requires accounting for the selected neurons' interactions, even across layers; DSI achieves that by iteratively refining which neurons to intervene on and how strongly. Across 12 tasks and three instruction-tuned models, DSI activates task behaviour by identifying and intervening on fewer than 0.1% of neurons, outperforming dense steering vectors and often matching 10-shot in-context learning. Because DSI identifies explicit sets of neurons, it connects neuron-level computation to changes in latent representations and, ultimately, to desired outputs, allowing us to study how distributed computational components interact to produce steered behaviour. Our results demonstrate that steering can be viewed not only as a linear shift in representation space, but also as a targeted intervention on model computation, realised by adjusting a small set of interacting neurons whose coordinated activity spans multiple layers and contributes to behaviour.

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

↑