arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05911cs.LGcs.AIcs.ITmath.IT
收藏

加速纠错码Transformer

Accelerating Error Correction Code Transformers

The Blavatnik School of Computer Science(布拉瓦尼克计算机科学学院);Tel Aviv University(特拉维夫大学)

Matan Levy, Yoni Choukroun, Lior Wolf

AI总结:

针对纠错码Transformer(ECCT)计算与内存需求高、低精度量化易降效的问题,提出三值权重量化、码感知自注意力、Tanner图特征分解位置编码的加速方案,实现90%压缩率与超224倍算术能耗降低,推动其在资源受限场景落地。

摘要:

纠错码(Error Correction Code, ECC)是保障通信系统中信息可靠传输的关键技术。Choukroun & Wolf(2022b)近期提出了纠错码Transformer(Error Correction Code Transformer, ECCT),在多种传输信道和码族上均展现出可观的性能。但与传统解码算法相比,其过高的计算与内存需求限制了实际应用。由于ECCT本身架构小巧,现有极低精度量化技术往往会导致紧凑型神经网络性能下降,因此实现ECCT的有效量化面临巨大挑战。本文提出了一种针对基于Transformer的解码器的新型加速方法。我们首先提出了专为ECCT设计的三值权重量化方法,构建出无乘法线性层的解码器。其次提出了优化的自注意力机制,通过码感知多头处理降低计算复杂度。最后通过Tanner图特征分解实现位置编码,为图连通性提供更丰富的表示。该方法不仅性能匹配甚至超越ECCT,还显著降低了能耗、内存占用与计算复杂度。我们的方法让基于Transformer的纠错更接近资源受限环境下的实际部署,在现代硬件上实现了90%的压缩率,算术运算能耗至少降低224倍。

英文摘要:

Error correction codes (ECC) are crucial for ensuring reliable information transmission in communication systems. Choukroun & Wolf (2022b) recently introduced the Error Correction Code Transformer (ECCT), which has demonstrated promising performance across various transmission channels and families of codes. However, its high computational and memory demands limit its practical applications compared to traditional decoding algorithms. Achieving effective quantization of the ECCT presents significant challenges due to its inherently small architecture, since existing, very low-precision quantization techniques often lead to performance degradation in compact neural networks. In this paper, we introduce a novel acceleration method for transformer-based decoders. We first propose a ternary weight quantization method specifically designed for the ECCT, inducing a decoder with multiplication-free linear layers. We present an optimized self-attention mechanism to reduce computational complexity via codeaware multi-heads processing. Finally, we provide positional encoding via the Tanner graph eigendecomposition, enabling a richer representation of the graph connectivity. The approach not only matches or surpasses ECCT's performance but also significantly reduces energy consumption, memory footprint, and computational complexity. Our method brings transformer-based error correction closer to practical implementation in resource-constrained environments, achieving a 90% compression ratio and reducing arithmetic operation energy consumption by at least 224 times on modern hardware.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