He, Kaiser and Iskarous (2025): Modeling sentence polarity asymmetries #
This file formalizes the rational speech act models of He, Kaiser and Iskarous for a speaker who
says of a whole that it has a part, that it lacks it, or nothing. Setting.speaker is the standard
speaker of (1)–(4) on the kernel pipeline of RSA.speaker, under the Boolean meaning of (2) or the
fuzzy meaning fuzzy of (11)–(13), whose positive sentence holds at its state to a sigmoid degree
of that state's prior. Setting.wonkyListener is the wonky-world listener of (14)–(16), who infers
the state together with the world, normal at the measured prior or wonky at the uniform one, with
Setting.wonkiness its posterior probability
of the wonky world and the expected typicality of (17) the marginal of the state over the worlds;
the funky model of (18)–(22) is the same listener under the fuzzy meaning.
Under the Boolean meaning the likelihood of each polarity is a logistic function of the cost
saved by silence and the log prior of its state (Setting.likelihood_boolean): it falls as
the prior rises, and at equal priors the positive polarity is the likelier exactly when it is
the cheaper, the two coinciding at equal costs. The fuzzy positive sentence informs the
literal listener exactly when its degree exceeds one half, which the sigmoid degree does
above a threshold prior; below it the speaker prefers silence to the positive sentence, where
the Boolean speaker prefers the sentence at every prior below the exponential of the cost
saved. The wonky listener's wonkiness rises above its prior exactly when the described
state's prior exceeds one half, whatever the costs, and its expected typicality moves the
state's prior toward one half by the wonkiness.
Implementation notes #
- The sigmoid of (13) in the wonky world takes that world's prior of the positive state, one half; the paper does not say which prior it takes there.
- The wonkiness of the Boolean wonky listener depends on the polarity only through the cost
(
Setting.wonkiness_boolean), so the polarities coincide at equal costs; the paper's costs differ, and its remark that the model does not differentiate the polarities holds of the direction of the wonkiness update, not of its size.
TODO #
- The best-fit predictions of Figures 4, 5 and 7 and the mean squared errors of §4.2 and §5.2.
- The funky listener's typicality difference between the polarities (§6.2).
References #
States, utterances and meanings #
In one state the whole has the part, in the other it lacks it.
Instances For
Equations
- HeKaiserIskarous2025.instDecidableEqState x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Equations
Equations
- HeKaiserIskarous2025.instDecidableEqUtterance x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Equations
A state is described by the sentence of its polarity.
Equations
Instances For
A graded meaning gives the degree to which an utterance holds at a state.
Equations
Instances For
Under the Boolean meaning of (2), each sentence holds at its state alone and silence everywhere.
Equations
- HeKaiserIskarous2025.boolean HeKaiserIskarous2025.Utterance.pos HeKaiserIskarous2025.State.pos = 1
- HeKaiserIskarous2025.boolean HeKaiserIskarous2025.Utterance.pos HeKaiserIskarous2025.State.neg = 0
- HeKaiserIskarous2025.boolean HeKaiserIskarous2025.Utterance.neg HeKaiserIskarous2025.State.neg = 1
- HeKaiserIskarous2025.boolean HeKaiserIskarous2025.Utterance.neg HeKaiserIskarous2025.State.pos = 0
- HeKaiserIskarous2025.boolean HeKaiserIskarous2025.Utterance.null x✝ = 1
Instances For
Under the fuzzy meaning of (11) and (12), the negative sentence holds at its state to the
degree n and the positive sentence to the degree σ, each to the complementary degree at the
other state, and silence holds everywhere.
Equations
- HeKaiserIskarous2025.fuzzy n σ HeKaiserIskarous2025.Utterance.pos HeKaiserIskarous2025.State.pos = σ
- HeKaiserIskarous2025.fuzzy n σ HeKaiserIskarous2025.Utterance.pos HeKaiserIskarous2025.State.neg = 1 - σ
- HeKaiserIskarous2025.fuzzy n σ HeKaiserIskarous2025.Utterance.neg HeKaiserIskarous2025.State.neg = n
- HeKaiserIskarous2025.fuzzy n σ HeKaiserIskarous2025.Utterance.neg HeKaiserIskarous2025.State.pos = 1 - n
- HeKaiserIskarous2025.fuzzy n σ HeKaiserIskarous2025.Utterance.null x✝ = 1
Instances For
The Boolean meaning is the fuzzy meaning of full degrees.
The sigmoid of (13) has a height, a steepness, a midpoint and an offset.
- L : ℝ
The height.
- k : ℝ
The steepness.
- x0 : ℝ
The midpoint.
- c : ℝ
The offset.
Instances For
The best-fit sigmoid of §4.2.
Equations
- HeKaiserIskarous2025.bestFit = { L := 7 / 10, k := 6, x0 := 7 / 20, c := 3 / 10 }
Instances For
The best-fit degree of the negative sentence at its state, §4.2.
Equations
- HeKaiserIskarous2025.bestFitNeg = 4 / 5
Instances For
The threshold prior of the best-fit sigmoid, about 0.197.
Priors and costs #
A model is fixed by the prior probability of the positive state, the rationality α, and
the costs.
- p : ℝ
The prior probability of the positive state.
- α : ℝ
The rationality.
- cost : Utterance → ℝ
The cost of an utterance.
- p_pos : 0 < self.p
The positive state is possible.
- p_lt_one : self.p < 1
The negative state is possible.
- α_pos : 0 < self.α
The rationality is positive.
Instances For
In §3.2 silence is free, the positive sentence costs one and its negation two, the marked form being the costlier.
Equations
Instances For
The prior probability of a state.
Equations
Instances For
The measured prior over states.
Equations
- s.prior = ∑ st : HeKaiserIskarous2025.State, ENNReal.ofReal (s.statePrior st) • MeasureTheory.Measure.dirac st
Instances For
The literal listener and the speaker, (1) to (3) #
The literal listener of (1) reweights the prior by the meaning.
Equations
- HeKaiserIskarous2025.L0 P m = ProbabilityTheory.Kernel.ofDensity P fun (u : HeKaiserIskarous2025.Utterance) (st : HeKaiserIskarous2025.State) => ENNReal.ofReal (m u st)
Instances For
On reals, the literal listener at a state is the prior weighted by the meaning, normalized over the row.
The speaker of (3) is the softmax of the literal listener's log probability less the cost, scaled by the rationality.
Equations
- HeKaiserIskarous2025.speaker P m s = RSA.speaker s.α s.cost (⇑(HeKaiserIskarous2025.L0 P m)) MeasureTheory.Measure.dirac
Instances For
Between two utterances holding at a state, the speaker prefers the one of higher utility.
When exactly two utterances hold at a state, the speaker's use of one is the logistic function of the scaled utility difference.
Closed forms under the Boolean meaning #
Silence leaves the literal listener at the prior, under any meaning where it holds everywhere.
The sentence of a state puts the Boolean literal listener at that state.
The Boolean speaker uses a state's sentence at that state with the logistic function of the cost saved by silence less the log prior of the state, scaled by the rationality.
The standard model (§3.2) and the fuzzy model (§4) #
The speaker under the measured prior.
Equations
- s.speaker m = HeKaiserIskarous2025.speaker s.prior m s
Instances For
The utterance likelihood of a polarity is the speaker's use of a state's sentence at that state.
Equations
- s.likelihood m st = ((s.speaker m) st).real {st.utterance}
Instances For
Under the Boolean meaning, the likelihood of a polarity is the logistic function of the cost saved by silence less the log prior of its state, scaled by the rationality.
The Boolean likelihood of a polarity falls as its state's prior rises, the main effect of the state prior.
At equal state priors, rationality and costs, the negative polarity is the less likely exactly when its sentence is the costlier, the main effect of polarity.
At equal costs the two polarities are equally likely at equal state priors (the paper's second simulation).
The Boolean speaker prefers silence to the positive sentence at the positive state exactly when the state's prior exceeds the exponential of the cost saved by silence.
An utterance holding at a state and its complement to degrees summing to one informs the literal listener about the state exactly when its degree there exceeds one half.
The fuzzy positive sentence informs the literal listener about the positive state exactly when its degree there exceeds one half.
The fuzzy negative sentence informs the literal listener about the negative state exactly when its degree there exceeds one half, at every prior.
At the positive state, the fuzzy speaker prefers silence to a positive sentence of degree at most one half whenever the sentence costs more than silence.
The fuzzy meaning of §4.1 gives the negative sentence degree n and the positive sentence
the sigmoid degree at the measured prior of the positive state.
Equations
- s.fuzzyMeaning θ n = HeKaiserIskarous2025.fuzzy n (θ.eval s.p)
Instances For
Below the threshold prior, the fuzzy speaker prefers silence to the positive sentence at the positive state, since the sigmoid degree disincentivizes the communication of low-prior positive states (§4.1).
The wonky-world listener (§5) and the funky listener (§6) #
The complex prior of (5) has two worlds, the normal world with the measured prior and the wonky world with the uniform one.
Instances For
Equations
- HeKaiserIskarous2025.instDecidableEqWorld x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
Equations
Under a wonkiness ω the wonky world has weight ω and the normal world 1 - ω.
Equations
Instances For
The prior over worlds.
Equations
- HeKaiserIskarous2025.wonkinessPrior ω = ∑ w : HeKaiserIskarous2025.World, ENNReal.ofReal (HeKaiserIskarous2025.wonkinessWeight ω w) • MeasureTheory.Measure.dirac w
Instances For
The prior over states is the measured one in the normal world and uniform in the wonky one.
Equations
- s.worldPrior HeKaiserIskarous2025.World.normal = s.prior
- s.worldPrior HeKaiserIskarous2025.World.wonky = ProbabilityTheory.uniformOn Set.univ
Instances For
In each world, the wonky speaker of (14) and (15) is the speaker under that world's prior and meaning, the world riding in the state.
Equations
- s.wonkySpeaker m p = (HeKaiserIskarous2025.speaker (s.worldPrior p.2) (m p.2) s) p.1
Instances For
The prior of (16) is the measured prior over states, independent of the wonkiness.
Equations
- s.wonkyJoint ω = s.prior.prod (HeKaiserIskarous2025.wonkinessPrior ω)
Instances For
The wonky listener of (16) inverts the wonky speaker over states and worlds against the prior of (16).
Equations
- s.wonkyListener m ω = RSA.listener (s.wonkyJoint ω) (s.wonkySpeaker m)
Instances For
The Boolean wonky listener is a probability measure after a state's sentence.
The posterior wonkiness after the sentence of a state.
Equations
- s.wonkiness m ω st = ((s.wonkyListener m ω) st.utterance).snd.real {HeKaiserIskarous2025.World.wonky}
Instances For
The expected typicality of (17) weighs the prior of a state in each world by the posterior over worlds after the state's sentence.
Equations
- s.expectedTypicality m ω st = ∑ w : HeKaiserIskarous2025.World, ((s.wonkyListener m ω) st.utterance).snd.real {w} * (s.worldPrior w).real {st}
Instances For
The expected typicality moves the state's prior toward one half by the wonkiness.
After a state's sentence, the posterior wonkiness of the Boolean wonky listener is the wonkiness-weighted share of the wonky speaker's use of the sentence against the normal speaker's.
The wonky listener's wonkiness rises above its prior after a state's sentence exactly when that state's prior exceeds one half, whatever the costs (§5.3, Figure 6).
After a state's sentence, the Boolean wonky listener's expected typicality of the state exceeds its prior exactly when the prior is below one half, giving typicality and atypicality inferences in both polarities (§5.3, Figure 5).
The wonkiness after a sentence depends on its polarity only through its cost, so at equal state priors, rationality and costs the two polarities update it alike.
In a world, the funky listener of (18) to (20) uses the fuzzy meaning at that world's prior of the positive state.
Equations
- s.funkyMeaning θ n w = HeKaiserIskarous2025.fuzzy n (θ.eval ((s.worldPrior w).real {HeKaiserIskarous2025.State.pos}))
Instances For
In the normal world the funky speaker is the fuzzy speaker, so the two models agree on utterance likelihood (§6.2).