Elamur Research

Automatic Extraction of Metaphoric Analogies from Literary Texts: Task Formulation, Dataset Construction, and Evaluation

Paper · 2025 · Joanne Boisson, Zara Siddique, Hsuvas Borkakoty et al.

Summary

A literary metaphor can give a reader enough information to follow a comparison while leaving part of it unsaid. In the paper’s example of memory pictured as a jar of flies, the passage gives us memory, the jar and the flies. A reader can supply recollections as what corresponds to the flies. Boisson and colleagues turn this reading problem into an information extraction task. Given a short passage already known to contain a metaphor and one labeled concept, a system must give the rest of the analogy. It has to recover the concepts named in the passage, put them in the right positions and supply a plausible concept when the writer has left one implicit.

The authors assemble 204 examples from existing collections and other attributed sources. An expert selects passages that fit the same format and annotates the concepts, with a second author checking the work. The format preserves two things that a list of metaphorical words would lose. It says which concepts belong to the subject under discussion and which belong to the image used to describe it. It also says which elements correspond across those domains. The experiments give each system several worked examples before asking it to recover the analogy in a held-out passage. Across different runs, any of the positions can be supplied as the starting clue.

GPT-4 reaches 77% on explicit concepts when an answer must have the same normalized head noun as the reference and occupy the right position. Mixtral 8*22 reaches 75% under the same conditions. GPT-4 correctly recovers every explicit concept in 61% of the evaluated quadruples under the paper’s scoring rule. The gap between individual and complete answers matters. A system can recognize most of the language that makes a comparison work and still miss a concept or put it on the wrong side of the mapping. The experiments expose that distinction by scoring term recognition both with and without regard to position.

The systems are further apart when the relevant concept has to be inferred. On a human assessment of eligible passages with a single implicit term, GPT-4 scores 1.21 and Mixtral 8*22 scores 0.75 on a relevance scale from 0 to 2. That assessment considers cases where the systems have already found the explicit concepts required for the judgment. The results show how much structure can be recovered with a passage, worked examples and an anchor concept in hand. They also show what remains difficult: completing the comparison when the text gives only indirect evidence, and measuring success when several wordings can express a defensible reading.

Deep dive: Automatic Extraction of Metaphoric Analogies from Literary Texts: Task Formulation, Dataset Construction, and Evaluation

See how Boisson and colleagues extract four-part analogies from literary metaphors and test whether computers can supply missing concepts. · about 36 minutes to read

The problem and its context

From noticing a metaphor to recovering a comparison

A reader who understands a metaphor can frequently explain its effect without spelling out its structure. If a writer describes political financing through the image of nourishment, a reader might say that politics depends on money. That is a reasonable interpretation of the passage, but it leaves several questions unanswered. What is being nourished in the image? What plays the role of nourishment in the subject being discussed? Which parts did the writer actually name? The paper asks for an answer in a form that makes these decisions visible.

A proportional analogy compares relationships. Something stands in a particular relation to another thing, and a corresponding relation holds elsewhere. In the financing example, money relates to politics as milk relates to a baby. The words involved may have little in common when taken individually. What gives the comparison its force is the dependency suggested on both sides. A system that merely identifies milk as figurative has recognized a cue. To produce the requested mapping, it has to connect milk to money, understand what belongs with milk in the image, and put that concept in correspondence with politics.

This is why the authors approach the problem at the level of phrases. A general explanation can convey the author's point without revealing which expressions the system took as evidence for it. A structured answer commits the system to identifiable concepts and to a particular alignment. Such an answer can be checked against the text, compared with an expert’s interpretation or collected alongside similar answers from other passages. The discipline of making the commitments explicit is part of the task. Two answers can convey a similar overall impression while proposing different mappings.

The metaphor’s direction is another part of that structure. The target domain is the subject a writer is trying to characterize. The source domain supplies the image through which the writer presents that subject. The paper illustrates the distinction through a comparison between an acrobat and a hippopotamus. An acrobat described through a hippopotamus may come across as clumsy. A hippopotamus described through an acrobat may come across as graceful. The same two concepts are available in either case. Changing which one supplies the image changes the interpretation.

Literary passages make the distinction especially consequential because an author need not mark each correspondence. The paper gives an election passage where foxes and poultry stand in for people in the political situation. The animal terms are on the page. The candidates and voters have to be inferred. Knowing that the passage is about an election provides a clue to the target, but the system also has to work out who occupies the foxes’ position and who occupies the poultry’s. A list of nouns from the passage cannot supply that answer.

The authors place these cases among semantic and pragmatic analogies. The first term points to the meaning of the words and their relations. The second points to what a reader infers from the way an author uses those words in context. A passage can provide enough context for an intended reading without containing a phrase that names each element of it. Syntax can help identify which terms go together. It cannot by itself supply the background knowledge that makes a political reading of the foxes and poultry intelligible.

The study adopts a view in which the metaphors at issue can be analyzed as analogies. It also includes similes, where the comparison may be marked overtly. The paper describes a debate over whether resemblance or conceptual mapping should explain metaphor and draws on an account intended to bring these views together. Its operational question is narrower than that debate. For the selected passages, can a system produce the particular kind of relational mapping that an annotator can record? The experiments do not adjudicate how readers arrive at a figurative interpretation.

What earlier work already captured

