# On the role of gradients for machine learning of molecular energies and forces

분자 에너지와 힘의 기계 학습에서 그래디언트의 역할에 대하여

Christensen, Anders S., von Lilienfeld, O. Anatole · arXiv · 2020년 7월 19일

- **연구 문제** 기계학습 포텐셜에서 에너지 레이블만 쓰는 것과 에너지와 원자 힘을 함께 쓰는 것이 학습 효율에 어떤 차이를 만드는지 검증합니다.
- **연구 방법** 같은 커널과 표현을 공유하는 에너지 전용, 힘 전용, 에너지와 힘 결합 모델을 닫힌 형태의 회귀로 비교합니다.
- **주요 결과** revised MD17의 10개 분자에서 힘 레이블 추가는 예측 에너지와 힘의 MAE를 약 7배 낮추었습니다. 여러 분자를 포괄하는 실험에서는 힘 포함이 에너지 예측을 개선하지 않았습니다.

## 연구 문제: 힘 레이블은 학습 효율을 높이는가

기계학습 포텐셜은 학습 데이터의 질과 양에 따라 정확도가 정해집니다. 분자 시뮬레이션에서는 단일점 에너지뿐 아니라 원자 힘 벡터도 훈련 레이블로 쓸 수 있지만, 힘을 추가하는 것이 실제로 예측 정확도를 높이는지는 문헌에서 일관되게 정리되어 있지 않습니다. 예를 들어 GDML과 sGDML은 힘 레이블만으로 MD17 벤치마크에서 높은 정확도를 보고하고, ANI 계열은 에너지만으로 일반 유기화학 모델을 구축했습니다. 이 논문은 에너지 레이블과 힘 레이블을 포함하는 경우가 학습 곡선에서 어떻게 달라지는지 체계적으로 비교합니다.

핵심 질문은 두 가지입니다. 첫째, 같은 분자의 여러 기하구조를 다룰 때 힘 레이블이 에너지와 힘 예측을 얼마나 개선하는지입니다. 둘째, 크기와 조성이 다른 여러 분자를 포괄하는 모델에서도 같은 효과가 나타나는지입니다. 논문은 이 두 질문을 토이 함수, MD17 분자별 학습, 여러 분자 데이터셋의 세 실험으로 나누어 확인합니다.

## 커널 모델의 세 가지 훈련 방식

논문은 모든 훈련 방식에서 같은 커널 함수와 표현을 공유하도록 설계해, 데이터 종류만 다른 모델을 공정하게 비교합니다. 에너지만 쓰는 모델은 커널 릿지 회귀로 에너지를 예측하며, 회귀계수 α는 정규화된 최소제곱 해로 구합니다. 힘은 에너지 예측식의 음의 기울기로 얻어지므로, 에너지 기저 함수를 좌표에 대해 미분한 힘 예측식을 사용합니다.

에너지와 힘을 함께 쓰는 모델은 함수 기저에 더해 커널 도함수 기저를 추가합니다. 힘 레이블이 에너지 레이블보다 원자 좌표당 3N개 많기 때문에, 이 확장이 없으면 방정식이 과도하게 결정되어 두 종류의 레이블을 정확히 맞추기 어렵습니다. 이 확장된 연립방정식은 정규화된 제곱오차 손실을 최소화하는 닫힌 형태의 해를 가집니다. 힘만 쓰는 모델은 커널의 이중 도함수로 힘을 직접 맞추고, 에너지는 힘을 적분해 얻습니다. 이때 적분 상수가 남으므로 여러 분자의 절대 에너지를 예측하는 데에는 제약이 있습니다.

하이퍼파라미터 선택은 에너지 항과 힘 항을 함께 가지는 점수 함수로 수행합니다. 에너지나 힘 중 하나를 쓰지 않는 경우에는 해당 항을 제외합니다. 토이 함수에는 가우시안 커널을 사용하고, 분자에는 FCHL19 표현과 원자쌍 합으로 정의되는 가우시안 커널을 사용합니다.

## Himmelblau 함수에서의 학습 곡선 검증

