Abstract
Recently, the Foundation Error Correction Code Transformer (FECCT) has emerged as a promising universal channel decoder, achieving competitive decoding performance across diverse code families by relying on a single shared model backbone, optionally followed by code-specific retraining. Despite this flexibility, the high computational complexity and large parameter footprint of transformer-based decoders present substantial obstacles to practical deployment. To address these challenges, we investigate structured pruning for FECCT and propose Spectral-Aligned Pruning (SAP), a structure-aware framework that enables cross-code reuse of structured pruning masks across codes by leveraging the spectrum of the corresponding bipartite graph. After pruning, SAP performs per-code recovery via parameter-efficient low-rank adaptation (LoRA), enabling a shared pruned backbone while storing only small code-specific adapter parameters. Experiments across diverse codes show that SAP achieves decoding performance comparable to dedicated per-code pruning, while enabling substantial reductions in computational cost and model memory footprint through kernel-level structured pruning.
Introduction
In digital communications, Error-Correcting Codes (ECCs) such as LDPC, Polar, and BCH codes are essential for reliable data transmission over noisy channels. The Foundation Error Correction Code Transformer (FECCT) has recently demonstrated the potential for a "universal" decoder—a single model capable of decoding multiple code families. However, the massive parameter counts and high computational costs (FLOPs) of Transformers make them difficult to deploy on resource-constrained hardware. While structured pruning can reduce these costs, finding optimal pruning masks for every specific code is computationally expensive. We propose Spectral-Aligned Pruning (SAP) to enable efficient mask reuse across different codes.
Methods
Spectral-Aligned Pruning (SAP) consists of two main innovations: spectral mask reuse and parameter-efficient recovery using Low-Rank Adaptation (LoRA).
Spectral Mask Reuse
SAP represents each code as a bipartite (Tanner) graph and calculates its "Spectral Signature" using the top-K eigenvalues of its adjacency matrix. The system maintains a library of previously discovered pruning masks. When a new code is encountered, SAP compares its spectral signature to the library to find a near neighbor for mask reuse.
Parameter-Efficient Recovery (LoRA)
To recover performance lost during pruning, SAP uses LoRA. By freezing the pruned backbone and training only small, code-specific adapter matrices, a single device can support many codes by storing one shared backbone and several tiny LoRA files, representing only ~7% of the original model size.
Results
The researchers evaluated SAP across BCH, LDPC, and Polar code families. A key insight is the high correlation (0.94 Pearson) between the spectral similarity of two codes and the overlap of their optimal pruning masks. This confirms that the graph spectrum is an effective proxy for how the Transformer processes different codes.
SAP achieved a 40% reduction in FLOPs through structured pruning. Bit Error Rate (BER) curves demonstrate that SAP-selected masks perform almost identically to dedicated per-code masks and unpruned baselines across various code families, including 5G NR LDPC standards.
Conclusion
SAP provides a framework for making universal ECC Transformers efficient enough for real-world hardware. By leveraging spectral signatures for mask reuse and LoRA for fast recovery, SAP achieves significant complexity reduction with negligible loss in decoding accuracy. Future work includes exploring adaptive pruning ratios and combining SAP with quantization for further efficiency gains.
Summary updated