The authors trace one line of work to Conceptual Metaphor Theory, which treats metaphor as part of ordinary language and thought. On this view, recurring expressions can reveal connections between conceptual domains. A computational study can look for those connections across a collection of texts, or it can start from known connections and use them to interpret or generate figurative language. Both approaches give a reason to represent source and target explicitly, but neither by itself defines a task for recovering a complete analogy from a particular passage.

CorMet illustrates what a collection can reveal. It searches domain corpora for patterns in verbs and their objects, using aggregate behavior to find evidence of conceptual mappings. A recurring contrast across many uses is its material. The literary extraction task instead takes the concepts in an individual passage as the unit of analysis. A rare phrasing can be of interest even when it offers little evidence for a general pattern across a corpus. CorMet

Another study discussed in the paper starts with pre-defined mappings and clusters occurrences of verb–object pairs. The relevant comparison is what each procedure starts with. Pre-defined mappings can organize expressions that appear in a corpus. Boisson and colleagues start with a passage and one role-labeled concept, then ask the system to work out the rest of that passage’s mapping. Metaphor Identification Using Verb and Noun Clustering

Generation research uses similar material for a different purpose. In the paper’s account, Metaphor Magnet draws on stereotypical properties found in text to suggest and interpret metaphors. Given the right prompt, it can propose an image and properties that make it intelligible. Stowe and colleagues use conceptual mappings to guide metaphor generation in context, with an extraction procedure that draws on FrameNet. These examples show why associations across domains matter to generation. The present study begins with language someone has already produced and asks what correspondence can be recovered from it. FrameNet

Some earlier work gets closer to passage-level extraction. One line analyzes synesthetic metaphors in a particular corpus. Another derives a source and target pair by abstracting from words connected in a sentence. Wachowiak and Gromann likewise study extraction from metaphorical sentences using GPT-3 and data that already carry source and target annotations. These approaches establish the importance of locating the domains in the language of specific examples. The missing piece, as Boisson and colleagues formulate it, is a test of whether a system can get past a single correspondence and recover the other pair needed to express a relation.

Research on analogy posed a complementary set of questions. The paper discusses experiments in which prompted systems solve analogies over patterns or short passages, as well as work that puts visual analogies into words so a text-based system can attempt them. That background motivates trying a prompt on literary material. It leaves open whether the system can find the ingredients of an analogy when a writer has embedded them in a passage and left some of them unstated. Emergent Analogical Reasoning

The authors also distinguish their task from work on analogies across narratives. A benchmark in that line asks how a system handles similarities between stories, including comparisons where the stories are close or distant. Another resource represents metaphoric analogies as quadruples. The literary extraction study puts the emphasis on moving from the passage to the quadruple. Having a complete analogy available as a benchmark item and having to assemble one from written evidence put different demands on a system. ARN

The question also sits alongside broader tests of natural language understanding. The paper points to a resource for challenging metaphor-understanding tasks and to work comparing the features humans and systems may use when solving analogies. Its own contribution is a format for checking particular commitments a system makes in response to a metaphor. The authors see potential for uses such as question answering and machine translation, where a system may need to recover what an image says about the actual subject. Those are motivations for obtaining a structured answer. The experiments examine the answer itself. Metaphor Understanding Challenge Dataset

Why start with literary passages?

The choice of material follows from the way the authors want to test extraction. Searching a large collection for sentences in familiar comparison patterns would make it easier to obtain candidate examples. It would also influence what a successful system had to read. A search pattern that reliably finds the source phrase can hand the same clue to the system again and again. The authors instead look through existing collections for analogies that authors expressed in varied ways.

A selected passage can therefore be a short quotation whose comparison is visible in the grammar, or a longer fragment whose mapping emerges from the situation. Literary and famous passages also have a practical role in the study because existing collections offer a place to find attributed examples without making a single grammatical template the entry condition. The authors describe famous metaphors as part of a cultural inheritance that reappears in ordinary language under different wording. That is their reason for taking this material seriously in spite of its narrower origin.

The selection is still guided by a formal requirement. The authors want enough structure to compare terms and roles across examples. A passage must admit one proportional analogy with parallel relationships. A text with several equally plausible mappings or more arguments than the format can hold presents a different research problem. The paper’s design trades breadth of figurative language for a specific output that annotators and automated systems can both produce.

The method, step by step

What the answer contains

Think of the answer as two ordered pairs. The first records concepts from the subject under discussion. The second records concepts that do corresponding work in the image. Ordering matters because the first member of one pair goes with the first member of the other, and likewise for the second members. A phrase may be perfectly relevant to the passage and still be a poor answer for a particular position.

T1 : T2 :: S1 : S2

T denotes the target domain and S denotes the source domain. T1 is the primary target concept and T2 is the other target concept. S1 corresponds to T1 in the image and S2 corresponds to T2. The colon within a pair stands for the relationship between its concepts. The double colon says that this relationship has a counterpart in the other pair. The digits identify positions within each domain. They express neither the order of the words in the passage nor a ranking of their importance.

For the image of memory as a jar holding flies, memory is the main target and the jar is the corresponding source. Flies occupy the other source position. The missing target concept can be recollections. Thinking through the relation helps to place every answer. A jar contains the flies and memory contains the recollections. The annotation records the concepts that take part in those relations. The verb that explains the parallel is outside the required output.

