Abstract
Choosing the most adequate kernel is crucial in many Machine Learning applications. Gaussian Process is a state-of-the-art technique for regression and classification that heavily relies on a kernel function. However, in the Gaussian Process literature, kernels have usually been either ad hoc designed, selected from a predefined set, or searched for in a space of compositions of kernels which have been defined a priori. In this paper, we propose a Genetic-Programming algorithm that represents a kernel function as a tree of elementary mathematical expressions. By means of this representation, a wider set of kernels can be modeled, where potentially better solutions can be found, although new challenges also arise. The proposed algorithm is able to overcome these difficulties and find kernels that accurately model the characteristics of the data. This method has been tested in several real-world time-series extrapolation problems, improving the state-of-the-art results while reducing the complexity of the kernels.
Introduction
Gaussian Processes (GPs) are a cornerstone of modern machine learning for regression and classification, primarily because they provide both point predictions and a principled measure of uncertainty. The effectiveness of a GP, however, is fundamentally dependent on its kernel function—the mathematical expression that defines the similarity between data points.
Traditionally, researchers have relied on a small set of standard kernels, such as the Squared Exponential or Matern functions, or have manually combined them to suit specific problems. While compositional search algorithms like the "Automatic Statistician" (ABCD) have automated this process, they often produce overly complex "Frankenstein" kernels with dozens of hyperparameters, leading to overfitting and poor extrapolation performance.
This paper introduces EvoCov, a Genetic Programming framework that shifts the paradigm from combining pre-defined "molecules" (standard kernels) to evolving kernels from fundamental mathematical "atoms."
Methodology: The EvoCov Framework
EvoCov represents kernel functions as trees of elementary mathematical expressions. This approach allows the algorithm to explore a much larger and more flexible functional space than traditional compositional methods.
The Grammar of Kernels
At the heart of EvoCov is a strongly-typed grammar that defines how kernels can be constructed. This grammar includes nestable operations like addition and exponentiation, as well as non-nestable spectral transformations designed to capture periodicity.
Overcoming the PSD Hurdle
A valid GP kernel must be Positive Semi-Definite (PSD). Since random mathematical expressions rarely satisfy this property, EvoCov employs a "Fast PSD check." This mechanism evaluates candidate kernels on small random datasets and immediately discards those that produce non-symmetric matrices or negative eigenvalues, significantly accelerating the search process.
Fitness and Optimization
To ensure the evolved kernels are both accurate and simple, EvoCov uses the Bayesian Information Criterion (BIC) as its fitness function. BIC rewards a high log-marginal likelihood but applies a penalty for every additional hyperparameter. Furthermore, the algorithm uses "hyperparameter inheritance," allowing mutated kernels to start local optimization (via Powell’s method) from the optimized parameters of their parents.
Experimental Evaluation
The researchers tested EvoCov on two primary benchmarks:
- 13 Real-World Time-Series: A diverse set including airline passenger counts, solar activity, and Mauna Loa $CO_2$ levels, focusing on extrapolation accuracy.
- Twitter Hashtag Prediction: Predicting the hourly frequency of hashtags like
#goodmorningand#fail, comparing EvoCov against specialized human-designed kernels.
Results and Discussion
EvoCov consistently outperformed state-of-the-art methods like GPSS and ABCD in extrapolation tasks. Across the 13 time-series benchmarks, it achieved the lowest average standardized Root Mean Squared Error (RMSE).
One of the most significant findings was the efficiency of the evolved models. EvoCov kernels required an average of only 8.1 hyperparameters, nearly half the number required by ABCD (16.3) and significantly fewer than GPSS (13.5). By using BIC, the framework successfully avoided the "bloat" common in genetic programming, resulting in kernels that were more interpretable and robust against overfitting.
In the Twitter hashtag experiments, EvoCov matched the performance of expert-designed kernels without any prior knowledge of the data's periodic nature. It successfully "discovered" the daily cycles of social media usage from scratch, demonstrating its power as an agnostic discovery tool.
Conclusion
By breaking kernels down into their most basic mathematical components, EvoCov provides a flexible and powerful alternative to traditional kernel selection. It produces models that are not only more accurate for extrapolation but also significantly simpler and more efficient. Future research will focus on expanding the grammar to include non-stationary components, such as change-point operators, to better model abrupt shifts in data trends.
Summary updated