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

Accelerating Error Correction Code Transformers

Matan Levy, Yoni Choukroun, Lior Wolf · DOI

Abstract

Recent advancements in neural decoders, specifically the Error Correction Code Transformer (ECCT), have demonstrated superior performance over classical algorithms like Belief Propagation (BP). However, the high computational and memory requirements of Transformers hinder their deployment on resource-constrained edge devices. This paper introduces AECCT (Accelerating Error Correction Code Transformers), which utilizes ternary weight quantization, specialized head-partitioned attention, and spectral graph encoding to achieve a 90% compression ratio and a 224x reduction in energy consumption while maintaining state-of-the-art accuracy.

Introduction

In digital communications, Error Correction Codes (ECC) ensure data integrity across noisy channels such as 5G and satellite links. While traditional algorithms like Belief Propagation are efficient, they often fall short of optimal performance. The ECCT emerged as a powerful alternative by leveraging self-attention mechanisms. Despite its efficacy, the original ECCT is computationally expensive, requiring significant floating-point operations and memory. Standard compression techniques often fail on these compact models due to a lack of redundancy. AECCT addresses these challenges through architectural and algorithmic optimizations designed for efficiency without performance degradation.

Methods

The AECCT framework incorporates three primary innovations to optimize the Transformer architecture for ECC decoding.

Adaptive Absolute Percentile (AAP) Quantization

AECCT replaces standard 32-bit floating-point weights with ternary weights (values of -1, 0, or +1). This transformation converts power-intensive multiplications into simpler integer additions and subtractions. The Adaptive Absolute Percentile (AAP) method utilizes a learnable parameter, $\delta$, to dynamically determine the optimal level of sparsity during training, allowing the model to prune less significant weights effectively.

AAP Quantization workflow for training and ternary inference.

Head Partitioning Self-Attention (HPSA)

To reduce the complexity of the self-attention mechanism, AECCT introduces Head Partitioning Self-Attention (HPSA). In the original ECCT, every attention head processes a global code-aware mask. HPSA specializes heads based on the Tanner graph topology: some heads focus on "first-ring" (direct) neighbors, while others attend to "second-ring" (neighbors of neighbors) connections. This structured approach significantly reduces dot-product calculations.

Mathematical formulation of Head Partitioning Self-Attention.

Spectral Positional Encoding (SPE)

To capture the structural properties of the error correction code, AECCT employs Spectral Positional Encoding (SPE). By using the Laplacian eigenspace of the code's Tanner graph, the model receives a mathematical "map" of connectivity, which is injected as positional encodings to guide the attention mechanism.

Evaluation and Results

AECCT was evaluated on various linear block codes, including Polar, LDPC, and BCH codes. The results demonstrate significant improvements in efficiency:

  • Energy Efficiency: AECCT achieves a 224x reduction in energy consumption for arithmetic operations on 7nm hardware compared to the FP32 baseline.
  • Memory Footprint: The model achieves a 90% compression ratio, facilitating deployment on edge devices.
  • Decoding Performance: Despite extreme quantization, AECCT matches or exceeds the Bit Error Rate (BER) performance of the full-precision ECCT.
  • Complexity: For the first time, a Transformer-based decoder matches the computational complexity of the classical Belief Propagation algorithm while providing superior decoding quality.

Discussion and Conclusion

The success of AECCT highlights that sparsity and graph-aware structural priors are essential for efficient neural decoding. By moving from binary to ternary weights, the model retains the necessary representational power while drastically reducing its footprint. While full energy savings require specialized hardware for sparse operations, AECCT sets a new benchmark for practical, high-performance neural error correction. Future work will explore scaling these techniques to longer codes and further refining learned positioning methods.

Summary updated

BibTeX
@misc{levy2024accelerating,
  author = {Matan Levy and Yoni Choukroun and Lior Wolf},
  title = {{Accelerating Error Correction Code Transformers}},
  year = {2024},
  eprint = {2410.05911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05911},
}
Figure