Pragmatics, Implicature, and Presupposition
Model scalar implicature, presupposition projection, and deixis with a finite RSA listener, then design paired probes for language models. Learn how context shifts inference.
Language AI HandbookAll chapters Pragmatics, Implicature, and Presupposition
Ada is on call for three production servers. Her manager Ben needs to decide whether to investigate a failed check. Ada sends a short report:
Some of the servers passed the health check.
On the inclusive literal reading, at least one server passed. Ben may infer that one or more failed if Ada knew which servers passed and would have reported a clean sweep. If she inspected only two, the same message leaves the untested server open. A dashboard limited to "some" and "none" provides a third explanation for her choice.
Pragmatics studies how speakers and listeners use context. In this report, the literal meaning leaves several outcomes possible. Which inference Ben can justify also depends on Ada’s information and the reports she could have chosen. Later in the chapter, a backup report will show two other uses of context. A presupposition treats information as already understood, and a deictic expression such as "tomorrow" needs an utterance time.
We'll compute the implications of those choices in a small NumPy model. Then we'll use the same report to design a paired test of a language model. The first exercise calculates a listener's posterior over server states. The second measures how a prompt changes a text probability.
The examples hold the report fixed when changing how much Ada knows, which reports she can use, or what Ben expects.
Semantics, Pragmatics, and the Running Case
Here we use truth conditions, reference, and entailment to describe the literal content of Ada’s report. If entails , then every situation in which is true is also a situation in which is true. Under the inclusive reading of "some", the report "all three servers passed" entails "some servers passed". Claiming all three passed while denying that any passed is contradictory under that reading.
Pragmatics is the study of how utterances are used in context. It asks what a speaker meant, what a listener inferred, and what was already assumed. The central objects are not truth conditions alone but speaker intentions, common ground, and context-dependent reference. Semantics tells you what a sentence rules out; pragmatics tells you what a speaker was doing by choosing that sentence rather than another one. The two enterprises are complementary. In the Gricean account used here, the literal meaning of "some" and the alternatives a speaker could have chosen both contribute to the listener’s inference.
The differences matter for annotation and evaluation:
| Inference | Where it comes from | Cancelable? | Behavior under negation |
|---|---|---|---|
| Entailment | literal meaning | No | Negating changes truth conditions |
| Conversational implicature | reasoning about the speaker's choice | Often | Depends on scope and context |
| Presupposition | lexical trigger plus context | Not freely, but can be locally satisfied or accommodated | Typically projects through negation |
The table is a rough guide, not a definition. Each row bundles together several distinctions that a full theory would separate. Cancelability, for example, comes in several flavors: explicit cancellation, contextual blocking, and suspension by a conditional. Projection comes in several flavors too: presuppositions can survive negation, survive questions, survive modals, or be filtered by certain embeddings. The rest of the chapter makes each row precise, and the precision matters because annotation guidelines and evaluation metrics depend on which row a given inference belongs to.
There are three servers. Ada says, "Some of the servers passed the health check." Ben is the listener. We will vary:
- Ben's prior: whether he expects all servers to pass.
- The available alternatives: whether "all" is a live option for Ada.
- Ada's knowledge, modeled later as access to an exact or a capped tally.
- The presupposition trigger: later, Ada says, "I stopped running the nightly backup."
- The deictic context: Ada writes, "The backup finished at 3 a.m. here. I'll check the logs tomorrow."
Each variation can change what Ben can justifiably infer while leaving the relevant report wording fixed.
The callout is worth keeping in view as a reference point. Every model in this chapter is a way of making one of these variations explicit. When we later compute a posterior over states, we are asking what Ben should believe after hearing "some" under a particular specification of his prior, Ada's alternatives, and Ada's knowledge. When we later probe a language model, we are asking whether its behavior changes in the way the theory predicts when we manipulate the same variables in the prompt.
Conversational Implicature
Grice's Cooperative Principle
Paul Grice's "Logic and Conversation" (1975) is a foundational account of conversational implicature. Grice's Cooperative Principle asks interlocutors to contribute what the exchange calls for at that point. He groups the more specific maxims under four headings.
- Quantity: be as informative as required, and not more informative than required.
- Quality: say what you believe to be true and for which you have evidence.
- Relation: be relevant.
- Manner: be clear, brief, and orderly.
Grice distinguishes several ways a speaker can depart from a maxim. A speaker might violate it quietly, announce that they are opting out, face a clash between two maxims, or flout it openly. An open flout can prompt a listener to look for an interpretation that makes the contribution fit the exchange. A quiet violation may simply mislead the listener.
A speaker can make an apparent breach of a maxim conspicuous enough for a listener to look for a further point. In a discussion of whether to negotiate, "War is war" may convey resignation or a refusal to make an exception. With irony, "He's a fine friend" said about a betrayal invites a reading that relies on the mismatch with the situation.
Grice distinguished several kinds of implicature. Conversational implicatures depend on the maxims and on the particular context of the exchange. Conventional implicatures are attached to specific words, such as but or therefore, and do not depend on the same kind of reasoning about the speaker's goals. Presuppositions, which we treat later, are yet another category. An inference task can use this distinction directly. A follow-up can withdraw a conversational inference associated with "some". Replacing "but" with "and" can remove a contrast cue while preserving both asserted clauses.
Calculating the "Some" Implicature
Return to Ada's sentence. Under the inclusive reading, some means "at least one." One possible scale of alternatives is some, most, all. The listener's reasoning has several steps, and each step is worth making explicit because each one can fail in a different context:
- Literal content. Ada asserted that at least one server passed.
- Cooperation. Ben assumes Ada is trying to be informative and is in a position to make a stronger claim if one is warranted.
- Alternatives. Ada could have said "all three passed" or "two passed" or "one passed."
- Choice. She chose "some."
- Inference. If all three had passed, "all three passed" would have been more informative and relevant. Ada did not say it. So, probably, not all three passed.
This is a scalar implicature. The inference is not part of the literal meaning of some. It arises from the speaker's choice among salient alternatives. The word some contributes only its inclusive truth conditions. The rest of the inference is supplied by the listener's reasoning about why the speaker chose that word rather than a stronger one.
Similar reasoning can apply to other scales, including or versus and, warm versus hot, good versus excellent. In each case, the listener treats the weaker term as evidence that the stronger term does not apply, provided the speaker is well informed and the stronger term is salient. "It is warm outside" often implicates "it is not hot." The pattern is general, even though the specific scales differ. What unites the cases is not a single lexical scale but a common form of reasoning: the speaker had alternatives, the speaker chose one of them, and the choice is informative.
There is an important asymmetry in scalar implicature. The inference goes from weaker to stronger, not the other way around. Hearing "all" does not implicate "not some," because "all" entails "some" and the speaker could not have been more informative by saying "some." The direction of the inference is fixed by the direction of entailment on the scale, and by the assumption that the speaker is trying to be as informative as the context requires.
Defeasibility and Cancelability
The clearest diagnostic for conversational implicature is defeasibility. An implicature can be canceled by additional context without producing a contradiction:
- "Some of the servers passed, and in fact all three did."
- "Some of the servers passed, but I only checked two of them."
- "Some of the servers passed, if not all."
In each case, the not-all inference disappears or is explicitly blocked. The first sentence cancels the inference directly by asserting the stronger claim. The second blocks the inference by explaining why the speaker was not in a position to make the stronger claim. The third suspends the inference by leaving the stronger claim open. By contrast, an entailment cannot be canceled this way. "Some passed, but none did" is contradictory under the inclusive reading. That contrast is the practical test: if you can add material that removes the inference without contradiction, you are probably dealing with an implicature.
Speakers may hear an exclusive reading of "some," and there are different accounts of how it arises. Degen and Tanenhaus (2015) document variation with the expression and its context. The toy model below stipulates inclusive literal semantics. An annotation scheme needs to say which reading its labels assume.
Defeasibility also depends on the question under discussion. If Ben asks only "Did any server pass?", then "some passed" is fully informative. The not-all inference may be irrelevant or absent. Quantity implicatures are sensitive to what counts as enough information in the current exchange. This is why the same sentence can carry a strong implicature in one conversation and almost none in another. The context does not just supply the alternatives; it also supplies the standard of informativeness against which the speaker's choice is evaluated.
Alternatives, Scales, and Salience
The alternative set is not fixed by the lexicon alone. It is context-dependent. In Ada's case:
- If Ada must choose between "some" and "none" on the dashboard, neither choice can report "all" explicitly. Hearing "some" alone gives Ben no evidence against a clean sweep through that choice.
- If the dashboard reports "some," "most," and "all," then hearing "some" may suggest not-most as well as not-all.
- If "all" is available but expensive to verify, the inference may weaken. Ada might say "some" because she has not finished checking, not because "all" is false.
This is why scalar implicature is often described as reasoning about alternatives rather than reasoning about a fixed lexical scale. The scale is a set of expressions that the listener treats as relevant alternatives in the context. The same word can sit on different scales in different conversations, and the inference shifts accordingly. In one context, the relevant contrast is between "some" and "all." In another, it is between "some" and "most." In a third, there may be no relevant contrast at all, and the word carries only its literal content.
Salience is related to availability but not identical to it. An alternative can be available in principle but not salient in the moment. If the dashboard has an "all" button tucked away in a menu that Ada never uses, the listener may not treat "all" as a live alternative even though it is technically available. Conversely, an alternative can be salient even when it is not literally available, as when a listener knows that a more precise measurement exists but the speaker does not have access to it. The psychology of salience is part of what makes implicature context-sensitive, and it is one of the hardest things to control in an experimental probe.
Speaker Knowledge and the Epistemic Step
Suppose Ben knows Ada checked two servers and has no information about the third. If both checked servers passed, she has evidence for "some" without evidence for "all". Her choice alone gives Ben no reason to conclude that the third failed. Inferences about actual failures can depend on other information Ben has.
The epistemic step connects the speaker’s report to the underlying result. Hearing “some” can lower Ben’s probability that all three passed if Ada would be less likely to use that report when all passed than she is overall. If Ben starts with positive probability on all three passing, the report rules it out only when its likelihood in that state is zero. The model below uses a capped count to specify what Ada can observe.
The distinction between speaker knowledge and listener prior is essential. Ada's knowledge is a property of the speaker's information state. Ben's prior is a property of Ben's beliefs before hearing the utterance. They are different variables, and they can vary independently. Holding one input fixed lets you inspect what changing the other does in the toy model.
Beyond Quantity
Not all implicatures are scalar. Context can reveal the purpose of an indirect answer or an indirect request. At the dinner table, the question "Can you pass the salt?" usually functions as a request. The listener reasons that the speaker is being relevant, and the most relevant interpretation of the utterance in that setting is a request for the salt. The literal meaning is not false; it is just not the whole story. The same mechanism explains why "It is cold in here" can be a request to close a window, and why "I have a lot of work to do" can be a refusal of an invitation.
Manner implicatures arise from how something is said, not what is said. If a speaker says "the meeting will commence at the temporal juncture of three o'clock" instead of "the meeting is at three," the listener infers something about the speaker's attitude or the formality of the occasion. The content is the same; the manner carries the inference. Manner implicatures are especially relevant for style-sensitive generation, where a system must choose not just what to say but how to say it.
Conventional implicatures are lexically encoded, as with but in "She is a linguist but she codes." The but signals contrast, and that signal is not easily canceled in the way a conversational implicature is. Immediately denying the contrast can sound odd. The two asserted clauses are still intelligible. The contrast is part of what but contributes, even though it is not part of the truth conditions in the way that the two conjuncts are.
For evaluation, distinguish whether an inference arises in a particular context and whether later information can cancel it. Scoring an implicature requires specifying which alternatives the speaker could use and which facts the relevant participants know. A test of semantic entailment answers a separate question about what is true whenever the asserted sentence is true.
Common Ground and Presupposition
Stalnaker's Common Ground
Robert Stalnaker's "Common Ground" (2002) treats common ground as what participants mutually accept for the purposes of the exchange. The context set contains the possible worlds compatible with those commitments. Accepting a new assertion intersects that set with the worlds in which the assertion holds. If the participants had already accepted the proposition, the intersection leaves the context set unchanged. A challenge can keep the proposition open for discussion.
The participants can mutually accept a claim that later turns out to be false. The team may take for granted that the nightly backup job started. If the scheduler logs later show that the job never started, the participants can retract that assumption and consider possibilities it had excluded.
This distinction is easy to miss in NLP. A model that treats common ground as a knowledge base of verified facts will mishandle fiction, hypotheticals, negotiation, and misinformation. It will refuse to accept a premise that is not already known, or it will treat every premise as a fact. A model that treats every mention as a fact will over-commit. It will add "the backup ran" to its knowledge base as soon as someone says "the backup ran," even if the sentence was embedded under a negation or a question. The question "what is assumed?" is different from the question "what is true?" and a system that conflates them will make systematic errors in exactly the cases where pragmatics matters most.
The set of propositions that participants in a conversation mutually assume, for the purposes of that conversation. Common ground is a social and epistemic notion, not a truth predicate. It can contain false propositions, and it can be revised.
The mutuality in "mutually assume" is doing real work. It is not enough for a proposition to be true, or for each participant to believe it. Each participant must assume that the others assume it, and so on. For example, Ada and Ben may each accept that the backup ran. If neither takes the other to accept it, the proposition is still outside their common ground. It can still be asserted, but the assertion does more work than it would if the proposition were already shared.
Presupposition Triggers
A presupposition is a background assumption carried by a lexical item or construction. The item is the trigger. Some common trigger types, illustrated with the running case:
| Trigger type | Example | Presupposition |
|---|---|---|
| Definite description | "the backup" | there is a salient backup |
| Factive verb | "Ben knows the servers passed" | the servers passed |
| Change of state | "Ada stopped running the backup" | Ada ran it before |
| Iterative | "Ada ran the backup again" | Ada ran it before |
| Cleft | "It was Ada who ran the backup" | someone ran the backup |
| Possessive | "Ada's server" | there is a salient server associated with Ada |
The trigger does not assert the presupposition in the way that a main clause asserts its content. It takes the presupposition for granted. If the presupposition is not already in the common ground, the listener may accommodate it, adding it to the common ground to make the utterance coherent. Accommodation is a repair strategy, not a free pass. It is constrained by plausibility, by the speaker's authority, and by the structure of the discourse. A listener may accommodate "the backup" if a relevant backup is plausible in the team's workflow. A listener will resist accommodating "the king of France" if the conversation is about a country that has no king.
Temporal clauses such as “after she ran the backup” and factive verbs such as “regret” can also background information. In “Ada ran the backup faster than Ben did,” Ben’s run supplies the comparison standard. Test that background in an embedded sentence before treating the example as evidence for projection.
Projection Under Negation and Questions
Presuppositions often survive embedding. This persistence is called projection. The following examples illustrate common readings.
- "Ada stopped running the backup." Presupposes: Ada ran the backup before.
- "Ada didn't stop running the backup." Still presupposes: Ada ran the backup before. The negation denies the stopping, not the prior running.
- "Did Ada stop running the backup?" Still presupposes: Ada ran the backup before.
- "Maybe Ada stopped running the backup." Can carry the earlier-run assumption when the question is whether the routine ended. If the earlier runs are themselves in question, check whether the assumption still projects.
The factive examples use ordinary readings in which the embedded proposition is taken for granted.
- "Ben knows the servers passed." Presupposes: the servers passed.
- "Ben doesn't know the servers passed." Still presupposes: the servers passed.
- "Does Ben know the servers passed?" Still presupposes: the servers passed.
This is the projection problem: which presuppositions survive under which embeddings? The answer is not uniform. Some environments filter presuppositions; others let them through. The projection behavior of a trigger is one of the main diagnostics that linguists use to identify presuppositions in the first place, and it is one of the main challenges for NLP systems that need to distinguish asserted content from background content.
Projection strength varies with the trigger, embedding, and context. Negated factives in the examples above retain the background assumption under an ordinary reading. A conditional can provide the assumption locally, as the next section shows. For fact checking, this matters when a question or denial presents an assumption in the background.
Local Satisfaction Versus Projection
Consider the conditional:
If Ada used to run the nightly backup, she has stopped running it.
The consequent's "stopped running it" takes earlier backup runs for granted. Within the conditional, the antecedent already supplies that assumption. The whole sentence can therefore be used while leaving open whether Ada ran the backup in the past.
Contrast this with:
If the servers passed, Ben knows the backup ran.
Here "knows" introduces the assumption that the backup ran. The antecedent by itself supplies no such guarantee. With a previously established backup and independently operated servers, a listener may take the backup run as a background assumption. The local check itself only requires the backup to have run in the worlds where the servers passed.
Irene Heim's "On the Projection Problem for Presuppositions" (1983) gives a dynamic account in which a sentence updates an input context, subject to presupposition requirements. Inside a conditional, the consequent's local context contains the live worlds that satisfy the antecedent. An antecedent that already entails the presupposition guarantees local satisfaction. Other facts in the context can also supply it.
A simplified picture:
- Global context .
- Update with "if , ": first form , the local context for .
- Check 's presupposition in .
- With respect to that requirement, the update is defined if the presupposition holds throughout the local context. A challenge or accommodation may arise when it does not.
This is a schematic, not a full semantics. The point is that presupposition satisfaction is checked locally, not only at the top level. Heim's account is one framework among several. Dynamic semantics, trivalent semantics, and pragmatic accounts differ in detail. The empirical phenomenon, local satisfaction and filtering, is robust enough to matter for NLP. A system that checks presuppositions only against the global common ground will misclassify conditionals like the first example. It will think the sentence presupposes that Ada ran the backup, when in fact the conditional is designed to be neutral on that question.
The practical consequence is that presupposition detection cannot be reduced to trigger detection. Finding the word stop is not enough. You need to know what the local context is, what the antecedent contributes, and whether the presupposition is satisfied before it reaches the global level. That is a compositional problem, and it is one of the reasons presupposition remains difficult for end-to-end models.
Accommodation and Its Risks
When a presupposition is not in the common ground, listeners often accommodate it. "Ada's backup failed" can introduce the existence of a backup. "When did you stop cheating on the test?" presupposes that you cheated. The presupposition can be accommodated, but it can also be challenged. "I never cheated" rejects the presupposition rather than answering the question. The difference between accommodating and challenging is a pragmatic choice, and it depends on the listener's goals, the speaker's authority, and the cost of derailing the conversation.
For language technologies, accommodation is a double-edged sword. A system that automatically accommodates every presupposition can be manipulated by loaded questions. "Why did the deployment fail?" invites the system to accept that the deployment failed, even if it did not. A system that never accommodates will fail on ordinary discourse, where speakers introduce new entities with definites all the time. "The backup finished at 3 a.m." is a perfectly ordinary sentence, and a system that refuses to accept the existence of the backup until it has been independently verified will be unusable.
The hard part is deciding which presuppositions to accept and which to flag. That decision depends on the common ground, which is not directly observable. It also depends on the system's role. A conversational assistant may be expected to accommodate ordinary definites but to challenge presuppositions that are relevant to safety or factuality. A fact-checking system may be expected to flag every presupposition that is not independently supported. A summarization system may be expected to preserve presuppositions that are part of the source's framing, or to drop them if they are not part of the main claim. There is no single policy that works for every application, which is why the distinction between asserted and presupposed content needs to be represented explicitly rather than left implicit in the model's behavior.
Deixis and Context-Dependent Reference
The Context Tuple
Deictic expressions are interpreted relative to the context of utterance. A simple context tuple includes:
- a speaker ,
- an addressee ,
- a time ,
- a place ,
- a world .
Then:
- "I" refers to .
- "you" refers to .
- "here" refers to .
- "now" refers to .
- "yesterday" refers to the day before .
- "we" refers to plus some group, whose membership is context-dependent.
The tuple is a simplification. Real contexts include social roles, discourse participants, and institutional facts. They include the question under discussion, the previous turns of the conversation, and the shared history of the participants. But the tuple is enough to see why deixis is a problem for text-only models. A text-only model sees the string, not the tuple. It has to infer the speaker, time, and place from the text, and sometimes the text does not contain enough information to determine them.
The tuple also makes clear that deixis is not a single phenomenon. Personal deixis concerns the speaker and addressee. Temporal deixis concerns the time of utterance. Spatial deixis concerns the place of utterance. Discourse deixis concerns the surrounding text. Social deixis concerns the social relationship between participants. Each of these dimensions can vary independently, and each can create ambiguity for a system that does not have access to the context.
The Running Case
Ada writes in Slack:
The backup finished at 3 a.m. here. I'll check the logs tomorrow.
If Ben reads the message in another time zone the next day:
- "here" is Ada's location, not Ben's.
- "3 a.m." is Ada's local time, not Ben's.
- "I" is Ada.
- "tomorrow" is the day after Ada's utterance time, not the day after Ben's reading time.
- "the backup" is a salient backup in the common ground.
A reader who uses the display date as the time of writing can resolve "tomorrow" one day late. A reader may also need to infer what "here" picks out, such as Ada's office or the site she is monitoring. The example stipulates Ada's location and local time.
The example also shows how deixis interacts with presupposition and common ground. "The backup" is a definite description, and it presupposes that there is a salient backup. "Here" is deictic, and it depends on Ada's location. "Tomorrow" is deictic, and it depends on Ada's utterance time. A system that resolves one of these without the others will produce a partially correct interpretation that may be worse than no interpretation at all, because it will look confident while being wrong about the parts it did not resolve.
Deixis Versus Anaphora
Anaphora resolves to a linguistic antecedent. "Ada checked the server. It was healthy." The pronoun it refers to the server because of the previous sentence. Deixis resolves to the context. "It is healthy here." The here is deictic. The it may be anaphoric, depending on the discourse. The distinction is not always sharp, because some expressions can be interpreted either way, and because the context can include the previous discourse. But the distinction is useful because the two phenomena require different kinds of information. Anaphora requires a model of discourse structure and reference. Deixis requires a model of the utterance context.
Discourse deixis points to a stretch of discourse: "the former," "the latter," "that claim." Social deixis encodes social relationships: pronoun choice, honorifics, forms of address. These are important for translation and dialogue, but we will keep them brief here. Dialogue state and turn-taking are the next chapter's topic in Part IX: Coreference, Discourse, Pragmatics, and Dialogue. The point to carry forward is that deixis is not a marginal phenomenon. It is pervasive in ordinary language, and it is one of the main ways in which meaning depends on context.
Why Deixis Matters for Language Models
A text-only model can access the speaker, time, and place when the system supplies that information or the prompt supports an inference. Missing contextual information can leave "here" or "tomorrow" unresolved. The intended region for "here" may still require a convention or a cue even if the writer’s coordinates are known.
For a paired probe, keep the writing instant fixed at 2026-11-17 00:30 UTC. In one prompt say Ada wrote in UTC and in the other say she wrote in Los Angeles. In both prompts quote Ada saying "I'll check the logs tomorrow" and ask for the calendar date in Ada's local time. The writing dates are November 17 and November 16, respectively, so the target dates are November 18 and November 17. Score the two absolute dates under the same answer format. An unchanged selected date shows that the model chose the same answer in both conditions. Compare both dates’ scores for shifts that leave the ranking unchanged. Neither observation identifies the time zone the model assumed.
A Finite Rational Speech Act Model
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.
Worked Example: The Same Utterance Under Five Stipulations
We fix the target utterance, "some," and vary the model's assumptions. The numbers below come from the code in the next section. They are model outputs under stipulated parameters, not human data. They are meant to be read as predictions of the model, and the comparisons are meant to show how the model's behavior depends on assumptions that are often left implicit.
| Stipulation | ||||
|---|---|---|---|---|
| Baseline | 0.000 | 0.497 | 0.497 | 0.006 |
| Prior favors | 0.000 | 0.071 | 0.071 | 0.859 |
| No "all" option | 0.000 | 0.333 | 0.333 | 0.333 |
| Add "most" | 0.000 | 0.850 | 0.140 | 0.010 |
| Uncertain speaker | 0.000 | 0.333 | 0.333 | 0.333 |
Baseline
With a uniform prior, , and alternatives , hearing "some" makes very unlikely. The speaker in would almost always say "all," because "all" is perfectly informative for while "some" is compatible with and as well. The posterior strongly favors fewer than three passes. The two intermediate states have exactly the same posterior because they have the same prior and likelihood. The speaker puts on saying "some" when all passed. After conditioning on "some," the listener puts on that state.
Prior Favors
Now suppose Ben's prior is strongly concentrated on : , with probability 0.001 on each of the three other states. Hearing "some" still downweights relative to the prior, but the prior is so strong that remains the most likely state. The implicature is not an absolute rule. It is a likelihood effect, and a strong enough prior can overcome it. The posterior on drops from 0.997 to 0.859, which is a large drop in relative terms but still leaves as the most probable state.
Distinguish whether a model ranks all-passed highest and whether hearing "some" lowers the probability of that state. In this example the strong prior keeps the state on top even as its probability falls. Design the evaluation to estimate a change relative to a control if you want evidence of downweighting.
No "all" Option
Suppose the dashboard only allows two reports: "none" and "some." Then "all" is not in . The speaker in can only say "some," because "none" is false. With the baseline uniform prior, hearing "some" leaves , , and equally probable. The implicature disappears because the stronger alternative was never available.
This is the alternative-set effect. The lexical scale is not enough. The alternatives must be salient and available in the context. The model makes this precise: the speaker’s likelihood is equal in those three states, so their relative prior odds are preserved. Under the uniform prior, their posterior probabilities are equal. The listener learns only that the state is not , which is exactly the literal content of "some."
Add "most"
Now suppose the available reports are "none," "some," "most," and "all," with "most" meaning two or three servers passed. Hearing "some" now suggests not-most as well as not-all. The speaker in would prefer "most" to "some," because "most" is more informative for . The listener's posterior shifts toward : "some" now suggests that only one server passed. The posterior on rises to 0.850, and the posterior on falls to 0.140.
In this example adding "most" makes at least two passes less likely after hearing "some". The combined probability of and falls from about 0.503 to 0.150. The posterior on exactly three passes rises slightly, from about 0.006 to 0.010. Normalization redistributes probability across every state, so a decrease for a group can coexist with an increase for one of its members.
Uncertain Speaker
The dashboard shows zero or one exactly. It displays "at least two" when either two or three servers passed. Ada sees the display. Ben knows how it works and hears only Ada’s report. When the display says "at least two", Ada chooses "some", which is true in both states in her information cell. She also uses "some" when one server passed. With Ben's uniform prior and those likelihoods, he assigns equal probability to one, two, and three passes. Giving Ben the display itself would rule out one pass.
The capped count changes what Ada knows while Ben's prior is fixed. The model uses an information cell to represent the possible states after Ada reads the display. Checking two particular servers would call for a different observation model, since the result of that check depends on which servers passed as well as the total.
The Identifiability Problem
Notice that the "no all option" row and the "uncertain speaker" row produce the same posterior. The model's output is consistent with two different causal stories: the stronger alternative was unavailable, or the speaker was not in a position to use it. The posterior alone does not distinguish them. Both stories predict that hearing "some" will leave the listener uniform over , , and , and both stories are consistent with the same observed utterance.
This is a general lesson for probing. A behavioral signature can have multiple causes. To identify the cause, you need additional manipulations: vary the available vocabulary while holding knowledge fixed, or vary knowledge while holding the vocabulary fixed. The toy model makes the identifiability problem visible, which is one of its virtues. It shows that a single observation is not enough to pin down the mechanism, and it shows what kind of experimental design would be needed to distinguish the mechanisms. The same lesson applies to language model probes: a context effect on a token probability can have multiple causes, and a well-designed probe needs to manipulate the causes separately.
Code Implementation: Building and Probing the Toy Model
The implementation is deterministic and CPU-only. It uses NumPy and no random sampling. The first cell imports NumPy and the book plotting helpers. The model itself contains no randomness, so no random seed is needed for the computation.
States, Utterances, and Literal Meanings
We encode the literal semantics as a matrix with one row per state and one column per utterance. A 1 means the utterance is true in that state.
PythonIn [3]Expand
states = ["0 passed", "1 passed", "2 passed", "3 passed"]
utterances = ["none", "some", "all"]
# Rows are states, columns are utterances.
# Stipulated inclusive reading of "some": at least one, possibly all.
L = np.array(
[
[1.0, 0.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 1.0, 0.0],
[0.0, 1.0, 1.0],
]
)The matrix is small enough to read. Row 0 says "none" is true when zero servers passed. Row 3 says both "some" and "all" are true when three passed. That overlap is what makes the scalar inference possible. If "some" were false in , then hearing "some" would rule out by literal meaning alone, and there would be no need for pragmatic reasoning. The inclusive literal meaning leaves possible. The speaker's choice lets the listener lower its probability. Under the finite-softmax assumptions used here, it retains positive probability.
The Literal Listener
The literal listener normalizes each column over the states in which the utterance is true. With a flat prior, this is just the truth table divided by its column sum.
PythonIn [4]Expand
def literal_listener_flat(L):
"""P_L0(w | u) with a flat prior over states."""
support = L.sum(axis=0, keepdims=True)
if np.any(support == 0):
raise ValueError("Each utterance needs at least one supporting state")
return L / support
L0 = literal_listener_flat(L)Each column of L0 sums to one. For "some," the column is . For "all," it is . The column for "none" is . The literal listener is maximally uncertain among the states compatible with the utterance, which is what the flat-prior stipulation amounts to.
The Speaker
The speaker's utility is the log of the literal listener's probability, minus a cost. We normalize over utterances for each state. The softmax_rows helper does that normalization and handles the zero-probability utterances.
PythonIn [5]Expand
def softmax_rows(utility, alpha):
"""Normalize finite utilities separately for each state."""
if not np.isfinite(alpha) or alpha <= 0:
raise ValueError("alpha must be finite and positive")
maxima = utility.max(axis=1, keepdims=True)
if not np.isfinite(maxima).all():
raise ValueError("Each state needs an utterance with finite utility")
shifted = utility - maxima
with np.errstate(over="ignore", under="ignore"):
weights = np.exp(alpha * shifted)
return weights / weights.sum(axis=1, keepdims=True)
def speaker(L0, alpha=4.0, costs=None):
"""P_S(u | w), normalized over utterances for each state."""
with np.errstate(divide="ignore"):
utility = np.log(L0)
if costs is not None:
utility = utility - costs[None, :]
return softmax_rows(utility, alpha)The first np.errstate context suppresses the warning for . Those entries become negative infinity. Subtracting each maximum before multiplying by gives the best report a score of zero. All the remaining scores are nonpositive, so exponentiation gives weights between zero and one. A sufficiently negative scaled score can be represented by negative infinity and then gives zero weight.
The Pragmatic Listener
The pragmatic listener multiplies the speaker matrix by the prior and normalizes over states for each utterance.
PythonIn [6]Expand
def pragmatic_listener(prior, speaker_probs):
"""P_R(w | u), normalized over states for each utterance."""
unnormalized = speaker_probs * prior[:, None]
marginal = unnormalized.sum(axis=0, keepdims=True)
return np.divide(
unnormalized,
marginal,
out=np.full_like(unnormalized, np.nan),
where=marginal > 0,
)The extra dimension in prior[:, None] makes each state prior multiply its full speaker row. The normalizer sums over the state axis. With a uniform prior, the common factor cancels when the marginal is positive. For a zero-marginal report, the function returns a column of nan values to show that conditioning is undefined.
Baseline Computation and Sanity Checks
We compute the baseline model and verify the normalization axes. The speaker rows should sum to one. The listener columns should sum to one.
ConsoleOut [7]Expand
Speaker row sums: [1. 1. 1. 1.] Listener column sums: [1. 1. 1.] P(w | 'none') = [1. 0. 0. 0.] P(w | 'some') = [0. 0.497 0.497 0.006] P(w | 'all') = [0. 0. 0. 1.]
The speaker rows sum to one, and the listener columns sum to one. For "some," the posterior is approximately . That is the scalar implicature: "some" makes "all" very unlikely. The equal probabilities for and reflect the symmetric prior and speaker likelihoods, and the small residual on reflects the softmax speaker's non-zero probability of choosing a weaker utterance even when a stronger one is available.
Four Variations
We now compute the four variations from the worked example. The prior change is a listener prior. The restricted vocabulary is an alternative-set change. The "most" model adds an intermediate alternative. The uncertain-speaker model changes the speaker's information state.
PythonIn [8]Expand
# 1. A listener prior that strongly favors all three passing.
prior_all = np.array([0.001, 0.001, 0.001, 0.997])
R_prior = pragmatic_listener(prior_all, S)
# 2. A restricted vocabulary with no "all" alternative.
utterances_r = ["none", "some"]
L_r = np.array(
[
[1.0, 0.0],
[0.0, 1.0],
[0.0, 1.0],
[0.0, 1.0],
]
)
L0_r = literal_listener_flat(L_r)
S_r = speaker(L0_r, alpha=4.0)
R_restricted = pragmatic_listener(uniform, S_r)
# 3. An expanded vocabulary with "most."
utterances_m = ["none", "some", "most", "all"]
L_m = np.array(
[
[1.0, 0.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 1.0, 1.0, 0.0],
[0.0, 1.0, 1.0, 1.0],
]
)
L0_m = literal_listener_flat(L_m)
S_m = speaker(L0_m, alpha=4.0)
R_most = pragmatic_listener(uniform, S_m)The restricted model has two utterances and the model with "most" has four. In both arrays, the second column still represents "some". Comparing the right column matters when the vocabulary order changes.
Uncertain Speaker
We give the capped-tally speaker an information cell for each display result. Here she assigns equal weight to each state within her cell. We average the log literal-listener probability over that cell and apply the same softmax. A report that is false in any state in the cell has negative-infinite expected utility.
PythonIn [9]Expand
def speaker_expected(L0, cells, alpha=4.0):
"""Speaker who is uncertain within each information cell."""
n_states, n_utts = L0.shape
with np.errstate(divide="ignore"):
logL0 = np.log(L0)
utility = np.full((n_states, n_utts), -np.inf)
for w, cell in enumerate(cells):
utility[w] = logL0[cell].mean(axis=0)
return softmax_rows(utility, alpha)
# The dashboard shows 0, 1, or at least 2.
cells = [np.array([0]), np.array([1]), np.array([2, 3]), np.array([2, 3])]
S_unc = speaker_expected(L0, cells, alpha=4.0)
R_unc = pragmatic_listener(uniform, S_unc)For states and , Ada sees the same capped tally and assigns the same probability to each allowed report. "All" has negative-infinite utility because it would be false in . In fact, the speaker never reports "all" under this observation scheme, so its listener column is undefined. The posterior after "some" is defined and uniform over one, two, or three passes.
Comparison Table
We collect the "some" column from each model into a single matrix and print it as a table.
ConsoleOut [10]Expand
condition 0 1 2 3 baseline 0.000 0.497 0.497 0.006 prior favors 3 0.000 0.071 0.071 0.859 no 'all' option 0.000 0.333 0.333 0.333 add 'most' 0.000 0.850 0.140 0.010 uncertain speaker 0.000 0.333 0.333 0.333
The table matches the worked example. The baseline row has most of its mass on one or two servers. The prior row has most of its mass on three. The restricted and uncertain rows are uniform over one, two, and three. The "most" row shifts mass to one, with near 0.85. The comparison is the point: the same target utterance produces different posteriors under different stipulations, and the differences are not arbitrary. They follow from the structure of the model.
The baseline comparison shows two priors, but the posterior is a continuous compromise between prior and likelihood. A short deterministic sweep makes that tradeoff visible: as Ben's prior mass on three servers rises, the likelihood effect of "some" fights against it, and the posterior on three servers rises too.
PythonIn [11]Expand
import numpy as np
prior_w3_grid = np.linspace(0.02, 0.997, 1001)
posterior_w3_grid = []
for p3 in prior_w3_grid:
remaining = (1.0 - p3) / 3.0
prior_grid = np.array([remaining, remaining, remaining, p3])
posterior_grid = pragmatic_listener(prior_grid, S)
posterior_w3_grid.append(posterior_grid[3, 1])
posterior_w3_grid = np.asarray(posterior_w3_grid)
identity_line = np.array([0.0, 1.0])VisualizationOut [12]Expand

