Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language understanding and generation. However, their internal "world knowledge" is typically acquired through exposure to vast amounts of unstructured text, which can lead to factual inaccuracies and hallucinations. The SKILL (Structured Knowledge Infusion for Large Language Models) framework proposes a more direct approach: training LLMs on raw factual triples from knowledge graphs (KGs) to internalize structured data without the need for complex verbalization.
The Challenge of Knowledge Infusion
Traditional methods for infusing structured knowledge into LLMs often rely on "verbalization"—the process of converting knowledge graph triples (e.g., (Eiffel Tower, located in, Paris)) into natural language sentences. This approach presents several hurdles:
- Complexity and Cost: Generating high-quality synthetic sentences from KGs is computationally expensive and requires sophisticated alignment.
- Information Loss: The conversion process can be "lossy," potentially distorting the precise relationships defined in the structured data.
- Scalability: Many industry-scale KGs lack corresponding natural language text, making alignment-based methods impractical.
SKILL addresses these issues by asking whether an LLM can learn facts by looking at raw data triples without losing its ability to understand natural language.
The SKILL Methodology
The SKILL approach simplifies the infusion process by treating factual triples as a primary training signal. The researchers developed a pre-training recipe consisting of three core components:
- Direct Triple Training: Instead of translating data into sentences, the model is fed raw triples directly. This bypasses the verbalization bottleneck.
- Salient Span Masking: Adapting the standard T5 training objective, the model is tasked with specifically predicting a masked subject or object within a triple. This forces the model to learn the specific relationships between entities.
- Knowledge-Text Mixing: To mitigate "catastrophic forgetting"—where a model loses its linguistic fluency while learning new facts—the training data is a 50:50 mix of KG triples and standard natural language text from the C4 corpus.
The researchers applied this method to T5 (v1.1) architectures across three scales: Base (250M parameters), Large (800M), and XXL (11B).
Experimental Setup and Results
The study utilized the Wikidata KG (35M+ triples) and the domain-specific WikiMovies KG. Performance was benchmarked on closed-book question-answering tasks, including FreebaseQA, WikiHop, and NaturalQuestions.
Key Findings
- Structure is Optional: A significant finding was that training on raw triples is as effective as training on high-quality, synthetically generated sentences (such as those in the KELM dataset). This suggests that LLMs are capable of internalizing underlying facts from structured formats without needing the "crutch" of natural language syntax during the infusion phase.
- Scaling the "Fact-Sponge": The benefits of SKILL scale significantly with model size. While smaller models (250M) struggled to memorize the vast Wikidata corpus, the 11B parameter (XXL) model showed substantial gains. For the T5-XXL model, SKILL improved the Exact Match (EM) score on Wikidata-matched NaturalQuestions from 43.72 to 44.37, and on FreebaseQA from 45.02 to 47.25.
- Domain Mastery: In the domain-specific MetaQA task (using WikiMovies), the SKILL-trained model achieved a 3x improvement in EM scores for 1-hop questions compared to the standard T5 baseline.
Limitations and Future Directions
Despite its success in factual recall, SKILL faces challenges with complex reasoning. The current method treats the knowledge graph as a "bag of triples," focusing on individual facts rather than the overall topology of the graph. Consequently, while 1-hop question performance improved dramatically, gains in 2-hop and 3-hop reasoning (which require traversing multiple connections) were more modest.
Future research may focus on representing graph structure more explicitly during the training process. By teaching the model the "shape" of the graph and how entities interconnect across multiple steps, researchers hope to unlock more sophisticated multi-hop reasoning capabilities within LLMs.
Summary updated