English

Exact Reformulation and Optimization for Direct Metric Optimization in Binary Imbalanced Classification

Machine Learning 2025-07-22 v1 Machine Learning

Abstract

For classification with imbalanced class frequencies, i.e., imbalanced classification (IC), standard accuracy is known to be misleading as a performance measure. While most existing methods for IC resort to optimizing balanced accuracy (i.e., the average of class-wise recalls), they fall short in scenarios where the significance of classes varies or certain metrics should reach prescribed levels. In this paper, we study two key classification metrics, precision and recall, under three practical binary IC settings: fix precision optimize recall (FPOR), fix recall optimize precision (FROP), and optimize FβF_\beta-score (OFBS). Unlike existing methods that rely on smooth approximations to deal with the indicator function involved, \textit{we introduce, for the first time, exact constrained reformulations for these direct metric optimization (DMO) problems}, which can be effectively solved by exact penalty methods. Experiment results on multiple benchmark datasets demonstrate the practical superiority of our approach over the state-of-the-art methods for the three DMO problems. We also expect our exact reformulation and optimization (ERO) framework to be applicable to a wide range of DMO problems for binary IC and beyond. Our code is available at https://github.com/sun-umn/DMO.

Keywords

Cite

@article{arxiv.2507.15240,
  title  = {Exact Reformulation and Optimization for Direct Metric Optimization in Binary Imbalanced Classification},
  author = {Le Peng and Yash Travadi and Chuan He and Ying Cui and Ju Sun},
  journal= {arXiv preprint arXiv:2507.15240},
  year   = {2025}
}
R2 v1 2026-07-01T04:10:30.756Z