2019 · 28 citations · 25 references
ComputingComputer ScienceAlgorithmsMarkov Decision ProcessesOptimizationReinforcement LearningSoftware TestingSymbolic ExecutionPath PruningScalabilitySoftware Testing ProcessTest Case GenerationWorst-case Complexity
Stress testing evaluates program behavior under heavy load, but symbolic execution, though useful for finding worst‑case inputs, scales poorly due to exponential path growth and heuristic pruning that often discards true worst cases, and existing learning approaches are limited to simple branching patterns. We propose PySE, a tool that uses symbolic execution to gather branching behaviors and refines the policy via reinforcement learning to overcome these limitations. PySE iteratively updates a neural‑network branching policy so that execution paths lengthen over time, ultimately reaching worst‑case complexity, and it can learn complex or irregular patterns automatically. Experiments show that PySE effectively discovers worst‑case paths for various Python benchmarks and scales to larger programs.
Stress testing is an important task in software testing, which examines the behavior of a program under a heavy load. Symbolic execution is a useful tool to find out the worst-case input values for the stress testing. However, symbolic execution does not scale to a large program, since the number of paths to search grows exponentially with an input size. So far, such a scalability issue has been mostly managed by pruning out unpromising paths in the middle of searching based on heuristics, but this kind of work easily eliminates the true worst case as well, providing sub-optimal one only. Another way to achieve scalability is to learn a branching policy of worst-case complexity from small scale tests and apply it to a large scale. However, use cases of such a method are restricted to programs whose worst-case branching policy has a simple pattern. To address such limitations, we propose PySE that uses symbolic execution to collect the behaviors of a given branching policy, and updates the policy using a reinforcement learning approach through multiple executions. PySE's branching policy keeps evolving in a way that the length of an execution path increases in the long term, and ultimately reaches the worst-case complexity. PySE can also learn the worst-case branching policy of a complex or irregular pattern, using an artificial neural network in a fully automatic way. Experiment results demonstrate that PySE can effectively find a path of worst-case complexity for various Python benchmark programs and scales.
25
Sepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 98.1K citations
Mastering the game of Go with deep neural networks and tree search
David Silver, Aja Huang, Chris J. Maddison et al. · Nature · 2016 · 15.8K citations
Playing Atari with Deep Reinforcement Learning
Volodymyr Mnih, Koray Kavukcuoglu, David Silver et al. · arXiv (Cornell University) · 2013 · 5.1K citations · Full text