Informed Machine Learning: Excess Risk and Generalization

Luca Oneto, Davide Anguita, Sandro Ridella

Introduction

Standard Machine Learning (ML) is fundamentally "data-hungry" and often functions as a black box. While these models excel at interpolation—making predictions within the range of observed data—they frequently fail at extrapolation. Furthermore, achieving strong generalization typically requires massive amounts of high-quality data. Informed Machine Learning (IML) addresses these limitations by integrating prior knowledge, such as physical laws or logical constraints, directly into the model's learning process. This paper provides a theoretical framework to quantify when and why adding prior knowledge improves performance through the lens of Statistical Learning Theory.

Theoretical Framework: The Informed Error

The authors analyze IML by extending the traditional approximation-estimation-optimization error decomposition. They introduce a new term, $E_{inf}$ (Informed Error), which represents the impact of prior knowledge ($\iota$) on the model's hypothesis space.

In this framework, IML is viewed as a process that constrains the original hypothesis space $\mathcal{H}$ into a smaller, more specific subspace $\mathcal{H}_\iota$. The learning objective balances empirical risk, standard regularization, and IML regularization (penalizing deviations from prior knowledge).

Table 1: Impact of model parameters and prior knowledge on error components.

As shown in the table above, increasing prior knowledge ($\iota$) typically decreases the informed error ($E_{inf}$) and estimation error ($\hat{E}_{est}$) by shrinking the search space. However, this may come at the cost of increased approximation error ($E_{app}$) if the knowledge is slightly inaccurate, and potentially higher optimization time ($T$).

Experimental Evaluation

The framework was tested on two synthetic benchmarks designed to isolate specific learning challenges:

  1. Interpolation Benchmark (Ex1): A complex piecewise linear function where prior knowledge consists of known derivatives of the function segments.
  2. Extrapolation Benchmark (Ex2): A damped harmonic oscillator. This classic physics problem requires the model to be trained on a small temporal window and predict future states. The prior knowledge is the underlying differential equation.

Key Results and Insights

The Shrinking Space and Complexity Control

The primary benefit of IML is the reduction of estimation error. By restricting the model to "physically plausible" or "logically sound" functions, fewer data points are required to find the correct solution. The authors use Rademacher Complexity (RC) and Algorithmic Stability (AS) to demonstrate that prior knowledge acts as a powerful complexity-control mechanism, providing theoretical guarantees for superior generalization.

The Extrapolation Edge

A standout result is the "extreme improvement" in extrapolation tasks. While standard ML models diverge almost immediately once they move beyond the training data range, IML models leverage prior knowledge as a "map" for unobserved regions.

Figure 1: Comparison of ML and IML performance on the damped harmonic oscillator extrapolation task.

As illustrated in the damped harmonic oscillator example, the IML model accurately follows the ground truth physics even after the data ends, whereas the vanilla ML model fails to generalize and quickly diverges.

Discussion and Limitations

While IML offers significant advantages, there are inherent trade-offs. If the prior knowledge is incorrect, it can lead to "negative transfer," increasing the approximation error. Furthermore, the added constraints can make the loss landscape more complex, increasing the computational cost of optimization. While this study focuses on "shallow" IML (linear models, kernels), the core principles provide a foundation for understanding informed deep learning, where theoretical bounds remain an active area of research.

Summary updated

BibTeX
@inproceedings{oneto2024informed,
  author = {Luca Oneto and Davide Anguita and Sandro Ridella},
  title = {{Informed Machine Learning: Excess Risk and Generalization}},
  booktitle = {ESANN},
  year = {2024},
  doi = {10.14428/esann/2024.es2024-20},
}
Figure