토이 실험에서는 두 변수로 된 Himmelblau 함수를 사용합니다. 훈련 집합 크기 N을 25에서 1600까지 바꾸며, 각 N에 대해 100번의 무작위 부분표본 교차검증을 수행합니다. 시험 집합은 10,000개 점으로 고정합니다. 세 모델은 함수값만, 도함수만, 함수값과 도함수를 함께 사용하는 방식입니다.

결과에서 함수값만 쓴 모델에 비해 도함수만 쓴 모델은 함수값 MAE의 학습 곡선 오프셋을 7.0배 낮추고, 함수값과 도함수를 함께 쓴 모델은 7.2배 낮춥니다. 도함수 예측 MAE에서는 도함수만 쓴 모델이 7.9배, 함께 쓴 모델이 7.0배 감소를 보입니다. 두 힘 포함 모델 사이의 차이는 100회 반복의 표준편차보다 작아, 이 실험에서는 두 모델의 차이를 통계적으로 구분하지 않습니다. 이 결과는 이 토이 함수와 설정에서 얻은 것입니다.

![Figure 1: Panel (A) Displays the surface of Himmelblau’s function, and (B) the gradient norm of the surface. Panels (C) and (D) display the MAE prediction and…](https://refivu.com/papers/7daff4be-4692-48e0-92e5-30725516646b/figures/figure-dd4d77346dfaef4080f6c971d03b7bd1.png?thumb=512)

**Figure 1** . Panel (A) Displays the surface of Himmelblau’s function, and (B) the gradient norm of the surface. Panels (C) and (D) display the MAE prediction and MAE gradient prediciton, respectively, of the surface of Himmelblau’s function as a function of the training set size. Three diﬀerent sets of training labels are used: green is trained on only the function values, red is trained only on function gradient components, and ﬁnally blue is trained using both simultaneously.

[원문](https://arxiv.org/abs/2007.09593v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Christensen, Anders S., von Lilienfeld, O. Anatole · On the role of gradients for machine learning of molecular energies and forces · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## revised MD17 분자별 학습 곡선

분자별 실험은 revised MD17 데이터셋의 10개 분자에 대해 수행합니다. 이 데이터셋은 MD 궤적에서 무작위로 고른 100,000개 구조를 ORCA 4.0.1로 DFT 단일점 계산한 것입니다. 각 분자마다 에너지만, 힘만, 에너지와 힘을 함께 쓰는 세 모델을 학습하며, 훈련 집합 크기 N은 50에서 1000까지 바꿉니다. 격자 탐색은 4-fold 교차검증으로 수행합니다.

힘 레이블을 추가하면 같은 훈련 샘플 수에서 예측 에너지와 힘 성분의 MAE가 평균적으로 약 7배 줄어듭니다. 에너지를 힘에 더해 넣는 효과는 N=1000에서 에너지 MAE 최대 차이 0.001 kcal/mol, 힘 MAE 최대 차이 0.002 kcal/mol/Å로 작았습니다. 학습 곡선의 기울기와 오프셋은 10개 분자에서 거의 같아, 저자들은 한 분자 안에서는 에너지 레이블 한 개와 힘 레이블 한 개가 비슷한 정확도 향상을 준다고 해석합니다. 다만 benzene에서는 오프셋이 매우 낮지만 기울기가 전형적인 거듭제곱 법칙과 맞지 않아, 저자들은 표현의 고유성 부족을 가능한 원인으로 제시합니다. 이 원인은 저자의 가설이며 이 논문에서 검증된 것은 아닙니다.

![Figure 2: Learning curves for machines trained on three diﬀerent datatypes for the 10 molecules in the revised MD17 dataset, namely machines trained on energie…](https://refivu.com/papers/7daff4be-4692-48e0-92e5-30725516646b/figures/figure-7ca1fc32164f4b02bef1f1fbc29d5a39.png?thumb=512)

**Figure 2** . Learning curves for machines trained on three diﬀerent datatypes for the 10 molecules in the revised MD17 dataset, namely machines trained on energies only, forces only, and both forces and energies. Data for ﬁve folds are plotted as a scatter plot for each training set size, and a linear ﬁt for each curve is plotted in addition. In (A) the mean absolute error (MAE) of the predicted atomization energy is presented for each molecule as a function of the number of molecules in the training set, while (B) shows MAE of the predicted force components for the same folds.

[원문](https://arxiv.org/abs/2007.09593v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Christensen, Anders S., von Lilienfeld, O. Anatole · On the role of gradients for machine learning of molecular energies and forces · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

## 여러 분자를 포괄하는 모델과 적분 상수의 영향

여러 분자 실험은 1,595개 작은 유기 분자의 비평형 구조를 사용합니다. 각 분자의 변형된 구조는 훈련 집합이나 시험 집합 중 한 곳에만 속하도록 나눕니다. 이 실험에서는 힘만 쓰는 모델을 쓰지 않는데, 힘만으로는 여러 분자의 절대 에너지가 적분 상수만큼 정해지지 않기 때문입니다. 비교하는 것은 에너지만 쓰는 모델과 에너지 및 3N개의 힘 성분을 함께 쓰는 모델입니다.

에너지 예측의 학습 곡선 기울기는 분자 수 기준으로 -0.44와 -0.45로 거의 같습니다. 가장 큰 차이는 평균 MAE의 3%입니다. 총 레이블 수 기준으로 보면 에너지만 쓴 모델이 같은 정확도에 도달하기 위해 힘과 에너지를 함께 쓴 모델보다 약 51배 적은 레이블을 씁니다. 힘 예측에서는 힘을 포함한 모델이 MAE를 평균 3.5배 낮추며, 기울기는 -0.23과 -0.31로 차이가 있습니다. 그러나 저자들은 큰 훈련 집합에서 나타날 수 있는 차이를 확인하려면 더 많은 분자가 필요하다고 밝힙니다. 따라서 이 데이터에서 힘 레이블이 에너지 예측의 상한을 넓히지 않았다는 결과는 이 실험 범위에 한정됩니다.

![Figure 3: Energy and force learning curves machine learning models trained on a dataset consisting of non-equilibrium conformers for 1,595 small, organic molec…](https://refivu.com/papers/7daff4be-4692-48e0-92e5-30725516646b/figures/figure-e7fbc6f82cbe7d97cb6ec7d6d46a619d.png?thumb=512)

**Figure 3** . Energy and force learning curves machine learning models trained on a dataset consisting of non-equilibrium conformers for 1,595 small, organic molecules. Two models are trained, one including only the energy labels of each non-equilibrium conformer, and one additionally including the corresponding force labels. Panel (A) shows the MAE predicted atomization energy as a function of the number of molecules in the training set, while (B) shows the same predicted quantity, but as a function of the total number of training labels (i.e. the total number of energy and force components in the training set) for each machine. The MAE predicted force components are displayed in panels (C) and (D) as a function of the number of molecules in the training set (C) as well as the total number of training labels (D).

[원문](https://arxiv.org/abs/2007.09593v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Christensen, Anders S., von Lilienfeld, O. Anatole · On the role of gradients for machine learning of molecular energies and forces · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 결과의 적용 범위와 실용적 한계

힘 레이블의 효과는 같은 분자의 기하 변형과 같은 단일 표면에서 가장 뚜렷합니다. 여러 분자 실험에서는 힘이 에너지의 적분 상수를 해결하지 못해 에너지 예측 개선으로 이어지지 않았습니다. 이 결과는 1,595개 분자와 해당 표현·커널 설정에서 얻은 것이며, 모든 분자 데이터나 모든 기계학습 모델에 대한 일반 결론으로 옮길 수 없습니다.

계산 비용도 조건에 따라 달라집니다. 힘을 얻는 비용이 3N개 단일점 계산보다 작을 때 힘 포함 학습이 유리하다는 것이 저자들의 실용적 권고입니다. 힘 기반 모델은 커널의 이중 도함수를 사용하므로 학습과 예측 비용이 더 큽니다. 또한 저자들은 대체 표현이나 알케미컬 도함수의 효과를 향후 과제로 제시하지만, 이 논문에서는 측정하지 않았습니다.

## 논문 정보

- **저자**: Christensen, Anders S., von Lilienfeld, O. Anatole
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 7월 19일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 7월 19일
- **버전**: v1
- **arXiv**: 2007.09593
- **분류**: physics.chem-ph · physics.comp-ph
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2007.09593v1) · [원문 PDF ↗](https://arxiv.org/pdf/2007.09593v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The accuracy of any machine learning potential can only be as good as the data used in the fitting process. The most efficient model therefore selects the training data that will yield the highest accuracy compared to the cost of obtaining the training data. We investigate the convergence of prediction errors of quantum machine learning models for organic molecules trained on energy and force labels, two common data types in molecular simulations. When training and predicting on different geometries corresponding to the same single molecule, we find that the inclusion of atomic forces in the training data increases the accuracy of the predicted energies and forces 7-fold, compared to models trained on energy only. Surprisingly, for models trained on sets of organic molecules of varying size and composition in non-equilibrium conformations, inclusion of forces in the training does not improve the predicted energies of unseen molecules in new conformations. Predicted forces, however, also improve about 7-fold. For the systems studied, we find that force labels and energy labels contribute equally per label to the convergence of the prediction errors. Choosing to include derivatives such as atomic forces in the training set or not should thus depend on, not only on the computational cost of acquiring the force labels for training, but also on the application domain, the property of interest, and the desirable size of the machine learning model. Based on our observations we describe key considerations for the creation of datasets for potential energy surfaces of molecules which maximize the efficiency of the resulting machine learning models.

## 원문 인용

Christensen, Anders S., von Lilienfeld, O. Anatole (2020). On the role of gradients for machine learning of molecular energies and forces. arXiv:2007.09593v1. https://arxiv.org/abs/2007.09593v1

**BibTeX**

```
@misc{s2020role,
  title = {{On the role of gradients for machine learning of molecular energies and forces}},
  author = {Christensen, Anders S. and von Lilienfeld, O. Anatole},
  year = {2020},
  eprint = {2007.09593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.09593v1}
}
```

## 이 논문의 용어

- [kernel ridge regression](https://refivu.com/terms/76eda674c77f-kernel-ridge-regression)
- [Gaussian process regression](https://refivu.com/terms/b64d5b2f7d95-gaussian-process-regression)
- [nested cross-validation](https://refivu.com/terms/ff1cbc57b524-nested-cross-validation)
- [power-law](https://refivu.com/terms/5ba7adc5c501-power-law)

## 다른 논문 해설

- [Detect Faces Efficiently: A Survey and Evaluations](https://refivu.com/papers/13eb42e8-ad32-4f42-9dd4-913ad7464dd5-detect-faces-efficiently-a-survey-and-evaluations.md)
- [Deep Reinforcement Learning for Tropical Air Free-Cooled Data Center Control](https://refivu.com/papers/64d8693e-6aeb-460e-a3bc-77e55d9ee2d2-deep-reinforcement-learning-for-tropical-air-free-cooled.md)
- [Hallucination to Truth: A Review of Fact-Checking and Factuality Evaluation in Large Language Models](https://refivu.com/papers/29ebff2e-1fee-4975-9682-038fb460afd5-hallucination-to-truth-a-review-of-fact-checking.md)
- [Machine learning model for predicting surface wettability in laser-textured metal alloys](https://refivu.com/papers/e2f6e3c1-45cb-4d45-a79e-77d45b1a35a6-machine-learning-model-for-predicting-surface-wettability-in.md)
- [Federated Learning with Sparsified Model Perturbation: Improving Accuracy under Client-Level Differential Privacy](https://refivu.com/papers/b0ede8c0-7d0e-4066-859e-03460547e66d-federated-learning-with-sparsified-model-perturbation.md)
- [Real-time 3D Single Object Tracking with Transformer](https://refivu.com/papers/dca071c8-9ccd-4c8f-9920-11e316dd6697-real-time-3d-single-object-tracking-with-transformer.md)
- [Reinforcement-learning-based actuator selection method for active flow control](https://refivu.com/papers/e820c612-f1fe-411e-b841-1b4e9d17f26e-reinforcement-learning-based-actuator-selection-method-for.md)
- [Language models align with human judgments on key grammatical constructions](https://refivu.com/papers/93c9c642-d7e0-46eb-9a74-eea100c098ad-language-models-align-with-human-judgments-on-key.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7daff4be-4692-48e0-92e5-30725516646b-on-the-role-of-gradients-for-machine-learning)
