Learning LDPC codes with quantized density evolution over relaxed protographs

Gennady Shutkov, Dmitry Artemasov, Alexey Frolov, Pavel Rybin, Kirill AndreevarXiv 2026

TL;DR

The authors introduce a deterministic, gradient-descent-based framework to design long protograph-based LDPC codes by optimizing a "relaxed" protograph where matrix entries represent edge probabilities. By deriving a differentiable, quantized density evolution method that computes exact ensemble-averaged performance, they eliminate the need for noisy decoder simulations and deliver optimized codes that outperform 5G standards.

What Problem Does This Paper Address?

Low-Density Parity-Check (LDPC) codes are foundational to modern digital communications, powering standards like 5G. However, designing the underlying graph structure—the parity-check matrix—that yields the best error-correction performance for a specific decoder remains a notoriously difficult combinatorial problem.

Traditional design loops rely on slow, heuristic search algorithms like genetic algorithms or simulated annealing, which randomly flip matrix entries and evaluate the results. Recent attempts to use gradient descent try to optimize a continuous relaxation of the graph, but they rely on noisy Monte Carlo simulations ("decoder-in-the-loop") to calculate gradients. This makes the optimization computationally expensive, unstable, and difficult to scale to long codes.

Methods

The core innovation is a relaxed protograph representation combined with a deterministic, quantized density evolution (DE) framework.

Instead of optimizing a discrete binary matrix, the authors define a relaxed protograph matrix $\mathbf{\Omega}$, where each entry is a continuous value between 0 and 1 representing the probability that an edge exists (a Bernoulli ensemble).

For a Normalized Min-Sum (NMS) decoder, the authors mathematically prove that tracking the distribution of messages (using quantized probability mass functions) over this relaxed graph yields the exact ensemble-averaged bit error rate (BER). Because this relaxed DE is entirely deterministic and implemented using differentiable tensor operations (like FFTs for variable-node additions), the authors can use standard backpropagation to compute exact gradients ($\nabla_\mathbf{\Omega} \log P_b^{DE}$) and optimize the graph autonomously using projected gradient descent.

Datasets

The method does not use standard machine learning datasets. Instead, it is evaluated against the standardized 5G NR LDPC codes (Base Graph 1) as a baseline.

The authors tested two specific configurations matching 5G parameters:

  • BG1-medium: Rate 1/2, dimensions (8448, 16896)
  • BG1-high: Rate 0.88 (22/25), dimensions (8448, 9600)

The structure of the 5G baseline used for comparison is illustrated below:

Fig. 1. 5G base graph 1 for the longest codes with rates 1/2 and 22/25 (0.88). Nonzero entries are shown by marks.

Key Insights and Ideas

  • Automatic "Crystallization": Even though the optimization happens in a continuous probability space, the relaxed matrices naturally converge into almost entirely binary (0 or 1) matrices by the end of training. This leaves only a tiny handful of fractional entries that can be easily resolved via a quick exhaustive search.
  • Exploiting Min-Sum Linearity: The mathematical trick relies heavily on the NMS decoding rule. Because the min-sum check-node update is multilinear with respect to independent input distributions, the ensemble average can be pushed directly into the inputs, avoiding an exponential explosion of terms ($2^{D-1}$) during calculation.
  • Directional Search Space: Unlike random-flipping heuristics, the gradient magnitudes provide physically meaningful directional information, pointing out exactly which edges across the entire graph should be promoted or suppressed simultaneously.

Key Results

  • Outperforming 5G Standards: The gradient-descent-optimized codes consistently beat the 5G NR baseline across multiple decoding algorithms, including Layered NMS and Sum-Product flooding.
  • At a Block Error Rate (BLER) of $10^{-4}$, the optimized code achieved a 0.18 dB gain for the rate-1/2 code and a 0.03 dB gain for the high-rate 0.88 code.
  • High Sample Efficiency: For the rate-1/2 code (a $24 \times 46$ matrix), the algorithm converged in under 5,000 epochs. The gradient provided a ranked direction over all matrix entries after a single differentiable pass, making it vastly more efficient than black-box or population-based optimizers.

Limitations and Future Work

  • Tied to Min-Sum Decoders: The current formulation relies on the linearity of the Min-Sum update on a regular grid. It does not easily extend to the standard Sum-Product algorithm because grid interpolation breaks this linearity.
  • Asymptotic Independence Assumption: The density evolution assumes a tree-like local neighborhood (infinite lifting factor), meaning it doesn't explicitly optimize for finite-length graph properties like girth or short cycles.
  • BER vs. FER: The loss function optimizes for Bit Error Rate (BER), whereas practical applications often care more about Frame Error Rate (FER). Developing a stable, FER-oriented training signal remains an open challenge.

Summary updated

BibTeX
@misc{shutkov2026learning,
  author = {Gennady Shutkov and Dmitry Artemasov and Alexey Frolov and Pavel Rybin and Kirill Andreev},
  title = {{Learning LDPC codes with quantized density evolution over relaxed protographs}},
  year = {2026},
  eprint = {2607.08484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.08484},
}
Figure