Generalization of Transformer-Based Neural Quantum States via In-Context Learning
Zhen Qin, Qing Qu, Alfred O. Hero
Key points
From the paper's conclusion- We establish a rigorous inference-time generalization error bound in terms of mean squared error (MSE), showing that the pointwise prediction error decreases inversely with both the number of in-context examples and the depth of the Transformer.
Abstract
Neural quantum states based on modern deep learning architectures have emerged as powerful representations for quantum many-body systems. In particular, Transformer-based neural quantum states provide expressive models capable of capturing long-range correlations, and their empirical generalization performance has recently been demonstrated. However, a theoretical understanding of their generalization behavior remains largely unexplored. In this paper, we develop a theoretical framework to analyze the generalization properties of Transformer-based neural quantum states under in-context learning. We establish a rigorous inference-time generalization error bound in terms of mean squared error (MSE), showing that the pointwise prediction error decreases inversely with both the number of in-context examples and the depth of the Transformer. We further show that the Transformer depth required to achieve this guarantee scales only linearly with the system size--namely, the number of particles in continuous systems or the number of qudits in discrete systems. Building on this result, we extend our analysis to full quantum states formulated as rank-one density operators, and derive MSE-based generalization bounds over both continuous and discrete domains under physical constraints. Finally, numerical simulations corroborate our theoretical analysis.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Attention-based foundation model for quantum statesSciPost Physics · 2026
- Non unitary and nonlinear quantum generative large model design and fast large-scale training without back propagationarXiv · 2026
- Metalearning of Gibbs states for many-body Hamiltonians with applications to quantum Boltzmann machinesPhysical Review Applied · 2026
- Walshness: an intrinsic neural-network representability metric for quantum statesarXiv · 2026
- Wave Is All You Need: A Quantum Language Model Based on Fully Connected Quantum Boltzmann MachinearXiv · 2026
- Classically Trained Quantum Generative Models with Shared Training and Fine Tuning for Quantum MatterarXiv · 2026