SmartInv: Multimodal Learning for Smart Contract Invariant Inference
Not on the map. Why?
Abstract (arXiv)
Smart contracts are software programs that enable diverse business activities on the blockchain. Recent research has identified new classes of "machine un-auditable" bugs that arise from both transactional contexts and source code. Existing detection methods require human understanding of underlying transaction logic and manual reasoning across different sources of context (i.e. modalities), such as code, dynamic transaction executions, and natural language specifying the expected transaction behavior. To automate the detection of ``machine un-auditable'' bugs, we present SmartInv, an accurate and fast smart contract invariant inference framework. Our key insight is that the expected behavior of smart contracts, as specified by invariants, relies on understanding and reasoning across multimodal information, such as source code and natural language. We propose a new prompting strategy to foundation models, Tier of Thought (ToT), to reason across multiple modalities of smart contracts and ultimately to generate invariants. By checking the violation of these generated invariants, SmartInv can identify potential vulnerabilities. We evaluate SmartInv on real-world contracts and re-discover bugs that resulted in multi-million dollar losses over the past 2.5 years (from January 1, 2021 to May 31, 2023). Our extensive evaluation shows that SmartInv generates (3.5X) more bug-critical invariants and detects (4×) more critical bugs compared to the state-of-the-art tools in significantly (150X) less time. sys uncovers 119 zero-day vulnerabilities from the 89,621 real-world contracts. Among them, five are critical zero-day bugs confirmed by developers as ``high severity.''
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Nov 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025Towards Secure Program Partitioning for Smart Contracts with LLM's In-Context Learningcited by 2
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generationcited by 1
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarizationcited by 1
- 2025SEASONED: Semantic-Enhanced Self-Counterfactual Explainable Detection of Adversarial Exploiter Contractscited by 0
- 2026An end-to-end agentic pipeline for smart contract translation and quality evaluationcited by 0
- 2026ChainClaw: A Layered Agent Framework for Reliable On-Chain Executioncited by 0
- 2026ChainClaw: A Layered Agent Framework for Reliable On-Chain Execution6 Aug 2026
- 2026Knowdit: Agentic Smart Contract Vulnerability Detection with Auditing Knowledge Summarization27 Mar 2026
- 2026An end-to-end agentic pipeline for smart contract translation and quality evaluation14 Feb 2026
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generation30 Jan 2026
- 2025SEASONED: Semantic-Enhanced Self-Counterfactual Explainable Detection of Adversarial Exploiter Contracts6 Sep 2025
- 2025Towards Secure Program Partitioning for Smart Contracts with LLM's In-Context Learning20 Feb 2025