将大模型接入区块链,让智能合约从自动化升级为具备推理能力的智能体。
Connecting Large Language Models with Blockchain: Advancing the Evolution of Smart Contracts from Automation to Intelligence
- 构建通用框架实现大模型与区块链数据互通,突破互操作性瓶颈。
- 在40%恶意节点干扰下,数据准确率较最优基线提升17.74%。
- 适合关注链上智能、可信AI与去中心化应用融合的研究者。
区块链智能合约推动了去中心化应用的发展,但在计算资源受限和数据孤岛普遍存在的情况下,现有合约难以充分利用大语言模型(LLMs)在智能分析与推理方面的强大能力。为此,本文提出并实现了名为{uncname}的通用框架,有效解决区块链与大模型之间的互操作性障碍。通过结合语义相关性与事实发现方法,提出创新的数据聚合策略{uncname},显著提升大模型生成数据的准确性和可信度。为验证框架有效性,构建了一个包含三类问题的测试集,涵盖10个预言机节点与5个大模型的问答交互。实验结果表明,即使在40%节点恶意攻击的条件下,所提方案相比最优基线平均提升数据准确率17.74%。该研究不仅为智能合约的智能化升级提供新路径,更揭示了大模型与区块链深度融合的巨大潜力,推动未来更复杂、更智能的合约应用发展。
原文摘要 · Abstract (English)
Blockchain smart contracts have catalyzed the development of decentralized applications across various domains, including decentralized finance. However, due to constraints in computational resources and the prevalence of data silos, current smart contracts face significant challenges in fully leveraging the powerful capabilities of Large Language Models (LLMs) for tasks such as intelligent analysis and reasoning. To address this gap, this paper proposes and implements a universal framework for integrating LLMs with blockchain data, {\sysname}, effectively overcoming the interoperability barriers between blockchain and LLMs. By combining semantic relatedness with truth discovery methods, we introduce an innovative data aggregation approach, {\funcname}, which significantly enhances the accuracy and trustworthiness of data generated by LLMs. To validate the framework's effectiveness, we construct a dataset consisting of three types of questions, capturing Q\&A interactions between 10 oracle nodes and 5 LLM models. Experimental results demonstrate that, even with 40\% malicious nodes, the proposed solution improves data accuracy by an average of 17.74\% compared to the optimal baseline. This research not only provides an innovative solution for the intelligent enhancement of smart contracts but also highlights the potential for deep integration between LLMs and blockchain technology, paving the way for more intelligent and complex applications of smart contracts in the future.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。