DuoAI: Fast, Automated Inference of Inductive Invariants for Verifying Distributed Protocols
Jianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh
摘要
Distributed systems are complex and difficult to build correctly. Formal verification can provably rule out bugs in such systems, but finding an inductive invariant that implies the safety property of the system is often the hardest part of the proof. We present DuoAI, an automated system that quickly finds inductive invariants for verifying distributed protocols by reducing SMT query costs in checking invariants with existential quantifiers. DuoAI enumerates the strongest candidate invariants that hold on validate states from protocol simulations, then applies two methods in parallel, returning the result from the method that succeeds first. One checks all candidate invariants and weakens them as needed until it finds an inductive invariant that implies the safety property. Another checks invariants without existential quantifiers to find an inductive invariant without the safety property, then adds candidate invariants with existential quantifiers to strengthen it until the safety property holds. Both methods are guaranteed to find an inductive invariant that proves desired safety properties, if one exists, but the first reduces SMT query costs when more candidate invariants with existential quantifiers are needed, while the second reduces SMT query costs when few candidate invariants with existential quantifiers suffice. We show that DuoAI verifies more than two dozen common distributed protocols automatically, including various versions of Paxos, and outperforms alternative methods both in the number of protocols it verifies and the speed at which it does so, including solving Paxos more than two orders of magnitude faster than previous methods.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 25 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Halfmoon: Log-Optimal Fault-Tolerant Stateful Serverless Computing 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
- Anvil: Verifying Liveness of Cluster Management Controllers 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
- Anvil: Verifying Liveness of Cluster Management Controllers 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
- Anvil: Verifying Liveness of Cluster Management Controllers 引用了 Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions
- Verus: A Practical Foundation for Systems Verification 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
- Verus: A Practical Foundation for Systems Verification 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
- Finding Invariants of Distributed Systems: It's a Small (Enough) World After All 引用了 First-order quantified separators
- Compiling Distributed System Models with PGo 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
- Compiling Distributed System Models with PGo 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
- DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols 引用了 CLN2INV: Learning Loop Invariants with Continuous Logic Networks
- DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols 引用了 Data-driven inference of representation invariants
- DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
- DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols 引用了 First-order quantified separators
- Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions 引用了 Finding Invariants of Distributed Systems: It's a Small (Enough) World After All
- Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions 引用了 First-order quantified separators
- Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking Functions 引用了 DistAI: Data-Driven Automated Invariant Learning for Distributed Protocols
引用它的顶会 Paper25
- Anvil: Verifying Liveness of Cluster Management ControllersXudong Sun, Wenjie Ma, Jiawei Tyler Gu, Zicheng Ma 等OSDI 2024 · 50 次引用
- Verus: A Practical Foundation for Systems VerificationAndrea Lattuada, Travis Hance, Jay Bosamiya, Matthias Brun 等SOSP 2024 · 22 次引用
- Halfmoon: Log-Optimal Fault-Tolerant Stateful Serverless ComputingSheng Qi, Xuanzhe Liu, Xin JinSOSP 2023 · 16 次引用
- Compiling Distributed System Models with PGoA. Finn Hackett, Shayan Hosseini, Renato Costa, Matthew Do 等ASPLOS 2023 · 13 次引用
- Mostly Automated Verification of Liveness Properties for Distributed Protocols with Ranking FunctionsJianan Yao, Runzhou Tao, Ronghui Gu, Jason NiehPOPL 2024 · 12 次引用
它引用的 Paper9
- DistAI: Data-Driven Automated Invariant Learning for Distributed ProtocolsJianan Yao, Runzhou Tao, Ronghui Gu, Jason Nieh 等OSDI 2021 · 76 次引用
- CLN2INV: Learning Loop Invariants with Continuous Logic NetworksGabriel Ryan, Justin Wong, Jianan Yao, Ronghui Gu 等ICLR 2020 · 72 次引用
- Finding Invariants of Distributed Systems: It's a Small (Enough) World After AllTravis Hance, Marijn Heule, Ruben Martins, Bryan ParnoNSDI 2021 · 69 次引用
- Data-driven inference of representation invariantsAnders Miltner, Saswat Padhi, Todd D. Millstein, David WalkerPLDI 2020 · 33 次引用
- First-order quantified separatorsJason R. Koenig, Oded Padon, Neil Immerman, Alex AikenPLDI 2020 · 31 次引用
相关 Paper
- Basilisk: Using Provenance Invariants to Automate Proofs of Undecidable ProtocolsTony Nuda Zhang, Keshav Singh, Tej Chajed, Manos Kapritsos 等OSDI 2025 · 9 次引用
- Simplifying Safety Proofs with Forward-Backward Reasoning and ProphecyEden Frenkel, Kenneth L. McMillan, Oded Padon, Sharon ShohamPLDI 2026
- Induction duality: primal-dual search for invariantsOded Padon, James R. Wilcox, Jason R. Koenig, Kenneth L. McMillan 等POPL 2022 · 14 次引用
- I3DP: Neuro-Symbolic Inductive Invariant Inference for Distributed ProtocolsWeining Cao, Guangyuan Wu, Yuan Yao, Hengfeng Wei 等SOSP 2026
- Counterexample Driven Quantifier Instantiations with Applications to Distributed ProtocolsOrr Tamir, Marcelo Taube, Kenneth L. McMillan, Sharon Shoham 等OOPSLA 2023 · 5 次引用
