Cheapest-Feasible Matching (CFM) Overview
- 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 (e.g., compute providers, vertices) and a demand side $\D$ (e.g., jobs, opposing vertices). Each provider or vertex has an availability and a cost , while each job or vertex demands 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 is weighted by i.i.d. 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 and jobs $\D=\{d_1,\ldots,d_n\}$ each with demand , the matching $\M\subseteq \S\times\D$ is built by iterating over jobs:
- For job , define the feasible provider set $\F_j = \{s\in \S\setminus\operatorname{dom}(\M):\tau_s\geq w_j\}$.
- If $\F_j\neq\emptyset$, pick $s_j^* \in \arg\min_{s\in\F_j} \hat c_s$ (cheapest feasible provider).
- Otherwise, pick as the remaining provider with .
- Update the matching: $\M\leftarrow \M\cup\{(s_j^*,d_j)\}$, remove from the set of eligible providers.
Each tie is broken by a fixed ordering over 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 jobs and providers, .
- When ( a floor price), supply regret satisfies (Zang et al., 20 Nov 2025).
Distributional Results in Random Setting
In with i.i.d. edge costs, the total CFM matching cost satisfies
- (harmonic sum; Euler–Mascheroni constant),
- ,
- converges to Gumbel,
- Typical edge costs are with explicit density for (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: as .
4. Computational Aspects
A practical implementation of CFM maintains a balanced data structure (segment tree or BST) keyed by remaining availability and a min-heap at each node by , supporting:
- Range-minimum queries in time for providers with sufficient availability,
- Popping minimum-cost feasible providers and updating availability in ,
- Per-period CFM execution in time with space for jobs and 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 .
- Under mild conditions, this structure ensures (i) earlier staking increases total pool participation and (ii) reporting lower 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 with i.i.d. exponential edge costs, resampling an fraction of costs preserves the majority of the matching: the expected fraction of unchanged edges converges to as and (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 -fraction of costs causes the most expensive edge assignments (for ) 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 for (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.
Sponsored by Paperpile, the PDF & BibTeX manager trusted by top AI labs.
Get 30 days free