Winning Lottery Tickets in Neural Networks via a Quantum-Inspired Classical Algorithm

Natsuto Isogai, Hayata Yamasaki, Sho Sonoda, Mio Murao

TL;DR

This paper introduces a "quantum-inspired" classical algorithm that efficiently identifies sparse, trainable subnetworks ("lottery tickets") in shallow neural networks without requiring quantum hardware. By exploiting the geometric structure of the discrete ridgelet transform, the authors reduce the computational runtime from exponential to polynomial in the data dimension, effectively "dequantizing" a previously proposed quantum machine learning algorithm.

What Problem Does This Paper Address?

Training massive, over-parameterized neural networks is computationally expensive. The lottery ticket hypothesis suggests that these dense networks contain sparse subnetworks that can achieve comparable performance if trained in isolation from initialization. However, finding these subnetworks typically requires training and pruning the full dense network first, which defeats the purpose of saving compute.

A recent quantum machine learning (QML) approach tackled this by using the discrete ridgelet transform to sample important hidden nodes directly from an optimized probability distribution. While the quantum algorithm could perform this sampling in polynomial time relative to the data dimension $D$, a naive classical implementation required inverting a massive, dense matrix over an exponentially large parameter space, leading to an impractical exponential runtime ($\exp[O(D)]$).

The authors of this paper ask a fundamental question: Is quantum hardware actually necessary for this task, or can we design an equally efficient classical algorithm by mimicking quantum techniques?

Methods

The authors successfully "dequantize" the QML algorithm through two key algorithmic innovations:

  1. Inverse Decomposition: The primary bottleneck in the classical approach was inverting a dense $\exp[O(D)] \times \exp[O(D)]$ matrix. The authors observed that this matrix isn't arbitrary; because the discrete ridgelet transform ($R$) is an isometry and the empirical data matrix ($\hat{P}_{\text{data}}$) is diagonal, the high-dimensional inverse can be mathematically decomposed. This reduces the problem to an entrywise diagonal reweighting over the data domain, completely bypassing the need to invert a massive dense matrix.
  2. Quantum-Inspired Rejection Sampling: Simply evaluating the weights of hidden nodes isn't enough to build a sampler, as the target distribution might be highly concentrated on a few important nodes. The authors construct an efficiently samplable proposal distribution ($q$) using a binary-tree data structure—a standard tool in quantum-inspired classical algorithms—and pair it with a rejection sampling step to exactly match the target optimized distribution.

As a bonus, this structural insight allowed the authors to improve the original quantum algorithm as well, removing its runtime dependence on the inverse regularization parameter ($1/\lambda$).

Table 1: Comparison of approaches for sampling from the optimized ridgelet distribution.

Datasets

The algorithm was evaluated using synthetic datasets designed for supervised regression tasks on a discrete domain $\mathbb{Z}_P^D$.

  • Target Function: A multi-dimensional sine function: $f_D(\mathbf{x}) = \sin \left( \frac{4\pi}{P} \left( \sum_{d=1}^D x_d \bmod P \right) \right)$.
  • Data Distribution: Training inputs were generated independently from a uniform distribution, with the number of training samples scaled polynomially as $M = 50D$.
  • Parameters: Discretization precision was set to $P = 7$ for empirical-risk experiments and $P = 3$ for runtime scaling comparisons.

Key Insights and Ideas

  • Structure Over Hardware: The apparent quantum advantage of the original QML algorithm did not stem from uniquely quantum physics, but rather from the mathematical properties of the ridgelet transform. Exploiting this problem-specific structure classically yielded the same polynomial scaling.
  • The Power of Dequantization: This work demonstrates that QML subroutines can serve as excellent blueprints for classical algorithm design. Attempting to classically simulate quantum states often uncovers hidden classical efficiencies, helping clarify where true quantum advantage resides.

Key Results

  • Comparable Empirical Risk: As shown in Figure 1, the sparse subnetworks sampled via the proposed classical algorithm achieve an empirical risk that closely tracks the exact optimized sampler, performing substantially better than a naive uniform sampling baseline.
Figure 1: Empirical risk of sparse subnetworks constructed from N sampled hidden nodes. We compare exact sampling from the optimized distribution (blue solid line), our dequantized classical algorithm with δ = 0.1 (orange dashdot line), δ = 0.7 (green dashed line), and sampling from the non-optimized uniform distribution (red solid line). The experiments use N ∈{8, 16, . . . , 4096}. Curves show the mean over 50 executions, while error bars are the standard error of the mean.
  • Exponential to Polynomial Speedup: In runtime experiments, the naive classical implementation rapidly became intractable due to exponential scaling ($\propto P^{2.85D}$). In contrast, the proposed dequantized classical sampler exhibited mild polynomial growth ($\propto D^{2.55}$), matching theoretical expectations and remaining executable for much higher dimensions.

Limitations and Future Work

  • Shallow Networks Only: The current mathematical framework relies strictly on the ridgelet transform, which is well-defined for single-hidden-layer (shallow) neural networks. It does not directly apply to deep neural network architectures.
  • Synthetic Data Constraints: The algorithm's performance was validated purely on synthetic, low-dimensional regression problems. Its efficacy on complex, real-world datasets (like ImageNet or text corpora) remains unproven.
  • Future Directions: A key open challenge is extending this ridgelet-based optimized sampling methodology to deep architectures and evaluating it against standard classical pruning techniques on practical machine learning benchmarks.

Summary updated

Abstract

Quantum machine learning (QML) aims to accelerate machine learning tasks by exploiting quantum computation. Previous work studied a QML algorithm for selecting sparse subnetworks from large shallow neural networks. Instead of directly solving an optimization problem over a large-scale network, this algorithm constructs a sparse subnetwork by sampling hidden nodes from an optimized probability distribution defined using the ridgelet transform. The quantum algorithm performs this sampling in time $O(D)$ in the data dimension $D$, whereas a naive classical implementation relies on handling exponentially many candidate nodes and hence takes $\exp[O(D)]$ time. In this work, we construct and analyze a quantum-inspired fully classical algorithm for the same sampling task. We show that our algorithm runs in time $O(\operatorname{poly}(D))$, thereby removing the exponential dependence on $D$ from the previous classical approach. Numerical simulations show that the proposed sampler achieves empirical risk comparable to exact sampling from the optimized distribution and substantially lower than sampling from the non-optimized uniform distribution, while also exhibiting exponentially improved runtime scaling compared with the conventional classical implementation. These successful dequantization results show that sparse subnetwork selection via optimized sampling can be achieved classically with polynomial data-dimension scaling on conventional computers without quantum hardware, providing an alternative to the existing quantum algorithm.
BibTeX
@inproceedings{isogai2026winning,
  author = {Natsuto Isogai and Hayata Yamasaki and Sho Sonoda and Mio Murao},
  title = {{Winning Lottery Tickets in Neural Networks via a Quantum-Inspired Classical Algorithm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=sb383QXZhs},
}
Figure