Algorithms for Learning Kernels Based on Centered Alignment

Corinna Cortes, Mehryar Mohri, Afshin Rostamizadeh

Introduction

In kernel-based machine learning, the choice of the kernel function defines the feature space and is critical to model performance. While Support Vector Machines (SVMs) are powerful, they rely heavily on a well-chosen kernel. Historically, researchers have often resorted to hand-picking kernels or using a "uniform combination" (averaging several base kernels). Surprisingly, this simple average has proven difficult to outperform consistently.

Previous attempts to automate kernel selection via "kernel alignment" often fell short. This paper identifies a critical flaw in prior methods: the use of uncentered alignment. Uncentered alignment often fails to correlate with actual model performance, particularly when datasets are unbalanced. This work introduces a centered version of alignment that serves as a theoretically grounded and empirically reliable proxy for a kernel's predictive power.

The Centered Alignment Framework

The primary innovation is the application of centering in the feature space. By subtracting the mean in the feature mapping, the alignment measure becomes robust to the specific distribution of data labels.

Comparison of centered alignment vs. uncentered alignment on a toy distribution.

As illustrated in the figure above, uncentered alignment (Cristianini et al.) is highly sensitive to the class distribution parameter $\alpha$. In contrast, centered alignment (this paper) remains stable at 1.0, providing a consistent measure of the kernel's quality regardless of class imbalance. This centering is essential for ensuring that the optimization objective aligns with the goal of maximizing generalization accuracy.

Algorithmic Approaches

The authors propose three main algorithms for learning the kernel:

  1. align (Independent Weighting): A computationally efficient heuristic where weights for each base kernel are determined independently based on their individual alignment with target labels.
  2. alignf (Joint Maximization): A more sophisticated method that determines weights jointly by maximizing the alignment of a convex combination of kernels. The authors demonstrate that this optimization can be reduced to a simple, efficient Quadratic Program (QP).
  3. Single-Stage Algorithm: An integrated approach that learns kernel weights and the model hypothesis simultaneously.

These algorithms are supported by rigorous theoretical analysis, including new concentration bounds and stability-based generalization guarantees, proving that high alignment on a sample translates to high true alignment.

Experimental Evaluation

The framework was tested on a variety of tasks, including standard regression and classification benchmarks (Kinematics, Ionosphere, German, Spambase, Splice) and high-dimensional sentiment analysis.

Correlation between centered alignment and model accuracy on the Kinematics dataset.

The empirical results validate the core hypothesis: there is a strong, positive correlation between the centered alignment achieved during training and the final accuracy of the model. On the Kinematics dataset, the alignf algorithm significantly outperformed the uniform combination baseline, reducing the Root Mean Squared Error (RMSE) from 0.138 to 0.115. Similarly, on the Splice classification task, the error rate was reduced from 15.2% to 13.9%.

Key Insights

  • Centering is Essential: Centering makes the similarity measure robust to data distribution, fixing the negative correlation issues observed with uncentered alignment.
  • Surpassing the Uniform Baseline: By using centered alignment as the optimization target, the authors consistently outperform the "uniform combination" baseline that had previously been a significant hurdle in the field.
  • Efficiency: Reducing the joint alignment problem to a QP ensures that learning the kernel is computationally feasible, with costs comparable to standard SVM training.

Conclusion

This work provides a robust theoretical and algorithmic foundation for learning kernels. By centering the alignment measure, the authors have created a reliable objective function that correlates strongly with model performance. Future work may explore non-linear kernel combinations and the application of these principles to dimensionality reduction and infinite kernel families.

Summary updated

BibTeX
@misc{cortes2012algorithms,
  author = {Corinna Cortes and Mehryar Mohri and Afshin Rostamizadeh},
  title = {{Algorithms for Learning Kernels Based on Centered Alignment}},
  year = {2012},
  eprint = {1203.0550},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1203.0550},
}
Figure