---
title: Stable Matching–Iterative Balancing (SM-IB)
url: https://www.emergentmind.com/topics/stable-matching-iterative-balancing-sm-ib
type: topic
---

# Stable Matching–Iterative Balancing (SM-IB)

Stable Matching–Iterative Balancing (SM-IB) is an interpretive label for stable-matching procedures that repeatedly update a matching, or the feasible representation of a market, so that instability is progressively reduced. In the supplied literature, its clearest realization is truncated Gale–Shapley on bounded-degree bipartite graphs, where the propose–accept process is stopped after finitely many synchronous rounds and still yields an $\epsilon$-stable matching whose instability is controlled relative to matching size [0812.4893]. Related iterative mechanisms appear in parallel blocking-pair correction, in iterated deletion of unattractive alternatives for constrained many-to-one markets, and in decentralized blocking-pair dynamics whose behavior also clarifies the limits of local stabilization [2401.07467], [2204.03989], [2403.12183].

## 1. Core definitions and conceptual scope

The common substrate of SM-IB-style methods is the blocking-pair view of stability. In the bicoloured-graph formulation, the market is a bipartite graph \(G=(R\cup B,E)\), where each node has a linear preference order over its neighbors. A matching \(M\subseteq E\) is stable if it has no unstable edges. An edge \(\{u,v\}\in E\setminus M\) is unstable relative to \(M\) when \(u\) is unmatched or prefers \(v\) over its current match in \(M\), and \(v\) is unmatched or prefers \(u\) over its current match in \(M\) [0812.4893]. The paper then defines
\[
\text{A matching }M\text{ is }\epsilon\text{-stable if the number of unstable edges is at most }\epsilon |M|.
\]

In the one-to-one matching model, the same logic is expressed in terms of firms and workers. A pair \((f_i,w_j)\) is a blocking pair for matching \(\mu\) if they are not matched to each other under \(\mu\), but each strictly prefers the other to their current partner:
\[
w_j \succ_{f_i} \mu(f_i) \quad\text{and}\quad f_i \succ_{w_j} \mu(w_j).
\]
A matching is stable if it has no blocking pairs [2403.12183]. In the many-to-one setting with worker set \(W\), firm set \(M\), firm quotas \(q(f)\), and strict preference lists, stability is the usual Gale–Shapley blocking notion adapted to the possibility that a firm at quota may drop a worse current assignee [2204.03989].

The supplied papers also use two different notions of near stability. In the bounded-degree distributed setting, “almost stable” means instability is small relative to matching size via the \(\epsilon\)-stable condition [0812.4893]. In the decentralized-dynamics setting, an “almost stable” matching is one that is just one blocking pair away from a stable matching [2403.12183]. This difference matters, because one notion is quantitative and ratio-based, while the other is purely local in the state graph of matchings.

## 2. Truncated Gale–Shapley as the canonical SM-IB mechanism

The central SM-IB construction in the supplied material is a distributed version of Gale–Shapley that is run for only a fixed number of rounds. Each round consists of two turns: a blue turn and a red turn. Blue nodes accept the most preferred incoming proposal, possibly breaking with an old partner, and red nodes propose to their best remaining candidate if unmatched. The state after round \(i\) is denoted by a matching \(M_i\). The analysis tracks three monotonic features: blue nodes only move to more preferred matches, red nodes only lose candidates from their remaining preference lists, and the set of lost edges grows monotonically [0812.4893].

The paper formalizes the resulting tradeoff through lost-edge and potential arguments. Let \(L_i\) be the set of lost edges by the end of round \(i\), and let \(f_i(R)\) be a potential over red nodes measuring how much better the next possible proposal could still be. The key inequality is
\[
f_i(R)\leq \gamma\, w_i(B) \quad\text{for all }i\ge 1+\frac{\Delta-1}{\gamma}.
\]
For the unweighted case \(w(e)\equiv 1\), one has \(w_i(B)=|M_i|\), and the number of unstable edges \(u_i\) satisfies
\[
u_i \le \Delta f_i(R).
\]
Choosing \(\gamma=\epsilon/\Delta\) yields
\[
u_i \le \epsilon |M_i|
\]
once
\[
i \ge 1+\frac{\Delta(\Delta-1)}{\epsilon}.
\]

This is the paper’s linear-growth phenomenon: the ratio of matched individuals to blocking pairs grows linearly with the number of propose–accept rounds. A faithful summary given in the supplied material is that each extra round removes some candidate edges, the total remaining potential for instability decreases, and after \(i\) rounds the unstable-edge-to-matching ratio is \(O(\Delta^2/i)\) [0812.4893].

