Prompting large language models with knowledge graphs for question answering involving long-tail facts

Wenyu Huang, Guancheng Zhou, Mirella Lapata, Pavlos Vougiouklis, Sebastien Montella, Jeff Z. Pan

TL;DR

This paper introduces LTGen, a fully automated, template-free benchmark for evaluating how LLMs handle "long-tail" (rare) facts in both standard and conversational QA. The authors demonstrate that prompting LLMs with structured Knowledge Graph (KG) triples—especially when ranked using semantic graph representations (AMR)—is significantly more effective and efficient at reducing hallucinations than traditional text-passage retrieval.

What Problem Does This Paper Address?

While Large Language Models (LLMs) like GPT-4 and Llama 2 are impressive, they suffer from a "long-tail" problem: they are excellent at recalling common knowledge but frequently hallucinate when asked about obscure entities or rare facts.

Existing methods to fix this usually involve Retrieval-Augmented Generation (RAG), typically using unstructured text passages. However, evaluating these systems is difficult because current benchmarks (like PopQA) often rely on rigid templates that don't reflect natural human conversation. Furthermore, it remains unclear whether structured data (like Knowledge Graphs) is superior to unstructured text for grounding these models on niche topics.

Methods

The authors propose a two-part solution: a new data generation pipeline and a novel KG retrieval strategy.

  1. The LTGen Pipeline: To avoid the "template trap," the authors used GPT-4 to generate natural questions and multi-turn dialogues based on real Wikidata triples. They filtered entities by Wikipedia Page Views (WPV) to specifically target the "long tail" (the least-visited pages).
  2. AMR-Based Triple Ranking: When retrieving facts from a KG, you often get a "noisy" list of relations. The authors developed a ranking system using Abstract Meaning Representation (AMR). AMR converts a natural language question into a semantic graph. By using a Graph Neural Network (GNN) to encode this AMR graph and a BERT-based encoder for the KG triples, the system can semantically match the intent of a question to the correct relation in the database more accurately than a standard LLM could.
  3. Knowledge Prompting: They tested LLMs (GPT-3.5 and Llama 2 family) across four settings:
  4. No Knowledge: Purely parametric (internal) memory.
  5. Passages: Prompted with text from a Contriever-based search.
  6. KG Triples: Prompted with structured (Subject, Relation, Object) data.
  7. Hybrid: Both passages and triples.

Datasets

The paper introduces the LTGen Benchmark, which consists of:

  • LTGen-QA: 6,000 single-turn question-answering pairs.
  • LTGen-Conv: 13,334 conversational turns across multi-turn dialogues.
  • Rarity Levels: Data is stratified into four levels (I to IV), where Level IV represents the rarest "long-tail" entities.

The authors compared LTGen against existing benchmarks like PopQA, Natural Questions (NQ), and TriviaQA, noting that LTGen is the first to be both template-free and conversational.

Key Insights and Ideas

  • Structured > Unstructured: KG triples are more "information-dense." A single triple (e.g., [Zsolt Hirling, occupation, engineer]) provides exactly what the model needs, whereas a 100-word passage contains noise that can distract the LLM.
  • The Semantic Advantage: Using AMR for ranking triples proved superior to using the LLM itself as a ranker. This suggests that explicit semantic parsing helps bridge the gap between how humans ask questions and how KGs store data.
  • Hallucination Mitigation: Adding external knowledge significantly improved NLI (Natural Language Inference) scores. Even when the model didn't get the "Exact Match" right, the external knowledge made it much more "cautious" and less likely to contradict the facts.
  • Self-Awareness Gap: GPT-3.5 showed higher "self-awareness" than Llama 2; when it didn't know a fact, it was more likely to apologize and refuse to answer rather than hallucinate a fake one.

Key Results

  • Performance Boost: On the LTGen-QA task, Llama 2 70B’s Knowledge Matching (KM) score jumped from 0.393 (No Knowledge) to 0.750 when prompted with KG triples.
  • Efficiency: KG triples are significantly shorter than text passages. The average input context for Llama 2 was ~702 tokens with triples versus ~1014 tokens with passages, leading to lower inference costs.
  • Ranking Accuracy: The AMR-based ranker achieved a recall of 0.672 on LTGen-QA, outperforming LLM-based ranking (0.619 for GPT-3.5) despite having far fewer parameters (~0.2B).

Limitations and Future Work

  • Entity Tagging Bottleneck: The system relies on TAGME for entity linking. When the authors used "Oracle" (perfect) entity linking, performance skyrocketed (Recall jumped from 0.67 to 0.99). Improving automated entity tagging for rare names remains a major hurdle.
  • Grounding Errors: Sometimes LLMs ignore the provided context if it conflicts with their internal (incorrect) weights. The authors suggest future work should focus on "verifying and reducing grounding error" where models fail to follow the provided context.
  • Scaling: While the AMR ranker is efficient, it adds a layer of complexity to the pipeline that requires specific training on semantic graphs.

Summary updated

BibTeX
@article{huang2026prompting,
  author = {Wenyu Huang and Guancheng Zhou and Mirella Lapata and Pavlos Vougiouklis and Sebastien Montella and Jeff Z. Pan},
  title = {{Prompting large language models with knowledge graphs for question answering involving long-tail facts}},
  journal = {Knowledge-Based Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5pSIpRzz1F},
}
Figure