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:
- The ANALOGICAL Taxonomy: They defined six levels of increasing complexity for analogies (see Figure 2):
- Level 1: Words (Standard word pairs).
- Level 2: Words vs. Sentences (Mapping a word to its definition or a crossword clue).
- Level 3: Syntactic (Sentences compared to versions of themselves with words deleted, masked, or reordered).
- Level 4: Negation (Testing if a model can distinguish a sentence from its direct opposite).
- Level 5: Entailment (Sentences that logically follow from one another).
- Level 6: Metaphor (Mapping proverbs to their narrative explanations).
- 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. - 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.
- 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.
- 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