# 低密度奇偶校验码

低密度奇偶校验（LDPC）码是一种线性纠错分组码，由稀疏奇偶校验矩阵定义——在正则形式下，矩阵的每一行和每一列都含有少量固定数目的1——并通过在二分图的边上传递概率消息进行迭代译码。该码由麻省理工学院的罗伯特·G·加拉格尔（Robert G. Gallager）于1960年提出，1990年代被重新发现，如今已成为通信与存储系统中部署最广泛的信道码之一。<sup>[1](https://dspace.mit.edu/entities/publication/6efcd810-4862-40aa-b4e7-88dc677a413c)</sup><sup> • </sup><sup>[2](https://cir.nii.ac.jp/crid/1362825895219671936)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由罗伯特·G·加拉格尔在其1960年麻省理工学院理学博士论文中提出；期刊版发表于《IEEE信息论汇刊》8(1)，第21–28页，1962年1月<sup>[1](https://dspace.mit.edu/entities/publication/6efcd810-4862-40aa-b4e7-88dc677a413c)</sup><sup> • </sup><sup>[3](https://cir.nii.ac.jp/crid/1363670318481046912?lang=en)</sup> |
| 定义 | 一种线性分组码，其稀疏奇偶校验矩阵由二分坦纳图表示；加拉格尔的正则形式是分组长度为n的(n, d_v, d_c)码<sup>[4](https://arxiv.org/abs/1605.04661)</sup><sup> • </sup><sup>[5](https://www.seas.ucla.edu/csl/files/dissertations/dissertation_ttian.pdf)</sup> |
| 译码 | 在坦纳图上进行迭代置信传播（和积）消息传递；最小和算法是一种降低复杂度的变体<sup>[4](https://arxiv.org/abs/1605.04661)</sup><sup> • </sup><sup>[6](https://www.researchgate.net/publication/398292455_A_Comparative_Study_of_Channel_Coding_Schemes_in_Wireless_Communication_Turbo_LDPC_and_Polar_Codes)</sup> |
| 重新发现 | 麦凯与尼尔，“低密度奇偶校验码接近香农限的性能”，《电子学快报》32(18)，第1645–1646页，1996年8月29日<sup>[2](https://cir.nii.ac.jp/crid/1362825895219671936)</sup> |
| 已知弱点 | 由陷阱集引起的错误平层，即在高信噪比下误码率曲线趋于平坦<sup>[7](https://arxiv.org/abs/1209.0532)</sup><sup> • </sup><sup>[8](https://ieeexplore.ieee.org/document/5361488)</sup> |
| 标准化 | 5G新空口数据信道（3GPP TS 38.212）、DVB-S2/S2X卫星广播、Wi-Fi（IEEE 802.11n/ac/ax）、WiMAX（802.16e）、ATSC3.0以及NAND闪存控制器<sup>[9](https://www.etsi.org/deliver/etsi_ts/138200_138299/138212/18.07.00_60/ts_138212v180700p.pdf)</sup><sup> • </sup><sup>[10](https://www.etsi.org/deliver/etsi_en/302300_302399/302307/01.01.02_60/en_302307v010102p.pdf)</sup><sup> • </sup><sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S1874490721002512)</sup> |
| 硬件特性 | 置信传播天然具有并行性，与Turbo译码相比可提供高译码器吞吐量和中低时延<sup>[6](https://www.researchgate.net/publication/398292455_A_Comparative_Study_of_Channel_Coding_Schemes_in_Wireless_Communication_Turbo_LDPC_and_Polar_Codes)</sup> |

## 定义与结构

LDPC码是GF(2)上稀疏奇偶校验矩阵H的零空间。在加拉格尔的正则构造中，H的每一列含有少量固定数目的d_v个1，每一行含有少量固定数目的d_c个1，其原始表述中d_v至少为3；由此得到的码称为分组长度为n的(d_v, d_c)正则LDPC码。<sup>[5](https://www.seas.ucla.edu/csl/files/dissertations/dissertation_ttian.pdf)</sup><sup> • </sup><sup>[12](https://forohistorico.coit.es/index.php/biblioteca/articulos-seminales/item/low-density-parity-check-codes)</sup> 行和列权重可变的码称为非正则码，非正则设计比正则设计能更接近香农限。<sup>[13](https://explore.metascienceobservatory.org/papers/W2128765501)</sup>

H的稀疏性使其能够高效地表示为坦纳图——一种二分图，每个码字比特对应一个变量节点，每个奇偶校验方程对应一个校验节点，H的相应元素为1处则连一条边。<sup>[4](https://arxiv.org/abs/1605.04661)</sup> 许多实用码是准循环的：奇偶校验矩阵由循环置换矩阵构造而成，这简化了编码器和译码器的硬件实现。<sup>[13](https://explore.metascienceobservatory.org/papers/W2128765501)</sup>

## 历史

加拉格尔在麻省理工学院1960年的博士论文中发展了LDPC码，导师为彼得·埃利亚斯，并于1962年1月发表了期刊版。<sup>[1](https://dspace.mit.edu/entities/publication/6efcd810-4862-40aa-b4e7-88dc677a413c)</sup><sup> • </sup><sup>[3](https://cir.nii.ac.jp/crid/1363670318481046912?lang=en)</sup> 此后三十年间，该码未受太多关注，部分原因是迭代软判决译码在当时计算硬件条件下不切实际。1996年，剑桥大学卡文迪许实验室的大卫·J·C·麦凯与多伦多大学的拉德福德·M·尼尔证明，通过消息传递译码的LDPC码性能接近香农限，此后研究兴趣得以复兴。<sup>[2](https://cir.nii.ac.jp/crid/1362825895219671936)</sup> 随后关于非正则设计和密度进化的研究——密度进化是分析置信传播阈值的标准工具——确立了LDPC码作为具有实用译码算法的逼近容量码的地位。<sup>[4](https://arxiv.org/abs/1605.04661)</sup><sup> • </sup><sup>[13](https://explore.metascienceobservatory.org/papers/W2128765501)</sup>

## 译码

LDPC译码器几乎全部源自置信传播算法，也称和积算法或消息传递算法。<sup>[14](https://yairmz.github.io/LDPC/ldpc_overview/belief_propagation.html)</sup> 译码器在坦纳图上运行：每次迭代中，变量节点向相连的校验节点发送消息（对数似然比，LLR），校验节点根据奇偶约束计算更新后的消息，消息再传回。经过固定次数的迭代，或当所有校验均满足时，译码器输出比特的硬判决。<sup>[4](https://arxiv.org/abs/1605.04661)</sup>

密度进化是分析这一过程的标准方法：它在假设无环且分组长度无限的条件下，跟踪LLR消息在图中的分布，得出译码阈值——即高于该信噪比时，随着分组长度增长，错误概率趋于零。<sup>[4](https://arxiv.org/abs/1605.04661)</sup><sup> • </sup><sup>[15](https://escholarship.org/uc/item/1gr3m0wm)</sup> 最小和算法以取最小值操作替代精确的校验节点更新，是硬件中常用的降低复杂度变体。<sup>[6](https://www.researchgate.net/publication/398292455_A_Comparative_Study_of_Channel_Coding_Schemes_in_Wireless_Communication_Turbo_LDPC_and_Polar_Codes)</sup>

2024年的一项理论分析发现，LDPC码在低复杂度译码下的渐近错误率与极化码一样，具有\( 2^{-a \cdot 2^{b \cdot T/N}} \)的形式，其中T为译码器复杂度，N为码长，a和b为取决于信道和编码方案的常数。在低复杂度区间\( T \le O(N \log N) \)内，极化码渐近优于码率\( R \le 1 - J(J-1)/(2^J + (J-1)) \)的(J, K)正则LDPC码，该研究得出结论：LDPC译码效率的进一步提升在于因子图上消息传递的效率。<sup>[16](https://arxiv.org/abs/2403.19266)</sup>

## 错误平层

LDPC码的主要实用弱点是错误平层：在高信噪比下，原本在瀑布区陡降的误码率曲线趋于平坦，而非继续下降。对于应用中所关注的中等分组长度，许多LDPC码都表现出这种平坦化，这被归因于陷阱集——即变量节点和校验节点的特定构型，它们在比特翻转操作下保持稳定，难以纠正。<sup>[8](https://ieeexplore.ieee.org/document/5361488)</sup>

在正则LDPC码中，主要的陷阱集称为吸收集。对其动力学分析表明，迭代译码下呈现两阶段行为：先是内部消息的几何增长阶段，随后是定点比特翻转行为，这使得能够在数值上精确预测低于仿真可及水平的错误平层误码率。<sup>[17](https://www.researchgate.net/publication/224145838_On_the_Dynamics_of_the_Error_Floor_Behavior_in_Regular_LDPC_Codes)</sup> 关于控制平层的研究表明，如果吸收集内部的信号增长被来自集合外部的消息增长所平衡，平层可降至基本任意低的水平。<sup>[7](https://arxiv.org/abs/1209.0532)</sup> 错误平层区的密度进化分析给出了译码器克服给定陷阱集内部LLR增长所需的平均外在校验节点LLR值随信噪比变化的界。<sup>[18](https://arxiv.org/abs/1409.5783)</sup> 设计对策包括为高码率、低平层应用选择正则码，以及专门降低平层的掺杂方法。<sup>[19](https://www.sciencedirect.com/science/article/pii/S2352864822002541)</sup>

## 标准与应用

LDPC码广泛应用于通信与存储领域。在卫星广播中，DVB-S2将外层BCH码与内层LDPC码级联，码字长度为64,800比特（普通FECFRAME）或16,200比特（短FECFRAME），普通帧的码率从1/4到9/10。<sup>[10](https://www.etsi.org/deliver/etsi_en/302300_302399/302307/01.01.02_60/en_302307v010102p.pdf)</sup> 在蜂窝系统中，3GPP小组曾就5G新空口是否应替换3G和4G所用的Turbo码展开讨论，最终决定对增强移动宽带（eMBB）数据采用LDPC码族，eMBB控制信道则使用极化码。<sup>[20](https://scholar.nycu.edu.tw/en/publications/survey-of-turbo-ldpc-and-polar-decoder-asic-implementations/)</sup> 5G新空口规范TS 38.212定义了两种LDPC基图，通过循环置换矩阵扩展，提升尺寸Z取自{2, 4, 8, 16, 32, 64, 128, 256}、{3, 6, 12, 24, 48, 96, 192, 384}等集合，另有五个集合最大至Z = 384。<sup>[9](https://www.etsi.org/deliver/etsi_ts/138200_138299/138212/18.07.00_60/ts_138212v180700p.pdf)</sup>

除蜂窝和卫星链路外，LDPC码还出现在IEEE 802.16e（WiMAX）、IEEE 802.11n/ac/ax和802.11ad（Wi-Fi）、光纤通信、存储系统、深空通信、量子密钥分发以及ATSC3.0广播中。<sup>[11](https://www.sciencedirect.com/science/article/abs/pii/S1874490721002512)</sup> 它们也是NAND闪存的标准纠错方案——随着工艺微缩导致单元可靠性下降，软判决LDPC译码取代了BCH码；在闪存中，具有错误但高置信度LLR的卡死单元对消息传递译码器尤为有害，记录卡死单元位置并在译码前擦除这些LLR的方案可挽回大部分损失。<sup>[21](https://link.springer.com/article/10.1186/1687-6180-2012-208)</sup>

## 与Turbo码和极化码的比较

Turbo码曾为3G UMTS和4G LTE数据提供信道编码；在5G新空口中，LDPC码和极化码取代了它们。一项跨分组长度和码率的比较评估总结了各种权衡：LDPC码在长分组长度下接近容量且错误曲线平滑，错误平层罕见或可忽略，在坦纳图上通过置信传播译码，具有强大的天然并行性和高吞吐量，且由于可扩展并行降低时延而具有中低时延和功耗。Turbo码表现出优异的瀑布区行为，但错误平层更明显，且串行迭代依赖导致更高时延；而极化码作为二进制输入无记忆信道的首个达容量构造，需要CRC辅助的连续消除列表译码才能在短分组下具有竞争力。<sup>[6](https://www.researchgate.net/publication/398292455_A_Comparative_Study_of_Channel_Coding_Schemes_in_Wireless_Communication_Turbo_LDPC_and_Polar_Codes)</sup>

当码长很长且码率很高时，LDPC译码器通常比极化码译码器实现更高的单位芯片硬件面积吞吐量，因为置信传播可以完全并行运行，而连续消除列表译码必须逐比特处理。<sup>[22](https://calc-path.com/information-theory/modules/modern-codes)</sup> 2019年一项基于110篇论文的译码器ASIC实现综述，比较了三种码族的吞吐量、纠错能力、灵活性、面积效率和能效，结论是整体实现复杂度取决于计算复杂度之外的众多因素。<sup>[20](https://scholar.nycu.edu.tw/en/publications/survey-of-turbo-ldpc-and-polar-decoder-asic-implementations/)</sup> 在编码方面，LDPC码比替代方案引入更多复杂度，但其更简单的译码使其非常适合大分组长度。<sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC9893208/)</sup>

## References

1. [Gallager, Robert G. Low density parity check codes. Sc.D. thesis, MIT, 1960.](https://dspace.mit.edu/entities/publication/6efcd810-4862-40aa-b4e7-88dc677a413c)
2. [MacKay, D.J.C., and Neal, R.M. Near Shannon limit performance of low density parity check codes. Electronics Letters 32(18), 1645–1646, 1996.](https://cir.nii.ac.jp/crid/1362825895219671936)
3. [Gallager, R. Low-density parity-check codes. IEEE Transactions on Information Theory 8(1), 21–28, 1962.](https://cir.nii.ac.jp/crid/1363670318481046912?lang=en)
4. [Optimization of Graph Based Codes for Belief Propagation Decoding. arXiv:1605.04661.](https://arxiv.org/abs/1605.04661)
5. [Tian, T. Research on Low-Density Parity Check Codes. UCLA dissertation.](https://www.seas.ucla.edu/csl/files/dissertations/dissertation_ttian.pdf)
6. [A Comparative Study of Channel Coding Schemes in Wireless Communication: Turbo, LDPC, and Polar Codes.](https://www.researchgate.net/publication/398292455_A_Comparative_Study_of_Channel_Coding_Schemes_in_Wireless_Communication_Turbo_LDPC_and_Polar_Codes)
7. [Zhang, S., and Schlegel, C. Controlling the Error Floor in LDPC Decoding. arXiv:1209.0532.](https://arxiv.org/abs/1209.0532)
8. [Analysis of Absorbing Sets and Fully Absorbing Sets of Array-Based LDPC Codes. IEEE.](https://ieeexplore.ieee.org/document/5361488)
9. [3GPP TS 38.212 V18.7.0 (2025-07): 5G; NR; Multiplexing and channel coding. ETSI.](https://www.etsi.org/deliver/etsi_ts/138200_138299/138212/18.07.00_60/ts_138212v180700p.pdf)
10. [ETSI EN 302 307 V1.1.2 (2006-06): DVB-S2; Second generation framing structure, channel coding and modulation.](https://www.etsi.org/deliver/etsi_en/302300_302399/302307/01.01.02_60/en_302307v010102p.pdf)
11. [Novel memory efficient LDPC decoders for beyond 5G. ScienceDirect.](https://www.sciencedirect.com/science/article/abs/pii/S1874490721002512)
12. [Gallager. Low-density parity-check codes (1962 summary), COIT historical archive.](https://forohistorico.coit.es/index.php/biblioteca/articulos-seminales/item/low-density-parity-check-codes)
13. [Low-density parity-check codes (1962), Metascience Observatory Explorer.](https://explore.metascienceobservatory.org/papers/W2128765501)
14. [Belief Propagation, LDPC Codes overview.](https://yairmz.github.io/LDPC/ldpc_overview/belief_propagation.html)
15. [Error Floors of LDPC Codes and Related Topics. eScholarship, UC.](https://escholarship.org/uc/item/1gr3m0wm)
16. [Peng, Q., et al. On the Performance of Low-complexity Decoders of LDPC and Polar Codes. arXiv:2403.19266.](https://arxiv.org/abs/2403.19266)
17. [Schlegel, C., and Zhang, S. On the Dynamics of the Error Floor Behavior in (Regular) LDPC Codes. IEEE Transactions on Information Theory 56(7), 2010.](https://www.researchgate.net/publication/224145838_On_the_Dynamics_of_the_Error_Floor_Behavior_in_Regular_LDPC_Codes)
18. [Butler, B.K., and Siegel, P.H. LDPC Code Density Evolution in the Error Floor Region. arXiv:1409.5783.](https://arxiv.org/abs/1409.5783)
19. [Doped low-density parity-check codes. ScienceDirect.](https://www.sciencedirect.com/science/article/pii/S2352864822002541)
20. [Shao, S., et al. Survey of Turbo, LDPC, and Polar Decoder ASIC Implementations. IEEE Communications Surveys and Tutorials 21(3), 2309–2333, 2019.](https://scholar.nycu.edu.tw/en/publications/survey-of-turbo-ldpc-and-polar-decoder-asic-implementations/)
21. [A concatenation scheme of LDPC codes and source codes for flash memories. EURASIP Journal on Advances in Signal Processing, 2012.](https://link.springer.com/article/10.1186/1687-6180-2012-208)
22. [Information Theory — Modern Codes: LDPC, Polar and Turbo.](https://calc-path.com/information-theory/modules/modern-codes)
23. [Signal Processing Techniques for 6G. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC9893208/)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory › Algebraic coding theory

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/low-density-parity-check-code

English original: https://www.edgepedia.org/low-density-parity-check-code