Visualizing the Speaker
The speaker heatmap shows the choice probabilities. Each row is a state, and each column is an utterance. The row sums are one.
VisualizationOut [13]Expand

The speaker in state 0 says "none." The speaker in states 1 and 2 says "some." The speaker in state 3 says "all" with high probability and "some" with low probability. That low probability is the source of the implicature. If the speaker in state 3 never said "some," the implicature would be categorical: hearing "some" would rule out entirely. Because the speaker sometimes says "some" even in , the implicature is probabilistic: hearing "some" downweights without eliminating it.
Visualizing the Listener
The listener heatmap compares the posterior after hearing "some" under the five stipulations. The underlying row probabilities sum to one over the four states. Rounded annotations may sum to a nearby value.
VisualizationOut [14]Expand

The heatmap makes the five conditions comparable at a glance. The baseline row is concentrated on one and two. The prior row is concentrated on three. The restricted and uncertain rows are flat over one, two, and three. The "most" row is concentrated on one. Two settings produce the same posterior even though they change different assumptions. The figure is not evidence about human listeners. It is a visualization of the model's predictions, and its value is that it makes the consequences of the stipulations easy to compare.
Key Parameters
The key parameters for the finite RSA model are:
- Inverse temperature controls how strongly the speaker favors higher finite utilities. At small positive values, probabilities are nearly uniform over admissible utterances. At large values, mass concentrates on the highest-utility choices.
- Listener prior sets the state weights before hearing the report. The example with a strong prior on three passes keeps that state on top after the update.
- Utterance costs reduce report utilities. The examples set them to zero.
- Information cells specify the states the speaker considers possible. In the capped-report example, a shared cell removes the information that would justify separate choices between two and three passes.
- Truth matrix records which state–report pairs are compatible. Its columns define the literal listener, and adding a report adds a column.
The literal listener keeps a flat prior throughout these examples. The prior we vary belongs to the pragmatic listener, so the prior sweep leaves the speaker’s choices unchanged.
Testing Next-Token Models for Context Sensitivity
The RSA model is a model of meaning. A next-token model is a model of strings. To connect them, we need a measurement design that respects the difference.
The Measurement Problem
A language model assigns a probability to each token given a context:
where:
- : the token being predicted at position
- : the preceding tokens that form the context
- : the model parameters
A pragmatic listener, by contrast, assigns a probability to a state given an utterance:
where is the intended state (for example, how many servers passed) and is the observed utterance (for example, "some").
These are different objects. The token probability is over surface forms. The meaning probability is over intended states. A model can assign high probability to the token "some" without representing the not-all inference. Conversely, a model can represent the inference in some internal sense without its next-token distribution reflecting it. The token probability is not a calibrated belief about the number of servers that passed. It is a belief about what token comes next, and the two can come apart in many ways.
There are several ways to bridge the gap, and each has costs:
- Marginalize over strings with the same meaning. Assign meanings to complete continuations under a specified stopping rule. Then add probabilities of distinct completed outcomes that share the relevant meaning. Summing both a prefix and its extensions as separate outcomes would count some probability twice.
- Behavioral probes. Ask the model to answer "How many servers passed?" or to choose among states. This measures a different behavior, and it is sensitive to prompt format, but it can be more interpretable than a raw token probability.
- Calibration. Evaluate probabilities against observations of the same forecast event on held-out examples. If the forecast is the chance a reader endorses "not all," compare forecasts with readers’ endorsements. A next-token production score forecasts a different event.
- Ordinal predictions. Test whether a model ranks outcomes in the direction predicted by a specified theory. In our fully informed RSA baseline, exceeds . The capped tally makes "all" impossible, so the corresponding posterior comparison is undefined there.
The safest approach is to be explicit about which object you are measuring and to avoid inferring pragmatic competence from a single token probability. Each of the four methods above measures something different, and a claim that is justified under one method may not be justified under another. A calibration result tells you about the model's probability estimates. A behavioral probe tells you about the model's outputs on a different task. An ordinal result tells you about a qualitative pattern. None of them, by itself, tells you that the model has pragmatic competence in the sense that a human does.
Paired Context Interventions
A controlled test fixes the target utterance and varies one contextual factor at a time. The target is the same string in both conditions. The contexts are minimal pairs. The measured quantity is the change in log probability of the target:
where:
- : the fixed string whose probability is measured, such as "some"
- and : the two conditions of the minimal pair
- : the model's probability of the target string given that context
- : the log-probability ratio, which measures how much the context shift changes the target's likelihood
When both target probabilities are positive, is finite and positive if the target is more likely under context B. A negative means it is less likely. The same design can be applied to the whole next-token distribution with a divergence measure, such as Kullback-Leibler divergence. The KL divergence is nonnegative and zero exactly when the distributions agree. It can be infinite when assigns zero mass to an outcome with positive mass. It need not agree with the divergence in the reverse direction.
The design choices matter:
- Fix the target. Verify the target IDs after tokenizing each complete prompt with its continuation. If a token crosses the prompt boundary, adjust the separator or scoring setup consistently. Sum the conditional log probabilities of all target tokens.
- Vary one factor. Choose one factor to change, such as the prior, the available alternatives, or the speaker's knowledge. Changing several factors in one pair leaves their separate contributions unidentified.
- Use multiple items. A single context pair is an anecdote. The unit of analysis is the item, not the token. Compute a per-item delta and use a paired test across items.
- Control the prompt. Keep the shared wording and sentence order fixed within each pair. Across independently created pairs, distribute any permissible order variations evenly. Omit labels such as "implicature" that give away what you are testing.
- Report the model and decoding. State the model version, the tokenizer, the temperature, and whether you used log probabilities or sampled generations. A greedy generation is not a probability.
- Check contamination. The items may appear in pretraining data. Use novel contexts and held-out items. A benchmark score is not evidence of generalization if the benchmark leaked.
These choices are not bureaucratic. Each one addresses a specific threat to validity. Fixing the target controls for lexical differences. Varying one factor controls for confounds. Using multiple items controls for idiosyncratic contexts. Controlling the prompt controls for superficial cues. Reporting the model and decoding supports reproducibility. A contamination check reduces the risk of mistaking memorization for generalization. A study that skips one of these steps may still be informative, but the claim it supports is weaker, and the weakness should be stated explicitly.
A Toy Scorer for the Arithmetic
To make the measurement code checkable, we use a stipulated lookup table. It is not a language model, and the numbers are invented. The purpose is to show the arithmetic of a paired effect, not to report a result about any real model.
PythonIn [15]Expand
VOCAB = ["all", "most", "some", "none", "unclear"]
# A stipulated lookup table, not a language model.
# Each row is a probability distribution over the next word.
TOY_CONTEXTS = {
"complete_report": np.array([0.55, 0.15, 0.20, 0.02, 0.08]),
"capped_report": np.array([0.08, 0.12, 0.42, 0.03, 0.35]),
}
def toy_scorer(context):
"""Return log-probabilities over VOCAB for a stipulated context."""
return np.log(TOY_CONTEXTS[context])
def paired_effect(scorer, target, context_a, context_b):
"""Difference in log P(target | context) for a fixed target."""
i = VOCAB.index(target)
return scorer(context_b)[i] - scorer(context_a)[i]
def kl_divergence(p, q):
"""Return KL(p || q) in nats for aligned probability vectors."""
active = p > 0
if np.any(q[active] == 0):
return np.inf
return float(np.sum(p[active] * (np.log(p[active]) - np.log(q[active]))))Both toy distributions sum to one. In each case, all three servers passed in the underlying scenario. In the complete-report condition, Ada sees the exact count. In the capped-report condition, she sees only "at least two". We stipulate a probability of 0.20 for "some" with the full count and 0.42 with the capped count. Greater use of the weak report under limited knowledge is compatible with the speaker model above. The lookup probabilities illustrate arithmetic and were chosen independently of that model.
ConsoleOut [16]Expand
complete_report P('some') = 0.20
capped_report P('some') = 0.42
Delta log P('some') = 0.742
KL(capped_report || complete_report) = 0.659The delta is positive because the toy lookup assigns higher probability to the same target under the capped report. The KL divergence compares all five probabilities. Both quantities describe text scores. Measuring a listener's interpretation would require asking about the likely server count after showing the report, or specifying a mapping from continuations to interpretations.
The arithmetic is easier to read when the two stipulated next-token distributions are placed side by side. The chart shows the same vocabulary under both contexts, so the shift in "some" can be compared with the shifts in the competing tokens.
PythonIn [17]Expand
import numpy as np
toy_context_names = ["complete report", "capped report"]
toy_context_matrix = np.vstack(
[
TOY_CONTEXTS["complete_report"],
TOY_CONTEXTS["capped_report"],
]
)
toy_x = np.arange(len(VOCAB))
toy_bar_width = 0.36VisualizationOut [18]Expand

