BCTuner: 基于LLM引导的蒙特卡洛树搜索实现高效区块链参数调优
BCTuner: LLM-Guided Monte Carlo Tree Search for Efficient Blockchain Knob Tuning
AI总结:
针对许可区块链参数调优中架构复杂、语义鸿沟及试错成本高的问题,提出BCTuner框架,结合大语言模型知识推理与蒙特卡洛树搜索,通过结构化动作轨迹逐步构建配置并自适应剪枝,显著提升吞吐量并减少系统交互次数。
摘要:
参数调优在提升许可区块链性能中起着关键作用。然而,由于区块链架构的复杂性以及参数特定逻辑与调优工具数值优化需求之间的语义鸿沟,高效调优仍然具有挑战性。此外,配置变更通常跨交易管道的不同阶段耦合,使得其性能影响难以隔离和预测。由于每次试验都需要部署和分布式基准测试,无效探索会带来巨大成本。这些挑战催生了BCTuner,一个基于大语言模型(LLM)引导的框架,它结合了知识引导推理与结构化搜索。BCTuner组织多源调优知识,以支持基于LLM的参数语义、约束和部署上下文推理。它将调优形式化为结构化动作轨迹上的蒙特卡洛树搜索(MCTS)过程,其中配置是逐步构建、验证、评估和优化的,而非一步生成。BCTuner进一步应用自适应剪枝,在系统评估前丢弃不可行或低潜力的分支。我们在Hyperledger Fabric和ChainMaker上,在不同工作负载和网络设置下评估了BCTuner。实验结果表明,与默认配置相比,BCTuner实现了高达211.38%的吞吐量提升,性能比最先进的区块链调优方法高出20%,同时与区块链系统的交互次数减少了8倍。
英文摘要:
Knob tuning plays a critical role in improving the performance of permissioned blockchains. However, efficient tuning remains challenging due to the architectural complexity of blockchains and the semantic gap between knob-specific logic and the numerical optimization requirements of tuning tools. In addition, configuration changes are often coupled across different stages of the transaction pipeline, making their performance impact difficult to isolate and predict. Since each trial requires deployment and distributed benchmarking, ineffective exploration incurs substantial cost. These challenges motivate BCTuner, a Large Language Model (LLM)-guided framework that combines knowledge-guided reasoning with structured search. BCTuner organizes multi-source tuning knowledge to support LLM-based reasoning over knob semantics, constraints, and deployment context. It formulates tuning as a Monte Carlo Tree Search (MCTS) process over structured action trajectories, where configurations are incrementally constructed, validated, evaluated, and refined rather than generated in one step. BCTuner further applies adaptive pruning to discard infeasible or low-potential branches before system evaluation. We evaluate BCTuner on Hyperledger Fabric and ChainMaker under diverse workloads and network settings. Experimental results show that BCTuner achieves up to 211.38% throughput improvement over default configurations and outperforms the state-of-the-art blockchain tuning method by up to 20% in performance, while requiring up to 8x fewer interactions with the blockchain system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。