绕过指数时间预处理:通过权值-数据相关预处理的快速神经网络训练
Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessing
摘要:
在过去的十年中,深度神经网络已经改变了我们的社会,它们已经广泛应用于各种机器学习应用中。最先进的深度神经网络每年都在变得越来越大,以提供越来越高的模型准确性,因此,模型训练消耗了大量的计算资源,并且在未来只会消耗更多。使用当前的训练方法,在每次迭代中,为了处理层中的数据点$x \in \mathbb{R}^d$,我们需要花费$Θ(md)$时间来评估层中的所有$m$神经元。这意味着对于$n$数据点,处理整个层需要$Θ(nmd)$时间。最近的工作[Song,Yang和Zhang,NeurIPS 2021]将每次迭代的时间减少到$o(nmd)$,但需要指数时间来预处理数据或神经网络权重,使其不太可能具有实际用途。在这项工作中,我们提出了一种新的预处理方法,简单地存储在树数据结构中的权重数据相关性,以快速,动态地检测哪些神经元在每次迭代中发射。我们的方法只需要$O(nmd)$的时间在预处理和仍然达到$o(nmd)$时间每次迭代。我们补充了我们的新算法的下限,证明假设一个流行的猜想从复杂性理论,不能大大加快我们的算法的动态检测发射神经元。
英文摘要:
Over the last decade, deep neural networks have transformed our society, and they are already widely applied in various machine learning applications. State-of-art deep neural networks are becoming larger in size every year to deliver increasing model accuracy, and as a result, model training consumes substantial computing resources and will only consume more in the future. Using current training methods, in each iteration, to process a data point $x \in \mathbb{R}^d$ in a layer, we need to spend $Θ(md)$ time to evaluate all the $m$ neurons in the layer. This means processing the entire layer takes $Θ(nmd)$ time for $n$ data points. Recent work [Song, Yang and Zhang, NeurIPS 2021] reduces this time per iteration to $o(nmd)$, but requires exponential time to preprocess either the data or the neural network weights, making it unlikely to have practical usage. In this work, we present a new preprocessing method that simply stores the weight-data correlation in a tree data structure in order to quickly, dynamically detect which neurons fire at each iteration. Our method requires only $O(nmd)$ time in preprocessing and still achieves $o(nmd)$ time per iteration. We complement our new algorithm with a lower bound, proving that assuming a popular conjecture from complexity theory, one could not substantially speed up our algorithm for dynamic detection of firing neurons.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。