The decision-theoretic listener #
This file defines the listener of Rational Speech Act models who acts. After an utterance the listener's belief is a kernel from utterances to states, and a decision problem is a reward for each action at each state. The listener's expected reward of an action is the reward averaged over the belief, and the listener chooses an action by the softmax of expected reward at a rationality. The decision-theoretic utility of an utterance for the speaker is the true reward of the action the listener's policy chooses. In a signaling game an action is a guess of the state, rewarded when right, so the expected reward of a guess is the belief's mass on it.
Main definitions #
RSA.expectedReward: the listener's expected reward of an action after an utterance.RSA.policy: the listener's policy, the softmax of expected reward at a rationality.RSA.actionUtility: the expected true reward of the listener's choice, the speaker's decision-theoretic utility of an utterance at a state.
Main results #
RSA.policy_real_lt_iff,RSA.policy_single_real_lt_iff: the listener prefers the action with the higher expected reward, and in a signaling game the state the belief finds more probable.RSA.policy_real_singleton: the policy's share of an action is the real softmax.RSA.policy_real_of_pair,RSA.actionUtility_of_pair: with two actions the share is the logistic function of the scaled difference in expected reward, and the utility is the rewards weighted by the shares.
References #
The decision-theoretic utility of an utterance at a state is the true reward of the action the listener's policy chooses, in expectation.
Equations
- RSA.actionUtility π R u w = ∑ a : A, (π u).real {a} * R a w
Instances For
With two actions, utility is the reward of the first weighted by its share and of the second by the rest.
The listener's expected reward of an action after an utterance is the reward averaged over the belief.
Equations
- RSA.expectedReward L R u a = ∑ w : W, (L u).real {w} * R a w
Instances For
In a signaling game an action is a guess of the state, rewarded when right, so the expected reward of a guess is the belief's mass on it.
The score of an action for the listener is rationality times expected reward.
Equations
- RSA.policyScore β L R u a = ↑(β * RSA.expectedReward L R u a)
Instances For
The listener's policy is the softmax of expected reward at rationality β.
Equations
- RSA.policy β L R = ProbabilityTheory.Kernel.softmax (RSA.policyScore β L R)
Instances For
Row preference of the policy is comparison of expected reward.
A listener rewarded for guessing the state prefers the states the belief finds more probable.
The policy's share of an action is the real softmax of the scaled expected rewards.
With two actions, the policy's share of one is the logistic function of the scaled difference in expected reward.
Two utterances after which the listener's expected rewards agree up to a constant shift leave the policy, and so the utility at every state, the same; the listeners may differ.