Symmetry-Aware Bayesian Optimization via Max Kernels

Anthony Bardou, Antoine Gonon, Aryan Ahadinia, Patrick Thiran

Introduction

Bayesian Optimization (BO) is a powerful framework for optimizing "black-box" functions where each evaluation is expensive or noisy. It works by building a probabilistic surrogate model—usually a Gaussian Process (GP)—to predict where the global optimum might be. However, BO often struggles with high-dimensional problems.

Fortunately, many real-world objectives contain hidden invariances or symmetries (e.g., rotating a molecule doesn't change its energy, or permuting network parameters yields the same performance). If an optimizer is unaware of these symmetries, it wastes valuable evaluations exploring "new" points that are functionally identical to points it has already seen.

Existing "symmetry-aware" kernels typically use orbit averaging, which averages the similarity over all possible transformations. Unfortunately, this often "blurs" the similarity signal, making the optimizer less certain. The ideal solution is a Max Kernel, which looks for the single best alignment between two points across their symmetry orbits. The catch is that max kernels are not guaranteed to be positive semi-definite (PSD), a strict mathematical requirement for the Gaussian Processes used in BO. This paper introduces a novel method to project the Max Kernel into a valid PSD form, providing a sharper, more effective signal for optimization.

Methodology: The Projected Max Kernel

The authors propose a practical way to use the Max Kernel in BO by projecting it onto the "PSD cone."

  1. Define the Max Kernel ($k_{max}$): Instead of averaging, similarity is defined as the maximum similarity between any two points in their respective orbits: $$k_{max}(x, x') = \max_{g,g' \in \mathcal{G}} k_b(gx, g'x')$$
  2. PSD Projection: On a finite set of explored points, the algorithm calculates the Gram matrix (the matrix of all pairwise similarities). It then performs an eigendecomposition and "clips" any negative eigenvalues to zero, ensuring the matrix is strictly PSD.
  3. Nyström Extension: To evaluate the kernel at new, unexplored points, the authors use the Nyström method to extend this finite matrix into a continuous, valid GP kernel ($k_+^{(D)}$).
  4. Efficiency: Crucially, this approach has the same asymptotic computational cost as standard orbit-averaged kernels, making it a "drop-in" improvement for symmetric problems.
Comparison of rotation-invariant kernels. The Max Kernel (right) captures the true radial symmetry of the function (left) much more sharply than the averaged kernel (center).

Key Insights

  • Best-Alignment vs. Average-Alignment: Averaging similarity over an entire group (like all possible rotations) dilutes the signal because most alignments are poor. The "Max" approach retains the one alignment that actually matters, leading to more faithful uncertainty modeling.
  • The Spectral Paradox: Standard BO theory suggests that kernels with "fast eigendecay" (where eigenvalues drop off quickly) lead to better performance. Surprisingly, the authors found that their Max Kernel often has slower eigendecay than averaged kernels, yet it consistently achieves lower regret. This suggests that geometric alignment with the problem structure is more important than pure spectral rates.
  • Robustness to Group Size: As the number of symmetries increases (larger group size $|\mathcal{G}|$), the performance gap between the Max Kernel and the averaged kernel widens. The Max Kernel remains stable, while the averaged kernel's performance degrades.

Experiments and Results

The researchers evaluated their method on a mix of synthetic and high-stakes real-world benchmarks, including modified Ackley, Griewank, and Rastrigin functions, a wireless network design task (WLAN8d), and a particle packing problem (PartPack6d).

One-dimensional Ackley function optimization. The Max Kernel (orange) better reflects the underlying symmetry geometry and fits the objective more accurately than the averaged kernel (green).

Across all benchmarks, the projected Max Kernel ($k_+^{(D)}$) achieved significantly lower cumulative and simple regret. In some synthetic cases, it improved performance by up to 50% compared to orbit-averaged kernels. In real-world tasks, the Max Kernel consistently discovered parameter combinations with higher utility than both the non-invariant base kernel and the orbit-averaged alternative. By correctly identifying symmetry-equivalent regions, the optimizer avoids redundant exploration, focusing its budget on truly unique areas of the search space.

Limitations and Future Work

While highly effective, the practical kernel depends on the set of points $\mathcal{D}$ used for the Nyström extension, meaning performance might vary based on the initial design. Additionally, while the method works for continuous groups (like rotations), it requires closed-form expressions or efficient sampling to compute the "max" over the orbit, which may not be available for all complex symmetry groups. Finally, the mismatch between spectral theory predictions and empirical results highlights a need for new theoretical frameworks in BO that account for "approximation hardness" rather than just eigendecay.

Summary updated

BibTeX
@inproceedings{bardou2026symmetry,
  author = {Anthony Bardou and Antoine Gonon and Aryan Ahadinia and Patrick Thiran},
  title = {{Symmetry-Aware Bayesian Optimization via Max Kernels}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=zUbBaWAM1Q},
}
Figure