atlas

Research map / Vision-language and multimodal / Human and embodied modeling

BlockScan: Detecting Anomalies in Blockchain Transactions

NeurIPS 2025 · Vision-language and multimodal › Human and embodied modeling · approach: Medical vision-language models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes BlockScan, a BERT/RoBERTa-style masked language model with a custom multi-modal tokenizer, RoPE and FlashAttention, that flags blockchain transactions by masked-token reconstruction failure, evaluated on Ethereum and Solana DeFi transactions.

Problem

Detecting anomalous DeFi transactions (e.g., exploit-related) whose inputs mix blockchain hashes/addresses, large numbers, and log text; prior rule-based, traditional ML, and vanilla GPT-style approaches fail to model this structure well.

Approach

A customized MLM Transformer with a modality-specific tokenizer (frequent addresses as single tokens, numbers converted to hex and subword-tokenized, logs subword-tokenized), trained on benign transactions only; anomalies are scored by the fraction of masked tokens whose true token is not in the model's top-s predictions, with a theoretical domain-adaptation bound motivating the score.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use BlockScan instead of BlockGPTtransaction anomaly detection · Solana, k=20Recall: 27.78% -> 72.22%Helped
use BlockScan instead of BlockGPTtransaction anomaly detection · Ethereum, k=10Recall: 70% -> 80%Helped
add the customized tokenizer rather than use default BERT WordPiece (ablation)BlockScan · SolanaRecall: 0% -> 44.44%Helped
encode log messages with subword tokenization rather than unique tokens (ablation)BlockScan · SolanaRecall: 0% -> 44.44%Helped
use RoPE rather than absolute positional embeddings (ablation)BlockScan · SolanaRecall: 22.22% -> 44.44%Helped
use the larger model rather than BERT-base (ablation)BlockScan · SolanaRecall: 5.56% -> 44.44%Helped
set detection mask ratio g=5 instead of the default g=15% (ablation)BlockScan · Solana, k=10Recall: 44.44% -> 33.33%Hurt
set detection mask ratio g=10 instead of the default g=15% (ablation)BlockScan · Solana, k=10Recall: 44.44% -> 33.33%Hurt
use one candidate token (s=1) rather than the default s=3 (ablation)BlockScan · Solana, k=20Recall: 72.22% -> 77.78%Helped
use five candidate tokens (s=5) rather than the default s=3 (ablation)BlockScan · Solana, k=10Recall: 44.44% -> 44.44%No clear effect
use FlashAttention (ablation)BlockScan · EthereumTraining time (s): 9,415 -> 7,042Helped
use FlashAttention (ablation)BlockScan · EthereumGPU memory usage (GB): 78.4 -> 41.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: Ethereum DeFi transactions (Oct 2020 to Apr 2023) Solana DeFi transactions (Sep to Dec 2023)

Benchmarks: Ethereum DeFi transaction anomaly set (10 malicious) Solana DeFi transaction anomaly set (18 malicious)

Metrics: FPR Recall Precision

Baselines: BlockGPT Doc2Vec + GMM GPT-4o Heuristic (sequence length)

Builds on: RoBERTa BlockGPT FlashAttention RoPE DeBERTa

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy