Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attribution

Xinze Li, Yixin Cao, Liangming Pan, Yubo Ma, Aixin Sun

Abstract

Large Language Models (LLMs) frequently suffer from hallucinations, generating factual errors with high confidence. While language attribution—citing sources—is a primary defense, existing benchmarks often rely on unstructured text and assume a "closed-world" where all information is present. This paper introduces KaLMA (Knowledge-aware Language Model Attribution), a framework that grounds LLM outputs in structured Knowledge Graphs (KGs). We introduce the concept of "Conscious Incompetence," requiring models to explicitly tag unsupported claims. Using our new BioKaLMA dataset, we demonstrate that while advanced models like GPT-4 show high alignment, the overall system performance is heavily constrained by retrieval accuracy.

Introduction

The fluency of LLMs often masks underlying factual inaccuracies. To address this, researchers have turned to attribution, where models cite the evidence for their claims. However, current research faces three significant hurdles: the reliance on unstructured text sources, the unrealistic "closed-world" assumption that sources are always complete, and the high cost of evaluating citation accuracy.

Overview of the KaLMA framework where an LLM attributes its output to structured Knowledge Graph triples.

The KaLMA Framework

The KaLMA task requires models to answer questions by grounding each sentence in specific KG triples. If a claim cannot be supported by the provided subgraph, the model must use a [NA] (Not Applicable) tag—a behavior we term "Conscious Incompetence."

To bridge the gap between structured data and LLMs, KG triples (Subject-Predicate-Object) are "flattened" into natural language strings. Evaluation is performed through a multi-metric suite:

  • Text Quality: Assessed via GPT-4 based G-Eval for coherence and fluency.
  • Citation Quality: Traditional precision and recall metrics for cited triples.
  • Text-Citation Alignment: A Natural Language Inference (NLI) model verifies if a cited triple logically entails the corresponding sentence.

The BioKaLMA Dataset

We present BioKaLMA, a benchmark focused on the biographical domain. It contains 1,085 entries derived from WikiData and curated biographical databases, covering a diverse global population across various eras and occupations. Each entry pairs a general and a specific question with a "minimum knowledge set" of required triples. Our findings indicate that models perform significantly better on specific questions, which provide a tighter bond between the query and the required knowledge.

Results and Analysis

Benchmarking various models (GPT-4, GPT-3.5, LLaMA) revealed distinct behaviors. GPT-4 emerged as the most reliable, prioritizing alignment (92.0) and precision over verbosity. Conversely, open-source models like LLaMA-13B exhibited high citation recall but low precision, often generating long answers with citations that did not actually support the text.

Retrieval Analysis showing the impact of retrieval accuracy on various performance metrics.

A critical finding is that retrieval is the primary bottleneck. As shown in our ablation studies, a decrease in retrieval accuracy leads to a sharp decline in citation recall and F1 scores, even while text correctness remains relatively higher. This suggests that models struggle to maintain verifiability when the provided context is noisy or incomplete.

Conclusion

KaLMA provides a rigorous path toward more trustworthy AI by leveraging structured knowledge and enforcing honest "incompetence" when data is missing. The high correlation between our automated NLI-based metrics and human judgment proves that verifiability can be reliably automated. Future work will focus on expanding this framework to more complex KG structures and high-stakes domains like medicine and law.

Summary updated

BibTeX
@inproceedings{li2024towards,
  author = {Xinze Li and Yixin Cao and Liangming Pan and Yubo Ma and Aixin Sun},
  title = {{Towards Verifiable Generation: A Benchmark for Knowledge-aware Language Model Attribution}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.28},
}
Figure