The expected unit is a noun phrase, an expression built around a noun. A phrase can contain descriptive words that help identify the concept. Its head is the noun that supplies the core of what the phrase denotes. In the paper’s election example, candidates and voters can be supplied as noun phrases even though the passage conveys them through the surrounding political situation. The same output format can thus hold a phrase located in the text or a phrase the system has had to supply.

The target and source labels do more than tell an evaluator where to file a word. They make it possible to distinguish a system that identified what the writer is talking about from one that has mistaken the image for the topic. The alignment inside those labels makes a further distinction. A system might assign both nouns to the correct domain yet pair a participant from the target with the wrong participant from the source. It would have recognized the vocabulary and still produced a different analogy.

From selected passages to scored analogy completions

The steps in order.

From selected passages to scored analogy completionsStep 1: Select passages with a proportional metaphor1. Select passages with a proportional metaphorStep 2: Annotate concepts and mark implicit positions2. Annotate concepts and mark implicit positionsStep 3: Sample demonstrations and hold them out3. Sample demonstrations and hold them outStep 4: Give a passage and one labeled concept4. Give a passage and one labeled conceptStep 5: Recover and arrange the remaining concepts5. Recover and arrange the remaining conceptsStep 6: Match explicit phrases against the annotations6. Match explicit phrases against the annotationsStep 7: Ask readers to rate eligible implicit completions7. Ask readers to rate eligible implicit completions

Choosing passages the same format can describe

The material comes from the Metaphor of Mind collection, books that assemble famous metaphors and similes, and a small set of attributed examples found online. The passages include material drawn from novels, poetry, songs and speeches. The study treats the short passage as the unit to annotate. Depending on the example, this can be a sentence or a fragment extending to a paragraph. The point is to retain enough wording to support a reading while keeping the analysis centered on one selected analogy.

The first decision is whether the passage supports the required pattern without a great deal of elaboration. The paper discusses a comparison in which someone mistreats data until the data supposedly confesses. There is a parallel between the person putting pressure on the data and an interrogator, between the data and a prisoner, and between an unjustified conclusion and a confession. Inflicting pressure and obtaining a confession involve different relationships. Choosing just enough concepts to fit the format would either throw away part of the comparison or allow several incompatible answers to look equally suitable.

The opposite problem occurs when the metaphor naturally gives a reader just one correspondence. The paper takes the image of silence as a dark cavern. A reader could extend it by bringing in a friendly voice and a candle. That extension would produce a fuller proportional analogy, but the passage does little to require exactly those additional concepts. Other completions might reflect the image just as well. The authors discard examples whose main path to the required structure is to invent much of the analogy around the phrase.

They also set aside passages that combine or nest metaphors. The paper discusses a remark that presents taxation as an art and at the same time compares it to plucking a goose. An answer format with one source pair gives the system no straightforward way to record both images in their own right. An answer drawn from the art comparison could mix with one drawn from the goose comparison. By screening these cases out, the authors make the task a test of recovering one mapping in each passage.

They keep examples with implicit terms when the underlying analogy is sufficiently supported. Consider the image of a head compared with an apple whose core is missing. The apple and its core provide a relationship that the reader can use to infer a corresponding part of the head, such as brains. This case differs from expanding the cavern image merely to fill the form. The absence of the core is already part of what the passage says and gives a reason to look for an equivalent on the target side.

That distinction is a judgment about what the author gives a reader to work with. Implicit need not mean arbitrary. The passage can make the role clear while leaving the term unnamed. At the same time, a well-supported role can admit several formulations. Which word belongs in the reference and whether the reference should determine the only acceptable answer are distinct decisions. The experiments address the latter by asking human readers to judge generated terms.

Recording the annotated concepts

An author with expertise in metaphor selected and annotated the 204 instances. A second author checked the work. The annotator records the phrases in their roles and offers a relevant concept for any implicit position. This is linguistic annotation of a reading of the passage. It preserves the wording of explicit concepts while making the inferred ones available as part of the reference analogy.

The annotations stay close to the concepts in the text. The authors do not cluster them into groups or replace them with more general category names. In the memory example, the desired level of description includes the jar and the flies themselves. Replacing both with more abstract descriptions could be useful for identifying recurring connections across many metaphors, but it would change what an automatic extractor is asked to find in this experiment.

The main target, T1, is often the grammatical subject or otherwise the main entity being discussed. It commonly has a visible correspondence in S1, the primary image. The other positions can require more work. The distinction between primary and secondary is useful for annotation because it identifies an entry point a reader can often locate before reconstructing the rest. It is also an empirical question for the experiments. Giving the system the primary target may feel like the simplest way to begin, but a different clue could offer more information about the less conspicuous part of the comparison.

To see how reliably experts can produce the annotations, the authors use a separate agreement exercise. Five annotators with relevant backgrounds work on 20 passages. They study examples and then receive a passage and a T1 concept. They identify the other positions, with instructions to give phrases headed by nouns. The noun requirement helps keep the arguments apart from the relationship that joins them. For instance, an answer describing what a web does can explain the metaphor without naming the thing the web traps.

In the main agreement calculation, the authors replace an annotator’s proposed term for an implicit concept with a common marker. Consequently, when two annotators agree that a position is implicit, their proposals need not use the same word for this part of the check. The comparison can register agreement on the position’s status without treating the wording of an inference as fixed. In another calculation, the authors omit positions a majority marked as implicit and look more directly at how the annotators agree on stated concepts.