The formal algorithmic consequence is Theorem 1:
\[
\textbf{Theorem 1.}\quad \text{There exists a deterministic distributed algorithm that finds an }\epsilon\text{-stable matching in a bicoloured graph in time } T \le 4 + 2\Delta^2/\epsilon.
\]
This is obtained by running the truncated Gale–Shapley procedure for
\[
i < 2+\Delta^2/\epsilon
\]
rounds, each round taking two synchronous communication steps. Because \(\Delta\) is assumed constant, the running time depends only on \(\Delta\) and \(\epsilon\), not on graph size or diameter. The output is therefore local: in \(T\) synchronous steps, information propagates only to distance \(T\), so the decision associated with an edge depends only on a bounded-radius neighborhood [0812.4893].

## 3. Weighted objectives, ties, and constant-time estimation

The same truncated machinery extends beyond unweighted almost stability. In edge-weighted bicoloured graphs, preferences are sorted by edge weights, and the paper proves
\[
\textbf{Theorem 2.}\quad \text{There exists a deterministic distributed algorithm that finds a }(2+\epsilon)\text{-approximation for maximum-weight matching in bicoloured graphs in time } T \le 4 + 2\Delta/\epsilon.
\]
The core inequality is
\[
w(M^*) \le f_i(R) + 2w_i(B),
\]
where \(M^*\) is an optimum matching. Combined with the potential bound \(f_i(R)\le \epsilon w_i(B)\), this gives
\[
w(M^*) \le (2+\epsilon)w(M_i).
\]
Thus the same iterative balancing process is not only almost stable in the blocking-pair sense, but also sufficiently structured to support comparison with maximum-weight matching [0812.4893].

The paper further states that the algorithm still works when ties are allowed in preference lists, with an analogous proof. This indicates that the truncation and locality phenomenon is not restricted to strict rankings. Exact strict rankings are therefore not required for the local algorithm or for the approximation guarantees stated in the supplied material [0812.4893].

A further consequence is a centralized randomized constant-time approximation scheme for estimating the size of a stable matching. The theorem is stated as follows:
\[
\textbf{Theorem 3.}\quad \text{For any }0<\delta\le \tfrac12,\ 0<\epsilon\le 1,\ \Delta\ge 3, \text{ there exists a randomized algorithm that, given access to a preference oracle, makes at most}
\]
\[
25000\, \epsilon^{-2}(\Delta-1)^{3+4\Delta/\epsilon}\ln \delta^{-1}
\]
queries and outputs an estimate \(\hat m\) such that, with probability at least \(1-\delta\),
\[
\bigl|\hat m - M\bigr|\le \epsilon M,
\]
where \(M\) is the size of a stable matching in \(G\). The estimate targets the size of an exact stable matching, not merely an \(\epsilon\)-stable matching. Operationally, the algorithm samples nodes uniformly at random to estimate the number of red nodes and the fraction of red nodes matched after \(j\) rounds of the truncated algorithm, then transfers the guarantee from \(M_j\) to \(M_\infty\). To determine whether a sampled red node is matched after \(j\) rounds, it suffices to inspect preferences inside radius \(2j\), whose size is bounded by
\[
1+\Delta\sum_{i=0}^{2j-1}(\Delta-1)^i < 3(\Delta-1)^{2j}.
\]
This locality bound is what makes the oracle algorithm constant-time in the query sense [0812.4893].

## 4. Parallel blocking-pair correction: PII-RMD

A different SM-IB-style mechanism appears in the parallel stable-matching literature built on the Parallel Iterative Improvement (PII) framework. The setting is the standard stable marriage problem with \(n\) men, \(n\) women, and a preference matrix \(P\), where each pair \(p_{i,j}\) has a left value \(L(p_{i,j})\), the rank of woman \(j\) in man \(i\)’s list, and a right value \(R(p_{i,j})\), the rank of man \(i\) in woman \(j\)’s list. A pair \(p_{i,j}\) is a blocking pair for a matching \(\mu\) if
\[
L(p_{i,j}) < L(p_{i,l}) \quad\text{and}\quad R(p_{i,j}) < R(p_{m,j}),
\]
where \(p_{i,l}\in \mu\) and \(p_{m,j}\in \mu\) are the current matched partners of \(m_i\) and \(w_j\) [2401.07467].

PII starts from a random matching \(\mu_0\), finds all blocking pairs, chooses NM1-generating pairs row-wise and NM1 pairs column-wise, replaces conflicting current matches, and fills open rows and columns. With \(n^2\) processors, each iteration takes \(O(\log n)\) time, and total runtime was empirically around \(O(n\log n)\) when convergence occurred within \(O(n)\)-many iterations. The key weakness reported in the supplied material is that the original PII algorithm converged only about \(90\%\) of the time in earlier experiments and could cycle indefinitely in the remaining cases [2401.07467].

