# Log-MAP算法

**Log-MAP算法**是一种用于卷积码和[Turbo码](https://www.edgepedia.org/zh/turbo-code)的最大后验概率（MAP）译码算法，其全部概率计算都在对数域中进行，从而将概率的乘法变为对数似然的加法，同时保持原始MAP算法的精确性能。该算法由德国航空航天研究院（DLR）通信技术研究所的研究人员帕特里克·罗伯逊（Patrick Robertson）、埃马纽埃尔·维尔布伦（Emmanuelle Villebrun）和彼得·霍赫尔（Peter Hoeher）于1995年在IEEE国际通信会议上提出。<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 对MAP（BCJR）算法的对数域重新表述，该算法由L.R. Bahl、J. Cocke、F. Jelinek和J. Raviv于1974年在IBM发表<sup>[2](https://research.ibm.com/publications/optimal-decoding-of-linear-codes-for-minimizing-symbol-error-rate)</sup> |
| Log-MAP论文 | Robertson、Villebrun和Hoeher，"A Comparison of Optimal and Sub-Optimal MAP Decoding Algorithms Operating in the Log Domain," Proc. IEEE ICC'95, Seattle, pp. 1009–1013<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup> |
| 核心运算 | max*算子，\( \max^{*}(x_1,x_2) = \max(x_1,x_2) + \ln(1+e^{-\lvert x_2-x_1\rvert}) \)，通过小型修正函数查找表计算<sup>[3](https://link.springer.com/article/10.1186/1687-1499-2013-238)</sup> |
| 性能 | 在误码率上等效于真正的MAP算法；更简单的Max-Log-MAP近似在误码率10<sup>−4</sup>处相对Log-MAP损失约0.4 dB<sup> • </sup><sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup><sup> • </sup><sup>[4](https://iris.polito.it/retrieve/e384c42e-02d0-d4b2-e053-9f05fe0a1d67/logmap_boyd_R3_v2.pdf)</sup> |
| 代价 | 由于修正项的存在，比Max-Log-MAP消耗更多逻辑资源<sup>[5](https://cdrdv2-public.intel.com/654042/an505.pdf)</sup> |
| 典型用途 | 迭代Turbo译码中的软输入软输出分量译码器，包括3GPP Turbo译码器<sup>[6](https://www.sciencedirect.com/science/article/pii/S1567173903001391)</sup> |

## 背景：MAP算法及其数值问题

该基础算法可追溯至1974年，当时IBM的L.R. Bahl、John Cocke、Frederick Jelinek和Josef Raviv推导出一种用于线性分组码和卷积码的最优译码方法，通过估计经离散无记忆信道观测的马尔可夫源的状态和转移的后验概率，来最小化符号错误概率。<sup>[2](https://research.ibm.com/publications/optimal-decoding-of-linear-codes-for-minimizing-symbol-error-rate)</sup>该方法现在通常称为[BCJR算法](https://www.edgepedia.org/zh/bcjr-algorithm)或前向-后向算法，在码网格上计算前向状态度量（alpha）、后向状态度量（beta）和分支度量（gamma），并为每个信息比特产生一个对数似然比，即该比特为1的概率与为0的概率之比的对数。<sup>[7](https://www.mathworks.com/help/wireless-hdl/ref/lteturbodecoder.html)</sup>

在大约二十年间，该算法几乎没有得到实际应用，因为它比Viterbi算法更复杂。随着1993年Turbo码的出现，情况发生了变化，当时Claude Berrou、Alain Glavieux和Punya Thitimajshima使用BCJR算法的修改版本作为其迭代译码方案的软输入软输出分量译码器。<sup>[6](https://www.sciencedirect.com/science/article/pii/S1567173903001391)</sup>

然而，直接使用概率进行计算会带来技术困难：MAP算法需要高动态范围，涉及指数等非线性函数，并且需要大量加法和乘法运算。<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup>将所有计算移入对数域解决了数值问题，并将乘法替换为加法，但早期的对数域变体是次优的，尤其是在低信噪比下，因为它们用简单的最大值替代了指数和的对数。<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup>

## 雅可比对数与max*算子

Log-MAP算法通过雅可比对数精确计算指数和，从而消除了这一近似：

\[ \ln(e^{x_1} + e^{x_2}) = \max(x_1, x_2) + \ln\bigl(1 + e^{-\lvert x_1 - x_2 \rvert}\bigr) = \max(x_1, x_2) + f_c(\lvert x_1 - x_2 \rvert). \]

第二项 \( f_c(\cdot) \) 是两个参数之差的修正函数。当两个参数接近时它最大，随着差值增大而减小到零。<sup>[8](https://patents.google.com/patent/US7634703B2/en)</sup> Robertson、Hoeher和Villebrun展示了如何递归地应用这一方法，使得对于任意项数都能精确计算 \( \ln(e^{x_1} + \cdots + e^{x_n}) \)，并且他们观察到修正项可以通过一维查找表高效实现，因此每次max运算只需要一次查表和一次加法。<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup>在实践中，修正函数通常存储在八元素查找表中。<sup>[3](https://link.springer.com/article/10.1186/1687-1499-2013-238)</sup>

其结果是一种既保留了原始MAP算法的最优性、又保持了对数域计算简便性的算法。<sup>[9](https://etheses.whiterose.ac.uk/id/eprint/1988/1/Rami_Final_PhD_Thesis.pdf)</sup>由于修正项在硬件中计算相对复杂，通常也对其进行近似，例如线性近似、阶跃近似或查找表；一种线性形式用 \( \max\bigl(0, (C - \lvert a(n)-b(n)\rvert)/2 \bigr) \) 替代修正项，累积状态度量溢出则通过基于二的幂模数的模运算处理。<sup>[8](https://patents.google.com/patent/US7634703B2/en)</sup>

## 相对Max-Log-MAP的性能与复杂度

主要竞争者是**Max-Log-MAP算法**，它用 \( \max(a,b) \) 近似 \( \max^{*}(a,b) \)，完全丢弃修正项。这是次优的，因为只利用了部分信息，但它显著降低了复杂度，且不需要指数或对数运算。<sup>[9](https://etheses.whiterose.ac.uk/id/eprint/1988/1/Rami_Final_PhD_Thesis.pdf)</sup><sup> • </sup><sup>[10](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/cmu2.12123)</sup>针对Turbo码的[仿真](https://www.edgepedia.org/zh/simulation)比较发现，在误码率10<sup>−4</sup>处，Max-Log-MAP的性能比Log-MAP差约0.4 dB，而保留部分修正的降低复杂度变体与Log-MAP的差距约在0.1 dB以内。<sup>[4](https://iris.polito.it/retrieve/e384c42e-02d0-d4b2-e053-9f05fe0a1d67/logmap_boyd_R3_v2.pdf)</sup>

三种对数域算法按其最优性顺序复杂度递增：Max-Log-MAP最简单，Log-MAP在性能上等效于真正的MAP，中间方案则以小的误码率损失换取更少的运算量。<sup>[1](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)</sup>其中一种中间方案——AvN Log-MAP算法——使用参数化平均值非递归地近似max*算子；对于Turbo网格编码调制，在并行方案的软件实现中测得它比Log-MAP简单41.1%（串行方案中为31.2%），而在误码率10<sup>−4</sup>处性能差约0.1至0.4 dB，具体取决于方案和信道。<sup>[3](https://link.springer.com/article/10.1186/1687-1499-2013-238)</sup>

## 在Turbo译码器和硬件中的应用

在Turbo译码中，两个分量译码器在迭代循环中处理接收到的码字，通过交织器交换外信息；每个分量译码器的一次运行称为半次迭代，译码持续到达到最大迭代次数或满足停止准则。<sup>[11](https://ars.copernicus.org/articles/16/77/2018/)</sup>基于MAP的分量译码器是一种软输入软输出处理器，通过该迭代方案计算并精化每个信息符号的对数似然比。<sup>[6](https://www.sciencedirect.com/science/article/pii/S1567173903001391)</sup>

硬件实现在两种变体之间进行权衡。Altera公司针对3GPP LTE的FPGA参考设计同时支持两者，将Log-MAP描述为在MAP的对数域上工作、具有良好误码率但逻辑资源消耗较高，将Max-Log-MAP描述为简化版本，使用较少的逻辑资源但误码率性能略有降低，在该设计中通过缩放因子进行校正。<sup>[5](https://cdrdv2-public.intel.com/654042/an505.pdf)</sup>商用和研究用LTE Turbo译码器在实践中绝大多数实现的是Max-Log-MAP算法，其中由一个硬件译码器交替充当两个分量译码器。<sup>[11](https://ars.copernicus.org/articles/16/77/2018/)</sup>

存储器是另一个实际约束。普通的BCJR架构直到整个帧都在存储器中才能计算后向递归，导致半次迭代的延迟为两个帧长，存储器为 \( \mathrm{BlockSize} \times \mathrm{NumStates} \times \mathrm{DataWidth} \)，其中LTE Turbo码有八个状态。滑动窗口实现一次跟踪和译码一个窗口；在一种LTE译码器实现中，窗口为32个样本，是网格约束长度7的五倍，将所需存储器降至 \( 2 \cdot 32 \cdot \mathrm{NumStates} \cdot \mathrm{DataWidth} \)。<sup>[7](https://www.mathworks.com/help/wireless-hdl/ref/lteturbodecoder.html)</sup>一种使用滑动窗口MAP、块大小为256、窗口大小为16的3GPP Turbo译码器将总存储器降至传统需求的一半到六分之一之间。<sup>[6](https://www.sciencedirect.com/science/article/pii/S1567173903001391)</sup>

## 变体

由于修正项在精确Log-MAP的成本中占主导地位，人们提出了一系列降低复杂度的近似方案，包括Linear Log-MAP、Average Log-MAP、Shift Log-MAP以及基于Jensen不等式的AvN Log-MAP，此外还有更粗糙的Max-Log-MAP。<sup>[3](https://link.springer.com/article/10.1186/1687-1499-2013-238)</sup>Log-MAP的表述本身适用于Turbo码之外的领域：BCJR算法及其对数域形式一般用于译码线性分组码和卷积码，而Log-MAP和Max-Log-MAP等低复杂度变体已被应用于例如异步物理层网络编码中的最优译码。<sup>[2](https://research.ibm.com/publications/optimal-decoding-of-linear-codes-for-minimizing-symbol-error-rate)</sup><sup> • </sup><sup>[12](https://arxiv.org/abs/1105.4683)</sup>

## References

1. [Patrick Robertson, Emmanuelle Villebrun, Peter Hoeher (1995). A Comparison of Optimal and Sub-Optimal MAP Decoding Algorithms Operating in the Log Domain. Proc. IEEE ICC'95, pp. 1009–1013.](https://www.cse.lehigh.edu/~jingli/teach/S2003turbo/notes/CompareMAP.pdf)
2. [L.R. Bahl, J. Cocke, F. Jelinek, J. Raviv (1974). Optimal Decoding of Linear Codes for Minimizing Symbol Error Rate. IEEE Trans. Inf. Theory 20(2): 284–287. IBM Research publication page.](https://research.ibm.com/publications/optimal-decoding-of-linear-codes-for-minimizing-symbol-error-rate)
3. [Reduced complexity Log-MAP algorithm with Jensen inequality based non-recursive max* operator for turbo TCM decoding. EURASIP Journal on Wireless Communications and Networking (2013).](https://link.springer.com/article/10.1186/1687-1499-2013-238)
4. [Performance of reduced-complexity decoding algorithms compared with Log-MAP (Politecnico di Torino repository).](https://iris.polito.it/retrieve/e384c42e-02d0-d4b2-e053-9f05fe0a1d67/logmap_boyd_R3_v2.pdf)
5. [AN 505: 3GPP LTE Turbo Reference Design, Altera (now Intel), January 2011.](https://cdrdv2-public.intel.com/654042/an505.pdf)
6. [Design of a 3GPP turbo decoder using SW-BCJR algorithm with small memory block. ScienceDirect.](https://www.sciencedirect.com/science/article/pii/S1567173903001391)
7. [LTE Turbo Decoder, MATLAB HDL Coder / Wireless HDL Toolbox documentation, MathWorks.](https://www.mathworks.com/help/wireless-hdl/ref/lteturbodecoder.html)
8. [US7634703B2: Linear approximation of the max* operation for log-MAP decoding, Google Patents.](https://patents.google.com/patent/US7634703B2/en)
9. [R. Khal, Ph.D. Thesis, Department of Electronics, University of York (2011), on MAP, Max-Log-MAP, and Log-MAP algorithms.](https://etheses.whiterose.ac.uk/id/eprint/1988/1/Rami_Final_PhD_Thesis.pdf)
10. [Low-complexity demapping algorithm for two-dimensional non-uniform constellations in ATSC 3.0. IET Communications (2021).](https://ietresearch.onlinelibrary.wiley.com/doi/10.1049/cmu2.12123)
11. [Where to go from here? New cross layer techniques for LTE Turbo-Code decoding at high code rates. Advances in Radio Science 16, 77 (2018).](https://ars.copernicus.org/articles/16/77/2018/)
12. [On the BCJR Algorithm for Asynchronous Physical-layer Network Coding. arXiv:1105.4683.](https://arxiv.org/abs/1105.4683)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 通信与日常技术 › 接收机信号处理方法

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/log-map-algorithm

English original: https://www.edgepedia.org/log-map-algorithm
