TL;DR
Large Language Models (LLMs) exhibit "knowledge homophily"—meaning they tend to know (or not know) conceptually related facts in clusters, much like human memory. By mapping this structure with a Graph Neural Network (GNN), researchers can accurately predict an LLM's internal blind spots. This insight significantly optimizes how we inject new knowledge into LLMs via fine-tuning and enhances multi-hop question answering through smarter context retrieval.
What Problem Does This Paper Address?
While LLMs excel as neural knowledge bases, understanding how they structurally organize this information internally remains a black box. If an LLM knows that "University of Oxford" is located in the UK, does it also know its famous alumni or colleges?
Exhaustively probing an LLM to map out its entire knowledge base is computationally expensive, slow, and token-intensive. This paper addresses this challenge by investigating whether LLMs possess a predictable structure of knowledgeability. If we can find a pattern in what an LLM knows, we can predict its knowledge gaps without having to ask it millions of questions.
Methods
The authors propose a framework to discover and exploit Knowledge Homophily in LLMs:
- Knowledgeability Computation: They convert knowledge graph (KG) triplets (subject, relation, object) into natural language statements (e.g., "Donald Trump made a visit to China"). The LLM is prompted to evaluate the statement as True or False. These binary responses are aggregated to compute a continuous "knowledgeability score" for individual entities.
- Homophily Analysis: They calculate a homophily metric to determine if topologically close entities in a knowledge graph share similar knowledgeability scores.
- GNN Regression Model: To eliminate exhaustive probing, they design a Graph Neural Network (GNN) regressor. Trained on a small subset of entities with known scores (the anchor set), the GNN performs message-passing to predict the knowledgeability of all remaining unseen entities across the graph.
The predicted scores are then applied to two downstream tasks:
- Homophily-guided Knowledge Injection: Prioritizing the selection of triplets with the lowest predicted scores for targeted fine-tuning.
- Homophily-guided Knowledge Retrieval: Modifying beam search during multi-hop QA to prioritize retrieving external context for entities the LLM is predicted to know the least about.
Datasets
The authors evaluated their approach across five representative knowledge graphs spanning diverse domains:
- T-Rex: A large-scale dataset aligning Wikipedia abstracts with Wikidata triples.
- WD50K: A general-knowledge dataset derived from Wikidata statements.
- PharmKG8K: A multi-relational biomedical knowledge graph linking genes, drugs, and diseases.
- MVPKG (and MVPKG-t): A dataset covering U.S. legislative, election, and diplomatic data, evaluated both with and without temporal attributes.
- CoDEx-S: A challenging Wikidata/Wikipedia completion dataset featuring complex, multi-occupational relations.
Key Insights and Ideas
- LLMs Have Coherent Blind Spots: Much like humans, LLMs exhibit semantic clustering. If a model lacks knowledge about a specific niche topic, it likely lacks knowledge about its immediate topological neighbors, forming distinct "low-knowledge" communities.
- Knowledge Homophily is an Intrinsic Property: Across five state-of-the-art LLMs (GPT-3.5, GPT-4o, Gemini-2.5 Flash, LLaMA3.3-70B, and DeepSeek-V3), knowledge homophily scores consistently hovered around 0.8. This significantly outperformed degree-matched random baselines, proving it is a structural characteristic of how LLMs store data.
- Graph Structure Beats Pure Semantics: The GNN regressor consistently outperformed a homophily-agnostic Multi-Layer Perceptron (MLP) that relied solely on text embeddings. This demonstrates that graph topology provides a vital signal for mapping model knowledge that text embeddings alone cannot capture.
Key Results
- Higher Quality Knowledge Injection: When selecting 4,000 triplets for fine-tuning, the GNN-guided approach successfully identified a higher percentage of facts genuinely unknown to the base LLM (averaging 61.2% across datasets) compared to Random selection (54.4%) and the MLP baseline (57.4%).
- Superior Generalization: Fine-tuning models (LLaMA3-8B and Mistral-7B) on these GNN-targeted blind spots led to the highest generalization gains on held-out test sets, averaging 67.7% accuracy compared to 60.5% for random sampling.
- Enhanced Multi-Hop QA: Integrating the GNN knowledge estimator into beam search (G-BS) improved 2-hop question-answering accuracy by up to 4.57% over standard semantic baselines, proving that actively filling an LLM's predicted knowledge gaps with external context directly improves reasoning performance.
Limitations and Future Work
- Graph Scale: The experiments focused on small-to-mid-scale knowledge graphs (up to ~46k nodes and ~255k triplets in the sampled subsets). While GNN inference scales linearly, evaluating this approach on massive, web-scale knowledge graphs remains an open challenge.
- Binary Probing Nuance: The initial knowledge checking relies on binary True/False prompts, which may fail to capture finer gradations of model confidence or epistemic uncertainty.
- Future Directions: The authors plan to explore uncertainty-aware knowledge verification and dynamic homophily modeling to track how an LLM's internal knowledge structure shifts and evolves as it continuously learns new information.
Summary updated