TL;DR
The authors introduce ECCM, a hybrid neural decoder for binary linear block codes that alternates between bidirectional Mamba (state-space model) layers and Transformer attention blocks. By introducing code-aware masking to Mamba and intermediate layer-wise supervision with early stopping, ECCM outperforms or matches state-of-the-art neural decoders while significantly reducing latency and computational complexity.
What Problem Does This Paper Address?
In digital communications, channel decoders recover transmitted bits corrupted by noise (such as thermal AWGN noise). While classical decoders (like Belief Propagation or Berlekamp–Massey) are computationally lightweight, recent neural decoders—particularly Transformer-based architectures like ECCT—achieve superior bit-error-rate (BER) performance on short-to-moderate block lengths by using self-attention to capture parity-check constraints.
However, Transformer-only decoders suffer from high computational overhead and quadratic scaling with sequence length. Conversely, pure State-Space Models (SSMs) like Mamba offer linear-time sequential processing and lower latency, but struggle to train stably or capture complex, dense global interactions on their own. This paper addresses this trade-off by engineering an efficient, hybrid architecture tailored to error-correcting codes.
Methods
The proposed decoder, ECCM, alternates between bidirectional Mamba blocks and masked Transformer blocks across $N_{\text{blocks}} = 8$ layers (approx. 1.2M parameters):
- Code-Informed Input Representation: The model receives the received signal amplitudes $|y|$ concatenated with the computed parity syndrome $s = H \hat{y}_b$, mapping noisy channel outputs into an invariant feature space.
- Masked Bidirectional Mamba Blocks: Standard Mamba operates sequentially and causally. The authors implement bidirectional sweeps and inject code constraints via a structural mask $f(H) = [H \; I_{n-k}]$. This mask gates the SSM projection matrices ($B$ and $C$), ensuring the internal recurrent state only updates along valid parity-check relations rather than arbitrary positions.
- Masked Transformer Blocks: Complementing Mamba's sequential updates, attention blocks use the graph-based mask $g(H)$ to model pairwise interactions across the entire codeword.
- Progressive Layer-wise Loss & Early Stopping: Every intermediate layer projects its state to predict the noise vector and computes an estimated syndrome $s^i$. Training optimizes Binary Cross Entropy (BCE) across all layers simultaneously. During inference, if the intermediate syndrome matches the target syndrome ($s^i = s$), decoding terminates immediately, skipping remaining layers.
Datasets
The decoder was evaluated using standard linear error-correcting codes obtained from the Helmling & Scholl benchmark database:
- BCH Codes: BCH(31,16), BCH(63,36), BCH(63,45), and BCH(63,51).
- Polar Codes: Polar(64,48), Polar(128,86), Polar(128,96), and Polar(64,32) (with and without a 16-bit CRC).
- LDPC Codes: LDPC(49,24), LDPC(121,60), and LDPC(121,80).
- MacKay Codes: MacKay(96,48) (a very sparse linear code).
Transmission was simulated over an Additive White Gaussian Noise (AWGN) channel using BPSK modulation across SNRs from 2 dB to 7 dB for training, and tested at 4 dB, 5 dB, and 6 dB until 500 error frames were observed.
Key Insights and Ideas
- Synergy of SSMs and Attention: Pure Mamba decoders suffer from training instability (gradient explosions) and achieve poor error correction alone ($-\ln(\text{BER}) = 8.05$ at 6 dB on BCH(63,45)). Interleaving Mamba with attention stabilizes training and yields better performance than pure Transformers of equivalent or larger size (14.26 vs. 13.31).
- Syndrome-Driven Attention: Visualizing attention maps revealed that the network relies heavily on the syndrome region as an anchor. When bit errors occur, attention spikes sharply along the corresponding parity-check columns, demonstrating that the network actively cross-references syndrome discrepancies against code constraints.
- Diminishing Returns Across Depth: Layer-usage analysis showed that most codewords are successfully corrected within the first 1–3 layers. Adding early stopping drastically cuts inference latency without degrading accuracy.
Key Results
- Error Rate Improvements: Across all tested BCH codes, ECCM outperformed prior state-of-the-art neural decoders (such as CrossMPT and AECCT). On BCH(63,45) at 6 dB, ECCM achieved a $-\ln(\text{BER})$ of 14.26 compared to CrossMPT's 11.62 (an improvement of over 18%). It also showed gains up to 7.2% on Polar(128,86) and matched or exceeded CrossMPT on LDPC and MacKay codes.
- Inference Speed: On a desktop GPU (RTX 4090), baseline ECCM without early stopping decoded Polar(128,96) in 221.98 $\mu$s, outperforming CrossMPT (272.41 $\mu$s) and ECCT (315.56 $\mu$s).
- Early Stopping Acceleration: With early stopping active, ECCM latency dropped to 46.75 $\mu$s at 6 dB for Polar(128,96)—nearly a 5$\times$ speedup over its worst-case run time.
- Competitive with Classical Baselines: ECCM comfortably beats Berlekamp–Massey on BCH codes and surpasses CRC-aided successive cancellation list decoding (CA-SCL, $L=32$) on Polar(64,32) with a 16-bit CRC.
Limitations and Future Work
- Moderate Block Lengths: Evaluations were restricted to relatively short codes ($n \le 128$). Scaling to long block codes ($n > 1000$) or non-binary codes remains unverified.
- Hardware Mismatch: Current speed measurements reflect standard PyTorch CUDA execution. The authors note that dedicated ASIC/FPGA hardware exploiting ternary masks and HPSA mechanisms would be required to realize the full real-time potential.
- Lack of Formal Guarantees: As a deep learning decoder, ECCM remains a black-box model lacking the strict certifiability and bounded-error guarantees of classical algebraic decoders.
Summary updated