[Paper Review] Quantum Generalized Linear Models
This paper proposes Quantum Generalized Linear Models (QGLM), a quantum computing-enhanced approach that eliminates the need for traditional link functions by using non-Gaussian quantum gates to continuously deform outcome distributions. It achieves state-of-the-art performance on a highly overdispersed Tweedie regression dataset (UCI Forest Fire), outperforming established algorithms by ~10% in mean squared error.
Generalized linear models (GLM) are link function based statistical models. Many supervised learning algorithms are extensions of GLMs and have link functions built into the algorithm to model different outcome distributions. There are two major drawbacks when using this approach in applications using real world datasets. One is that none of the link functions available in the popular packages is a good fit for the data. Second, it is computationally inefficient and impractical to test all the possible distributions to find the optimum one. In addition, many GLMs and their machine learning extensions struggle on problems of overdispersion in Tweedie distributions. In this paper we propose a quantum extension to GLM that overcomes these drawbacks. A quantum gate with non-Gaussian transformation can be used to continuously deform the outcome distribution from known results. In doing so, we eliminate the need for a link function. Further, by using an algorithm that superposes all possible distributions to collapse to fit a dataset, we optimize the model in a computationally efficient way. We provide an initial proof-of-concept by testing this approach on both a simulation of overdispersed data and then on a benchmark dataset, which is quite overdispersed, and achieved state of the art results. This is a game changer in several applied fields, such as part failure modeling, medical research, actuarial science, finance and many other fields where Tweedie regression and overdispersion are ubiquitous.
Motivation & Objective
- To address the limitations of traditional GLMs and machine learning extensions in handling overdispersed and zero-inflated data.
- To overcome the computational inefficiency of testing all possible distributions in GLM model selection.
- To eliminate reliance on predefined link functions by enabling continuous deformation of outcome distributions via quantum gates.
- To demonstrate the feasibility and superiority of quantum-enhanced statistical modeling on real-world, complex datasets.
- To establish a foundation for integrating quantum computing with generalized linear models and related statistical frameworks.
Proposed method
- Employs Xanadu's Strawberry Fields and qumode quantum computing framework to simulate quantum circuits for GLM parameter estimation.
- Uses singular value decomposition (SVD) of the coefficient matrix β = O₁ΣO₂ to map GLM parameters into quantum gate operations.
- Applies a sequence of quantum gates: linear interferometers (U₁, U₂), squeezing gates (S), and a non-Gaussian gate (Φ) to model the inverse link function.
- Represents the GLM prediction as |g⁻¹(Xβ)⟩ ≈ Φ·U₂·S·U₁|X⟩, embedding the model in a continuous quantum state space.
- Utilizes gradient descent with a learning rate of 0.1 over 80 iterations and a qumode cutoff dimension of 10 to optimize the model.
- Runs each algorithm 10 times on the same dataset to average out probabilistic quantum noise and improve reliability.
Experimental results
Research questions
- RQ1Can quantum computing eliminate the need for fixed link functions in generalized linear models by enabling continuous distribution deformation?
- RQ2How does a quantum-enhanced GLM perform on overdispersed and zero-inflated datasets compared to classical state-of-the-art algorithms?
- RQ3Can quantum circuits efficiently optimize model parameters across all possible distributions without exhaustive search?
- RQ4Does the quantum GLM framework maintain robustness and accuracy despite inherent quantum noise and probabilistic measurement?
- RQ5Can this approach be extended to other statistical models such as generalized estimating equations and mixed models?
Key findings
- QGLM achieved a scaled model MSE of 0.106 on the UCI Forest Fire dataset, outperforming the next-best algorithm (DGLARS) by ~10% with a score of 0.114.
- On a simulated overdispersed dataset, QGLM achieved a scaled MSE of 0.82, comparable to state-of-the-art algorithms like boosted regression and DGLARS.
- The quantum model demonstrated robustness despite quantum noise, with results averaged over 10 runs to mitigate probabilistic fluctuations.
- The approach successfully eliminated the need for predefined link functions by using non-Gaussian quantum gates to model the inverse link function directly.
- The method leverages the geometric structure of exponential family distributions and maps it to quantum gate operations, enabling efficient distribution optimization.
- The results suggest strong potential for extending QGLM to hierarchical models, mixed models, and homotopy-continuation methods in dynamic systems.
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.