arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.30788cs.LGcs.CLcs.CR
收藏

通过过程侧边栏实现可撤销的学习记忆

Revocable Learned State via Process Sidecars

Sideplane AI

John Sweeney

AI总结:

提出过程侧边栏方法,通过两系数编辑族修正安全训练后的记忆方向,实现记忆撤销,理论证明其二阶精度优于任务算术编辑。

摘要:

语言模型通常分阶段适应:公共技能阶段、私有记忆阶段以及后续的安全阶段,该阶段学习拒绝与记忆实体相关的输出。在安全阶段之后撤销记忆与减去记忆更新不同:后续的安全优化器已经改变了记忆方向。我们引入过程侧边栏,一个两系数编辑族 $\hat{\theta}(\lambda,\gamma)=\theta_{\mathrm{AMS}}-\lambda\Delta_{\mathrm{M}}-\gamma\hat{R}_{\mathrm{S}\leftarrow\mathrm{M}}$,其中 $\hat{R}_{\mathrm{S}\leftarrow\mathrm{M}}=\hat{J}_{\mathrm{S},\varepsilon}(\Delta_{\mathrm{M}})-\Delta_{\mathrm{M}}$,$\hat{J}_{\mathrm{S},\varepsilon}$ 是通过实现的未来 AdamW 安全训练过程的中心割线。实现使用 $\varepsilon=1$ 在自然记忆编辑尺度上;它重用 $\theta_{\mathrm{AMS}}$ 作为正端点,并在 $\theta_{\mathrm{A}}-\Delta_{\mathrm{M}}$ 处计算一个额外的安全轨迹。我们证明了两点。首先,精确侧边栏使用真实传输方向 $R_{\mathrm{S}\leftarrow\mathrm{M}}$ 而非割线估计,在 $(\lambda,\gamma)=(1,1)$ 处恢复反事实安全独有预言机 $\theta_{\mathrm{AS}}$ 直至二阶;证明将 AdamW 视为参数、一阶矩和二阶矩的增广状态映射。其次,这个过程信息是必要的:每当未来安全训练弯曲记忆方向时,每个标量任务算术编辑都会留下二阶反事实误差,而过程侧边栏编辑是二阶精确的。在三个模型上,验证选择的二维编辑在所有试验中优于朴素任务算术的保留拒绝闭合,并且在 $\gamma=\lambda$ 过程-JVP 子族(缓存二维网格的对角切片)的所有配对试验中也是如此。

英文摘要:

Language models are often adapted in stages: a public skill phase, a private memory phase, and a later safety phase that learns to refuse outputs tied to the remembered entities. Revoking the memory after the safety phase is not the same problem as subtracting the memory update: the later safety optimizer has transported the memory direction. We introduce process sidecars, a two-coefficient edit family $\hatθ(λ,γ)=θ_{\mathrm{AMS}}-λΔ_{\mathrm{M}}-γ\hat{R}_{\mathrm{S}\leftarrow\mathrm{M}}$, with $\hat{R}_{\mathrm{S}\leftarrow\mathrm{M}}=\hat{J}_{\mathrm{S},\varepsilon}(Δ_{\mathrm{M}})-Δ_{\mathrm{M}}$, where $\hat{J}_{\mathrm{S},\varepsilon}$ is a centered secant through the realized future AdamW safety-training process. The implementation uses $\varepsilon=1$ at the natural memory-edit scale; it reuses $θ_{\mathrm{AMS}}$ as the positive endpoint and computes one additional safety trace at $θ_{\mathrm{A}}-Δ_{\mathrm{M}}$. We prove two things. First, the exact sidecar, using the true transported direction $R_{\mathrm{S}\leftarrow\mathrm{M}}$ rather than the secant estimate, at $(λ,γ)=(1,1)$ recovers the counterfactual safety-only oracle $θ_{\mathrm{AS}}$ up to second order; the proof treats AdamW as an augmented-state map over parameters, first moments, and second moments. Second, this process information is necessary: whenever future safety training bends the memory direction, every scalar task-arithmetic edit leaves first-order counterfactual error, while the process-sidecar edit is second-order accurate. Across three models, the validation-selected 2D edit improves held-out refusal closure over naive task arithmetic in all trials, and over the $γ=λ$ process-JVP subfamily, the diagonal slice of the cached 2D grid, in all paired trials.

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

↑