arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.04121cs.LGcs.AIstat.ML
收藏

用于一般激活的快速神经核嵌入

Fast Neural Kernel Embeddings for General Activations

Yale University(耶鲁大学);Max-Planck-Institut für Informatik(马克斯·普朗克信息学研究所);Google Research(谷歌研究院)

Insu Han, Amir Zandieh, Jaehoon Lee, Roman Novak, Lechao Xiao, Amin Karbasi

摘要:

无限宽度限制通过在神经网络和核方法之间建立联系,为深度学习的泛化和优化方面提供了启示。尽管它们很重要,但由于它们的(超)二次运行时间和内存复杂性,这些内核方法的实用性在大规模学习设置中受到限制。此外,大多数关于神经内核的先前工作都集中在ReLU激活上,这主要是由于其受欢迎程度,但也是由于难以计算用于一般激活的此类内核。在这项工作中,我们通过提供与一般激活一起工作的方法来克服这些困难。首先,我们编译和扩展的激活函数的列表,承认确切的双重激活表达式计算神经内核。当精确的计算是未知的,我们提出的方法来有效地近似它们。我们提出了一种快速草图绘制方法,该方法可以近似任何多层神经网络高斯过程(NNGP)内核和神经切线核(NTK)矩阵,用于广泛的激活函数,超出了通常分析的ReLU激活。这是通过展示如何使用任何期望的激活函数的截断Hermite展开来近似神经内核来完成的。虽然大多数以前的作品需要的数据点上的单位球,我们的方法不受这样的限制,并适用于任何数据集的点在$\mathbb{R}^d$。此外,我们提供了一个子空间嵌入NNGP和NTK矩阵与近输入稀疏运行时间和近最佳的目标尺寸,适用于任何\emph{homogeneous}双激活函数与快速收敛的泰勒展开。经验上,相对于精确卷积NTK(CNTK)计算,我们的方法在CIFAR-10数据集上实现了5层Myrtle网络的近似CNTK的$106\times$加速。

英文摘要:

Infinite width limit has shed light on generalization and optimization aspects of deep learning by establishing connections between neural networks and kernel methods. Despite their importance, the utility of these kernel methods was limited in large-scale learning settings due to their (super-)quadratic runtime and memory complexities. Moreover, most prior works on neural kernels have focused on the ReLU activation, mainly due to its popularity but also due to the difficulty of computing such kernels for general activations. In this work, we overcome such difficulties by providing methods to work with general activations. First, we compile and expand the list of activation functions admitting exact dual activation expressions to compute neural kernels. When the exact computation is unknown, we present methods to effectively approximate them. We propose a fast sketching method that approximates any multi-layered Neural Network Gaussian Process (NNGP) kernel and Neural Tangent Kernel (NTK) matrices for a wide range of activation functions, going beyond the commonly analyzed ReLU activation. This is done by showing how to approximate the neural kernels using the truncated Hermite expansion of any desired activation functions. While most prior works require data points on the unit sphere, our methods do not suffer from such limitations and are applicable to any dataset of points in $\mathbb{R}^d$. Furthermore, we provide a subspace embedding for NNGP and NTK matrices with near input-sparsity runtime and near-optimal target dimension which applies to any \emph{homogeneous} dual activation functions with rapidly convergent Taylor expansion. Empirically, with respect to exact convolutional NTK (CNTK) computation, our method achieves $106\times$ speedup for approximate CNTK of a 5-layer Myrtle network on CIFAR-10 dataset.

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

↑