arXiv(opens in a new tab)cs.LGOct 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2610.10394

Kernel Autoresearch for Open-Ended Model Discovery

Richard Cornelius Suwandi, Feng Yin, Kevin Murphy

Abstract

Kernels encode the inductive bias of a wide range of machine learning models, yet automated kernel design faces a fundamental dilemma. A fixed grammar of base kernels and operators guarantees validity but limits the search to structures expressible by those building blocks. Conversely, unrestricted programs remove this limitation but no longer guarantee validity. In our stress tests, 22–58% of LLM-generated kernels that pass numerical checks on random inputs fail when evaluated at different scales or dimensions. We propose Kernel Autoresearch (KERNAUT), which treats kernel design as open-ended model discovery. Coding agents write kernels as programs, while construction contracts ensure that every accepted kernel is valid. A quality-diversity archive retains high-performing kernels with distinct behaviors, and novelty screening steers agents toward functionally new candidates. Our experiments demonstrate that the discovered kernels encode reusable inductive biases that generalize to unseen tasks. On held-out black-box optimization families, a discovered kernel outperforms a meta-learned deep kernel trained on the same episodes. Furthermore, kernels discovered from ten enzyme-kinetic rate laws achieve lower error than tuned ARD and deep kernel baselines on five unseen mechanisms. The discovered kernels are also interpretable programs that human researchers can refine: a human-refined version of one further reduces the held-out predictive error by 5.7% and optimization regret by 7.8%.

Keywords kernel learning, program synthesis, coding agents, autoresearch, quality-diversity search

1 Introduction

Kernel choice largely determines the inductive bias of a wide range of machine learning methods, yet most automated kernel design still searches over a narrow space. Most approaches start from base kernels and combine them through a fixed set of operators, whether via greedy selection (Duvenaud et al., 2013), Bayesian optimization (BO; Malkomes et al., 2016), neural composition (Sun et al., 2018), or search guided by large language models (LLMs; Suwandi et al., 2025b). Despite their different search strategies, these approaches share the same tradeoff. Restricting search to a predefined grammar guarantees validity by construction, but limits search to structures expressible through the base kernels and operators. We instead formulate kernel design as open-ended program synthesis, allowing agents to propose kernels beyond this grammar. However, this broader search space introduces a verification challenge because an arbitrary program does not necessarily define a mathematically valid kernel.

An unrestricted program need not define a symmetric, positive semidefinite (PSD) kernel (Rice, 1953), and numerical checks on sampled inputs cannot establish these properties over the entire input domain. We therefore propose Kernel Autoresearch (KERNAUT), in which coding agents write kernel components and a trusted interpreter constructs valid kernels. The interpreter uses PSD-preserving rules that we call construction contracts. The system evaluates the resulting kernels and stores high-performing programs with distinct kernel behavior in a quality-diversity archive. This archive guides later proposals and preserves diverse discoveries for evaluation. Our contributions are as follows.

Preprint. Under review.

• Open-ended kernel discovery with PSD-preserving contracts. Agents propose executable feature maps, spectral representations, input transformations, and kernel compositions beyond a fixed grammar. A trusted interpreter constructs each accepted Gram matrix through one of the PSD-preserving construction contracts ( §3.1–§3.2\S3.1–\S3.2).

• Verified execution with a quality-diversity archive. A deterministic backend executes, verifies, tunes, and scores every proposal. The archive retains programs that combine strong predictive performance with distinct kernel behavior. The system then uses accepted examples and structured rejection reasons to guide subsequent proposals ( §3.3–§3.4\S3.3–\S3.4).

• Reusable inductive biases across unseen tasks. We freeze each discovered program before evaluation and reuse it without structural modification. We evaluate prediction on held-out black-box optimization (BBO) functions, time series, enzyme mechanisms, and glucose patients ( §4\S4).

• Interpretable discoveries across domains. Because the kernel programs are short, we can analyze the structures they encode, such as warps and folds for BBO functions, trend and period banks for time series, rate-law shapes for enzymes, and meal and insulin responses for glucose (Appendix F.2). As a case study, we analyze the dual warp–fold (DWF) kernel and a human-refined variant with lower held-out predictive error ( §4.3.1\S4.3.1).

References (45)