Feature subset selection for the multinomial logit model via mixed-integer optimization

Shunsuke Kamiya, Ryuhei Miyashiro, Yuichi TakanoAISTATS 2019

Introduction

Feature selection is a critical task in machine learning, aimed at identifying the most relevant variables to improve model interpretability and prevent overfitting. While robust tools exist for linear regression, feature selection for the Multinomial Logit (MNL) model—the standard for multi-class classification—remains a significant challenge. As an NP-hard combinatorial problem, researchers typically rely on $L_1$-regularization (Lasso) as a proxy. However, Lasso often fails to enforce strict sparsity and can compromise accuracy. This paper presents the first exact algorithm for feature subset selection in MNL models using mixed-integer optimization (MIO), offering a more precise alternative to traditional heuristic methods.

Methodology

The proposed approach leverages Mixed-Integer Optimization (MIO) to formulate the feature selection problem. By introducing binary variables that act as "on/off" switches for features across all classes, the authors can strictly control the number of active features ($L_0$ norm).

The computational complexity is managed through two primary innovations:

  1. Outer Approximation (OA): The algorithm decomposes the non-linear MNL objective into a sequence of simpler mixed-integer linear subproblems, iteratively building a lower bound using first-order Taylor expansions.
  2. Quadratic Loss Function Approximation: To further reduce the cost of solving non-linear subproblems, the authors introduce a novel quadratic approximation of the loss function. By fitting a quadratic curve to the Fenchel conjugate of the loss, they transform difficult non-linear subproblems into efficient convex quadratic problems.
Quadratic approximation of the MNL loss function $f(\eta)$ compared to piecewise linear and standard quadratic fits.

This approximation effectively bridges the gap between simple Taylor expansions (accurate only near zero) and piecewise linear functions (accurate at extremes), providing a high-quality, computationally "cheap" surrogate.

Experimental Results

The researchers evaluated the MIO-based approach against synthetic data and seven real-world datasets from the UCI Machine Learning Repository, including Iris, Image Segmentation, and Cardiotocography.

Performance and Sparsity

The MIO methods consistently demonstrated superior generalization compared to standard $L_1$-regularization (using the GLMNet package). On datasets like "Vehicle Silhouettes" and "Flags," MIO achieved higher Correct Classification Rates (CCR). Notably, the MIO approach often matched or exceeded Lasso's performance while utilizing significantly fewer features. For instance, in the "Image Segmentation" dataset, the model achieved peak performance with just 3 features.

Computational Efficiency

The proposed quadratic approximation ($OA_{quad}$) provided a substantial speedup over the exact MNL outer approximation ($OA_{MNL}$).

Comparison of CPU time across different regularization strengths ($\gamma$) for various optimization methods.

As shown in the experimental results, $OA_{quad}$ is approximately 10 times faster than the exact method while maintaining nearly identical solution quality. This efficiency makes exact-style feature selection viable for larger-scale problems that were previously computationally prohibitive.

Conclusion

This work demonstrates that exact feature selection via MIO is not only possible for multi-class MNL models but also computationally practical when combined with clever loss function approximations. By prioritizing the $L_0$ norm over $L_1$ shrinkage, the method yields sparser, more interpretable models with better generalization properties. While MIO remains more demanding than convex optimization for very large datasets, this framework sets a new benchmark for feature selection in discrete choice modeling. Future research may focus on specialized branching rules to further enhance scalability.

Summary updated

BibTeX
@inproceedings{kamiya2019feature,
  author = {Shunsuke Kamiya and Ryuhei Miyashiro and Yuichi Takano},
  title = {{Feature subset selection for the multinomial logit model via mixed-integer optimization}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure