Rondo tests compiler bugs that depend on earlier calls
Stateful Testing for Deep Learning Compilers · arXiv:2610.22003
In plain words
Deep learning software can compile a model once and reuse the compiled code on later calls. That reuse can go wrong after inputs or model state change. Rondo is a testing method that runs ordered calls, then checks whether a later answer changes when the compiler’s remembered information is cleared.
The authors tested it on four frameworks and 24 model architectures. It found 117 bugs, 35 of them dependent on earlier calls; developers confirmed 16 of the 18 reports about those stateful bugs. These results show the method found such bugs in the tested systems, not how many remain.
The research
Can a compiler test distinguish an error caused by information retained from earlier model calls from one caused by the current inputs or model state? Single-call tests do not represent that history, and comparing compiled with uncompiled results alone cannot identify the cause.
Rondo searches ordered model-call sequences and checks the same later call with compiler state kept or reset to identify state-dependent errors.
To separate compiler memory from changes in the model itself, Rondo replays the same later call with its inputs and relevant program state fixed. It compares compiled runs with remembered compiler state retained and reset, alongside an uncompiled run.
The authors first analyzed 26 publicly reported cases; all were reproduced on affected versions, and each involved earlier calls followed by a later incorrect result.
Across four frameworks and 24 architectures, Rondo detected 117 bugs, including 35 stateful ones. Developers confirmed 35 of 39 submitted reports, including 16 of 18 stateful reports. This shows the method found bugs developers accepted in those systems, though not how many bugs exist overall.
The evaluation covers selected programs, four frameworks, and the reported hardware and settings. Its bug counts and coverage results do not establish how many bugs exist overall or how Rondo performs on other programs and systems.
What the evidence shows
- The problem spans calls
Rondo is a testing method for deep learning compilers that examines ordered sequences of model calls. The question is whether an earlier call can leave compiler information that makes a later call return a wrong result.
A test of each call on its own misses that history, while a simple difference between compiled and uncompiled results does not show whether retained compiler information caused it.
- Reported bugs need history
The authors analyzed 26 publicly reported cases from PyTorch, JAX, and TensorFlow, and reproduced all of them on affected versions. In 17 cases, compiled code was reused after its required conditions had changed; in nine, later calls used earlier values or structures that no longer matched current program state.
The two patterns show why tests need to establish earlier compiler state and then check a later call.
- Compare retained and reset
Rondo searches sequences of calls and state changes, using compilation behavior to guide it toward less often observed behavior. It checks each candidate against uncompiled results and compiled results with compiler state either reset between calls or retained.
Repeating the same later call with its inputs and relevant program state fixed helps determine whether retained compiler state is necessary for the error.
- Evidence from the evaluation
Across four frameworks and 24 model architectures, Rondo detected 117 bugs, including 35 stateful bugs. Developers confirmed 35 of the 39 reports submitted by the authors, including 16 of the 18 stateful reports.
In the coverage comparison, Rondo covered a larger fraction of behavior transitions across calls than the strongest baseline. These findings apply to the evaluated systems and configurations.
Deep
- Original paper authors
- Jiatao Ge, Ruixiang Qian, Yibo Hu, Yanzhou Mu, Yinglong Zou
- Submitted to arXiv
- License
- arXiv non-exclusive