Minimum-Weight Parity Factor (MWPF)
- MWPF is an optimization problem defined to select a minimum-weight set of edges whose incidence parity exactly matches a prescribed defect set.
- It bridges graph parity factors and weighted linear matroid parity through Pfaffian formulations and primal-dual augmentation algorithms.
- The approach generalizes to hypergraphs via the HyperBlossom framework, providing certified decoding methods for quantum error correction.
Searching arXiv for recent and foundational papers on Minimum-Weight Parity Factor and related matroid-parity formulations. Minimum-Weight Parity Factor (MWPF) is an optimization problem that asks for a minimum-weight subset of edges or hyperedges whose incidence parity realizes a prescribed defect set. In graph-theoretic form, it subsumes parity-constrained subgraph selection such as -joins; in hypergraph form, it provides a decoding objective for quantum error correction; and in matroidal form, it can be expressed as a weighted linear matroid-parity problem on an appropriate representation matrix. The modern literature presents MWPF along two closely connected lines: a reduction of graph parity factors to weighted linear matroid parity via Pfaffian formulations and primal-dual augmentation (Iwata et al., 2019), and a hypergraph generalization in which MWPF is cast as a primal-dual covering problem over invalid subgraphs, leading to the HyperBlossom framework for decoding quantum LDPC codes (Wu et al., 7 Aug 2025).
1. Definition and core formulations
In the hypergraph formulation, is a (hyper)graph, is the syndrome or defect set, and assigns non-negative weights to hyperedges. A subset is a parity factor for syndrome if the induced defect set
satisfies . The MWPF problem is then
Equivalently, with binary variables , one minimizes 0 subject to parity constraints at every vertex: odd parity on 1, even parity on 2 (Wu et al., 7 Aug 2025).
In graphs, MWPF coincides with finding a minimum-weight subgraph whose vertex degrees have prescribed parities. The exposition based on weighted linear matroid parity states that graph-parity factors (3-joins) are a special case on the cographic matroid of an undirected graph 4. After fixing an orientation, duplicating each undirected edge into two oriented columns, and pairing those columns into lines 5, a parity base in the associated linear matroid corresponds exactly to a set 6 of edges so that each vertex has the prescribed parity of incident edges (Iwata et al., 2019).
The weighted linear matroid-parity problem itself is defined on a full-row-rank matrix 7, with the ground set given by the columns of 8, partitioned into disjoint lines 9, each line 0 carrying a real weight 1. A base 2 in the linear matroid 3 is called a parity base if it is a union of lines. The optimization problem is
4
with optimal value denoted 5 (Iwata et al., 2019). In this sense, graph MWPF is embedded into a more general algebraic parity-selection problem.
2. Reduction from graph parity factors to weighted linear matroid parity
The reduction described for graphs begins with the oriented incidence matrix of an undirected graph 6, with one row deleted so that the matrix has full rank. Each undirected edge 7 is duplicated into two columns corresponding to the two orientations, producing a matrix 8 of dimension 9. The line system is then 0, and the line weight is 1 (Iwata et al., 2019).
Under this construction, a parity base in 2 corresponds exactly to choosing a set of edges whose incidence parity matches the prescribed vertex parity pattern. The exposition states this equivalence directly: a parity base in 3 corresponds exactly to choosing a set 4 of edges so that each vertex has the prescribed parity of incident edges, i.e. 5 is a 6-join or parity factor (Iwata et al., 2019). Consequently, MWPF in graphs reduces in one shot to a weighted linear-matroid-parity instance 7.
This reduction is important because it places parity-factor optimization inside the well-developed theory of linear matroid parity. The underlying weighted linear matroid-parity algorithm of Iwata and Kobayashi is described as a combinatorial, deterministic, polynomial-time algorithm that builds on a polynomial matrix formulation using Pfaffians and adopts a primal-dual approach based on the augmenting path algorithm of Gabow and Stallmann for the unweighted problem (Iwata et al., 2019). This establishes a direct methodological bridge from blossom-style graph algorithms to algebraic matroid optimization.
A plausible implication is that MWPF inherits both combinatorial and algebraic viewpoints: combinatorially through parity-constrained subgraph selection, and algebraically through bases, lines, and exchange structures in represented matroids.
3. Pfaffian polynomial formulation and min-max structure
A central algebraic formulation introduces an indeterminate 8 and indeterminates 9 for each line 0. One forms the skew-symmetric polynomial matrix
1
where
2
Its Pfaffian expands over perfect matchings in the support graph, and Murata’s combinatorial relaxation lemma yields the degree identity
3
Equivalently, the highest exponent of 4 in the Pfaffian recovers the optimum weight of the weighted linear matroid-parity problem (Iwata et al., 2019).
The exposition makes the combinatorial meaning explicit: 5 carries the weight of the complement of a parity base, so reading off the highest exponent recovers 6 (Iwata et al., 2019). For graph MWPF, this Pfaffian representation provides an indirect encoding of parity-feasible edge sets through a perfect-matching expansion in an auxiliary skew-symmetric matrix.
The same source also presents a min-max characterization. Although no explicit LP of polynomial size is written in the paper, the Pfaffian-matching can be viewed as a max-weight perfect matching in an auxiliary graph 7, whose edge weights are the 8-degrees of corresponding entries after row and column operations. The standard matching-LP dual induces dual variables 9 and 0, with constraints of the form 1 on each line and slack inequalities on non-base exchange pairs (Iwata et al., 2019).
The key inequality for an exchange pair 2 with 3 is
4
Edges satisfying equality are called tight, and a matching is tight if all its edges are tight and no positive-5 blossom is crossed more than once (Iwata et al., 2019). Standard LP duality then yields the min-max relation between minimum parity-base weight and the maximum feasible dual objective, with complementary slackness characterizing optimal primal-dual pairs.
This structure places MWPF, at least in its graphic and represented-matroid incarnations, within the general primal-dual tradition of matching theory. The formulation is not merely existential: it supports an augmenting-path algorithm with blossom management, tight-edge search, and certified optimality.
4. Primal-dual augmenting-path algorithm in the linear matroid setting
The weighted linear matroid-parity algorithm maintains a current base 6, dual variables 7 and 8, and a laminar family of blossoms 9, each with a Boolean variable indicating whether it is positive, i.e. whether 0 (Iwata et al., 2019). Initialization arbitrarily splits each line weight 1 into 2, then runs a greedy matroid-base algorithm on 3 to find a minimum-4 base 5, sets 6, and starts with 7.
The main loop proceeds until 8 is a parity base. First, one builds the equality graph
9
and writes 0 (Iwata et al., 2019). Second, one performs a blossom-style alternating BFS in 1, labeling singletons in source lines as roots, growing alternating search trees, and creating new blossoms whenever an outer-outer collision occurs. If a path 2 is found from a source vertex in one source line to a source vertex in a different source line, augmentation is triggered.
If no augmenting path is found, the algorithm performs a dual update. The update computes
3
then shifts 4 on 5 and 6 according to base membership and adjusts 7 by 8 or 9 on designated blossoms. Any blossom with 0 is immediately expanded (Iwata et al., 2019).
When an augmenting path exists, the algorithm writes the path as a tight perfect-matching-alternating sequence and augments via a symmetric-difference pivot. For each positive blossom crossed by the path, new bud and tip vertices are introduced to maintain the blossom-tree invariants, 1 is updated by a 4-way pivot, and 2 is adjusted accordingly. Then 3 is pivoted around all vertices of the path at once, giving the new base 4. Blossoms that become trivial are collapsed, and routing in each remaining blossom is recomputed recursively (Iwata et al., 2019).
The exposition emphasizes that throughout the procedure one maintains structural conditions 5 on 6 and dual-feasibility conditions 7, and that optimality of the final parity base follows from the Pfaffian min-max argument, specifically Theorem 4.1 in the paper (Iwata et al., 2019). In the specialized graph setting, these operations correspond to the familiar grow, shrink, dual-update, and alternating-tree manipulations of blossom-based parity algorithms.
5. Hypergraph MWPF and the HyperBlossom framework
The 2025 formulation generalizes MWPF from graphs to hypergraphs and is motivated by quantum error correction decoding (Wu et al., 7 Aug 2025). The central obstacle is that, for general hypergraphs, the natural LP relaxation need not be tight: the source states explicitly that for general hypergraphs 8, so solving the LP to optimality and rounding 9 may not give an exact MWPF (Wu et al., 7 Aug 2025).
To address this, the problem is reformulated as a covering-type ILP over invalid subgraphs. A subgraph 0, with 1 and 2, is invalid if no choice 3 realizes the local syndrome 4. Denoting by 5 the collection of all invalid subgraphs, one writes the cover-based ILP
6
with 7, where 8 is the “hair” of 9, namely the edges incident to 00 but not in 01 (Wu et al., 7 Aug 2025). Relaxing integrality to 02 gives an LP with dual
03
Complementary slackness takes the form
04
HyperBlossom is presented as a primal-dual method that drives the gap to zero or certifies proximity (Wu et al., 7 Aug 2025). This is the hypergraph analogue of blossom-style exactness certificates in graph matching, but with dual variables defined on invalid subgraphs rather than only on odd-cardinality vertex sets.
The algorithm alternates two phases. The dual phase maintains a feasible dual vector 05 and identifies tight edges
06
The primal phase operates cluster-by-cluster, where clusters are connected components of 07 acting on 08, with 09 the set of hyperblossoms (Wu et al., 7 Aug 2025). For a cluster 10, the primal phase first tests local optimality by solving MWPF on 11; if the local optimum 12 equals 13, the cluster is locally optimal. Otherwise it calls 14 to extract relaxers 15, removes the relaxed edges, and if the residual subgraph is still invalid, chooses a trivial dual direction 16 supported on an invalid subgraph (Wu et al., 7 Aug 2025).
A relaxer is defined as a dual direction that remains feasible and strictly decreases the tightness of at least one tight edge. The paper describes a general framework for batch relaxing by composing multiple relaxers into one 17 (Theorem 2) (Wu et al., 7 Aug 2025). For general hypergraphs, the SingleHair subroutine constructs a hair matrix 18 for each current hyperblossom 19, looks for an odd row, and from that row derives an invalid super-subgraph 20 with a valid relaxer 21, 22. If no odd row exists for any 23, the dual is in a “single-hair” state and no further relaxer is found (Wu et al., 7 Aug 2025).
The dual phase then adds any new blossom with 24 to the cluster’s dual history, re-solves the partial LP on variables in that history to optimality, recomputes 25 and 26, and re-merges clusters (Wu et al., 7 Aug 2025). The top-level pseudocode repeatedly alternates these steps until all clusters are locally optimal, at which point it returns the global parity factor 27 together with the dual vector 28.
6. Complexity, specialization, and decoding applications
For weighted linear matroid parity, the running-time analysis in the exposition yields the following bounds. Let 29 and 30. Each blossom-oriented search, including creation of new blossoms and maintenance of 31, takes 32 field operations; each dual update also takes 33; there are at most 34 dual updates between successive augmentations by Lemma 7.2; each augmentation takes 35; and there are at most 36 augmentations. The resulting total is 37. Over a fixed finite field, this gives a strongly-polynomial 38-time algorithm (Iwata et al., 2019).
In the graphic specialization, 39 and 40. The exposition states that one need not explicitly build an 41 skew-symmetric matrix: cavity-pivot operations on 42 correspond exactly to the usual grow, shrink, and dual-update steps of 43-join via cographic blossoms, while blossom creation and expansion correspond to shrinking odd cuts in the cographic matroid (Iwata et al., 2019). The resulting bound is 44 time for obtaining a minimum-weight subgraph with the prescribed vertex-degree parities (Iwata et al., 2019).
For HyperBlossom on general hypergraphs, worst-case complexity is described in terms of the number 45 of invalid subgraphs and the cost 46 of one relaxer-finder call. One relaxation round calls at most 47 relaxers, giving 48; there are at most 49 rounds until no more new blossoms; each dual phase solves an LP in 50 variables; and summing over all rounds gives a worst-case 51 by an interior-point bound. The total is therefore bounded by
52
The same work emphasizes a certified proximity property: at any time, primal and dual feasible solutions satisfy
53
and the true optimum lies in this gap; when the gap is zero, exact optimality is certified (Wu et al., 7 Aug 2025). This certificate is especially important in decoding settings, where heuristic decoders often lack verifiable suboptimality bounds.
HyperBlossom is positioned as a unified framework for quantum error correction decoding. The paper states that it formulates Most-Likely-Error decoding as an MWPF problem and generalizes the blossom algorithm to hypergraphs via a similar primal-dual linear programming model with certifiable proximity bounds (Wu et al., 7 Aug 2025). It further states that HyperBlossom unifies existing graph-based decoders such as (Hypergraph) Union-Find decoders and the Minimum-Weight Perfect Matching decoder (Wu et al., 7 Aug 2025). The implementation, Hyperion, is described as Rust software with both floating and rational LP and Python bindings, and the reported empirical results include a 4.8x lower logical error rate than MWPM on the distance-11 surface code, a 1.6x lower logical error rate than a fine-tuned BPOSD decoder on the 54 bivariate bicycle code under code-capacity noise, and almost-linear average runtime scaling on the surface code and color code up to code distances 99 and 31 for code-capacity and circuit-level noise, respectively (Wu et al., 7 Aug 2025).
A common misconception is that MWPF is merely a renaming of MWPM. The hypergraph formulation makes clear that classical MWPM on simple graphs is only the special case of “degree-2 only hyperedges” (Wu et al., 7 Aug 2025). Another common misconception is that blossom methods intrinsically require graph matching structure. The recent literature suggests instead that blossom-like primal-dual logic can be lifted to broader parity-constrained settings, although exactness in the hypergraph case depends on additional structure or on gap certification rather than blanket LP integrality (Wu et al., 7 Aug 2025).
7. Conceptual significance and relation between the two lines of work
The two arXiv sources describe MWPF from different but compatible perspectives. The 2019 weighted linear matroid-parity work provides the algebraic and combinatorial machinery for exact minimum-weight parity selection in represented matroids, together with a Pfaffian min-max theory and an augmenting-path algorithm (Iwata et al., 2019). The 2025 HyperBlossom work extends the parity-factor viewpoint to hypergraphs and uses a covering-dual formulation over invalid subgraphs to obtain a certifying primal-dual algorithm for decoding (Wu et al., 7 Aug 2025).
Their common structure is the use of tight objects, dual feasibility, and blossom-like contractions or generalized relaxations. In the matroid setting, tightness is defined by equality in exchange inequalities involving 55 and 56, and blossoms are laminar structures governing augmenting-path search (Iwata et al., 2019). In the hypergraph setting, tightness is defined by saturated dual constraints 57, hyperblossoms are invalid subgraphs with positive dual weight, and relaxers play the role of generalized dual directions that expose new structure (Wu et al., 7 Aug 2025).
This suggests a broad interpretation of MWPF as a parity-constrained optimization paradigm rather than a single narrow graph problem. In graphs, it recovers 58-joins through cographic matroids; in represented matroids, it becomes weighted linear matroid parity; in hypergraphs, it supports a certifying decoder architecture for qLDPC codes (Iwata et al., 2019, Wu et al., 7 Aug 2025). The continuity across these settings lies in a recurring min-max pattern: a primal object encoding parity feasibility, a dual object measuring obstruction or invalidity, and an algorithmic mechanism that alternates structural search with dual adjustment until optimality or certified proximity is established.