Deep Sequence Modeling with Quantum Dynamics: Language as a Wave Function
Organizations: cAI Technology GmbH
Abstract
We introduce a sequence modeling framework in which the latent state is a complex-valued wave function evolving on a finite-dimensional Hilbert space under a learned, time-dependent Hamiltonian. Unlike standard recurrent architectures that rely on gating mechanisms to suppress competing hypotheses, our framework utilizes quantum interference: the Hamiltonian steers the phases of complex amplitudes so that conflicting interpretations cancel while compatible ones reinforce. The dynamics are strictly unitary, ensuring that the state norm is preserved exactly at every time step via a Cayley (Crank--Nicolson) discretization. Token probabilities are extracted using the Born rule, a quadratic measurement operator that couples magnitudes and relative phases. Our primary theoretical contribution is a separation theorem characterizing the representational advantage of this readout: we define a family of disambiguation tasks that a complex unitary model of dimension solves exactly, but which requires a state dimension of for any real-valued orthogonal model equipped with a standard affine-softmax readout. This quadratic gap arises because the Born rule implicitly lifts the -dimensional state into the space of rank-one Hermitian matrices, accessing pairwise phase correlations that are inaccessible to linear projections. Finally, we derive a continuity equation for the latent probability mass, yielding conserved pairwise currents that serve as a built-in diagnostic for tracing information flow between dimensions.
Figures & tables
| Quantum Formalism | Architectural Role | ML Interpretation |
|---|---|---|
| Hilbert space | Complex latent space with magnitude and phase per coordinate | Hidden state space |
| Wave function | Unit-norm complex vector; superposition of interpretations | Recurrent hidden state |
| Hermitian | Constrains dynamics to be norm-preserving by construction | Learned transition rule |
| Schrödinger equation | unitary | Recurrence equation |
| Cayley transform | Structure-preserving discretization; unitarity exact for any step size | Discrete state update |
| Born rule | Quadratic readout: features from complex dims | Token probabilities |
| Symbol | Space | Definition |
| Scalars and index sets | ||
| Latent (complex Hilbert-space) dimension | ||
| Vocabulary size | ||
| Sequence length | ||
| Token embedding dimension | ||
| Rank of ; controls the interaction Hamiltonian’s expressivity-efficiency tradeoff ( ) | ||
Sequence Modeling
Sequence modeling studies how to represent, predict, classify, and generate ordered data such as text, time series, events, and biological sequences.
See all 246 papers