用机器学习预测闪电网络通道关闭类型,发现活跃度和历史关闭记录是关键信号。
Predicting Channel Closures in the Lightning Network with Machine Learning

- 基于通道图的时序链接分类,利用公开的八卦数据建模。
- 仅用节点活跃时间与历史关闭次数,准确率超图神经网络。
- 适合关注区块链网络可靠性与隐私限制的研究者。
闪电网络(LN)是比特币的第二层协议,用于实现快速低成本的链下交易。通道可由双方协商关闭或单方面强制关闭,后者会锁定资金并降低网络可靠性。本文研究从公开的八卦数据中预测通道关闭类型,将其建模为随时间演化的通道图上的时序链接分类任务。我们构建了一个涵盖两年LN活动的数据集,并对比了多种机器学习方法,包括MLP、时序图神经网络和谱编码。实验表明,主导预测信号是时序和行为特征:各端点最近活跃时间及节点历史关闭记录,而网络拓扑结构未提供额外收益。一个仅处理边级特征、节点事件计数和时序模式的简单MLP优于所有基于图的方法。我们讨论了闪电网络固有的隐私性——如通道余额和支付流等关键信息未公开——从根本上限制了仅凭八卦数据预测关闭的可行性。数据集和代码已开源。
原文摘要 · Abstract (English)
The Lightning Network (LN) is a second-layer protocol for Bitcoin designed to enable fast and cost-efficient off-chain transactions. Channels in the LN can be closed either by mutual agreement or unilaterally through a forced closure, which locks the involved capital for an extended period and degrades network reliability. In this paper, we study the problem of predicting channel closure types from publicly available gossip data, framing it as a temporal link classification task over the evolving channel graph. We construct a dataset spanning over two years of LN activity and benchmark a range of machine learning approaches, from MLPs to temporal graph neural networks and spectral encodings. Our experiments reveal that the dominant predictive signals are temporal and behavioural, namely how recently each endpoint was active and the per-node history of past closures, while the surrounding network topology provides no additional benefit. We find that a simple MLP operating on edge-level features, node-level event counts, and temporal patterns outperforms all graph-based approaches, and discuss how the inherent privacy of the LN, where critical information such as channel balances and payment flows remains hidden, fundamentally limits the predictability of closures from gossip data alone. We publicly release the dataset and code at https://github.com/AmbossTech/ln-channel-closure-prediction.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。