用大模型自动构建区块链数字孪生,提升准确性与复用性。
Spec2Twin-Chain: Orchestrating Bi-Level Optimization with LLMs for Blockchain Digital Twin Construction

- 上层用大模型根据需求生成架构,下层用仿真优化参数
- 通过迭代反馈使孪生体行为更准确,支持策略优化与更新
- 适合需反复验证和优化的区块链系统设计场景
构建区块链数字孪生通常需要将领域知识与系统描述转化为仿真架构,校准参数并验证。传统方法依赖特定应用建模,难以跨系统复用。本文提出Spec2Twin-Chain框架,将数字孪生构建视为双层优化问题:上层大语言模型基于系统规格、行为证据和评估反馈,生成并修正结构可行的架构;下层仿真优化器在明确目标与约束下校准架构相关参数。两层迭代进行,下层评估结果存入全局档案,用于指导上层后续提案。通过控制实验验证了该框架在孪生校准、反馈修复、压力分析、下游策略优化与策略更新中的有效性,结果表明其可构建行为准确的孪生体,通过迭代改进初始设计,并复用已校准孪生体支持后续决策。
原文摘要 · Abstract (English)
Building a blockchain digital twin largely requires translating domain knowledge and specific system descriptions into a simulator architecture, calibrating its parameters against behavioral evidence, and validating the constructed twin. These steps are commonly performed through application-specific modeling efforts that can be difficult to reuse across systems and downstream decision problems. We consider automating this process through Spec2Twin-Chain, a framework that formulates blockchain digital-twin construction as a bi-level optimization problem. At the upper level, a large language model proposes and revises structurally admissible architectures using system specifications, behavioral evidence, and feedback from evaluated designs. At the lower level, a simulation-based optimizer calibrates the architecture-conditioned parameters under explicit objectives and guardrail constraints. The two levels iterate. The evaluated candidates at lower levels are retained in a global archive and used to guide subsequent proposals at upper levels. We conduct controlled experiments involving twin calibration, feedback-driven recovery, stress analysis, downstream policy optimization, and policy updating. The results demonstrate that the framework can construct behaviorally accurate twins, improve initial designs through iterative feedback, and reuse calibrated twins to support downstream decisions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。