Papers
Topics
Authors
Recent
2000 character limit reached

Cheapest-Feasible Matching (CFM) Overview

Updated 23 November 2025
  • Cheapest-Feasible Matching (CFM) is a real-time minimal-cost matching rule that pairs agents in bipartite markets under strict feasibility constraints.
  • The algorithm greedily selects the cheapest available provider for each demand, ensuring a unique stable matching with provable cost and regret bounds.
  • CFM exhibits robust performance with analytical guarantees in random graph settings and dynamic perishable-resource markets, demonstrating incentive alignment and efficiency.

Cheapest-Feasible Matching (CFM) is a real-time allocation rule, central to market design and matching theory, that determines the unique minimal-cost, feasible matching between agents on opposite sides of a bipartite interaction—such as compute providers and computational jobs, or vertices of a graph with random costs. CFM appears both in mean-field stable matchings for random bipartite graphs and as a mechanism design primitive in perishable-resource markets, with robust performance and incentive alignment guarantees in each domain (Ahlberg et al., 7 Jun 2024, Zang et al., 20 Nov 2025).

1. Formal Problem Structure

The core problem considers two sets: a supply side §\S (e.g., compute providers, vertices) and a demand side $\D$ (e.g., jobs, opposing vertices). Each provider or vertex ss has an availability τs\tau_s and a cost c^s\hat c_s, while each job or vertex dd demands wdw_d units of service or matches, subject to deadlines and budgets when formulated as a perishable utility market. The matching must be partial—each provider matches at most once, and each job at most once—with feasibility constraints (e.g., sufficient remaining provider time, or match-respecting blocking-pair avoidance) (Zang et al., 20 Nov 2025, Ahlberg et al., 7 Jun 2024).

In the canonical random matching case, the bipartite graph Kn,nK_{n,n} is weighted by i.i.d. Exp(1)\mathrm{Exp}(1) edge costs. A matching is stable (or cheapest-feasible) if it contains no blocking-pair: an unmatched edge whose cost is less than the minimum cost of either endpoint’s current match (Ahlberg et al., 7 Jun 2024).

2. CFM: Mathematical Rule and Algorithm

CFM proceeds greedily, selecting for each arriving job the cheapest available provider capable of fulfilling the required service, resorting to a maximal-availability fallback if no eligible provider remains. Formally, with providers §={s1,,sm}\S=\{s_1,\ldots,s_m\} and jobs $\D=\{d_1,\ldots,d_n\}$ each with demand wjw_j, the matching $\M\subseteq \S\times\D$ is built by iterating over jobs:

  1. For job djd_j, define the feasible provider set $\F_j = \{s\in \S\setminus\operatorname{dom}(\M):\tau_s\geq w_j\}$.
  2. If $\F_j\neq\emptyset$, pick $s_j^* \in \arg\min_{s\in\F_j} \hat c_s$ (cheapest feasible provider).
  3. Otherwise, pick sjs_j^* as the remaining provider with maxτs\max \tau_s.
  4. Update the matching: $\M\leftarrow \M\cup\{(s_j^*,d_j)\}$, remove sjs_j^* from the set of eligible providers.

Each tie is broken by a fixed ordering over §\S to guarantee uniqueness (Zang et al., 20 Nov 2025).

In the exponential edge-weighted setting, this rule is equivalent to sequentially pairing the two unmatched vertices connected by the minimal remaining edge, removing all incident edges after each step—yielding the unique stable (cheapest-feasible) matching (Ahlberg et al., 7 Jun 2024).

3. Theoretical Guarantees and Limit Laws

Existence and Uniqueness

For arbitrary arrival sequences and availability/cost vectors, CFM always produces a well-defined matching, never gets stuck, and is unique once tie-breaking is fixed (Zang et al., 20 Nov 2025). In the mean-field random graph setting, the greedy-edge algorithm gives the solitary stable matching (Ahlberg et al., 7 Jun 2024).

Cost and Regret Bounds

