[Paper Review] ANALOGYKB: Unlocking Analogical Reasoning of Language Models with A Million-scale Knowledge Base
This paper introduces AnalogyKB, a million-scale knowledge base of analogical reasoning patterns derived from Wikidata and ConceptNet, using large language models (InstructGPT) to identify both same-relation and analogous-relation analogies with minimal human annotation. Training language models on AnalogyKB significantly improves performance on analogy recognition and generation tasks, achieving state-of-the-art results, especially on complex analogies involving abstract or scientific domains.
Analogical reasoning is a fundamental cognitive ability of humans. However, current language models (LMs) still struggle to achieve human-like performance in analogical reasoning tasks due to a lack of resources for model training. In this work, we address this gap by proposing ANALOGYKB, a million-scale analogy knowledge base (KB) derived from existing knowledge graphs (KGs). ANALOGYKB identifies two types of analogies from the KGs: 1) analogies of the same relations, which can be directly extracted from the KGs, and 2) analogies of analogous relations, which are identified with a selection and filtering pipeline enabled by large language models (LLMs), followed by minor human efforts for data quality control. Evaluations on a series of datasets of two analogical reasoning tasks (analogy recognition and generation) demonstrate that ANALOGYKB successfully enables both smaller LMs and LLMs to gain better analogical reasoning capabilities.
Motivation & Objective
- To address the lack of large-scale, high-quality analogical reasoning resources for training language models.
- To improve language models' performance on analogical reasoning tasks, especially in complex or abstract domains.
- To develop a scalable, cost-effective method for mining analogies from existing knowledge graphs using LLMs and minimal human oversight.
- To create a publicly available, high-coverage knowledge base that supports both analogy recognition and generation.
Proposed method
- Extracting analogies of the same relations directly from existing knowledge graphs (Wikidata and ConceptNet) using relational structure patterns.
- Identifying analogies of analogous relations through a two-stage pipeline: (1) LLM-based relation pair selection using InstructGPT, and (2) filtering and validation via human annotation with a double-check strategy.
- Designing a data curation pipeline that ensures quality by combining LLM predictions with targeted human validation, minimizing annotation cost.
- Storing analogies as structured tuples (A:B::C:D) to enable downstream fine-tuning of language models.
- Fine-tuning various language models (e.g., GPT-2, BERT, InstructGPT, AnalogyT5) on AnalogyKB to evaluate its impact on analogical reasoning.
- Evaluating model performance on benchmark datasets for analogy recognition and generation, including SCAN for complex analogies.
Experimental results
Research questions
- RQ1Can a large-scale, knowledge-base-driven approach significantly improve language models' analogical reasoning capabilities compared to existing small-scale datasets?
- RQ2How effective is using large language models like InstructGPT to identify implicit analogies beyond identical relations in knowledge graphs?
- RQ3Does fine-tuning on AnalogyKB generalize to challenging analogies involving metaphorical or scientific concepts?
- RQ4To what extent does AnalogyKB improve performance on analogy generation and recognition tasks, especially in comparison to prior state-of-the-art methods?
Key findings
- Training language models on AnalogyKB leads to a 2.5x improvement in analogy generation accuracy on the SCAN benchmark compared to training on BATS, with a 20.47% Rec@10 score.
- The InstructGPT-based pipeline successfully identifies 1 million analogies, including 350k of the more complex 'analogous relations' type, with high quality after minimal human validation.
- Fine-tuning BERT with AnalogyKB achieves 14.07% Rec@5 and 18.24% Rec@10 on analogy generation, outperforming both baseline models and those fine-tuned on BATS.
- AnalogyT5 fine-tuned on AnalogyKB achieves 23.72% Rec@10 on SCAN, demonstrating strong generalization to complex, abstract analogies.
- The ablation study shows that analogies of the same relations alone (AnalogyKB same) still yield significant gains, but the full AnalogyKB with analogous relations provides the best performance.
- LLMs like InstructGPT show limited performance on SCAN without fine-tuning, but fine-tuning on AnalogyKB dramatically improves their ability to handle abstract and scientific analogies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.