---
_id: '8324'
abstract:
- lang: eng
  text: The notion of program sensitivity (aka Lipschitz continuity) specifies that
    changes in the program input result in proportional changes to the program output.
    For probabilistic programs the notion is naturally extended to expected sensitivity.
    A previous approach develops a relational program logic framework for proving
    expected sensitivity of probabilistic while loops, where the number of iterations
    is fixed and bounded. In this work, we consider probabilistic while loops where
    the number of iterations is not fixed, but randomized and depends on the initial
    input values. We present a sound approach for proving expected sensitivity of
    such programs. Our sound approach is martingale-based and can be automated through
    existing martingale-synthesis algorithms. Furthermore, our approach is compositional
    for sequential composition of while loops under a mild side condition. We demonstrate
    the effectiveness of our approach on several classical examples from Gambler's
    Ruin, stochastic hybrid systems and stochastic gradient descent. We also present
    experimental results showing that our automated approach can handle various probabilistic
    programs in the literature.
acknowledgement: We thank anonymous reviewers for helpful comments, especially for
  pointing to us a scenario of piecewise-linear approximation (Remark5). The research
  was partially supported by the National Natural Science Foundation of China (NSFC)
  under Grant No. 61802254, 61672229, 61832015,61772336,11871221 and Austrian Science
  Fund (FWF) NFN under Grant No. S11407-N23 (RiSE/SHiNE). We thank Prof. Yuxi Fu,
  director of the BASICS Lab at Shanghai Jiao Tong University, for his support.
article_number: '25'
article_processing_charge: No
arxiv: 1
author:
- first_name: Peixin
  full_name: Wang, Peixin
  last_name: Wang
- first_name: Hongfei
  full_name: Fu, Hongfei
  last_name: Fu
- first_name: Krishnendu
  full_name: Chatterjee, Krishnendu
  id: 2E5DCA20-F248-11E8-B48F-1D18A9856A87
  last_name: Chatterjee
  orcid: 0000-0002-4561-241X
- first_name: Yuxin
  full_name: Deng, Yuxin
  last_name: Deng
- first_name: Ming
  full_name: Xu, Ming
  last_name: Xu
citation:
  ama: 'Wang P, Fu H, Chatterjee K, Deng Y, Xu M. Proving expected sensitivity of
    probabilistic programs with randomized variable-dependent termination time. In:
    <i>Proceedings of the ACM on Programming Languages</i>. Vol 4. ACM; 2020. doi:<a
    href="https://doi.org/10.1145/3371093">10.1145/3371093</a>'
  apa: Wang, P., Fu, H., Chatterjee, K., Deng, Y., &#38; Xu, M. (2020). Proving expected
    sensitivity of probabilistic programs with randomized variable-dependent termination
    time. In <i>Proceedings of the ACM on Programming Languages</i> (Vol. 4). ACM.
    <a href="https://doi.org/10.1145/3371093">https://doi.org/10.1145/3371093</a>
  chicago: Wang, Peixin, Hongfei Fu, Krishnendu Chatterjee, Yuxin Deng, and Ming Xu.
    “Proving Expected Sensitivity of Probabilistic Programs with Randomized Variable-Dependent
    Termination Time.” In <i>Proceedings of the ACM on Programming Languages</i>,
    Vol. 4. ACM, 2020. <a href="https://doi.org/10.1145/3371093">https://doi.org/10.1145/3371093</a>.
  ieee: P. Wang, H. Fu, K. Chatterjee, Y. Deng, and M. Xu, “Proving expected sensitivity
    of probabilistic programs with randomized variable-dependent termination time,”
    in <i>Proceedings of the ACM on Programming Languages</i>, 2020, vol. 4, no. POPL.
  ista: Wang P, Fu H, Chatterjee K, Deng Y, Xu M. 2020. Proving expected sensitivity
    of probabilistic programs with randomized variable-dependent termination time.
    Proceedings of the ACM on Programming Languages. vol. 4, 25.
  mla: Wang, Peixin, et al. “Proving Expected Sensitivity of Probabilistic Programs
    with Randomized Variable-Dependent Termination Time.” <i>Proceedings of the ACM
    on Programming Languages</i>, vol. 4, no. POPL, 25, ACM, 2020, doi:<a href="https://doi.org/10.1145/3371093">10.1145/3371093</a>.
  short: P. Wang, H. Fu, K. Chatterjee, Y. Deng, M. Xu, in:, Proceedings of the ACM
    on Programming Languages, ACM, 2020.
date_created: 2020-08-30T22:01:12Z
date_published: 2020-01-01T00:00:00Z
date_updated: 2025-04-15T06:30:10Z
day: '01'
ddc:
- '004'
department:
- _id: KrCh
doi: 10.1145/3371093
external_id:
  arxiv:
  - '1902.04744'
file:
- access_level: open_access
  checksum: c6193d109ff4ecb17e7a6513d8eb34c0
  content_type: application/pdf
  creator: cziletti
  date_created: 2020-09-01T11:12:58Z
  date_updated: 2020-09-01T11:12:58Z
  file_id: '8328'
  file_name: 2019_ACM_POPL_Wang.pdf
  file_size: 564151
  relation: main_file
  success: 1
file_date_updated: 2020-09-01T11:12:58Z
fulldoi: https://doi.org/10.1145/3371093
has_accepted_license: '1'
intvolume: '         4'
issue: POPL
language:
- iso: eng
license: https://creativecommons.org/licenses/by/4.0/
month: '01'
oa: 1
oa_version: Published Version
project:
- _id: 25863FF4-B435-11E9-9278-68D0E5697425
  call_identifier: FWF
  grant_number: S11407
  name: Game Theory
publication: Proceedings of the ACM on Programming Languages
publication_identifier:
  eissn:
  - 2475-1421
publication_status: published
publisher: ACM
quality_controlled: '1'
related_material:
  link:
  - relation: software
    url: https://doi.org/10.5281/zenodo.3533633
scopus_import: '1'
status: public
title: Proving expected sensitivity of probabilistic programs with randomized variable-dependent
  termination time
tmp:
  image: /images/cc_by.png
  legal_code_url: https://creativecommons.org/licenses/by/4.0/legalcode
  name: Creative Commons Attribution 4.0 International Public License (CC-BY 4.0)
  short: CC BY (4.0)
type: conference
user_id: 3E5EF7F0-F248-11E8-B48F-1D18A9856A87
volume: 4
year: '2020'
...
