Scaling Density Functional Theory with Gaussian Splatting
Organizations: Mila - Quebec AI Institute · Université de Montréal · Princeton University · Institut Courtois ·
Abstract
Density functional theory (DFT) strikes a practical balance between accuracy and computational cost in many problems of computational chemistry and materials science. However, many DFT calculations are limited by fixed atom-centered basis sets, which dictate how accuracy and cost scale with system size. We propose Gaussian Splatting for Density Functional Theory (GS-DFT), which represents molecular orbitals as a cloud of Gaussians whose positions, shapes, and mixing coefficients are optimized jointly by gradient descent to minimize the energy without training data. Conceptually, GS-DFT is 3D Gaussian splatting with the renderer replaced by quantum mechanics. We introduce two key solver components: adaptive density fitting with screening for efficient evaluation of two-electron integrals, and a regularized differentiable orthogonalization of the molecular orbitals. Empirically, the optimized basis reaches the accuracy of the largest conventional basis sets with a fraction of the parameters, converging systematically in energy, density, and nuclear forces. At equal parameter count, it captures the stretched-bond and anion physics that fixed bases only recover with specialized basis augmentation. The resulting solver exhibits quadratic peak memory scaling in the cloud size, allowing us to simulate systems of up to 2,742 atoms (10,406 electrons) without any modifications at triple-zeta scale using a single four-GPU node.
Figures & tables
| Peak Mem. | Fits GPU node | Simple forces | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| System | Atoms | M | GS-DFT | GTO | GS-DFT | GTO | GS-DFT | GTO | ||
| Trp-cage | 304 | 6,720 | ||||||||
| Defensin | 465 | 10,390 | ||||||||
| Insulin | 947 | 21,026 | ||||||||
| -spectrin CH | 1,755 | 38,794 | ||||||||
| 3IFU (chain A) | 2,742 | 60,308 | ||||||||
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Ala dipeptide | |||
|---|---|---|---|
| 5 | 13 | 39 | |
| Gaussian basis | 1.40 | 0.54 | 0.18 |
| Splat cloud | 1.80 | 0.69 | 0.23 |
| Obstacle | Earlier cost | Component of GS-DFT | Cost or bound |
|---|---|---|---|
| (i) Integrals | per step | Adaptive density fitting | Algorithm 1 , Proposition A.5 |
| (ii) Gradients | evaluations | Reverse-mode differentiation | evaluations |
| (iii) Scale | per step | Adam | per step |
| (iv) Dependence | unbounded gradient | Regularized eigensolve | Proposition A.6 |
| 3DGS | GS-DFT | |
|---|---|---|
| Primitive | anisotropic Gaussian | anisotropic Gaussian |
| Shape chart | covariance, quaternion and log-scales | precision, quaternion and log-eigenvalues |
| Weights | opacity and color, nonnegative | orbital coefficients , signed |
| Channels | color channels | occupied orbitals |
| Represented signal | radiance along rays | orbitals and density |
| Forward map | projection and alpha compositing | closed-form integrals and quadrature |
| Operation | Algorithm | Compute | Memory |
|---|---|---|---|
| Overlap and kinetic, and | Dense row blocks | ||
| Occupied Gram and retraction, Equation 12 | Eigensolve of | ||
| Nuclear attraction | Retained pairs | ||
| Fitted Hartree, Equation 14 | Fit vector over retained pairs | ||
| Fitted exchange, hybrids only | One fit vector per orbital pair | ||
| Exchange–correlation | Chunked grid |
| Setting | Value | Reference |
|---|---|---|
| Optimizer | Adam, clip at global norm , no weight decay | above |
| Learning rate | peak, floor, cosine | above |
| Screening | on the normalized overlap, see below | Section 4 |
| Pair-list padding | Section C.4 | |
| Fit regularizer | Proposition A.4 | |
| Eigensolve | Equation 12 |
| Result | Cloud size | Init | Steps | Grid | Seeds | |
|---|---|---|---|---|---|---|
| Observables, Figure 3 | ladder of | (i) | ||||
| Accuracy per parameter, Figure 5 | ladder of | (i) | ||||
| Functional coverage, Table 2 | (cc-pVTZ) | (i) | ||||
| Ionization potentials, Table 2 | (def2-QZVPP) | (i) | ||||
| Anion convergence, Figure 4 (a) | ladder of | (i) | ||||
| LiF dissociation, Figure 4 (b) | (cc-pVTZ) | (i) |
| Code | GPU | Multi-GPU | Differentiable | DF | Forces | Relevant bases | Largest system |
|---|---|---|---|---|---|---|---|
| GS-DFT (ours) | |||||||
| D4FT ( Li et al., 2023 ) | |||||||
| MESS ( Helal & Fitzgibbon, 2024 ) | – | ||||||
| DQC ( Kasim et al., 2022 ) | a | ||||||
| PySCF ( Sun et al., 2020 ) | b |
| Code | (Ha) | (mHa) | Iterations | Time (s) |
|---|---|---|---|---|
| PySCF | – | |||
| D4FT (float64) | ||||
| D4FT (float32, default) | NaN | – | ||
| MESS a | ||||
| DQC (CPU) | – | |||
| GS-DFT ( ) |
| GS-DFT | D4FT | DQC | PySCF | ||||
|---|---|---|---|---|---|---|---|
| System | Atoms | Mem | Time/step | Wall (s) | Wall (s) | Time/cycle | |
| Water | |||||||
| Ethanol | |||||||
| – | OOM | ||||||
| – | – | ||||||
| – | – | ||||||
| System | Regularized | Plain | (mHa) | |
|---|---|---|---|---|
| Optimizer | Family | (mHa) | Optimizer | Family | (mHa) |
|---|---|---|---|---|---|
| Adamax | Adam | Novograd | Adam | ||
| AdaBelief | Adam | AdaGrad | second moment | ||
| RAdam | Adam | signSGD | sign | ||
| LAMB | trust ratio | SGD | non-adaptive | ||
| AdamW | weight decay | LARS | trust ratio | ||
| Adam | Adam | Fromage | trust ratio |
| , | , | ||||
|---|---|---|---|---|---|
| Adds | Energy | Spread | Energy | Spread | |
| S0 | random, atom-centered | ||||
| S1 | element exponent ranges | ||||
| S2 | bond-centered splats | ||||
| S3 | bond-aligned anisotropy | ||||
| S4 | charge-proportional allocation | ||||
| Energy (Ha) | Time (s) | ms / step | |
|---|---|---|---|
| Energy (Ha) | Pairs | Retained | Time (s) | |
|---|---|---|---|---|
| cc-pV Z | aug-cc-pV Z | GS-DFT | Spread | |||
|---|---|---|---|---|---|---|
| D | ||||||
| T | ||||||
| Q | ||||||
| 5 | ||||||
| D | ||||||
| T |