AutoMathKG: The automated mathematical knowledge graph based on LLM and vector database
arXiv:2505.13406 · doi:10.1111/coin.70096
Abstract
A mathematical knowledge graph (KG) presents knowledge within the field of mathematics in a structured manner. Constructing a math KG using natural language is an essential but challenging task. There are two major limitations of existing works: first, they are constrained by corpus completeness, often discarding or manually supplementing incomplete knowledge; second, they typically fail to fully automate the integration of diverse knowledge 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, enhancing entities and relationships with large language models (LLMs) via in-context learning for data augmentation. To search for similar entities, MathVD, a vector database, is built through two designed embedding strategies using SBERT. To automatically update, two mechanisms are proposed. For knowledge completion mechanism, Math LLM is developed to interact with AutoMathKG, providing missing proofs or solutions. For knowledge fusion mechanism, MathVD is used to retrieve similar entities, and LLM is used to determine whether to merge with a candidate or add as a new entity. A wide range of experiments demonstrate the advanced performance and broad applicability of the AutoMathKG system, including superior reachability query results in MathVD compared to five baselines and robust mathematical reasoning capability in Math LLM.
References in corpus (13)
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- LoRA: Low-Rank Adaptation of Large Language Models
- Galactica: A Large Language Model for Science
- Gemma: Open Models Based on Gemini Research and Technology
- In-context Learning and Induction Heads
- MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuning
- ProofNet: Autoformalizing and Formally Proving Undergraduate-Level Mathematics
- Scaling Relationship on Learning Mathematical Reasoning with Large Language Models
- Math-KG: Construction and Applications of Mathematical Knowledge Graph
- Orca-Math: Unlocking the potential of SLMs in Grade School Math
- OpenWebMath: An Open Dataset of High-Quality Mathematical Web Text
- AI for Mathematics: A Cognitive Science Perspective
- MathGloss: Building mathematical glossaries from text