NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Linear Block Error Correction Codes

Yoni Choukroun, Lior Wolf

Introduction

Error Correction Codes (ECC) are fundamental to modern telecommunications, ensuring reliable data transmission over noisy channels. Traditionally, codes like Polar, BCH, and LDPC have been designed through rigorous mathematical construction. While deep learning has recently advanced the decoding process, the design of the codes themselves has remained largely manual. The primary challenge in joint optimization is the non-differentiability of operations over the order-two Galois Field (GF(2)), such as XOR and binarization, which prevents standard backpropagation.

The DC-ECCT Framework

This paper introduces the Deep Coding Error Correction Code Transformer (DC-ECCT), a unified, differentiable framework for the joint training of binary linear block codes and their neural decoders. To enable gradient-based optimization, the authors implement several key innovations:

Overview of the end-to-end differentiable framework for joint code and decoder optimization.
  1. Differentiable Binarization: A Straight-Through Estimator (STE) is employed to handle the binarization of the generator matrix ($G$), allowing gradients to flow through discrete bits.
  2. The XOR Trick: Binary values are mapped to a bipolar domain ($\{1, -1\}$), where the XOR operation is replaced by differentiable multiplication.
  3. Differentiable Masking: The framework utilizes a differentiable attention mask within the Transformer-based decoder, allowing the model to optimize internal code relationships during training.
  4. All-Ones Message Training: Training with a message of all ones was found to be critical for stable backpropagation, preventing parity checks from canceling out gradient information.
Architecture of the DC-ECCT decoder, featuring syndrome-based initial embedding and multi-head self-attention (MH-SA) layers.

Experimental Results

The researchers evaluated DC-ECCT against standard code families, including Polar, BCH, LDPC, and Reed-Solomon codes. The results demonstrate that codes optimized end-to-end significantly outperform existing neural decoders. For instance, on BCH(31,16) codes at an SNR of 6, the negative log Bit Error Rate (BER) improved from 9.27 to 12.84.

Crucially, the "learned" codes also showed superior performance when paired with classical Belief Propagation (BP) decoders. This suggests that the framework discovers fundamentally better code structures rather than merely overfitting to the neural architecture.

Key Insights and Limitations

The optimization process naturally leads to emergent sparsity in parity-check matrices, a desirable trait for reducing computational complexity. Furthermore, the choice of initialization is significant; Polar codes provided an excellent starting point, indicating an alignment between the Transformer's inductive bias and the recursive structure of Polar codes.

Despite these successes, challenges remain. The optimization landscape is highly non-convex, making performance sensitive to initialization. Additionally, providing mathematical guarantees (e.g., minimum distance) for learned codes is difficult compared to traditional methods. Future work will focus on scaling these techniques to longer codewords.

Summary updated

BibTeX
@inproceedings{choukroun2024learning,
  author = {Yoni Choukroun and Lior Wolf},
  title = {{Learning Linear Block Error Correction Codes}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Kf9CqdI8Rb},
}
Figure