arXiv:2501.18158cs.CRcs.LG2025-01被引 7

用大模型分析比特币交易,让黑箱变透明,识别行为更准更快。

Large Language Models for Cryptocurrency Transaction Analysis: A Bitcoin Case Study

  • 构建三层次框架,用新图表示法和采样算法降低大模型使用成本
  • 节点级信息识别准确率超98.5%,关键特征提取率达95%
  • 少量标注数据下仍能精准分类,解释性助力反诈研究

加密货币应用广泛,但现有交易分析多依赖难以理解的黑箱模型。大型语言模型(LLMs)有望填补这一空白,尤其在网络安全领域尚缺乏探索。本文以比特币为例,将LLMs应用于真实交易图谱,提出一个三层评估框架:基础指标、特征概览与上下文解读。引入可读性强的图表示格式LLM4TG,以及增强连通性的交易图采样算法CETraS,显著减少令牌消耗,使在严格限制下的中等规模图谱分析成为可能。实验表明,LLMs在基础指标和特征概览任务中表现优异,节点级信息识别准确率超过98.50%,有意义特征获取比例达95.00%;在上下文解读中,即使标签数据极少,分类任务的Top-3准确率仍达72.43%并附带解释。尽管解释并非完全准确,但充分展示了其潜力。同时指出了当前局限,并提出未来研究方向。

原文摘要 · Abstract (English)

Cryptocurrencies are widely used, yet current methods for analyzing transactions often rely on opaque, black-box models. While these models may achieve high performance, their outputs are usually difficult to interpret and adapt, making it challenging to capture nuanced behavioral patterns. Large language models (LLMs) have the potential to address these gaps, but their capabilities in this area remain largely unexplored, particularly in cybercrime detection. In this paper, we test this hypothesis by applying LLMs to real-world cryptocurrency transaction graphs, with a focus on Bitcoin, one of the most studied and widely adopted blockchain networks. We introduce a three-tiered framework to assess LLM capabilities: foundational metrics, characteristic overview, and contextual interpretation. This includes a new, human-readable graph representation format, LLM4TG, and a connectivity-enhanced transaction graph sampling algorithm, CETraS. Together, they significantly reduce token requirements, transforming the analysis of multiple moderately large-scale transaction graphs with LLMs from nearly impossible to feasible under strict token limits. Experimental results demonstrate that LLMs have outstanding performance on foundational metrics and characteristic overview, where the accuracy of recognizing most basic information at the node level exceeds 98.50% and the proportion of obtaining meaningful characteristics reaches 95.00%. Regarding contextual interpretation, LLMs also demonstrate strong performance in classification tasks, even with very limited labeled data, where top-3 accuracy reaches 72.43% with explanations. While the explanations are not always fully accurate, they highlight the strong potential of LLMs in this domain. At the same time, several limitations persist, which we discuss along with directions for future research.

大模型比特币交易分析可解释性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。