Abstract
Machine learning (ML) methods enable prediction of the properties of chemical structures without computationally expensive ab initio calculations. The quality of such predictions depends on the reference data that was used to train the model. In this work, we introduce the QCML dataset: A comprehensive dataset for training ML models for quantum chemistry. The QCML dataset systematically covers chemical space with small molecules consisting of up to 8 heavy atoms and includes elements from a large fraction of the periodic table, as well as different electronic states. Starting from chemical graphs, conformer search and normal mode sampling are used to generate both equilibrium and off-equilibrium 3D structures, for which various properties are calculated with semi-empirical methods (14.7 billion entries) and density functional theory (33.5 million entries). The covered properties include energies, forces, multipole moments, and other quantities, e.g., Kohn-Sham matrices. We provide a first demonstration of the utility of our dataset by training ML-based force fields on the data and applying them to run molecular dynamics simulations.
Introduction
Machine learning (ML) is revolutionizing computational chemistry by predicting molecular properties orders of magnitude faster than traditional ab initio methods. However, the predictive power of these models is fundamentally limited by the quality and diversity of their training data. Existing datasets often focus on equilibrium structures, a narrow range of elements (typically H, C, N, O), or neutral singlet states, which limits their applicability to molecular dynamics and reactive chemistry.
To address these gaps, we present QCML, a massive, consistent, and diverse reference database designed to support the development of "foundation models" for chemistry.
Methods
The QCML dataset was constructed using a hierarchical generation pipeline designed to maximize chemical diversity while maintaining physical relevance.
Data Sources and Enrichment
The process begins with the collection of 17.2 million unique chemical graphs from sources like PubChem and GDB. These are supplemented by systematic graph enumeration and a "data enrichment" phase, where all possible protonation states and stereoisomers are generated for each graph.
Conformer Search and Sampling
For each chemical graph, local energy minima (conformers) are identified using semi-empirical methods. To enable the learning of atomic forces—critical for molecular dynamics—we generate "off-equilibrium" structures through normal mode sampling. Unlike standard Cartesian displacement, we perform sampling in Z-matrix coordinates (internal distances and angles). This approach avoids unphysical atomic overlaps and ensures the generated structures remain within chemically relevant regions of the potential energy surface.
Multi-level Calculations
Properties are calculated at two levels of theory:
- Semi-empirical: 14.7 billion entries using GFN0-xTB and GFN2-xTB.
- Density Functional Theory (DFT): A high-fidelity subset of 33.5 million entries calculated at the PBE0/tight level.
Dataset Characteristics
QCML represents a significant leap in scale and diversity compared to existing benchmarks like QM9 (~134k molecules).
- Scale: The DFT subset alone is approximately 250 times larger than QM9.
- Diversity: The dataset includes elements up to Atomic Number 86 (Radon) and covers a wide range of electronic states, including various charges and multiplicities (e.g., doublets and ions).
- Local Learning: By focusing on molecules with up to 8 heavy atoms, the dataset provides a dense sampling of local bonding patterns. Because ML models typically learn local interactions, this allows for successful extrapolation to much larger systems.
Key Results
We demonstrated the utility of QCML by training the SpookyNet architecture on the data:
- Chemical Accuracy: The model achieved errors below 1 kcal/mol for energy with as few as 1 million DFT samples.
- Saturation: Performance gains began to plateau between 10M and 30M training examples, indicating that the dataset size is sufficient to capture the underlying physics of small molecules at this level of theory.
- Extrapolation and Stability: A model trained exclusively on molecules with up to 8 heavy atoms successfully performed a stable 1-nanosecond molecular dynamics simulation of aspirin (13 heavy atoms), confirming the quality of the learned force fields.
- Transfer Learning Potential: A high correlation was observed between the fast semi-empirical results and the expensive DFT results, making QCML an ideal candidate for multi-fidelity transfer learning.
Conclusion
The QCML dataset provides the "big data" foundation necessary for the next generation of universal neural network potentials. By combining massive scale with systematic diversity in elements and electronic states, it enables the training of models that are both accurate and robust across a wide range of chemical applications.
Summary updated