---
title: "How Are Metaphors Processed by Language Models? The Case"
description: "Boisson and colleagues test how sentence likelihood and prompted answers distinguish metaphors, literal analogies, and mismatched comparisons."
canonical: "https://research.elamur.ai/free/en/papers/boisson-2024-how-are-metaphors-processed-language/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/boisson-2024-how-are-metaphors-processed-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / How Are Metaphors Processed by Language Models? The Case of Analogies

# How Are Metaphors Processed by Language Models? The Case of Analogies

Paper · 2024 · Joanne Boisson, Asahi Ushio, Hsuvas Borkakoty et al.

**Authors:** [Joanne Boisson](https://md.research.elamur.ai/free/en/authors/joanne-boisson/), [Asahi Ushio](https://md.research.elamur.ai/free/en/authors/asahi-ushio/), [Hsuvas Borkakoty](https://md.research.elamur.ai/free/en/authors/hsuvas-borkakoty/), [Kiamehr Rezaee](https://md.research.elamur.ai/free/en/authors/kiamehr-rezaee/), [Dimosthenis Antypas](https://md.research.elamur.ai/free/en/authors/dimosthenis-antypas/), [Zara Siddique](https://md.research.elamur.ai/free/en/authors/zara-siddique/), [Nina White](https://md.research.elamur.ai/free/en/authors/nina-white/) and [Jose Camacho-Collados](https://md.research.elamur.ai/free/en/authors/jose-camacho-collados/) · **Year:** 2024 · **Venue:** Proceedings of the 28th Conference on Computational Natural Language Learning · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 28th Conference on Computational Natural Language Learning · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.conll-1.28/)
- [PDF](https://aclanthology.org/2024.conll-1.28.pdf)
- [DOI 10.18653/v1/2024.conll-1.28](https://doi.org/10.18653/v1/2024.conll-1.28)

## Summary

An unusual comparison can make sense once you see what connects its parts. Comparing editing to work with a chainsaw, for instance, suggests a way of cutting that is abrupt or destructive. An equally unexpected comparison may offer no useful connection at all. Joanne Boisson and colleagues ask whether pretrained language systems make this distinction and whether they find figurative comparisons harder to recognize than literal ones. They test two kinds of behavior. In one, they measure how readily a system predicts the wording of a sentence. In the other, they give it choices and ask it to state an answer.

The authors begin with three collections of English materials from experimental psychology. Cardillo pairs literal statements with metaphors. Jankowiak adds anomalous statements that share an ending with the meaningful examples. Green uses analogies with two pairs of concepts and contrasts near, far, and incorrect comparisons. On these collections, metaphorical sentences generally received higher perplexity than literal ones, meaning that their wording was less expected. The position of metaphors relative to anomalies depended on the collection. They tended to score nearer to anomalies on Green, whereas most systems that predict text from left to right scored them nearer to literal examples on Jankowiak. On Cardillo, the strongest correlation between perplexity and human ratings of figurativeness was .41, achieved by Flan-T5 XXL.

The authors then ask systems to assign labels directly. GPT-4 led the reported comparison, achieving 91.8% accuracy on Cardillo, 91.4% on Jankowiak, and 78.6% on Green. The lower scores on Green extended across the systems tested, and some struggled to produce a distinct label for each sentence. Changing the order of the same sentences also changed the answers. The paper therefore evaluates all sentence orders, so that a preference for assigning a particular label to the first or last sentence cannot gain an advantage from the test arrangement.

A final experiment uses SAT word analogies, with new annotations distinguishing questions whose correct answer is metaphorical from those whose correct answer is non-metaphorical. Here the scores for the two kinds of correct answer typically occupied a similar perplexity range. When selection depended on perplexity, smaller systems generally did worse on questions with a metaphorical answer, and the gap tended to narrow among larger systems. In the prompted version, every system in the reported SAT comparison scored higher on the metaphorical subset. These findings put a condition on the difficulty observed in the earlier collections. A metaphor may be less expected as a standalone sentence, while still being as easy to select as a literal analogy when the task supplies alternatives and asks for the relation that fits.

## Deep dive: How Are Metaphors Processed by Language Models? The Case of Analogies

Boisson and colleagues test how sentence likelihood and prompted answers distinguish metaphors, literal analogies, and mismatched comparisons. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When an unlikely comparison makes sense

The paper starts from a distinction between recognizing that words belong together and recognizing a relation that makes an unexpected combination meaningful. In an ordinary statement about a physical object, the description can apply directly. In an attributive metaphor, the description points the reader toward a feature or pattern of behavior from another domain. An expression that likens a person's editing to a chainsaw can direct attention to the effect of the editing on the text. The reader has to decide which properties of a chainsaw are relevant and which can be ignored. The sentence gives few explicit instructions for making that choice.

An analogy makes a connection through relations. In a comparison between ketchup and tomatoes on one side and guacamole and avocados on the other, the relationship of a preparation to its main ingredient provides the parallel. The relevant similarity holds between the pairs. It need not hold between the things taken individually. This is easier to see in a construction that gives both pairs. In a short statement about editing and a chainsaw, the reader may have to supply what the editor acts on and what the chainsaw acts on. Several different completions may support the same broad reading. The paper treats this openness as part of the phenomenon under study.

The authors draw on a debate in [cognitive linguistics](https://md.research.elamur.ai/free/en/concepts/cognitive-linguistics/) about how metaphor and analogy are related. Conceptual Metaphor Theory describes metaphor in terms of mappings between domains of thought that can appear in language. Other accounts emphasize shared features or the alignment of relations. The framework adopted in the paper offers a way to bring these perspectives together and treats metaphors as a kind of analogy. The experiments use this framework to choose linguistic materials. The immediate object of study is a short expression that gives enough information for a reader to recover a figurative connection, even with little surrounding context.

The distance between domains is one reason a mapping may be hard to recognize. Comparisons between very different kinds of things can be effective when a suitable relation carries over. The same distance creates room for combinations that have no apparent point. Direction matters too. Describing an acrobat as a hippopotamus can suggest clumsiness, while describing a hippopotamus as an acrobat can draw attention to unexpected grace. The reversal keeps the nouns and changes what the comparison asks the reader to explain. A general measure of association between the nouns would miss that change in meaning.

An anomaly can share a metaphor's surface oddness. In a short attributive sentence, the oddness may come from a pair of concepts for which no salient mapping is apparent. In a comparison with two pairs, the nouns within each pair may be related, yet the relations may differ. A connection based on being part of something will fail to match a connection based on being made from something. The anomaly then lies in the relation between the pairs, even if each pair is familiar by itself. This is why the study needs anomalous examples alongside literal ones. A test that offers only literal statements and metaphors could reward a preference for familiar wording without showing whether the system recognizes meaningful figurative comparisons.

The word *literal* has a particular scope in the experiments. A literal item can be a simple statement in which a description applies directly, or it can be a valid analogy whose connection is nonfigurative. These are different objects of judgment. In the first case, the reader interprets a relationship between the concepts in one sentence. In the second, the reader must compare the relationships within two pairs. The same category name is practical within each dataset, where the alternatives are defined by design. It should be read with the construction in mind when moving from one dataset to another.

#### What earlier evaluations could reveal

Earlier computational work approached metaphor from several directions. The paper describes methods for finding metaphorical language, generating it, interpreting it in text and across modalities, and studying it through entailment, where the question is whether one expression supports an inference about another. These tasks give different roles to the metaphor. An identification task asks where it occurs. An interpretation task asks what it conveys. A generation task asks for a suitable expression in a given setting. Boisson and colleagues are interested in a boundary that matters to all of them, namely how to distinguish an unconventional but intelligible connection from a comparison whose parts fail to align.

The paper connects its sentence-scoring experiment to work on *selectional preference*. The term refers to a predicate's tendency to occur with arguments from certain semantic classes. A verb and its object may combine in a customary way, making an unfamiliar combination evidence of a figurative use. Earlier approaches measured weaker associations between verbs and objects, or used incongruity between a word and its context. Studies of this kind are represented in the paper's discussion of metaphor identification. [Literal and Metaphorical Sense Identification through Concrete and Abstract Context](https://md.research.elamur.ai/free/en/papers/turney-2011-literal-metaphorical-sense-identification-through/) and [Metaphor Detection with Cross-Lingual Model Transfer](https://md.research.elamur.ai/free/en/papers/tsvetkov-2014-metaphor-detection-cross-lingual-model/)

The difficulty with relying on incongruity follows from the experimental categories. Both an effective metaphor and an anomaly can depart from an expected combination. A score that registers this departure may respond much the same way to both. Pedinotti and colleagues offered a closer precedent by using a BERT-style scoring procedure with literal language, conventional metaphors, creative metaphors, and nonsensical sentences. As Boisson and colleagues describe it, average pseudo-likelihood fell along that progression, in line with human plausibility ratings. The new study asks how far related patterns extend across architectures and datasets, including explicit analogies, and whether the scoring pattern carries over when a system answers a question.

In analogy research, Czinczoll and colleagues compared near analogies with more creative ones and introduced SCAN. The paper describes their work as a comparison involving BERT and GPT-2 with task-specific [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). SCAN separates kinds of analogy useful to their question, while leaving out anomalies and a literal-versus-metaphorical distinction of the sort needed here. Other resources studied whether short passages could be paired analogically. The focus there is a relation across descriptions with more information for the reader to consider. In Boisson and colleagues' experiments, the input is deliberately short so that the relevant words and relations are near the center of the test.

The paper also draws on work that used sentence probabilities to select analogies. Ushio and colleagues provide a precedent for asking whether pretrained systems can identify analogical relations through perplexity. Boisson and colleagues use the ordinary scoring procedure to compare behavior across systems. Their aim is to see what preference appears under an existing measure, and to compare that preference with requested judgments. This differs from an experiment designed to improve an analogy solver. The distinction matters because a system optimized for a dataset could perform well through regularities specific to that dataset, while the authors want to observe behavior before such adaptation.

Results reported in earlier work also gave a reason to test size and instruction following. Webb and colleagues studied analogy problems spanning geometric patterns and verbal materials. As described in the paper, they observed a marked improvement with davinci-003, around the introduction of instruction-tuned variants. Wei and colleagues reported a marked improvement with scale on a classification task involving fine distinctions in figurative language. These studies motivated comparing a wider set of sizes and families. They left open whether metaphorical analogies would follow the same pattern, especially when the alternatives include sentences with no useful relation. [Emergent Analogical Reasoning in Large Language Models](https://md.research.elamur.ai/free/en/papers/webb-2022-emergent-analogical-reasoning-large-language/) and [Emergent Abilities of Large Language Models](https://md.research.elamur.ai/free/en/papers/wei-2022-emergent-abilities-large-language-models/)

The practical motivation comes partly from writing assistance. The authors cite research on the fluency, originality, and creativity of student writing, and describe Metaphoria as a tool designed to support metaphor creation. They also point to reports from people using language systems for writing who found some metaphors weak and some continuations predictable. Generating an apt metaphor involves choosing a relation worth expressing. The paper takes a narrower step towards understanding that ability by asking whether an existing comparison looks probable, whether its kind can be identified, and whether it can be picked out from bad alternatives.

Those questions motivate the paper's progression. The first asks how sentence probabilities distinguish metaphors from literal expressions and anomalies, and whether the distinction varies with architecture or size. The second asks what happens when a metaphor supplies the correct relation in a general analogy problem. In the first case, the comparison is built into the input, and the investigator looks for differences among kinds of input. In the second, the system must select a candidate. A metaphor can occupy an unusual place on the probability scale without causing a correspondingly large penalty in the choice task.

### The method, step by step

#### Constructing comparisons around shared material

The starting point is a set of related alternatives. In the short attributive materials, the sentence changes how a concept is characterized while keeping part of the wording shared. A chainsaw can be named literally as the instrument used in a crime, or figuratively as a description of an editing style. Jankowiak offers the additional possibility of an anomalous subject. The common ending gives these items a point of comparison. The experiment asks how the rest of the sentence makes that ending expected, figuratively interpretable, or difficult to reconcile with the subject.

Green presents the same broad categories through explicit proportional analogies. The input gives a relation to match and then supplies a second pair. In the paper's example, the relation between an answer and a riddle can be compared with that between a solution and a problem, or between a key and a lock. A jersey and a number give a third candidate relation. The sentence frame is reused across the alternatives. Changing a pair changes what must be aligned, while avoiding changes in how the question itself is phrased.

The authors use the short nominal statements and explicit comparisons as different ways to present minimal evidence for an analogy. In a nominal metaphor, the attribute or relation that carries over must frequently be inferred. In a proportional analogy, the pairings are already specified, and the question is whether their relations align. Both place a premium on what can be recovered from a small number of concept words. The study keeps the results by dataset so a difference associated with one construction does not disappear inside a single average.

From those materials, the procedure branches into scoring and prompted answering. For scoring, each sentence goes through independently and receives a perplexity value. The authors can then examine the score distributions, compare scores within sets, or use the minimum to choose an answer. For prompted answering, the alternatives appear together, with instructions about the required response. That branch permits an explicit category judgment or answer selection and can be used with services for which the necessary probability scores are unavailable.

From matched language examples to analogy judgments The steps in order.

#### Measuring how expected a sentence is

Perplexity puts a single number on how readily a system predicts the wording of a sentence. A sentence with lower perplexity contains, on average, more expected tokens under that system. A token is a unit in the system's representation of text. It can be a whole word or part of one. The authors first turn each input into its token sequence and then obtain the probability assigned to each observed token. Averaging over tokens makes it possible to compare sentences that contain different numbers of prediction units.

For a system that generates from left to right, the prediction at a position uses the earlier tokens. The system assigns some probability to the token that actually occurs, and the score retains the probability of that observed token. This proceeds across the sentence. The log converts the sequence of probabilities into values that can be summed. The negative sign and exponent put the final result on a scale where more predictable sentences receive lower numbers.

```
f(x) = exp(−(1/m) ∑ⱼ₌₁ᵐ log Pₗₘ(xⱼ | x[<j]))
```

Here `f` is the perplexity function, `x` is the token sequence, and `m` is its length in tokens. The sum runs from the first position, indicated by `1`, through position `m`. The index `j` identifies a token position, `xⱼ` is the observed token there, and `x[<j]` is the sequence before it. The vertical bar means that the probability is conditional on that earlier text. `Pₗₘ` denotes the token probability supplied by the system, `log` is the natural logarithm, and `exp` is the exponential function. The factor `1/m` averages the log probabilities over positions. The leading `−` changes the sign of that average before exponentiation.

A word or phrase that is unexpected can lower the likelihood for its own tokens and affect the predictions that follow it. As a result, the sentence score aggregates effects anywhere in the input. This matters to the authors' question about metaphors. A low-probability word can appear for reasons that have little to do with the intended figurative comparison, and the score may also reflect the predictability of other words around it. The experiment takes perplexity as a proxy for linguistic plausibility, then asks whether the proxy separates known categories of sentence.

Masked systems supply a related quantity through a different procedure. Each position is hidden in turn. The task is to recover the original token from the rest of the sentence, including what comes after it. The paper follows prior work on pseudo-perplexity by substituting this conditional probability for the left-to-right probability in the equation. [Masked Language Model Scoring](https://md.research.elamur.ai/free/en/papers/salazar-2020-masked-language-model-scoring/)

```
Pₘₐₛₖ(xⱼ | x[≠j])
```

Here `Pₘₐₛₖ` is the probability assigned by the masked system, `x` is the same token sequence, and `j` picks the position to hide. The original token is `xⱼ`. The notation `x[≠j]` denotes the context consisting of the tokens at positions other than `j`, presented with that position masked. The bar again separates the item being predicted from the information used to predict it. The authors use these probabilities across positions in the same averaging and exponentiation procedure. The term *pseudo-perplexity* distinguishes the resulting score from one obtained through left-to-right prediction.

For encoder–decoder systems, the probability comes from the decoder conditioned on the encoder. An encoder first provides a representation of the input, and the decoder supplies the token predictions. The study uses examples from [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/), alongside its instruction-tuned Flan variants, to examine this architecture. The masked group includes [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/). The decoder-only comparisons include OPT, Llama variants, and GPT systems, among others. The Mixtral group also lets the authors include systems with a sparse mixture-of-experts architecture.

Absolute perplexity values are specific to the system that produced them. The relevant question in a matched set is whether a metaphor scores higher or lower than its literal or anomalous counterpart under the same scoring procedure. The authors also take ratios within sets, then summarize how those ratios behave across systems. A ratio of anomaly perplexity to metaphor perplexity compares the alternatives on a common scale for that system. The median of these ratios describes the middle of the set-level comparisons. It answers a different question from comparing the medians of the two classes, because it retains the correspondence between alternatives in a set.

#### Turning a response into a category judgment

For the direct classification task, the prompt gives examples from the same set together. It asks for a label for each numbered sentence and, in the cases with anomalies, tells the system that each class has a representative. The experiment therefore supplies information about the composition of the set. Once a literal item is recognized, the other labels can be assigned by working out which remaining comparison has an intelligible figurative relation. This is a different decision from independently rating whether each sentence is likely.

The authors use the ordinary generation settings and adjust output-length bounds where needed so the response can be completed. They interpret the outputs semi-automatically, with manual checks when the response departs from the requested form. A number and an expected label are easy to match. A response that departs from the layout requires more interpretation, even when the intended answer can be recovered. The paper reports cases in which systems also repeat a class label, departing from the task's instruction about how labels are distributed.

Some prompts need family-specific formatting. The authors use recommended special tokens for Mixtral. With the original prompt, the Llama3 responses failed to contain the expected sort of answer, so the authors added a system message specifying the required line-by-line format. The Llama3 classification results reported in the paper come from that setup. The prompt still asks for the same semantic judgments. At the same time, the formatting changes matter to the comparison because obtaining an answer that can be evaluated is part of what the generation accuracy reflects.

The researchers observed preferences for particular orders of output labels. A system might regularly call the opening sentence metaphorical regardless of which item appears there. If a dataset always presented metaphors first, that habit could earn credit without separating the examples. They therefore run the classification task with every ordering of the sentences in each set. In the SAT task, they vary the position of the correct choice. This removes a systematic advantage from lucky placement, while allowing order-sensitive responses to appear in the measured accuracy and in the analysis of label sequences.

Across these tasks, the authors use pretrained checkpoints without fitting them to the analogy datasets. This is the sense in which the evaluation is zero-shot. It includes systems already tuned to follow instructions, and that background training is relevant when comparing their outputs with those of other variants. The researchers use quantization when loading systems larger than 13B parameters because of computing limits. Quantization reduces the precision used to represent the weights. The authors also make the experiment code and datasets available, including the materials needed for the annotated SAT comparisons.

#### Adding figurative labels to SAT answers

SAT supplies a separate task. Every question begins with a stem pair and offers five candidate pairs, one of which matches the relation in the stem. The researchers label the correct comparison as metaphorical or non-metaphorical, so that analogy-solving accuracy can be reported separately for the two groups. The system answering a question sees the candidates and is asked which analogy works. The additional category describes the problem for analysis after the answer has been scored.

The annotation starts with the relation within each pair. An annotator interprets a word in the sense supported by its partner. For a word such as *irritation*, a pair about annoyance leads to the emotional reading rather than the reading involving the skin. The category depends on the relation between the paired concepts. A word with several meanings does not make a comparison figurative simply because one of those meanings may have a figurative history.

The annotators then look across the pairs. They consider whether the domains are meaningfully distinct and whether terms from one pair can help express something about the other. The guidelines suggest recombining terms and trying to produce a natural metaphorical utterance. For example, an analogy between investing money and pouring a liquid provides a basis for using *pour* with *money*. The test concerns whether the analogy supports a useful figurative expression in context. It can reveal a connection even though the SAT question itself contains only the pairs.

In the first round, the annotators assigned `0` for non-metaphorical, `1` for unsure, and `2` for metaphorical. The process included training and a set of guidelines. Disagreement often arose because a possible figurative context was evident to one person and difficult for another to imagine. In the next round, an additional qualified native speaker joined the group, and participants shared example sentences before labeling again. The examples gave the annotators concrete uses to consider when deciding whether a cross-domain connection was plausible.

The final category comes from averaging the judgments. An average below 1 gives the non-metaphorical category and an average above 1 gives the metaphorical category. Questions averaging exactly 1 are filtered out. The broader analogy task and the category annotation thus ask different things of the same question. The answer key says which candidate forms the intended analogy. The added annotation says what kind of linguistic interpretation the resulting comparison can support.

### Experiments and results

#### The materials and measures

Cardillo contributes 260 matched pairs of sentences, with a literal example and a metaphor in each pair. The authors combine the original materials with an extension. Alongside the category labels, the collection contains judgments of how figurative the individual sentences seem to human raters. The paper can thus ask whether a system prefers the literal ending in a matched comparison and whether relative scores track graded human judgments across the collection. These are distinct uses of the same inputs. A systematic literal preference can coexist with limited agreement about which metaphors are most figurative.

Jankowiak contributes 120 sets of three sentences. Each shares the same concrete final word, and the subject words are in a similar frequency range. For the ending involving bruises, the paper gives a physical mark as the literal case, a failure as the metaphorical case, and a bottle as the anomalous case. This design offers a useful check on a simple explanation based on the ending alone. The same final word appears in each class. A score difference arises from the whole input or from how its other words affect the prediction of the shared ending.

Green comprises 120 quadruples organized into 40 sets. Each set contains a near analogy, a far analogy treated as metaphorical, and an incorrect comparison. The authors convert the word pairs into full comparison sentences to obtain text that can be scored or put in a prompt. This rendering makes the relation between the two sides of the analogy explicit in the grammar, while leaving the relation within each pair for the reader to infer. In comparison with Jankowiak, the task shifts from attributing a property to aligning two relationships.

The SAT collection starts with 374 questions. The additional labeling yields 103 metaphorical and 239 non-metaphorical questions, with 32 filtered out because the mean annotation is exactly 1. Here all the items in those two analyzed groups have a correct analogy. The terms *metaphorical* and *non-metaphorical* categorize the correct answer, while the distractors in each question are treated as incorrect comparisons. A lower accuracy on one subset would therefore mean that the correct answer loses to a distractor more frequently in that subset. It would not mean that the system explicitly called more individual sentences anomalous.

Several measures appear in the analysis. The fraction of sets in which a class has the lowest perplexity describes which type of sentence the scoring procedure favors. A median perplexity ratio describes the magnitude and direction of a paired score comparison. For Cardillo, Spearman's rank correlation measures how closely the ordering by perplexity follows the ordering by human figurativeness ratings. For generation, accuracy measures agreement between the labels or answer choices in the response and the expected ones. The random baselines in the classification table are 50.0% on Cardillo and 33.3% on both Jankowiak and Green. The comparisons use existing systems and a minimum-perplexity rule. There is no newly trained method for the baselines to compete against.

#### Perplexity on the psychology datasets

For most systems, metaphorical sentences in the psychology collections have a higher median perplexity than literal sentences. Cardillo shows how this group-level pattern translates into paired preferences. BERT BASE assigns lower perplexity to the literal member in 73.5% of Cardillo pairs, and Flan-T5 XXL does so in 82.3%. With T5 3B, the literal member has the lower score in 42.3% of pairs. The authors' paired test for the latter system does not establish a difference between the two classes at their threshold. The general pattern thus leaves room for families and sizes that behave differently.

On Jankowiak, a metaphor is frequently closer in score to a literal sentence than to the anomalous sentence in the same set, especially for systems that score from left to right. With Llama3-Inst 70B, the median ratio of metaphor perplexity to literal perplexity is 1.406. The median ratio of anomaly perplexity to metaphor perplexity is 3.019. For this system and collection, the typical multiplicative separation from metaphor to anomaly is larger than the separation from literal to metaphor. The two comparisons use the same sets, so the difference describes how far the metaphor sits from either of its counterparts.

Even on Jankowiak, this pattern does not give a reliable three-way rank ordering of the sentences in each set. For Llama3-Inst 70B, the literal sentence has the lowest perplexity in 51.7% of sets, and the full ordering from literal through metaphor to anomaly occurs in 37.5%. The higher median ratio for anomalies can therefore coexist with many sets that depart from the expected ordering. A plot of median ratios shows a tendency at the level of the collection. An application that assigns all three labels by ordering scores would depend on how frequently the tendency holds within individual sets.

For Green, metaphorical and anomalous alternatives tend to lie nearer to each other in perplexity than metaphorical and literal alternatives. With Llama3-Inst 70B, the median metaphor-to-literal ratio is 2.412 and the anomaly-to-metaphor ratio is 1.332. The same system on Jankowiak exhibits the opposite ordering of the two gaps. This comparison is useful because it holds the system fixed. A general claim that anomalies are always much less probable than metaphors would overlook the form and content of the items it is given.

Some systems choose the near analogy very often even when scores give limited separation between far and incorrect analogies. On Green, OPT 66B assigns its lowest score to the literal alternative in 97.5% of sets. It places all three classes in the expected literal–metaphor–anomaly ordering in 57.5% of sets, and the paired metaphor-versus-anomaly comparison does not meet the paper's threshold. The near analogy frequently wins even when the remaining two alternatives are difficult to order. How often the near analogy wins and how clearly the other categories separate are therefore both needed to interpret the results.

The authors assess paired score differences on these collections with Wilcoxon tests and use `p<0.05` as the reported threshold. The pairing respects an important feature of the design. Each sentence has a counterpart built around shared material, and the test can use that correspondence rather than treating the two groups as unrelated collections. The reported tests complement the medians and rates of lowest score. They address whether there is evidence of a systematic paired difference, while the percentages show how often a useful ordering actually occurs.

#### Comparing perplexity with human ratings

Cardillo lets the authors go beyond a binary label and ask whether perplexity tracks the degree of figurativeness that readers report. Spearman's `ρ` measures agreement between rankings. Here a positive value means that the higher-rated figurative sentences tend to occupy higher places in the perplexity ranking. Two sentences can exchange places without changing the basic category ordering. The correlation is sensitive to these differences in rank and can therefore expose limits hidden by an aggregate preference for literal examples.

Perplexity and human figurativeness ratings on Cardillo Flan-T5 XXL has the strongest rank agreement with human figurativeness ratings.

**The numbers**

| System or setting | Spearman ρ |
| --- | --- |
| T5 11B | -.05 |
| Llama3-Inst 70B | .27 |
| BERT LARGE | .35 |
| BERT BASE | .37 |
| Flan-T5 XXL (this paper) | .41 |

The highest Cardillo correlation, .41, comes from Flan-T5 XXL. The corresponding scores for BERT BASE and BERT LARGE are .37 and .35. The Flan-T5 variants show a broadly improving relationship with human scores across sizes, with equal reported values for Flan-T5 LARGE and Flan-T5 XL. The appendix also records exceptions to the positive pattern described in the body of the paper. T5 3B has a correlation of -.14 and T5 11B has -.05. These cases qualify the prose claim that all correlations are positive.

The authors suggest that familiar figurative expressions can help explain why the strongest correlations are still limited. Describing a successful exhibition as a smash can seem clearly figurative to readers while being a customary expression. Predictability can register the familiarity of that wording. A human rating can instead register how visibly the expression uses a sense distinct from the direct physical sense of the word. Both judgments can be reasonable for the same sentence. The measured association is therefore between related quantities that respond to different features of an expression.

#### Identifying categories by answering a prompt

In the direct classification experiment, GPT-4 reaches 91.8% accuracy on Cardillo and 91.4% on Jankowiak. Among the other rows, Llama3-Instr 70B records 88.7% on Cardillo and 89 on Jankowiak. Flan-T5 XXL, which leads the Cardillo correlation analysis, scores 78.9% on the Cardillo labeling task and 57.4% on Jankowiak. Its ability to order Cardillo sentences by their likelihood in a way that partially agrees with humans gives it a different position in the comparison from its ability to return a distinct, correct label for each item.

On Green, the random baseline is again 33.3%, but performance is broadly lower than on the short attributive materials. GPT-4 reaches 78.6%, and Mixtral-Instr 8x22B reaches 67.1%. Flan-T5 XXL reaches 37.6%. The same response format asks for a category label, while the semantic work has changed. The comparison now requires the system to infer a relation inside each pair, assess the alignment across the pairs, and recognize whether a valid relation is near or figurative.

Generated label accuracy on the Green analogy dataset GPT-4 leads the comparison, while several systems remain much closer to the random baseline.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Random | 33.3 |
| FLAN-T5 XXL | 37.6 |
| GPT-3.5 turbo | 41.2 |
| Llama2-chat 70B | 56.4 |
| Llama3-Instr 70B | 64.3 |
| Mixtral-Instr 8x22B | 67.1 |
| GPT-4 (this paper) | 78.6 |

The authors examine unordered confusions as well as accuracy. An unordered confusion between metaphor and anomaly includes both directions of the mistake. In the Jankowiak results, Flan-T5 XXL produces 521 such confusions, compared with 116 between literal and anomalous labels. Llama2-chat 70B records 345 metaphor–anomaly confusions and 99 literal–anomaly confusions. These counts illustrate the recurring difficulty of deciding whether a departure from literal meaning still carries a usable relation.

The pattern varies across systems. The printed counts for GPT-4 show 18 metaphor–anomaly confusions on Jankowiak and 14 on Green, compared with 92 and 79 literal–anomaly confusions on the respective collections. The sharp drop in metaphor–anomaly confusion supports the claim that GPT-4 has less difficulty at that boundary. The broader prose claim that metaphor–anomaly confusion always exceeds literal–anomaly confusion does not fit all the rows in the error table. The counts are more informative when read as a profile for each system and dataset.

#### Solving SAT analogies by score or by answer

When the SAT sentences are scored separately, perplexities for correct metaphorical and non-metaphorical analogies occupy much the same range for most systems. The paper applies a two-sided Mann–Whitney U test to these independent groups and reports a difference at `p<0.05` for 6 of the 51 systems. In many cases, the non-metaphorical analogies have slightly higher perplexity on average. The SAT examples were selected as difficult problems and include infrequent vocabulary and relations that may take some effort to see. A correct non-metaphorical analogy in this collection can therefore give the scoring procedure plenty of reason for surprise.

The SAT scoring rule selects the lowest-perplexity candidate in each question. Under this rule, a correct answer wins only if its score is lower than those of the incorrect candidates. The appendix accordingly examines the comparison to the lowest-perplexity distractor as well as the distributions of scores for correct answers. This distinction matters. Overlapping perplexities for correct metaphorical and non-metaphorical sentences leave open how competitive the distractors are within each group. Two kinds of correct answer can have similar scores overall and still be selected with different success.

With BERT BASE, minimum-perplexity selection gives 34.7% accuracy on the non-metaphorical SAT subset and 29.1% on the metaphorical subset. With Llama2-chat 70B, the corresponding accuracies are 59.4% and 56.3%. OPT 66B reaches 49.0% and 49.5%, respectively. The paper describes a general improvement with size and a narrowing of the metaphorical penalty. It also reports exceptions to a smooth trend. Llama3-Inst 8B reaches 58.2% on non-metaphorical questions and 60.2% on metaphorical questions, while Llama3-Inst 70B scores 46.9% and 43.7% under the same selection rule.

The authors suggest that some larger instruction-tuned systems may have more specific expectations about input formatting. A plain analogy sentence lacks the special tokens or system message that may accompany an instruction. The paper presents this as an explanation to investigate. Those inputs differ in more than the presence of a particular token. The scoring procedure gives an isolated sentence, while the prompted procedure presents the competing analogies together and explicitly requests a choice.

In the generation comparison, each reported system obtains a higher accuracy on the metaphorical SAT subset than on the non-metaphorical subset. GPT-4 scores 72.6% on the non-metaphorical items and 75.0% on the metaphorical items. Llama3-Instr 70B scores 55.8% and 62.5%, and Mixtral-Instr 8x22B scores 50.5% and 55.7%, in the same order. For Llama3 and the larger Mixtral, the prompted accuracies are higher than the perplexity-selection accuracies reported for both subsets. Other systems can favor the metaphorical subset under generation without improving on their own scoring results.

Prompted answer accuracy on the metaphorical SAT subset GPT-4 leads on questions whose correct answer is metaphorical.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| GPT-3.5 turbo | 32.6 |
| FLAN-T5 XXL | 44.5 |
| Mixtral-Instr 8x7B | 47.6 |
| Llama2-chat 70B | 49.5 |
| Mixtral-Instr 8x22B | 55.7 |
| Llama3-Instr 70B | 62.5 |
| GPT-4 (this paper) | 75.0 |

The SAT comparison also reports which gaps between subset accuracies meet the threshold under a two-independent-samples t-test. In generation, the reported significant metaphorical advantages belong to Llama2-chat 70B, Llama3-Instr 70B, and Mixtral-Instr 8x22B. GPT-4 has the highest accuracy on both subsets, but its metaphorical advantage is not marked significant. The rankings between systems and the evidence for a gap within a system answer separate questions. A strong result on both categories offers no necessary reason for a large enough category difference to pass the test.

### What the ablations show

The paper contains no conventional component-removal ablation. Its closest controlled comparisons involve changing the sentence order, examining related checkpoints, comparing likelihood with explicit answers, and analyzing how human annotators respond to concrete examples. These comparisons are strongest where the input or category is held fixed. Comparisons across architectures and datasets answer broader descriptive questions, since several properties can change at once.

#### Shared wording makes the score difference easier to place

The matched sets in the psychology collections offer a simple control over wording. In Cardillo and Jankowiak, a common ending means that the final concept does not determine the class on its own. In Green, a repeated pair and a repeated construction make it possible to ask what changes as the other pair changes. This setup is helpful for interpreting a score difference. The relevant alternatives share something concrete, so the investigator can see how changing the relation-bearing material alters predictability.

The paired analysis still allows a range of sources for the difference. A replacement word may be more or less frequent, fit the surrounding construction to a different degree, or make a relation easier to recover. The shared material narrows the question without isolating one of those sources. Jankowiak's control over the frequency range of the starting words addresses one lexical concern, while leaving the frequency of the whole association open. This matters when interpreting the ratio of metaphor perplexity to literal perplexity as an effect of figurative meaning.

Taking the comparisons together reveals a specific asymmetry. A literal item can frequently be recognized as the likely one without a comparable ability to rank metaphor against anomaly. The high rate of lowest scores for literal Green examples illustrates this. The event of choosing the literal item is compatible with either order of the other two. A useful analysis of the three classes therefore needs the difference between the two remaining categories as well as the frequency with which the literal option wins.

#### Reordering the same sentences exposes answer preferences

The order experiment changes the arrangement of a set and keeps the sentences and correct labels fixed. Cardillo gives a clear illustration. Even with the correct orders equally represented, GPT-3.5 turbo-instr. gives the metaphor-first, literal-second answer on 78.7% of presentations, while giving the opposite order on 15.8%. The category preference in the output is thus stronger than the frequency of that category arrangement in the inputs. This is evidence about how the system answers, independently of differences in the composition of the underlying test items.

The distributions also show that balancing the test does not force the system to use all labels as requested. On Cardillo, Flan-T5 XXL assigns the metaphor label to both items in 9.4% of responses. On the collections with anomalies, it can repeat a category across multiple items. The appendix's distribution for valid permutations is correspondingly incomplete for that system. Such behavior affects classification accuracy even if one of the labels in a response reflects a sensible judgment about a particular sentence.

The control makes the reported accuracy less dependent on a privileged test arrangement. It also separates two questions a single ordering would confound. One concerns whether a system can correctly interpret the particular alternatives. The other concerns whether its output changes when identical alternatives move to different positions. High average accuracy can coexist with sensitivity to placement on some items. A balanced distribution of correct positions gives those failures a chance to appear across all classes.

SAT uses a related control at the level of the correct answer's position. Moving the answer changes the choice list without changing which pair matches the stem. This limits the contribution from a habit of selecting a favored position. The choice remains a test of the relations and the distractors, while the score averages over placement. Because the alternatives are evaluated together during generation, other features of their arrangement can still influence the response.

#### Size and instruction tuning give different kinds of comparison

The T5 and Flan-T5 rows show how differently related families can score the same materials. On Jankowiak, T5 3B assigns the lowest perplexity to the literal member in 33.3% of sets, while Flan-T5 XL does so in 81.7%. The median metaphor-to-literal ratio for T5 3B is .779, compared with 2.3 for Flan-T5 XL. The two versions are listed at the same parameter size. The comparison is consistent with training history affecting how readily the same sequence is predicted, even with size held at the reported value.

The pattern does not imply that an instruction-tuned system will always produce better explicit judgments. Flan-T5 XXL shows a clear literal preference in the perplexity experiments and leads the Cardillo figurativeness comparison. It is relatively weak in the Green labeling prompt and sometimes repeats labels. These findings concern different operations. The score tests expectations about text supplied as input. The prompt tests the ability to understand a requested classification, decide among alternatives, and return the decisions in a usable form.

Within a family, changing size is more informative than contrasting unrelated systems of different sizes, though other differences can still matter. The SAT minimum-perplexity results for Llama3 show that the larger checkpoint can do worse in the tested format. The broader tendency toward improved selection and similar subset accuracies gives this local reversal its significance. A practitioner using score-based selection could encounter a decline after changing checkpoints even when an aggregate plot across many families trends upward.

The perplexity-versus-generation comparison keeps the SAT item and answer key fixed while changing how the task is put to the system. This makes it possible to see when the same set of alternatives supports different conclusions. Llama3-Instr 70B performs better on the non-metaphorical subset under scoring and better on the metaphorical subset under prompting. The shift makes it difficult to explain the overall behavior as a fixed inability to deal with metaphorical relations. The intervention also changes what information is available at decision time. Generation sees the alternatives together and receives an explicit request to choose, so the paper cannot assign the shift to one element of that setup.

#### Context changes what annotators can recognize

The annotation comparison reveals a related difficulty for human judges. In the first SAT round, their pairwise Spearman agreement is 0.17, with a reported standard deviation of 0.16. After participants share candidate contexts and an additional annotator joins the process, the reported agreement is 0.48, with a standard deviation of 0.17. The examples make a potential figurative use easier to inspect. The personnel change and the second pass mean the experiment cannot isolate the effect of sharing example sentences.

Consider the paper's comparison of sap in a tree with blood in a mammal. The bare pairs can look like a biological analogy about fluids and the organisms they occur in. A context that describes sap running from a damaged tree as bleeding gives the comparison a possible figurative use. The words in the analogy remain the same, while the context clarifies how one domain can supply language for the other. This illustrates the difference between noticing a match in relationships and seeing how that match could support a metaphor.

The classification used in the SAT experiment reflects this process. Some questions are easy to place once a plausible context is considered, while others remain intermediate enough to be excluded. When the authors report the success rates for the metaphorical and non-metaphorical subsets, those rates use groups constructed under an explicit judgment procedure. The distinction is meaningful within that procedure, and its dependence on context is part of what the annotation analysis shows.

### Limitations

#### Limits stated by the authors

The authors acknowledge earlier criticism of analogy tests as probes of linguistic representations, including criticism involving [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). They use analogies as materials for examining particular distinctions. Their results concern performance under tasks that require selecting, labeling, or scoring constrained comparisons. Broader conclusions about analogical competence depend on whether these tasks represent the kinds of relations and contexts one wants to study. Both the minimal sentence frame and the fixed set of alternatives shape what competence looks like in the experiments.

The authors also say they did little prompt engineering. Their goal was to observe behavior under straightforward instructions, and computing cost limited how extensively they could vary the protocol. They did make some adjustments to obtain complete and interpretable responses. The family-specific prompt formatting is one example. The paper therefore supplies evidence for the prompts that were used, and the authors allow that other wording or scoring procedures could change particular results.

A further stated limit is the lack of a corpus analysis of the frequency of semantic associations. Common metaphors can occur more frequently than some literal combinations. Measuring that difference would help distinguish the influence of familiarity from the influence of figurative interpretation. Matching or controlling some individual words gives only part of that information. A frequent word may occur in an uncommon pairing, and a cross-domain expression can be familiar as a phrase. The study leaves the relative contribution of such patterns unresolved.

The evaluations use English. The authors explicitly leave open whether the same effects would appear in other languages, especially languages from other families and those with fewer resources. The materials use English sentence constructions, English lexical choices, and, in SAT, questions drawn from a particular exam. Those properties are relevant to where the stimuli came from and to how a reader forms a relation between the words. A transfer to another language would involve choices about construction, conventionality, and how to label the resulting comparisons.

Training-data exposure remains uncertain. The authors chose materials they describe as less openly available and added new annotations to the existing SAT questions. These choices reduce some opportunities for overlap. The newly assigned figurative labels were unavailable before the study, while the original SAT questions and their correct answers already existed. The paper also notes that GPT-4 is closed, which constrains what can be inferred about why its scores are higher. Strong performance in the reported tasks leaves the contributions of prior exposure and training difficult to separate.

Finally, the authors leave open questions about conversation and internal representation. The generation tasks ask for labels or choices about existing comparisons. They leave unanswered how frequently a system spontaneously produces a metaphor, whether it produces a new one, and how it uses such an expression across a conversation. The paper also does not inspect the internal representations that could support the observed behavior. It uses external predictions and responses to establish where distinctions are visible.

#### Limits that follow from the design

Perplexity measures expectations about the text, which can arise from syntax, vocabulary, familiar phrasing, or the relation expressed by a sentence. The paired comparisons and human ratings help interpret the score, but a single value aggregates all of these influences. When metaphors score close to anomalies, the finding concerns their relative predictability on a set of inputs. Establishing that the same internal process produced both values would require independent evidence about what semantic features drove the scores.

The dataset contrast involves changes besides the number of expressed concepts. Cardillo and Jankowiak use attributive statements, while Green draws near and far analogies from a different source and instantiates them in a comparison template. The measured drop in prompted accuracy on Green is clear in the reported rows. Its cause cannot be assigned solely to the four-term structure, because relation types, vocabulary, and the criteria for the metaphorical category vary with the collection. The contrast shows what happens on these different tasks and gives grounds for a more tightly matched follow-up.

Anomaly is likewise a category defined by the materials. A distant or incongruous comparison can gain an interpretation if a context makes a particular connection salient. The study intentionally restricts surrounding context, which gives the labels a stable role in the task. In ordinary reading, a speaker can elaborate what an unusual phrase is supposed to mean. The tests capture whether a usable relation is recoverable in the supplied wording or choice set, under the assumptions built into those items.

The relationship between semantic judgment and response compliance remains partly unresolved. An invalid label sequence can arise when a system misidentifies the categories, loses track of which labels it has used, or departs from the requested format. Accuracy reflects the resulting answer, and error counts reflect the labels that can be recovered. The format adjustments for Llama3 and Mixtral help elicit usable responses, while limiting how confidently a difference between systems can be assigned to their semantic judgments alone.

SAT introduces another issue about the comparison groups. The metaphorical and non-metaphorical subsets consist of different questions, with different stem words and distractors. They are not matched versions of the same problem. An accuracy difference can therefore reflect how misleading the competing answers are, as well as whether the correct answer is metaphorical. The comparison of correct-answer perplexities and the analysis against the lowest-scoring distractors help clarify the result. They leave some question difficulty outside the figurative label.

The annotation procedure also makes the analyzed SAT subsets easier to distinguish than the complete collection. Questions at the exact midpoint are excluded, and the score rises when annotators see plausible contexts. That creates a coherent division for the experiment, with a defined treatment of uncertainty. The resulting performance measures apply to retained items. They say less about how a system would answer when human readers themselves have difficulty deciding whether the correct analogy can support a metaphor.

Statistical evidence and practical discrimination also need to be kept separate. A paired test can detect a tendency across examples that still leaves many misorderings inside individual sets. Conversely, the limited number of systems with a significant difference between the SAT likelihood distributions does not establish that the two categories behave identically. The distributions, paired rankings, accuracies, and error profiles each answer a narrower question. The paper's main conclusions are easier to interpret when their scope follows the measure from which they came.

### What came after

The later citing work extends the subject in two directions. One focuses on metaphorical representations in Arabic and on culture. The other puts relational reasoning in a multimodal evaluation of semantic extension. Both topics connect to the paper's distinction between an unusual association and a relation that can support a meaningful extension. The citation establishes that the later studies engage with this line of work. Their titles identify their subjects, while leaving the specific form of the connection open.

CAMMAR shifts attention to culture-aware metaphorical representations in Arabic. That focus takes up a question left open by Boisson and colleagues' English-only materials. A comparison can depend on what speakers in a linguistic community readily recognize as a meaningful relation. The original experiments show how this issue can arise even within English, where a familiar metaphor may score as predictable while readers still judge it figurative. CAMMAR places culture and the language of the metaphors at the center of its stated topic. The specific use it makes of the English datasets or their annotation criteria is unspecified. [CAMMAR: Culture-Aware Matryoshka for Metaphorical Arabic Representations](https://md.research.elamur.ai/free/en/papers/awinat-2026-cammar-culture-aware-matryoshka-metaphorical/)

CogEvolve addresses relational reasoning through a multimodal benchmark for semantic extension. The point of contact is clearest in the explicit word-pair comparisons. In Boisson and colleagues' Green and SAT experiments, the reader has to identify a relation that can carry over from one pair to another. CogEvolve treats relational reasoning as a benchmark question across modalities, extending the subject beyond short text comparisons. Its stated focus establishes that broader setting. The particular tasks and any reuse of the paper's scoring or prompting procedures are unspecified. [CogEvolve: A Multimodal Benchmark for Evaluating Relational Reasoning in Semantic Extension](https://md.research.elamur.ai/free/en/papers/zeng-2026-cogevolve-multimodal-benchmark-evaluating-relational/)

## Cite

Cite as Joanne Boisson, Asahi Ushio, Hsuvas Borkakoty, Kiamehr Rezaee, Dimosthenis Antypas, Zara Siddique, Nina White and Jose Camacho-Collados. 2024. How Are Metaphors Processed by Language Models? The Case of Analogies. Proceedings of the 28th Conference on Computational Natural Language Learning.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2024.conll-1.28](https://doi.org/10.18653/v1/2024.conll-1.28)

```bibtex
@inproceedings{boisson2024how,
  title = {{How Are Metaphors Processed by Language Models? The Case of Analogies}},
  author = {Joanne Boisson, Asahi Ushio, Hsuvas Borkakoty, Kiamehr Rezaee, Dimosthenis Antypas, Zara Siddique, Nina White and Jose Camacho-Collados},
  booktitle = {Proceedings of the 28th Conference on Computational Natural Language Learning},
  year = {2024},
  doi = {10.18653/v1/2024.conll-1.28},
  url = {https://doi.org/10.18653/v1/2024.conll-1.28}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
