Enhancing Kernel Flexibility via Learning Asymmetric Locally-Adaptive Kernels

Fan He, Mingzhen He, Lei Shi, Xiaolin Huang, Johan A. K. Suykens

TL;DR

This paper introduces Locally-Adaptive-Bandwidth (LAB) RBF kernels, transforming kernel methods from fixed, manually designed models into flexible, trainable ones. By developing a novel asymmetric Kernel Ridge Regression (KRR) framework, the authors allow kernels to adapt to varying data patterns, enabling them to outperform traditional kernel methods and even deep residual networks on several regression benchmarks.

What Problem Does This Paper Address?

Kernel methods like Support Vector Machines (SVM) and Kernel Ridge Regression (KRR) are staples of machine learning due to their strong theoretical foundations and interpretability. However, they suffer from a "flexibility bottleneck." Most rely on predefined kernels—like the Radial Basis Function (RBF)—that use a single, global bandwidth ($\sigma$) for the entire dataset.

This "one-size-fits-all" approach fails when the underlying data pattern changes across the domain. For instance, a function might oscillate rapidly in one region (requiring a small bandwidth) but remain smooth in another (requiring a large one). As shown in Figure 1, a global bandwidth forces a compromise: you either miss high-frequency details or introduce noisy oscillations in smooth areas.

Figure 1: A toy example demonstrating the regression of a one-dimensional signal y = sin(2x3). (a) Ground truth. (b) Function obtained with a universal kernel bandwidth, showing a lack of accuracy in high-frequency regions. (c) Function obtained with a increased bandwidth, resulting in unnecessary sharp changes in low-frequency areas. (d) In our proposed LAB RBF kernels, data-dependent bandwidths are trained, effectively adapting to the underlying function: larger bandwidths correspond to the left part, and smaller bandwidths correspond to the right part.

Methods

The authors propose two major innovations to break this bottleneck:

  1. The LAB RBF Kernel: They redefine the RBF kernel so that every support point $x_i$ has its own learnable bandwidth vector $\theta_i$. The kernel is defined as: $$K(t, x_i) = \exp(-\|\theta_i \odot (t - x_i)\|_2^2)$$ Because $\theta_i$ is specific to $x_i$, the kernel becomes asymmetric ($K(x_i, x_j) \neq K(x_j, x_i)$), which is a significant departure from standard symmetric kernels.

  2. Asymmetric Kernel Ridge Regression Framework: Standard KRR math assumes symmetry. The authors derive a new theoretical framework for asymmetric KRR, proving that stationary points can still be expressed as linear combinations of training data evaluations.

  3. Iterative Learning Algorithm (Alg 1): To train these kernels, they use a two-step iterative process:
  4. Step A: Fix the bandwidths ($\Theta$) and solve for the regression coefficients using a small subset of "support data."
    • Step B: Fix the coefficients and use Stochastic Gradient Descent (SGD) to optimize the bandwidths $\Theta$ based on the remaining "training data."
    • Dynamic Strategy: They iteratively add the samples with the highest prediction error to the support set, ensuring the model focuses its "flexibility" where it's needed most.

Datasets

The researchers evaluated their method on a diverse range of real-world regression tasks:

  • Small-scale: Tecator (meat fat content), Yacht (hydrodynamics), Airfoil (self-noise), SML (domotic house monitoring), Parkinson (telemonitoring), and Comp-active (computer performance).
  • Large-scale: Electrical (grid stability), KC House (house prices), and TomsHardware (social media buzz).
  • Synthetic: Three complex non-linear functions used to test specific frequency adaptations.

Key Insights and Ideas

  • Asymmetry as a Strength: While asymmetry is usually avoided in kernel design for mathematical simplicity, this paper shows it is the essential mechanism for local adaptation. It allows the "influence" of a point to be different depending on whether it is the center or the target.
  • Kernel Over-parameterization: By making bandwidths trainable, the number of free parameters grows with the dataset size. This brings kernel methods closer to the "over-parameterized" regime of deep learning, which is known to improve generalization.
  • Efficiency through Flexibility: Because the LAB kernel is so much more expressive, the model requires significantly fewer support vectors to achieve high accuracy compared to Nyström-based methods like Falkon.

Key Results

The LAB RBF method consistently outperformed baseline RBF KRR, Multiple Kernel Learning (MKL), and the state-of-the-art Falkon algorithm.

  • Accuracy: On the TomsHardware dataset, LAB RBF achieved an $R^2$ of 0.9809, significantly higher than Falkon (0.9001) and even surpassing ResNet (0.9697).
  • Model Sparsity: On the Parkinson dataset, LAB RBF achieved superior accuracy (0.9950 $R^2$) using only 110 support vectors, whereas Falkon required 4,000 to reach a lower $R^2$ of 0.9492.
  • Generalization: The training of bandwidths on separate training data (similar to cross-validation) effectively prevented overfitting, even as the model's flexibility increased.

Limitations and Future Work

  • Regression Focus: The current work is strictly focused on regression. Extending this asymmetric framework to classification (e.g., Asymmetric SVM) remains an open challenge.
  • Hyperparameter Tuning: While the model is robust to the initial bandwidth, it introduces new hyperparameters like the learning rate for $\Theta$ and the number of points to add in the dynamic strategy.
  • Theoretical Convergence: While the iterative algorithm works well in practice, a formal proof of convergence for the joint optimization of coefficients and asymmetric bandwidths is not yet established.

Summary updated

BibTeX
@misc{he2023enhancing,
  author = {Fan He and Mingzhen He and Lei Shi and Xiaolin Huang and Johan A. K. Suykens},
  title = {{Enhancing Kernel Flexibility via Learning Asymmetric Locally-Adaptive Kernels}},
  year = {2023},
  eprint = {2310.05236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.05236},
}
Figure