Saved in:
Bibliographic Details
Main Authors: Abadi, Martin, Plotkin, Gordon
Format: Preprint
Published: 2020
Subjects:
Online Access:https://arxiv.org/abs/2007.08926
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910327168303104
author Abadi, Martin
Plotkin, Gordon
author_facet Abadi, Martin
Plotkin, Gordon
contents Describing systems in terms of choices and their resulting costs and rewards offers the promise of freeing algorithm designers and programmers from specifying how those choices should be made; in implementations, the choices can be realized by optimization techniques and, increasingly, by machine-learning methods. We study this approach from a programming-language perspective. We define two small languages that support decision-making abstractions: one with choices and rewards, and the other additionally with probabilities. We give both operational and denotational semantics. In the case of the second language we consider three denotational semantics, with varying degrees of correlation between possible program values and expected rewards. The operational semantics combine the usual semantics of standard constructs with optimization over spaces of possible execution strategies. The denotational semantics, which are compositional, rely on the selection monad, to handle choice, augmented with an auxiliary monad to handle other effects, such as rewards or probability. We establish adequacy theorems that the two semantics coincide in all cases. We also prove full abstraction at base types, with varying notions of observation in the probabilistic case corresponding to the various degrees of correlation. We present axioms for choice combined with rewards and probability, establishing completeness at base types for the case of rewards without probability.
format Preprint
id arxiv_https___arxiv_org_abs_2007_08926
institution arXiv
publishDate 2020
record_format arxiv
spellingShingle Smart Choices and the Selection Monad
Abadi, Martin
Plotkin, Gordon
Logic in Computer Science
Machine Learning
Programming Languages
Describing systems in terms of choices and their resulting costs and rewards offers the promise of freeing algorithm designers and programmers from specifying how those choices should be made; in implementations, the choices can be realized by optimization techniques and, increasingly, by machine-learning methods. We study this approach from a programming-language perspective. We define two small languages that support decision-making abstractions: one with choices and rewards, and the other additionally with probabilities. We give both operational and denotational semantics. In the case of the second language we consider three denotational semantics, with varying degrees of correlation between possible program values and expected rewards. The operational semantics combine the usual semantics of standard constructs with optimization over spaces of possible execution strategies. The denotational semantics, which are compositional, rely on the selection monad, to handle choice, augmented with an auxiliary monad to handle other effects, such as rewards or probability. We establish adequacy theorems that the two semantics coincide in all cases. We also prove full abstraction at base types, with varying notions of observation in the probabilistic case corresponding to the various degrees of correlation. We present axioms for choice combined with rewards and probability, establishing completeness at base types for the case of rewards without probability.
title Smart Choices and the Selection Monad
topic Logic in Computer Science
Machine Learning
Programming Languages
url https://arxiv.org/abs/2007.08926