---
title: "AnaDE1.0 — paper by Bhavya et al. (2024) — summary and ideas"
description: "AnaDE1.0 benchmarks how well systems find web pages with analogies, extract the passages that explain them, and identify the concepts…"
canonical: "https://research.elamur.ai/free/en/papers/bhavya-2024-anade1-0-novel-data-set/"
---
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/bhavya-2024-anade1-0-novel-data-set/)

[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/) / AnaDE1.0: A Novel Data Set for Benchmarking Analogy Detection and Extraction

# AnaDE1.0: A Novel Data Set for Benchmarking Analogy Detection and Extraction

Paper · 2024 · Bhavya Bhavya, Shradha Sehgal, Jinjun Xiong et al.

**Authors:** Bhavya Bhavya, Shradha Sehgal, [Jinjun Xiong](https://md.research.elamur.ai/free/en/authors/jinjun-xiong/) and [ChengXiang Zhai](https://md.research.elamur.ai/free/en/authors/chengxiang-zhai/) · **Year:** 2024 · **Venue:** Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

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

## Summary

An analogy on a webpage can take a sentence to introduce and a paragraph to explain. A writer might compare a biological cell to a city, then devote separate sentences to the parallels between individual parts. A system that finds that page has solved a different problem from one that can return the passage or identify the concepts the writer is comparing. AnaDE1.0 gives researchers a way to measure progress on each of those problems. Its focus is the long-form analogy, where the explanation can extend beyond the sentence that first makes the comparison.

The authors build the benchmark from Metamia, a crowdsourced collection whose contributors supplied descriptions of analogies, the concepts involved, and links to pages where they found them. The authors recover those pages, check whether the submitted wording appears in them, and use web searches on the same concepts to collect plausible negative examples. The resulting detection dataset has 15.1k pages. A more tightly checked subset supplies 3410 reference passages for segment extraction. The concept task starts with an analogy passage and asks which words name the compared concepts. Its released labels identify concept mentions without distinguishing the source from the target.

Longformer leads the comparisons on document detection, passage extraction, and concept extraction by F1, a score that combines precision and recall. On document detection it reaches mean accuracy of 0.9722 and mean F1 of 0.9413. On passage extraction, its best setting reaches mean F1 of 63.82 but mean exact match of 28.59. Those results show how much harder it is to reproduce the reference passage in full than to detect a page or recover some of the right words. When given the analogy passage, Longformer reaches mean concept F1 of 89.08. The trained extraction systems in their stronger settings also outperform the prompted GPT3.5 comparison. For passage extraction, however, GPT3.5 has higher F1 than BERT trained without balancing its examples.

The reference labels explain some of the difficulty. A page can contain several analogies while the benchmark records a single passage. The recorded passage can also leave out an explanatory sentence or include material that a reader would leave behind. Meanwhile, many analogies use familiar expressions such as “is like,” and examples without familiar cues appear frequently among the difficult cases. The detection results make a case for exploring analogy search, while the extraction results show what still needs to be measured and improved before such a search system could reliably return the passage a reader wants.

## Deep dive: AnaDE1.0: A Novel Data Set for Benchmarking Analogy Detection and Extraction

AnaDE1.0 benchmarks how well systems find web pages with analogies, extract the passages that explain them, and identify the concepts compared. · about 33 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

#### Finding the passage a reader came for

An analogy explains a subject by drawing on something the reader is presumed to know. The paper calls the subject being explained the target and the comparison used to explain it the source. In the cell-and-city analogy discussed in the paper, the cell is the target and the city supplies the source. The comparison becomes informative when the writer describes correspondences. A building associated with public records, for example, gives the writer a way to explain an organelle that holds genetic information. The city and the cell need to resemble each other in the respects the writer develops for the analogy to do its work.

A reader searching for an explanation might want the whole passage. The opening line establishes the comparison, and the sentences after it supply the reasons it makes sense. A system that returns only the opening line may give a reader a striking comparison and leave its explanatory value behind. Returning the whole webpage solves the problem of locating a candidate but also leaves the reader to find the relevant text. The paper separates these outputs so that each can be evaluated in its own right.

AnaDE is the authors’ name for the combined problem. Analogy Document Detection, or AnaDet, gives each page a yes-or-no label. Analogy Segment Extraction, or AnaSE, locates the stretch of text occupied by the analogy and its explanation. Analogy Concept Extraction, or AnaConE, finds the words in an analogy passage that name what is being compared. In a search application these capabilities could support successive decisions about which pages to index, which passages to show, and which concepts to make searchable. The paper evaluates the capabilities separately. In particular, the concept experiment starts from an analogy passage that is already available.

A local comparison can be a small part of a long document. The surrounding page may discuss a subject at length before briefly introducing an analogy. The topics of the page and the analogy could therefore be easy to recognize even if the passage itself is hard to find. A newspaper article and an explanatory blog post might discuss the same concept with different rhetorical choices. The benchmark design tries to make the presence of an analogy, rather than the mere presence of a topic, relevant to the page-level decision.

The authors envisage using these capabilities to collect analogies from online writing for educators, researchers, and writers. Such a collection would make it possible to retrieve an analogy that someone had already written and to return the wording in context. They also see a use for a reference collection in evaluating analogy generation. Generating something on demand and retrieving a recorded example serve related purposes, and the authors point to expense and unreliable output as practical reasons to study retrieval alongside generation. Earlier work they cite had already explored generating extended comparisons through prompting. [Analogy Generation by Prompting Large Language Models](https://md.research.elamur.ai/free/en/papers/bhavya-2022-analogy-generation-prompting-large-language/)

#### What earlier analogy tasks asked for

In the earlier work the authors describe, a system might receive concepts or explicit representations of them and look for a mapping. The Structural Mapping Engine, for instance, uses rules to match concepts through represented attributes and relations. That formulation puts the structure of the comparison at the center of the task. In AnaDE the input is ordinary written text. Before a system could build a representation of the comparison, it would have to find where the writer makes it and work out which expressions refer to the compared concepts. The paper places this task in the broader study of [abstraction and analogy-making in artificial intelligence](https://md.research.elamur.ai/free/en/papers/mitchell-2021-abstraction-analogy-making-artificial-intelligence/).

Another line of work studies proportional analogy. In the familiar man-to-woman and king-to-queen format, a system looks for a relation that holds across pairs. The setup gives the concepts separate positions and centers the problem on a shared relation. A long-form analogy can express several correspondences in prose, some in the opening comparison and others in later sentences. The relevant concepts and the extent of their explanation both have to be recovered from the writing. A strong result on a proportional analogy question would therefore answer a different experimental question from a strong result on AnaSE.

The authors also discuss work that finds analogous research papers by comparing documents. In that setting the researcher wants to know whether separate texts describe structurally similar problems, methods, or ideas. AnaDE asks whether a comparison has been expressed inside a particular document. The distinction matters when specifying an output. Cross-document search might return a pair of papers, while segment extraction returns wording from one page. A page can be topically similar to a page containing an analogy and make no comparable analogy itself.

The closest earlier work in the authors’ account used classical classifiers to identify explanatory analogies in 300 webpages. Linguistic markers such as “is similar” were among the features. The paper reports that the small dataset was unavailable publicly and that its focus was educational explanation. AnaDE1.0 is intended to provide a shared experiment that covers analogies across a wider range of subjects and also supports evaluation below the document level. The paper presents this as a first benchmark for the particular combination of long-form detection and extraction tasks it defines.

#### Where classification and extraction meet

The detection task belongs to [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). Each page receives one category, and a system can in principle use evidence anywhere in the page to choose it. The analogy may nonetheless occupy so little of the page that a general summary would omit it. This gives a document classifier an unusual target. It can be rewarded for recognizing a local rhetorical device even when that device contributes little to the page’s overall subject.

Work on similes and nominal metaphors gives the authors another point of comparison. A short expression can make a figurative comparison within a sentence. An extended analogy can start the same way, and its later clauses or sentences explain how the parts correspond. Recognizing an opening construction is consequently a possible step toward segment extraction. The start and end of the explanatory passage still have to be found. The article can also introduce its analogy directly, with wording that resembles a literal statement of identity until the reader interprets it in context.

Both extraction tasks fall under [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/). Segment extraction is related to text segmentation because it asks which portion of a longer text serves a particular function. The authors compare that idea with specialized work such as locating arguments. Concept extraction works at a smaller scale. Identifying the relevant words resembles [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) or keyphrase extraction, but membership in a particular comparison determines which words matter. The paper relates these tasks to work on extracting entities, events, and relations, including the [Automatic Content Extraction program](https://md.research.elamur.ai/free/en/papers/doddington-2004-automatic-content-extraction-ace-program/).

In the cell example, terms for public institutions and terms for cell components may all look like plausible phrases to extract. Their appearance alone leaves open which concepts form the main comparison and which supply details. A general keyphrase extractor could recover salient vocabulary and still miss what the two sides of the analogy are. The target of AnaConE is therefore narrower than collecting all the important phrases. It asks for the concepts involved in the annotated comparison.

The authors also cite textual analogy parsing for quantitative comparisons. That work concerns a deeper representation of what is shared and what is compared in a particular class of statements. AnaDE1.0 addresses an earlier question in the processing of open web text. Its references indicate a page, a passage, or a concept mention. A full representation of the correspondences would require additional annotation and a different output.

### The method, step by step

#### Turning submitted analogies into reference examples

The starting point is a Metamia record. A contributor describes an analogy, supplies names for the compared concepts, and points to the original webpage. These pieces serve different purposes. The link makes it possible to recover the context in which the analogy appeared. The description can supply the passage to be located. The names can become extraction labels if they match wording in the passage. A submission can be informative to a human reader while failing to provide a usable reference for one of the tasks. A contributor might, for instance, describe the right analogy in their own words.

From submitted analogies to AnaDE1.0 benchmarks The steps in order.

The authors collect 9k records with reference URLs. They download current pages and seek earlier versions from the Internet Archive because a live page can change after someone submits an analogy from it. The archived copy is a way to look for the original wording, though locating the exact version remains a separate problem. The authors screen out recovered pages if they cannot find the submitted concepts and obtain 3.6k positive pages for detection. They describe the reduction from submitted records to usable pages as 60%. Paywalls, unavailable versions, and differences between contributor wording and the page all contribute to the loss.

Checking a pair of names against a webpage gives the authors an initial consistency check. For extraction, they need a dependable match at a smaller scale. They check whether the submitted passage appears in the recovered page after ignoring spaces and special characters. This makes the check less sensitive to formatting differences. For 10% of the analogies, the authors manually make minor changes to bring the submission into line with the page. They discard 5% (200) of the records at this stage because of defects that include irrelevant text or material that does not contain an analogy. The remaining segment dataset has 3410 analogies.

The concept labels go through a further check. Both named concepts have to appear as written inside the analogy passage. The contributor’s label can be a reasonable name for a concept even if the passage expresses it differently. An extractive system, however, is expected to return wording that is actually there. The authors discard an additional 10.5% (360) of the records for the concept task because a submitted concept fails this check. This task ultimately has 6102 concept instances and 4864 unique concepts. The paper reports a mean concept length of 2.53 words.

Metamia asks contributors for source and target information, but the paper says AnaDE1.0 lacks labels that distinguish those roles. In the extractive task, the label is simply `Concept`. This distinction between the task’s motivation and its operational form matters. The authors want to find the ideas being compared, and the benchmark identifies their mentions. Separately judging whether a system recognizes which idea is being explained would require role-specific references.

The authors make AnaDE1.0 and the accompanying code available through a repository named `analogy_classification`. The recovery and matching procedure is part of the contribution because the same original submission may qualify for page detection yet fail the stricter requirements for passage or concept extraction.

#### Finding pages that make useful negative examples

Positive pages alone could show how frequently a system recognizes a known analogy. They would give no way to see how often it assigns an analogy label to pages that discuss similar subjects without making the comparison. The authors consider using random webpages for the negative class. A separation between topics in a random collection and topics represented in Metamia could let a system discriminate between the two collections without attending to analogical language.

The authors instead submit the source and target concepts individually as queries through the Microsoft Bing API. They report retrieving 2-3 pages for each positive analogy and collecting 11.5k negative examples. A query on the name of a concept can retrieve pages about it regardless of the way the page explains it. The result is an intended source of harder negatives because subject matter can be shared across classes. The matching is topical in this sense. The negative pages are retrieved by concept search rather than assembled by hand as verified counterparts to every positive.

The negative label is provisional at the point of collection. Ordinary search can also retrieve pages with analogies, including comparisons unrelated to the Metamia entry that supplied the query. The paper estimates the extent of that problem with a manual sample. This issue is distinct from the negative *chunks* used in passage extraction. A search-derived negative is treated as a page without an analogy. A negative chunk can come from a known positive page and simply fail to contain the annotated span. How the system is trained depends on which of those labels a task uses.

#### Deciding whether a page contains an analogy

The classical methods use [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/) vectors. A vector represents a page through weighted terms, giving more influence to terms that are prominent in that page relative to their occurrence across documents. Naive Bayes, logistic regression, and Random Forest then use that representation to assign a document label. The classical comparisons use scikit-learn’s default classifier settings. Term weighting makes these methods a way to test the usefulness of lexical cues without an explicit representation of the passage’s explanatory structure.

The neural comparisons are based on the [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), an architecture that uses attention to relate parts of an input sequence. In the paper’s setup, self-attention makes processing long inputs expensive for ordinary BERT. Its length budget is stated in tokens, the units supplied to the system after [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). A token limit and a word count therefore refer to different things. Several systems in the comparison are different ways to spend a limited token budget.

Plain BERT receives the first 512 tokens of the page. That is a direct test of whether the opening contains enough evidence to classify the whole document. BERT+Random instead uses randomly selected sentences to make an input of 512 tokens. This allows some input to come from further down the page. BERT+TextRank takes 512 tokens from a TextRank summary. That variant lets a summarization procedure choose the wording sent to the classifier. All of these alternatives depend on the text supplied to [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/).

ToBERT processes blocks of 200 tokens hierarchically. It represents shorter portions and brings information from them together for the document decision. CogLTX learns to select key sentences alongside learning to classify. Its goal is to identify text worth passing to the classifier through training on the task. Longformer takes the first 4096 tokens. This gives it a wider view directly from the start of a page while allowing the rest to fall outside the input when the page is longer. The authors chose these strategies in light of earlier comparisons for long document classification and to study a similar problem on analogy pages. [Longformer](https://md.research.elamur.ai/free/en/papers/beltagy-2020-longformer-long-document-transformer/)

The transformer-based detection systems are trained for 10 epochs, meaning 10 passes through their training data. The reported batch sizes for the BERT variants and Longformer are 8 and 12 respectively. The paper reports effective batch sizes of 4 for ToBERT and 6 for CogLTX. A batch is the set of examples whose contributions are combined for an update. An effective batch size describes how many examples contribute to the update across the training setup.

For BERT, BERT+Random, and ToBERT, the appendix gives a learning rate of 5e-05 at a batch size of 8, with adjustments when the batch size changes. A learning rate governs the size of a training update. The paper describes the adjustment as scaling the learning rate by the same factor as the batch size:

```
η′ = k × η
```

Here η is the learning rate at the reference batch size, η′ is the adjusted learning rate, and k is the factor by which that batch size is scaled. The multiplication sign indicates that the reference learning rate is multiplied by that factor. The procedure follows the batch-size adjustment described in [Accurate, Large Minibatch SGD](https://md.research.elamur.ai/free/en/papers/goyal-2017-accurate-large-minibatch-sgd-training/).

The authors use 3e-05 for BERT+TextRank because its performance dropped quickly at 5e-05. Longformer uses 1e-05. CogLTX uses different learning rates for its sentence-selection and reasoning components, 0.75e-05 and 0.2e-04 respectively. These settings are part of the conditions of the comparison. The detection experiments compare trained systems with different ways of handling input and different training configurations.

#### Selecting a passage from a long page

For AnaSE, the extractive systems turn the task into span selection, a setup also used in [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/). A span is a contiguous stretch of the input. Its endpoints determine which words belong to the returned passage. The authors attach a span classification layer to BERT or Longformer and use the benchmark references for [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). During that training, the location of the annotated text supplies the desired output.

A webpage can run beyond either system’s length limit, so the authors split pages into overlapping chunks. The overlap gives a passage near a division a chance to appear intact in an adjacent chunk. The system makes a span prediction for each chunk. Its document-level output is the span with the highest probability among the chunk predictions. This rule makes the scores from different chunks compete. A strongly scored but unannotated passage can consequently displace a weaker prediction of the recorded passage.

Chunking creates a training problem. In a page with one reference passage, many chunks can lack that passage. A system trained on all chunks sees many opportunities to learn that the answer is absent. This imbalance is a plausible issue for BERT in particular because its smaller input limit can create more chunks per page. The authors compare training on the original collection of chunks with training after undersampling the negative chunks. Undersampling means keeping fewer of the available negative examples. The reference text and its annotation stay the same. What changes is the mix of examples used to teach the system whether and where to return a span.

The GPT3.5 comparison is prompted without training on AnaDE1.0. For segment extraction, the prompt instructs it to return one analogy, copy the original language, and include the sentences that develop the comparison. It also specifies a structured answer and a response to use if the input has no analogy. The paper calls this zero-shot prompting. The prompt contains an illustrative analogy, so the label is best read alongside the actual prompt: it describes the paper’s segment setup without dataset-specific fine-tuning, and the instructions still illustrate the sort of language sought.

The API comparison uses `gpt-3.5-turbo-16k`, for which the authors report a context of 16,384 tokens. For documents requiring chunking, the appendix gives a window of 9216 words and a stride of 3072 words. A stride is how far the start advances for the next window. The authors give the approximate token equivalents as 12,288 and 4,096 respectively. The chunks are submitted to the API, allowing the same general question to be asked over different parts of a long document. The extractive span systems and the API comparison thus deal with the document-length problem through windows, with different input budgets and different ways of producing an answer.

#### Identifying concepts inside the passage

For AnaConE, both extractive systems receive an analogy passage and classify its tokens. The question for a token is whether it belongs to a concept mention. Adjacent words can be part of the same phrase. In a passage comparing a cell to a city, words for places, objects, and actions can all appear in the surrounding explanation. The supervision tells the system which mentions count for the recorded comparison. It does not supply a separate label for each type of correspondence made in the passage.

The prompted concept comparison asks GPT3.5 to produce exact source and target expressions with named fields. The authors call this one-shot prompting and show an example of how an analogy should be turned into a pair of outputs. That requested format is more specific about roles than the extractive `Concept` label. The benchmark scoring, however, compares the words of predicted concepts against the reference concepts. A named field in the prompt does not create a role-specific reference for evaluation.

For the extractive experiments, the authors try learning rates of 2e-5, 3e-5, and 5e-5 and report the best run. BERT uses a batch size of 8, and Longformer uses 6. Segment extraction training lasts 5 epochs, while concept extraction training lasts 3 epochs. The different schedules accompany different prediction problems. In the former, the decision is where a passage starts and ends among chunks of a page. In the latter, the decision concerns which tokens belong to concept mentions inside a known passage.

The paper also reports the scale of the systems. BERT-base has 110 million parameters, Longformer-base has about 149M, and GPT3.5 is reported as having over 175 billion parameters. The comparison brings together systems that differ in size, in their access to benchmark labels, and in whether they select words from the input or produce an answer through generation. Those differences are central to interpreting what their relative scores establish.

### Experiments and results

#### The data and how the scores are read

The authors use 3-fold cross-validation and describe the train/test split as 70/30. Cross-validation repeats the comparison on different partitions so that the reported mean summarizes multiple test runs. The result tables give averages and standard deviations across folds. A standard deviation here describes how the scores varied across those runs. It serves a different purpose from the paired significance test the authors report for a particular segment comparison.

The detection dataset has 15.1k pages: 3.6k positives and 11.5k negatives. The authors report a mean length of 3.6k words per page overall, with 4.5k for positive pages and 3.3k for negative pages. The class counts make accuracy and positive-class retrieval performance worth reading together. A document detector can accrue correct decisions by recognizing pages labeled negative. A search application also needs it to bring back analogy pages reliably.

Accuracy is the share of page labels predicted correctly. Precision asks how often a positive prediction agrees with a positive benchmark label. Recall asks how frequently a page labeled positive is found by the system. F1 combines precision and recall, giving a higher score when both are high. The paper reports detection scores as decimals. The extraction tables report exact match and F1 on their displayed scales. Each score answers a question about the particular output evaluated.

For segment extraction, exact match, abbreviated EM, measures agreement with the reference passage as a whole. F1 gives credit for overlap. A prediction can recover the sentence that makes the comparison and omit a later explanation. It can also capture the explanation along with an extra sentence. In either case, the matching words contribute to overlap, while the difference in extent can prevent an exact match. The average reference passage in the segment dataset has 46 words, so agreement in the central clause and agreement over the full span can diverge considerably.

Concept extraction uses word-level matching with an alignment step. Each example has reference concepts, and a system can predict several phrases. The authors match each predicted phrase to the reference with which it obtains the best word-level exact match or F1, using the respective metric for the alignment. They then average over the predictions aligned to each reference concept. This defines how to score phrases of different lengths and predictions returned in varying order. The procedure measures agreement on the wording of the mentions. It leaves semantic roles and the complete structure of the analogy outside the reported score.

#### Document detection

The chart shows mean detection F1 across the test folds for the classical and neural comparisons. The starred entry is the best setting on that metric. Its advantage over ToBERT is small on the reported mean. Its advantage over the shortest-input approaches is much more apparent.

Document detection systems on AnaDE1.0 by mean test F1 Longformer has the highest mean F1, with ToBERT close behind.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Naive Bayes | 0.5703 |
| Logistic Regression | 0.7163 |
| Random Forest | 0.7721 |
| BERT+Random | 0.7738 |
| CogLTX | 0.7953 |
| BERT | 0.8154 |
| BERT+TextRank | 0.85 |
| ToBERT | 0.9393 |
| Longformer (this paper) | 0.9413 |

Random Forest leads the main classical results on all four reported metrics. Its mean accuracy is 0.9044, with mean precision of 0.8899 and mean recall of 0.682. Logistic regression reports mean accuracy of 0.8866 and mean precision of 0.8821, while its mean recall is 0.6031. The similarity in precision between those settings coexists with a clearer separation in recall. For the search use case the authors have in mind, the ability to recover pages labeled positive matters alongside the reliability of the pages returned.

Plain BERT achieves mean accuracy of 0.9153, mean precision of 0.8547, and mean recall of 0.7802. Relative to Random Forest in the main table, its higher F1 goes with higher recall and lower precision. BERT+TextRank reaches mean accuracy of 0.9239 and mean recall of 0.8438. Its mean precision is 0.8568. Its mean F1 improves on the plain first-window BERT result, while the result for BERT+Random falls below plain BERT. The input-selection strategy therefore changes the result in different directions depending on how the sentences are chosen.

Longformer reaches mean accuracy of 0.9722 and mean precision of 0.9469. ToBERT reaches mean accuracy of 0.9711 and mean precision of 0.9367. Their recall ranking goes the other way. ToBERT reports mean recall of 0.9426 and Longformer 0.9359. The headline lead for Longformer thus refers to overall detection accuracy and F1, and to precision in this pairwise comparison. The choice between their operating points would depend on which errors were more consequential in the intended use.

The variation across folds also differs. Longformer’s detection F1 is 0.9413 ± 0.005, and ToBERT’s is 0.9393 ± 0.009. BERT+Random’s F1 is 0.7738 ± 0.097. The latter result combines a lower mean with considerably more variation across the folds. The table gives an empirical ranking of the tested configurations. The authors’ proposed use of detection in analogy search follows from the high scores of the leading settings on this benchmark.

#### Passage extraction

For passage extraction, the reference is a particular analogy in a page. This makes the comparison stricter than page detection. A system has to select words, and the evaluation can tell when the returned span extends past the recorded boundary or stops before it. The chart compares mean test F1 for each setting using the 3410-reference segment dataset.

Passage extraction settings on AnaDE1.0 by mean test F1 Balanced Longformer leads, and balancing improves both extractive systems.

**The numbers**

| System or setting | F1 |
| --- | --- |
| BERT | 18.19 |
| GPT3.5 | 29.21 |
| BERT balanced | 48.69 |
| Longformer | 59.58 |
| Longformer balanced (this paper) | 63.82 |

Balanced Longformer has mean F1 of 63.82 ± 0.52 and mean EM of 28.59 ± 0.61. With the original training distribution, Longformer reports mean F1 of 59.58 ± 1.30 and mean EM of 26.42 ± 0.73. Both metrics move in the same direction under balancing. The difference between its EM and F1 illustrates how often partial recovery can contribute to the score when the returned passage differs from the annotated one.

Balanced BERT has mean F1 of 48.69 ± 0.49 and mean EM of 21.17 ± 0.33. With the original distribution, its mean F1 is 18.19 ± 3.37 and its mean EM is 8.77 ± 1.55. The paper reports a +30.5% absolute improvement for BERT from balancing, referring to the F1 result. The improvement takes the same underlying extractive system from the weakest mean F1 in the table to a result above the prompted comparison, while both Longformer settings remain ahead.

GPT3.5 obtains mean F1 of 29.21 ± 0.43 and mean EM of 6.92 ± 0.63. Its position relative to unbalanced BERT depends on the metric. It recovers more of the reference wording by mean F1, while BERT reproduces the whole reference more frequently by mean EM. Balanced BERT and both Longformer settings finish ahead of GPT3.5 on both metrics. The comparison supports the value of supervised training in the stronger settings tested, with the amount and balance of useful training evidence playing a visible role.

The gap between detection and passage extraction is also a difference in what constitutes success. Detection can be right when it recognizes evidence anywhere in a positive page. Extraction needs to choose the annotated comparison from whatever else the page contains. If a page has more than one analogy, correctly recognizing the presence of analogical writing can still lead to a low extraction score when the system returns the unrecorded one.

#### Concept extraction

The concept task uses 6102 annotated concept instances. It starts from an analogy segment and asks for the compared expressions, so search over the full page is already out of the way. These scores describe concept identification under that input condition. They do not include errors that a detector or a passage selector would introduce upstream.

Concept extraction systems on AnaDE1.0 by mean test F1 Longformer leads, and both trained extractors score above prompted GPT3.5.

**The numbers**

| System or setting | F1 |
| --- | --- |
| GPT3.5 | 79.81 |
| BERT | 86.43 |
| Longformer (this paper) | 89.08 |

Longformer reaches mean F1 of 89.08 ± 0.16 and mean EM of 79.19 ± 0.30. BERT reaches mean F1 of 86.43 ± 0.43 and mean EM of 76.11 ± 0.83. GPT3.5 records mean F1 of 79.81 ± 0.90 and mean EM of 67.10 ± 1.06. The systems have the same rank under both measures. The span and concept experiments also show different magnitudes of separation between BERT and Longformer. The authors connect the smaller concept gap to the shorter input: the passage is supplied, reducing the importance of processing a long context.

A high score here indicates that the system frequently recovers all or much of the text of the recorded concepts. It is compatible with difficulty on passages that make several comparisons. The alignment is based on the words in the mentions, so a strong score also leaves open whether a system can state the relation or assign an explanatory direction. These distinctions matter if the eventual goal is an index that lets readers search specifically for analogies explaining a target concept.

### What the ablations show

#### What changes when the input changes

Several comparisons change how much of a document a detector sees or how the available words are selected. Plain BERT restricts the input to the opening. BERT+Random samples sentences, and BERT+TextRank chooses text using a summary, each with the same 512-token budget as plain BERT. The summary-based variant improves on plain BERT’s mean F1, while the random variant falls behind it. Giving a classifier access to words from further into a page can help when the selection retains the right evidence. A sentence’s general importance to the topic and its importance to the analogy decision can still differ.

The authors also compare classical classifiers with truncated document inputs. The appendix gives separate result rows for different input lengths. In the two truncated settings, Naive Bayes has mean F1 of 0.5526 and 0.6015, and Random Forest has 0.7782 and 0.7826. The corresponding main-table means are 0.5703 and 0.7721. The authors describe overall performance as generally improving as more tokens are available and emphasize Random Forest’s relative robustness. The individual entries show that the behavior depends on the classifier and metric. The trend is a description of the comparisons as a group.

Longformer and ToBERT both give a detector ways to use more of a long document than plain BERT. Their high F1 is consistent with the value of seeing more context. That comparison changes the architecture and the method of assembling evidence at the same time. It therefore gives a reason to investigate context length without isolating a length effect. CogLTX also tries to use information beyond a simple opening window through sentence selection, yet its reported result is much lower than those of the leading systems. The authors point out that further tuning could be explored and that its training was particularly time-intensive.

The positional analysis helps explain why input coverage matters. Roughly half of the annotated analogies begin within the first 2500 characters, which the authors describe as about 500 tokens. The location distribution also has examples much further into a page. In an opening-window detector, a correct classification can therefore occur when the recorded analogy begins beyond the input. The authors suggest that additional analogies or characteristics of analogy-bearing pages could account for some of those successes. The analysis identifies plausible evidence sources without establishing which one a given classifier used in any specific prediction.

#### Balancing the chunks

The closest comparison to an ablation is the change in the segment training distribution. For a given extractive system, the authors compare the original set of chunks with a set that retains fewer chunks lacking the annotated analogy. The task and the reference passages stay fixed, so the comparison directly tests the training choice on this benchmark. Both BERT and Longformer improve under balancing. BERT’s gain is especially pronounced, supporting the authors’ concern that its shorter limit leaves it with more chunks without the positive span.

Even in the balanced comparison, Longformer leads BERT on both extraction metrics. The authors report a paired t-test comparing the balanced settings and find a result of p\<.0001. Pairing compares the systems on corresponding observations, so case difficulty can be shared between them when assessing a difference. The reported result supports a performance distinction between those trained settings under the evaluation used. It does not estimate how many reference passages are incomplete or resolve disagreements about the proper boundary of an analogy.

These results also clarify what is meant by a helpful negative example. Search-derived negative pages matter in detection because a system must learn to distinguish related subject matter from actual analogy use. In passage extraction, an abundance of reference-free chunks can dominate training even though the page is already known to contain an analogy. The value of a negative example depends on the decision the system is being taught to make and on the other examples accompanying it.

#### What the labels and the errors reveal

The authors inspect analogy lengths, comparative cues, positions, and concept topics to characterize what enters the benchmark. They report that about half of the passages have at least 40 words, or run longer than 2 sentences. The passages have an average of 10 nouns and 5 verbs. Those counts are descriptive. The cell-and-city example provides a concrete illustration of why an analogy can be long: the writer makes several individual comparisons, with a different part of the description explaining each correspondence.

The familiar expression “is like” occurs throughout much of the dataset. The authors also identify 177/3410 passages without any of the comparison cues examined in their analysis. These can compare concepts through ordinary forms of “be.” A cue identifies where to look, but absence of the cue makes the same rhetorical relation harder to spot. Detection errors shared across the tested systems include an example that uses the word “analogy” while omitting the more frequent comparative construction. The authors also describe a failure near a Hebrew proverb and suggest that the unusual surrounding text contributed.

For topic analysis, the authors use k-means to group vector representations of the concepts into 50 clusters, then name those groups manually. The vectors come from [Sentence-BERT](https://md.research.elamur.ai/free/en/papers/reimers-2019-sentence-bert-sentence-embeddings-siamese/). K-means places representations together according to their distance from cluster centers. The paper’s groupings include human organs, grammar, common objects, and government or ideology. This suggests breadth in the subjects represented. Since the benchmark does not assign source and target roles, the clusters describe the concepts pooled together. They give neither role-specific counts nor evidence that a detector works equally well on all topics.

For segment extraction, the authors manually study 100 analogies where both balanced extractors did poorly, using F1\<10 to identify cases. In 43% of these cases, the page contained multiple analogies, so the prediction could be a valid analogy that the reference omitted. Boundary issues appear in 22% of the sample. The reference sometimes stopped short of the full explanation and sometimes included extra material. In 5% of the cases the recorded text was neither an analogy nor part of one. Missing common analogy indicators appear in 34% of the sample. These percentages describe a deliberately difficult subset, and the categories capture different properties that can occur together.

The concept error analysis finds parallel problems on a smaller scale. A passage can contain further sub-analogies, allowing additional concept pairs to be reasonable outputs even when the reference records the main pair. Alternatively, a system can identify phrases that genuinely occur in the passage and pair concepts that the author never compared. This second pattern points to a limitation of treating concept extraction as a decision about tokens alone. The relation among those tokens matters to the intended analysis. The manual reviews expose these distinctions by asking whether the predicted wording is misplaced, incomplete, or attached to the wrong comparison.

### Limitations

#### Limits the authors identify

The authors describe AnaDE1.0 as substantial for long-form analogies and smaller than datasets used for some other extraction tasks. It covers English. Its positive examples depend on what people contributed to Metamia and on whether those contributions could be linked to recoverable pages. Even after checking the wording, the authors acknowledge that crowdsourced descriptions can be inaccurate and that readers can reasonably disagree about what the analogy includes. A text match secures a location in the page. Judging which sentences belong to the explanation remains a matter of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The authors manually validate 50 positive and 50 negative detection examples. All checked positives contain an analogy, reported as 100% accurate in that sample. In the negative sample, 10% contain an analogy, corresponding to 90% accuracy for the checked negative labels. The authors keep the larger search-derived negative set because they lack the resources to inspect all 11.5k pages. They argue that the noise is unlikely to favor one method and that the data can still support comparisons. The manual check establishes the presence of noise. The idea that it affects the compared methods similarly is an assumption about those errors.

For passage extraction, the authors emphasize that their targeted review can overstate the prevalence of defects across the full collection. Its examples were selected because both balanced extractors scored poorly. An unrecorded analogy in such a page explains why a plausible prediction might receive a low score, but the review does not tell readers how common that situation is in an arbitrary page. A random audit would answer a different question from examining common failures. The authors suggest using extraction predictions to nominate pages for manual inspection, for example when different parts of the same page appear to contain separate analogies.

The paper also raises questions about the suitability of the collected material. Public web submissions can contain offensive or copyrighted content. To screen the analogy passages, the authors combine a word search with RoBERTa-based offensive-language and hate-speech classifiers. Their word list includes identity-related terms from the Jigsaw data and synonyms from WordNet. The identity vocabulary draws on work represented by [Nuanced Metrics for Measuring Unintended Bias with Real Data for Text Classification](https://md.research.elamur.ai/free/en/papers/borkan-2019-nuanced-metrics-measuring-unintended-bias/).

A flag from any of the screening methods puts an analogy into the review pool. This flags 466 out of 3410 analogies. The authors manually sample 100 of the flagged cases and judge 10 of those to be offensive. The screening counts measure different things: the larger count comes from an automatic selection rule, and the manual result comes from a sample within that selection. The authors remove the offensive examples they identify from the release and document the possibility that others remain. They also recognize financial and environmental costs associated with the generative comparison and argue for validation if analogy systems are used in education, where misleading or biased comparisons can matter to a reader.

#### Limits that follow from the setup

The exact-match filters make it possible to score extractive answers with clear textual references. They also select for analogies that contributors indexed using language found verbatim on recoverable pages. A contributor could accurately describe a comparison that the original page expresses indirectly. Such a submission is less likely to survive as an extraction example. The resulting scores therefore concern explicit, alignable mentions and passages. Recovering concepts expressed through paraphrase or implication would call for references that allow those forms of expression.

The page collections also come from different procedures. Positives are recovered through contributor links, and negatives through searches on associated concepts. The authors intend the latter to reduce topical shortcuts. Other cues could still correlate with the assigned labels, such as a page’s genre, length, or style. The reported average lengths already differ between the two classes. A high score on the reported splits leaves open how well a detector would transfer to pages obtained through a different sampling process. It also leaves open whether it would keep its performance on a collection deliberately matched for page characteristics.

The authors note that short-input detectors sometimes succeed even when the recorded analogy is likely to be outside their window. That could be an advantage in a search system if indirect cues generalize, and it creates ambiguity when interpreting what the score says about recognizing analogies. A document label indicates where a system expects a comparison. It cannot reveal from the metric alone whether the system located one, inferred something from the kind of page it was reading, or relied on another analogy elsewhere in the opening. The benchmark establishes an ability to predict its page labels under the tested conditions.

The architecture comparison has a related limit. Longformer receives more input than plain BERT, and it differs from BERT in architecture and training configuration. ToBERT is close on detection F1 through a different way of representing a document. The ranking supports the choice of the best-tested configurations for this dataset. The evidence attributed specifically to context length is indirect, drawn from the pattern across systems and from the smaller difference on the shorter-input concept task.

The prompted comparison changes several factors together. GPT3.5 works from instructions and examples in the prompt, while the extractive systems receive supervised training on the task. The systems also differ in their output mechanism. A span classification layer restricts an answer to words from the input, while the prompt asks the generator to honor that constraint. The reported ordering measures the configurations the authors ran. It cannot determine how much of the difference is due to supervision, prompt formulation, or the architectural restriction to extraction.

The reference passage represents one decision about how much explanation to include. Exact match responds strongly to that decision. A search engine could provide a useful quotation that differs from the reference by a sentence, or it could return a perfect text match to an unusually short annotation. Word overlap supplies a second view of the extraction, and it still treats the recorded span as the standard. Neither metric validates whether the analogy is a sound explanation of the subject or whether the passage gives a reader enough context.

Finally, concept extraction is measured after a passage has been supplied. Page detection can miss a document, and passage extraction can send an incomplete analogy downstream. The study does not report a joint score for the entire sequence of decisions. It also does not evaluate labeling the explanatory direction or recovering all comparisons in passages with multiple pairs. Those distinctions set the scope of the results: AnaDE1.0 measures recovery of pages, reference passages, and compared expressions in separate experiments. Analogy search remains an application the authors motivate with those results.

### What came after

There is no documented follow-on study to report for AnaDE1.0. The directions described at the end of the paper are proposals from its authors. One starts from the observation that an extended passage may begin with a short comparison. A simile detector could locate that core statement, after which a span system could look around it for the sentences that explain the parallel. This would give the initial comparison and its explanation distinct roles in extraction.

The authors also propose trying sentence-level segment extraction. If references and predictions are expressed as sentences, readers and annotators may have fewer small boundary decisions to make. The procedure would still have to decide which sentences explain the analogy and which merely provide neighboring context. The authors suggest that the existing references could support that formulation after the pages and passages are divided into sentences.

A further direction is to use extraction systems to help with annotation. Pages with plausible analogy spans in multiple chunks could be flagged for review. Human judgments could then add missing passages or correct the existing reference boundaries. This follows directly from the multiple-analogy errors in the benchmark. The proposed review would make it possible to test whether a system returns a useful analogy when several are present and to distinguish that question from whether it recovers one particular annotated passage.

## Cite

Cite as Bhavya Bhavya, Shradha Sehgal, Jinjun Xiong and ChengXiang Zhai. 2024. AnaDE1.0: A Novel Data Set for Benchmarking Analogy Detection and Extraction. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers).

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

```bibtex
@inproceedings{bhavya2024anade1,
  title = {{AnaDE1.0: A Novel Data Set for Benchmarking Analogy Detection and Extraction}},
  author = {Bhavya Bhavya, Shradha Sehgal, Jinjun Xiong and ChengXiang Zhai},
  booktitle = {Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.eacl-long.103},
  url = {https://doi.org/10.18653/v1/2024.eacl-long.103}
}
```

> 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)
