Trainable Quantum-Native Language Models: Dissipative Memory, Capacity Limits, and Hardware Validation
Abstract
We study byte-level autoregressive language models whose hidden state is a small quantum register, whose transitions are learned token-conditioned quantum channels, and whose next-byte probabilities come directly from Born-rule measurements without a learned classical vocabulary projection or softmax. In the fixed-width recurrent setting, unitary dynamics cannot contract or reset stored distinctions; experimentally, unitary recurrence loses to its retrained one-token control in every tested variant. Introducing learned dissipation, then token-conditioned dissipative gating, yields useful memory beyond one token. The gated model improves test negative log-likelihood by 0.20 +/- 0.03 nats/byte over retrained parameter-matched one-token controls at context length 12, and by 0.29-0.33 at longer contexts, but never beats retrained two-token controls. A key-value recall benchmark shows a width-dependent threshold: one stored pair meets the pre-registered accuracy bar at 4-5 memory qubits, two pairs at 6-7, and three pairs remain unsolved. This is consistent with, but does not establish, a capacity explanation for the short effective memory horizon. As a secondary result, one-qubit models reach lower stationary memory entropy than a heuristically optimized classical predictive frontier at matched error in 9/9 seeds. On IBM Heron hardware, computational-basis memory-register distributions show signal against a uniform null in 12/12 circuits across prefixes of up to 12 tokens, next-bit probabilities pass pre-registered accuracy bars at four-token prefixes, and bytes are generated autoregressively by sampling physically measured bit probabilities. The tested models are classically simulable and substantially worse than classical n-gram baselines. We claim no computational quantum advantage.
Figures & tables
| K (value bits / configuration bits) | n = 4 | n = 5 | n = 6 | n = 7 |
|---|---|---|---|---|
| 1 (3.3 / 7.3) | 0.637 | 1.000 | 1.000 | 1.000 |
| 2 (6.6 / 13.6) | 0.245 | 0.345 | 0.573 | 0.621 |
| 3 (10.0 / 19.1) | 0.202 | 0.167 | 0.312 | 0.309 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Milestone / hypothesis | Bar | Outcome |
|---|---|---|
| M18 H: UMW trainable with signal shaping | pass recall bar at delays 8, 3/3 seeds | pass (curriculum and auxiliary loss) |
| M19 H1: pipeline gate | memoryless controls recover unigram | pass |
| M19 H2–H7: unitary memory beats h1 (5 variants, 2 widths) | NLL < h1 | fail , all variants |
| M19 H8: UMW-D beats channel-matched h1 | +0.05 nats | pass 4/4 arms (+0.091…+0.106) |
| M19 H9: UMW-D beats h2 | NLL < h2 | fail (h2 wins) |
| M20 H1: UMW-G beats UMW-D | +0.05, 3/3 seeds | pass (+0.085…+0.132) |
| Claim | Evidence level | Where |
|---|---|---|
| Unitary channels preserve trace distance and cannot implement many-to-one maps | mathematical (elementary) | §4.1 |
| No O(1)-width delay-invariant unitary recall solution in the marked-recall setting | mathematical (short argument) | §4.2, docs/m18_delay_invariance_obstruction.md |
| Unitary memory loses to retrained h1 in this architecture | experimental (5 variants, 2 widths, single seeds) | §4.2 |
| UMW-D and UMW-G beat parameter-count-matched h1 | experimental (3 seeds each; mean s.d.) | §5 |
| Recurrence never beats retrained h2 at 4–8 qubits | experimental (2–3 seeds per context) | §5.3 |
| Solvable recall task shifts from one to two pairs with width; three pairs unsolved at n = 7 | experimental (single seed per cell) | §6.2 |
Language Modeling
Language modeling develops systems that learn patterns in text and other sequences to understand, predict, and generate language.
See all 504 papers