函数空间学习率
Function-Space Learning Rates
AI总结:
本文提出函数空间学习率概念及高效测量方法,并引入FLeRM算法实现跨模型规模的超参数迁移,在多种架构中验证其有效性。
摘要:
我们考虑逐层函数空间学习率,它衡量神经网络输出函数在参数张量更新时的变化幅度。这与传统学习率形成对比,后者描述参数空间中变化的大小。我们开发了在任意神经网络中测量和设置函数空间学习率的高效方法,仅需少量额外的反向传播即可实现极小的计算开销,这些反向传播可以在训练开始时或训练期间定期执行。我们展示了两个关键应用:(1)在函数空间而非参数空间中分析标准神经网络优化器的动态行为;(2)引入FLeRM(函数空间学习率匹配),一种跨模型规模进行超参数迁移的新方法。FLeRM在训练一个小型、廉价的基座模型时记录函数空间学习率,然后在训练更大模型时自动调整参数空间的逐层学习率,以保持一致的函数空间更新。FLeRM在多种架构中实现了跨模型宽度、深度、初始化尺度和LoRA秩的超参数迁移,包括带有残差连接的MLP和具有不同层归一化方案的Transformer。
英文摘要:
We consider layerwise function-space learning rates, which measure the magnitude of the change in a neural network's output function in response to an update to a parameter tensor. This contrasts with traditional learning rates, which describe the magnitude of changes in parameter space. We develop efficient methods to measure and set function-space learning rates in arbitrary neural networks, requiring only minimal computational overhead through a few additional backward passes that can be performed at the start of, or periodically during, training. We demonstrate two key applications: (1) analysing the dynamics of standard neural network optimisers in function space, rather than parameter space, and (2) introducing FLeRM (Function-space Learning Rate Matching), a novel approach to hyperparameter transfer across model scales. FLeRM records function-space learning rates while training a small, cheap base model, then automatically adjusts parameter-space layerwise learning rates when training larger models to maintain consistent function-space updates. FLeRM gives hyperparameter transfer across model width, depth, initialisation scale, and LoRA rank in various architectures including MLPs with residual connections and transformers with different layer normalisation schemes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。