Pragmatics, Implicature, and Presupposition › A Finite Rational Speech Act Model

Michael BrenndoerferNovember 17, 20267 min read
Language AI HandbookAll chapters
Part 9 of 67Coreference, Discourse, Pragmatics, and Dialogue
Chapter 58Pragmatics, Implicature, and Presupposition › A Finite Rational Speech Act Model
Reading section 6 of 13 · A Finite Rational Speech Act Model · 7 minSection 6 of 13 · 7 min

Section 6 of 13 · 7 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

We now build a small model of pragmatic inference. The model is a finite rational speech act (RSA) model, in the tradition of Frank and Goodman's "Predicting Pragmatic Reasoning in Language Games" (Frank and Goodman, 2012). The version below is a standard simplification. It is not the only RSA formulation, and the specific parameterization is a stipulation. The goal is not to defend this particular model as the correct theory of pragmatics. The goal is to have a transparent mechanism that makes the running case precise and that can be compared to the behavior of real systems.

The Setup

Let WW be a finite set of states and UU a finite set of utterances. Let L(u)⊆WL(u) \subseteq W be the literal meaning of utterance uu. Let P(w)P(w) be the listener's prior over states. We assume WW and UU are known and small. For Ada's case:

  • W={w0,w1,w2,w3}W = \{w_0, w_1, w_2, w_3\}, where wkw_k means "kk servers passed."
  • U={none,some,all}U = \{\text{none}, \text{some}, \text{all}\}.
  • L(none)={w0}L(\text{none}) = \{w_0\}.
  • L(some)={w1,w2,w3}L(\text{some}) = \{w_1, w_2, w_3\} under the stipulated inclusive reading.
  • L(all)={w3}L(\text{all}) = \{w_3\}.

The finiteness assumption is doing a lot of work. It lets us enumerate the states and utterances, compute exact probabilities, and check the normalization. Real language does not come with a finite state space or a finite utterance set. But the toy model is a laboratory: it isolates the mechanism of speaker-choice reasoning, and it lets us see how the posterior changes when we vary one assumption at a time. The hope is that the qualitative lessons survive the simplification, even though the quantitative predictions do not.

The Literal Listener

The literal listener interprets an utterance by restricting the state space to its literal meaning and normalizing. With a flat prior over states, the literal listener assigns each state in the utterance's literal meaning equal probability and zero to the rest:

PL0(w∣u)=1[w∈L(u)]∑w′∈W1[w′∈L(u)]P_{L_0}(w \mid u) = \frac{\mathbf{1}[w \in L(u)]}{\sum_{w' \in W} \mathbf{1}[w' \in L(u)]}

where:

  • ww: a candidate state, one of the possible numbers of servers that passed
  • uu: the utterance the speaker chose, such as "some"
  • L(u)⊆WL(u) \subseteq W: the set of states in which uu is literally true
  • 1[w∈L(u)]\mathbf{1}[w \in L(u)]: an indicator that equals 1 when ww is in L(u)L(u) and 0 otherwise
  • ∑w′∈W1[w′∈L(u)]\sum_{w' \in W} \mathbf{1}[w' \in L(u)]: the number of states compatible with uu, which normalizes the indicator into a probability

The formula assumes the utterance is compatible with at least one state. A literal listener with a nonuniform prior would weight compatible states before conditioning. In the prior sweep, we vary only the pragmatic listener's prior. The literal listener uses fixed uniform weights, and the separate capped-speaker example fixes its weights within each information cell.

The Speaker

The speaker chooses an utterance to make the intended state likely for the literal listener. The speaker's utility for utterance uu in state ww is the log of the literal listener's probability, minus a cost:

US(u,w)=log⁡PL0(w∣u)−c(u)U_S(u, w) = \log P_{L_0}(w \mid u) - c(u)

where:

  • uu: the candidate utterance
  • ww: the state the speaker intends to convey
  • PL0(w∣u)P_{L_0}(w \mid u): the probability the literal listener gives ww after hearing uu. The log rewards an utterance whose literal reading concentrates probability on the intended state
  • c(u)c(u): a nonnegative cost for producing uu, encoding effort, politeness, or verification difficulty

The speaker's choice distribution is a softmax over utterances:

