Abstract
Cryptoasset forensics relies heavily on attribution tags to link blockchain addresses to real-world entities. However, these tags are often inconsistent and noisy across different platforms. This paper presents a novel pipeline that leverages Large Language Models (LLMs) to harmonize these tags by linking them to structured Knowledge Graph (KG) entities. Our approach employs a two-stage process: a candidate set generator followed by an LLM-based candidate selector. Experimental results demonstrate that this method significantly outperforms traditional baselines, achieving up to a 94% F1-score. Furthermore, we show that local, privacy-preserving models like Mistral 7B can achieve performance comparable to proprietary models, making this approach viable for sensitive forensic investigations.
Introduction
In cryptoasset forensics, "attribution tags" serve as the primary link between anonymous blockchain addresses and real-world actors such as exchanges (e.g., Binance, Coinbase) or illicit groups (e.g., Lazarus Group). A significant challenge in this field is the lack of standardization; different forensic tools may label the same address with varying strings, such as btc-e versus btc-e.com.
These semantic inconsistencies create a "data quality" nightmare for investigators, potentially leading to fragmented data or false leads. To address this, we focus on the task of Entity Linking: automatically mapping varied, noisy text strings to a single, well-defined concept within a Knowledge Graph.
Methodology
The proposed system utilizes a two-stage end-to-end pipeline designed for efficiency and accuracy.
1. Candidate Set Generator
Directly comparing a tag against thousands of KG entities is computationally prohibitive. The pipeline first narrows the search space using:
- Filtering: Restricting candidates by broad categories (e.g., "Exchange").
- Blocking: Utilizing the BM25 algorithm to retrieve the top $k$ most similar names. Our findings indicate that a candidate set of just 5 entities provides a 93% recall rate.
2. Candidate Selector
The second stage employs an LLM (e.g., GPT-4o, Mistral 7B) to select the correct entity from the candidate set. The model is provided with the attribution tag and the top 5 candidates via optimized prompt templates. The LLM determines the most likely match or identifies if no suitable match exists.
Datasets
The approach was validated using three distinct datasets:
- GraphSense TagPacks: A primary ground-truth dataset containing over 500,000 tags and 2,862 unique actors.
- WatchYourBack: An aggregated dataset used to evaluate performance on "out-of-distribution" data.
- DeFi Rekt Database: A sample of 100 records from major crypto crimes, providing real-world forensic context.
Results and Discussion
The LLM-based approach demonstrated superior performance across several metrics:
- Accuracy: The pipeline outperformed baseline methods (such as BM25 or UnicornPlus) by up to 37.4% in F1-score.
- Model Viability: Mistral 7B-Instruct achieved a 90% F1-score, proving that local, consumer-grade hardware can handle forensic tasks without compromising data privacy.
- Prompt Sensitivity: Performance, particularly for GPT-4o, was highly dependent on prompt engineering. While zero-shot performance varied, few-shot prompting led to near-perfect results.
- Semantic Understanding: Unlike traditional "edit distance" metrics, LLMs successfully identified semantic similarities, correctly linking variations like "Curve Finance" and "curve.fi".
Conclusion
This research highlights the transformative potential of LLMs in cleaning and harmonizing cryptoasset forensic data. By linking noisy attribution tags to a structured Knowledge Graph, investigators can ensure data consistency across platforms. Future work will explore fine-tuning smaller open-source models on domain-specific data and extending the system to categorize unknown addresses based on transactional behavior.
Summary updated