Agreement is measured with Cohen’s kappa, which takes account of agreement expected by chance. The authors compare exact phrase matches and matches on normalized head nouns. They examine each position, combine the positions, and check agreement for a complete answer. The last measure puts all the decisions together. It can expose how often annotators reach the same overall mapping even if their choices for some individual roles are fairly consistent.

Giving the system a starting point

The automated procedure preserves the basic shape of the task the annotators saw. The prompt describes the subject side and the image side, specifies the relation between their positions, and asks for a full analogy. The system receives a passage and an anchor. The anchor contains both a concept and its role. Being told that apple is S1, for instance, supplies an interpretation of apple as part of the source as well as identifying the word itself.

The experiments repeat the task with each position supplied in turn. This includes runs in which the anchor value came from the expert’s inference for an implicit position. The system can therefore be handed a concept that appears nowhere in the passage. That design makes it possible to see how the clue interacts with the rest of the comparison. It is a different condition from giving only a word that a reader could highlight in the passage.

Before the test item, the prompt shows seven worked examples. In one demonstration, zeal is presented as a volcano and indecisiveness is compared with grass that fails to grow on it. The example teaches the system what counts as an answer. It shows where to put the main subject and image, where to put the corresponding secondary concepts, and how to express the mapping in labeled phrases. This use of examples in the prompt is few-shot learning. It gives the system a task and examples of the expected behavior at inference time.

For each run, the authors sample the demonstrations from the dataset and remove them from that run’s evaluation set. This leaves 197 test passages. The same procedure can be repeated with a different set of demonstrations, allowing a passage that was shown as an example in one run to be evaluated in another. The split is thus defined per run. It tests completion on passages held out from the prompt of that run.

The authors initially test GPT-3.5-turbo with 10 different batches of examples to see how much the result varies. The main comparison uses the same 3 batches for all systems. Sharing those batches matters because a worked example can make some aspects of the task easier to infer. Testing one system on demonstrations that clarify implicit roles and another on demonstrations that do not would make the comparison harder to interpret. The paper reports results averaged across the shared batches.

The system is asked to obtain all the other terms in one response. It can return expressions it finds directly and supply an expression for a missing role in that same response. The instructions say to invent a phrase only when the necessary concept is implicit. There is no separate extraction pass followed by a role assignment pass. The response itself has to show where each concept belongs. The authors report using default generation settings, including temperature, which influences how varied the sampled responses can be. They did not apply task-specific fine-tuning.

Turning answers into measurements

Matching a predicted phrase to an annotation requires deciding which differences matter. The authors lower-case the text before testing several rules. Exact match requires the same string. Overlap accepts a match if one string is contained in the other. The full-expression lemma rule compares words in their base forms. A lemma groups forms such as a noun’s singular and plural. The head-noun rule takes the base form of the central noun and allows the rest of the phrase to differ.

These rules give different answers to different kinds of variation. If a system drops a descriptive word but keeps the whole reference phrase inside its answer, or returns a phrase inside the reference, the overlap rule can credit their shared wording. If the main noun changes only in number, lemmatization can preserve the match. If the same core noun is surrounded by different modifiers, the head rule can accept the answer even when a comparison of the full expressions would fail. Each rule defines what the score is meant to tolerate.

The authors use the head-noun rule in the later analyses, since it preserves a check on the core lexical choice while allowing variation in phrase length and number. They report scores that ignore the output position as well as scores that insist on the right position. Under the position-independent rule, an explicitly stated concept can receive credit even if the system assigns it to the wrong role. Under the position-sensitive rule, the concept and the role both have to match. The supplied anchor is excluded from accuracy, so repeating it earns no credit.

Implicit completions call for a different judgment. A term inferred from the context may be sensible even if it shares no head noun with the annotator’s suggestion. The authors therefore have readers judge relevance on a scale from 0 to 2. A value of 0 marks an incorrect inference. A value of 1 marks a phrase that can make sense but has a flaw or lacks precision. A value of 2 marks a very good completion. Relevance comes from the analogy as a whole, including the other concepts, rather than from resemblance to a single reference expression.

For these judgments, the authors consider passages with one implicit term where the explicit extraction is successful for both systems being compared. The supplied concept is one explicit member. The two other explicit concepts have to pass the head-noun check. This leaves one remaining position for readers to judge. The resulting score describes the quality of the last inference in an otherwise correctly identified comparison. The protocol isolates that problem from failures to read the explicit material.

When several outputs are available for the same passage, the ratings are averaged so that each passage contributes a final score for each system. The same proposal for the same passage can arise more than once, which the authors account for in presenting the rating work. Repeating an answer makes it a recurring output of the experiment, even though its relevance in a particular context can be judged once. The authors make the annotated data and experimental scripts available in the repository named metaphoric-analogies-extraction.

Experiments and results

The passages and the systems

The 204 examples are distributed across the source collections unevenly. The Grothe collection contributes 124, Metaphor of Mind contributes 60, and other sources contribute 20. The paper’s dataset table counts 99 items with all terms explicit, 94 with one implicit term and 11 with two. The comparison between fully explicit passages and passages with one gap therefore concerns substantial parts of the collection. Passages with more than one gap form a much smaller group.

