Abstract
The sample efficiency of Bayesian optimization (BO) is often boosted by Gaussian Process (GP) surrogate models. However, on mixed variable spaces, surrogate models other than GPs are prevalent, mainly due to the difficulty of designing valid kernels that capture the complex interactions between continuous and discrete variables. This paper introduces Frequency Modulated (FM) kernels, a novel approach to bridge this gap by using continuous distances to modulate the graph Fourier spectrum of discrete variables.
Introduction
Bayesian Optimization (BO) is the "gold standard" for optimizing expensive black-box functions, such as tuning hyperparameters for deep neural networks. While BO excels in purely continuous spaces, real-world tasks often involve "mixed" variables—combining continuous parameters (e.g., learning rates) with categorical ones (e.g., activation functions).
Standard Gaussian Processes rely on kernels to measure similarity. For mixed variables, the common approach is to simply add or multiply kernels ($k_{cont} + k_{disc}$ or $k_{cont} \times k_{disc}$). This "naive" approach assumes variables are independent or interact simply, whereas in reality, the effect of a continuous variable often changes drastically depending on the discrete category chosen. The challenge lies in creating a mathematically sound kernel that allows these disparate variable types to interact effectively.
Methods: Frequency Modulated Kernels
The authors introduce the Frequency Modulated (FM) kernel to capture these complex dependencies. Unlike additive models, the FM kernel allows continuous variables to change the "smoothness" or "scale" of the discrete kernel.
Key components of the FM framework include:
- Graph Representation: Discrete variables are treated as vertices on a graph, with similarity defined via the graph Laplacian's eigendecomposition (the "Fourier spectrum").
- Frequency Modulation: The distance between continuous variables modulates the frequencies of the discrete graph spectrum.
- Theoretical Rigor: The paper provides formal proof for the "frequency modulation principle," establishing that the modulating function must be non-negative, strictly decreasing, and convex to ensure the resulting kernel is positive definite and maintains similarity measure behavior. The authors implement this as
MODLAP.
Experimental Results
The approach was evaluated across synthetic benchmarks, machine learning hyperparameter optimization (HPO), and Neural Architecture Search (NAS).
Machine Learning HPO
In tuning NuSVR and XGBoost, MODLAP consistently achieved lower error rates than standard baselines like SMAC, TPE, and CoCaBO. This highlights the benefit of modeling the interaction between categorical choices (like booster type) and continuous ones (like learning rate).
Efficiency in NAS
In joint NAS and HPO tasks on FashionMNIST, BO with FM kernels (BO-FM) demonstrated a significant efficiency advantage. BO-FM with 200 evaluations outperformed both Regularized Evolution (RE) and BOHB even when those methods were given a 3x larger budget (600 evaluations).
Conclusion and Future Work
Frequency Modulated kernels provide a theoretically grounded and sample-efficient way to handle mixed-variable optimization. While the current method faces computational bottlenecks in extremely large discrete spaces due to the $O(N^3)$ cost of eigendecomposition, it opens doors for extending modulation frameworks to other structured domains like manifolds or strings. Future work may also explore automatically learning the underlying graph structure during the optimization process.
Summary updated