Learning-based controlled concurrency testing
Open Access
- 13 November 2020
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 4 (OOPSLA) , 1-31
Abstract
Concurrency bugs are notoriously hard to detect and reproduce. Controlled concurrency testing (CCT) techniques aim to offer a solution, where a scheduler explores the space of possible interleavings of a concurrent program looking for bugs. Since the set of possible interleavings is typically very large, these schedulers employ heuristics that prioritize the search to “interesting” subspaces. However, current heuristics are typically tuned to specific bug patterns, which limits their effectiveness in practice. In this paper, we present QL, a learning-based CCT framework where the likelihood of an action being selected by the scheduler is influenced by earlier explorations. We leverage the classical Q-learning algorithm to explore the space of possible interleavings, allowing the exploration to adapt to the program under test, unlike previous techniques. We have implemented and evaluated QL on a set of microbenchmarks, complex protocols, as well as production cloud services. In our experiments, we found QL to consistently outperform the state-of-the-art in CCT.Keywords
This publication has 36 references indexed in Scilit:
- Human-level control through deep reinforcement learningNature, 2015
- Reinforcement learning in robotics: A surveyThe International Journal of Robotics Research, 2013
- dBug: Systematic Testing of Unmodified Distributed and Multi-threaded SystemsLecture Notes in Computer Science, 2011
- Algorithms for Reinforcement LearningSynthesis Lectures on Artificial Intelligence and Machine Learning, 2010
- Software Model Checking: The VeriSoft ApproachFormal Methods in System Design, 2005
- Incremental multi-step Q-learningMachine Learning, 1996
- Complexity and Cooperation in Q-Learning1991
- Learning control of finite Markov chains with an explicit trade-off between estimation and controlIEEE Transactions on Systems, Man, and Cybernetics, 1988
- ReductionCommunications of the ACM, 1975
- The theory of dynamic programmingBulletin of the American Mathematical Society, 1954