The paper’s augmented method, PII-RMD, introduces two selection rules and a preprocessing step:

| Component | Criterion | Stated role |
|---|---|---|
| Right-Minimum Selection | Accept \(p_{i,l}\) as potential NM1-generating pair iff \(R(p_{i,j}) > R(p_{i,l})\) | Enforces right-side improvement |
| Dynamic Selection | Accept \(p_{i,j}\) iff \(L(p_{i,j}) < \min\{L(p): p\in N_i\}\) | Makes each accepted row update a new left-side minimum over time |
| Quick Initialization | Each man proposes to his best remaining woman; accepted woman is removed from all other men’s lists | Produces a faster starting matching |

Right-Minimum Selection is interpreted in the paper as a monotonicity constraint more favorable to women, “similar in manner to the original Gale–Shapley algorithm.” The paper proves NM1-cycle freeness and full cycle freeness under this rule, using strict decrease of right values along replacement chains. Dynamic Selection maintains a minimum pointer per row and uses a wait time \(\mathcal{W}\in \mathbb{Z}^+\), with the re-entry condition
\[
k-c > \mathcal{W},
\]
where \(k\) is the current iteration and \(c\) is the last iteration at which the left-minimum processor was compared. The authors report that increasing \(\mathcal{W}\) each time the left-minimum processor is selected works best, and they set \(\mathcal{W}=2\) when a new left-minimum processor is chosen. Quick Initialization is claimed to run in \(O(n)\) parallel time with \(n^2\) processors, faster than Smart Initialization at \(O(n\log n)\) [2401.07467].

The empirical findings are explicit. Right-Minimum Selection alone improves convergence at larger \(n\) from about \(86\%\) to over \(99.9\%\), with no visible decline as \(n\) grows. PII-RMD reaches \(99.9\%\) convergence within \(2.5n\) iterations for any initialization method, whereas PII-SC with Smart Initialization needs about \(3.5n\) iterations for the same level. Over \(3.6\) million trials, PII-RMD achieved \(100\%\) convergence within \(5n\) iterations, and an additional scalability experiment for \(n=100,110,\dots,200\), totaling \(330{,}000\) trials, also converged. The claimed asymptotic behavior is \(O(n\log n)\) average runtime with \(n^2\) processors, but the authors explicitly state that this remains an empirical guarantee rather than a proven worst-case bound, and that it is unclear whether PII-RMD fully converges theoretically [2401.07467].

## 5. Iterated pruning under assignment constraints

In constrained matching markets, SM-IB-style reasoning appears as iterative pruning rather than repeated modification of a single matching. The setting is a many-to-one two-sided market with workers \(W\), firms \(M\), quotas \(q(f)\), strict preference lists, and possibly incomplete lists. The paper studies assignment constraints requiring certain pairs to be included, forbidding others, and asks whether such constraints are compatible with stability. The participant-level constraints are reduced to a pairwise formulation:
\[
\text{\sc Reduced Constrained Stable Matchings: given disjoint } C^{in}, C^{out},
\]
\[
\text{does there exist a stable matching that contains all pairs in } C^{in} \text{ and no pair in } C^{out}?
\]
Here \(C^{in}\) are required pairs and \(C^{out}\) are forbidden pairs [2204.03989].

The algorithmic core is the iterated deletion of unattractive alternatives (IDUA). After converting the many-to-one market into a one-to-one market by splitting each firm of quota \(q(f)\) into \(q(f)\) identical copies, the paper represents the market as a directed graph \(D(P)\) whose vertices are acceptable pairs and whose arcs encode preference comparisons:
\[
A_W := \{ (w,f_i)(w,f_j) \mid w \text{ prefers } f_j \text{ to } f_i \},
\]
\[
A_M := \{ (w_i,f)(w_j,f) \mid f \text{ prefers } w_j \text{ to } w_i \},
\]
\[
A := A_W \cup A_M.
\]
A matching is an independent set in this digraph, and a stable matching is a kernel: independent and such that every vertex outside the matching has an out-neighbor in the matching [2204.03989].

IDUA repeatedly applies the reduction rule \(R(D(P))\). If no arc in \(A_M\) leaves \((w,f)\), delete all \((w,f_i)\) such that \((w,f_i)(w,f)\in A_W\). If no arc in \(A_W\) leaves \((w,f)\), delete all \((w_i,f)\) such that \((w_i,f)(w,f)\in A_M\). Writing
\[
D^0 = D(P), \qquad D^{k} = R(D^{k-1}),
\]
the process stops at the normal form
\[
D^*(P) = D^k \quad \text{where } D^k = R(D^k).
\]
Lemma 1 states that \(D(P)\) and \(D^*(P)\) contain exactly the same stable matchings. This gives the iterative-pruning interpretation: alternatives that cannot survive in any stable matching are deleted, and each deletion can force additional deletions [2204.03989].

