EDBench: Large-Scale Electron Density Data for Molecular Modeling

Hongxin Xiang, Ke Li, Mingquan Liu, Zhixiang Cheng, Bin Yao, Wenjie Du, Jun Xia, Li Zeng, Xin Jin, Xiangxiang Zeng

TL;DR

EDBench introduces the largest dataset to date of molecular electron density, spanning 3.3 million molecules, to transition machine learning force fields from coarse atom-level approximations to physically grounded electronic-level modeling. Along with this massive dataset, the authors provide an electron density-centric benchmark suite demonstrating that deep learning models can predict, retrieve, and generate electron density fields at a fraction of the computational cost of traditional quantum chemistry simulations.

What Problem Does This Paper Address?

Machine learning force fields (MLFFs) have revolutionized molecular dynamics by predicting molecular energies and forces directly from atomic coordinates. However, most current models treat molecules as discrete collections of atoms, completely ignoring the continuous cloud of electron density (ED) surrounding them. According to the Hohenberg-Kohn theorem, electron density uniquely determines all ground-state properties of a molecular system. By ignoring it, current MLFFs struggle to capture subtle but crucial electronic effects like charge transfer or catalytic activation.

The primary bottleneck preventing the integration of ED into machine learning has been data. Calculating electron density traditionally requires expensive, first-principles Density Functional Theory (DFT) calculations that take minutes to hours per molecule. This has led to a severe shortage of large-scale, high-quality ED datasets for training deep learning models.

Figure 1: (a) Advancing MLFFs from atomic-level interactions—based on discrete atomistic repre- sentations—to electronic-level modeling using continuous ED, enabling richer and more physically grounded supervision; (b) Overview of the proposed EDBench dataset; (c) DFT method selection guided by Jacob’s ladder to balance accuracy and computational cost.

Methods

The authors generated EDBench by performing massive single-point DFT calculations using the open-source quantum chemistry package Psi4. They selected the B3LYP hybrid functional combined with a 6-31G**/+G** basis set to strike an optimal balance between quantum precision and computational efficiency, expending over 205,000 core-hours on a high-performance cluster.

To systematically evaluate how well machine learning models can understand and utilize this electronic information, they established a benchmark suite consisting of six tasks across three categories:

  1. Quantum Property Prediction: Inferring energy components, orbital energies, multipole moments, and open/closed-shell status directly from the ED field.
  2. Cross-Modal Retrieval: Matching 3D molecular structures to their corresponding ED fields and vice versa.
  3. ED Generation: Predicting the continuous 3D ED field directly from a molecular structure.

They evaluated several state-of-the-art architectures on these tasks, including point cloud models (PointVector, X-3D) and geometric transformers (GeoFormer, EquiformerV2), and introduced a heterogeneous graph neural network (HGEGNN) specifically for the generation task.

Datasets

The primary contribution is EDBench, which contains 3,359,472 drug-like molecules with high-fidelity ED distributions (stored as CUBE files) and associated quantum chemical properties, derived from the PCQM4Mv2 dataset.

To make the benchmark tasks accessible to the broader research community, the authors curated a structure- and label-balanced subset of 50,000 molecules. They applied a scaffold split (80% train, 10% validation, 10% test) to rigorously test the models' out-of-distribution generalization capabilities.

Figure 2: (a) Distribution of molecular lengths (heavy atoms only). (b) Distribution of heavy atom counts. (c) Distribution of ED lengths. (d) Distribution of per-molecule mean ED values.

Key Insights and Ideas

  • Electronic-Level Supervision: Transitioning from discrete atomic representations to continuous electron density provides a richer, more physically grounded signal that bridges the gap between microscopic electronic behavior and macroscopic force fields.
  • Locality vs. Global Integration: Models perform significantly better at predicting orbital energies than total energy components. This is because orbital energies depend heavily on local ED patterns, whereas total energy requires integrating over the entire global ED field, demanding more complex global interaction learning.
  • The "Smoothing" Effect: Surprisingly, downstream models trained on ED generated by a neural network actually outperformed those trained on raw DFT-calculated ED. The authors suggest that the neural network generates smoother, more learnable patterns that act as a beneficial regularizer.
  • Threshold Tuning: Filtering out regions of negligible electron density ($\rho_\tau$) dramatically reduces data size and computational overhead without sacrificing the model's ability to capture chemically significant areas like atomic cores and bonds.

Key Results

  • Four Orders of Magnitude Speedup: The HGEGNN model generated high-fidelity ED fields from molecular structures in just 13 to 24 milliseconds per molecule. Compared to the 245.8 seconds per molecule required for traditional DFT, this represents a massive acceleration.
  • High Generation Fidelity: The deep learning-generated ED fields achieved a Pearson correlation coefficient of up to 99.2% compared to ground-truth DFT calculations.
  • Effective Cross-Modal Retrieval: Combining EquiformerV2 (as the structure encoder) and X-3D (as the density encoder) yielded excellent cross-modal retrieval performance, achieving up to 78.71% Top-1 accuracy for matching electron densities back to their molecular structures.

Limitations and Future Work

  • Functional Constraints: The dataset relies primarily on the B3LYP functional. While validated to be highly consistent with modern functionals like SCAN, future iterations could incorporate higher-rung functionals to capture even more precise quantum effects.
  • Molecule Size and Complexity: EDBench currently focuses on small, drug-like molecules (mostly under 20 heavy atoms). Extending this framework to larger macromolecular systems and periodic crystalline solids relevant to materials science remains an open challenge.
  • Tailored Architectures: Most point cloud models evaluated were originally designed for computer vision tasks. There is a clear opportunity to design novel architectures natively tailored to represent continuous volumetric electron density fields.

Summary updated

BibTeX
@misc{xiang2025edbench,
  author = {Hongxin Xiang and Ke Li and Mingquan Liu and Zhixiang Cheng and Bin Yao and Wenjie Du and Jun Xia and Li Zeng and Xin Jin and Xiangxiang Zeng},
  title = {{EDBench: Large-Scale Electron Density Data for Molecular Modeling}},
  year = {2025},
  eprint = {2505.09262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.09262},
}
Figure