Generalization of Transformer-Based Neural Quantum States via In-Context Learning
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 40 of its 78 references that are in the map. First posted on arXiv 2 Oct 2026.
Builds on
40 of 78 references.
References · 40
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,546
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2019Multimodal Transformer for Unaligned Multimodal Language Sequencescited by 645
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 644
- 2017Deep Interest Network for Click-Through Rate Predictioncited by 544
- 2021MetaICL: Learning to Learn In Contextcited by 454
28 more
- 2023Trained Transformers Learn Linear Models In-Contextcited by 337
- 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
- 2020Predicting Many Properties of a Quantum System from Very Few Measurementscited by 233
- 2019Ab-Initio Solution of the Many-Electron Schr"odinger Equation with Deep Neural Networkscited by 200
- 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
- 2019Behavior Sequence Transformer for E-commerce Recommendation in Alibabacited by 130
- 2023In-Context Convergence of Transformerscited by 115
- 2024Training Dynamics of Multi-Head Softmax Attention for In-Context Learning: Emergence, Convergence, and Optimalitycited by 74
- 2022A Self-Attention Ansatz for Ab-initio Quantum Chemistrycited by 49
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2024In-Context Learning with Representations: Contextual Generalization of Trained Transformerscited by 38
- 2023A survey on the complexity of learning quantum statescited by 32
- 2022Ab-initio quantum chemistry with neural-network wavefunctionscited by 29
- 2020Attention-based Quantum Tomographycited by 26
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
- 2017Learning hard quantum distributions with variational autoencoderscited by 17
- 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
- 2023Quantum State Tomography for Matrix Product Density Operatorscited by 10
- 2023Tomography of Quantum States from Structured Measurements via quantum-aware transformercited by 8
- 2023NNQS-Transformer: an Efficient and Scalable Neural Network Quantum States Approach for Ab initio Quantum Chemistrycited by 8
- 2021Quantum Optimisation of Complex Systems with a Quantum Annealercited by 7
- 2022Lattice Convolutional Networks for Learning Ground States of Quantum Many-Body Systemscited by 7
- 2024Are queries and keys always relevant? A case study on Transformer wave functionscited by 6
- 2025Transformers Meet In-Context Learning: A Universal Approximation Theorycited by 6
- 2026Learning to Adapt: In-Context Learning Beyond Stationaritycited by 2
- 2024Sample-Efficient Quantum State Tomography for Structured Quantum States in One Dimensioncited by 1
- 2025Quantum State Tomography for Tensor Networks in Two Dimensionscited by 1
Built on by
Not cited yet.