The normal form yields extremal stable matchings
\[
M_W = \{x \in V(D^*(P)) : d_W^{*,+}(x)=0\},
\qquad
M_M = \{x \in V(D^*(P)) : d_M^{*,+}(x)=0\},
\]
identified as the worker-optimal and firm-optimal stable matchings in the normal form. The recursive constrained algorithm then enforces required pairs, iteratively deletes forbidden vertices \(v\) satisfying
\[
d_W^+(v)=0 \quad \text{or} \quad d_M^+(v)=0,
\]
reruns IDUA, and branches on any \(v\in M_W\setminus M_M\) when the two extremal matchings differ. Its main guarantee is:
\[
\textbf{Theorem 1.}\quad \text{The algorithm correctly solves \textsc{Reduced Constrained Stable Matchings} and runs in } O(N^3 + N^3 s),
\]
where \(N=\max\{m,n\}\) and \(s\) is the number of feasible stable matchings output; the time between two consecutive output stable matchings is \(O(N^3)\) [2204.03989].

This suggests an SM-IB interpretation in which balancing is performed over the feasible set rather than over a single evolving matching. The paper itself presents the method as normal-form reduction plus branch-and-bound enumeration, but the iterative deletion phase is structurally close to an iterative balancing or fixed-point computation.

## 6. Fragility, path dependence, and limits of iterative stabilization

The most important qualification to any broad SM-IB narrative comes from decentralized blocking-pair dynamics. In the one-to-one market \(\mathcal M=(F,W,\succ)\), the process studied in the supplied material starts from any matching \(\mu_1\), repeatedly selects a blocking pair or best blocking pair at random, satisfies that pair, makes the previous partners unmatched, and leaves all other matches unchanged. The classical theorem of Roth and Vande Vate is recalled in the form: for any unstable matching, there exists a finite sequence of blocking pairs that leads to a stable matching [2403.12183].

The paper argues that this convergence guarantee is weak from a fragility perspective. Its first theorem characterizes when “anything goes.” A subset \((\bar F,\bar W)\) of equal size is a fragment if, in the induced submarket, there is a stable matching \(\bar\mu\) such that every agent inside the fragment prefers their partner in \(\bar\mu\) to every agent outside. The theorem states that the following are equivalent: from any unstable matching \(\mu\) and any stable matching \(\nu\), there exists a finite sequence of (best) blocking pairs from \(\mu\) to \(\nu\); the same holds already for every almost stable matching; and there are no non-trivial fragments. The corollary is that, in the absence of non-trivial fragments, random decentralized dynamics can reach any stable matching with positive probability [2403.12183].

The second theorem addresses time to stabilization. For any sequence of markets with a unique stable matching, and for any \(\varepsilon>0\), after a small augmentation there exist \(\varepsilon\)-unstable initial matchings such that, under the random decentralized dynamics,
\[
\Pr(\text{time to regain stability is }2^{\Omega(n)}) \ge 1-2^{-\Omega(n)}.
\]
The proof uses a biased random walk on
\[
\mathcal S(\mu)=|\{i : \mu(f_i)=\mu^\ast(f_i)\}|,
\]
where \(\mu^\ast\) is the unique stable matching. In the critical region close to stability, there are \(\Theta(n)\) destabilizing blocking pairs and only \(O(n)\) stabilizing ones, with the destabilizing side dominating once \(\varepsilon\) is small. The paper therefore shows not merely slow convergence, but a regime in which many participants remain mismatched for extended periods [2403.12183].

There is also a positive case: if the market has a nested structure of trivial fragments, such as a sequence of top-top pairs that can be peeled off one by one, expected stabilization time is on the order of \(O(n^3)\) under uniform random blocking-pair selection. Even here, however, the supplied material stresses that small perturbations or augmentations can destroy the easy dynamics and restore exponential slowdown [2403.12183].

Taken together, these results delimit the scope of SM-IB as an interpretive framework. Truncated Gale–Shapley yields a deterministic local algorithm with explicit quantitative control over residual instability; PII-RMD provides a parallel empirical anti-cycling strategy; and IDUA gives an iterative pruning method for constrained enumeration. But decentralized satisfaction of blocking pairs is not, in general, a robust or rapidly stabilizing balancing process. A plausible implication is that “iterative balancing” is best treated not as a single theorem about stable matching, but as a family of update principles whose guarantees depend sharply on the model of interaction, the notion of near stability, and the structural properties of the market.

Source: https://www.emergentmind.com/topics/stable-matching-iterative-balancing-sm-ib