While for the atom in ML region, its force consists of ML force (F i ML ) itself and the part due to its interaction with the MM region (F i ML-MM ). The latter (F j ML-MM ) can be calculated analytically, while the former is derived from a complicated neural network. But owing to an auto-gradient technique, which makes it possible for us to estimate the gradient of energy using the energy from eq.2 .