TL;DR
This paper introduces KaLMA (Knowledge-aware Language Model Attribution), a new framework and benchmark designed to make Large Language Model (LLM) outputs verifiable by grounding them in structured Knowledge Graphs (KGs) rather than unstructured text. The authors also propose a "Conscious Incompetence" setting, requiring models to explicitly flag when necessary information is missing from the provided knowledge source using a [NA] (Not Applicable) citation.
What Problem Does This Paper Address?
While LLMs are impressively fluent, they frequently "hallucinate" facts. Current efforts to fix this involve attribution—forcing the model to cite its sources. However, most existing benchmarks focus on attributing to unstructured documents (like Wikipedia passages), which makes automatic evaluation difficult and doesn't reflect real-world scenarios where data lives in structured databases or KGs.
Furthermore, most attribution tasks assume the provided source contains all the answers. In reality, knowledge repositories are often incomplete. The authors argue that a truly reliable model should exhibit "Conscious Incompetence": the ability to recognize when a question requires information that isn't in its provided toolkit, preventing it from making up facts to fill the gaps.
Methods
The researchers defined the KaLMA task as follows: Given a question and a relevant subgraph from a KG, the model must generate a multi-sentence answer where each claim is linked to specific KG triples or marked with [NA].
Key Innovations:
- Structured Attribution: Instead of citing a paragraph, the model cites specific KG triples (e.g.,
[Artemisia Gentileschi, place of birth, Rome]). This allows for objective, exact-match evaluation of citation correctness. - Conscious Incompetence: The model is prompted to use a
[NA]tag for sentences that require verification but lack supporting data in the provided KG. - Baseline Pipeline: The authors implemented a standard RAG (Retrieval-Augmented Generation) pipeline:
- Retrieval: Using spaCy for NER and SPARQL to fetch one-hop subgraphs from WikiData.
- Re-ranking: Disambiguating entities (e.g., distinguishing between two different "Anne Hathaways") by matching neighboring nodes to the question.
- Generation: Transforming structured KG triples into flat text for the LLM and using one-shot prompting to encourage the use of
[NA]tags.
Datasets
The authors introduced BioKaLMA, a dataset in the biography domain containing 1,085 entries.
To build it, they used an Evolutionary Question Generation strategy. They started with a simple fact about a person and iteratively used an LLM to select a new, relevant KG triple and expand the biography. Finally, they generated two types of questions:
- General Questions: Natural and concise (e.g., "Who was Oscar Hertwig?").
- Specific Questions: Highly detailed and tightly coupled to the "minimum knowledge set" required for the answer, providing a more rigorous test for the LLM.
Key Insights and Ideas
- KGs as a "Ground Truth" Anchor: Using KGs simplifies evaluation. Unlike text-to-text attribution, where you have to judge if a sentence "roughly" means the same thing as a source, KG triples allow for binary "correct/incorrect" checks on the cited facts.
- The Retrieval Bottleneck: The study found that while models are decent at filtering out wrong information (maintaining precision), their ability to provide a complete answer (recall) is heavily dependent on the quality of the initial retrieval. If the KG subgraph is missing a piece of the puzzle, the model's performance tanks unless it uses the
[NA]tag. - Scaling and Alignment: There is a clear correlation between model size and "Text-Citation Alignment." Larger models (like GPT-4) are significantly better at ensuring the sentence they wrote actually matches the citation they provided.
Key Results
The authors evaluated several models, including GPT-4, ChatGPT (GPT-3.5), and the LLaMA family.
- GPT-4 is the Gold Standard: GPT-4 achieved the highest scores across almost all metrics, particularly in Text-Citation Alignment (92.0) and Citation Correctness (97.6).
- LLaMA Struggles with Precision: While LLaMA models often generated long, citation-heavy answers (leading to decent recall), their precision was low, meaning many of their citations were irrelevant or incorrect.
- Conscious Incompetence Progress: As more knowledge was removed from the KG, the precision of the
[NA]tag actually improved, suggesting that models are better at identifying missing information when the "knowledge gap" is larger and more obvious.
Limitations and Future Work
- KG Complexity: The current work uses simple one-hop subgraphs. Real-world KGs are much more complex, and future work should explore multi-hop reasoning and KGs where nodes might contain entire documents.
- Evaluation Bias: The authors used
text-davinci-003(an OpenAI model) for the "G-Eval" text quality metric. They noted a potential bias where OpenAI models might prefer the writing style of other OpenAI models. - Domain Specificity: BioKaLMA is limited to biographies. Expanding this framework to high-stakes fields like medicine or law is a critical next step.
Summary updated