Understanding Kernel Ridge Regression: Common behaviors from simple functions to density functionals

Kevin Vu, John C. Snyder, Li Li, Matthias Rupp, Brandon F. Chen, Tarek Khelif, Klaus-Robert Müller, Kieron BurkearXiv 2015

Abstract

Kernel Ridge Regression (KRR) is a cornerstone of machine learning applications in quantum chemistry, yet its behavior on deterministic, noise-free data remains poorly understood. This study demystifies KRR performance by decomposing the error landscape into three universal regions—the "comb," "valley," and "plateau"—using a Gaussian kernel. Through analytical derivations and experiments ranging from 1D toy models to high-dimensional density functionals, we demonstrate that the "physics" of learning is largely dictated by the kernel's length scale and regularization. Our results show that KRR can achieve super-linear learning rates in noise-free regimes, while standard regularization acts as an accuracy floor.

Introduction

Machine Learning (ML) has become a powerhouse for approximating density functionals in Density Functional Theory (DFT), particularly for estimating kinetic energy (KE). However, most ML tools were designed by computer scientists for noisy, high-dimensional datasets (like images or text). In contrast, data in quantum chemistry is often "noise-free" because it is generated by deterministic numerical solvers. Furthermore, the relationship between electron density and energy is governed by strict physical laws. This paper bridges the gap between general ML theory and physical applications, investigating how hyperparameters like the length scale ($\sigma$) and regularization strength ($\lambda$) dictate the error landscape in these unique physical regimes.

Methods and Theoretical Framework

The authors utilize Kernel Ridge Regression (KRR) with a Gaussian kernel. While KRR is a standard technique, this work provides a novel systematic analytical decomposition of the error. The error landscape is categorized into three qualitatively different regions based on the length scale $\sigma$:

  1. Region I (Small $\sigma$): The "comb" region, where the Gaussian basis functions are too narrow to overlap, leading to poor generalization.
  2. Region II (Intermediate $\sigma$): The "valley" region, where optimal interpolation occurs and error is minimized.
  3. Region III (Large $\sigma$): The "plateau" region, where the kernel becomes so wide it acts like a polynomial fit.
The universal error landscape of KRR, divided into Region I (comb), Region II (valley), and Region III (plateau).

The study validates these regions across three datasets: a 1D cosine toy model, a single fermion in a 1D box, and a multi-fermion system with a complex 9-parameter potential.

Key Insights and Results

The Universality of the Error Landscape

A primary finding is that the error plot for a simple 1D cosine function is structurally identical to that of high-dimensional density functionals. This suggests that the learning process is dominated by the mathematical properties of the Gaussian kernel rather than the specific complexity of the physical system.

Regularization and the Error Floor

In typical ML applications, regularization ($\lambda$) prevents overfitting to noise. However, in noise-free physical problems, $\lambda$ acts as a floor on achievable accuracy. As shown in the analysis of the "valley" region, the minimum achievable error is directly proportional to the regularization strength.

The effect of regularization parameter $\lambda$ on the error floor within the 'valley' region.

Learning Rates and Accuracy

In the noise-free limit ($\lambda \to 0$), the error decays at super-linear rates as training data ($N_T$) increases. For the cosine model, the error followed a power law of $N_T^{-27}$, significantly outperforming standard numerical integration methods. In practical DFT applications, the optimized KRR model achieved a Mean Absolute Error (MAE) of 0.12 kcal/mol, well within the threshold for "chemical accuracy."

Conclusion

This work provides a clear roadmap for hyperparameter selection in physical ML tasks. While KRR excels at energy prediction, the authors note its current limitations in producing accurate functional derivatives (slopes). Future research should focus on incorporating derivative constraints directly into the kernel to facilitate "orbital-free DFT." Additionally, the impact of the "curse of dimensionality" on these universal patterns in even higher-dimensional systems remains an open question.

Summary updated

BibTeX
@misc{vu2015understanding,
  author = {Kevin Vu and John C. Snyder and Li Li and Matthias Rupp and Brandon F. Chen and Tarek Khelif and Klaus-Robert Müller and Kieron Burke},
  title = {{Understanding Kernel Ridge Regression: Common behaviors from simple functions to density functionals}},
  year = {2015},
  eprint = {1501.03854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.03854},
}
Figure