额外欧拉步揭示残差网络的特性:权重绑定与非绑定阶段的特征动力学
What Extra Euler Steps Reveal About Residual Networks: Feature Dynamics in Weight-Tied and Untied Stages
AI总结:
该研究通过对ConvNeXt等模型的额外欧拉步探测,发现残差网络训练阶段是每个块对应一个ODE的序列,权重绑定会降低准确率,为残差网络的动力学特性提供了新见解。
摘要:
残差块计算x + f(x),这是一种显式欧拉步的形式,但训练后的残差网络是否表现为常微分方程(ODE)的积分器仍存在争议。我们在推理阶段探测训练后的网络,无需重新训练:每个块以步长1/R应用R次,这保持了积分范围,仅细化分辨率。在ConvNeXt、Swin和ResNet上,128倍细化的代价不到ImageNet Top-1准确率的1个百分点,而改变积分范围会使准确率降至约1%,插值连续块的权重则会损失8至23个百分点。因此,训练后的阶段是每个块对应一个ODE的序列,而非深度方向权重平滑变化的单个ODE。细化路径还展示了阶段如何传输其特征:在ConvNeXt-T中,第3阶段的9个块生成几乎正交的方向,后续块均不抵消,因此路径在每个块边界处急剧转向。当这9个块共享同一组权重时,同一阶段变为单个平滑流:参数减少34%,Top-1准确率损失1.40个百分点(每个模型在同一方案下运行两次),而同一网络的冻结后续层在9个块中的3个之后已能以72.2%的准确率对其状态进行分类,而标准模型仅为32.5%。我们聚焦于视觉领域;该探测无需重新训练,而Transformer语言模型,尤其是循环Transformer,是自然的下一个测试对象。代码:this https URL
英文摘要:
Residual blocks compute x + f(x), the form of one explicit Euler step, but whether trained residual networks behave as integrators of an ordinary differential equation (ODE) is still debated. We probe trained networks at inference without retraining: each block is applied R times with step 1/R, which keeps the integration horizon and only refines the resolution. On ConvNeXt, Swin and ResNet, 128-fold refinement costs less than one ImageNet top-1 point, whereas changing the horizon drops accuracy to about 1% and interpolating the weights of consecutive blocks costs 8 to 23 points. A trained stage is therefore a sequence of one ODE per block, not a single ODE with weights that vary smoothly in depth. The refined path also shows how a stage transports its features. In ConvNeXt-T, the nine blocks of stage 3 write nearly orthogonal directions that no later block undoes, so the path turns sharply at every block boundary. When the nine blocks share one set of weights, the same stage becomes a single smooth flow: with 34% fewer parameters it loses 1.40 top-1 points (two runs per model under one recipe), and the frozen later layers of the same network already classify its state at 72.2% after three of the nine blocks, against 32.5% for the standard model. We focus on vision; the probe needs no retraining, and transformer language models, looped ones in particular, are the natural next test. Code: https://github.com/jaume2000/dynamics_skip_nn
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。