Coordinate Descent (CD) is a fundamental optimization technique for large-scale machine learning, updating one variable at a time to minimize an objective function. The efficiency of CD hinges on the coordinate selection strategy. Randomized CD (RCD) selects coordinates uniformly at random, resulting in a low $O(1)$ per-iteration cost but potentially requiring many iterations to converge. Conversely, Greedy CD (GCD) utilizes the Gauss-Southwell rule to select the coordinate that yields the greatest functional decrease. While GCD converges in fewer iterations, its $O(d)$ per-step cost—where $d$ is the number of dimensions—is often prohibitively expensive for high-dimensional data.
Presented at UAI 2021, this paper introduces hybridCD, a novel algorithm that bridges the gap between these two extremes. By partitioning variables into blocks and performing a restricted greedy search, hybridCD achieves the rapid convergence of greedy methods with the computational efficiency of randomized ones.
The HybridCD Approach
The core innovation of hybridCD is a variable partitioning strategy that leverages the inherent structure of real-world data. The process involves three key steps:
- Partitioning: The $d$ variables are divided into $k$ disjoint blocks, typically using $k$-means clustering on feature vectors.
- Candidate Selection: In each iteration, one coordinate is sampled randomly from each of the $k$ blocks, creating a candidate set of size $k$.
- Greedy Selection: The Gauss-Southwell rule is applied only to this small candidate set. The coordinate with the largest gradient magnitude is updated.
By setting $k \ll d$, the per-iteration cost remains low ($O(k)$), while the diversity of candidates—ensured by the partitioning—allows the algorithm to capture significant progress in each step. The authors also extend this to an Accelerated Hybrid CD (AHCD) version, incorporating Nesterov-style momentum to further boost convergence speed.
Experimental Results
Empirical evaluations on datasets such as Leukemia, rcv1, and ijcnn1 confirm the effectiveness of this approach. The results highlight a critical trade-off: while standard greedy selection is optimal in terms of progress per epoch, it is highly inefficient in terms of wall-clock time due to the exhaustive search required at each step.
As shown in the wall-clock time analysis, hybridCD (with various block counts) significantly outperforms the standard greedy approach. While the greedy method takes much longer to reach low suboptimality, the partitioned approach reaches the same threshold in a fraction of the time.
When viewed by epoch, the benefit of increasing the number of blocks $k$ becomes clear. As $k$ increases, the convergence rate of hybridCD approaches that of the full greedy selection rule, demonstrating that a small, well-chosen set of candidates can be nearly as informative as the entire feature set.
Key Insights and Conclusion
- The Power of Group Structure: Real-world features are rarely independent. Partitioning ensures that the greedy choice is made among representatives of different feature clusters, maximizing the information gain per update.
- Theoretical Safety: The authors prove that hybridCD is theoretically guaranteed to be at least as fast as RCD in the worst case, and can match the superior rate of GCD when the data has a clear group structure.
- Robustness: Interestingly, the specific clustering algorithm used (e.g., k-means vs. spectral clustering) does not drastically change the results; the simple act of partitioning is the primary driver of performance.
HybridCD provides a simple, effective, and theoretically grounded alternative to both standard CD variants and complex approximate greedy methods. By leveraging the inherent structure of data through variable partitioning, it enables faster optimization for high-dimensional machine learning tasks.
Summary updated