TorchNTK:一个计算PyTorch模型神经切线核的库
TorchNTK: A Library for Calculation of Neural Tangent Kernels of PyTorch Models
摘要:
我们引入了torchNTK,一个Python库来计算PyTorch框架中神经网络模型的经验神经切线核(NTK)。我们提供了一个有效的方法来计算多层感知器的NTK。我们将显式差分实现与自动差分实现进行了比较,后者的好处是将库的实用性扩展到PyTorch支持的任何架构,例如卷积网络。该库的一个特点是,我们将用户暴露给分层NTK组件,并表明在某些情况下,分层计算是更有效的内存。我们进行了初步的实验,以展示软件的用例和探测NTK。
英文摘要:
We introduce torchNTK, a python library to calculate the empirical neural tangent kernel (NTK) of neural network models in the PyTorch framework. We provide an efficient method to calculate the NTK of multilayer perceptrons. We compare the explicit differentiation implementation against autodifferentiation implementations, which have the benefit of extending the utility of the library to any architecture supported by PyTorch, such as convolutional networks. A feature of the library is that we expose the user to layerwise NTK components, and show that in some regimes a layerwise calculation is more memory efficient. We conduct preliminary experiments to demonstrate use cases for the software and probe the NTK.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。