PatchyBFT: Automating Diversification of Fault-Tolerant Systems using LLMs
Abstract
Fault-tolerant agreement protocols fail if replicas share a common flaw that simultaneously affects more replicas than the tolerable threshold. Therefore replicas should ideally fail independently, which can be achieved through diversification. However, in practice, often the same protocol implementation is shared by all replicas which is not surprising given that the provision of multiple diverse implementations is difficult and highly laborious. This poses a major risk, as a shared protocol implementation is a prime candidate for common bugs due to its complexity. With PatchyBFT, we demonstrate how, given a reference implementation, Large Language Models (LLMs) can be utilised for the automated and scalable generation of code that compiles, passes tests, and crucially differs semantically/binary-wise, that can re- place code in the reference implementation, thereby significantly reducing diversification costs. We demonstrate the feasibility of diversification of replication protocol implementations using LLMs by diversifying three implementations: PBFT, HotStuff, and Raft, showing how up to 65% of the codebase can be diversified.
Create a lesson
Related papers
AUPE: Collaborative byzantine fault-tolerant peer-sampling
Shared title terminologycs.DCAugusta Mukam, Joachim Bruneau-Queyreix, Laurent Réveillère
SmartIntent: A Serverless Edge Intelligence Architecture with Local LLMs for Building Automation
Shared title terminologycs.DCZhenghao Wu, Shaoshu Zhu, Shuyi Sun et al.
Copula: Sound Sharing of Stochastic Nodes Across Runs of Agentic Systems
Shared title terminologycs.DCBowen Sun, Haizhong Zheng, Beidi Chen et al.
KVSeal: Serving Long-Context LLMs with Losslessly Compressed KV Caches
Shared title terminologycs.DCHangyu Liang, Zeyu Mi
PrefixChain: Compact Prefix Caching for Hybrid LLMs
Shared title terminologycs.DCGenglin Wang, Wangsong Yin, Liekang Zeng et al.
(Near-)Pareto-Optimal Synthesized OS-Level Scheduling for Serverless Systems
Shared title terminologycs.DCYuxuan Zhao, Zhao Yang, Weikang Weng et al.