Define two offline optima: GCM (greedy-cheapest-ever, ignoring feasibility) and GSM (greedy-shortest-ever, maximizing completed jobs). Supply-regret and demand-regret are given by

  • $R_S(\mathrm{CFM}) = \sum_{(s,d)\in\M_\mathrm{CFM}} \hat c_s - \min_\M \sum_{(s,d)\in \M} \hat c_s$,
  • $R_D(\mathrm{CFM}) = (\max_\M \#\{\text{feasible matches}\}) - \#\{\text{feasible matches in } \M_\mathrm{CFM}\}$.

CFM is $1/2$-competitive in size:

  • For nmn\leq m jobs and providers, RD(CFM)n/2R_D(\mathrm{CFM})\leq\lfloor n/2\rfloor.
  • When c^sPf\hat c_s \geq P_f (PfP_f a floor price), supply regret satisfies RS(CFM)m/2(PPf)R_S(\mathrm{CFM}) \leq \lfloor m/2\rfloor (P-P_f) (Zang et al., 20 Nov 2025).

Distributional Results in Random Setting

In Kn,nK_{n,n} with i.i.d. Exp(1)\mathrm{Exp}(1) edge costs, the total CFM matching cost Cn,nC_{n,n} satisfies

  • E[Cn,n]=Hn=lnn+γ+o(1)\mathbb{E}[C_{n,n}] = H_n = \ln n + \gamma + o(1) (harmonic sum; γ\gamma Euler–Mascheroni constant),
  • Var(Cn,n)=π2/6+o(1)\operatorname{Var}(C_{n,n}) = \pi^2/6 + o(1),
  • Cn,nlnnC_{n,n} - \ln n converges to Gumbel(0,1)(0,1),
  • Typical edge costs are O(1/n)O(1/n) with explicit density fW(x)=(1+x)2f_W(x)=(1+x)^{-2} for x0x\geq 0 (Ahlberg et al., 7 Jun 2024).

The rank of a typical edge (its position among candidate edge costs) exhibits a power-law tail with infinite mean: P(Rr)1/r\mathbb{P}(R\geq r)\sim 1/r as rr\to\infty.

4. Computational Aspects

A practical implementation of CFM maintains a balanced data structure (segment tree or BST) keyed by remaining availability τs\tau_s and a min-heap at each node by c^s\hat c_s, supporting:

  • Range-minimum queries in O(logm)O(\log m) time for providers with sufficient availability,
  • Popping minimum-cost feasible providers and updating availability in O(logm)O(\log m),
  • Per-period CFM execution in O(nlogm)O(n\log m) time with O(m)O(m) space for nn jobs and mm providers (Zang et al., 20 Nov 2025).

In random exponential cost settings, the entire matching process can be represented as a sum of independent exponential increments, enabling exact analysis of matching cost distributions (Ahlberg et al., 7 Jun 2024).

5. Incentive Properties and Market Mechanism Design

CFM alone prioritizes lower-cost providers, but truthful cost reporting and early availability staking are only achieved when paired with a suitable surplus-sharing payment mechanism. The premium-sharing pool aggregates the surplus (market price minus reported costs) and distributes it equally among contemporaneously matched providers whose jobs started at or after a reference time:

  • Providers' payoff per hour is c^s+1§hts§ht(Ptc^s)\hat c_s + \frac{1}{|\S^t_{\geq h}|}\sum_{s’\in\S^t_{\geq h}}(P^t-\hat c_{s’}).
  • Under mild conditions, this structure ensures (i) earlier staking increases total pool participation and (ii) reporting lower c^s\hat c_s increases matching probability, with exactly offsetting marginal incentives, yielding truthful cost revelation (Zang et al., 20 Nov 2025).

By combining CFM with the premium-sharing pool, the mechanism is incentive compatible: providers optimally report true costs and stake full available capacity immediately.

6. Robustness and Sensitivity

Overlap Robustness

CFM exhibits structural robustness to small perturbations in underlying cost data. In Kn,nK_{n,n} with i.i.d. exponential edge costs, resampling an ϵ\epsilon fraction of costs preserves the majority of the matching: the expected fraction of unchanged edges converges to 1O(ϵ/log(1/ϵ))1-O(\epsilon/\log(1/\epsilon)) as ϵ0\epsilon\to 0 and nn\to\infty (Ahlberg et al., 7 Jun 2024). This is attributed to the local nature of greedy matching, which depends on descending chains of edge weights that, for bounded-length sequences, remain typically unaffected by small random perturbations.

Cost and Tail Noise Sensitivity

Despite this overlap robustness, the total CFM cost is highly sensitive to noise: resampling an ϵ\epsilon-fraction of costs causes the most expensive mm edge assignments (for mϵlnnm\ll \epsilon \ln n) to be completely reshuffled with high probability. Consequently, nearly all variance in total cost derives from these tail edges, and their independence under resampling drives the cost correlation Corr(Cn,n,Cn,n)0\operatorname{Corr}(C_{n,n},C_{n,n}')\to 0 for ϵlnn\epsilon \ln n\to\infty (Ahlberg et al., 7 Jun 2024).

Multi-period Regret

In multi-period regimes with a finite number of providers, CFM demonstrates vanishing long-run regret compared to the feasible optimum as total service capacities increase, reflecting robustness in dynamic, adversarially structured demand scenarios (Zang et al., 20 Nov 2025).

7. Applications and Broader Connections

CFM serves as (i) the basis for large-scale, realistically implementable market platforms for perishable utility resources such as compute (where it enables near real-time matching, robust incentive alignment, and provable regret bounds) (Zang et al., 20 Nov 2025), and (ii) as an analytically tractable model of stable matching in mean-field random graph settings, yielding new limit theorems and robust matching algorithms (Ahlberg et al., 7 Jun 2024). The explicit links between CFM and classic stable matching concepts, their uniquely greedy realization, and the connection to Gumbel fluctuation limits and power-law edge ranks offer a rich foundation for both theoretical investigation and market infrastructure design.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)
Slide Deck Streamline Icon: https://streamlinehq.com

Whiteboard

Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Cheapest-Feasible Matching (CFM).