PS(u∣w)=exp⁡{αUS(u,w)}∑u′∈Uexp⁡{αUS(u′,w)}P_S(u \mid w) = \frac{\exp\{\alpha U_S(u, w)\}} {\sum_{u' \in U} \exp\{\alpha U_S(u', w)\}}

where:

  • PS(u∣w)P_S(u \mid w): the probability that a speaker in state ww chooses utterance uu
  • US(u,w)U_S(u, w): the utility of uu in ww, defined above
  • α\alpha: the inverse temperature controlling how sharply the speaker prefers higher-utility utterances
  • ∑u′∈Uexp⁡{αUS(u′,w)}\sum_{u' \in U} \exp\{\alpha U_S(u', w)\}: a normalizing constant over all utterances, so the choice probabilities sum to one for each state

We use a positive inverse temperature α\alpha. As α\alpha approaches zero from above, the speaker approaches a uniform choice among utterances with finite utility. Utterances that are false in the intended state keep probability zero. Increasing α\alpha concentrates probability on the highest-utility choices, and equally good choices share that mass. We set the utterance costs to zero in this example.

The Pragmatic Listener

The pragmatic listener reasons about the speaker. Hearing uu, the listener updates the prior by the likelihood that the speaker would choose uu in each state:

PR(w∣u)=P(w)PS(u∣w)∑w′∈WP(w′)PS(u∣w′)P_R(w \mid u) = \frac{P(w) P_S(u \mid w)} {\sum_{w' \in W} P(w') P_S(u \mid w')}

where:

  • PR(w∣u)P_R(w \mid u): the listener's posterior probability that the state is ww after hearing uu
  • P(w)P(w): the listener's prior probability over state ww before hearing uu
  • PS(u∣w)P_S(u \mid w): the likelihood that a speaker in ww would choose uu
  • ∑w′∈WP(w′)PS(u∣w′)\sum_{w' \in W} P(w') P_S(u \mid w'): the total probability of hearing uu across all states, which normalizes the posterior

This is Bayes' rule applied with the speaker model as the likelihood. It is the scalar implicature mechanism. Hearing "some" reduces a positive prior on w3w_3 when the likelihood in that state is lower than the overall probability of hearing "some". That overall probability averages the state-specific likelihoods using the prior.

The product in the numerator weights the prior for w3w_3 by the likelihood that Ada would say "some" in that state. The denominator turns those weights into a distribution. In the baseline, Ada is much less likely to say "some" in w3w_3 than in w1w_1 or w2w_2. In the restricted-vocabulary and capped-tally examples below, the likelihood of "some" is equal across the three states where at least one server passed. The listener can still rule out zero passes.

Normalization Axis

The speaker matrix PSP_S has one row per state and one column per utterance. Its normalization is defined when at least one utterance has finite utility for that state. Each row must sum to one over utterances, because for a fixed state the speaker's probabilities over all candidate utterances form a distribution:

∑u∈UPS(u∣w)=1for every w\sum_{u \in U} P_S(u \mid w) = 1 \quad \text{for every } w

The listener matrix PRP_R has the same shape, but each column with positive marginal likelihood must sum to one over states. A report that the speaker could never make has no defined posterior:

∑w∈WPR(w∣u)=1for every u with P(u)>0\sum_{w \in W} P_R(w \mid u) = 1 \quad \text{for every } u \text{ with } P(u)>0

In NumPy, sum the speaker across the utterance axis and check that every result is one. For the listener, sum only the columns where the report has positive marginal likelihood. Every report has positive marginal likelihood in the baseline, so the code there checks every listener column.

Normalize in the right direction

The speaker conditions on a state and divides along the utterance axis. The listener conditions on a possible report and divides along the state axis.

Why This Model?

The RSA model describes how the choice of report changes a listener's distribution over states. The listener accounts for what the speaker could have said, what the speaker observed, and what the listener expected. A change in one of those inputs can change the posterior. Different inputs can also produce the same posterior, as the two uniform rows below show.

The model is not a theory of all pragmatics. It has no composition, no dialogue, no world knowledge, and no learning. It is a laboratory. The next sections use it to make the running case precise. Concretely, the model will let us compute how the listener's posterior over the four states changes when we alter one assumption at a time, and the identifiability problem will surface when two alterations produce the same posterior. That is a feature, not a bug. It shows that the model is sensitive enough to generate the right kind of question, even when it is not rich enough to answer it.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy