Efficient SGD Neural Network Training via Sublinear Activated Neuron Identification

Lianke Qin, Zhao Song, Yuanyuan Yang

This paper, titled "Efficient SGD Neural Network Training via Sublinear Activated Neuron Identification," presents a theoretical breakthrough in making the training of over-parameterized neural networks more computationally efficient.

TL;DR

The authors propose a method to train two-layer neural networks in sublinear time relative to the network width. By using a "shifted ReLU" activation and a specialized geometric data structure for half-space reporting, the algorithm identifies and updates only the activated neurons at each step, significantly speeding up Stochastic Gradient Descent (SGD) while maintaining provable convergence guarantees.

What Problem Does This Paper Address?

In the era of massive models, over-parameterization (making a network much wider than seemingly necessary) is a common trick to ensure that training converges to a global minimum. However, this comes with a massive computational cost: if a network has $m$ neurons, a standard SGD iteration takes $O(m)$ time per data point because every neuron's activation must be calculated.

Previous theoretical work (e.g., Daniely, 2020) proved that SGD can learn complex polynomials using these wide networks, but the "linear dependency on $m$" remained a fundamental bottleneck. This paper asks: Can we train these networks in time that is sublinear in $m$ (i.e., $o(m)$)?

Methods

The authors achieve sublinear training time through two main innovations:

  1. Shifted ReLU Activation: Instead of the standard ReLU ($\max\{0, x\}$), they use a "shifted" version: $\sigma_{b_0}(x) = \max\{0, x - b_0\}$. By carefully choosing the threshold $b_0$, they ensure that for any given input, only a tiny fraction of neurons actually "fire" (output a non-zero value).
  2. Half-Space Reporting Data Structure: Identifying which neurons are active is essentially a geometric search problem. The authors treat the weights of the neurons as points in $d$-dimensional space. Finding activated neurons for an input $x$ is equivalent to finding which weight points lie in the half-space defined by the query $x$ and the threshold $b_0$. They utilize a static half-space report data structure that can return these "fired" neurons in sublinear time ($\tilde{O}(m^{1-\Theta(1/d)})$) rather than checking every single one.

The algorithm (Algorithm 1) involves preprocessing the initial weights into this data structure. During each SGD step, it queries the structure for active neurons, performs the forward and backward passes only on that sparse subset, and then updates the data structure to reflect the new weights.

Datasets

As a theoretical paper, it does not evaluate on standard empirical benchmarks like ImageNet or CIFAR-10. Instead, it focuses on:

  • Synthetic Distributions: The proofs assume input data follows an $R$-bounded distribution on a unit sphere $\mathbb{S}^{d-1}$ (e.g., uniform distribution or discrete cubes).
  • Target Functions: The goal is to learn the class of even polynomials with bounded coefficient norms ($P_c^M$).

Key Insights and Ideas

  • Sparsity by Design: Most "efficient" training methods try to prune networks after or during training. This paper shows that by slightly modifying the activation function (Shifted ReLU), you can induce a natural sparsity that makes the entire training process faster from the start.
  • Geometric Speedups: The "aha moment" is realizing that neuron activation is a range-searching problem from computational geometry. This allows the authors to borrow highly optimized data structures to bypass the $O(m)$ bottleneck.
  • Lazy Training Regime: The authors prove their method works within the "Neural Tangent Kernel" (NTK) or "lazy training" regime. In this setting, weights don't move very far from their initialization, which is what allows the geometric data structure to remain efficient throughout the training process.

Key Results

  • Sublinear Complexity: The expected per-iteration running time is reduced to $\tilde{O}(m^{1-\Theta(1/d)}bd)$, where $b$ is batch size and $d$ is input dimension. This is strictly better than the standard $O(mbd)$ when $m$ is large.
  • Provable Convergence: Despite only updating a subset of neurons, the algorithm is proven to converge to an error $\epsilon$ in $O(M^2/\epsilon^2)$ time, matching the convergence rates of much slower, dense algorithms.
  • Network Size: The results hold for networks where the width $m$ is quadratic in the coefficient norm upper bound $M$.

Limitations and Future Work

  • Architecture Constraints: The current proof is limited to two-layer, fully connected networks. Extending this to deep architectures or convolutional layers remains an open challenge.
  • Activation Specificity: The efficiency gains are tied specifically to the Shifted ReLU. While the authors mention the possibility of studying other activations (like exponential or softmax), those are not covered in this proof.
  • Theoretical vs. Practical: While the time complexity is sublinear, the "hidden constants" in geometric data structures can sometimes be large. Future work would involve implementing this on GPUs to see if the theoretical speedup translates to wall-clock time in real-world deep learning frameworks.

Summary updated

BibTeX
@inproceedings{qin2024efficient,
  author = {Lianke Qin and Zhao Song and Yuanyuan Yang},
  title = {{Efficient SGD Neural Network Training via Sublinear Activated Neuron Identification}},
  booktitle = {IEEE Big Data},
  year = {2024},
  doi = {10.1109/bigdata62323.2024.10825793},
}
Figure