The sources also differ in how much language a system has to read. The paper reports an average of 17.7 tokens and 4.7 nouns in Grothe passages. The Metaphor of Mind passages average 29.9 tokens and 6.8 nouns. Passages from the other sources average 17.8 tokens and 4.3 nouns. Overall the collection has an average of 21.3 tokens and 5.3 nouns per passage. These figures describe the material in which the analogy is embedded. The system may have to read past additional nouns, and the number of nouns present need not equal the number of roles that can be filled from the text.

Implicitness is also uneven across roles. The paper reports that 3.4% of primary targets and 6.9% of primary source concepts are implicit. It reports 19.1% for the other target position and 27.5% for the other source position. An overall score combines cases in which the relevant noun is a highly visible part of the comparison with cases in which a related role is only suggested. The separate explicit and implicit evaluations are important because those situations provide different kinds of evidence for an answer.

The comparison uses instruction-following systems. The two GPT entries are GPT-3.5 and GPT-4, queried through an API. The authors also run Meta-Llama-3-70B and the Mixtral variants 87B and 822B. The Mixtral systems use a sparse mixture of experts. Llama and the larger Mixtral are run with quantization, a way to reduce the computational load by representing parameters with lower precision. The authors add formatting instructions for Llama and use the recommended instruction delimiters for Mixtral. The task, held-out passages and demonstrations give the comparison its common basis.

There is no standalone heuristic baseline reported for this new task. The reference annotations provide the answers against which explicit extraction is scored, and the other prompted systems provide the experimental comparators. The human agreement exercise supplies information about how reproducible the task is for readers. Its setup and metric differ from those of the automatic comparison, so it is best read alongside those results as a check on the annotation problem.

Finding terms and putting them in place

On the position-sensitive head-noun metric, GPT-4 leads the comparison with .77, followed by Mixtral 822 at .75. Llama-3 scores .71. GPT-3.5 scores .62, and Mixtral 87 scores .55. These values are proportions from the shared-batch experiment. They refer to individual explicit terms that were to be recovered, with the supplied anchor left out. A successful answer must pick up the relevant head noun and put it where the expert placed it.

Explicit term extraction on the literary analogy set by position-sensitive head-noun accuracy

GPT-4 leads the prompted comparison, with the larger Mixtral variant closest.

Explicit term extraction on the literary analogy set by position-sensitive head-noun accuracyMixtral 8*7: .55Mixtral 8*7.55GPT-3.5: .62GPT-3.5.62Llama-3: .71Llama-3.71Mixtral 8*22: .75Mixtral 8*22.75GPT-4 (this paper): .77GPT-4 (this paper).77
The numbers
System or settingAccuracy
Mixtral 8*7.55
GPT-3.5.62
Llama-3.71
Mixtral 8*22.75
GPT-4 (this paper).77

The metric choice matters to the picture. With exact matching in the correct role, GPT-4 scores .66, Mixtral 8*22 scores .64 and Llama-3 scores .61. The head-noun rule credits more responses for those systems. The task can be performed successfully at the level of the main concept even when the answer differs in number or in which modifiers it includes. Those are precisely the changes the head rule was chosen to accommodate.

Allowing a phrase to count independently of its position raises the score as well. On GPT-4, the head-noun accuracy is .83 when position is ignored and .77 when position is required. Mixtral 8*22 also reaches .83 without the position requirement, with .75 when it is imposed. Llama-3 scores .81 and .71 under the respective conditions. The strong position-independent scores show that several systems frequently recognize the relevant material. The position-sensitive scores show how much of that recognition becomes a usable mapping under the study’s rules.

This distinction also changes how to read the ranking. The equal position-independent head-noun scores of GPT-4 and Mixtral 8*22 establish a tie at the precision the paper reports for this criterion. With position included, GPT-4 is ahead. That result says the evaluation of role assignment can separate systems that appear equivalent if the evaluator checks only which concepts were found. A project that wanted just useful keywords from a figurative passage would be asking a different question from the one measured by the position-sensitive result.

The most demanding reported automatic measure checks the explicit parts of the whole quadruple together. GPT-4 achieves .61 on this measure, Mixtral 822 .58, and Llama-3 .52. GPT-3.5 reaches .43 and Mixtral 87 reaches .34. The paper calls this the quadruple score because it evaluates the success of the structured response as a unit. The condition concerns correct extraction of all explicit terms the system was asked to recover. A case with an implicit role can meet that condition without establishing that its inferred term is good.

Complete explicit recovery on the literary analogy set by quadruple accuracy

GPT-4 most often recovers every explicit term required for an answer.

Complete explicit recovery on the literary analogy set by quadruple accuracyMixtral 8*7: .34Mixtral 8*7.34GPT-3.5: .43GPT-3.5.43Llama-3: .52Llama-3.52Mixtral 8*22: .58Mixtral 8*22.58GPT-4 (this paper): .61GPT-4 (this paper).61
The numbers
System or settingAccuracy
Mixtral 8*7.34
GPT-3.5.43
Llama-3.52
Mixtral 8*22.58
GPT-4 (this paper).61

The drop from term to quadruple accuracy has a direct interpretation. Suppose a response to the memory passage correctly locates the jar and flies but gives the wrong target concept. Individual term scoring can credit each correct contribution. The complete score withholds credit if a required explicit role is wrong. The scoring distinction makes it possible to see whether a system offers several good pieces of an analysis or routinely delivers something that can be taken as an entire extracted mapping.

