Excited Pfaffians: Generalized Neural Wave Functions Across Structure and State
Organizations: Department of Computer Science & Munich Data Science Institute, Technical University of Munich · CuspAI · Free University of Berlin · Rice University ·
Abstract
Neural-network wave functions in Variational Monte Carlo (VMC) have achieved great success in accurately representing both ground and excited states. However, achieving sufficient numerical accuracy in state overlaps requires increasing the number of Monte Carlo samples, and consequently the computational cost, with the number of states. We present a nearly constant sample-size approach, Multi-State Importance Sampling (MSIS), that leverages samples from all states to estimate pairwise overlap. To efficiently evaluate all states for all samples, we introduce Excited Pfaffians. Inspired by Hartree-Fock, this architecture represents many states within a single neural network. Excited Pfaffians also serve as generalized wave functions, allowing a single model to represent multi-state potential energy surfaces. On the carbon dimer, we match the -scaling natural excited states while training faster and modeling 50% more states. Our favorable scaling enables us to be the first to use neural networks to find all distinct energy levels of the beryllium atom. Finally, we demonstrate that a single wave function can represent excited states across various molecules.
Figures & tables
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| 1 | 2 | 4 | 8 | 16 | 32 | 64 | |
| 1 | 0.040 | 0.082 | 0.080 | 0.081 | 0.085 | 0.084 | 0.085 |
| 2 | 0.790 | 0.675 | 0.617 | 0.583 | 0.539 | 0.555 | 0.518 |
| 4 | 0.819 | 0.649 | 0.614 | 0.587 | 0.579 | 0.587 | 0.567 |
| 8 | 0.848 | 0.693 | 0.684 | 0.670 | 0.664 | 0.671 | 0.731 |
| 16 | 0.996 | 0.815 | 0.812 | 0.829 | 0.900 | 0.885 | 0.894 |
| Method | Atoms | Molecules | C 2 PES | Ethylene PES |
| Pfau et al. (2024) | 64B | 48B | 32B | 27.6B |
| Szabo et al. (2024) | 16B | 12B | 8B | 9.2B |
| Schätzle et al. (2025) | - | - | 3.2B | 1.6B |
| Ours | 800M | 800M | 800M | 800M |
| Sample reduction range | – fewer | – fewer | – fewer | – fewer |
| Method | Optimizer | Li | Be | B | C | N | O | F | Ne | ||
| Pfau et al. (2024) | Adam | 5.4 | 6.7 | 9.7 | 11.8 | 14.7 | 16.6 | 22.3 | 25.6 | 112.7 | |
| KFAC | 5.8 | 7.1 | 10.0 | 12.2 | 15.2 | 17.1 | 22.8 | 26.2 | 116.4 | ||
| Szabo et al. (2024) | Adam | 3.3 | 3.8 | 4.3 | 5.8 | 7.0 | 7.6 | 9.3 | 10.1 | 51.2 | |
| KFAC | 11.4 | 12.4 | 13.2 | 13.7 | 15.4 | 16.4 | 18.2 | 18.8 | 119.5 | ||
| This Work | Adam | - | - | - | - | - | - | - | - | 1.0 | |
| SPRING | - | - | - | - | - | - | - | - | 16.8 |
| Method | Optimizer | BH | HCl | H 2 O | H 2 S | BF | CO | C 2 H 4 | CH 2 O | CH 2 S | HNO | HCF | H 2 CSi | ||
| Pfau et al. | Adam | 3.5 | 4.9 | 7.3 | 4.8 | 12.3 | 12.3 | 14.8 | 14.7 | 12.4 | 14.6 | 14.6 | 9.4 | 125.4 | |
| (2024) | KFAC | 3.9 | 5.2 | 7.7 | 5.2 | 12.8 | 12.8 | 15.4 | 15.4 | 13.0 | 15.2 | 15.2 | 9.9 | 131.7 | |
| Szabo et al. | Adam | 3.4 | 15.2 | 5.6 | 15.2 | 9.2 | 9.4 | 10.6 | 10.4 | 24.8 | 10.4 | 11.2 | 21.2 | 146.6 | |
| (2024) | KFAC | 7.4 | 19.6 | 9.4 | 19.6 | 13.2 | 13.2 | 15.2 | 15.0 | 29.8 | 15.0 | 15.0 | 25.6 | 198.0 | |
| This Work | Adam | - | - | - | - | - | - | - | - | - | - | - | - | 3.9 | |
| SPRING | - | - | - | - | - | - | - | - | - | - | - | - | 14.0 |
| C 2 | Ethylene | ||||||
| Method | Optimizer | Step time | Total 10 structures | Step time | Total 23 structures | ||
| Pfau et al. (2024) | Adam | 49.0 | 490.4 | 3.9 | 89.2 | ||
| KFAC | 49.9 | 499.2 | 4.2 | 97.5 | |||
| Szabo et al. (2024) | Adam | 14.0 | 140.0 | 5.5 | 125.6 | ||
| KFAC | 24.8 | 248.0 | 7.4 | 170.2 | |||
| This Work | Adam | - | 2.4 | - | 3.8 | ||
| Method | S1 | S2 | S3 | S4 | S5 | S6 | S7 | S8 | S9 | S10 | S11 |
| Ours | 0.4294 | 2.0161 | 2.0438 | 3.0738 | 3.1192 | 3.2308 | 3.2352 | 4.3443 | 4.7957 | 5.3375 | 5.3634 |
| NES (paper) | 0.4293 | 2.0369 | 2.0369 | 3.1051 | 3.1051 | 3.2752 | 3.2752 | — | — | — | — |
| NES (4.5k) | 1.3817 | 3.5633 | 3.7173 | 4.4938 | 4.7929 | 5.1994 | 6.6696 | 12.7497 | 14.1597 | 14.6219 | 15.0104 |
| Category | Parameter | Value |
| Wave Function Architecture | ||
| Embedding network | Moon | |
| Hidden dimension | 256 | |
| Number of layers | 4 | |
| Envelopes per nucleus | 8 | |
| Orbitals per nucleus and determinant | 8 | |
| Experiment | A100 GPU-hours |
| Atomic excitations ( fig. 4 , left) | |
| Molecules ( fig. 4 , right) | |
| Carbon dimer PES ( fig. 5 ) | |
| Ethylene PES ( fig. 7 ) | |
| 33 states of Be ( fig. 6 ) |
| Molecule | Energy (Ha) | (Ha) |
| -25.28897(8) | - | |
| -25.24029(8) | 0.04868(12) | |
| -25.24021(8) | 0.04876(12) | |
| -25.18341(9) | 0.10555(12) | |
| -25.18336(9) | 0.10561(12) | |
| -15.5959(4) | - |
| Atom | Energy (Ha) | (Ha) |
| Li | -7.47807(3) | - |
| -7.41013(4) | 0.06794(5) | |
| -7.41005(4) | 0.06802(5) | |
| -7.40994(4) | 0.06813(5) | |
| -7.35424(3) | 0.12382(4) | |
| -7.33542(9) | 0.14264(9) |
| Bond length | ||||||
| 0.9952 | -75.77445(12) | -75.66149(12) | -75.65982(12) | -75.59821(14) | -75.57830(12) | -75.57735(12) |
| 1.1204 | -75.89580(11) | -75.82222(11) | -75.82083(11) | -75.76439(11) | -75.76767(11) | -75.76991(11) |
| 1.1823 | -75.91752(10) | -75.85855(10) | -75.85629(10) | -75.80813(11) | -75.81718(10) | -75.82005(10) |
| 1.2431 | -75.92326(10) | -75.87808(10) | -75.87552(10) | -75.83539(10) | -75.84666(10) | -75.84959(10) |
| 1.3064 | -75.91801(10) | -75.88474(10) | -75.88113(10) | -75.84960(10) | -75.86225(10) | -75.86555(10) |
| 1.3685 | -75.90679(10) | -75.88355(10) | -75.88037(10) | -75.85471(10) | -75.86803(10) | -75.87119(10) |
| State | Energy (Ha) | (Ha) | (Ha) | (Ha) |
| 0 | -14.66719(3) | - | - | - |
| 1 | -14.56714(6) | 0.10005(7) | 0.100149 | 0.000100 |
| 2 | -14.56707(3) | 0.10012(4) | 0.100149 | 0.000028 |
| 3 | -14.56706(3) | 0.10013(4) | 0.100149 | 0.000020 |
| 4 | -14.47333(3) | 0.19386(4) | 0.193942 | 0.000083 |
| 5 | -14.47327(3) | 0.19392(4) | 0.193942 | 0.000020 |