BlockFound: Customized blockchain foundation model for anomaly detection
<|reference_start|>BlockFound: Customized blockchain foundation model for anomaly detection: We propose BlockFound, a customized foundation model for anomaly blockchain transaction detection. Unlike existing methods that rely on rule-based systems or directly apply off-the-shelf large language models, BlockFound introduces a series of customized designs to 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 modularized tokenizer to handle these multi-modal inputs, balancing the information across different modalities. Second, we design a customized mask language learning mechanism for pretraining with RoPE embedding and FlashAttention for handling longer sequences. After training the foundation model, we further design a novel detection method for anomaly detection. Extensive evaluations on Ethereum and Solana transactions demonstrate BlockFound's exceptional capability in anomaly detection while maintaining a low false positive rate. Remarkably, BlockFound 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 not only provides new foundation models for blockchain but also sets a new benchmark for applying LLMs in blockchain data.<|reference_end|>
@article{yu2024blockfound:,
    title={BlockFound: Customized blockchain foundation model for anomaly detection},
    author={Jiahao Yu, Xian Wu, Hao Liu, Wenbo Guo, Xinyu Xing},
    journal={arXiv preprint arXiv:2410.04039},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.04039},
    primaryClass={cs.CR cs.AI}
}