arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.10007cs.LGcs.CL
收藏

具有学习控制动力学的连续深度变换器

Continuous-Depth Transformers with Learned Control Dynamics

Peter Jemley

AI总结:

本文提出一种连续深度变换器,通过学习控制信号实现对语言生成属性的可控调整,展示了在稳定性、语义控制和效率方面的优势。

摘要:

我们提出了一种混合变换器架构,通过将离散中间层替换为连续深度神经普通微分方程(ODE)块,实现了通过学习的转向信号在推理时对生成属性的控制。与标准变换器不同,我们的方法将深度视为由学习的向量场$F_θ(H, τ, u)$所控制的连续变量,其中$u$是通过显式拼接注入的低维控制信号。我们通过四个实验验证了该架构:(1)梯度流稳定性,实现零爆炸/消失梯度事件;(2)语义转向,实现对积极/消极情感控制的98%/88%准确率;(3)连续插值通过固定与自适应求解器之间轨迹偏差仅为0.068%的验证;(4)效率基准测试显示延迟与标准离散基线相当。此外,我们还表明,自适应ODE求解器揭示了学习动力学中的几何结构:控制信号将向量场划分为具有不同曲率特征的不同动力学区域。共轭方法使训练内存消耗为$O(1)$,无论积分深度如何。我们的结果表明,具有学习控制信号的连续深度动力学提供了一种可行且高效的可转向语言生成机制。

英文摘要:

We present a hybrid transformer architecture that replaces discrete middle layers with a continuous-depth Neural Ordinary Differential Equation (ODE) block, enabling inference-time control over generation attributes via a learned steering signal. Unlike standard transformers that process representations through fixed discrete layers, our approach treats depth as a continuous variable governed by a learned vector field $F_θ(H, τ, u)$, where $u$ is a low-dimensional control signal injected via explicit concatenation. We validate the architecture through four experiments: (1) gradient flow stability with zero exploding/vanishing gradient events, (2) semantic steering achieving 98\%/88\% accuracy for positive/negative sentiment control, (3) continuous interpolation validated by a negligible 0.068\% trajectory divergence between fixed and adaptive solvers, and (4) efficiency benchmarking demonstrating latency parity with standard discrete baselines. Additionally, we show that adaptive ODE solvers reveal geometric structure in the learned dynamics: the control signal partitions the vector field into distinct dynamical regimes with different curvature characteristics. The adjoint method enables $O(1)$ memory training regardless of integration depth. Our results demonstrate that continuous-depth dynamics with learned control signals provide a viable, efficient mechanism for steerable language generation.

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

↑