A Projection Method for Metric-Constrained Optimization

Nate Veldt, David Gleich, Anthony Wirth, James SaundersonarXiv 2018

TL;DR

This paper introduces a scalable projection-based framework for solving optimization problems constrained by triangle inequalities, which are essential for high-quality graph clustering but notoriously difficult to scale. By adapting Dykstra’s projection method and employing clever sparse storage, the authors successfully solved problems with over 700 billion constraints—orders of magnitude beyond the capabilities of traditional black-box solvers.

What Problem Does This Paper Address?

Many important tasks in machine learning, such as correlation clustering and finding the "sparsest cut" in a graph, can be formulated as Linear Programs (LPs). To ensure the output makes sense as a set of distances, these LPs must enforce metric constraints—specifically, the triangle inequality ($x_{ij} \leq x_{ik} + x_{jk}$).

The challenge is purely a matter of scale. For a dataset with $n$ items, there are $O(n^2)$ distance variables but a staggering $O(n^3)$ triangle inequality constraints. For a graph with just 1,000 nodes, you face a billion constraints. Traditional "black-box" solvers (like Gurobi or CPLEX) typically try to represent these constraints in a massive matrix, leading to immediate memory exhaustion even on high-end hardware. Consequently, these theoretically elegant clustering methods were previously restricted to tiny graphs of a few hundred nodes.

Methods

The authors move away from standard interior-point or simplex methods, instead proposing a specialized iterative framework:

  1. Equivalence Proof: They first prove that the LP relaxation for correlation clustering is mathematically equivalent to a specific version of the "metric nearness" problem.
  2. Quadratic Regularization: Instead of solving the original LP directly, they solve a slightly modified Quadratic Program (QP). This adds a small penalty term that makes the problem "nicer" to solve while maintaining provable approximation guarantees relative to the original LP.
  3. Dykstra’s Projection Method: They adapt an algorithm that visits constraints one by one and performs a "local projection"—adjusting just three variables at a time to satisfy a single triangle inequality. This avoids ever building a global constraint matrix.
  4. Algorithmic Enhancements:
    • Sparse Dual Storage: They observe that most triangle inequalities aren't actually violated during the process. By storing the "dual variables" (which track how much each constraint is pushed) in sparse arrays, they drastically reduce memory usage.
  5. Entrywise Rounding: They introduce a robust stopping criterion that rounds the solution to significant figures once the algorithm is close to convergence, significantly speeding up the final stages of the solver.

Datasets

The researchers evaluated their method on a wide variety of real-world networks from the SuiteSparse Matrix Collection and the SNAP repository, including:

  • Collaboration & Citation Networks: caGrQc, caHepTh, Netscience, Erdos991.
  • Web & Social Graphs: Harvard500, Polblogs, and a Facebook snapshot of Vassar85.
  • Infrastructure & Biology: The Power grid network and neural/metabolic networks of C. Elegans.
  • Scale: The largest test case involved a graph with 11,204 nodes.

Key Insights and Ideas

  • Memory is the Real Enemy: The bottleneck for metric optimization isn't CPU cycles; it's the memory required to track billions of constraints. Projection methods trade off "global" knowledge for "local" iterations, which is the only way to fit these problems into RAM.
  • The Sparsity of Conflict: Even though there are $O(n^3)$ possible triangle inequalities, only a small fraction are "active" or tight at the optimal solution. The authors' sparse storage scheme exploits this physical reality of graph structures.
  • QP as a Proxy for LP: You don't need the exact LP solution to get a great clustering. Solving a regularized QP is much faster with projection methods and, as the authors prove, provides a solution that is within a small, predictable factor of the true LP optimum.

Key Results

  • Massive Scaling: The authors solved correlation clustering on the caHepPh network (11,204 nodes), involving $10^8$ variables and $7 \times 10^{11}$ (700 billion) constraints.
  • Outperforming Black-Boxes: While Gurobi was faster on very small graphs (<200 nodes), it consistently ran out of memory on graphs with more than 500–1,000 nodes. The authors' DykstraCC and DykstraSC solvers handled these with ease.
  • High Precision: The solutions were not just "heuristics"; the authors provided a posteriori bounds showing their results were typically within 1% of the true optimal LP score.
  • Efficiency: For the 11,204-node graph, the solver used only 12GB of a 100GB RAM limit, suggesting the method could scale even further.

Limitations and Future Work

  • Sparsest Cut Complexity: The authors noted that the "Sparsest Cut" problem is significantly harder to solve than "Correlation Clustering." It tends to have many more "tight" constraints, which makes the dual variables less sparse and increases memory pressure.
  • Sequential Bottlenecks: The current implementation visits constraints sequentially. While parallel versions of Dykstra's method exist, they often involve "averaging" updates that can slow down convergence in these specific $O(n^3)$ settings.
  • Randomization Hurdles: The authors experimented with randomized constraint visiting but found that the overhead of looking up variables in a dictionary (rather than a linear array) made it slower in practice due to modern CPU cache behaviors. Improving randomized access remains an open challenge.

Summary updated

BibTeX
@misc{veldt2018projection,
  author = {Nate Veldt and David Gleich and Anthony Wirth and James Saunderson},
  title = {{A Projection Method for Metric-Constrained Optimization}},
  year = {2018},
  eprint = {1806.01678},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.01678},
}
Figure