Electron densities skip the self-consistency loop: one Kohn-Sham step reproduces the self-consistent structure
The electron density is the central variable of density functional theory, and obtaining it normally means iterating to self-consistency. Two Transformer-inspired networks, SwinUNETR-V2 and its attention-free counterpart NeXtUNETR, predict the density directly, reaching normalized mean absolute density errors of 0.075% and 0.046% on QM9. For NeXtUNETR, a single Kohn-Sham step on the predicted density reproduces the self-consistent electronic structure, with median errors of 0.036 meV in total energy, 0.65 meV/angstrom in forces and 1.8 meV in the HOMO-LUMO gap.