Feature Selection and Kernel Design via Linear Programming

Glenn Fung, Rómer Rosales, R. Bharat RaoIJCAI 2007

Abstract

This paper introduces a computationally efficient approach to learning similarity functions (kernels) from relative comparisons (e.g., "A is more like B than C"). By utilizing the Diagonal Dominance Theorem, the authors transform the traditionally complex Semidefinite Programming (SDP) problem into a faster Linear Programming (LP) task. The proposed method incorporates "weak kernels"—functions operating on single data dimensions—to perform simultaneous feature selection. Experimental results across nine UCI datasets demonstrate that this LP-based approach achieves superior accuracy compared to existing metric learning methods while significantly reducing feature dimensionality.

Introduction

In machine learning, the effectiveness of a model often hinges on the choice of a kernel or similarity function. Traditionally, these functions are selected manually or through exhaustive search. Existing automated kernel learning methods frequently rely on Semidefinite Programming (SDP), which suffers from poor scalability on large datasets. Furthermore, many real-world datasets contain "feature noise"—irrelevant dimensions that can degrade model performance.

This research addresses these challenges by proposing a method that is user-friendly (learning from intuitive relative comparisons), efficient (utilizing LP instead of SDP), and succinct (automatically identifying relevant features).

Methodology

The core of the proposed approach is learning a kernel $K$ as a linear combination of base kernels.

The LP Formulation and Diagonal Dominance

To ensure a kernel is mathematically valid, it must be Positive Semidefinite (PSD). While SDP is the standard tool for enforcing PSD constraints, it is computationally intensive. The authors bypass this by enforcing Diagonal Dominance. A symmetric matrix is PSD if its diagonal elements are greater than or equal to the sum of the absolute values of the other elements in the same row. This condition can be expressed as a set of linear inequalities, allowing the optimization to be solved via fast Linear Programming.

Weak Kernels and Feature Selection

To integrate feature selection, the authors define "weak kernels" that operate on only a single dimension of the data. By setting up an objective function that minimizes both the violation of relative similarity constraints and a regularization term (penalizing the weights of these weak kernels), the model naturally identifies and utilizes only the most informative features.

Experimental Evaluation

The method was evaluated on nine datasets from the UCI Machine Learning Repository, including Housing-Boston, Ionosphere, Iris, and Wine. Class labels were used to generate "triples" (relative comparisons) for training and testing to simulate user supervision.

Key Results

The "Weak Kernel" mixture consistently outperformed standard single kernels (such as Gaussian or Polynomial) across the tested datasets.

Comparison with State-of-the-Art: The LP-based method was compared against the metric learning approach by Xing et al. (2002). As shown in the figure below, the proposed method achieved higher accuracy in respecting distance relationships in 8 out of 9 datasets.

Comparison of the proposed LP-based method against the state-of-the-art metric learning approach by Xing et al.

Dimensionality Reduction: A significant advantage of the weak kernel approach is its ability to perform implicit feature selection. The algorithm successfully ignored irrelevant features across all datasets. For instance, in the "Soybean Small" dataset (Index 7), the dimensionality was reduced from 35 to approximately 5 while maintaining high performance.

Comparison of original feature dimensions versus the number of dimensions selected by the weak kernel algorithm across nine datasets.

Conclusion and Future Work

The use of diagonal dominance as a proxy for PSD constraints provides a significant computational shortcut. While this restricts the search space to a subset of all possible PSD matrices, the practical performance gains and the speed of Linear Programming make it a compelling alternative to SDP. Future research may explore applying this LP-based approximation to other optimization problems in machine learning that currently rely on more expensive semidefinite solvers.

Summary updated

BibTeX
@inproceedings{fung2007feature,
  author = {Glenn Fung and Rómer Rosales and R. Bharat Rao},
  title = {{Feature Selection and Kernel Design via Linear Programming}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2007},
}
Figure