Recurrent Bipartite Graph Neural Networks for QC-MDPC Error Decoding in McEliece Cryptosystems
Organizations: Middlesex University, Department of Computer Science, Hendon, London NW4 4BT, UK
Abstract
As the advent of large-scale quantum computing threatens classical encryption, Quasi-Cyclic Moderate Density Parity-Check (QC-MDPC) codes have emerged as a foundational element of Post-Quantum Cryptography (PQC). However, decoding these relatively dense codes using classical Belief Propagation algorithms often leads to failures caused by short graph cycles that stall the decoder. In cryptographic applications, these failures are severe security vulnerabilities that leak secret key information. To address this, this paper proposes a Recurrent Bipartite Graph Neural Network (R-BGNN) as proof of concept. By integrating Gated Recurrent Units (GRUs) into the message-passing framework and employing a multi-topology curriculum training strategy, the R-BGNN actively learns to break limit-cycle oscillations. Evaluated across 20 unseen matrix topologies, the proposed architecture significantly outperforms classical Bit-Flipping and Min-Sum baselines, reducing the Decoding Failure Rate (DFR) by 63.7% at moderate noise levels () while converging in fewer iterations.
Figures & tables
| Architecture | Literature | Weight Granularity & Parameter Complexity | Scalability across Lengths | Secret Key Graph Preserved? | Primary Application Domain |
|---|---|---|---|---|---|
| Deep Unrolled BP | [ 17 ] | Per-edge per-layer: | No (Hard-coded to fixed graph) | Yes | High-Density Algebraic Block Codes |
| Attentive SNNMS (A-SNNMS) | [ 10 ] | Per-layer shared: | No (Requires retraining per code size) | Yes | Telecommunication LDPC (5G / Wi-Fi 6) |
| Edge-Weighted GNN (EW-GNN) | [ 18 ] | MLP edge weight generator: constant | Yes (Transferable across ) | Yes | Short Block Communication Codes |
| Neural Enhanced BP (NEBP) | [ 21 ] | Factor Graph GNN refinement: | Partial (Graph-dependent) | Yes | Non-Gaussian / Bursty Noise Channels |
| Differentiable Factor Graph | [ 22 ] | Gradient optimization of binary matrix | N/A (Code design tool) | Alters matrix | Differentiable Short Code Design |
| Component | Hyperparameter / Configuration | Parameter Count |
|---|---|---|
| Variable Node Embedding | 4,288 | |
| Check Node Embedding | 4,288 | |
| V2C Message MLP | 24,768 | |
| C2V Message MLP | 24,768 | |
| Check Node Memory | 24,960 | |
| Variable Node Memory | 24,960 |