A Quantum Circuit-Based Compression Perspective for Parameter-Efficient Learning

Chen-Yu Liu, Chao-Han Huck Yang, Hsi-Sheng Goan, Min-Hsiu Hsieh

TL;DR

Quantum Parameter Adaptation (QPA) leverages quantum neural networks to generate classical fine-tuning weights for Large Language Models (LLMs) during the training phase. By using the high-dimensional Hilbert space of quantum circuits to "compress" the parameter space, QPA reduces the number of trainable parameters by up to 83% compared to LoRA while maintaining or slightly improving model performance—all without requiring quantum hardware for inference.

What Problem Does This Paper Address?

Fine-tuning Large Language Models (LLMs) like GPT-2 or Gemma-2 is computationally expensive due to their massive parameter counts. While Parameter-Efficient Fine-Tuning (PEFT) methods like Low-Rank Adaptation (LoRA) have significantly lowered the barrier, researchers are still looking for ways to push parameter efficiency even further.

Quantum Machine Learning (QML) offers a theoretical advantage because the state space of a quantum system grows exponentially with the number of qubits. However, traditional QML faces two "deal-breaker" challenges:

  1. Data Encoding: It is incredibly difficult to efficiently translate large-scale classical data into quantum states.
  2. Inference Dependency: Most QML models require a quantum computer to run during the inference stage, which is impractical for real-world deployment.

This paper introduces Quantum Parameter Adaptation (QPA) to bridge this gap, using quantum circuits as a "parameter generator" rather than a data processor.

Methods

QPA Framework

The core innovation is a hybrid framework that uses a Parameterized Quantum Circuit (PQC) to generate the weights used in classical PEFT methods.

  • Quantum Parameter Generation: Instead of feeding text data into a quantum circuit, the authors use the circuit to produce a set of measurement probabilities. These probabilities represent the "compressed" state of the model's updates.
  • The Mapping Model: These quantum outputs are fed into a classical Multi-Layer Perceptron (MLP) that maps them into "chunks" of classical weights. These weights are then used to populate the matrices for methods like LoRA or DoRA.
  • Decoupled Inference: Because the quantum circuit is only used to generate the weights during training, the final model is entirely classical. Once training is complete, the weights are fixed, and the LLM can run on standard GPUs without any quantum hardware.
  • Batched Generation: To handle the massive scale of LLMs, the authors developed a "batched" approach where a single quantum circuit can generate multiple chunks of parameters, significantly reducing the number of qubits required (down to 4–11 qubits for models with millions of parameters).

Datasets

The authors evaluated QPA on standard text generation benchmarks:

  • WikiText-2: Used for the primary evaluation of perplexity (a measure of how well the model predicts text) on GPT-2 and Gemma-2.
  • Penn Treebank (PTB): Used to demonstrate the broader applicability and robustness of the method across different linguistic datasets.

Key Insights and Ideas

  • Hilbert Space as a Compression Tool: The authors treat the quantum Hilbert space as a high-dimensional "reservoir" of potential parameter configurations. Because $N$ qubits can represent $2^N$ states, they can represent complex weight updates with very few trainable quantum parameters.
  • Scaling the Unscalable: Previous studies in quantum parameter generation were limited to tiny models (around 0.28M parameters). This paper scales the approach to the "lmhead" layer of Gemma-2, which contains 0.52 billion parameters—a nearly 1,800x increase in scale.
  • Noise as a Regularizer: In a surprising "aha moment," the researchers found that incorporating noise models from real IBM quantum hardware sometimes improved performance. This suggests that quantum noise might act similarly to classical stochastic noise, helping the model explore the parameter space more effectively and avoid overfitting.
  • Bypassing Barren Plateaus: A common failure mode in QML is the "barren plateau," where gradients vanish and training stalls. The authors show that because their gradients propagate back through a classical mapping model, QPA does not suffer from this typical quantum limitation.

Key Results

Performance Comparison of QPA vs. LoRA and DoRA

The results show that QPA consistently outperforms or matches classical PEFT methods while using significantly fewer parameters:

  • GPT-2 (80M): QPA reduced the number of trainable parameters to 52.06% of the original LoRA setup while actually improving performance (perplexity) by 0.75%.
  • Gemma-2 (2B): The efficiency gains were even more dramatic, reducing parameters to just 16.84% of the original LoRA while maintaining a marginal performance improvement of 0.07%.
  • Versatility: QPA was successfully integrated with multiple PEFT variants, including LoRA, Weight-Decomposed LoRA (DoRA), Prefix-Tuning (PT), and Feed-Forward Adapters (FFA).

Limitations and Future Work

  • Simulation Overhead: Currently, the quantum circuits are simulated on classical GPUs. This simulation is computationally intensive, making QPA training roughly three times slower than standard LoRA.
  • Layer Specificity: In this study, the authors primarily focused on fine-tuning the final linear layer ("lmhead"). Future work is needed to explore applying QPA to all transformer blocks simultaneously.
  • Hardware Implementation: While the theory allows for classical inference, the training still benefits from (simulated) quantum properties. Testing the training phase on actual near-term quantum hardware (NISQ devices) remains a goal for future research.
  • Theoretical Depth: The authors note that more rigorous theoretical analysis is needed to fully understand the convergence properties and the exact relationship between quantum expressivity and classical weight generation.

Summary updated

BibTeX
@inproceedings{liu2025quantum,
  author = {Chen-Yu Liu and Chao-Han Huck Yang and Hsi-Sheng Goan and Min-Hsiu Hsieh},
  title = {{A Quantum Circuit-Based Compression Perspective for Parameter-Efficient Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=bB0OKNpznp},
}
Figure