Pragmatics, Implicature, and Presupposition › A Finite Rational Speech Act Model
Language AI HandbookAll chapters 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 be a finite set of states and a finite set of utterances. Let be the literal meaning of utterance . Let be the listener's prior over states. We assume and are known and small. For Ada's case:
- , where means " servers passed."
- .
- .
- under the stipulated inclusive reading.
- .
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:
where:
- : a candidate state, one of the possible numbers of servers that passed
- : the utterance the speaker chose, such as "some"
- : the set of states in which is literally true
- : an indicator that equals 1 when is in and 0 otherwise
- : the number of states compatible with , 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 in state is the log of the literal listener's probability, minus a cost:
where:
- : the candidate utterance
- : the state the speaker intends to convey
- : the probability the literal listener gives after hearing . The log rewards an utterance whose literal reading concentrates probability on the intended state
- : a nonnegative cost for producing , encoding effort, politeness, or verification difficulty
The speaker's choice distribution is a softmax over utterances:
where:
- : the probability that a speaker in state chooses utterance
- : the utility of in , defined above
- : the inverse temperature controlling how sharply the speaker prefers higher-utility utterances
- : a normalizing constant over all utterances, so the choice probabilities sum to one for each state
We use a positive inverse temperature . As 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 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 , the listener updates the prior by the likelihood that the speaker would choose in each state:
where:
- : the listener's posterior probability that the state is after hearing
- : the listener's prior probability over state before hearing
- : the likelihood that a speaker in would choose
- : the total probability of hearing 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 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 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 than in or . 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 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:
The listener matrix 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:
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.
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!