arXiv:2607.22786cs.LGcs.AI2026-07被引 2

用FPGA加速Transformer,实现实时金融时间序列异常检测

Optimizing Transformer Neural Network for Real-Time Outlier Detection on FPGAs

论文配图:Optimizing Transformer Neural Network for Real-Time Outlier Detection on FPGAs
图 1 · 摘自论文原文
  • 将Transformer架构适配至FPGA,降低推理延迟
  • 在PYNQ-Z2板上实现低至1.2ms的端到端延迟
  • 适合需要实时数据清洗的金融风控场景

本文研究如何高效优化Transformer神经网络的推理时间,应用于金融时间序列的实时异常检测。金融时间序列(如资产价格)常含错误或异常值,导致下游处理任务失效、不稳定甚至产生危害。随着数据量持续增长,亟需兼顾准确率与处理速度的数据清洗方法。Transformer架构在自然语言处理和计算机视觉中表现优异,其捕捉长程依赖的能力对时间序列建模和异常检测极具价值。近年来,可重构性高、性能强的现场可编程门阵列(FPGAs)被广泛用于加速计算。本文探索多种Transformer架构在时间序列建模中的应用,并在PYNQ-Z2 FPGA开发板上实现高效部署,显著降低延迟。实验表明,该方案可在保持高检测精度的同时,实现端到端延迟低于1.2ms。代码已开源于https://github.com/thxi/icl_thesis。

原文摘要 · Abstract (English)

In this work, we explore how the inference time of a Transformer Neural Network can be efficiently optimized with applications to real-time anomaly detection in financial time series. The financial time series are price series such as asset prices. Unfortunately, the data is often with errors or outliers that make the downstream data processing tasks useless, unstable or even harmful. Moreover, the amount of financial time-series data has been significantly increasing. Hence, there is a need for better data-cleaning methods in terms of accuracy and in terms of processing speed. Transformers as a neural network architecture have achieved superior performances in many tasks such as Natural Language Processing and Computer Vision. Time series modelling and especially anomaly detection tasks can benefit from the features of transformers architecture in multiple ways, including the capacity to capture long-range dependencies and interactions. Increasingly powerful hardware, such as field-programmable gate arrays (FPGAs), have seen increasing usage in recent years due to their reconfigurability and high performance. They can be efficiently utilized to speed up the computations of the Transformer architecture. We explore different Transformer architectures for time series modelling and how they can be efficiently implemented on an FPGA board (PYNQ-Z2). In particular, we examine the application of Transformers to detect anomalies in time series and we show how they can be efficiently implemented on an FPGA board to minimize latency. The code is available at https://github.com/thxi/icl_thesis

TransformerFPGA异常检测实时系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。