mlsanityData to 14 Oct 2026

BlockScan: Detecting Anomalies in Blockchain Transactions

arXiv 2410.04039 ↗First posted 5 Oct 2024cs.CR cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

We propose BlockScan, a customized Transformer for anomaly detection in blockchain transactions. Unlike existing methods that rely on rule-based systems or directly apply off-the-shelf large language models (LLMs), BlockScan introduces a series of customized designs to effectively model the unique data structure of blockchain transactions. First, a blockchain transaction is multi-modal, containing blockchain-specific tokens, texts, and numbers. We design a novel modularized tokenizer to handle these multi-modal inputs, balancing the information across different modalities. Second, we design a customized masked language modeling mechanism for pretraining the Transformer architecture, incorporating RoPE embedding and FlashAttention for handling longer sequences. Finally, we design a novel anomaly detection method based on the model outputs. We further provide theoretical analysis for the detection method of our system. Extensive evaluations on Ethereum and Solana transactions demonstrate BlockScan's exceptional capability in anomaly detection while maintaining a low false positive rate. Remarkably, BlockScan is the only method that successfully detects anomalous transactions on Solana with high accuracy, whereas all other approaches achieved very low or zero detection recall scores. This work sets a new benchmark for applying Transformer-based approaches in blockchain data analysis.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 19 of its 36 references that are in the map. First posted on arXiv 5 Oct 2024.

Builds on

19 of 36 references.

References · 19

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  7. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
  8. 2014Distributed Representations of Sentences and Documentscited by 678
  9. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
  10. 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
  11. 2022Deep Learning for Time Series Anomaly Detection: A Surveycited by 131
  12. 2021A Review on Graph Neural Network Methods in Financial Applicationscited by 78
7 more
  1. 2023When ChatGPT Meets Smart Contract Vulnerability Detection: How Far Are We?cited by 42
  2. 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 28
  3. 2023BERT4ETH: A Pre-trained Transformer for Ethereum Fraud Detectioncited by 19
  4. 2023Blockchain Large Language Modelscited by 17
  5. 2021Anomaly Detection in Blockchain Networks: A Comprehensive Surveycited by 16
  6. 2019SoK: Transparent Dishonesty: front-running attacks on Blockchaincited by 9
  7. 2024Detecting Anomalies in Blockchain Transactions using Machine Learning Classifiers and Explainability Analysiscited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 1.

2 papers.