Abstract
Large Language Models (LLMs) demonstrate impressive encyclopedic knowledge of popular facts but frequently "hallucinate" when queried about niche, long-tail information. This paper introduces an automated pipeline to generate specialized Question-Answering (QA) datasets for rare entities using Wikidata. By defining entity rarity through knowledge graph node degrees, the authors reveal that standard retrieval-augmented generation (RAG) can inadvertently degrade performance on obscure facts. They propose a graph-guided retrieval method that leverages structured knowledge to improve accuracy on the knowledge distribution's tail.
Introduction
While state-of-the-art LLMs like GPT-4 appear omniscient, their internal knowledge is heavily biased toward "head entities"—concepts frequently discussed across the web. Obscure entities, such as niche scientific properties or independent films from the 1970s, represent "long-tail knowledge" where LLMs often struggle. Evaluating this gap is difficult because existing benchmarks like TriviaQA are themselves biased toward common knowledge. Manually constructing long-tail datasets is prohibitively expensive, necessitating an automated approach to stress-test models on the fringes of human knowledge.
Methodology: Automated QA Generation
The authors propose a three-step pipeline to systematically generate and evaluate long-tail QA pairs:
- Defining the "Tail": Rarity is defined by Wikidata node degrees rather than Wikipedia mention frequency. Entities with fewer than 3 connections are classified as "fine-tail," while those with 15–100 connections are "coarse-tail."
- Question Generation: The system extracts
[subject, property, object]triplets from Wikidata. These are fed into GPT-3 (text-davinci-003) with few-shot prompts to transform structured data into natural language questions (e.g., transforming[Nynorsk, writing system, Latin script]into "What is the writing system of Nynorsk?"). - Retrieval Augmentation (RAG): To mitigate hallucinations, the authors test LLMs supplemented with external data, comparing standard Dense Passage Retrieval (DPR) against a hybrid approach that uses the Knowledge Graph (KG) to re-rank retrieved text.
Datasets and Knowledge Distribution
The study introduces two new benchmarks derived from Wikidata: Coarse-tail QA and Fine-tail QA. Together, these datasets comprise 27,691 triplets across 422 unique properties. The distribution of node degrees in the underlying knowledge graph highlights the vast number of entities that reside in the "tail," making them difficult for models to learn during pre-training.
Key Insights and Results
The experimental results reveal several critical challenges in handling long-tail knowledge:
- The "DPR Dip": Standard DPR actually reduced GPT-3's accuracy on the coarse-tail dataset from 26.5% to 14.3%. For rare entities, retrieval models often fetch "distractor" passages that appear relevant but contain incorrect information, confusing the LLM.
- Graph-Guided Retrieval: Knowledge Graphs serve as an effective filter for retrieval confusion. Using Wikidata to re-rank Wikipedia passages improved Top-1 retrieval accuracy by approximately 6%.
- Performance Gap: GPT-3's accuracy plummeted from 71.2% on TriviaQA (head entities) to just 22.1% on the Fine-tail dataset.
- Hybrid Success: Combining GPT-3 with both DPR and KG re-ranking raised Fine-tail performance to 30.95%. While this is a significant improvement over zero-shot performance, it remains far below the accuracy seen for popular facts.
Limitations and Future Work
A primary challenge in automated QA is answer granularity; a model might provide a correct but more general answer (e.g., "South Korea" instead of "Seoul") and be penalized. Additionally, "surface form" ambiguity (e.g., multiple entities sharing the name "Jesus") complicates evaluation. Future research should focus on robust automated property filtering and developing models capable of handling varying levels of answer specificity.
Summary updated