Efficient and Stable Fully Dynamic Facility Location

Sayan Bhattacharya, Silvio Lattanzi, Nikos Parotsidis

Summary

This paper presents the first deterministic algorithm for the fully dynamic facility location problem that achieves a constant-factor approximation while maintaining extremely low "recourse" (stability). By relaxing the classic greedy clustering approach, the authors provide a solution that handles both insertions and deletions of data points efficiently. In empirical tests, this approach outperforms previous state-of-the-art dynamic algorithms in solution quality by up to 67%.

The Challenge of Dynamic Facility Location

The Facility Location Problem is a cornerstone of unsupervised learning and operations research. The premise is straightforward: you need to open facilities (e.g., warehouses or servers) to serve clients (e.g., customers or users). Each facility has a fixed "opening cost," and each client incurs a "connection cost" based on their distance to the nearest facility. The objective is to minimize the sum of these costs.

In the real world, data is rarely static. Customers join and leave services, and network topologies evolve. This requires a fully dynamic model where clients can be both inserted and deleted. This dynamic nature introduces a twofold challenge:

  1. Efficiency: The algorithm must update the solution quickly without recomputing everything from scratch after every single change.
  2. Stability (Recourse): Every time the algorithm changes which facilities are open or reassigns a client, it incurs "recourse." High recourse is highly disruptive for real-world systems (e.g., frequently changing a customer's assigned service center).

Prior to this work, algorithms either struggled to handle non-uniform opening costs effectively or provided poor approximation guarantees (logarithmic rather than constant).

Methods: "Nice" Clustering and Invariants

The authors base their approach on a relaxed greedy algorithm.

In a static setting, a greedy algorithm builds clusters by repeatedly picking the "best" facility/client group with the minimum average marginal cost. To adapt this dynamically, the authors introduce the concept of a "Nice Clustering." A clustering is considered "nice" if it satisfies specific invariants that mimic the behavior of the greedy algorithm but allow for some "slack."

When a client is added or removed, the algorithm checks if these "nice" invariants are violated.

Algorithm loop for fixing invariant violations

If a violation occurs—for example, if a "blocking cluster" appears that would be significantly cheaper than the current setup—the algorithm triggers subroutines like FIX-BLOCKING and FIX-LEVEL. These subroutines incrementally adjust the solution by opening or closing facilities, or moving clients between cost levels, until the invariants are restored.

To prove the algorithm remains stable, the authors employ a token-based argument. They demonstrate that the "work" done by the algorithm can be "paid for" by tokens generated during client updates. This ensures that the total number of changes (amortized recourse) remains polylogarithmic relative to the number of facilities.

Experimental Setup

The authors evaluated their algorithm using three large-scale real-world datasets from the UCI Machine Learning Repository:

  • KDD-Cup: Network intrusion data (311,029 points, 74 dimensions).
  • Song: Audio features from the Million Song Dataset (515,345 points, 90 dimensions).
  • Census: Demographic data (2,458,285 points, 68 dimensions).

They utilized a "sliding window" model to simulate dynamic updates. A window of 1,000 points moves across the dataset, treating new points entering the window as insertions and points leaving as deletions.

Key Insights and Results

  • Relaxation is Key: By not demanding the absolute best greedy choice at every step, the algorithm gains the flexibility needed to handle deletions without triggering cascading global changes.
  • Theoretical Guarantees: The algorithm achieves a constant $O(1)$ approximation ratio with $O(\log m)$ amortized recourse and $\tilde{O}(m)$ update time.
  • Superior Solution Quality: In experiments on the KDD-Cup dataset, the proposed NICECLUSTERING performed 17% to 67% better than the previous state-of-the-art dynamic algorithm (GKLX) in terms of total cost.
  • Practical Stability: While it has higher recourse than a trivial "nearest facility" baseline (which has zero stability issues but terrible cost efficiency), its recourse remains very low and manageable compared to the massive cost savings it provides.
  • Speed: The algorithm is roughly an order of magnitude slower than the fastest (but less accurate) dynamic competitors, but it is two orders of magnitude faster than running an offline greedy algorithm from scratch after every update.
  • Handling Non-Uniform Costs: Unlike many previous dynamic clustering papers that assume all facilities cost the same to open, this method handles arbitrary costs, making it highly applicable to heterogeneous real-world scenarios.

Limitations and Future Work

While a significant step forward, the approach has limitations. The amortized update time is $\tilde{O}(m)$, where $m$ is the number of facilities. While "near-optimal" for cases where clients must reveal distances to all facilities, this could still be a bottleneck in scenarios with millions of potential facility locations. Additionally, the algorithm explicitly stores connection costs and visits them regularly, requiring more memory overhead than simpler baselines.

Future research could explore whether the $\tilde{O}(m)$ update time can be further reduced using advanced dimensionality reduction or metric embedding techniques, and further optimize the parameters controlling the approximation-speed trade-off.

Summary updated

BibTeX
@inproceedings{bhattacharya2022efficient,
  author = {Sayan Bhattacharya and Silvio Lattanzi and Nikos Parotsidis},
  title = {{Efficient and Stable Fully Dynamic Facility Location}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=nAFrQX3ipv},
}
Figure