Generalized surprisal #
This file defines the generalized surprisal of [GOC24]. A
comprehender's language model is a Markov kernel from contexts to alternative continuations, and
a generalized surprisal model is a pair of a warping function f : ℝ → ℝ and a scoring function
g, which scores an alternative against the target in the context. The generalized surprisal of
the target is the warped expected score. The score fixes what counts as an accurate prediction,
and the warping the functional relationship between prediction accuracy and the measured cost,
the question [SL13] ask of surprisal.
Surprisal [Lev08] is the model with the negative logarithm and the indicator score, and the next-unit probability the model with the identity and the indicator: every warping of the indicator score is a warping of the target's probability. Information value [GWF23], summarised by its mean, is the model with the identity and a distance score. A model is anticipatory when its score ignores the target and responsive otherwise, the distinction [PMW+23] draw informally for reading times; an anticipatory model assigns every target the same value, and entropy is the anticipatory model that scores each alternative by its own surprisal.
Main definitions #
genSurprisal L f g c w: the generalized surprisal ofwin the contextc.IsAnticipatory g: the scoregis constant in the target.informationValue,indicatorScore.
Main results #
genSurprisal_indicatorScore,genSurprisal_negLog_indicatorScore: a warping of the indicator model is that warping of the target's probability; with the negative logarithm, the target's surprisal.IsAnticipatory.genSurprisal_eq: an anticipatory model does not depend on the target.not_isAnticipatory_indicatorScore: the indicator score is responsive.genSurprisal_id_surprisal: entropy is an anticipatory generalized surprisal.
References #
The generalized surprisal of the target w in the context c under the model (f, g): the
warping f of the expected score g a w c of the alternatives a that the language model L
samples in the context.
Equations
- Surprisal.genSurprisal L f g c w = f (∫ (a : A), g a w c ∂L c)
Instances For
Information value with the mean as its summary statistic: the expected distance d from the
alternatives to the target.
Equations
- Surprisal.informationValue L d c w = ∫ (a : A), d a w c ∂L c
Instances For
The generalized surprisal with the identity warping is the expected score.
Anticipation and responsivity #
A scoring function is anticipatory when it is constant in the target, so that the model measures an uncertainty fixed by the context and the language model. A model whose score is not anticipatory is responsive.
Equations
- Surprisal.IsAnticipatory g = ∀ (a : A) (w w' : W) (c : C), g a w c = g a w' c
Instances For
An anticipatory model assigns every target the same value.
The indicator score #
The indicator score: one when the alternative is the target.
Equations
- Surprisal.indicatorScore a w x✝ = {w}.indicator 1 a
Instances For
The indicator score is responsive.
A warping of the indicator model is that warping of the target's probability; with the identity it is the probability itself.
Surprisal is the indicator model with the negative logarithm.
Entropy #
Scoring each alternative by its own surprisal is anticipatory.
Entropy is the anticipatory model with the identity warping that scores each alternative by its own surprisal.