How readers judge the missing concepts

The implicit-term evaluation covers 50 eligible passages. The authors initially use 20 passages for an agreement check between two annotators, then add judgments from both annotators on additional passages. The reported rank correlation on the shared evaluation is Spearman’s ρ of 0.7. It measures the tendency for the annotators to put the proposed terms in a similar order of quality. The overall evaluation covers 725 generated terms with repetitions, with 291 distinct passage-and-term items rated. The counts distinguish the work of judging different answers from the frequency with which a system made the same proposal.

One example puts the difference between a plausible noun and a plausible mapping in view. The passage presents written laws as spiders’ webs and depicts poor and weak people as those who are caught. The missing source role is what would be caught in a web. A proposal involving spiders draws on the image, but identifies the wrong participant. An expression describing the act of catching supplies a relation where the task calls for the entity undergoing it. A phrase like small insects gives a suitable counterpart to the people caught by the laws. In the paper’s ratings, the spiders response and the response naming the action receive 0, while the small-insects answer receives 2.

This example also shows what the middle of the scale is for. Referring to beings that have become entangled can point to the right position and express a relationship that fits the passage, while giving a less informative account than a concrete candidate from the source scene. The judgment reflects both the role and how well the proposed noun phrase captures it. Where an answer is very general but compatible with the relation, the criterion allows some credit without treating it as equivalent to a more revealing inference.

GPT-4 receives a mean relevance score of 1.21 and Mixtral 8*22 receives 0.75. The averages are computed by passage for the two systems. The generation comparison is further apart than the explicit extraction comparison, even though the latter puts the same systems close together. This gives substance to the authors’ separation of extraction and inference. Being able to recover the names of the participants a writer has mentioned is compatible with considerable difficulty supplying a participant that belongs in the same relation.

Human relevance ratings for inferred concepts on the eligible literary passages

GPT-4 receives higher relevance ratings for the missing concepts.

Human relevance ratings for inferred concepts on the eligible literary passagesMixtral 8*22: 0.75Mixtral 8*220.75GPT-4 (this paper): 1.21GPT-4 (this paper)1.21
The numbers
System or settingMean relevance rating
Mixtral 8*220.75
GPT-4 (this paper)1.21

The average for GPT-4 still leaves room for incorrect or imperfect responses. The distribution of ratings contains both strong and failed inferences. The authors report 216 top ratings and 132 incorrect ratings for GPT-4 among the outputs counted with repeats. For Mixtral 8*22, they report 140 top ratings and 191 incorrect ratings on that basis. These are counts of generated terms in the evaluation, with repeated outputs included. The per-passage relevance scores answer a different question by averaging across the available variants of each passage.

What the ablations show

The paper does not run component-removal ablations. It varies the demonstrations and the supplied role, compares scoring rules, and examines how extraction changes with properties of the passages. These comparisons show where accuracy is sensitive to the experimental setup and where the evidence in a passage is easier or harder to turn into a labeled analogy.

The clue can matter more than its prominence in the sentence

A concept that is easy to find can be less useful as a clue than one that takes more work to identify. The main target frequently tells the reader what the passage is about. The other target concept can reveal which aspect of that subject the author is comparing to the image. With the memory passage, an anchor identifying recollections places a constraint on what kind of relationship the system should look for. An anchor identifying memory leaves a much broader question about which feature of it the passage makes salient.

The results by anchor are consistent with that possibility. The authors find that supplying T2 works well overall. With GPT-3.5, the aggregate head-noun accuracy is .77 when T2 is given, compared with .47 when T1 is given. The larger Mixtral scores .77 with T2 supplied and .73 with T1 supplied. For GPT-4, the aggregate scores are .80 with T2 and .78 with T1. Its result with S1 supplied is .81, so the aggregate performance for that particular system has a different ordering at the reported precision. The general pattern describes a useful anchor across systems and measures, with exceptions in specific comparisons.

A comparison of anchor conditions also changes which terms are evaluated. When T2 goes into the prompt, it drops out of the judged outputs. When T1 is supplied, T2 returns to the set of fields the system has to recover. The aggregate can improve because an anchor provides information, because it removes a comparatively hard output from the calculation, or because of both effects. The more detailed breakdown supports examining a particular output across different anchors. For GPT-4, S1 extraction scores .89 with T1 supplied and .83 with T2 supplied. Even a change that helps the aggregate can leave a particular output harder to recover.

Across all anchor conditions, GPT-4 reaches .86 for S1 and .85 for T1, while its scores for T2 and S2 are .71 and .69. The larger Mixtral reaches .84 on T1 and .77 on S1, with .72 on T2 and .65 on S2. The secondary source position is the hardest of the four for both in these aggregated results. This is the position most often left implicit in the collection, but the explicit extraction result is itself about cases where a term is available to recover. A system must frequently distinguish the noun that plays a secondary part in the image from other nouns that help describe the scene.

The annotator study gives a related perspective on the roles. The primary source concept was always explicit in the small agreement sample and was frequently signaled by a comparison marker. In the appendix calculation that omits positions judged implicit by a majority, the mean kappa for lemmatized head nouns is .86 for S1, .67 for T2 and .58 for S2. The comparison suggests that identifying the principal image provides a comparatively clear starting point for readers as well. The lower agreement for the secondary image role shows why it is worth treating readable metaphor and reliably recoverable analysis as separate questions.