A real model may react to the wording of the dashboard description. To test the knowledge manipulation, repeat the comparison with paraphrases, counterbalance irrelevant wording, and hold the underlying scenario fixed. Scoring Ada's report measures a production preference. Probing Ben's interpretation after he reads it measures a different response.
A Paired Prompt You Can Score
Use the same instruction and completion prefix in both conditions. Change the dashboard report from exact to capped. Keep the true count of three in the answer key so the model sees only the dashboard report.
CodeExpand
Ada can see only the dashboard report.
The dashboard report says: three passed.
Ada may report none, some, or all. Complete Ada's report.
Ada's report:For the second prompt, replace three passed. with at least two passed. in the dashboard line. Score the identical continuation Some of the servers passed the check. after both prompts with the same model and tokenizer. Include the leading space in both. If the continuation occupies several tokens, sum the conditional log probabilities over the whole continuation. The change measures the score of this exact continuation under the two prompts. A separate listener task can test which state a reader infers from the report.
From Tokens to Meanings
If you want a distribution over meanings, you need a model of meaning that is separate from the token distribution. Some options:
- Map completed continuations to meanings. A formal grammar can assign meanings to distinct completed continuations. Their probabilities induce a distribution over meanings. This is clean in a toy domain and hard in open-domain language.
- Ask the model to report a meaning. Use a multiple-choice or free-response probe. This measures the model's behavior on a different task, and it can be compared to the RSA prediction.
- Fit a calibration map. Learn a mapping from token probabilities to human meaning judgments. Check the mapping on held-out items. Report reliability, not just accuracy.
- Test ordinal predictions. Compare conditions that the theory says should differ in a particular direction. An ordinal test checks the direction of the change. The result is invariant under a shared strictly increasing transformation of the scores. Calibration compares numerical forecasts with outcome frequencies.
Each option makes a different claim. The first is an implementation claim about a semantics. The second is a behavioral claim about the model's outputs. The third is an empirical claim about calibration. The fourth is a claim about ordinal structure. Mixing them up is a common source of overinterpretation. Calibration summarizes the relationship between predictions and observed outcomes. A claim about the model's internal representations needs separate evidence. Keeping the claims separate is part of what makes the evidence interpretable.
Benchmarks and Evidence
Several benchmarks make the evaluation problem concrete.
IMPPRES. Jeretic and colleagues tested BERT, InferSent, and a bag-of-words model trained on MultiNLI. BERT often labeled the scalar inference from "some" to "not all" as entailment. In the presupposition analysis, each model's projection scores used items for which it correctly classified the corresponding cancellation and unembedded control pairs. The bag-of-words system also predicted positive presuppositions on its retained items. BERT was the only evaluated system that reliably rejected negation of the projected content under the reported analysis. Results varied by trigger and condition. IMPPRES study
The Goldilocks of Pragmatic Understanding. Ruis and colleagues asked models to judge indirect replies with "yes" or "no". Models tuned with instructions written for individual training examples generally performed better on the binary implicature task. The authors ranked answer likelihoods for most models. For GPT-3.5-turbo and GPT-4 they used greedy decoding with prompts that requested "yes" or "no". The comparison spans different models and training settings. The binary scoring task does not by itself diagnose over-application of an inference. Ruis et al.
PUB. The benchmark tests models on several pragmatic phenomena, including implicature and presupposition. Three human evaluators completed a subset of the model evaluation items. The authors report aggregate differences from this human comparison and variation across tasks. In Figure 5's Implicature NLI panel, the best tested model score exceeds the human subset score. PUB study
These benchmarks are useful because they standardize items and metrics. They are limited because pragmatic competence is multi-dimensional, and a single score can hide important differences. A model that scores well on scalar implicature may fail on presupposition projection. A model that scores well on both may still be sensitive to prompt wording. The evidence is always conditional on the benchmark. A benchmark result is a constraint on the space of possible claims, not a final verdict on the model's pragmatic competence.
Behavior, Evidence, and Implementation Claims
It helps to keep three kinds of claims separate:
- Implementation claims are about the code and the model. "This function normalizes the speaker over utterances." "This prompt template has the context before the target." These claims can be checked by reading the code.
- Behavioral claims are about what the system does. "The model assigns higher probability to 'some' when the context mentions an unchecked server." These claims can be checked by running the system.
- Evidence claims are about what the behavior shows. "The model represents the speaker's epistemic state." "The model is pragmatically competent." These claims require an argument that connects the behavior to the theoretical construct. They are the easiest to overstate.
The RSA model is an implementation of a stipulated theory. Its outputs are behavioral predictions under that theory. They become evidence about human cognition only when compared to human data. The same discipline applies to language models. A token probability is a behavior. A conclusion about pragmatic competence is an evidence claim. The gap between them is where most overinterpretation happens. Keeping the three kinds of claims separate does not make the evidence stronger, but it makes the argument clearer, and it makes it easier to see where additional work is needed.
Limitations and Impact
The RSA model is a toy, and its limitations are instructive. It assumes a finite, known state space, a finite, known utterance set, and a literal semantics that is given in advance. It assumes a softmax speaker with a single rationality parameter and no costs. It has no composition, no dialogue, no world knowledge, and no learning. Changing the temperature, prior, alternatives, or information cells can change the posterior. Some changes leave the relative state weights unchanged, such as varying the temperature when every state allows a single report. The model can show that alternatives and knowledge matter; it cannot tell you which alternative set a real speaker had in mind, or how a real listener weights priors against likelihoods. For that, you need data.
Several accounts explain when a presupposition projects. An evaluation can include a question whose background claim is disputed, a negation where that claim persists, and a conditional that supplies it locally. These contrasts test which assumptions the model takes for granted in the answer.
An evaluation result depends on the model version, prompt format, scoring or decoding method, and task distribution. The IMPPRES, Goldilocks, and PUB studies give evidence about the model variants each paper tested. A follow-up can use their task designs to test a newer model under a reported protocol.
The practical impact is broad. Pragmatics matters for dialogue systems that must track what is assumed, for translation systems that must resolve deixis, for summarization systems that must preserve or drop presuppositions, for fact-checking systems that must distinguish asserted content from background assumptions, and for safety systems that must resist loaded questions and misleading presuppositions. A system that ignores the common ground can be manipulated. A system that over-accommodates can spread false assumptions. A system that treats a token probability as a belief can be overconfident about its own understanding. The models and methods in this chapter are diagnostic tools. They help us ask better questions about what a system is doing, and they keep us from confusing a fluent continuation with a warranted inference.
Summary
Pragmatics is the study of speaker meaning in context. It is not reducible to literal entailment, and it is not fully captured by next-token prediction.
- Conversational implicature arises from reasoning about a speaker's choice among alternatives. "Some" can implicate "not all" when "all" is a salient, available, and relevant alternative, and when the speaker is assumed to be well informed. The inference is defeasible: it can be canceled by additional content without contradiction.
- Alternatives and speaker knowledge are separate variables. Removing the stronger alternative and making the speaker uncertain can both block the not-all inference, and they can produce the same posterior for different reasons. The posterior alone cannot identify which change produced it.
- Common ground is the set of propositions participants mutually assume. It is not the same as truth. False assumptions can be in the common ground, and they can be revised.
- Presuppositions are background assumptions triggered by lexical items and constructions. They often project through negation and questions, but they can be locally satisfied in conditionals and other embedded contexts. Heim's dynamic account checks presupposition requirements in the local context.
- Deixis depends on the context tuple: speaker, addressee, time, and place. "Here," "now," "I," and "tomorrow" are not interpreted relative to the reader's context. A reader or system needs enough context to resolve the expression at the intended level of precision.
- The finite RSA model normalizes the speaker over the report options at each state. It normalizes the listener over states for reports with positive marginal probability. The prior, alternative set, and speaker information can affect the posterior.
- A fixed-target probe changes a specified context variable and measures the same continuation under both prompts. Use multiple matched items to estimate how reliably the effect occurs. Context sensitivity alone leaves open what the model inferred.
- Benchmarks such as IMPPRES, the Goldilocks study, and PUB provide evidence about specific models under specific conditions. They are useful constraints, not final verdicts.
The next chapter turns to dialogue state and turn-taking in Part IX: Coreference, Discourse, Pragmatics, and Dialogue, where context is not a static tuple but a sequence of updates. The pragmatic questions remain: what is assumed, what is asserted, what is implicated, and what a listener can justifiably infer.
Quiz
Ready to test your understanding? Take this quick quiz to reinforce what you've learned about pragmatics, implicature, and presupposition.
Pragmatics, Implicature, and Presupposition
Join the discussionAsk a question or share what you learned.
Keep exploring
Reference
Citation details
Cite or share this article.


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!