Nerva:一个真正的神经网络稀疏实现
Nerva: a Truly Sparse Implementation of Neural Networks
AI总结:
本文介绍了C++开发的快速神经网络库Nerva,通过利用Intel MKL的稀疏矩阵操作支持稀疏性并消除二值掩码需求,在保持与PyTorch同等精度的同时显著减少训练时间和内存使用,在高稀疏度下大幅提升运行效率。
摘要:
我们介绍了Nerva,一个正在用C++开发的快速神经网络库。它通过使用Intel数学内核库(MKL)的稀疏矩阵操作来支持稀疏性,从而无需使用二值掩码。我们展示了Nerva在达到与PyTorch同等精度的同时,显著减少了训练时间和内存使用。我们在CIFAR-10上使用MLP进行了静态稀疏实验。在高达99%的稀疏度下,与使用掩码的PyTorch模型相比,运行时间减少了4倍。与PyTorch和Keras等其他流行框架类似,Nerva为用户提供了Python接口以供使用。
英文摘要:
We introduce Nerva, a fast neural network library under development in C++. It supports sparsity by using the sparse matrix operations of Intel's Math Kernel Library (MKL), which eliminates the need for binary masks. We show that Nerva significantly decreases training time and memory usage while reaching equivalent accuracy to PyTorch. We run static sparse experiments with an MLP on CIFAR-10. On high sparsity levels like $99\%$, the runtime is reduced by a factor of $4\times$ compared to a PyTorch model using masks. Similar to other popular frameworks such as PyTorch and Keras, Nerva offers a Python interface for users to work with.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。