Worked examples change the result

Across the 10 batches used for GPT-3.5, average explicit-term head-noun accuracy is 0.62, with a standard deviation of 0.03. The highest batch reaches 0.69 and the lowest reaches 0.58. These numbers come from prompting the same system with different demonstrations. The system did not receive additional task-specific training between those conditions. The outcome varies with the particular cases chosen to illustrate the task and with the resulting held-out set.

Examples can plausibly differ in what they communicate. A fully stated analogy can make the role labels easy to follow. A passage with an inferred term can demonstrate when an answer should go beyond the wording on the page. The paper does not separately manipulate these properties. Its batch comparison shows variability under the sampling procedure as a whole. It gives a reason to read the shared-batch averages as conditioned on the demonstrations used, especially when comparing systems with relatively close results.

The shared batches control one important source of variation across systems. They do less to establish how scores would change if the authors rearranged the demonstrations, chose examples to emphasize different types of implicitness or gave more demonstrations. The paper proposes studying the number of examples and other settings in future work. The measured result concerns the particular procedure in which a small set of labeled passages illustrates the input and output format.

More nouns and more missing roles pose different problems

Extracting explicit terms is similarly successful for passages with all terms present and for passages with one implicit term. On the head-noun breakdown, GPT-4 scores .79 for fully explicit analogies and .78 when one term is implicit. Mixtral 8*22 scores .75 and .77 respectively. These subgroup results concern explicit extraction. They show that a gap elsewhere in the mapping need not disrupt the recovery of the concepts the passage actually states.

The group with two implicit terms gives lower scores for several systems. GPT-4 reaches .65 and Llama-3 reaches .59 on that group, while Mixtral 822 reaches .66. Mixtral 87 records .56 in each of the groups in the table. The test breakdown reports 10 distinct quadruples in the two-gap group. The authors treat its size as too small to support a significant conclusion about the effect. Each such passage supplies evidence about a particularly sparse analogy without supporting a general ranking for that situation.

The noun-count comparison asks a different question. A passage can contain plenty of nouns and still leave a role implicit. Conversely, a passage can contain exactly the relevant nouns and make every role explicit. The paper finds the strongest performance for passages with exactly 4 nouns, which can coincide with a fully stated analogy containing just the concepts of interest. Beyond that point, the authors observe that accuracy does not steadily decline with the number of nouns in the range they examine.

A count of nouns offers a rough description of how many possible answers the sentence might appear to contain. It says little about how grammatically salient those nouns are or whether they belong to the image at all. The absence of a consistent decline is therefore evidence about these groups of selected short passages. It suggests that extra nouns did not make extraction collapse in this setting, while leaving open what would happen with more context, competing comparisons or several metaphors in the same passage.

Recognition and assignment can fail separately

The position-independent comparison gives the authors a way to identify scope for improvement even when a system frequently finds the right words. GPT-3.5 moves from .77 on head nouns with positions ignored to .62 when positions matter. Mixtral 8*7 moves from .69 to .55. The stronger entries generally give up less accuracy when the evaluation asks them to place words in the analogy. This pattern clarifies why testing only for the presence of the right words would miss a major requirement of the task.

It also motivates a change the authors suggest in discussion. A system might first find the concepts and then decide which role goes with each. Separating the decisions could make a wrong assignment easier to diagnose or give the system another opportunity to use the relationship between pairs. The paper reports only the joint response procedure. The score gap establishes that correct words are sometimes available in an answer with the wrong roles. Whether a staged procedure would reduce those errors remains a research question.

Limitations

Limits identified by the authors

The authors identify dataset size and annotation coverage as constraints. The collection contains 204 passages, and most passages have one main reference annotation even though a second author checked the dataset. Similarly, most generated implicit terms in the manual assessment receive one judgment. The more intensively shared subsets show how readers agree under common instructions. They cannot expose the full range of interpretations across the collection. The paper explains that the task was difficult to staff and that three students initially approached for the work reported being unable to solve it. Relying principally on an expert made construction feasible within the available budget.

The agreement results give grounds for using the annotations, while preserving evidence of difficulty. The expert responsible for the dataset generally aligns with the other annotators, according to the paper’s majority-vote comparison. Agreement on complete quadruples is appreciably weaker than agreement on individual roles. A complete answer can differ because of a phrase boundary, a lexical choice or a substantive difference in which concepts a reader relates. The agreement exercise also uses one kind of anchor, T1. It describes human annotation under that condition.

The authors identify the lack of manual evaluation of explicit extraction as another limitation. Their example is the metaphor that presents the world as a stage. A response can describe men and women as people and the players as actors while preserving the analogy. A normalized head-noun check can reject those responses because the main words differ from those of the reference. The authors interpret this source of missed credit as a reason to view the automatic scores as conservative and propose checking extracted answers with human readers.

There is also a clear limit to the structure recorded by the task. The relation between the concepts is essential for interpreting the comparison, but the output contains only its arguments. The authors propose adding the relation itself and extending the format to other kinds of mapping. An extraction can consequently score well without expressing in words what the two relationships have in common. It shows the system arrived at the expected arrangement, while leaving the path to the answer unexamined.

