DPA-2: a large atomic model as a multi-task learner

Duo Zhang, Xinzijian Liu, Xiangyu Zhang, Chengqian Zhang, Chun Cai, Hangrui Bi, Yiming Du, Xuejian Qin, Anyang Peng, Jiameng Huang, Bowen Li, Yifan Shan, Jinzhe Zeng, Yuzhi Zhang, Siyuan Liu, Yifan Li, Junhan Chang, Xinyan Wang, Shuo Zhou, Jianchuan Liu, Xiaoshan Luo, Zhenyu Wang, Wanrun Jiang, Jing Wu, Yudi Yang, Jiyuan Yang, Manyi Yang, Fu‐Qiang Gong, Linshuang Zhang, Mengchao Shi, Fu‐Zhi Dai, Darrin M. York, Shi Liu, Tong Zhu, Zhicheng Zhong, Jian Lv, Jun Cheng, Weile Jia, Mohan Chen, Guolin Ke, E Weinan, Linfeng Zhang, Handong Wang

Abstract

The rapid advancements in artificial intelligence (AI) are catalyzing transformative changes in atomic modeling, simulation, and design. AI-driven potential energy models have demonstrated the capability to conduct large-scale, long-duration simulations with the accuracy of ab initio electronic structure methods. However, the model generation process remains a bottleneck for large-scale applications. We propose a shift towards a model-centric ecosystem, wherein a large atomic model (LAM), pre-trained across multiple disciplines, can be efficiently fine-tuned and distilled for various downstream tasks, thereby establishing a new framework for molecular modeling. In this study, we introduce the DPA-2 architecture as a prototype for LAMs. Pre-trained on a diverse array of chemical and materials systems using a multi-task approach, DPA-2 demonstrates superior generalization capabilities across multiple downstream tasks compared to the traditional single-task pre-training and fine-tuning methodologies. Our approach sets the stage for the development and broad application of LAMs in molecular and materials simulation research.

Introduction

In molecular modeling, researchers often face a trade-off between accuracy and computational cost. Quantum mechanical methods like Density Functional Theory (DFT) provide high accuracy but are limited to small systems. Machine Learning Potentials (MLPs) bridge this gap by mimicking DFT accuracy at a fraction of the cost. However, traditional MLPs are typically "single-task" specialists. Training a new model usually requires generating a massive, bespoke DFT dataset for every new material or molecule—a process that can consume millions of CPU hours. These models often fail to generalize to new elements or thermodynamic conditions outside their narrow training sets.

DPA-2 addresses this bottleneck by shifting from a data-centric to a model-centric approach. It introduces a "Large Atomic Model" (LAM) that learns from a vast, diverse corpus of chemical data simultaneously, creating a universal foundation that can be efficiently adapted to specific downstream tasks.

The DPA-2 Architecture and Workflow

The DPA-2 architecture functions as a multi-task learner designed to capture a universal representation of atomic environments. Its workflow consists of three primary stages:

  1. Multi-task Pre-training: The model utilizes a Unified Descriptor—a shared backbone—to encode atomic configurations. This backbone is connected to multiple "Fitting Nets" (task-specific heads). During training, parameters in the descriptor are updated using data from all tasks simultaneously, while each fitting net specializes in a specific dataset's labeling style (e.g., different DFT functionals).
  2. Repformer Layer: A key innovation is the "representation transformer" (Repformer). It treats atoms like tokens in a language model, using attention mechanisms to update atomic representations based on their neighbors. This allows the model to capture complex, non-local chemical interactions more effectively than standard graph neural networks.
  3. Fine-tuning and Distillation: Once pre-trained, the unified descriptor can be "fine-tuned" on a small amount of data for a new task. To ensure the model is fast enough for production-scale Molecular Dynamics (MD), the authors employ knowledge distillation, where the heavy DPA-2 model (the "teacher") trains a simpler, faster model (the "student").
The DPA-2 workflow: (a) Multi-task pre-training on diverse datasets, (b) fine-tuning for specific downstream tasks, and (c) distillation into efficient student models.

Data and Benchmarking

The authors utilized a massive collection of data to build this "universal" model:

  • Pre-training Corpus: 18 datasets covering 73 chemical elements and approximately 5.1 million configurations. This includes the Open Catalyst 2020 (OC2M) dataset, various alloy systems, drug-like molecules, and water.
  • Downstream Benchmarks: 15 datasets used to test generalization, including ANI-1x (organic molecules), ferroelectric perovskites, and solid-state electrolytes.

Performance and Generalization

DPA-2 demonstrates significant improvements in both accuracy and data efficiency:

  • Zero-Shot Generalization: The multi-task DPA-2 significantly outperformed single-task models and other state-of-the-art architectures (like MACE-MP-0) on downstream tasks without prior exposure to their specific data. It reduced the weighted average error (WARMSE) in force predictions by nearly 60% compared to baselines.
  • Data Efficiency: When fine-tuning on new systems, DPA-2 reached target accuracy with 10x to 100x less data than models trained from scratch. For example, in water simulations, it achieved high accuracy with a 100-fold reduction in required DFT labels.
  • Production Readiness: Through distillation, the authors produced "student" models that are ~100x faster than the full DPA-2 teacher. This enables simulations of systems with millions of atoms on a single GPU while maintaining the teacher's accuracy.

Discussion and Future Outlook

DPA-2 represents a major step toward a model-centric ecosystem in molecular modeling. By learning fundamental "chemical knowledge" across the periodic table, it reduces the reliance on expensive labeled data for new simulation tasks.

While DPA-2 is a significant advancement, the authors note that the current pre-training data is still insufficient in certain areas, such as 2D materials. Future work may incorporate self-supervised learning on unlabeled data to further expand the model's reach. To foster community collaboration, the authors have launched the OpenLAM Initiative to build and refine these large-scale atomic models.

Summary updated

BibTeX
@inproceedings{zhang2024dpa,
  author = {Duo Zhang and Xinzijian Liu and Xiangyu Zhang and Chengqian Zhang and Chun Cai and Hangrui Bi and Yiming Du and Xuejian Qin and Anyang Peng and Jiameng Huang and Bowen Li and Yifan Shan and Jinzhe Zeng and Yuzhi Zhang and Siyuan Liu and Yifan Li and Junhan Chang and Xinyan Wang and Shuo Zhou and Jianchuan Liu and Xiaoshan Luo and Zhenyu Wang and Wanrun Jiang and Jing Wu and Yudi Yang and Jiyuan Yang and Manyi Yang and Fu‐Qiang Gong and Linshuang Zhang and Mengchao Shi and Fu‐Zhi Dai and Darrin M. York and Shi Liu and Tong Zhu and Zhicheng Zhong and Jian Lv and Jun Cheng and Weile Jia and Mohan Chen and Guolin Ke and E Weinan and Linfeng Zhang and Handong Wang},
  title = {{DPA-2: a large atomic model as a multi-task learner}},
  booktitle = {Npj},
  year = {2024},
  doi = {10.1038/s41524-024-01493-2},
}
Figure