Circuit Hypernetworks for Quantum-Augmented Diffusion Language Models
Xiaoqiang Wang, Mengyang Xiong, Jun Dai, Bang Liu
Université de Montréal · Mila, Quebec AI Institute · McGill University
Published September 21, 2026 · on the feed September 23, 2026 · ▲ 40 · arXiv 2609.24657
The abstract
Language models can be adapted by changing the computations applied to individual tokens. Quantum circuits offer one such approach, but evaluating wider circuits inside a large model can be computationally demanding. Here we introduce HyperQ, which adds token-conditioned quantum residual branches to a frozen masked-diffusion language model. A quantum residual branch is a module in each transformer block that reads a token's hidden state, emits the coordinates of that token's circuit, executes it, and adds the measured values back through a residual connection. The backbone remains frozen, and only the added branches are trained. Within each branch, a lightweight circuit hypernetwork emits token-specific rotation angles, coupling strengths, and measurement axes in a shared sparse circuit structure. The required expectation values have an exact classical expression whose evaluation cost grows linearly with the qubit count, enabling circuits from 16 to 64 qubits to be trained within a 1.1-billion-parameter backbone. Across downstream benchmarks, increasing circuit width raises the average score from 47.65 to 54.30. At 64 qubits, HyperQ exceeds the backbone and its low-rank-adapted counterpart by 4.71 and 3.67 points, respectively. HyperQ is fine-tuned on 20,000 prompt-response pairs, compared with 200,000 for the classical baselines. These findings support token-conditioned circuit emission as a tractable architectural approach to quantum-augmented language modelling.
The Brief
2:31A short podcast summary of the paper. Written and voiced by AI.
Transcript
Circuit Hypernetworks for Quantum-Augmented Diffusion Language Models. By Xiaoqiang Wang and three others, from the Université de Montréal, Mila, the Quebec AI Institute, and one other institution. Published on the twenty-first of September. No code repository is linked to it.
One way to adapt a language model is to change the computation applied to individual tokens. Quantum circuits offer one such approach. The difficulty is cost. Evaluating wider circuits inside a large model can be computationally demanding, which limits how far the idea can be pushed. The question this work takes on is whether circuits can be made wide enough to matter while staying cheap enough to train inside a real model.
HyperQ adds token-conditioned quantum residual branches to a frozen masked-diffusion language model. In each transformer block, a branch reads a token's hidden state, emits the coordinates of a circuit for that token, executes the circuit, and adds the measured values back through a residual connection. The backbone stays frozen, and only the added branches are trained.
Inside each branch, a lightweight circuit hypernetwork produces the token-specific settings: rotation angles, coupling strengths, and measurement axes, all within a shared sparse circuit structure. So every token gets its own circuit, but all the circuits share one layout.
The cost problem is handled by the mathematics of that structure. The required expectation values have an exact classical expression, and evaluating it costs time that grows only linearly with the number of qubits. That is what makes it possible to train circuits from sixteen to sixty-four qubits inside a backbone at the scale of a full language model. Linear growth is the key property here. If the cost of wider circuits climbed steeply, the widths that give the best results would be out of reach.
Across downstream benchmarks, increasing circuit width raises the average score from forty-seven point six five to fifty-four point three zero. At sixty-four qubits, HyperQ exceeds the frozen backbone by four point seven one points, and its low-rank-adapted counterpart by three point six seven points. HyperQ is fine-tuned on twenty thousand prompt-response pairs. The classical baselines use two hundred thousand. So the quantum-augmented model is ahead on score while having been fine-tuned on a tenth as many examples.
The authors present this as support for token-conditioned circuit emission as a tractable architectural approach to quantum-augmented language modelling. The tractability comes from the exact classical expression. And the result that carries the argument is the trend: wider circuits, higher scores, on a tenth of the fine-tuning data.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Quantum circuits inside a language model sound exotic. The real wall is cost.
You want to add quantum circuits inside a large language model, giving each token extra computation. Earlier attempts used one fixed circuit width, so nobody knows if more qubits help.
The road ahead
- 1 · The problem ~7 min Quantum circuits could give each token extra computation inside a language model, but nobody knows if more qubits help, and wide circuits are costly to simulate.
- 2 · What came before ~3 min
- 3 · The key idea ~8 min A small network sets each token's circuit on one shared sparse layout whose readout has an exact formula that grows only linearly with qubits.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Freeze the language model, then in every block turn each token's hidden state into circuit settings, read the circuit exactly, and add the result back.
- 6 · The experiment ~6 min You’ll guess: With its widest circuits, by how many points did HyperQ beat its low-rank-adapted counterpart on the downstream benchmarks?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.