Exact Instance Compression for Convex Empirical Risk Minimization via Color Refinement
Abstract
Empirical risk minimization (ERM) can be computationally expensive, with standard solvers scaling poorly even in the convex setting. We propose a novel lossless compression framework for convex ERM based on color refinement, extending prior work from linear programs and convex quadratic programs to general differentiable convex optimization problems. Constructing such a coloring is objective-specific, and we do not claim an automatic procedure for arbitrary convex ERM. We develop concrete, constructive algorithms realizing this framework for a range of models, including linear and polynomial regression, binary and multiclass logistic regression, regression with elastic-net regularization, and kernel methods such as kernel ridge regression and kernel logistic regression. Numerical experiments on representative datasets demonstrate the effectiveness of the proposed approach.