ESL-former:面向FPGA加速恶意软件检测的事件稀疏线性Transformer
ESL-former: Event Sparse Linear Transformer for FPGA-Accelerated Malware Detection
AI总结:
本文提出ESL-former框架,通过事件稀疏线性Transformer减少FPGA上恶意软件检测的硬件开销,同时保持分类准确率。
摘要:
基于Transformer的入侵检测在识别未知恶意软件变体方面展现出强大潜力,但由于自注意力机制的高计算与内存开销,其在资源受限的边缘设备上部署仍存在困难。本文提出一种面向FPGA边缘平台恶意软件检测的事件稀疏线性Transformer(ESL-former)框架。该方法不依赖显式注意力矩阵,而是直接从线性Transformer的累积键值状态中推导令牌与通道的重要性;引入贡献感知评分函数,衡量每个令牌或卷积核通道对线性注意力状态的扰动,无需构建二次注意力图即可移除冗余令牌与低贡献通道。为将稀疏性转化为实际硬件加速,该设计进一步用Top K活跃令牌缓冲区与硬件压缩单元替代传统基于二值掩码的执行方式,将选中的活跃令牌与通道重组为密集固定长度数据流,使下游处理单元能执行规则的乘累加操作,减少冗余内存访问与控制开销。该设计适用于延迟与片上资源使用均为关键的低功耗FPGA恶意软件检测场景,实验评估表明,所提出的稀疏线性Transformer可在保持恶意软件分类准确率的同时降低硬件成本。
英文摘要:
Transformer based intrusion detection has shown strong potential for identifying unknown malware variants, but its deployment on resource constrained edge devices remains difficult due to the high computational and memory cost of self attention. This paper presents an event sparse Linear Transformer framework for malware detection on FPGA edge platforms. Instead of relying on an explicit attention matrix, the proposed method derives token and channel importance directly from the accumulated key value state of Linear Transformer. A contribution aware scoring function is introduced to measure the perturbation of each token or kernel channel to the linear attention state, allowing redundant tokens and low contribution channels to be removed without constructing quadratic attention maps. To translate sparsity into practical hardware acceleration, the proposed design further replaces conventional binary mask based execution with a Top K active token buffer and a hardware compaction unit. The selected active tokens and channels are reorganized into dense fixed length data streams, enabling downstream processing elements to execute regular multiply accumulate operations with reduced redundant memory access and control overhead. This design is suitable for low power FPGA based malware detection, where both latency and on chip resource usage are critical. Experimental evaluation demonstrates that the proposed sparse Linear Transformer can reduce hardware cost while preserving malware classification accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。