Abstract
In this work, we propose a novel optimization model termed "sum-of-minimum" optimization. This model seeks to minimize the sum or average of $N$ objective functions over $k$ parameters, where each objective takes the minimum value of a predefined sub-function with respect to the $k$ parameters. This universal framework encompasses numerous clustering applications in machine learning and related fields. We develop efficient algorithms for solving sum-of-minimum optimization problems, inspired by a randomized initialization algorithm for the classic $k$-means (Arthur & Vassilvitskii, 2007) and Lloyd's algorithm (Lloyd, 1982). We establish a new tight bound for the generalized initialization algorithm and prove a gradient-descent-like convergence rate for generalized Lloyd's algorithm. The efficiency of our algorithms is numerically examined on multiple tasks, including generalized principal component analysis, mixed linear regression, and small-scale neural network training. Our approach compares favorably to previous ones based on simpler-but-less-precise optimization reformulations.
Introduction
Standard optimization paradigms typically seek a single set of parameters to fit an entire dataset. However, many real-world datasets are inherently heterogeneous, consisting of multiple underlying groups that each follow a distinct model. For instance, in mixed linear regression, data points may lie along several different lines rather than a single linear path. To address this, we introduce the "sum-of-minimum" (SoM) optimization framework, which generalizes the logic of $k$-means clustering to more complex models like neural networks and subspace clustering.
The mathematical challenge of this framework lies in the objective function:
$$F(\mathbf{x}_1, \dots, \mathbf{x}_k) = \frac{1}{N} \sum_{i=1}^N \min \{f_i(\mathbf{x}_1), \dots, f_i(\mathbf{x}_k)\}$$
Because of the min operator, the objective is both non-convex and non-smooth. Historically, researchers have attempted to bypass these difficulties using "sum-of-product" (SoP) reformulations to smooth the objective. However, these approximations often sacrifice precision, failing to accurately recover the true underlying clusters in complex scenarios.
Proposed Methodology
We propose a two-stage algorithmic pipeline designed to handle the non-smooth nature of the SoM objective directly.
1. Generalized Initialization (Algorithm 1)
Drawing inspiration from the $k$-means++ seeding strategy, we propose a generalized initialization algorithm. Instead of sampling based on simple Euclidean distance, our method samples initial parameters sequentially using the optimality gap—the difference between a function's current value and its theoretical minimum—as a probability score. We also provide a gradient-based variant for applications where the global minimum of sub-functions is not known a priori.
2. Generalized Lloyd’s Algorithm (Algorithm 2)
Once initialized, we refine the parameters using an iterative process that alternates between two steps:
- Reclassification: Each data point is assigned to the parameter $\mathbf{x}_j$ that yields the smallest loss for that specific point.
- Group Gradient Descent: Each parameter $\mathbf{x}_j$ is updated via gradient descent, but only using the subset of data points currently assigned to it.
3. Momentum Lloyd’s (Algorithm 3)
To improve stability, we introduce a momentum-based variant. This version incorporates a "controlled reclassification" scheme, which prevents the unstable, abrupt shifts in cluster assignments that can occur during the training of high-dimensional models.
Theoretical Contributions
A significant portion of this work is dedicated to establishing the theoretical foundations of the SoM framework. We prove that the logic of $k$-means++ seeding is applicable to any smooth, strongly convex function, provided the sampling is based on the optimality gap. We establish a tight error bound of $O(\frac{L^2}{\mu^2} \ln k)$ for our initialization strategy and provide a counter-example demonstrating that this bound is mathematically optimal under the given assumptions.
Experimental Results
We evaluated our algorithms on several synthetic and small-scale tasks to test their precision and robustness compared to traditional smoothing methods.
- Generalized Principal Component Analysis (GPCA): In tasks involving $k=4$ clusters, the SoM approach achieved over 91% accuracy. In contrast, the traditional Sum-of-Product (SoP) approach struggled, yielding accuracies between 57% and 62%.
- Mixed Nonlinear Regression: We tested the framework on small-scale neural networks (2-layer "teacher" networks). Our proposed initialization reached the ground-truth training loss in significantly fewer epochs (181 epochs) compared to random initialization (329 epochs).
- Robustness: Across varying dimensions and cluster counts, the proposed initialization consistently resulted in lower failure rates, defined as the probability of the algorithm converging to a poor local minimum.
Conclusion and Future Work
Our findings suggest that tackling the non-smooth "minimum" in clustering problems directly is far more effective than using smoothing approximations. While our current theoretical proofs rely on the assumption that sub-functions are smooth and strongly convex, empirical results on neural networks suggest the framework's utility extends into non-convex territory. Future research will focus on developing provable guarantees for non-convex sub-functions and scaling the reclassification step to accommodate massive, industrial-scale datasets.
Summary updated