RNN Decoding of Linear Block Codes

Eliya Nachmani, Elad Marciano, David Burshtein, Yair Be'eryarXiv 2017 · OpenReview

Abstract

Designing a practical, low complexity, close to optimal, channel decoder for powerful algebraic codes with short to moderate block length is an open research problem. Recently it has been shown that a feed-forward neural network architecture can improve on standard belief propagation decoding, despite the large example space. In this paper we introduce a recurrent neural network architecture for decoding linear block codes. Our method shows comparable bit error rate results compared to the feed-forward neural network with significantly less parameters. We also demonstrate improved performance over belief propagation on sparser Tanner graph representations of the codes. Furthermore, we demonstrate that the RNN decoder can be used to improve the performance or alternatively reduce the computational complexity of the mRRD algorithm for low complexity, close to optimal, decoding of short BCH codes.

Introduction

In digital communications, error-correcting codes are essential for ensuring data integrity. While Low-Density Parity-Check (LDPC) codes perform near the theoretical Shannon limit for very long data blocks, they struggle at short-to-moderate lengths. The standard decoding algorithm, Belief Propagation (BP), relies on a graphical representation called a Tanner graph. For short, "High-Density" codes like Bose-Chaudhuri-Hocquenghem (BCH) codes, this graph contains many short cycles that cause BP to converge to incorrect solutions.

This paper introduces a Recurrent Neural Network (RNN) architecture designed to decode these linear block codes. By unrolling the standard BP algorithm and tying weights across iterations, the proposed method achieves significant performance gains over traditional methods while maintaining a smaller parameter footprint than previous feed-forward neural decoders.

Methodology

The authors build upon the concept of treating the BP algorithm as a deep template.

BP-RNN Architecture

The BP message-passing iterations are unrolled into a neural network. Unlike previous "feed-forward" (BP-FF) approaches where every iteration has its own set of weights, this architecture ties the weights across all iterations. This transformation creates an RNN where the "hidden state" represents the messages passed between nodes.

High-level architecture of the unrolled BP-RNN decoder showing the sequence of variable, parity, and marginalization layers.

Training and Symmetry

To improve gradient flow, multi-loss training is employed, calculating the loss at every time step to encourage rapid convergence to valid codewords. Crucially, the architecture preserves message passing symmetry, allowing the network to be trained using only the all-zero codeword while guaranteeing identical performance for any other transmitted codeword.

Integration with mRRD

The RNN decoder is also integrated into the Modified Random Redundant Iterative (mRRD) algorithm. By replacing standard BP with the RNN version, the mRRD-RNN can achieve higher accuracy with fewer parallel branches, reducing overall computational complexity.

Experimental Setup

The study evaluates performance on several BCH codes: BCH(63,45), BCH(63,36), BCH(127,64), and BCH(127,99). Performance is measured by Bit Error Rate (BER) across varying Signal-to-Noise Ratios (SNR) in an Additive White Gaussian Noise (AWGN) channel.

Results and Discussion

The BP-RNN decoder demonstrates significant improvements in error correction performance and parameter efficiency.

Performance Gains

The BP-RNN showed gains of up to 1.5dB over standard BP for the BCH(63,36) code at high SNR. As shown in the results, the RNN version matches the performance of the untied BP-FF version but with a fraction of the parameters, making it more suitable for hardware implementation.

Bit Error Rate (BER) performance comparison for the BCH(63,36) code, highlighting the gains of RNN-based decoders over standard BP.

Key Insights

  • Soft Tanner Graphs: The trained weights compensate for the "bad" geometry of the original parity check matrix, effectively learning an optimized "soft" Tanner graph.
  • Cycle Robustness: Even when using "cycle-reduced" matrices, the RNN provides an additional 1.0dB improvement, outperforming manual graph-pruning techniques.
  • Near-Optimal Decoding: Combined with mRRD, the RNN decoder reaches within 0.6dB of the optimal Maximum Likelihood decoder for BCH(63,36).

Conclusion

The RNN-based approach to decoding linear block codes offers a powerful alternative to traditional BP and feed-forward neural decoders. While it introduces a slight increase in computational complexity per iteration (approx. 8%) due to weighted multiplications, its parameter efficiency and superior BER performance are significant advantages. Future work will explore weight quantization for FPGA/ASIC optimization and learning the permutations used in the mRRD algorithm.

Summary updated

Abstract

Designing a practical, low complexity, close to optimal, channel decoder for powerful algebraic codes with short to moderate block length is an open research problem. Recently it has been shown that a feed-forward neural network architecture can improve on standard belief propagation decoding, despite the large example space. In this paper we introduce a recurrent neural network architecture for decoding linear block codes. Our method shows comparable bit error rate results compared to the feed-forward neural network with significantly less parameters. We also demonstrate improved performance over belief propagation on sparser Tanner graph representations of the codes. Furthermore, we demonstrate that the RNN decoder can be used to improve the performance or alternatively reduce the computational complexity of the mRRD algorithm for low complexity, close to optimal, decoding of short BCH codes.
BibTeX
@misc{nachmani2017rnn,
  author = {Eliya Nachmani and Elad Marciano and David Burshtein and Yair Be'ery},
  title = {{RNN Decoding of Linear Block Codes}},
  year = {2017},
  eprint = {1702.07560},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.07560},
}
Figure