Skip to content

Commit c5d9471

Browse files
authored
Add files via upload
1 parent e9d4c9e commit c5d9471

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

source/_posts/nbhub_abadeepkd.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
title: "NBHub | ABACUS+DeePKS Step-by-Step Practical Tutorial: Using the Perovskite System as an Example"
3+
date: 2024-10-17
4+
categories:
5+
- Notebooks
6+
- ABACUS
7+
mathjax: true
8+
---
9+
10+
This Notebook will approach DeePKS from an application perspective, using the **perovskite system** as a case study. It systematically presents the complete process of **DeePKS model training and deployment**, including:
11+
12+
1. **Preparation of labeled data** for the example system,
13+
2. **Model training**, and
14+
3. **Result analysis**.
15+
16+
Check out here: https://bohrium.dp.tech/collections/6242632852/
17+
18+
**Tutorial Structure**
19+
20+
Following a progression from simple to complex, this tutorial series is designed to guide readers step by step in learning DeePKS:
21+
22+
- **Single-element systems**:
23+
- Start with energy label training for systems containing the same type of element.
24+
25+
- **Multi-label training for single-element systems**:
26+
- Expand to training multiple labels (e.g., **energy**, **forces**, **stress**, and **band structure**) for single-element systems.
27+
28+
- **Real-world research systems**:
29+
- Transition to complex research systems (e.g., those with diverse elemental compositions), incorporating multi-label training for **energy**, **forces**, **stress**, and **band structure**.
30+
31+
32+
33+
**Learning Outcomes**
34+
35+
Through this tutorial, readers will:
36+
37+
- Gain a **deep understanding of the DeePKS method**,
38+
- Master how to apply it to actual model training and deployment, and
39+
- Equip themselves with essential skills to support future research.
40+
41+
42+
## Background
43+
### **First-Principles Calculations Based on KS-DFT**
44+
45+
First-principles calculations based on **Kohn−Sham Density Functional Theory (KS-DFT)** have become one of the most widely used quantum mechanical methods at the atomic and molecular scales in recent decades.
46+
47+
The **accuracy of KS-DFT** is determined by the precision of the unknown terms in the total energy—namely, the **exchange-correlation functional**. Among the various approximations of exchange-correlation functionals—such as **LDA**, **GGA**, **meta-GGA**, and **hybrid functionals** [1-2]—achieving a balance between **accuracy** and **efficiency** has always been a challenge.
48+
49+
- The most commonly used functional, such as the **PBE functional** under the **GGA approximation**, performs well in terms of computational efficiency but **often lacks accuracy** for specific systems.
50+
- On the other hand, **hybrid functionals** like **HSE06** offer higher accuracy but suffer from **lower computational efficiency**, making them impractical for handling large systems.
51+
52+
---
53+
54+
### **Opportunities with Artificial Intelligence**
55+
56+
The **rapid development of artificial intelligence** (AI) has introduced new possibilities for representing and approximating high-dimensional complex functions. By leveraging **deep learning models** to bridge the gap between low- and high-accuracy functionals, it is now possible to achieve a good balance between efficiency and accuracy.
57+
58+
---
59+
60+
### **DeePKS Method**
61+
62+
The **DeePKS method** is a deep learning-based functional correction approach developed to address this challenge [3-5]. Its key features are as follows:
63+
64+
1. **Objective**:
65+
- DeePKS does not reconstruct the exchange-correlation functional itself.
66+
- Instead, it uses **machine learning techniques** to optimize low-accuracy functionals.
67+
68+
2. **How it Works**:
69+
- DeePKS learns the differences in **energy**, **forces**, **stress**, and **band structure** labels between:
70+
- A **baseline functional** (e.g., PBE)
71+
- A **target functional** (e.g., HSE06)
72+
- This effectively combines the advantages of low- and high-accuracy calculations.
73+
74+
3. **Key Benefits**:
75+
- **Good balance between efficiency and accuracy**.
76+
- **Low computational cost**:
77+
- Correction terms are computationally as inexpensive as low-accuracy functionals.
78+
- Far less expensive than high-accuracy functionals like HSE06.
79+
80+
---
81+
82+
### **Advantages in Practical Applications**
83+
84+
- The **computational cost of correction terms** in DeePKS is comparable to that of low-accuracy functionals.
85+
- This makes DeePKS **significantly faster** than high-accuracy functionals, giving it a notable edge in practical applications.
86+
87+
---
88+
89+
### **Integration with DFT Software**
90+
91+
During **DeePKS model training**, the update of model parameters alternates with the **self-consistent calculations** of first-principles methods.
92+
This requires DeePKS to **seamlessly integrate** with existing **density functional theory software**.
93+
94+
<center><img src=https://dp-public.oss-cn-beijing.aliyuncs.com/community/DEEPKS.webp# pic_center width="100%" height="100%" /></center>
95+
96+
97+
Reference:
98+
1.Kohn W, Sham L J. Self-consistent equations including exchange and correlation effects[J]. Physical review, 1965, 140(4A): A1133.
99+
2.Perdew J P, Burke K, Ernzerhof M. Generalized gradient approximation made simple[J]. Physical review letters, 1996, 77(18): 3865.
100+
3.https://github.com/deepmodeling/deepks-kit/tree/develop
101+
4.Chen Y, Zhang L, Wang H, et al. DeePKS: A comprehensive data-driven approach toward chemically accurate density functional theory[J]. Journal of Chemical Theory and Computation, 2020, 17(1): 170-181.
102+
5.Ou Q, Tuo P, Li W, et al. DeePKS Model for Halide Perovskites with the Accuracy of a Hybrid Functional[J]. The Journal of Physical Chemistry C, 2023, 127(37): 18755-18764.
103+
6.https://github.com/deepmodeling/abacus-develop
104+
7.Li W, Ou Q, Chen Y, et al. DeePKS+ ABACUS as a Bridge between Expensive Quantum Mechanical Models and Machine Learning Potentials[J]. The Journal of Physical Chemistry A, 2022, 126(49): 9154-9164.

0 commit comments

Comments
 (0)