LiquiLM: 通过DCN和LLMs弥合流动性缺陷审计中的语义鸿沟
LiquiLM: Bridging the Semantic Gap in Liquidity Flaw Audit via DCN and LLMs
AI总结:
本文提出LiquiLM框架,结合LLMs和DCN,通过动态交互流动性关键合同与缺陷描述,弥合代码实现与高阶流动性意图间的语义鸿沟,有效检测流动性缺陷。
摘要:
传统共识机制,如权益证明(PoS),逐渐显示出对大流动性提供者的过度依赖。尽管权益证明(PoL)机制作为激励持续流动性提供和确保市场稳定的必要范式,但其从资产质押转向主动流动性管理显著增加了底层智能合约经济模型和交互逻辑的复杂性。这使得隐藏的流动性逻辑缺陷难以通过传统方法检测,严重威胁主流DeFi和新兴PoL生态系统的稳定性与用户资产安全。为此,我们提出LiquiLM框架,整合大型语言模型(LLMs)与动态共注意网络(DCN)。通过建立流动性关键合同与缺陷描述之间的动态交互,该框架有效弥合了底层代码实现与高阶流动性意图间的语义鸿沟。我们评估了LiquiLM在1,490个验证合同上的性能(涵盖精度、召回率、特异性和F1分数)。结果表明,该框架在审计和解释流动性缺陷方面具有显著效果:在使用Gemini 3 Pro和GPT-4o作为基础模型的实验中,F1分数均超过90%。此外,通过深入审计1,380个现实中的PoL和以太坊经济合同,LiquiLM成功识别出238个高风险合同,并协助发现10个已获得CVE认证的漏洞。
英文摘要:
Traditional consensus mechanisms, such as Proof of Stake (PoS), increasingly reveal an excessive dependency on large liquidity providers. Although the Proof of Liquidity (PoL) mechanism serves as a critical paradigm for incentivizing sustained liquidity provision and ensuring market stability, its transition from asset staking to active liquidity management significantly increases the complexity of underlying smart contract economic models and interaction logic. This renders hidden liquidity logic flaws difficult to detect via traditional methods, seriously threatening the system stability and user asset security of mainstream DeFi and emerging PoL ecosystems. To address this, we propose the LiquiLM framework, which integrates Large Language Models (LLMs) with a Dynamic Co-Attention Network (DCN). By establishing a dynamic interaction between liquidity-critical contracts and flaw descriptions, the framework effectively bridges the semantic gap between underlying code implementations and high-level liquidity intents. We evaluate the performance of LiquiLM on 1,490 validation contracts (covering precision, recall, specificity, and F1-score). The results show that it achieves significant effectiveness in auditing and explaining liquidity flaws: in experiments using Gemini 3 Pro and GPT-4o as backbone models, respectively, the F1-scores both exceed 90%. Furthermore, through an in-depth audit of 1,380 real-world PoL and Ethereum economic contracts, LiquiLM successfully identifies 238 high-risk contracts and assists in discovering 10 vulnerabilities that have received CVE certification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。