BP-OSD: Hybrid Decoding for LDPC & Quantum Codes
- BP-OSD is a two-stage decoding architecture that first uses belief propagation to generate soft reliability information and then applies ordered statistics decoding when BP fails to converge.
- It leverages reliability ordering from BP outputs to efficiently reprocess candidate error patterns using techniques like Gaussian elimination and restricted list search.
- BP-OSD serves as a high-performance benchmark for both classical LDPC and quantum low-density parity-check codes, despite its higher post-processing complexity.
Belief Propagation-Ordered Statistics Decoding (BP-OSD), also written BP+OSD, is a hybrid decoding architecture in which belief propagation (BP) supplies soft reliability information and ordered statistics decoding (OSD) uses that information as a post-processing stage to construct a syndrome-consistent candidate when BP alone is insufficient. In the literature provided here, BP-OSD appears in several closely related roles: as a classical two-stage cascade decoder for short and medium-length LDPC codes (0710.5230), as a high-performance baseline for quantum low-density parity-check (QLDPC) decoding (Yao et al., 2023), as a “gold standard” reference pipeline for QLDPC codes (Banfi et al., 25 May 2026), and as a general reliability-based reprocessing strategy that can be adapted to quaternary Pauli statistics, circuit-level decoding graphs, and low-latency implementations (Kung et al., 2023).
1. Definition and core decoding structure
BP-OSD is a two-stage decoder. First, BP or a BP-like iterative message-passing algorithm is run on a Tanner graph or related decoding graph to produce posterior reliabilities. Second, if the iterative stage fails to produce an acceptable output, OSD uses the BP-derived reliability ordering to search among likely syndrome-consistent error patterns (0710.5230).
In the classical LDPC formulation, the decoder runs BP or enhanced min-sum iteratively, forms tentative hard decisions after each iteration, and stops immediately if all parity checks are satisfied. If decoding still fails after the maximum number of iterations , OSD is invoked once as a reprocessing step (0710.5230). The same “BP first, OSD only if needed” structure is also stated for several quantum-code settings: BP-OSD is described as a post-processing method applied “when BP fails to converge” for degenerate QLDPC decoding (Yao et al., 2023), and the same failure-triggered invocation appears in the fully parallelized BP comparison paper (Wang et al., 30 Jun 2025).
The BP stage provides the soft information on which OSD relies. In one QLDPC formulation, decoding is performed on a Tanner graph , with variable-node initialization
normalized min-sum updates
and posterior log-likelihood ratio
followed by hard decision and termination when the syndrome is satisfied or the iteration limit is reached (Rabeti et al., 13 May 2026). In that paper, BP-OSD is explicitly framed as an externally applied enhancement to such BP outputs: after BP, an ordered-statistics stage post-processes the result to search among likely error patterns (Rabeti et al., 13 May 2026).
A recurrent theme across the corpus is that BP-OSD is not merely “BP plus a final algebraic cleanup.” OSD uses the BP reliabilities to choose an ordered basis, identify unreliable variables, and enumerate a restricted candidate family rather than searching the entire syndrome coset (0710.5230, Banfi et al., 25 May 2026). This suggests that the effectiveness of BP-OSD depends at least as much on the quality of the reliability ordering as on the candidate enumeration rule.
2. Reliability ordering and ordered-statistics reprocessing
The defining ingredient of OSD is reliability-based reprocessing. In the classical syndrome-decoding formulation for a binary LDPC code with parity-check matrix , OSD is invoked only after iterative decoding failure, the bits are permuted according to reliability, a least reliable basis (LRB) is constructed, Gaussian elimination is applied, and candidate error patterns are enumerated up to order (0710.5230).
When BP operates in the LLR domain, the accumulated reliability of variable node is
0
with hard decision
1
For probability-domain BP, the generalized accumulated metric is
2
and for normalized or offset min-sum decoding the analogous metric is
3
These formulations generalize OSD beyond a single BP representation and were introduced precisely to let OSD exploit whatever soft outputs the iterative decoder provides (0710.5230).
After sorting by unreliability and performing Gaussian elimination, the classical syndrome-decoding relation is written as
4
so that the error on the basis coordinates is inferred from a guessed information-set error pattern (0710.5230). For order-5 OSD, the naive candidate count is
6
Candidate selection can then use the discrepancy criterion
7
or a two-stage screening method based on
8
which was introduced to reduce the number of real additions without performance loss in the reported experiments (0710.5230).
In quantum-code adaptations, the same logic is retained but the reliability model is refined. One quaternary formulation represents a Pauli error as
9
runs BP on the quaternary alphabet with belief vectors
0
and invokes OSD only if BP fails after 1 iterations (Kung et al., 2023). The quaternary reliability statistics are
2
together with a hard reliability vector 3 in which 4 is the number of consecutive BP iterations for which the final hard decision at qubit 5 has stayed unchanged (Kung et al., 2023). The ordering is then hierarchical: 6 if either
7
or, when 8,
9
This preserves 0 correlations during sorting and improves upon earlier approaches that separately treat 1- and 2-components (Kung et al., 2023).
A later approximate degenerate OSD formulation reuses the same integrated hard-plus-soft reliability rule with 3 as the length of the last run of identical hard decisions and the same 4, then uses that ranking to identify highly reliable subsets and shrink the active OSD problem (Kung et al., 2024). This suggests that, across both classical and quantum variants, the “ordered statistics” component is better understood as a reliability-driven basis construction and restricted list search than as a single fixed algorithmic recipe.
3. Emergence as a major benchmark in quantum LDPC decoding
Within QLDPC decoding, BP-OSD is repeatedly positioned as a principal reference point. The guided-decimation paper states that various methods have been proposed to mitigate BP non-convergence, “such as BP with ordered statistics decoding (BP-OSD) and BP with stabilizer inactivation (BP-SI),” and uses BP-OSD as the primary benchmark for evaluating the proposed BPGD algorithm (Yao et al., 2023). The multiple-bases paper likewise presents BP-OSD as one of the main high-performance baselines in the quantum LDPC decoding landscape, alongside BP-SI and BPGD (Rabeti et al., 13 May 2026).
Several papers characterize BP-OSD in stronger terms. “Best-First Ordered Statistics Decoding of Quantum LDPC Codes” states that “Belief Propagation (BP) followed by Ordered Statistics Decoding (OSD) has emerged as the gold standard for decoding quantum low-density parity-check (QLDPC) codes” (Banfi et al., 25 May 2026). “Accelerating BP-OSD Decoder for QLDPC Codes with Local Syndrome-Based Preprocessing” similarly describes BP-OSD as “the state-of-the-art decoder for QLDPC codes” while emphasizing its high decoding latency (Fan et al., 2 Sep 2025). By contrast, the degeneracy-cutting paper treats BP+OSD as the main high-accuracy baseline but explicitly contrasts its 5 cost with local 6-type post-processing alternatives (Tsubouchi et al., 9 Oct 2025).
The role BP-OSD plays in these works is specific. It is not used as the trivial baseline of “plain BP,” but as the benchmark for the regime in which BP’s known failure modes have already been addressed by a stronger post-processing mechanism (Wang et al., 30 Jun 2025). This matters because the quantum decoding problem is not merely sparse-graph inference. The provided papers repeatedly attribute BP’s difficulties to short cycles, stabilizer commutativity constraints, and degeneracy, that is, the presence of multiple syndrome-compatible error patterns with the same logical effect (Yao et al., 2023, Banfi et al., 25 May 2026).
The same benchmark role extends to realistic noise models. In the density-matrix-propagation study, BP+OSD is one of the practical heuristic decoders compared against an exact maximum-likelihood benchmark under circuit-level noise, together with MWPM, Tesseract, and Planar decoders (Benois et al., 12 Jun 2026). The low-latency evolutionary decoder likewise keeps the standard BP+OSD pipeline intact and optimizes the BP pre-decoder for the full combined objective, rather than discarding OSD altogether (Kwak et al., 20 Dec 2025).
A plausible implication is that BP-OSD occupies a methodologically distinctive position: it is strong enough that outperforming it is treated as evidence of substantive progress, yet expensive enough that many papers are devoted to approximating its accuracy while avoiding its latency and cubic post-processing cost.
4. Quantum-specific adaptations and algorithmic variants
The quantum literature in the data block does not present BP-OSD as a single canonical implementation. Instead, it records a family of variants that modify the reliability model, the candidate search, the OSD invocation policy, or the effective problem size.
One line of work refines the reliability statistics. The quaternary OSD paper introduces OSD7, where the reliability order is built from the full BP output over 8 and the hard-decision history, rather than from two separate binary decoders for 9 and 0 (Kung et al., 2023). The approximate degenerate OSD paper extends this by defining highly reliable bits through both hard reliability and a soft threshold 1, identifying a highly reliable subset 2, and reducing the system before OSD through Highly Reliable Subset Reduction (HRSR) (Kung et al., 2024). If 3 highly reliable bits are removed, the reduced system has only 4 binary variables (Kung et al., 2024).
Another line of work modifies the search strategy itself. In the best-first OSD paper, BP outputs LLRs
5
OSD-0 builds a syndrome-consistent baseline 6, and the candidate space is written as
7
Conventional OSD-8 and OSD-CS are criticized for exploring a pre-selected subset of candidates rather than traversing them in true likelihood order (Banfi et al., 25 May 2026). Best-First OSD (BF-OSD) instead traverses the coset using a priority queue, with generator weights
9
and candidate-search complexity
0
for query budget 1 (Banfi et al., 25 May 2026).
A further modification concerns when OSD is invoked. The conventional cascade runs BP until convergence and calls OSD only if BP fails (Banfi et al., 25 May 2026). BF-OSD departs from that policy and invokes OSD after a fixed, small number of BP iterations, motivated by the full circuit-level noise regime in which BP is “particularly unreliable” (Banfi et al., 25 May 2026). The evolutionary BP+OSD paper makes an analogous low-latency design choice by restricting the pre-decoder to only
2
BP iterations in the main experiments and optimizing trainable BP weights directly for the combined decoder objective (Kwak et al., 20 Dec 2025).
A different family of variants keeps OSD but tries to reduce how often or how expensively it is needed. The local syndrome-based preprocessing paper adds a front-end stage that scans raw circuit-level syndromes for local patterns and injects detected likely trivial events as hints into BP-OSD by updating the channel probability vector (Fan et al., 2 Sep 2025). The convergence-prediction paper proposes pre-routing in bivariate bicycle codes using the rule
3
so that syndromes can be routed either to BP-only decoding or to BP+OSD post-processing (Pakhunov, 9 Apr 2026).
Taken together, these variants show that “BP-OSD” denotes a decoding paradigm rather than a unique implementation. The common invariant is the use of BP-derived soft information to drive an ordered-statistics search over syndrome-consistent candidates; the major design freedom lies in how the reliabilities are constructed, how the candidate space is traversed, and when the OSD stage is triggered.
5. Performance regimes, empirical results, and known failure modes
The reported performance of BP-OSD is highly code- and noise-model dependent. In classical short and medium-length LDPC codes, the original reliability-based syndrome-decoding formulation showed that cascade connection of enhanced min-sum and OSD outperforms BP alone significantly, “in terms of either performance or complexity” (0710.5230). For a 4 LDPC example, order-0 groups achieve about 5 dB gain at FER 6 over BP with 7, while order-1 and order-2 provide larger gains (0710.5230).
In quantum-code studies under depolarizing noise, quaternary BP8+OSD9-2 reports thresholds of about 0 for toric codes, 1 for surface codes, 2 for XZZX codes, and 3 for hexagonal planar color codes (Kung et al., 2023). The approximate degenerate OSD paper reports similar threshold values for MBP4+OSD5-2 and MBP6+ADOSD7, with rotated toric 8, rotated surface 9, XZZX twisted 0, 1 color 2 to 3, and 4 color 5 to 6 (Kung et al., 2024).
At the same time, several papers document regimes in which BP-OSD is not dominant. The multiple-bases decoder paper reports that MBBP-LD improves upon BP-OSD across the bivariate bicycle codes 7, 8, and the B1 code 9, with a 0–1 reduction in logical error rate relative to BP-OSD for 2, up to 3 relative reduction for 4, and gains exceeding 5 at 6 for the B1 code (Rabeti et al., 13 May 2026). The fully parallelized BP-decoding paper claims that its speculative parallel strategy can achieve logical error rates comparable to or even better than BP-OSD on a variety of bivariate bicycle codes while offering lower latency over its parallelization (Wang et al., 30 Jun 2025). The degeneracy-cutting paper reports that BP+DC approaches BP+OSD for surface codes and can outperform BP+OSD for BB codes in the reported simulations (Tsubouchi et al., 9 Oct 2025).
The strongest caveat arises in exact benchmarking against maximum likelihood. Under circuit-level noisy memory experiments, the density-matrix-propagation paper finds that BP+OSD is near-optimal for the repetition code, but for the triangular cellular automaton code it “deviates noticeably from ML at low physical error rates,” with the discrepancy appearing for distance 5, 7, but not for distance 3, 8 (Benois et al., 12 Jun 2026). The paper attributes this qualitatively to temporal degeneracy, short loops, and the presence of hyperedges in the matching or Tanner graph (Benois et al., 12 Jun 2026).
This evidence constrains common generalizations about BP-OSD. It is not accurate to treat BP-OSD as uniformly near-optimal across all circuit-level decoding problems, nor is it accurate to treat it as obsolete. The data instead support a more technical statement: BP-OSD can be very strong in sparse-graph quantum decoding, especially under code-capacity and related models, but its ML gap can become significant when temporal correlations, degeneracy, and graph complexity become dominant (Benois et al., 12 Jun 2026).
6. Complexity, latency, and implementation tradeoffs
The central tradeoff surrounding BP-OSD is accuracy versus post-processing cost. Multiple papers state explicitly that the OSD stage introduces super-linear or cubic complexity. The multiple-bases paper contrasts its own BP-like latency with BP-OSD’s ordered-statistics stage, which scales as 9 in the worst case (Rabeti et al., 13 May 2026). The guided-decimation paper states that order-0 BP-OSD has computational complexity 0 (Yao et al., 2023). The degeneracy-cutting paper likewise describes BP+OSD as having cubic complexity in the code size due to linear solving or Gaussian elimination (Tsubouchi et al., 9 Oct 2025).
The classical LDPC OSD paper gives a more granular breakdown. The OSD component has Gaussian elimination complexity on the order of 1, phase-2 candidate enumeration complexity on the order of 3 for 4, 5 real additions for sorting, and 6 real additions for discrepancy evaluation (0710.5230). In the best-first QLDPC formulation, the costs are separated into BP cost 7 per iteration, OSD-0 sorting 8, Gaussian elimination 9, and candidate search complexity that depends on the variant: 00 for OSD-01, 02 for OSD-CS, and 03 for BF-OSD (Banfi et al., 25 May 2026).
Latency, however, is not determined by OSD alone. The local syndrome-preprocessing paper reports that a large portion of BP-OSD latency can originate from the iterative BP stage rather than the OSD stage, especially at low physical error rates on bivariate bicycle codes (Fan et al., 2 Sep 2025). For the 04 code at 05, the baseline averages were 06 BP iterations and 07 ms latency, while preprocessing reduced these to 08 iterations and 09 ms while maintaining the original logical error rate of BP-OSD (Fan et al., 2 Sep 2025). This directly qualifies the widespread simplification that “OSD dominates runtime”: in the reported BB-code experiments, BP itself can dominate total latency in the low-noise regime (Fan et al., 2 Sep 2025).
The convergence-prediction paper makes the same system-level issue explicit. For the Gross code, BP-only decoding is about 10, while BP+OSD can be about 11 in code-capacity and roughly 12 under phenomenological noise, motivating methods that predict in advance when OSD is likely to be necessary (Pakhunov, 9 Apr 2026). At 13, about 65% of nontrivial syndromes have mod-314 and essentially all of those converge under BP, so OSD can be skipped for them with no correctness loss in the reported experiments (Pakhunov, 9 Apr 2026).
The current literature therefore treats BP-OSD as both a decoder and a systems problem. The decoder is attractive because OSD guarantees a syndrome-consistent candidate and often markedly improves BP. The systems challenge is that Gaussian elimination, candidate search, and long BP runs all contribute to latency. Recent work accordingly focuses less on replacing the BP-OSD paradigm outright than on restructuring it: improving the reliability statistics (Kung et al., 2023), reducing the effective system size (Kung et al., 2024), changing the traversal of the candidate space (Banfi et al., 25 May 2026), accelerating BP with preprocessing (Fan et al., 2 Sep 2025), optimizing the BP pre-decoder for the full combined objective (Kwak et al., 20 Dec 2025), or routing only selected syndromes to OSD (Pakhunov, 9 Apr 2026).
7. Conceptual status and relations to neighboring decoders
BP-OSD sits in a broader family of “BP plus extra intelligence” decoders. The data repeatedly compare it to BP-SI, BPGD, speculative parallel BP post-processing, multi-basis BP list decoding, and local post-processors such as degeneracy cutting (Yao et al., 2023, Wang et al., 30 Jun 2025, Rabeti et al., 13 May 2026, Tsubouchi et al., 9 Oct 2025). In these comparisons, BP-OSD usually functions as the strong baseline rather than the minimal one.
Relative to BP-SI and BPGD, BP-OSD is typically described as stronger but more expensive. Guided decimation is reported to achieve performance on par with BP-OSD and BP-SI “without the need to solve systems of linear equations,” and with worst-case complexity 15 rather than 16 (Yao et al., 2023). MBBP-LD is argued to surpass BP-OSD by exploiting structured redundant parity-check representations and parallel BP decoders instead of ordered-statistics post-processing (Rabeti et al., 13 May 2026). Degeneracy cutting aims to preserve BP’s favorable local structure and linear scaling while approaching BP+OSD performance (Tsubouchi et al., 9 Oct 2025).
At a conceptual level, the best-first OSD paper offers a useful reframing: because multiple distinct error patterns can produce the same syndrome, OSD in the quantum setting is “inherently a list-decoding technique” (Banfi et al., 25 May 2026). That formulation clarifies why BP-OSD remains central despite its cost. It does not merely repair BP convergence failures; it converts BP’s local probabilistic information into a structured search over a degenerate syndrome coset. In quantum decoding, where exact physical error identification is neither necessary nor generally optimal, that list-decoding interpretation is particularly natural (Banfi et al., 25 May 2026, Benois et al., 12 Jun 2026).
A plausible implication is that the enduring importance of BP-OSD comes from this hybrid role. BP supplies scalable local inference on sparse graphical models; OSD supplies a reliability-ordered search over syndrome-consistent candidates when local inference alone is insufficient. The subsequent literature largely develops along two axes already visible in that decomposition: making the BP reliabilities more informative, and making the OSD search less costly.