Abstract
Large Language Models (LLMs) are often viewed as vast, unstructured repositories of facts. This research challenges that view by demonstrating that LLM knowledge is structurally organized according to "knowledge homophily"—the tendency for models to possess similar levels of knowledge for entities that are closely related in a knowledge graph. By mapping these knowledge clusters, the authors develop a Graph Neural Network (GNN) based approach to predict an LLM's internal knowledge gaps. This predictive capability allows for more efficient model fine-tuning and more effective information retrieval in complex reasoning tasks.
Introduction
While Large Language Models (LLMs) act as massive "neural knowledge bases," our understanding of how that knowledge is organized remains limited. Traditionally, identifying gaps in an LLM's knowledge requires exhaustive probing—asking the model about every individual fact—which is computationally expensive and inefficient.
Drawing inspiration from cognitive neuroscience concepts like semantic clustering and homophily, this paper investigates whether LLM knowledge follows a "clumpy" structure. The authors hypothesize that if an LLM is knowledgeable about a specific entity, it is statistically more likely to know about its closely related neighbors in a knowledge graph. Proving this "knowledge homophily" allows for the prediction of unknown facts without direct questioning.
Methodology
The researchers developed a multi-step pipeline to map and exploit the structural properties of LLM knowledge:
- Knowledge Probing & Scoring: Triplets from Knowledge Graphs (KGs) are converted into natural language statements. The LLM's ability to verify these statements is used to calculate a "knowledgeability score" (0 to 1) for each entity.
- Homophily Analysis: The team measured the similarity of scores between neighboring nodes, finding high homophily across various models, including GPT-3.5, GPT-4o, and Llama 3.
- GNN Regression: A Graph Neural Network (GNN) is trained on a small subset (20-40%) of these scores. Leveraging the graph structure and textual embeddings, the GNN predicts the knowledgeability of the remaining unseen entities.
- Applications: This predictive model is applied to Active Fine-tuning, prioritizing training on identified knowledge gaps, and Knowledge-Aware Retrieval, where search algorithms prioritize retrieving context for entities the LLM is unlikely to know.
Key Insights: The "Clumpy" Nature of Knowledge
The study reveals that LLM knowledge is not a random collection of facts but is organized into distinct regions of high and low knowledgeability. This homophily (averaging ~0.8) suggests that knowledge is concentrated in "well-lit" clusters while other areas remain "dark."
Crucially, this structure is an intrinsic property of the models rather than a random artifact. When the researchers compared their results against randomized versions of the graphs, the homophily vanished. This confirms that the GNN can accurately guess what an LLM knows about an entity simply by observing its neighbors.
Experimental Results
- Gap Identification: The GNN-based approach identified unknown facts with 61.2% accuracy, significantly outperforming random sampling (54.4%).
- Fine-tuning Efficiency: Training on GNN-selected "unknowns" resulted in a 67.7% gain in overall model knowledge, demonstrating that targeting "dark spots" is more efficient than standard broad retraining.
- QA Performance: The "Knowledge-aware Beam Search" (G-BS) improved multi-hop question-answering accuracy by 4.57% on 2-hop queries by providing context exactly where the model's internal knowledge was weakest.
- Resilience: The knowledgeability signal remained stable even when half of the graph's edges were removed, indicating a highly robust structural property.
Conclusion and Future Work
This paper demonstrates that understanding the structural organization of LLM knowledge can lead to significant gains in training and retrieval efficiency. While the current work focuses on static snapshots of knowledge in mid-scale graphs, future research will explore dynamic homophily—how these knowledge clusters evolve during continuous training—and the potential security implications of identifying sensitive "knowledge communities" within models.
Summary updated