10
63

Training Multi-Layer Over-Parametrized Neural Network in Subquadratic Time

Abstract

We consider the problem of training a multi-layer over-parametrized neural network to minimize the empirical risk induced by a loss function. In the typical setting of over-parametrization, the network width mm is much larger than the data dimension dd and the number of training samples nn (m=poly(n,d)m=\mathrm{poly}(n,d)), which induces a prohibitive large weight matrix WRm×mW\in \mathbb{R}^{m\times m} per layer. Naively, one has to pay O(m2)O(m^2) time to read the weight matrix and evaluate the neural network function in both forward and backward computation. In this work, we show how to reduce the training cost per iteration. Specifically, we propose a framework that uses m2m^2 cost only in the initialization phase and achieves \emph{a truly subquadratic cost per iteration} in terms of mm, i.e., m2Ω(1)m^{2-\Omega(1)} per iteration. Our result has implications beyond standard over-parametrization theory, as it can be viewed as designing an efficient data structure on top of a pre-trained large model to further speed up the fine-tuning process, a core procedure to deploy large language models (LLM).

View on arXiv
Comments on this paper