Analogy2kg: An automatic pipeline for deriving knowledge graphs from long-text analogies
Year: 2026
Type: article
Abstract: Analogical reasoning is an increasingly popular, lightweight solution to enable large language model (LLM)-level reasoning without computational complexity. Still, it has yet to be adopted due to its reliance on strictly hand-formatted data. Therefore, we propose Analogy2KG (“Analogy to Knowledge Graph’’), as an automatic pipeline that transforms text into a KG format via a fine-tuned version of information extraction (IE) algorithms for long-text analogies. The need to verify that the complex underlying analogical structure of the data is maintained was done via paired samples tests in the creation and validation of this pipeline. Graph density was used to evaluate the structural quality of the resulting KGs. Lastly, causal relationships were optionally detected using a novel, question-and-answer-based method. Analogy2KG was validated on the Rattermann and Wharton long-text datasets, which suggested that the proposed methodology maintains analogical structure when transforming from text to KGs. The resulting RattermannKG and WhartonKG datasets were introduced to the literature, which is the first instance of a the conversion of long-text analogy dataset into a KG format in the literature. Finally, Analogy2KG had superior performance among three LLM-enabled information extraction algorithms: ChatIE, Code4UIE, and InstructUIE for maintaining analogical structure, despite operating without the need for an LLM backend and a pre-defined relation extractor list; thus, making it an ideal lightweight solution.
Source: Knowledge-Based Systems
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: hybrid
Estimated APC paid: $3,430
Funder: Sensors Directorate
OpenAlex ID: W7136041672
