An efficient, provably optimal algorithm for the 0-1 loss linear classification problem
Xi He, Max A. Little
TL;DR
The paper tackles exact training for the 0-1 loss linear classifier, an NP-hard problem, and introduces Incremental Cell Enumeration (ICE) based on hyperplane arrangements and point-hyperplane duality. It proves a 0-1 loss linear classification theorem and extends to polynomial hypersurfaces via Veronese embeddings, achieving worst-case guarantees $O(N^{D+1})$ for linear and $O(N^{G+1})$ for degree-$K$ hypersurfaces. Empirically, ICE attains optimal training accuracy on small to moderate datasets and often improves generalization compared to approximate methods, while substantially outperforming branch-and-bound baselines in timing. The work advances exact, interpretable ML by bridging combinatorial geometry with optimization, and outlines paths to scalable parallel implementations and coreset-based strategies for larger problems.
Abstract
Algorithms for solving the linear classification problem have a long history, dating back at least to 1936 with linear discriminant analysis. For linearly separable data, many algorithms can obtain the exact solution to the corresponding 0-1 loss classification problem efficiently, but for data which is not linearly separable, it has been shown that this problem, in full generality, is NP-hard. Alternative approaches all involve approximations of some kind, such as the use of surrogates for the 0-1 loss (for example, the hinge or logistic loss), none of which can be guaranteed to solve the problem exactly. Finding an efficient, rigorously proven algorithm for obtaining an exact (i.e., globally optimal) solution to the 0-1 loss linear classification problem remains an open problem. By analyzing the combinatorial and incidence relations between hyperplanes and data points, we derive a rigorous construction algorithm, incremental cell enumeration (ICE), that can solve the 0-1 loss classification problem exactly in $O(N^{D+1})$. To the best of our knowledge, this is the first standalone algorithm-one that does not rely on general-purpose solvers-with rigorously proven guarantees for this problem. Moreover, we further generalize ICE to address the polynomial hypersurface classification problem in $O(N^{G+1})$ time, where $G$ is determined by both the data dimension and the polynomial hypersurface degree. The correctness of our algorithm is proved by the use of tools from the theory of hyperplane arrangements and oriented matroids. We demonstrate the effectiveness of our algorithm on real-world datasets, achieving optimal training accuracy for small-scale datasets and higher test accuracy on most datasets. Furthermore, our complexity analysis shows that the ICE algorithm offers superior computational efficiency compared with state-of-the-art branch-and-bound algorithm.
