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

Ilia Sobakinskikh, Paul Alexander Bilokon
7/24/2026
2 citations
cs.LGcs.AIcs.AR
transformer-attention

Official code: thxi/icl_thesis (5 stars, Jupyter Notebook, last commit 2023-09-04).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

thxi/icl_thesisOfficial100%
50Jupyter Notebook, TeXJul 5, 20233 years ago

Similar Papers

Cite this paper

@article{sobakinskikh2026optimizing,
  title  = {Optimizing Transformer Neural Network for Real-Time Outlier Detection on FPGAs},
  author = {Ilia Sobakinskikh and Paul Alexander Bilokon},
  year   = {2026},
  eprint = {2607.22786},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.22786v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.22786.svg)](https://codeofpaper.com/paper/2607.22786)

Discussion