2020
DOI: 10.1145/3408992
|View full text |Cite
|
Sign up to set email alerts
|

Raising expectations: automating expected cost analysis with types

Abstract: This article presents a type-based analysis for deriving upper bounds on the expected execution cost of probabilistic programs. The analysis is naturally compositional, parametric in the cost model, and supports higher-order functions and inductive data types. The derived bounds are multivariate polynomials that are functions of data structures. Bound inference is enabled by local type rules that reduce type inference to linear constraint solving. The type system is based on the potential method of amortized a… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1

Citation Types

0
33
0

Year Published

2021
2021
2024
2024

Publication Types

Select...
5
1
1

Relationship

1
6

Authors

Journals

citations
Cited by 27 publications
(33 citation statements)
references
References 89 publications
0
33
0
Order By: Relevance
“…Notable also, in [Wang et al 2020], the amortized cost analysis underlying resource aware ML [Hoffmann et al 2012] has been suited to probabilistic programs. This work sets itself apart by having a fully automated inference machinery, differently from what we do here.…”
Section: Related Workmentioning
confidence: 99%
See 3 more Smart Citations
“…Notable also, in [Wang et al 2020], the amortized cost analysis underlying resource aware ML [Hoffmann et al 2012] has been suited to probabilistic programs. This work sets itself apart by having a fully automated inference machinery, differently from what we do here.…”
Section: Related Workmentioning
confidence: 99%
“…This work sets itself apart by having a fully automated inference machinery, differently from what we do here. The two particular instances of walk given in Example 3.1 lie within the scope of [Wang et al 2020]'s methodology, when specialized to two first-order programs. However, depending on its functional arguments, the expected cost of walk can vary between constant, to linear, or even be infinite.…”
Section: Related Workmentioning
confidence: 99%
See 2 more Smart Citations
“…• Trace-based [Borgström et al 2016;Castellan and Paquet 2019]: The state-to-state transition relation is interpreted under a fixed trace of random sources (e.g., a trace of coin flips), where the random constructs (e.g., coin flips) are resolved as deterministic readouts from the trace. In our setting, however, this approach lacks a mechanism for tracking the correlations among traces, which have been shown to be important for expected-cost analysis [Wang et al 2020b]. With the presence of probabilistic internal-and external-choice types, it is also unclear how to guarantee type preservation for the transitions guided by a fixed trace.…”
Section: Difficulties For Standard Approachesmentioning
confidence: 99%