Finally, the authors distinguish their selected-passage task from extracting metaphors in open text. The experiments supply a passage already known to contain an eligible comparison. Searching unrestricted writing would require finding candidate metaphors and deciding whether the representation fits. The authors identify that as further work, together with testing the utility of extracted mappings. They also note that generated language can be misleading and that some source passages may be offensive. Those cautions concern the content and reliability of the data and outputs.

Limits visible in the experimental setup

The head-noun rule can lose information in both directions. The authors’ stage example shows how it can miss a meaningful paraphrase. A phrase can also share the expected head noun and use a modifier that changes what it refers to. The automatic rule can then grant credit where a reader might judge the answer a poor fit. Without a human audit of explicit outputs, the study does not estimate how frequently either event occurs or establish a formally guaranteed lower bound. The automatic scores measure agreement under the stated lexical test.

Several constraints make the reported task easier to specify than an application that starts with arbitrary prose. The passage is curated. The reader or system is told it contains a metaphor of the relevant form. It receives a concept together with its role. Some runs supply an implicit anchor drawn from the expert’s interpretation. This can be a strong clue about what the author means. The scores establish what the systems can do with such guidance. Extraction with no anchor and no indication that a passage contains an analogy remains outside the comparison.

Holding a passage out of the prompt establishes that it was not one of that run’s demonstrations. The paper notes that the famous and literary material may have appeared during pretraining. There is no independent check here of which passages a system previously encountered. A successful answer could reflect familiarity with the wording or its customary interpretation, reconstruction from the prompt, or a combination. The results measure the completed outputs under the tested conditions and cannot apportion those sources of success.

The manual relevance comparison is conditional in a different way. It uses passages with a single missing term and asks about outputs on which the explicit extraction succeeds. It also restricts the comparison to the systems selected for this analysis. Consequently, 1.21 and 0.75 do not summarize all missing-term attempts across the full dataset. They describe the quality of eligible inferences after explicit recovery has succeeded under the automatic criterion. The design answers a useful narrow question about what happens once the main evidence is in place.

The study likewise cannot show that the better implicit outputs came from a particular reasoning procedure. A good answer might follow from reconstructing the relation, from familiarity with the example, or from making a contextually apt association. The ratings judge the resulting term. The anchor comparisons and the examples of errors reveal patterns in the output, but there is no intervention that separates those ways of arriving at it. Claims about a system’s underlying reasoning need stronger evidence than the successful completion of the requested fields.

Selection also affects the cases on which the agreement and performance results can be interpreted. The authors avoid examples with nested images, competing metaphors, or additional arguments. The underlying reading can still be difficult, but much of the complexity of choosing which comparison to represent has been dealt with during data construction. Since the passages are literary and in English, the results leave performance on everyday conversation, longer texts and other languages unresolved.

The dataset table gives 11 instances with two implicit terms, while the dataset discussion mentions 10 and the test breakdown reports 10 quadruples for that condition. It is possible to distinguish the tabulated collection from the test subgroup when reporting the results. The difference in the dataset descriptions leaves the prose count less clear than the role-specific evaluation. In either case, the evidence for passages with multiple gaps comes from few examples, and the authors explicitly refrain from drawing a significant result from that part of the comparison.

The human checks and the system scores should also retain their own meanings. Expert agreement uses kappa, and the system extraction results use accuracy against an annotation. The readers in the agreement test always start with T1, while the system comparison varies the anchor. The paper describes the stronger systems as performing in line with annotators. The measurements support that as a qualitative observation about substantial agreement and unresolved disagreement in both settings. A direct claim of parity would need a common test condition and scoring rule.

What came after

A later study cites Boisson and colleagues in work on pragmatics benchmarks for Slovene. Its title identifies a move to evaluating pragmatic understanding in another language. That is a broader evaluation problem than completing a fixed proportional analogy from an English literary passage. The connection that can be established is the citation. Whether the Slovene study reused the four-role representation, borrowed the implicit-term judgment procedure or discussed the paper as related work is unspecified. From Polyester Girlfriends to Blind Mice: Creating the First Pragmatics Understanding Benchmarks for Slovene

The distinction matters in tracing what followed the study. A citation in later pragmatics work shows that the literary analogy task entered that research conversation. Evidence that its annotations, prompts or scoring were carried over would support a more specific account of reuse. The cited title establishes the later benchmark’s language and subject, while the method and experiments described above establish what the original study contributes to evaluating meaning that a writer leaves for the reader to infer.

Cite

Cite as Joanne Boisson, Zara Siddique, Hsuvas Borkakoty, Dimosthenis Antypas, Luis Espinosa Anke and Jose Camacho-Collados. 2025. Automatic Extraction of Metaphoric Analogies from Literary Texts: Task Formulation, Dataset Construction, and Evaluation. Proceedings of the 31st International Conference on Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{boisson2025automatic,
  title = {{Automatic Extraction of Metaphoric Analogies from Literary Texts: Task Formulation, Dataset Construction, and Evaluation}},
  author = {Joanne Boisson, Zara Siddique, Hsuvas Borkakoty, Dimosthenis Antypas, Luis Espinosa Anke and Jose Camacho-Collados},
  booktitle = {Proceedings of the 31st International Conference on Computational Linguistics},
  year = {2025},
  url = {https://aclanthology.org/2025.coling-main.448/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/boisson-2025-automatic-extraction-metaphoric-analogies-literary/