Spectral Analysis of Molecular Kernels: When Richer Features Do Not Guarantee Better Generalization

Asma Jamali, Tin Sum Cheng, Rodrigo A. Vargas-HernándezarXiv 2025 · DOI

Introduction

In machine learning, a prevailing heuristic suggests that "richer" feature spectra—characterized by a slow decay of eigenvalues in the data's similarity matrix—necessarily lead to superior generalization. This intuition is particularly influential in self-supervised learning. However, this study rigorously tests this assumption within the domain of molecular property prediction, where kernel methods remain vital due to their mathematical clarity and performance on small datasets.

Methodology and Representations

The researchers utilized Kernel Ridge Regression (KRR) to evaluate a diverse set of molecular representations on the QM9 dataset, which contains approximately 134,000 small organic molecules. The representations were categorized into four groups: fingerprint-based (e.g., ECFP), pretrained transformers (e.g., SELFIESTED), global 3D descriptors (e.g., Coulomb Matrix), and local 3D descriptors (e.g., ACSF, SOAP).

Schematic of global (a) and local (b) molecular embedding models used to generate representations for kernel methods.

To quantify "spectral richness," the authors employed four metrics: polynomial decay rate ($\alpha$), Spectral Shannon Entropy (SSE), Intrinsic Dimension (ID), and Stable Rank (SR). They also introduced "truncated kernels," where the spectral "tail" (smaller eigenvalues) is intentionally removed to isolate the impact of the most prominent features.

The Richness Paradox

The most significant finding of this work is the "Richness Paradox." Contrary to common belief, for transformer-based and local 3D representations, spectral richness exhibited a strong negative correlation with predictive accuracy. In these instances, a more complex feature spectrum often introduced noise rather than useful signal, hindering the model's ability to generalize.

The 2% Rule and Regularization

The study revealed that for many molecular kernels, the top 2% of eigenvalues are sufficient to recover over 95% of the original predictive performance. This suggests that the vast majority of information in the spectral tail is redundant or detrimental. Furthermore, the authors demonstrated that kernel truncation acts as a form of regularization, preventing the model from over-fitting to high-frequency noise present in the lower-ranked eigenvectors.

Learning curves showing Mean Absolute Error (MAE) for heat capacity (CV) across different training set sizes for various molecular representations.

Key Results

  • Negative Correlation: Local 3D representations showed significant negative correlations between metrics like SSE/ID and accuracy.
  • Efficiency: For global 3D representations like SLATM, only 0.1% to 2% of eigenvalues were needed to reach near-peak accuracy.
  • Transformer Performance: Pretrained molecular transformers were successfully integrated with KRR, often outperforming linear baselines despite their unconventional spectral properties.

Conclusion

This research challenges the "richer is better" paradigm in molecular machine learning. By showing that a small fraction of features often drives performance and that excessive richness can be counterproductive, the authors provide a new lens for evaluating and designing molecular representations. Future work will explore whether these findings extend to larger, more complex molecular systems beyond the QM9 dataset.

Summary updated

BibTeX
@misc{jamali2025spectral,
  author = {Asma Jamali and Tin Sum Cheng and Rodrigo A. Vargas-Hernández},
  title = {{Spectral Analysis of Molecular Kernels: When Richer Features Do Not Guarantee Better Generalization}},
  year = {2025},
  eprint = {2510.14217},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.14217},
}
Figure