[Paper Review] Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessing
This paper proposes a novel preprocessing method using weight-data correlation trees to accelerate training of over-parameterized ReLU neural networks. By exploiting sparsity in neuron firing, it achieves o(nmd) per-iteration training time with only O(nmd) preprocessing, significantly outperforming prior methods that required exponential preprocessing time while maintaining theoretical guarantees under standard complexity conjectures.
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.
Motivation & Objective
- To address the growing computational cost of training large deep neural networks.
- To design a training algorithm with polynomial preprocessing time and sub-quadratic per-iteration complexity in data and width.
- To overcome the exponential preprocessing bottleneck of prior state-of-the-art methods that used nearest neighbor data structures.
- To provide a deterministic, practical solution for dynamic detection of firing neurons during training.
- To establish theoretical limits via a lower bound under a standard complexity conjecture.
Proposed method
- Constructs n binary search trees, one per data point, to maintain inner products between each data point and all m weights.
- Each tree stores inner products in leaves and propagates maximum values upward in internal nodes to enable efficient range queries.
- Uses the tree structure to dynamically detect firing neurons (those with inner product ≥ threshold b) via top-down traversal.
- Supports efficient updates: when a weight is modified, only O(log m) nodes per data point are updated, taking O(nd log m) time.
- Employs a threshold b = √(0.4 log m) to control the number of active neurons and ensure sparsity in the firing set.
- Integrates the data structure into gradient descent by restricting computation to only active neurons, reducing per-iteration cost.
Experimental results
Research questions
- RQ1Can we achieve o(nmd) per-iteration training time with only polynomial preprocessing time?
- RQ2Is it possible to design a deterministic, practical data structure for dynamic firing neuron detection in neural network training?
- RQ3What is the theoretical limit of speedup for dynamic firing neuron detection under standard complexity assumptions?
- RQ4How does weight-data correlation enable efficient sparse activation detection in over-parameterized networks?
- RQ5Can we maintain sub-quadratic training time while ensuring correctness and efficiency across iterations?
Key findings
- The proposed algorithm achieves an expected per-iteration running time of Õ(m⁴ᐟ⁵n²d), which is o(nmd) for m ≫ n.
- Preprocessing time is O(nmd), a significant improvement over prior methods requiring O(2^d) or O(n^d) time.
- The algorithm supports dynamic updates and queries in O(nd log m) and O(min{|Q|, m⁴ᐟ⁵n}) time, respectively.
- The method is deterministic and does not rely on randomness, enhancing reproducibility and reliability.
- A lower bound is proven under the Orthogonal Vectors Conjecture, showing that o(nmd) per-iteration time cannot be substantially improved without breaking standard complexity assumptions.
- Empirical efficiency is demonstrated via theoretical analysis, showing that only O(m⁴ᐟ⁵n) neurons fire per data point on average, enabling sparse computation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.