White-box Error Correction Code Transformer

Ziyan Zheng, Chin Wa Lau, Nian Guo, Xiang Shi, Shao-Lun HuangCPAL (Proceedings Track) 2025

TL;DR

This paper introduces WECCT, a novel "white-box" transformer architecture for error correction code (ECC) decoding. By grounding its design in the theoretical principle of "sparse rate reduction" and incorporating the code's structure via a new "Multi-head Tanner-subspaces Self Attention" mechanism, WECCT offers a more interpretable and parameter-efficient approach to ECC decoding, achieving competitive performance.

What Problem Does This Paper Address?

Modern communication systems rely heavily on Error Correction Codes (ECCs) to ensure reliable data transmission over noisy channels. While traditional methods like belief propagation have limitations, transformer-based neural networks have shown great promise for ECC decoding. However, the "black-box" nature of these transformers makes it difficult to understand why they work and how to further improve them. This lack of interpretability hinders progress in developing more efficient and robust decoders, especially for complex codes and demanding applications. The paper aims to bridge this gap by creating an interpretable transformer architecture that explicitly leverages the underlying structure of ECCs.

Methods

The core innovation is the White-box Error Correction Code Transformer (WECCT). It's built upon the theoretical framework of "sparse rate reduction," inspired by the CRATE model, which views transformers as optimizing for compression. WECCT introduces two key novelties:

  • Multi-head Tanner-subspaces Self Attention (MTSA): This mechanism explicitly incorporates the structure of the ECC's Tanner graph (a bipartite graph representing code constraints) into the attention computation. It defines "Tanner subspaces" that constrain information flow, ensuring that interactions between bits and syndromes respect the code's algebraic structure. This is a significant departure from standard transformers that treat tokens more independently.
  • Iterative Shrinkage-Thresholding Algorithm (ISTA): This is used in conjunction with MTSA to promote sparsity in the learned representations. The overall WECCT architecture alternates between MTSA (for feature compression guided by code structure) and ISTA (for promoting sparsity), mirroring a theoretical optimization objective.

The input embedding also uses a novel LLR (Log-Likelihood Ratio) scaling for bit tokens and a reliability-scaled soft syndrome for syndrome tokens, aiming to better leverage signal quality.

Datasets

The paper does not introduce new datasets. Instead, it evaluates WECCT on various standard ECC code families, including:

  • BCH codes
  • Polar codes
  • LDPC codes (including MacKay and CCSDS codes)

The experiments are conducted on simulated AWGN (Additive White Gaussian Noise) channels.

Key Insights and Ideas

  • Interpretable Transformers for ECC: The paper demonstrates that it's possible to build transformer architectures for ECC decoding that are not only performant but also theoretically grounded and interpretable, moving away from the "black-box" paradigm.
  • Leveraging Code Structure is Key: By explicitly incorporating the Tanner graph structure into the attention mechanism (MTSA), WECCT can better learn and exploit the inherent relationships within ECCs, leading to improved efficiency and performance.
  • Sparse Rate Reduction as a Unifying Principle: The framework successfully applies the concept of sparse rate reduction, originally proposed for general data compression, to the specific problem of ECC decoding, providing a principled way to design and understand the transformer components.
  • Parameter Efficiency: The proposed architecture achieves significant parameter reduction compared to previous transformer-based ECC decoders while maintaining or exceeding performance.

Key Results

  • Competitive Performance: WECCT (with 6 layers) outperforms ECCT across various codes and SNR values. When WECCT is scaled to 12 layers, it matches or exceeds the performance of CrossMPT, a strong baseline, while using significantly fewer parameters.
  • Parameter Reduction: WECCT achieves approximately 64% parameter reduction compared to ECCT and CrossMPT for BCH(63,45) codes. Even with doubled layers, WECCT-12 uses 31% fewer parameters than CrossMPT.
  • FLOPs Reduction: WECCT-6 shows substantial FLOPs reduction compared to ECCT and CrossMPT, especially for longer codes like LDPC(121,70) (54% reduction vs. ECCT, 40% vs. CrossMPT).
  • Ablation Study Validation: Removing the Tanner subspaces mechanism significantly degrades decoding performance, validating its crucial role.
  • Theoretical Objectives Met: Analysis shows that MTSA effectively reduces the coding rate, and ISTA promotes sparsity, aligning with the theoretical design objectives.

Limitations and Future Work

  • Limitations: The paper acknowledges that while WECCT offers interpretability, a full understanding of the learned representations and their precise correlation with decoding performance is an ongoing area of research. The current work focuses on specific channel models (AWGN).
  • Future Work: The authors suggest several promising directions:
  • Extending the framework to different channel environments (e.g., fading channels).
  • Scaling to longer codes by exploring hierarchical Tanner subspaces.
  • Investigating more targeted sparsification strategies.
  • Further developing the white-box approach to provide even stronger theoretical guarantees for modern communication systems.

Summary updated

BibTeX
@inproceedings{zheng2025white,
  author = {Ziyan Zheng and Chin Wa Lau and Nian Guo and Xiang Shi and Shao-Lun Huang},
  title = {{White-box Error Correction Code Transformer}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2025},
  url = {https://openreview.net/forum?id=6lfnSzJ5qE},
}
Figure