[Paper Review] SKILL: Structured Knowledge Infusion for Large Language Models
This paper proposes SKILL, a method to directly pre-train T5 language models on factual triples from knowledge graphs (KGs) without requiring text alignment or sentence generation. The approach achieves state-of-the-art performance on closed-book QA tasks, including a 3× improvement in exact match score on MetaQA using WikiMovies and strong results on FreebaseQA, WikiHop, and TriviaQA, demonstrating that LLMs can effectively learn from structured knowledge without natural language supervision.
Large language models (LLMs) have demonstrated human-level performance on a vast spectrum of natural language tasks. However, it is largely unexplored whether they can better internalize knowledge from a structured data, such as a knowledge graph, or from text. In this work, we propose a method to infuse structured knowledge into LLMs, by directly training T5 models on factual triples of knowledge graphs (KGs). We show that models pre-trained on Wikidata KG with our method outperform the T5 baselines on FreebaseQA and WikiHop, as well as the Wikidata-answerable subset of TriviaQA and NaturalQuestions. The models pre-trained on factual triples compare competitively with the ones on natural language sentences that contain the same knowledge. Trained on a smaller size KG, WikiMovies, we saw 3x improvement of exact match score on MetaQA task compared to T5 baseline. The proposed method has an advantage that no alignment between the knowledge graph and text corpus is required in curating training data. This makes our method particularly useful when working with industry-scale knowledge graphs.
Motivation & Objective
- To investigate whether large language models can effectively learn and internalize factual knowledge directly from structured knowledge graph triples.
- To develop a scalable method for knowledge infusion into LLMs that avoids the need for aligning KG triples with natural language text.
- To evaluate whether direct training on triples outperforms or matches training on natural language sentences containing the same knowledge.
- To assess the impact of model size and KG scale on knowledge memorization and reasoning performance.
- To enable efficient integration of industry-scale knowledge graphs into LLM pre-training without costly data curation pipelines.
Proposed method
- The method pre-trains T5 models directly on factual triples (subject-relation-object) from knowledge graphs using standard masked language modeling (MLM) objectives.
- Training data consists of raw KG triples formatted as text strings like 'Barack Obama - was born in - Kenya', without requiring entity linking or sentence generation.
- The approach eliminates the need for aligning triples with external text corpora or generating natural language descriptions, reducing data curation complexity.
- Models are fine-tuned on downstream QA tasks without retrieval-augmentation, relying solely on knowledge embedded during pre-training.
- The method supports easy scaling to large KGs such as Wikidata and WikiMovies by directly using their triple format.
- Hyperparameters are kept consistent across experiments, including training for 100K steps on WikiMovies and 200K steps on Wikidata.
Experimental results
Research questions
- RQ1Can large language models like T5 learn factual knowledge directly from structured knowledge graph triples without requiring natural language supervision?
- RQ2How does performance on closed-book question-answering tasks compare between models pre-trained on KG triples versus those pre-trained on natural language sentences containing the same knowledge?
- RQ3Does the performance gain from SKILL pre-training scale with model size and KG size?
- RQ4To what extent can models memorize and reason over knowledge graphs when trained only on raw triples?
- RQ5Can SKILL be effectively applied to industry-scale knowledge graphs without requiring schema alignment or text generation?
Key findings
- On the MetaQA benchmark using the WikiMovies KG, the SKILL-pretrained T5.1.1-large model achieved a 3× improvement in exact match score (71.52 on test set) compared to the baseline.
- The SKILL model pre-trained on Wikidata triples outperformed the T5 baseline on FreebaseQA, WikiHop, and the Wikidata-answerable subset of TriviaQA.
- The model pre-trained on triples performed competitively with models trained on aligned natural language sentences containing the same knowledge, indicating that direct triple training is effective.
- Performance improvements were more pronounced on larger models, with gains increasing as model size grew, suggesting scalability of the method.
- On 1-hop QA tasks, where single triples suffice, the improvement was substantial; on 2/3-hop tasks requiring reasoning, gains were smaller, indicating limitations in capturing graph structure.
- Additional pre-training on C4 improved performance for T5.1.1-base and -large, but caused regression for the XXL version, consistent with prior findings on over-training.
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.