Abstract As deep neural networks scale, the computational cost of training grows proportionally. Standard training iterations require $\Theta(nmd)$ time to process $n$ data points across $m$ neurons in a $d$-dimensional layer. While recent theoretical breakthroughs achieved sublinear training times, they relied on computationally impossible exponential preprocessing. This paper introduces a novel, deterministic tree-based data structure—the Correlation Tree—that achieves sublinear training time per iteration with only practical, polynomial-time preprocessing.
The Computational Bottleneck of Deep Learning
Training deep neural networks is an inherently expensive process. In a standard training step, calculating the inner product of every data point ($n$) with every neuron ($m$) in a layer of dimension ($d$) results in a time complexity of $\Theta(nmd)$ per iteration. As models become increasingly over-parameterized to deliver state-of-the-art accuracy, this "brute force" matrix multiplication becomes a massive computational bottleneck.
Previous research (notably by Song, Yang, and Zhang in 2021) demonstrated that training could theoretically be performed in sublinear time. By avoiding the need to evaluate every single neuron, they bypassed the $\Theta(nmd)$ barrier. However, this theoretical victory came with a fatal practical catch: it required exponential preprocessing time. Setting up their data structures required $2^d$ or $n^d$ operations. For a modest 128-dimensional input, $2^{128}$ operations vastly exceed the number of atoms in the universe.
The core question this paper addresses is: Can we achieve sublinear training time per iteration using only practical, polynomial-time preprocessing?
Exploiting Sparsity with Correlation Trees
The authors answer this question affirmatively by exploiting a well-known phenomenon in large, over-parameterized networks: activation sparsity. In networks using ReLU (Rectified Linear Unit) activations, only a small fraction of neurons actually "fire" (output a value greater than zero) for any given input.
To efficiently identify these active neurons without evaluating the entire layer, the authors propose a novel data structure called the Correlation Tree. They introduce two variants:
- Correlation DTree: Builds $n$ binary trees (one for each data point), where each tree has $m$ leaves representing the neurons.
- Correlation WTree: The dual approach, building $m$ trees (one for each neuron) with $n$ leaves representing the data points.
The mechanism driving these trees is elegantly simple. Every internal node stores the maximum value of its children. When searching for active neurons (where the inner product $\langle x, w \rangle \geq b$), the algorithm starts at the root. If the root's maximum value is less than the threshold $b$, the entire branch can be instantly pruned—guaranteeing no neurons in that branch will fire. If the value exceeds $b$, the search proceeds down to the children.
This pruning allows the algorithm to skip the vast majority of inactive neurons. Furthermore, when weights are updated during training, the algorithm only needs to update the path from the specific leaf to the root, which takes logarithmic time ($O(\log m)$ or $O(\log n)$), making the structure highly dynamic and efficient.
Theoretical Guarantees and Complexity Limits
Unlike many fast-search algorithms (such as Locality Sensitive Hashing) that rely on randomness and yield approximate results, the Correlation Tree is deterministic. It guarantees finding all firing neurons without succumbing to the curse of dimensionality.
The mathematical proofs provided by the authors yield impressive theoretical results:
- Preprocessing Time: Reduced from exponential to $O(nmd)$, which is linear with respect to the input size.
- Training Speed: Achieves an expected per-iteration time of $\tilde{O}(m^{4/5} n^2 d)$.
- Parallelization: Tree updates can be parallelized, further reducing the cost-per-iteration to $O(m^{4/5} nd)$.
Beyond proposing the algorithm, the authors establish a fundamental "Lower Bound" for this problem. Using the Orthogonal Vector Conjecture (OVC) from fine-grained complexity theory, they prove that it is highly unlikely any algorithm can significantly improve upon their $m^{4/5}$ complexity without breaking fundamental limits of computer science.
Limitations and Future Directions
Because this is a theoretical contribution focused on algorithmic complexity, it relies on rigorous mathematical proofs in the over-parameterized regime ($m \gg n$) rather than empirical benchmarks like ImageNet.
While groundbreaking, the approach has limitations that pave the way for future research:
- Data Point Dependence: In the non-parallelized version, the algorithm retains a quadratic dependence on the number of data points ($n^2$).
- Memory Overhead: Storing the trees requires $O(mn + md + nd)$ space. For massive models with billions of parameters, the $O(mn)$ term could exceed available RAM.
- Activation Functions: The current proofs rely strictly on threshold-based functions like ReLU. Extending this logic to smoother activations (e.g., GeLU or Swish) remains an open challenge.
- Network Depth: The formal proofs focus on 2-layer networks. While the logic should theoretically extend to deeper architectures, formalizing convergence in multi-layer settings is left for future work.
Summary updated