Quantitative Bounds on Resource Usage of Probabilistic Programs
Krishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde Zikelic
摘要
Cost analysis, also known as resource usage analysis, is the task of finding bounds on the total cost of a program and is a well-studied problem in static analysis. In this work, we consider two classical quantitative problems in cost analysis for probabilistic programs. The first problem is to find a bound on the expected total cost of the program. This is a natural measure for the resource usage of the program and can also be directly applied to average-case runtime analysis. The second problem asks for a tail bound, i.e. given a threshold t the goal is to find a probability bound p such that ℙ[total cost ≥ t ] ≤ p . Intuitively, given a threshold t on the resource, the problem is to find the likelihood that the total cost exceeds this threshold. First, for expectation bounds, a major obstacle in previous works on cost analysis is that they can handle only non-negative costs or bounded variable updates. In contrast, we provide a new variant of the standard notion of cost martingales, that allows us to find expectation bounds for a class of programs with general positive or negative costs and no restriction on the variable updates. More specifically, our approach is applicable as long as there is a lower bound on the total cost incurred along every path. Second, for tail bounds, all previous methods are limited to programs in which the expected total cost is finite. In contrast, we present a novel approach, based on a combination of our martingale-based method for expectation bounds with a quantitative safety analysis, to obtain a solution to the tail bound problem that is applicable even to programs with infinite expected cost. Specifically, this allows us to obtain runtime tail bounds for programs that do not terminate almost-surely. In summary, we provide a novel combination of martingale-based cost analysis and quantitative safety analysis that is able to find expectation and tail cost bounds for probabilistic programs, without the restrictions of non-negative costs, bounded updates, or finiteness of the expected total cost. Finally, we provide experimental results showcasing that our approach can solve instances that were beyond the reach of previous methods.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs 引用了 Polynomial reachability witnesses via Stellensätze
- Practical Approximate Quantifier Elimination for Non-linear Real Arithmetic 引用了 Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
- Practical Approximate Quantifier Elimination for Non-linear Real Arithmetic 引用了 Polynomial invariant generation for non-deterministic recursive programs
- Practical Approximate Quantifier Elimination for Non-linear Real Arithmetic 引用了 Polynomial reachability witnesses via Stellensätze
- Quantitative Supermartingale Certificates 引用了 Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
- Quantitative Supermartingale Certificates 引用了 Learning Probabilistic Termination Proofs
- Quantitative Supermartingale Certificates 引用了 Polynomial reachability witnesses via Stellensätze
- Supermartingale Certificates for Quantitative Omega-Regular Verification and Control 引用了 Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic Programs
- Supermartingale Certificates for Quantitative Omega-Regular Verification and Control 引用了 Learning Probabilistic Termination Proofs
- Supermartingale Certificates for Quantitative Omega-Regular Verification and Control 引用了 Polynomial reachability witnesses via Stellensätze
- Polynomial reachability witnesses via Stellensätze 引用了 Polynomial invariant generation for non-deterministic recursive programs
引用它的顶会 Paper10
- Quantitative Supermartingale CertificatesAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2025 · 7 次引用
- Guaranteed Bounds on Posterior Distributions of Discrete Probabilistic Programs with LoopsFabian Zaiser, Andrzej S. Murawski, C.-H. Luke OngPOPL 2025 · 6 次引用
- Supermartingale Certificates for Quantitative Omega-Regular Verification and ControlThomas A. Henzinger, Kaushik Mallik, Pouya Sadeghi, Dorde ZikelicCAV 2025 · 6 次引用
- Tachis: Higher-Order Separation Logic with Credits for Expected CostsPhilipp G. Haselwarter, Kwing Hei Li, Markus de Medeiros, Simon Oddershede Gregersen 等OOPSLA 2024 · 5 次引用
- Practical Approximate Quantifier Elimination for Non-linear Real ArithmeticS. Akshay, Supratik Chakraborty, Amir Kafshdar Goharshady, R. Govind 等FM 2024 · 3 次引用
它引用的 Paper15
- Polynomial invariant generation for non-deterministic recursive programsKrishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady, Ehsan Kafshdar GoharshadyPLDI 2020 · 46 次引用
- Relatively complete verification of probabilistic programs: an expressive language for expectation-based reasoningKevin Batz, Benjamin Lucien Kaminski, Joost-Pieter Katoen, Christoph MathejaPOPL 2021 · 33 次引用
- Sound and Complete Certificates for Quantitative Termination Analysis of Probabilistic ProgramsKrishnendu Chatterjee, Amir Kafshdar Goharshady, Tobias Meggendorfer, Dorde ZikelicCAV 2022 · 30 次引用
- Polynomial reachability witnesses via StellensätzeAli Asadi, Krishnendu Chatterjee, Hongfei Fu, Amir Kafshdar Goharshady 等PLDI 2021 · 28 次引用
- Learning Probabilistic Termination ProofsAlessandro Abate, Mirco Giacobbe, Diptarko RoyCAV 2021 · 26 次引用
相关 Paper
- A modular cost analysis for probabilistic programsMartin Avanzini, Georg Moser, Michael SchaperOOPSLA 2020 · 41 次引用
- Supermartingales for Unique Fixed Points: A Unified Approach to Lower Bound VerificationSatoshi Kura, Hiroshi Unno, Takeshi TsukadaPLDI 2026
- Central moment analysis for cost accumulators in probabilistic programsDi Wang, Jan Hoffmann, Thomas W. RepsPLDI 2021 · 18 次引用
- Piecewise Analysis of Probabilistic Programs via 𝑘-InductionTengshun Yang, Shenghua Feng, Hongfei Fu, Naijun Zhan 等POPL 2026
- Robust Resource Bounds with Static Analysis and Bayesian InferenceLong Pham, Feras A. Saad, Jan HoffmannPLDI 2024 · 6 次引用
