arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01702cs.LG
收藏

具有自动微分的浮点网络可以表示几乎所有浮点函数及其梯度

Floating-Point Networks with Automatic Differentiation Can Represent Almost All Floating-Point Functions and Their Gradients

Department of Artificial Intelligence, Korea University(人工智能系,韩国大学);Department of Mathematics and Statistics, Sejong University(数学与统计学系,世宗大学);Department of Mathematical Sciences, Gwangju Institute of Science and Technology(数学科学系,光州科学技术院)

Sejun Park, Yeachan Park, Geonho Hwang

AI总结:

本文证明,在浮点算术下,使用自动微分的浮点神经网络可以表示任意浮点函数及其梯度,适用于ReLU、ELU等常见激活函数。

摘要:

理论研究显示,对于紧致域上的任意可微函数,存在一个神经网络可以同时逼近函数值和梯度。然而,由于该结果假设实数参数和精确内部运算,无法在实际中使用。相反,实际实现仅使用实数的有限子集和带有舍入误差的机器运算。本文研究在浮点算术下,当输入梯度由自动微分算法$D^\mathtt{AD}$计算时,神经网络是否具有类似结果。我们首先证明,给定一个浮点函数$\phi$(例如损失函数),任意函数值和梯度可以分别由浮点网络$f$和$D^\mathtt{AD}(\phi\circ f)$表示。我们进一步推广该结果:在温和条件下,给定$\phi_1,\dots,\phi_n$,$D^\mathtt{AD}(\phi_i\circ f)$可以同时表示任意梯度,而$f$表示目标值。我们的结果适用于实际激活函数,例如$\mathrm{ReLU}$、$\mathrm{ELU}$、$\mathrm{GeLU}$、$\mathrm{Swish}$、$\mathrm{Sigmoid}$和$\mathrm{tanh}$。

英文摘要:

Theoretical studies show that for any differentiable function on a compact domain, there exists a neural network that approximates both the function values and gradients. However, such a result cannot be used in practice since it assumes real parameters and exact internal operations. In contrast, real implementations only use a finite subset of reals and machine operations with round-off errors. In this work, we investigate whether a similar result holds for neural networks under floating-point arithmetic, when the gradient with respect to the input is computed by the automatic differentiation algorithm $D^\mathtt{AD}$. We first show that given a floating-point function $ϕ$ (e.g., a loss function), arbitrary function values and gradients can be represented by a floating-point network $f$ and $D^\mathtt{AD}(ϕ\circ f)$, respectively. We further extend this result: given $ϕ_1,\dots,ϕ_n$, $D^\mathtt{AD}(ϕ_i\circ f)$ can simultaneously represent arbitrary gradients while $f$ represents the target values, under mild conditions. Our results hold for practical activation functions, e.g., $\mathrm{ReLU}$, $\mathrm{ELU}$, $\mathrm{GeLU}$, $\mathrm{Swish}$, $\mathrm{Sigmoid}$, and $\mathrm{tanh}$.

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

↑