Lune

ISSTA2026顶会

A Closer Look at the Use of Reinforcement Learning for Speeding Up Runtime Verification of Software Tests (Experience Paper)

Shinhae Kim, Saikat Dutta, Owolabi Legunsen

摘要

Runtime verification (RV) found many bugs by monitoring passing tests against formal specifications (specs), but it is slow. A recent work, Valg, used reinforcement learning (RL) to speed up RV by up to 551.5x or 27 hours. Valg aims to probabilistically monitor most unique traces—sequences of spec-related events like method calls—and monitor fewer redundant ones. But, there is no in-depth study of Valg’s current limits and how to address them. We study Valg on 93 Java open-source projects to answer five unaddressed questions. (i) How much slower is Valg than optimal baselines? Up to 323.8x, or 3.2 hours vs. running tests without RV, and up to 9.6x, or 25.3 minutes vs. a theoretically optimal baseline that monitors only unique traces. (ii) Where is Valg’s time spent? 30.5% on monitoring and 18.4% on signaling events to monitors, on average. (iii) What characterizes code where Valg monitors too many redundant traces or misses unique ones? In 100 cases, 67.8% of redundant traces are due to limitations of Valg’s RL convergence heuristic, and 41.3% of missed unique traces occur when a Valg assumption does not hold. (iv) How much can test non-determinism and RL stochasticity cause monitored unique traces to vary? By 42.5 percentage points (pp) and 12.3pp on average, respectively, but they vary by up to 98pp. (v) How do other off-the-shelf RL algorithms compare with Valg’s? Only two of 11 RL algorithms that we survey are feasible for RV during continuous integration. Both are slower and miss more unique traces than Valg, so custom RL algorithms for RV may be needed. So, despite Valg’s promising results, it has plenty of room to improve. We highlight several exciting future directions on using RL to speed up RV.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
  • Fine-Grained Analyses for Evolution-Aware Runtime Verification 引用了 Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring
  • Instrumentation-Driven Evolution-Aware Runtime Verification 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 An In-Depth Study of Runtime Verification Overheads during Software Testing
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 Instrumentation-Driven Evolution-Aware Runtime Verification
  • Faster Runtime Verification during Testing via Feedback-Guided Selective Monitoring 引用了 Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software Tests
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper5

  1. An In-Depth Study of Runtime Verification Overheads during Software TestingKevin Guan, Owolabi LegunsenISSTA 2024 · 7 次引用
  2. Faster Explicit-Trace Monitoring-Oriented Programming for Runtime Verification of Software TestsKevin Guan, Marcelo d'Amorim, Owolabi LegunsenOOPSLA 2025 · 7 次引用
  3. Instrumentation-Driven Evolution-Aware Runtime VerificationKevin Guan, Owolabi LegunsenICSE 2025 · 4 次引用
  4. Faster Runtime Verification during Testing via Feedback-Guided Selective MonitoringShinhae Kim, Saikat Dutta, Owolabi LegunsenASE 2025 · 3 次引用
  5. Fine-Grained Analyses for Evolution-Aware Runtime VerificationPengyue Jiang, Kevin Guan, Mahdi Khosravi, Moustafa Ismail 等ICSE 2026 · 1 次引用

相关 Paper

  1. Using Reinforcement Learning for Load Testing of Video GamesRosalia Tufano, Simone Scalabrino, Luca Pascarella, Emad Aghajani 等ICSE 2022 · 37 次引用
  2. Empirically evaluating readily available information for regression test optimization in continuous integrationDaniel Elsner, Florian Hauer, Alexander Pretschner, Silke ReimerISSTA 2021 · 45 次引用
  3. Sound and efficient concurrency bug predictionYan Cai, Hao Yun, Jinqiu Wang, Lei Qiao 等FSE 2021 · 29 次引用
  4. Learning-to-rank vs ranking-to-learn: strategies for regression testing in continuous integrationAntonia Bertolino, Antonio Guerriero, Breno Miranda, Roberto Pietrantuono 等ICSE 2020 · 81 次引用
  5. TERA: optimizing stochastic regression tests in machine learning projectsSaikat Dutta, Jeeva Selvam, Aryaman Jain, Sasa MisailovicISSTA 2021 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