Distribution-Based Measures of Surprise for Creative Language: Experiments with Humor and Metaphor
Paper · 2022 · Razvan C. Bunescu and Oseremen O. Uduehi
Summary
A word can be hard to predict because a sentence could go in many directions. It can also be hard to predict because the sentence points strongly in one direction and the writer takes it somewhere else. The paper asks how to tell these situations apart and whether doing so helps identify creative uses of language. Its starting point is that surprise depends on a reader’s expectations. An expression that startles someone on a first encounter may feel ordinary to someone who has heard it many times. The authors give this idea a concrete form by using BERT as a reference reader and examining what it expects to find at a missing word.
The authors compare the information content of the word that actually appeared with several ways of measuring its probability relative to the alternatives. One measure compares it with the single most likely completion. The paper’s new Core Expectation Realization gap compares it with the combined probability of a group of likely completions. The group matters because an expectation can be clear at the level of meaning even when many words could fulfill it. A phrase about an infestation, for instance, can lead a reader to expect some kind of pest without strongly predicting any particular pest name. A word referring to legislators can violate that expectation even when there is no overwhelmingly probable completion.
The experiments use humorous edits to news headlines and uncommon metaphors drawn from annotated collections. On Humor, information content alone reaches a pooled F1 of 46.7, and the Core gap reaches 46.2. On Metaphor, the corresponding scores are 40.8 and 41.1. The strongest combination of distribution-based features reaches 48.4 on Humor and 43.6 on Metaphor. It gives the classifier information about the observed word and separate descriptions of the alternatives, so training can determine how much weight each deserves.
A separate classifier using contextual representations scores substantially higher. The paper’s contribution is to show what the simpler probability measurements can reveal about these examples. The observed word’s probability supplies much of the predictive signal, while the shape of the distribution adds evidence across both datasets. The evaluation concerns selected words and their proxy labels for creative language. It leaves open how closely the scores match human surprise, how much the results depend on the reference reader, and whether measuring expectations about meaning directly would improve the account.
Deep dive: Distribution-Based Measures of Surprise for Creative Language: Experiments with Humor and Metaphor
The paper compares ways to measure how much a word defies expectations and tests which measures help detect novel humor and metaphor. · about 38 minutes to read
The problem and its context
Why an unlikely word can feel ordinary
Imagine encountering the start of a story before anyone or anything has been introduced. You may know that a noun will follow an article, while having little basis for guessing which noun. An individual word can have quite a small probability simply because the range of plausible words is large. When the noun arrives, it supplies information about what the story is going to be about. Whether it overturns an existing expectation depends on how much the opening led you to anticipate a particular continuation.
The authors use a line of poetry to illustrate how that situation differs from a deliberate departure. Early in the line, the sun is introduced into a context that gives the reader little reason to anticipate any particular entity. Later, a verb presents its movement as gliding. The choice of verb can feel marked because there is now something to form expectations about and the writer has chosen an unexpected way to describe it. Both words may receive low probabilities. A score based only on those probabilities has no way to recover the different circumstances that made them low.
The paper finds a version of the same argument in Warren Weaver’s discussion of a bridge deal. The probability of any particular hand is tiny because a shuffled deck admits so many hands. Every hand is equally likely in the example, so seeing one specified hand provides no evidence that the deal departed from an expectation favoring another. The analogy supplies a criterion for a word-level measure. It should consider whether the word faced much more plausible alternatives, as well as how unlikely it was in absolute terms.
This criterion gives the paper two distinct uses of probability. Shannon information content measures how much information an occurrence conveys, under a given probability distribution. The rarer the occurrence, the larger that quantity. The paper reserves surprise for measures intended to capture a violation of expectation. This use of surprise is narrower than every response a reader might have to a sentence. It isolates a question the authors can ask of a set of word probabilities: what did the surrounding text make especially plausible, and how far away was the choice the writer made?
Why the surrounding text matters
The paper locates this question within earlier information-theoretic accounts of communication. It describes a communication channel through which a speaker conveys information to a listener. Speakers have reason to use that channel efficiently and to keep the message easy enough to understand. Under the Uniform Information Density hypothesis, this pressure can encourage a relatively even flow of information. The hypothesis gives a way to discuss why a highly predictable part of an utterance may receive a shorter pronunciation, or why speakers can sometimes leave out a marker that would introduce a relative clause.
The authors also describe operationalizations of the hypothesis in which the point of comparison is a typical information rate. In that account, a word can be unusually informative relative to its surroundings or to a wider average. The paper’s immediate concern is what to infer when such a word occurs. The unpredictable introduction of a new entity and an unexpected description can both give a high reading. A measure of expectation violation uses the local probabilities to distinguish the situation in which the reader had a strong expectation from the situation in which the reader had to wait and see. The paper discusses this background in connection with Revisiting the Uniform Information Density Hypothesis.
That distinction also helps locate the paper’s scale of analysis. The creative choice may occur in a single edited word, which makes that position a practical place to begin. Expectations can also accumulate over a story and be overturned by a plot development. The paper discusses both scales and conducts its experiments at the word level. Its design asks whether a designated occurrence carries evidence of a departure. It does not require a representation of the whole sequence of beliefs that a reader might form over a narrative.
What earlier work contributed
The paper draws on work that treats expectation as something an artist can shape. In the accounts of music that the authors discuss, a composer can make a continuation seem likely and then depart from it. The listener’s reaction depends in part on anticipation built by what came before. In computational creativity, the paper describes surprise as a criterion for evaluating creative artifacts and as a way of guiding a search for possible outputs. It also describes work on attention and on design, where an unexpected feature of a sketch can lead a designer to revise a goal. These examples motivate studying violated expectations while leaving room for domain-specific definitions of what counts as an expectation.
The related work on humor gives a more specific account of what can change. In the incongruity theories discussed by the authors, a text initially favors one interpretation. A later segment makes another interpretation salient and can force the reader to reconsider the earlier material. A substitution in a headline can be a small instance of this structure. Much of the sentence stays familiar, so the replacement can both conflict with the likely reading and point toward a different one. A probability measurement at the substitution can register an unusual choice. A complete account of the joke would also have to explain the interpretation the reader is led to adopt.
Metaphor makes familiarity especially important. As the paper explains, an expression can connect a familiar domain with a less familiar one and help a reader understand, frame, or respond emotionally to a subject. Repeated use can make a once unfamiliar mapping conventional. A person may understand a conventional metaphor immediately and use it routinely, even though it remains metaphorical. The authors point to earlier probing evidence that conventional metaphorical information is encoded during pretraining, which gives them a reason to take familiar figurative uses seriously when choosing a reference reader. Metaphors in Pre-Trained Language Models
Creative-language detection therefore poses a different labeling question from ordinary metaphor detection. A shared task can ask whether a word is used metaphorically without asking whether the use is familiar to the person reading it. The authors’ question requires both a figurative or humorous occurrence and a judgment about its novelty for the specified reader. The paper uses existing humor and metaphor collections to find candidates for that second task, with additional selection intended to make novelty more plausible. The VUA and TOEFL Metaphor Detection Shared Task
The choice of reader is part of the problem definition. The same expression can be new to a listener who has never encountered it and conventional to a listener who uses it regularly. Fixing the reader gives the experiment a consistent source of expectations and makes it possible to assign different scores to the same word in different surroundings. It also commits the authors to a particular interpretation of the scores. An occurrence is being assessed against the expectations calculated for this reader, under this view of the context. Readers with different experiences or a different amount of context could plausibly form different expectations.
The method, step by step
Start with a word and a reference reader
The input is a piece of text with an identified word position. In an edited headline, it is the position where the original and humorous versions differ. In a metaphor example, it is the position of the word annotated as expressing the source domain. The source domain supplies the concept used to describe a target, as when an expression about pests is applied to people. The task is to score the indicated occurrence. A headline or sentence supplies context, while the classifier receives features of the selected word and of the choices it could have faced.
The authors hide the word at that position and ask their reference reader for a distribution over possible replacements. BERT Large, in its cased version, supplies the scores throughout the reported experiments. It can use words before and after the gap, and the authors set the context window to 15 tokens on each side. A reader looking only at previous discourse would have a different prediction problem. The paper names OPT as an option for that setup. Its experiments use the text following the gap as evidence along with the text preceding it. BERT · OPT
The word that was hidden is called the realization. The probabilities assigned to candidate completions say what this version of the reader expected given the surroundings. For a humorous edit, the realized word can be compared with the alternatives suggested by the rest of the headline. For a metaphor, the same operation can reveal that the nearby text favored a literal completion or that clues elsewhere in the sentence made the metaphorical choice easy to anticipate. The method treats the observed probability and the pattern among alternatives as separate pieces of evidence, then tests which combinations help discriminate between the labels.
From a marked word to a creative-language prediction
The steps in order.
Make the candidates fit the task
The probabilities returned at the mask are for tokens. Because BERT uses WordPiece subword tokenization, a word can be divided into an initial token and pieces that are marked as continuations. When the true word has several pieces, the main experiments use the probability of the initial piece as a proxy for that word’s probability. The authors also tried aggregating all its piece probabilities by multiplication and by geometric mean in preliminary experiments. They report no significant difference and suggest that the continuation pieces often have very high probabilities once their predecessors are known.
The distinction between initial and continuation pieces affects the other candidates at the gap. One metaphor example places a word meaning magic next to a word about taxes. When the magical word is hidden, a likely token can attach to the preceding word and turn it into taxation. That may yield a plausible reading of the masked text under the tokenization rules. For this task, the missing item is treated as a separate word. A token that completes the previous word answers a different question, so continuation tokens are removed from the candidate set.
Function words and punctuation are removed as well. An example using a medical description for a political system gives a determiner a relatively high probability at the masked position. A separate metaphor example gives punctuation significant probability because the surrounding clause can accommodate a comma or dash. Those possibilities would matter if the task were unrestricted completion of a masked passage. The occurrences selected for the humor and metaphor experiments are content words, so the probability distribution used for scoring is restricted to candidates that can serve that role.
After these exclusions, the authors renormalize the surviving probabilities so the total mass is again 1. In effect, the alternatives are compared conditional on the missing expression being of the kind the experiment studies. The filtering matters to the interpretation of every score. The most likely item is the top surviving candidate. Entropy describes the spread over the surviving vocabulary, and a probability threshold for inclusion in the core is applied to those revised probabilities. Thus a contextual word probability in the reported experiments already includes a decision about what counts as a relevant alternative.
Turn probability into information content
The notation starts with a distribution over a space of possible events. For the application, the events are candidate completions after filtering. The context determines the distribution. The following expression makes the context explicit before the shorter notation used by the paper’s measures.
p(x = j ∣ h)
Here p denotes probability, x denotes the variable whose value is to be observed, j is a particular candidate value, and h is the context. The equals sign specifies the event that x takes value j, and ∣ means “given.” When the paper describes an expectation being violated, the context gives one candidate, j, much greater probability than the realized candidate, written k. In the scores that follow the context is implicit in p, and x stands for the observed outcome itself.
I(p, x) = −log p(x)
I is the information content of x under the distribution p. The term p(x) is the probability assigned to the outcome that occurred, log is the logarithm, and the minus sign makes less probable outcomes carry more information. The paper describes the information unit as bits. This score needs only the observed outcome’s probability once the distribution has been prepared. If two observed words receive the same probability in their respective contexts, they have the same information content even if their competing alternatives differ greatly.
H(p) = E[−log p]
H is Shannon entropy, the average information content of an outcome under p. E denotes expectation under that same distribution. In the bracketed term, p stands for the probability of the outcome drawn and the logarithm is applied to that outcome’s probability. More probable outcomes therefore contribute more weight to the average. As a description of the possible completions, entropy is high when the available probability is widely spread and lower when the distribution is concentrated. It describes the choices the reader faced before taking account of which outcome was observed.
The two quantities address different questions about the same gap. Information content measures how improbable the word turned out to be. Entropy measures how much uncertainty the reader generally faced there. A high score on both is possible if the text permits many fairly plausible continuations. A high information content with much lower entropy is consistent with a gap where alternatives carried stronger expectations. This is the comparison behind one of the evaluated surprise measures.
Compare the word with a distribution-wide reference
Weaver’s index compares the probability of the occurrence with an average probability under the same distribution. The average is weighted by the probabilities of the outcomes, so a highly probable candidate also has greater influence over the benchmark.
λ₁(p, x) = E[p] / p(x)
Here λ₁ is Weaver’s multiplicative surprise index, p is the event distribution, and x is the realized event. E[p] is the expectation of the assigned probability when an event is drawn under p. The slash divides that expectation by the observed probability p(x). The resulting index is large when the benchmark probability is large relative to the probability of the realization.
The paper also notes how this index behaves for independent events. This property motivates the distinction between a multiplicative index and the additive form that follows.
λ₁(pq, [x, y]) = λ₁(p, x) · λ₁(q, y)
Here x and y are outcomes of independent variables with distributions p and q, respectively. The pair [x, y] is the joint outcome, pq denotes its product distribution, and · denotes multiplication. The equation says that the index for the combined occurrence is the product of the indices for the individual occurrences. The headline and metaphor experiments score a designated word at a time and do not require an independence assumption across words.
Good generalizes the choice of benchmark. His family of indices uses a power of the probabilities before taking their expectation, with a corresponding root afterwards.
λc(p, x) = (E[pᶜ])¹⁄ᶜ / p(x)
The c in λc is the parameter of the family, with c > 0 in this expression. The term pᶜ raises the assigned probability of a drawn outcome to that power. E takes the expectation under p, and the exponent ¹⁄ᶜ applies the reciprocal power to the expectation. The denominator is the realized probability p(x), so the operation again produces a ratio between a benchmark and the observation.
Λc(p, x) = log λc(p, x)
The upper-case Λc is the additive form of Good’s index. It applies the logarithm to the multiplicative index λc for the same distribution p, observed event x, and choice of c. Logging turns the ratio into a difference of log probabilities. The form corresponding to Weaver’s benchmark is written explicitly in the paper.
Λ₁(p, x) = log E[p] − log p(x)
Here Λ₁ is the additive index using E[p], the probability-weighted average of assigned probabilities. The second logarithm is taken at the observed probability p(x). With log probabilities on both sides of the subtraction, the comparison can be read as a difference on the information scale.
For the limiting case with c tending to zero, the multiplicative benchmark uses the exponential of an expected log probability. The paper gives this form before focusing on its additive counterpart.
λ₀(p, x) = exp(E[log p]) / p(x)
In λ₀, the subscript marks the limiting case. The expectation E[log p] averages the logarithm of the assigned probability under p, while exp denotes exponentiation using the base corresponding to the logarithm. That operation returns the benchmark to the probability scale. The denominator p(x) again evaluates the distribution at the outcome that occurred.
Λ₀(p, x) = E[log p] − log p(x) = I(p, x) − H(p)
The symbol Λ₀ names the additive Good index that the experiments evaluate. The expected log probability E[log p] is the negative of entropy H(p), and subtracting log p(x) gives the observed word’s information content I(p, x). The final equality expresses the same score as a comparison between realized information and expected information. The score can be negative when the realized word carries less information than the average for its context.
For a uniform distribution, each candidate has the average information content, so the additive Good index is zero for every realization. That fits the bridge example’s intuition that a tiny individual probability can coexist with no special reason to expect a different outcome. The measure answers a question about the entire distribution. Under the word-completion setup, alternatives well below the most likely word still help determine the entropy term. Whether that is an advantage depends on how much trust to put in how the reference reader spreads probability among those alternatives.
Measure how much probability lies above the word
The paper discusses a tail-area measure as another way to take alternatives into account. It sums probabilities of events that are at most as probable as the observed event.
t(p, x) = ∑ₓ′: p(x′) ≤ p(x) p(x′)
Here t is the tail-area probability. The summation ∑ runs over candidate events x′ whose probability p(x′) is less than or equal to the observed probability p(x). Each qualifying event contributes its probability. A smaller tail area can indicate that the occurrence is in a low-probability part of the distribution.
The authors explain a weakness of this procedure using a distribution in which nearly all events have similar probabilities. Very small differences can place an event low in the ordering, even though the competitors scarcely outrank it in probability. As candidates move across the cutoff, their probability starts or stops counting toward the sum. A position in the ordering can therefore convey more apparent separation than the actual probabilities warrant. The tail-area measure is part of the theoretical discussion and does not receive its own classifier row in the results.
Howard’s s-value measures the mass by which the other events exceed the observed probability. It can be calculated by capping each candidate’s probability at the probability of the observation and measuring the amount removed.
sv(p, x) = 1 − ∑ₓ′ min(p(x′), p(x))
The symbol sv is Howard’s s-value. The sum runs over every candidate x′, and min selects the smaller of its probability p(x′) and that of the observed event x. The 1 is the total mass of the normalized distribution. Subtracting the capped mass leaves the portion above the observation’s probability level. The result is measured as probability mass.
sv(p, x) = 1 − [t(p, x) + nₓ · p(x)]
In this equivalent expression, t(p, x) is the tail mass for candidates at or below the observed probability. The term nₓ counts events with probability strictly greater than p(x), and · denotes multiplication. Each of those higher candidates contributes the cap p(x) to the quantity in brackets. The brackets group the total capped mass, which is subtracted from 1.
The s-value changes continuously as the outcome’s probability changes. When the observed event is among the most probable, nothing is removed by the cap and the score is zero. In the nearly uniform case, a candidate can rank low and still have a small s-value if there is little probability above its level. This makes the measure less dependent on distinctions between almost tied alternatives. Its interpretation differs from the Good index. It describes the amount of probability above a level, while the Good index compares information content with an average.
Compare the word with the strongest expectation
The Expectation Realization gap starts from a more direct sense of anticipation. Suppose the context has made one candidate especially plausible. The gap compares the observed word with that candidate. The comparison can be written as a difference in probability, a ratio, or a difference on a logarithmic scale. The experiments use the logarithmic form.
mₚ = arg maxₓ′ p(x′)
Here mₚ denotes a most probable outcome under p. The operation arg max returns a candidate x′ at which the probability reaches its maximum. The candidate is the mode of the distribution. In the event of a tie, the probability used in the gap is the same whichever maximizer supplies it.
ψ(p, x) = maxₓ′ p(x′) − p(x) = p(mₚ) − p(x)
The symbol ψ here denotes the gap on the probability scale. The maximum is taken over all candidates x′. The term p(mₚ) names that maximum probability, and p(x) is the realized probability. Their difference expresses the amount by which the expectation outranks the observed outcome, in probability units.
ψ(p, x) = p(mₚ) / p(x)
The paper also uses ψ for a multiplicative gap. In this expression the slash denotes the ratio of the mode probability p(mₚ) to the observed probability p(x). The interpretation is relative: the ratio increases as the observation becomes less probable in relation to the leading candidate. The authors connect this form to an earlier surprise measure reported to correlate with human ratings in a separate study.
Ψₘ(p, x) = log p(mₚ) − log p(x) = I(p, x) − I(p, mₚ)
The upper-case Ψₘ is the additive Mode Expectation Realization gap. The subscript m refers to the mode mₚ. The first difference uses the logarithms of the modal and observed probabilities. Equivalently, it subtracts the mode’s information content I(p, mₚ) from the observed word’s information content I(p, x). A modal observation has a gap of zero. An observation well below the mode has a larger gap.
This comparison is easy to relate to a strongly constrained completion. If one word dominates the alternatives and the writer chooses an unlikely one, the mode supplies a clear benchmark. The score does not separately sum over the small probabilities farther down the distribution. It can still depend indirectly on how probability is allocated, because the normalized probabilities of both the observed word and the mode come from that distribution. The limitation the authors focus on is that a sense of anticipation can be strong even when the most probable individual word has only a modest lead.
Gather an expectation expressed by several words
Consider what can follow a mention of an infestation. A reader may expect a kind of pest, and the possibilities include several different words. Probability can spread across those options while the collective expectation remains strong. Using a word for members of Congress can confound the expected category. The Mode gap sees only the single most probable completion and can miss how much probability the acceptable pest names command together. Entropy also responds to the dispersion among those names, even if that dispersion reflects several ways to meet essentially the same expectation.
The new Core gap approximates the collective expectation at the level of lexical probabilities. It selects candidates by probability and compares their total probability with that of the observed word. The aim is for a sufficiently likely group to stand in for the anticipated meaning without requiring a separate probability distribution over meanings.
Cₚ = {x ∈ X ∣ p(x) > τ}
The core Cₚ is a subset of X, the candidate event space. The x inside the braces ranges over the possible events, and ∈ means that it belongs to X. The bar ∣ introduces the selection condition. A candidate must have probability p(x) strictly greater than the threshold τ to enter the core. The braces denote the set of all candidates that pass that condition.
p(Cₚ) = ∑ₓ′ ∈ Cₚ p(x′)
Here p(Cₚ) denotes the probability of the entire core. The summation adds the probabilities of the events x′ that belong to Cₚ. This is the quantity the new gap uses in place of the single highest probability. It collects mass wherever candidates pass the threshold, without requiring that they be identified as members of an explicit semantic category.
Ψ꜀(p, x) = log p(Cₚ) − log p(x) = I(p, x) − I(p, Cₚ)
The symbol Ψ꜀ names the additive Core Expectation Realization gap, with the subscript referring to the core. In this expression x is again the realized word, and p(Cₚ) is the combined mass of the core. The term I(p, Cₚ) is the negative logarithm of that combined mass, treating membership in the core as an event. The resulting score compares the information of the particular word with the information associated with seeing any candidate in the core.
The mechanism is deliberately simple. It can give a large benchmark to a context that strongly favors a group of words even when none is overwhelmingly likely on its own. It can also collect likely words that express different meanings. The selection rule examines probabilities, so any semantic coherence of the resulting group depends on what the reference reader has distributed its mass over. An occurrence inside the core is compared with the mass of the whole group, which explains why the Core and Mode gaps need not have the same behavior for a highly probable observed word.
Fit the decision rule separately from the reader
The authors first give the classifier a single number for each occurrence. That number is either information content or one of the selected surprise scores. The classifier uses logistic regression, which learns how to turn the feature into a probability of the positive label. The BERT distribution comes before that learned decision. The information and surprise formulas themselves are fixed comparisons, so a single-score classifier can shift and scale a comparison but has no access to its individual components as separate inputs.
The combined experiments change what the classifier can see. Good’s index subtracts entropy from observed information. The corresponding feature pair exposes both quantities with separate fitted weights. The Mode and Core gaps can likewise be decomposed into observed information and their respective reference information terms. The fullest combination exposes the observed information, entropy, mode information, and core information together. This design asks whether the benchmark quantities help after allowing their contribution to differ from the fixed subtraction in a gap.
The label frequencies also affect the fitted decision. During training, each positive example carries 9 times the weight of a negative example in the cross-entropy objective, which penalizes mistakes in the assigned label probabilities. The purpose is to give errors on the rarer positive class more influence. That weighting is applied to the classifier’s training loss. The event probabilities used in the surprise calculations still describe possible word completions.
Evaluation uses 10 folds. In each run, the classifier learns from 9 folds and tests on the remaining fold. The process is repeated until every fold has served as the test split. Original and edited versions of a headline stay together. Metaphor examples sharing a target word also stay together, so that particular source of overlap does not cross the training and test boundary. The paper identifies Humicroedit and LCC Metaphor as the sources of the positive candidates and announces a public release of the experiment code and data.
Experiments and results
How the test cases were selected
The Humor dataset starts with Humicroedit, a collection pairing ordinary news headlines with versions edited to make them funny. The parent collection contains over 15,000 headline pairs, with five judges scoring each funny version. For the positive class, the authors randomly select 400 edited examples whose change replaces a single word and whose mean humor rating is 1.8 or higher. The label applies to the replacement at the marked position. The surrounding headline lets the reader form expectations, and the edit supplies the occurrence to be evaluated against them.
The authors take the 400 corresponding original versions as a set of negatives, using the original word at the same position. These cases give the experiment examples of ordinary wording in the immediate setting where a humorous substitution was made. The Humor dataset also includes 3200 negatives drawn as random content words from CNN articles. The paper describes selecting news nouns with a part-of-speech tagger from articles downloaded in July 2022. The Humor dataset is reported as having 4000 examples in total. Its negatives therefore cover both paired original headlines and ordinary news contexts sampled apart from those pairs.
The Metaphor positives come from the English portion of LCC Metaphor. The authors require an average annotation rating of 3.0 or above and a source field expressed by a single word. They also exclude cases in which the source word occurs elsewhere in the same sentence. Such a repetition would give the masked position a clue that comes directly from the expression the experiment is supposed to assess. The retained positive class contains 268 examples. The negative class is described as 2412 items from the CNN pool also used for Humor.
The Metaphor selection also attempts to remove familiar expressions. The authors lack direct access to the exact pretraining collection, so they search the web for a phrase and variations of its wording. They describe changing articles and trying alternative grammatical forms of phrases. Their account gives a cutoff of 25 documents and describes the retained metaphor examples as rare online. It also says that phrases were filtered out below that cutoff, which points in the opposite direction from retaining rare phrases. The paper reports a Metaphor total of 3760, which is inconsistent with its listed class counts. Its stated intention is for positives to make up 10% of each dataset. These inconsistencies leave uncertainty about the exact filter and the reported Metaphor total.
The distinction between familiar and unfamiliar material is handled differently for Humor. The authors regard the humorous edits as novel to BERT given the sources of its pretraining, BooksCorpus and English Wikipedia. They apply the search procedure to metaphors because many conventional expressions could plausibly have appeared in those sources already. For the negative class, they expect ordinary news to have few examples of creative usage under their definition. These judgments let them construct the datasets at scale. They also make the labels proxies for reader-relative novelty, even where the original humor or metaphor rating is strong.
What the evaluation measures
The paper first compares the distribution-based features with two labeling baselines. Under the random baseline, every label has an equal chance of being assigned. The all-positive baseline predicts the creative label for every occurrence. On each dataset the random baseline gives precision of 10.0, recall of 50.0, and F1 of 16.7. The all-positive baseline gives precision of 10.0, recall of 100.0, and F1 of 18.2. In this setting, high recall alone can be achieved by accepting many ordinary examples as creative.
Precision is the share of positive predictions that have the positive label. Recall is the share of labeled positives that the classifier successfully identifies. F1 balances precision and recall, giving a low value when one is poor enough to limit the prediction rule’s usefulness. The paper pools held-out predictions across the 10 folds for these scores. The result summarizes how the classifier did on the full set of test occurrences after each occurrence had been scored in its own held-out fold.
The authors also vary the decision threshold over the classifier’s outputs, tracing precision against recall. F1m is the maximum F1 reached on that curve. AuC is the area under the precision–recall curve. These measurements answer different questions about a feature setting. The pooled F1 describes performance at the evaluated operating point. The maximum describes the best F1 reached as the threshold changes, and the area summarizes the tradeoff across thresholds. The distinction matters here because a feature can improve the ordering of cases while leaving the result at a particular threshold nearly unchanged.
Results for edited headlines
On Humor, all the standalone distribution-based measurements clear the simple baselines. Information content alone has precision of 32.0, recall of 86.5, and pooled F1 of 46.7. Among the standalone relative measures, the Core gap gives the closest results, with precision of 31.6 and recall of 85.8. The Mode gap follows it in pooled F1, then Good’s index and the s-value. The observed word’s probability makes a strong predictor in its own right for these edited headlines and sampled news words.
Distribution-based classifiers on Humor by pooled F1
The full feature combination leads, and the Core gap comes closest to information content among standalone surprise measures.
The numbers
| System or setting | F1 |
|---|---|
| Random baseline | 16.7 |
| All-positive baseline | 18.2 |
| Information content | 46.7 |
| Good’s surprise index | 40.7 |
| Howard’s s-value | 35.5 |
| Mode ER gap | 44.7 |
| Core ER gap | 46.2 |
| Information plus entropy | 47.6 |
| Information plus core information | 48.0 |
| Full distribution feature combination (this paper) | 48.4 |
The threshold sweep gives the single-feature ranking the same broad shape. Information content has AuC of 46.2. The Core gap has 45.6, the Mode gap has 44.1, Good’s index has 39.4, and Howard’s s-value has 38.1. The s-value retains recall of 85.3 at the evaluated threshold, with precision of 22.5. These values show why a high rate of recovering the humorous edits is only part of the result. The feature also needs to distinguish them from the original words and other news occurrences.
With separate inputs, observed information and core information give AuC of 49.3. Observed information and entropy give 47.4, while the corresponding pair with mode information gives 46.4. The full combination has AuC of 49.5 and F1m of 53.6. At the reported operating point it has precision of 33.4 and recall of 88.0. The pair with core information reaches higher recall, 88.3, alongside precision of 33.0. The combined setting leads on the aggregate metrics while the core pair illustrates that the relative merits still depend on the chosen operating point.
Results for uncommon metaphors
On Metaphor, the standalone measurements are closer to each other around the strongest settings. Information content has precision of 27.6, recall of 79.2, and pooled F1 of 40.8. The Core gap has precision of 27.8 and the same reported recall of 79.2. The Mode gap has precision of 27.8 and recall of 78.7. The results put both gap measures slightly ahead of information content on pooled F1, and the Core gap narrowly leads it on AuC. The standalone comparisons therefore vary with the metric and dataset, even though there is no consistent advantage for replacing information content with a single relative score.
Distribution-based classifiers on Metaphor by pooled F1
The full feature combination leads, while the strongest standalone settings give similar scores.
The numbers
| System or setting | F1 |
|---|---|
| Random baseline | 16.7 |
| All-positive baseline | 18.2 |
| Information content | 40.8 |
| Good’s surprise index | 40.5 |
| Howard’s s-value | 34.8 |
| Mode ER gap | 41.0 |
| Core ER gap | 41.1 |
| Information plus mode information | 40.9 |
| Information plus core information | 41.0 |
| Full distribution feature combination (this paper) | 43.6 |
On this dataset, Howard’s s-value has recall of 85.9 and precision of 21.9, again showing the cost in extra positive predictions. Good’s index gives precision of 27.8 and recall of 75.6. The Core gap has AuC of 38.3, compared with 38.2 for information content and 35.9 for the Mode gap. Good’s index records AuC of 33.8, and the s-value records 34.3. The differences across metrics matter. Good’s index has a stronger reported pooled F1 than the s-value, while the s-value has a higher precision–recall area.
The combined setting reaches precision of 29.8, recall of 82.7, and F1m of 53.1. Its AuC is 42.3. The separate pair with core information has AuC of 38.2. The pair with mode information reaches 37.9, and the pair with entropy reaches 37.2. The full combination recovers a benefit that is difficult to see by considering one pair at a time. The evaluation establishes how that combination performed. It does not isolate which additional feature is responsible for its gain.
Full and single-feature classifiers on Metaphor by precision–recall area
Combining all the distribution features improves ranking over every standalone score shown.
The numbers
| System or setting | AuC |
|---|---|
| Good’s surprise index | 33.8 |
| Howard’s s-value | 34.3 |
| Mode ER gap | 35.9 |
| Information content | 38.2 |
| Core ER gap | 38.3 |
| Full distribution feature combination (this paper) | 42.3 |
What the combined features and contextual representations achieve
The authors characterize the AuC improvement from the full feature combination over information content as a 3% increase on both tasks. The endpoint values for the comparison are 46.2 and 49.5 on Humor, and 38.2 and 42.3 on Metaphor. They report that the F1 improvements are significant at p < 0.01 under a one-tailed paired t-test using the estimates from the 10 folds. Here p refers to the statistical test’s p-value, distinct from the p used for the word distributions. The reported test supports the F1 comparison under this evaluation procedure.
A separate experiment feeds BERT’s contextual word embeddings to a fully connected network. The representations from BERT are frozen, while the network learns the labeling task with 2 hidden layers and a logistic output node. These features give the classifier a richer representation of the occurrence than the scalars derived from candidate probabilities. On Humor the network has precision of 80.3, recall of 89.8, pooled F1 of 84.5, F1m of 87.1, and AuC of 91.2. On Metaphor it reaches precision of 93.7, recall of 94.1, pooled F1 of 93.7, F1m of 95.1, and AuC of 95.6.
The authors suggest that contextual representations may be better suited to recognizing surprise at the level of meaning. The comparison changes both the inputs and the decision architecture, and the network is trained on the same type of proxy label as the probability-based classifiers. A high score therefore shows that the richer classifier can recover the dataset distinctions well. The probability experiments address the more specific question of whether the probability assigned to expected alternatives contributes evidence beyond the probability of the word that appeared.
What the ablations show
Fixed gaps and learned weights
The main controlled comparisons come from replacing a single surprise score with its component features and then training with the full set. The Good index illustrates the change most clearly. As a standalone feature, it commits to subtracting entropy from observed information. A classifier receiving that one value can rescale it, while the balance between the two terms remains fixed. The feature pair permits a separate coefficient for entropy. On Humor, that pair has higher pooled F1 and AuC than Good’s index. On Metaphor, its pooled F1 is 40.8, compared with 40.5 for the index, and its AuC is 37.2, compared with 33.8. Even where the pooled decision changes little, making the terms separately available can improve how examples are ordered.
The Mode and Core comparisons show why the corresponding result cannot be generalized mechanically to every pair. For Humor, exposing core information separately alongside observed information improves over the Core gap on pooled F1 and AuC. The corresponding Metaphor pair has a closely similar result to the standalone Core gap, with pooled F1 of 41.0 and AuC of 38.2 compared with 41.1 and 38.3. Pairing observed information with the mode also yields mixed results. The strongest evidence for complementary information comes from the full set, which leads the distribution-based settings across both datasets. The paper does not report a series that removes each feature individually from the full combination, so the comparison cannot establish the necessity of each term.
The comparison between the two fixed Expectation Realization gaps tests an important choice in their construction. The Mode gap compares against a single candidate, and the Core gap uses the combined mass of candidates passing a threshold. The Core gap ranks above the Mode gap on pooled F1 and AuC for both datasets. That pattern is consistent with the authors’ hypothesis that a meaningful expectation can be dispersed across several lexical choices. It also fits other consequences of changing the comparison group. The evaluation does not annotate whether the selected candidates actually express a common meaning, so it cannot tell how frequently the advantage comes from gathering the members of an anticipated semantic category.
The preliminary comparison for words split into several pieces offers a narrower check. The authors try using the initial piece, multiplying piece probabilities, and taking their geometric mean. They report no significant difference, which supports their practical use of the initial token as a proxy in this setting. They suggest that easy-to-predict continuations account for the similarity. No separate numerical breakdown is given for that check, so it leaves open how particular kinds of split words behave.
What confident mistakes reveal
The authors examine errors made with high classifier confidence. Some false negatives arise because a neighboring word strongly predicts the annotated metaphor source. In one example, the metaphor associates democracy with a hand, and adjacent wording already invokes a glove. The reference reader is given that immediate clue when asked for the missing noun. The result can be an expected local completion within a metaphorical image that is itself unusual. The experiment thus finds a mismatch between the position used for scoring and the larger span that carries the creative use.
A related case involves parallel metaphors. If poverty is associated with fire and the surrounding text also describes forms of assistance through firefighting imagery, each figurative expression gives a clue to the others. A strong contextual relationship can lower the information content of the chosen word. It can also lower the gap between that word and the most likely alternatives. The prediction may accurately reflect what the surrounding words make likely while missing the novelty of casting the whole subject in terms of fire. The authors suggest testing phrase masking with a system such as T5 to address cases in which the surrounding expression gives away the single hidden word.
Some confident false positives have a different cause. The authors identify news occurrences involving a shooting at a place of worship and relief associated with Harvey. BERT assigns low probabilities to the marked words. The authors suggest that the reader may lack knowledge about the relevant entity or event type. These are plausible examples of genuine reader-relative surprise under an ordinary-news label. They help explain how a probability score can detect a knowledge gap and still make a labeling error on the task. The analysis is qualitative and concerns selected confident cases, so it identifies mechanisms without estimating how often each occurs.
Finally, the authors hypothesize that less reliable probabilities in the tail may help explain the weaker performance of some standalone comparisons. Good’s index uses entropy, to which the entire retained distribution contributes. Howard’s s-value also relies on probability assigned across the alternatives. The Mode and Core gaps directly compare only the realization and high-probability references. Their relatively strong standalone results are consistent with the tail hypothesis. The paper does not recalibrate the distributions and rerun the comparison, so miscalibration remains a proposed explanation. The authors discuss the tail in connection with The Curious Case of Neural Text Degeneration.
Limitations
Limits the authors identify
The authors describe the positive and negative labels as soft. A phrase that rarely appears online in its observed wording can still be familiar in another form. Replacing a word with a synonym might preserve the underlying metaphor even when the full phrase differs from anything found in a search. There is also no direct inventory of the exact pretraining material available to the authors. As a consequence, the metaphor filter can provide indirect evidence of rarity. It cannot establish that the reference reader has never encountered the expression or its underlying idea.
Conversely, the negative samples are taken from sources expected to contain mostly ordinary language. A CNN article can contain a novel metaphor or a creative choice, so a negative label is provisional. Even a literal fact can surprise the reference reader if the relevant event is unfamiliar, as the false-positive examples demonstrate. The authors suggest that improving the datasets would require feasible annotation criteria about what the reference reader had previously encountered and a review of individual cases. The requirement is more demanding than confirming that an editor made a joke or that an annotator identified a metaphor.
The authors also point out that the proportion of creative language varies by genre. They selected an imbalanced distribution to reflect a setting in which creative examples are relatively rare, while recognizing the difficulty of assigning a general prevalence. Poetry and news give different reasons to expect a figurative or deliberately unusual word. The reported precision and recall come from the selected examples and the experimental class distribution. A reader interpreting those numbers should keep the sampling procedure in view, especially when the intended application has a different balance of conventional and unusual uses.
The paper assumes well-formed text. Ungrammatical phrases or typing errors can give a missing item a low probability and hence a large information or surprise score. The authors consider automatic identification of ill-formed passages feasible and describe filtering tokens in the probability tail as a possibility to investigate. The reported evaluation does not measure performance on noisy text or test that proposed filter. For the same reason, the classifier should be understood as responding to unexpected occurrences in its input instead of having a demonstrated ability to distinguish all sources of unexpected wording.
The semantic mismatch is another stated limit. Creativity can reside in the concept expressed by a word or phrase, while the scores receive probabilities over vocabulary items. The Core gap makes an approximation using the mass of sufficiently probable words. The paper leaves direct estimates of expected meanings for future work, along with phrase-level comparisons that could cover surprise spread across an expression. The authors also mention evaluating a reference reader with knowledge restricted to literal meanings and considering character-level similarity for puns. Those proposals address different issues, including what a reader knows, the unit at which it forms an expectation, and the kind of relationship a joke relies on.
What follows from the experimental design
The reference reader provides consistency across the calculations, but the experiment does not compare readers with different kinds of experience. There is no human surprise judgment for each experimental occurrence conditioned on what that person has read or heard before. The Humicroedit ratings are about whether the edits are funny, and the LCC annotations identify metaphorical uses. The additional selection and scoring aim to make those sources useful for studying surprise. A classifier’s success against the resulting labels cannot establish that its score reproduces a human reader’s response.
The context design matters to that distinction. BERT has access to words that follow the gap. In an account of surprise during sequential reading, a person encounters the surprising word before seeing what comes next. A phrase farther to the right can clarify a metaphor or make a punch word more predictable retrospectively. In the reported measure, that evidence is already available to the reference reader. The results concern recovering a word in a surrounding passage. Experiments with earlier context alone would be needed to measure expectations at the point of first encounter.
The origin of the examples can also influence classification. In Humor, original headlines paired with edits make direct ordinary counterparts available. The pooled test results combine those originals with randomly sampled news negatives. The paper does not give a separate performance breakdown for distinguishing edits from their own originals. The Metaphor positives come from annotated sentences, while the news negatives come from a separate sampling procedure. Grouping by target word protects against a specific kind of repetition across folds, but it does not control for every difference in context and word choice between the sources. The high contextual-representation scores leave room for a classifier to use these broader differences alongside any information it has about surprising usage.
The Core calculation also depends on how the vocabulary was filtered and on the chosen threshold. The paper defines that threshold as a fixed lower bound for membership, while the experimental account does not give a numerical setting or a sensitivity comparison. The strict rule means a candidate can enter or leave the core as its probability moves across the bound. A threshold high enough to leave the core empty would also make its log mass unavailable as a finite number. The paper does not describe handling for that case. These details restrict what can be inferred about the stability of the Core gap under other settings or another reference reader.
A similar distinction applies to the proposed probability explanation. The results show that features describing the alternatives improve the combined classifier, and that some fixed uses of those alternatives are weaker than a simple observed-word score. They do not demonstrate that correcting probability calibration would improve the standalone measures, or that a particular probability estimate is wrong. A controlled comparison would need independently specified expectations or a calibration intervention followed by the same evaluation. The current results establish an empirical association between several descriptions of contextual probability and the chosen examples of creative language.
The scale of the claims follows from the scale of the labels. The humor data are built around single-word substitutions in headlines, and the metaphor data mark a single source word in a sentence. Many forms of creativity have no such conveniently identified position. A text can be creative because a long passage develops an expectation and then changes its interpretation. It can also be unexpected without being funny, metaphorical, or deliberately creative, as the news errors suggest. Word-level surprise is one measurable property of the examples. Judging creativity more broadly would require evidence about meaning, intent, and reader response that is outside this evaluation.
What came after
The later citations span context compression, pragmatic tagging of peer reviews, and the study of information periodicity. The descriptions of their subjects establish the scope of those papers and the citation links establish that they cite Bunescu and Uduehi. They leave the specific role of the surprise measures in each paper uncertain. A citation could concern the general distinction between information and expectation, an experimental result, or another part of the paper, and those relationships would imply different kinds of follow-up.
Compressing Context to Enhance Inference Efficiency addresses the use of context compression to make inference more efficient. Bunescu and Uduehi study how a specified context produces expectations at a marked word. The research questions meet around the role of surrounding text in prediction. The citation alone leaves open whether the compression work uses any of the surprise scores, the choice of reference reader, or the distinction between an observed word’s probability and the probabilities of its alternatives.
NUS-IDS at PragTag-2023 concerns the use of unlabeled data to improve pragmatic tagging in peer reviews. Its stated task concerns pragmatic labels for review text, while Bunescu and Uduehi use labels attached to word occurrences selected for creative-language detection. The citation connects the two studies, but the stated focus of the tagging paper does not specify whether it adopts a probability feature, borrows a labeling rationale, or discusses the earlier experiment as background.
Identifying the Periodicity of Information in Natural Language studies periodicity in the distribution of information across language. Its subject is thematically close to the earlier paper’s discussion of information density. Bunescu and Uduehi compare the information at a selected occurrence with expectations formed from its context. Periodicity concerns the recurrence of patterns across stretches of language. The citation establishes a connection between the studies and leaves open whether the later analysis uses a specific gap measure or draws on the earlier account of informative and unexpected words.
Cite
Cite as Razvan C. Bunescu and Oseremen O. Uduehi. 2022. Distribution-Based Measures of Surprise for Creative Language: Experiments with Humor and Metaphor. Proceedings of the 3rd Workshop on Figurative Language Processing (FLP).
@inproceedings{bunescu2022distribution,
title = {{Distribution-Based Measures of Surprise for Creative Language: Experiments with Humor and Metaphor}},
author = {Razvan C. Bunescu and Oseremen O. Uduehi},
booktitle = {Proceedings of the 3rd Workshop on Figurative Language Processing (FLP)},
year = {2022},
doi = {10.18653/v1/2022.flp-1.10},
url = {https://doi.org/10.18653/v1/2022.flp-1.10}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bunescu-2022-distribution-based-measures-surprise-creative/