Does Preprocessing Help Training Over-parameterized Neural Networks?

Zhao Song, Shuo Yang, Ruizhe Zhang

Introduction

Training massive, over-parameterized neural networks is notoriously computationally expensive. For a standard two-layer ReLU network, every training iteration requires computing the inner product of every neuron weight with every input data point. Because standard ReLU activates roughly half the neurons at initialization, this results in a dense matrix multiplication bottleneck costing $\Omega(mnd)$ per iteration (where $m$ is the network width, $n$ is the number of data points, and $d$ is the input dimension).

This paper asks a fundamental question: Is it possible to break the $\Omega(mnd)$ barrier? The authors demonstrate that by using a shifted ReLU activation to induce sparsity and leveraging high-dimensional geometric data structures, it is possible to achieve sublinear training costs per iteration while maintaining a provable linear convergence rate.

Methodology

To bypass the need for a full linear scan of the network width, the researchers propose a framework combining optimization theory with computational geometry. The core components of their approach include:

  1. Shifted ReLU Activation: Instead of the standard $\sigma(x) = \max(x, 0)$, the network utilizes a shifted version: $\sigma_b(x) = \max(x - b, 0)$. By carefully choosing the threshold $b$ (specifically $b \approx \sqrt{\log m}$), the authors ensure that only a sublinear number of neurons ($o(m)$) "fire" for any given input.
  2. Half-Space Reporting (HSR): Finding which neurons fire is reframed as a geometric search problem: "Which weight vectors $w$ have an inner product with input $x$ greater than $b$?" They use HSR data structures to find these "active" neurons in sublinear time.
Half-Space Report Data Structure API
  1. Preprocessing Strategies: The paper introduces two distinct preprocessing methods to optimize the HSR queries:
  2. Weight Preprocessing: Building a dynamic data structure for the weights, allowing for an $O(m^{1-\Theta(1/d)}nd)$ cost per iteration.
  3. Data Preprocessing: Building a static data structure for the input data points, achieving a "truly sublinear" cost of $O(m^{4/5}nd)$ per iteration.
  4. Shifted Neural Tangent Kernel (NTK): To prove the efficacy of this sparse training regime, the authors develop a new convergence analysis for a "shifted" version of the NTK, proving the loss still drops to zero at a linear rate.

Key Insights

  • Threshold Implies Sparsity: A simple shift in the activation function, combined with the concentration properties of Gaussian initialization, naturally leads to extreme sparsity. The network does not need to be pruned; it simply requires a higher bar for activation.
  • Training as Geometric Search: By framing the forward and backward passes as "range reporting" queries, the authors successfully bridge deep learning optimization with classical computational geometry.
  • Exactness Matters: While practitioners often use Locality Sensitive Hashing (LSH) for speed, LSH is approximate and can miss critical neurons. The authors highlight that for a provable convergence guarantee, the exactness provided by Half-Space Reporting is necessary to ensure no important neurons are skipped.
  • Quantum Hybridization: In a theoretical quantum setting, Grover’s search algorithm can replace the HSR data structure, achieving sublinear costs ($O(m^{9/10}nd)$) without needing any preprocessing.

Results and Convergence

As a theoretical paper focused on algorithmic complexity, the work provides rigorous mathematical proofs rather than empirical benchmarks. Assuming the data is "separable" (standard in NTK literature), the paper successfully demonstrates that the "natural barrier" of $mnd$ operations per step is not fundamental.

Depending on the preprocessing strategy, the expected computational cost is reduced to either $\tilde{O}(m^{1-\Theta(1/d)}nd)$ or $\tilde{O}(m^{4/5}nd)$. Furthermore, they prove that with high probability, the error at iteration $k$ follows $\|\text{err}(k)\|_2^2 \leq (1 - \eta\lambda/2)^k \|\text{err}(0)\|_2^2$, guaranteeing that the training loss vanishes exponentially fast despite the induced sparsity.

Limitations and Future Work

  • The Curse of Dimensionality: In the weight preprocessing model, the speedup depends heavily on $1/d$. As the input dimension $d$ becomes very large, the exponent approaches 1, diminishing the advantage over classical methods.
  • Lottery Ticket Hypothesis: While related to sparsity, this work identifies important neurons during training via thresholds, whereas the Lottery Ticket Hypothesis typically involves pruning after a full training run.
  • Practical Implementation: HSR data structures are notoriously complex to implement efficiently in high dimensions compared to highly optimized, dense matrix multiplications on modern GPUs. Translating these theoretical algorithmic gains into actual "wall-clock" speedups remains a significant challenge for future engineering.

Summary updated

BibTeX
@inproceedings{song2021does,
  author = {Zhao Song and Shuo Yang and Ruizhe Zhang},
  title = {{Does Preprocessing Help Training Over-parameterized Neural Networks?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure