AutoMathKG: The Automated Mathematical Knowledge Graph Based on LLM and Vector Database
Authors:
- 2 July 2025
- journal article
- Published by Wiley in Computational Intelligence
- Vol. 41 (4)
Abstract
A mathematical knowledge graph (KG) presents knowledge within mathematics in a structured manner. Constructing a math KG using natural language is an essential but challenging task. Existing methods have two major limitations: Incomplete knowledge due to limited corpora and a lack of fully automated integration of diverse sources. This paper proposes AutoMathKG, a high‐quality, wide‐coverage, and multi‐dimensional math KG capable of automatic updates. AutoMathKG regards mathematics as a vast directed graph composed of Definition, Theorem, and Problem entities, with their reference relationships as edges. It integrates knowledge from ProofWiki, textbooks, arXiv papers, and TheoremQA, enhanced through large language models (LLMs) for data augmentation. To search for similar entities, MathVD, a vector database, is built through two designed embedding strategies. To automatically update, two mechanisms are proposed. For knowledge completion, Math LLM is developed to interact with AutoMathKG, providing missing proofs or solutions. For knowledge fusion, MathVD is used to retrieve similar entities, and LLM is used to determine whether to merge with a candidate or add a new entity. Extensive experiments demonstrate the advanced performance of the AutoMathKG system, including superior reachability query results in MathVD compared to five baselines and robust mathematical reasoning capability in Math LLM.Keywords
All Related Versions
Funding Information
- National Key Research and Development Program of China (2021ZD0111204)
This publication has 23 references indexed in Scilit:
- The Lean 4 Theorem Prover and Programming Language2021
- A Survey on Knowledge Graphs: Representation, Acquisition, and ApplicationsIEEE Transactions on Neural Networks and Learning Systems, 2021
- A Survey on Application of Knowledge GraphJournal of Physics: Conference Series, 2020
- Knowledge Graphs2020
- MathGraph: A Knowledge Graph for Automatically Solving Mathematical Exercises2019
- Modeling Relational Data with Graph Convolutional Networks2018
- YAGO2: A spatially and temporally enhanced knowledge base from WikipediaArtificial Intelligence, 2013
- Yago2007
- DBpedia: A Nucleus for a Web of Open Data2007
- Structuring mathematical knowledge and skills by means of knowledge graphsInternational Journal of Mathematical Education in Science and Technology, 2000