ANALOGICAL - A New Benchmark for Analogy of Long Text for Large Language Models

Thilini Wijesiriwardene, Ruwan Wickramarachchi, Bimal G. Gajera, Shreeyash Mukul Gowaikar, Chandan Gupta, Aman Chadha, Aishwarya Naresh Reganti, Amit P. Sheth, Amitava Das

Analogy-making is a cornerstone of human intelligence, allowing us to map familiar concepts onto new situations. While the NLP community once relied heavily on word-level analogies (like "king is to queen as man is to woman") to evaluate early embedding models like word2vec, modern Large Language Models (LLMs) are typically judged on downstream tasks like sentiment analysis or question answering. But can these massive models actually "understand" analogies in longer, more complex texts?

A new paper, "ANALOGICAL - A Novel Benchmark for Long Text Analogy Evaluation in Large Language Models," introduces a comprehensive framework to answer this question, revealing that as analogies get more complex, even our best models start to falter.

TL;DR

The authors introduce ANALOGICAL, a new benchmark that evaluates LLMs on a six-level taxonomy of analogies, ranging from simple word pairs to complex metaphors. Their findings show that while LLMs handle basic word analogies well, their performance drops significantly as they encounter negation, entailment, and metaphorical reasoning in longer texts.

What Problem Does This Paper Address?

Historically, analogies served as an intrinsic measure of embedding quality. If a model's vector space correctly captured the relationship between "Paris" and "France," it was seen as a sign of semantic health. However, modern LLM evaluation has shifted toward extrinsic benchmarks like GLUE or SuperGLUE, which measure performance on specific applications rather than the underlying semantic structure of the model's internal representations.

Furthermore, most existing analogy tests are limited to single words. Humans make analogies between sentences, paragraphs, and abstract concepts. There is a significant gap in understanding how—or if—LLMs organize their semantic vector spaces to capture these higher-level relationships.

Methods

The researchers proposed a systematic way to test these capabilities:

  1. The ANALOGICAL Taxonomy: They defined six levels of increasing complexity for analogies (see Figure 2):
  2. Level 1: Words (Standard word pairs).
  3. Level 2: Words vs. Sentences (Mapping a word to its definition or a crossword clue).
  4. Level 3: Syntactic (Sentences compared to versions of themselves with words deleted, masked, or reordered).
  5. Level 4: Negation (Testing if a model can distinguish a sentence from its direct opposite).
  6. Level 5: Entailment (Sentences that logically follow from one another).
  7. Level 6: Metaphor (Mapping proverbs to their narrative explanations).
Figure 2: Analogy taxonomy with six levels. The definitions of the analogies at each level and examples for each analogy type from the datasets are indicated.
  1. Zero-Shot Embedding Evaluation: They tested eight popular LLMs (including BERT, RoBERTa, T5, and SpanBERT) in a zero-shot setting. They extracted the [CLS] token representation for each text item and measured how "close" analogical pairs were in the model's vector space.
  2. Distance Measures: They compared three ways to measure "closeness": Cosine Distance (CD), Euclidean Distance (ED), and Mahalanobis Distance (MD).

Datasets

The benchmark utilizes 13 different datasets mapped across the taxonomy:

  • Level 1: MSR, BATS, Google, and SAT datasets.
  • Level 2: Crossword and WordNet datasets.
  • Level 3: Three newly derived datasets based on SNLI (Random Deletion, Masking, and Reordering).
  • Level 4: A Negation dataset derived from the Stanford Contradiction Corpora.
  • Level 5: An Entailment dataset derived from SNLI.
  • Level 6: The ePiC proverb dataset and a Quotes dataset.

Key Insights and Ideas

  • The Superiority of Mahalanobis Distance: The authors argue that standard measures like Cosine Distance are flawed because they assume all dimensions in an LLM's vector space are independent. By calculating Pearson correlations (Figure 3), they proved that these dimensions are actually highly correlated. Mahalanobis Distance accounts for these correlations, providing a much more accurate measure of semantic similarity.
Figure 3: Pearson correlation between 10 word-vector dimensions. VERB.CONSUMPTION is highly corre- lated with the dimension NOUN.QUANTITY and dimension of VERB.WEATHER is highly correlated with VERB.EMOTION.
  • The "Abstraction Gap": LLMs struggle significantly at Level 2 (Words vs. Sentences). This suggests that models find it difficult to map a concrete word to an abstract definition, a core component of human reasoning.
  • Negation is a Blind Spot: Many models placed a sentence and its negation very close together in vector space. This confirms previous research suggesting that LLMs often act as "bag-of-words" models, failing to grasp the transformative power of a simple "not."
  • Compositionality and Metaphor: At the highest levels (Entailment and Metaphor), performance plummeted. The authors attribute this to a failure in compositionality—the ability to understand how the meaning of a complex expression is built from its smaller parts.

Key Results

The evaluation showed a clear trend: as you move up the taxonomy, the "distance" between analogical pairs in the models' vector spaces increases, meaning the models are less able to recognize them as related.

Figure 5: Best performing models across the taxonomy. Note the general upward trend in distance (lower performance) as complexity increases.
  • Word Level: Most models performed well on simple word analogies (BATS, MSR).
  • SpanBERT emerged as a relatively strong performer across several categories, while RoBERTa showed surprisingly good results when measured by Cosine Distance, though this advantage disappeared when using the more robust Mahalanobis Distance.
  • Metaphor Level: Six out of the eight models struggled significantly with metaphors and proverbs, showing mean distances close to 1.0 (the worst possible score).

Limitations and Future Work

The authors acknowledge that their Level 3 (Syntactic) datasets are currently somewhat "crude," relying on simple word deletions or reordering rather than sophisticated paraphrasing. Future iterations of ANALOGICAL will include more challenging syntactic variations.

Additionally, this study is primarily empirical; the next step is to investigate why certain architectures (like SpanBERT) handle specific levels of the taxonomy better than others. The ultimate goal is to use these insights to build LLMs that can truly reason through complex, long-form analogies as humans do.

Summary updated

Abstract

Over the past decade, analogies, in the form of word-level analogies, have played a significant role as an intrinsic measure of evaluating the quality of word embedding methods such as word2vec. Modern large language models (LLMs), however, are primarily evaluated on extrinsic measures based on benchmarks such as GLUE and SuperGLUE, and there are only a few investigations on whether LLMs can draw analogies between long texts. In this paper, we present ANALOGICAL, a new benchmark to intrinsically evaluate LLMs across a taxonomy of analogies of long text with six levels of complexity -- (i) word, (ii) word vs. sentence, (iii) syntactic, (iv) negation, (v) entailment, and (vi) metaphor. Using thirteen datasets and three different distance measures, we evaluate the abilities of eight LLMs in identifying analogical pairs in the semantic vector space. Our evaluation finds that it is increasingly challenging for LLMs to identify analogies when going up the analogy taxonomy.
BibTeX
@inproceedings{wijesiriwardene2023analogical,
  author = {Thilini Wijesiriwardene and Ruwan Wickramarachchi and Bimal G. Gajera and Shreeyash Mukul Gowaikar and Chandan Gupta and Aman Chadha and Aishwarya Naresh Reganti and Amit P. Sheth and Amitava Das},
  title = {{ANALOGICAL - A New Benchmark for Analogy of Long Text for Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.218},
}
Figure