Feedback-guided Adaptive Testing of Distributed Systems Designs
Ao Li (PhD student · Carnegie Mellon University), Ankush Desai (Amazon Web Services), Rohan Padhye (Carnegie Mellon University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Trust but Verify
Overview
Distributed systems underpin modern cloud infrastructure, yet designing and implementing them correctly remains notoriously difficult due to complex concurrency, network partitions, and asynchronous message interleavings. As industrial systems grow in scale—evidenced by production environments at companies like Amazon Web Services (AWS)—traditional formal verification techniques frequently hit scalability bottlenecks. Consequently, developers increasingly rely on systematic testing of distributed system models (written in high-level languages like P or TLA+) to proactively uncover bugs before writing implementation code. However, existing model testing schedulers rely primarily on blind random sampling, leading to massive exploration redundancy where distinct message schedules execute identical underlying behaviors.

Key moments
- 0:00 Introduction and historical background of testing and verification
- 2:00 Shift from formal verification to distributed model testing at AWS
- 4:00 Limitations of traditional random walk and sampling-based techniques
- 6:00 Drawing inspiration from software fuzzing for distributed systems
- 7:40 Solving the mutation challenge through indirect mutation with suffix sampling
- 9:50 Defining interesting schedules using diversity and compliance feedback
- 11:42 Evaluation results across 94 distributed systems and conclusion
Feedback-guided Adaptive Testing of Distributed System Designs
Speakers: Ao Li (PhD student, Carnegie Mellon University); Ankush Desai (Amazon Web Services); Rohan Padhye (Carnegie Mellon University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=erRjJZF-jD4
Overview
Distributed systems underpin modern cloud infrastructure, yet designing and implementing them correctly remains notoriously difficult due to complex concurrency, network partitions, and asynchronous message interleavings. As industrial systems grow in scale—evidenced by production environments at companies like Amazon Web Services (AWS)—traditional formal verification techniques frequently hit scalability bottlenecks. Consequently, developers increasingly rely on systematic testing of distributed system models (written in high-level languages like P or TLA+) to proactively uncover bugs before writing implementation code. However, existing model testing schedulers rely primarily on blind random sampling, leading to massive exploration redundancy where distinct message schedules execute identical underlying behaviors.
This talk, presented at USENIX NSDI by Ao Li alongside collaborators Ankush Desai and Rohan Padhye, introduces Fast, a feedback-guided adaptive testing framework designed to dramatically accelerate the bug-finding process in distributed system designs. By borrowing core principles from traditional software fuzzing—specifically feedback-driven mutation and behavioral coverage metrics—Fast adapts existing scheduling algorithms to intelligently explore unvisited behavioral states rather than brute-forcing redundant message permutations. Evaluated across 94 open- and closed-source distributed systems, Fast achieves up to a 41× increase in behavioral coverage and uncovers 33% more bugs than state-of-the-art baselines.
Background
▶ Watch: Introduction and historical background of testing and verification (0:00)
The verification of concurrent and distributed software has evolved significantly over decades. In 1969, Tony Hoare introduced foundational logic for modeling program behavior, followed by Leslie Lamport’s introduction of TLA+ in 1994 to specify distributed system designs formally. However, as distributed architectures expanded into massive cloud-scale microservices, formal verification of complete system designs became computationally intractable. In response, modern engineering organizations—including AWS, as detailed in recent industry literature—have leaned heavily into systematic model testing.
In this paradigm, a distributed system is modeled as a set of state machines driven by messages shared across independent nodes. The primary task of a testing scheduler is to explore different message interleavings to verify that the system satisfies its correctness specifications. Historically, testing frameworks have relied on random walk strategies or constrained search algorithms such as PCT (Probabilistic Concurrency Testing) and POS (Partial Order Reduction-based schedulers). These methods attempt to bound the search space based on empirical observations—such as the fact that most concurrency bugs manifest within a small number of context switches.
Despite these advancements, prior techniques suffer from a fundamental inefficiency: they operate as blind, black-box samplers. A scheduler might generate thousands of distinct execution schedules that differ only in irrelevant message orderings (e.g., swapping independent read requests to non-conflicting replicas), even though all those schedules trigger the exact same underlying system behavior. This redundancy severely limits the depth and thoroughness of bug detection in complex distributed protocols.
Key Findings
▶ Watch: Limitations of traditional random walk and sampling-based techniques (4:00)
The primary contribution of this work is Fast, an adaptive testing engine that bridges the gap between traditional coverage-guided fuzzing and distributed model testing. The key findings and results from the evaluation include:
- Behavioral Coverage Improvements: Across a comprehensive evaluation suite comprising 94 open- and closed-source distributed systems (including industrial models from Amazon and DeepSeek), Fast achieves up to a 41× higher behavioral coverage compared to traditional random sampling baselines.
- Enhanced Bug Discovery: In standardized bug benchmarks, Fast uncovers 33% more bugs than existing state-of-the-art model testing tools.
- Extensibility: The feedback-guidance mechanism in Fast is not a standalone scheduler replacement; rather, it acts as an orthogonal meta-algorithm that enhances existing sampling-based techniques (PCT, POS, and random walks) by dynamically pruning redundant execution paths.
Technical Deep Dive
▶ Watch: Drawing inspiration from software fuzzing for distributed systems (6:00)
Implementing feedback-guided fuzzing for distributed system designs requires overcoming two fundamental challenges that do not exist in traditional single-threaded software fuzzing: invalid mutation generation and inadequate coverage metrics.
1. Indirect Mutation via Suffix Sampling
In traditional fuzzing, inputs are mutated via low-level bit flips or byte substitutions. In distributed systems, however, message schedules cannot be arbitrarily mutated beforehand because execution is dynamic and governed by strict causal constraints. For instance, a read operation cannot be scheduled before its corresponding write if guarded by program logic, nor can an election message be produced before all participants have exchanged vote messages. Blindly mutating schedule arrays yields invalid runs that are immediately rejected by the system model.
To solve this, Fast introduces indirect mutation via suffix sampling. The framework maintains a corpus of interesting schedules. When mutating a schedule, Fast performs the following steps:
- It selects a prefix of an existing successful schedule.
- It utilizes deterministic record-and-replay mechanisms to execute the model precisely up to the chosen prefix point.
- Instead of continuing the exact replay, it injects random sampling from that exact branching point onward (suffix sampling).
This guarantees that every newly generated schedule respects the hard logical constraints of the protocol while efficiently exploring alternative execution branches originating from the chosen prefix.
2. Dual Feedback Guidance: Diversity and Compliance
Traditional code line coverage is notoriously poor at capturing concurrency bugs. A program can achieve 100% line coverage in a single-threaded environment while completely missing atomicity violations that only manifest under specific global interleavings. To capture the true semantics of distributed concurrency, Fast constructs a dual-feedback mechanism:
- Diversity Feedback: The framework extracts "happens-before" relationships, lock contentions, and conflict operations from the execution trace. It compares these relationships against a historical database of previously explored behaviors. If a schedule exhibits a novel happens-before partial order, its diversity score increases, and the schedule is saved to the corpus.
- Compliance Feedback: To incorporate domain expertise, Fast provides a domain-specific language (DSL) allowing developers to specify target scenarios they wish to test (e.g., incoming client requests arriving precisely during a leader election phase). The framework measures how closely a given schedule matches the developer-specified scenario, rewarding compliance.
By combining diversity feedback (uncovering uncharted system states) and compliance feedback (targeting developer-specified edge cases), Fast closes the fuzzing loop effectively.
Experimental Setup & Results
▶ Watch: Defining interesting schedules using diversity and compliance feedback (9:50)
The evaluation of Fast represents one of the most comprehensive empirical studies of distributed model testing to date:
- Benchmark Suite: 94 distinct open- and closed-source distributed system models, incorporating production designs from Amazon, DeepSeek, and classical distributed algorithms from academic literature (e.g., Paxos, Raft, consensus protocols).
- Implementation Framework: Fast was fully implemented and integrated directly inside the P modeling framework.
- Baseline Comparisons: Compared against traditional random walks, PCT, and POS scheduling strategies.
- Headline Metrics: Evaluated primarily on behavioral state-space coverage (measured via unique happens-before relationship graphs) and time-to-bug discovery across standard concurrency bug benchmarks.
- Ablations: The evaluation confirms that incorporating both diversity feedback and indirect suffix sampling yields exponential search-space pruning compared to enabling either mechanism in isolation.
Note: Formal hardware specifications (exact CPU/RAM configurations) were omitted from the presentation transcript, though the evaluations were executed within standard server-grade Linux environments supporting the P modeling runtime.
Practical Implications
▶ Watch: Evaluation results across 94 distributed systems and conclusion (11:42)
For infrastructure teams, protocol designers, and cloud-scale model builders, Fast offers a practical pathway to verify highly complex distributed software without rewriting existing modeling codebases. Because Fast integrates natively into frameworks like P, practitioners can drop it into existing verification pipelines.
Tradeoffs and Limitations: While Fast dramatically increases behavioral coverage, maintaining and querying the historical database of happens-before relationships introduces non-trivial memory and computational overhead during the testing phase. Furthermore, writing effective compliance feedback via the domain-specific language requires developers to have prior intuition about potential failure modes, meaning completely novel, unanticipated architectural flaws still rely primarily on the automated diversity feedback engine.
Key Takeaways
- The Redundancy Problem: Traditional random sampling in distributed model testing wastes computational cycles by exploring distinct message schedules that result in identical system behaviors.
- Indirect Mutation: Fast overcomes the rigidity of distributed schedules by using record-and-replay prefixes combined with randomized suffix sampling to generate valid, mutated execution paths.
- Beyond Line Coverage: Standard code coverage fails to capture concurrency bugs; Fast introduces semantic happens-before diversity feedback to track global ordering states.
- Developer-in-the-Loop: A dedicated domain-specific language allows engineers to inject compliance feedback, guiding the fuzzer toward specific operational scenarios like leader elections under heavy load.
- Industrial Scale: Evaluated across 94 open- and closed-source systems, Fast achieves up to a 41× improvement in behavioral coverage and finds 33% more bugs than existing state-of-the-art schedulers.
About the Speaker(s)
Ao Li is a PhD student at Carnegie Mellon University (CMU) focusing on distributed systems, concurrency testing, and software reliability, with an upcoming thesis defense centered on making concurrency testing practical for real-world systems. Ankush Desai is a researcher and engineer at Amazon Web Services (AWS) working on automated reasoning and correctness for cloud-scale distributed systems. Rohan Padhye is an Assistant Professor at Carnegie Mellon University specializing in software engineering, fuzzing, and automated program analysis.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)