AIOct 15, 2023

Worst-Case Analysis is Maximum-A-Posteriori Estimation

arXiv:2310.09774v1h-index: 21
Originality Incremental advance
AI Analysis

This addresses a domain-specific problem for software engineers by providing a more effective tool for worst-case analysis, though it is incremental as it builds on existing fuzzing and Bayesian methods.

The paper tackles the problem of estimating worst-case resource usage in programs for tasks like performance optimization, presenting DSE-SMC, a fuzzing framework that is generic, adaptive, and sound, with experimental results showing it is significantly more effective than existing black-box methods.

The worst-case resource usage of a program can provide useful information for many software-engineering tasks, such as performance optimization and algorithmic-complexity-vulnerability discovery. This paper presents a generic, adaptive, and sound fuzzing framework, called DSE-SMC, for estimating worst-case resource usage. DSE-SMC is generic because it is black-box as long as the user provides an interface for retrieving resource-usage information on a given input; adaptive because it automatically balances between exploration and exploitation of candidate inputs; and sound because it is guaranteed to converge to the true resource-usage distribution of the analyzed program. DSE-SMC is built upon a key observation: resource accumulation in a program is isomorphic to the soft-conditioning mechanism in Bayesian probabilistic programming; thus, worst-case resource analysis is isomorphic to the maximum-a-posteriori-estimation problem of Bayesian statistics. DSE-SMC incorporates sequential Monte Carlo (SMC) -- a generic framework for Bayesian inference -- with adaptive evolutionary fuzzing algorithms, in a sound manner, i.e., DSE-SMC asymptotically converges to the posterior distribution induced by resource-usage behavior of the analyzed program. Experimental evaluation on Java applications demonstrates that DSE-SMC is significantly more effective than existing black-box fuzzing methods for worst-case analysis.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes