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

梯度路由:通过屏蔽梯度实现神经网络中的计算定位

Gradient Routing: Masking Gradients to Localize Computation in Neural Networks

ML Alignment and Theory Scholars (MATS)(机器学习对齐与理论学者(MATS))

Alex Cloud, Jacob Goldman-Wetzler, Evžen Wybitul, Joseph Miller, Alexander Matt Turner

AI总结:

针对神经网络训练忽视内部机制导致的安全等问题,提出梯度路由训练方法,通过反向传播时应用用户提供的依赖数据的加权掩码配置参数更新,实现能力隔离到特定子区域,可提升可解释性、稳健遗忘和强化学习监督等能力。

摘要:

神经网络主要基于输入和输出进行训练,而不考虑其内部机制。这些被忽视的机制决定了对安全性至关重要的特性,例如(i)透明度;(ii)不存在敏感信息或有害能力;(iii)目标在训练分布之外的可靠泛化。为解决这一缺陷,我们引入梯度路由,一种将能力隔离到神经网络特定子区域的训练方法。梯度路由在反向传播期间对梯度应用数据相关的加权掩码。这些掩码由用户提供,以配置哪些参数由哪些数据点更新。我们表明,梯度路由可用于(1)学习以可解释方式划分的表示;(2)通过消融预先指定的网络子区域实现稳健的遗忘;(3)通过定位负责不同行为的模块实现对强化学习器的可扩展监督。我们发现,即使应用于有限的、临时的数据子集,梯度路由也能定位能力。我们得出结论,该方法在高质量数据稀缺的具有挑战性的现实应用中具有前景。

英文摘要:

Neural networks are trained primarily based on their inputs and outputs, without regard for their internal mechanisms. These neglected mechanisms determine properties that are critical for safety, like (i) transparency; (ii) the absence of sensitive information or harmful capabilities; and (iii) reliable generalization of goals beyond the training distribution. To address this shortcoming, we introduce gradient routing, a training method that isolates capabilities to specific subregions of a neural network. Gradient routing applies data-dependent, weighted masks to gradients during backpropagation. These masks are supplied by the user in order to configure which parameters are updated by which data points. We show that gradient routing can be used to (1) learn representations which are partitioned in an interpretable way; (2) enable robust unlearning via ablation of a pre-specified network subregion; and (3) achieve scalable oversight of a reinforcement learner by localizing modules responsible for different behaviors. Throughout, we find that gradient routing localizes capabilities even when applied to a limited, ad-hoc subset of the data. We conclude that the approach holds promise for challenging, real-world applications where quality data are scarce.

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

↑