- Introduced by
- Robert Gallager
- Year
- 1962
- Type
- linear error-correcting code
- Family
- Coding theory
What does it do?
Low-density parity-check (LDPC) codes are linear error-correcting codes defined by a sparse parity-check matrix.
Gallager introduced them in 1962, and Richardson and Urbanke later characterised their capacity under message-passing decoding (2001). They are now part of several wireless communication standards.
The intuition behind the method
A dense parity-check matrix ties every check to many bits, which makes decoding expensive for long codes. LDPC codes instead use a parity-check matrix in which most entries are zero, so each check involves only a few bits. The receiver represents this structure as a bipartite graph, with variable nodes for transmitted bits and check nodes for parity equations. Decoding is iterative message passing along the graph's edges: each variable node combines evidence from the checks it belongs to, updates its belief about its bit, and returns refined messages. Because each exchange touches only local neighbours, the work per iteration scales with the number of edges, which is what makes decoding practical for long blocks.
History
Gallager introduced LDPC codes in 1962 together with a simple, nonoptimal decoding scheme that operates directly on the channel a posteriori probabilities. Richardson and Urbanke (2001) established the capacity of LDPC codes under message-passing decoding for binary-input memoryless channels. LDPC codes were later adopted in wireless standards, such as WiFi 6 and 5G NR.
When to use it
Choose LDPC when a system needs soft-decision decoding of fairly long blocks, and the target standard or hardware platform already supports it. Its message-passing structure maps well onto parallel decoders. Avoid designing an LDPC code from scratch for very short blocks, because finite-length performance can fall well below asymptotic predictions; for that regime, compare against other short-block codes such as polar codes (see FAQ). Do not choose LDPC if a standard you must interoperate with mandates a different code. The asymptotic thresholds of Richardson and Urbanke describe very long codes and are not guarantees for a specific finite design.
Limitations and considerations
- Belief propagation is run on graphs that contain cycles, so for a given finite code it does not guarantee convergence to the maximum-likelihood codeword.
- Finite-length performance depends on fine structure such as short cycles and small trapping configurations (absorbing sets); asymptotic thresholds do not capture these effects.
- Constructing, storing and verifying large, irregular parity-check matrices adds implementation complexity as block length grows.
- Quantising messages in fixed-point hardware changes decoder behaviour, so bit allocation must be tuned and verified.
- The number of iterations needed depends on channel conditions and code design, so decoding latency is not fixed in advance.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Sparse parity checks keep the work per decoding iteration proportional to the number of graph edges, which allows practical decoding of long blocks.
- Message-passing updates are local and largely independent of one another, which suits parallel hardware such as VLSI or GPU decoders.
- Richardson and Urbanke give an algorithm that determines the capacity of LDPC codes under belief-propagation decoding on binary-input memoryless channels to any desired accuracy, so designs can be compared analytically before simulation.
- Gallager's ensemble offers a family of codes whose column and row weights can be chosen to suit the target rate and block length.
- Gallager's analysis shows that, under maximum-likelihood decoding on a sufficiently quiet binary-input symmetric channel, the error probability decreases exponentially with block length for fixed rate and fixed column weight.
Applications
- WiFi-6 (802.11ax): LDPC is one of the channel codes specified for high-throughput wireless local area networks.
- 5G NR: LDPC codes are specified for the data channel of New Radio.
How it works
How it works
Encoding produces a codeword c that satisfies H·c = 0 (mod 2), where H is the sparse parity-check matrix. The code is defined by these constraints, so practical encoders must be derived from the structure chosen for H. Even when H is sparse, the generator matrix obtained from it is generally dense, so encoding complexity must be assessed separately from decoding complexity. Structured constructions, such as quasi-cyclic matrices, are commonly chosen to simplify encoding.
H is designed to have few non-zero entries. In Gallager's regular ensemble, each column contains a small fixed number j ≥ 3 of ones and each row a larger fixed number k > j. Keeping H sparse limits the number of graph edges and therefore the decoder's work per iteration.
The receiver obtains soft information for each received bit, typically log-likelihood ratios, rather than hard 0/1 decisions. These values carry the channel reliability that the decoder uses in its first iteration.
H is represented as a bipartite (Tanner) graph: variable nodes correspond to code bits, check nodes to parity equations, and an edge joins a variable node to every check in which that bit appears. Short cycles in this graph produce correlated messages and degrade decoding, so graph construction is an explicit design step.
Belief propagation runs iteratively. Check nodes send messages based on the parity constraints, variable nodes combine incoming messages with their channel values, and the exchange repeats. After each iteration, hard decisions are taken and the decoder tests whether H·ĉ = 0 (mod 2). A satisfied syndrome means that the decoder has reached a valid codeword. Because the code is the set of all words satisfying these constraints, a different valid codeword can also satisfy them, so satisfied checks do not by themselves confirm that the transmitted codeword was recovered; correctness has to be established by simulation or by an outer check such as a CRC. An unsatisfied check indicates an error but does not identify which bits are wrong. Decoders stop at a maximum number of iterations; if the checks are still unsatisfied at that point, the frame is counted as a decoding failure. Performance is reported as frame error rate (FER) and bit error rate (BER) against Eb/N0 over many simulated frames. At high SNR, an error floor appears as a flattening of these curves, the signature of structures such as absorbing sets (see FAQ).
Common pitfalls
- Using a graph with short cycles: correlated messages can make belief propagation oscillate or settle on an incorrect codeword.
- Running more iterations than needed: once the decisions stop changing, extra iterations increase decoding latency and energy consumption without improving the error rate.
- Assuming min-sum decoding matches sum-product performance: min-sum is an approximation to belief propagation, and its performance loss depends on code design and SNR, so measure it for the actual design.
- Judging a design only by its asymptotic threshold: short blocks may underperform, so simulate the actual block length and rate.
- Simulating in floating point but deploying in fixed point: quantisation can change the measured error rate.
Frequently asked questions
What makes LDPC decoding efficient compared to general linear codes?
Each bit participates in only a few parity checks, so message passing touches only the edges of the graph, and the work per iteration grows with the number of edges rather than with a dense matrix operation. A dense parity-check matrix would require generic linear-algebra steps that scale much more steeply with block length.
What is an absorbing set and why does it matter?
An absorbing set is a small structure in the graph in which belief propagation can settle on a wrong configuration and fail to correct it. Such structures are associated with error floors, where the error rate falls slowly at high SNR. Designers reduce them through careful graph construction.
How does LDPC compare with polar codes?
Both are code families that can approach channel capacity, but their constructions and finite-length behaviour differ. Performance at a short block length depends on the specific design, so the reliable basis for choosing between them is a comparison under the block length, rate and channel of your application. The code used on a given channel is fixed by the relevant standard.
Why is the girth of the graph important in LDPC codes?
The girth is the length of the shortest cycle in the bipartite graph. Short cycles (girth below 6) cause messages to return to a node after few steps, so the decoder combines correlated information and may not converge to the correct codeword. Designs therefore try to maximise girth within the sparsity constraints, and finite-length performance still needs simulation.
Related methods
Sources
Gallager, R. G. (1962). Low-density parity-check codes. IRE Transactions on Information Theory, 8(1), 21-28.
Open DOI referenceRichardson, T. J., & Urbanke, R. L. (2001). The capacity of low-density parity-check codes under message-passing decoding. IEEE Transactions on Information Theory, 47(2), 599-618.
Open DOI reference