English

SAFE: Improving LLM Systems using Sentence-Level In-generation Attribution

Computation and Language 2025-09-25 v2 Information Retrieval

Abstract

Large Language Models (LLMs) are increasingly applied in various science domains, yet their broader adoption remains constrained by a critical challenge: the lack of trustworthy, verifiable outputs. Current LLMs often generate answers without reliable source attribution, or worse, with incorrect attributions, posing a barrier to their use in scientific and high-stakes settings, where traceability and accountability are paramount. To be reliable, attribution systems require high accuracy for short-length attribution on retrieved data, i.e., attribution to a sentence within a document rather than the entire document. We propose SAFE, a Sentence-level A ttribution FramEwork for Retrieve-Augmented Generation (RAG) systems that attributes generated sentences during generation. This allows users to verify sentences as they read them and correct the model when the attribution indicates the generated text is not grounded in the documents, increasing the safety of LLM systems. This framework consists of two steps: predicting the required number of references for a sentence, and attributing the sentence. Our approach achieved 95% accuracy in the first step, which translated to 2.1\~6.0% improvements in the accuracy (normalized for maximum possible accuracy) of all attribution algorithms in our clean dataset, when compared to their top-1 accuracy. We also applied SAFE in real-world scenarios with documents containing hundreds to thousands of sentences. In these settings, SAFE reliably attributed sentences to their source documents, demonstrating that the method generalizes beyond controlled benchmarks. The SAFE framework and the training dataset are publicly available on GitHub.

Keywords

Cite

@article{arxiv.2505.12621,
  title  = {SAFE: Improving LLM Systems using Sentence-Level In-generation Attribution},
  author = {João Eduardo Batista and Emil Vatai and Mohamed Wahib},
  journal= {arXiv preprint arXiv:2505.12621},
  year   = {2025}
}

Comments

30 pages (9 pages of content, 5 pages of references, 16 pages of supplementary material), 7 figures, 13 tables

R2 v1 2026-07-01T02:20:32.842Z