An Improved Local Search Algorithm for k-Median

Vincent Cohen-Addad, Anupam Gupta, Lunjia Hu, Hoon Oh, David Saulpic

TL;DR

This paper breaks a long-standing theoretical barrier in the $k$-median clustering problem by introducing a "non-oblivious" local search algorithm. By optimizing a surrogate potential function that accounts for both the closest and second-closest facilities, the authors improve the approximation guarantee from the classic factor of 3 down to 2.836.

What Problem Does This Paper Address?

The $k$-median problem is a cornerstone of unsupervised learning and operations research. Given a set of "clients" and potential "facility" locations in a metric space, the goal is to open $k$ facilities to minimize the total distance from each client to its nearest facility.

While the problem is NP-hard, "local search"—the simple process of swapping one open facility for a closed one if it lowers the total cost—is a popular heuristic. However, standard local search has a known "locality gap" of 3, meaning it can get stuck in a local optimum that is three times worse than the global best. Until now, the only way to beat this factor of 3 was through complex Linear Programming (LP) "bi-point rounding" techniques. This paper seeks to determine if a more clever local search can bridge that gap.

Methods

The authors employ a technique called non-oblivious local search. Instead of moving between solutions based on the actual $k$-median cost, the algorithm moves based on a surrogate potential function $\Phi(F)$.

The Secret Sauce: The Potential Function

The standard cost only cares about the distance to the closest facility ($d_1$). The authors' new potential function includes a "backup" term: $$\Phi(F) := \sum_{c \in \mathcal{C}} \left( d_1(c, F) + \beta \min \{ d_2(c, F), \alpha d_1(c, F) \} \right)$$ Where:

  • $d_1$ is the distance to the closest facility.
  • $d_2$ is the distance to the second-closest facility.
  • $\alpha$ and $\beta$ are carefully chosen constants (specifically $\alpha=3, \beta=1/5$).

By rewarding solutions where clients have a "backup" facility nearby, the algorithm avoids the "bad" local optima that plague standard local search.

Randomized Swap Analysis

To prove the approximation ratio, the authors analyze "important swaps" using a combination of simple swaps and tree swaps. They use a randomized approach to map optimal facilities to local facilities, creating a graph structure that allows them to bound the expected change in potential across different types of clients.

Datasets

As a theoretical contribution to computer science, this paper does not use empirical datasets or benchmarks. Instead, the "evaluation" consists of rigorous mathematical proofs and a computer-aided analysis using Linear Programming to find the worst-case "locality gap" for their specific potential function.

Key Insights and Ideas

  • Robustness as a Proxy for Quality: The core "aha moment" is that a good clustering isn't just one where facilities are close to clients, but one where the configuration of facilities is robust. By valuing the second-closest facility, the algorithm is incentivized to explore a richer space of solutions.
  • Surrogate Optimization: You can often find a better solution for Objective A by temporarily optimizing for Objective B. This "non-oblivious" approach has worked for submodular maximization in the past, and this paper successfully ports that logic to the $k$-median problem.
  • LP as a Proof Assistant: The authors didn't just guess the constants $\alpha$ and $\beta$. They wrote a Linear Program to simulate the worst-case behavior of their algorithm, allowing them to "search" for the best potential function and approximation bound.

Key Results

  • Improved Bound: The algorithm achieves a $(2.836 + \epsilon)$-approximation, significantly better than the previous $(3 + \epsilon)$ limit for local search.
  • First Alternative to LP-Rounding: This provides the first viable alternative to "bi-point rounding" for achieving an approximation ratio below 3.
  • Future Potential: Preliminary computer-assisted results suggest that extending the potential function to consider the three closest facilities ($q=3$) could push the approximation ratio as low as 2.69, which would approach the current world-best LP-based result (2.675).

Limitations and Future Work

  • Gap to Best Known: While 2.836 is a breakthrough for local search, it still trails the 2.675 ratio achieved by the most sophisticated LP-rounding algorithms.
  • Formalizing $q=3$: The 2.69 result for three facilities is currently based on experimental LP solvers. A formal, human-verifiable proof for higher values of $q$ remains an open challenge.
  • Pseudo-approximation: The main theorem is technically a "pseudo-approximation," meaning it compares a solution with $k$ facilities to an optimal solution that might use slightly fewer than $k$ facilities ($k-r(\epsilon)$). While the authors provide a path to convert this to a true approximation, it adds complexity to the implementation.

Summary updated

BibTeX
@inproceedings{cohenaddad2022improved,
  author = {Vincent Cohen-Addad and Anupam Gupta and Lunjia Hu and Hoon Oh and David Saulpic},
  title = {{An Improved Local Search Algorithm for k-Median}},
  booktitle = {SODA},
  year = {2022},
  doi = {10.1137/1.9781611977073.65},
}

Loading related content...

Figure