函数空间中网络的度量与正则化
Measuring and regularizing networks in function space
摘要:
为了优化神经网络,人们通常会考虑优化其参数,但这最终是优化将输入映射到输出的函数的问题。由于参数的变化可能作为函数变化的不良代理,因此有些关注的是,参数被赋予了首要地位,但对应性尚未被测试。在这里,我们证明了计算$L^2$ Hilbert空间中函数之间的距离是简单且计算可行的。我们研究了典型的网络在这个空间中的行为,并比较了参数$\ell^2$距离与优化轨迹的各个点之间的函数$L^2$距离的比较。我们发现这两个距离是非平凡相关的。特别地,$L^2/\ell^2$比率在整个优化过程中降低,在测试误差稳定期附近达到稳定值。然后,我们研究如何的$L^2$距离可以直接应用到优化。我们首先提出,在多任务学习中,可以通过直接限制任务之间的输入/输出函数的变化来避免灾难性遗忘。其次,我们提出了一个新的学习规则,约束的距离网络可以通过$L^2$ -空间在任何一个更新。这使得新的例子可以以一种最小程度地干扰先前学习的方式来学习。这些应用程序演示了如何直接测量和正则化函数距离,而不依赖于参数或局部近似,如损失曲率。
英文摘要:
To optimize a neural network one often thinks of optimizing its parameters, but it is ultimately a matter of optimizing the function that maps inputs to outputs. Since a change in the parameters might serve as a poor proxy for the change in the function, it is of some concern that primacy is given to parameters but that the correspondence has not been tested. Here, we show that it is simple and computationally feasible to calculate distances between functions in a $L^2$ Hilbert space. We examine how typical networks behave in this space, and compare how parameter $\ell^2$ distances compare to function $L^2$ distances between various points of an optimization trajectory. We find that the two distances are nontrivially related. In particular, the $L^2/\ell^2$ ratio decreases throughout optimization, reaching a steady value around when test error plateaus. We then investigate how the $L^2$ distance could be applied directly to optimization. We first propose that in multitask learning, one can avoid catastrophic forgetting by directly limiting how much the input/output function changes between tasks. Secondly, we propose a new learning rule that constrains the distance a network can travel through $L^2$-space in any one update. This allows new examples to be learned in a way that minimally interferes with what has previously been learned. These applications demonstrate how one can measure and regularize function distances directly, without relying on parameters or local approximations like loss curvature.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。