Fair Range k-Supplier Clustering in Offline and Streaming Models

Meiyun Lu, Wei Yue, Weihong Wu, Zeyu Lin, Longkun GuoNeurIPS 2026

TL;DR

Imagine placing emergency clinics across a city to ensure no resident is too far from care, while strictly guaranteeing that a fair range—both a minimum and maximum number—of clinics are run by different community organizations. This paper solves this "fair range $k$-supplier" problem, delivering the first polynomial-time algorithm to achieve the theoretical best-possible approximation ratio (3) when supplier groups don't overlap. Even better, the authors adapt it for massive, streaming datasets without sacrificing accuracy or blowing up your runtime.

What Problem Does This Paper Address?

In classical clustering (like $k$-center), any data point can be chosen as a cluster center. The $k$-supplier problem introduces a realistic asymmetry: data is split into clients (who need service) and suppliers (candidate facility locations). Your goal is to pick at most $k$ suppliers to minimize the worst-case distance any client has to travel, a problem known to be NP-hard to approximate better than a factor of 3.

Now, add fair range constraints: suppliers belong to different demographic or functional groups, and your final selection of $k$ suppliers must include at least $\alpha_l$ and at most $\beta_l$ suppliers from each group $l$. Prior polynomial-time algorithms for disjoint groups could handle either lower bounds or upper bounds using standard graph matching, but failed to enforce both simultaneously.

Figure 1: An example showing that augmenting a maximum matching can fail. In (a), {c1, . . . , c7} denotes the set of clients, and a line between ci and a supplier set Gℓindicates that ci can be served by a supplier in Gℓwithin radius R∗. In (b), a maximum matching (shown by black solid lines) satisfies the lower bound αℓ. However, the unmatched client c5 can only be matched to a supplier in G2, violating the upper bound β2 = 3.

As shown above, greedily augmenting a matching to meet lower bounds can paint you into a corner where serving the remaining clients forces you to break an upper-bound rule. Furthermore, practically nothing was known about solving this when data arrives sequentially in a memory-constrained stream.

Methods

To crack the disjoint-group offline problem, the authors combine standard spatial filtering with a novel network flow trick:

  1. Representative Client Selection (Standard): Guessing the optimal radius $R^*$, they greedily pick a sparse set of "representative" clients separated by more than $2R^*$. Because of this spacing, no two representatives share a supplier in the optimal solution, meaning there are at most $k$ of them.
  2. Minimum-Cost Maximum-Flow / MCMF (Novel): Instead of bipartite matching, they route $k$ units of flow from a source to a sink through group nodes, feasible suppliers, and representative clients. Edges from the source to group nodes enforce the $[\alpha_l, \beta_l]$ bounds. Crucially, each group node also gets a "bypass" route to the sink via an auxiliary node with a cost of 1 (all client-serving paths cost 0). Finding a min-cost flow forces the network to serve all representative clients for free first, using the costly bypasses only to top up supplier counts to meet fairness quotas.
The MCMF network uses zero-cost client paths and unit-cost auxiliary bypasses to simultaneously satisfy client coverage and two-sided fairness.

For large-scale streams, they embed this into a multi-scale streaming framework (tracking multiple radius guesses at once) under a client-first model:

  • Phase 1 (Clients): Stream clients to build representative sets across active distance scales.
  • Phase 2 (Suppliers): Stream suppliers, keeping at most $k$ per group at each scale by always protecting the closest observed supplier to each representative client.
  • Post-stream: Run the offline MCMF solver on the tiny retained summary.

For overlapping supplier groups (where one supplier belongs to multiple groups), they also provide a Fixed-Parameter Tractable (FPT) 3-approximation algorithm.

Datasets

The authors evaluate their algorithms on synthetic datasets (detailed in their appendix) and nine real-world datasets from the UCI Machine Learning Repository: Heart, National-poll, Student-mat, Student-perf, Bank, Census, Credit-card, Bank-full, and Query. No new benchmarks are introduced; points act as clients, subsets are chosen as suppliers, and disjoint groups are assigned either via the sex attribute or randomly.

Key Insights and Ideas

  • Total Unimodularity Saves the Day: Linear programs can output messy fractional answers (e.g., "pick 0.4 of clinic A"). Because the MCMF constraint matrix is totally unimodular, it is mathematically guaranteed to yield clean, exact integer solutions in polynomial time.
  • Arrival Order is Everything in Streams: Why must clients arrive before suppliers? In a one-pass stream, decisions are irrevocable. If suppliers arrive first, the algorithm must blindly hoard suppliers to satisfy fairness rules without knowing where clients live—potentially discarding a great supplier for one infinitely far away.
Figure 3: An example showing that suppliers arriving before clients in the streaming setting can lead to an unbounded approximation ratio. Let k = 1, C = {c1}, and suppose there is a single supplier group (m = 1) with [α1, β1] = [1, 1]. In (a), a supplier f ∗within distance R∗of c1 arrives early in the stream and is retained. In (b), another supplier f1 from the same group arrives later and replaces f ∗, which is then discarded. Although the resulting solution satisfies the fairness constraint, f1 can be arbitrarily far from c1, yielding an unbounded approximation ratio.

Key Results

  • Theoretical Optimality: Achieves a polynomial-time 3-approximation offline (matching the NP-hardness lower bound) and a $(3+\epsilon)$-approximation in one-pass client-first streams using compact memory.
  • Massive Speedups: Compared to the state-of-the-art FPT baseline (the only prior method supporting two-sided bounds), the offline algorithm is orders of magnitude faster. For $k=10$, on Student-perf, runtime drops from 610.86s to 0.13s (and 3.51s for streaming). On larger datasets like Bank, Census, and Query, the FPT baseline times out after 100,000 seconds (~27.7 hours), whereas the authors' offline and streaming methods finish in 1 to 110 seconds.
  • Zero Fairness Violations, Low Cost: Standard Unfair greedy and upper-bound-only (5-apx) baselines violate lower-bound fairness constraints in 20% to 90% of runs. Both new algorithms achieve 100% fairness compliance while keeping maximum client distances nearly identical to the unconstrained Unfair baseline (e.g., 12.91 offline and 13.20 streaming vs. 12.81 unfair on Bank-full).

Limitations and Future Work

  • Controlled Stream Order: The streaming $(3+\epsilon)$ guarantee strictly requires all clients to stream before suppliers. While realistic for controlled database queries, it cannot handle fully interleaved, arbitrary-order streams (which the authors show breaks the approximation).
  • Overlapping Group Complexity: When suppliers belong to multiple groups simultaneously, polynomial-time guarantees vanish; the authors' proposed FPT algorithm has a runtime that scales exponentially with the number of clusters $k$ and groups $m$. Future work directions are not explicitly discussed in the main paper.

Summary updated

BibTeX
@inproceedings{lu2026fair,
  author = {Meiyun Lu and Wei Yue and Weihong Wu and Zeyu Lin and Longkun Guo},
  title = {{Fair Range k-Supplier Clustering in Offline and Streaming Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=IQsFwmNekG},
}
Figure