Equivalent-Constraint Message Passing
Implementation & benchmark of arXiv:2607.12187 — Auxiliary Nodes for BP Decoding of Quantum LDPC Codes
Source paper: Auxiliary Nodes for BP Decoding of Quantum LDPC Codes arXiv:2607.12187 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Add auxiliary constraint nodes generated from linear combinations of existing constraints, creating a new message-passing graph while preserving the original feasible error set. Use a neural BP layer on the augmented graph so auxiliary nodes provide alternate paths around harmful cycles without changing the target constraints.
Formulas
Mathematical statement
The paper constructs an augmented parity-check matrix by H_map = A H and an augmented syndrome by s_aug = A s, where H is the original binary parity-check matrix, s is the measured syndrome, and A is a binary matrix whose rows specify linear combinations of original checks. If an error vector e satisfies H e = s, then H_map e = A H e = A s = s_aug, so every original solution remains a solution of the augmented system. Rows of A must be computable from the measured syndrome. For binary neural message passing, x_j is a variable-node embedding, c_i is a check-node embedding, and b_i is the syndrome bit attached to check i. The auxiliary checks may be algebraically redundant but computationally useful because they alter cycles and message routes.
Implementation notes
Integrate this at the graph-construction and message-passing layers of a neural BP or GNN decoder. Start with a binary parity-check matrix H of shape m by n and measured syndrome s of length m. Construct a sparse binary matrix A with m_aug rows: retain all original identity rows, then add rows with Hamming weight two or three, such as e_i + e_j, provided the resulting check row A_k H does not duplicate an existing row. Compute H_aug = (A H) mod 2 and s_aug = (A s) mod 2. Reject candidate rows that produce zero or excessively dense checks, and cap the augmented variable and check degrees. Initialize variable embeddings from channel LLRs and check embeddings from s_aug. In each iteration, aggregate only along nonzero entries of H_aug using shared edge MLPs or learned scalar message scales. After T iterations, predict each variable error and optionally add a differentiable syndrome-consistency penalty. Pseudocode: sample candidate A; form H_aug and s_aug; initialize x and c; for t=1..T update checks then variables on H_aug; decode; optimize cross-entropy plus lambda times soft syndrome loss. Compute from the paper the matrix transformation and algebraic equivalence; estimate empirically 4-cycle count, degree growth, and oversquashing. Test on small LDPC codes with injected 4-cycles against the original neural BP graph. Success is lower error at equal message-passing steps or equal error with fewer steps, without more than about 2x graph density.
Verification
Stage 1 · Toy mechanism gate: Failed ✗
Stage 2 · Mechanism transferred to benchmark: Not tested
Stage 2 · Practical benchmark result: Not run
Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a GF(2) equivalent-constraint augmentation module with candidate auxiliary checks and a min-sum message-passing decoder. The mechanism's exact predictions manifested: 0 equivalence violations over 200 random errors per sweep, unchanged rank (12), exact row-count growth, and a density-capped augmentation of 7 auxiliary checks at 1.917x edges. However, the proposed decoder did not show a win: at 6 iterations bit error increased from 0.0295 (baseline) to 0.0362 with 4 auxiliaries and 0.0860 with 24, so the overall idea is not supported by this MVP.
- Agent confidence
- 9/10
- Baseline
- 6-step min-sum: bit error 0.0295, syndrome-failure rate 0.0817, 48 edges, 35 four-cycles
- Idea
- At 4 auxiliaries: bit error 0.0362, syndrome-failure rate 0.1033, 72 edges, 156 four-cycles; at the <=2x density cap (7 auxiliaries): 1.917x edges. The nearby k=8 decoder result was bit error 0.0557 and syndrome-failure rate 0.135.
Limitations: This is a small synthetic 12x24 binary matrix with an injected local overlap, not a standard benchmark LDPC code. Only hand-coded min-sum decoding was tested, with one fixed seed, six iterations, no learned neural embeddings or training, no FLOP-normalized comparison, and no direct oversquashing metric.
How to run: python3 experiment.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- experiment.py 5.8 KB View Raw
- report.md 1.5 KB View
- results.json 4.1 KB View Raw