Lune

NeurIPS2023Top-tier venue

Bypass Exponential Time Preprocessing: Fast Neural Network Training via Weight-Data Correlation Preprocessing

Josh Alman, Jiehao Liang, Zhao Song, Ruizhe Zhang, Danyang Zhuo

Abstract

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∈Rdx \in \mathbb{R}^d in a layer, we need to spend Θ(md)\Theta(md) time to evaluate all the mm neurons in the layer. This means processing the entire layer takes Θ(nmd)\Theta(nmd) time for nn data points. Recent work [Song, Yang and Zhang, NeurIPS 2021] reduces this time per iteration to o(nmd)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)O(nmd) time in preprocessing and still achieves o(nmd)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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time cites Learning Space Partitions for Nearest Neighbor Search
  • The Fine-Grained Complexity of Gradient Computation for Training Large Language Models cites On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis
  • On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity Analysis cites The Fine-Grained Complexity of Gradient Computation for Training Large Language Models
  • Numerical Pruning for Efficient Autoregressive Models cites Generalized Leverage Score Sampling for Neural Networks
  • Numerical Pruning for Efficient Autoregressive Models cites Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
  • Numerical Pruning for Efficient Autoregressive Models cites How to Protect Copyright Data in Optimization of Large Language Models?
  • How to Protect Copyright Data in Optimization of Large Language Models? cites Generalized Leverage Score Sampling for Neural Networks
  • How to Protect Copyright Data in Optimization of Large Language Models? cites Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time
  • How to Protect Copyright Data in Optimization of Large Language Models? cites Over-parameterized Adversarial Training: An Analysis Overcoming the Curse of Dimensionality
  • How to Protect Copyright Data in Optimization of Large Language Models? cites Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
  • Does Preprocessing Help Training Over-parameterized Neural Networks? cites Generalized Leverage Score Sampling for Neural Networks
  • Does Preprocessing Help Training Over-parameterized Neural Networks? cites Over-parameterized Adversarial Training: An Analysis Overcoming the Curse of Dimensionality
  • Does Preprocessing Help Training Over-parameterized Neural Networks? cites Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Deja Vu: Contextual Sparsity for Efficient LLMs at Inference TimeZichang Liu, Jue Wang, Tri Dao, Tianyi Zhou et al.ICML 2023 · 318 citations
  2. On Computational Limits of Modern Hopfield Models: A Fine-Grained Complexity AnalysisJerry Yao-Chieh Hu, Thomas Lin, Zhao Song, Han LiuICML 2024 · 47 citations
  3. How to Protect Copyright Data in Optimization of Large Language Models?Timothy Chu, Zhao Song, Chiwun YangAAAI 2024 · 42 citations
  4. The Fine-Grained Complexity of Gradient Computation for Training Large Language ModelsJosh Alman, Zhao SongNeurIPS 2024 · 33 citations
  5. Numerical Pruning for Efficient Autoregressive ModelsXuan Shen, Zhao Song, Yufa Zhou, Bo Chen et al.AAAI 2025 · 5 citations

Builds on8

  1. Polylogarithmic width suffices for gradient descent to achieve arbitrarily small test error with shallow ReLU networksZiwei Ji, Matus TelgarskyICLR 2020 · 193 citations
  2. Learning Space Partitions for Nearest Neighbor SearchYihe Dong, Piotr Indyk, Ilya P. Razenshteyn, Tal WagnerICLR 2020 · 104 citations
  3. Over-parameterized Adversarial Training: An Analysis Overcoming the Curse of DimensionalityYi Zhang, Orestis Plevrakis, Simon S. Du, Xingguo Li et al.NeurIPS 2020 · 56 citations
  4. Does Preprocessing Help Training Over-parameterized Neural Networks?Zhao Song, Shuo Yang, Ruizhe ZhangNeurIPS 2021 · 52 citations
  5. Generalized Leverage Score Sampling for Neural NetworksJason D. Lee, Ruoqi Shen, Zhao Song, Mengdi Wang et al.NeurIPS 2020 · 44 citations

Related papers

  1. The Effect of Weight Precision on the Neuron Count in Deep ReLU NetworksSonghua He, Periklis A. PapakonstantinouICML 2024
  2. Efficient Parallel Training Methods for Spiking Neural Networks with Constant Time ComplexityWanjin Feng, Xingyu Gao, Wenqian Du, Hailong Shi et al.ICML 2025
  3. Measuring Model Complexity of Neural Networks with Curve Activation FunctionsXia Hu, Weiqing Liu, Jiang Bian, Jian PeiKDD 2020 · 25 citations
  4. State Transition of Dendritic Spines Improves Learning of Sparse Spiking Neural NetworksYanqi Chen, Zhaofei Yu, Wei Fang, Zhengyu Ma et al.ICML 2022 · 56 citations
  5. A Sublinear Adversarial Training AlgorithmYeqi Gao, Lianke Qin, Zhao Song, Yitan WangICLR 2024 · 27 citations
Dusk over the sea between two cliffs drawn in fine vertical lines