ContextCite: Attributing Model Generation to Context

Auteurs : Benjamin Cohen-Wang, Harshay Shah, Kristian Georgiev, Aleksander Madry

Soumis à arXiv le 01 Sep. 2024
Résumé scientifique

How do language models use information provided as context when generating a response? Can we infer whether a particular generated statement is actually grounded in the context, a misinterpretation, or fabricated? To help answer these questions, we introduce the problem of context attribution: pinpointing the parts of the context (if any) that led a model to generate a particular statement. We then present ContextCite, a simple and scalable method for context attribution that can be applied on top of any existing language model. Finally, we showcase the utility of ContextCite through three applications: (1) helping verify generated statements (2) improving response quality by pruning the context and (3) detecting poisoning attacks. We provide code for ContextCite at https://github.com/MadryLab/context-cite.

Les articles autour de lui, par date et par proximité

Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article

Comment lire cette carte ? Guide illustré

Les articles les plus proches Les travaux antérieurs sur lesquels il s’appuie Les articles qui le citent

Les articles autour de celui-ci

Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.

Les articles les plus proches

  1. Très proche Même question Cité par cet article Cite cet article
    Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation
    Jirui Qi, Gabriele Sarti, Raquel Fernández et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cité 40 fois · Pas encore résumé

    MIRAGE attribue fidèlement les réponses de RAG aux contextes en exploitant les états internes du modèle, comme ContextCite qui repère les éléments de contexte ayant contribué à une réponse.

    Résumé scientifique

    Ensuring the verifiability of model answers is a fundamental challenge for retrieval-augmented generation (RAG) in the question answering (QA) domain. Recently, self-citation prompting was proposed to make large language models (LLMs) generate citations to supporting documents along with their answers. However, self-citing LLMs often struggle to match the required format, refer to non-existent sources, and fail to faithfully reflect LLMs’ context usage throughout the generation. In this work, we present MIRAGE – Model Internals-based RAG Explanations – a plug-and-play approach using model internals for faithful answer attribution in RAG applications. MIRAGE detects context-sensitive answer t…

  2. Très proche Prolonge cet article Cite cet article Utilise cet article en profondeur
    Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation
    Ruizhe Li, Chen Chen, Yu-Chen Hu et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 19 fois · Pas encore résumé

    ARC-JSD propose une méthode d’attribution des réponses aux phrases du contexte en RAG, sans ajustement fin, et cite ContextCite comme travail antérieur.

    Résumé scientifique

    Retrieval-Augmented Generation (RAG) leverages large language models (LLMs) combined with external contexts to enhance the accuracy and reliability of generated responses. However, reliably attributing generated content to specific context segments, context attribution, remains challenging due to the computationally intensive nature of current methods, which often require extensive fine-tuning or human annotation. In this work, we introduce a novel Jensen-Shannon Divergence driven method to Attribute Response to Context (ARC-JSD), enabling efficient and accurate identification of essential context sentences without additional fine-tuning, gradient-calculation or surrogate modelling. Evaluati…

  3. Proche Prolonge cet article Cite cet article
    Context Attribution with Multi-Armed Bandit Optimization
    Deng Pan, K. Murugesan, Ting Hua et al. · 2025 · Annual Meeting of the Association for Computational Linguistics · cité 3 fois · Pas encore résumé

    Cette méthode formule l’attribution du contexte comme un bandit combinatoire pour repérer les segments influents avec moins de requêtes au modèle, et cite ContextCite.

    Résumé scientifique

    Understanding which parts of the retrieved context contribute to a large language model's generated answer is essential for building interpretable and trustworthy retrieval-augmented generation. We propose a novel framework that formulates context attribution as a combinatorial multi-armed bandit problem. We utilize Linear Thompson Sampling to efficiently identify the most influential context segments while minimizing the number of model queries. Our reward function leverages token log-probabilities to measure how well a subset of segments supports the original response, making it applicable to both open-source and black-box API-based models. Unlike SHAP and other perturbation-based methods …

  4. Proche Prolonge cet article Cite cet article
    How Context Attribution Handles What the Model Already Knows
    Quoc-Huy Trinh, Linchao Zhu, Sebastian Szyller · 2026 · arXiv.org · preprint, non relu par les pairs · Pas encore résumé

    Cette étude examine si l’attribution distingue les informations du contexte des connaissances acquises pendant l’entraînement, et cite ContextCite comme méthode antérieure.

    Résumé scientifique

    Context attribution methods for large language models (LLMs) identify which input context contributes to the model response. Recent works show the initial success in attributing the con- tributive score of the contexts. However, we observe that when the context overlaps with the training data, these methods can- not disentangle in-context from in-weight (IW) contributions, producing unreliable scores. Based on this observation, in this work, we introduce: 1) an evaluation protocol that relies on four new metrics (base-model context attribution score (BCS), cross-model context attribution consistency (CAC), attribution preservation score (APS), source separation pre- cision (SSP)) and 2) a be…

  5. Proche Prolonge cet article Cite cet article
    SelfCite: Self-Supervised Alignment for Context Attribution in Large Language Models
    Yung-Sung Chuang, Benjamin Cohen-Wang, Shannon Zejiang Shen et al. · 2025 · International Conference on Machine Learning · cité 22 fois · Pas encore résumé

    SelfCite entraîne les modèles à produire des citations fines en s’appuyant sur l’ablation du contexte, et cite ContextCite parmi les travaux d’attribution.

    Résumé scientifique

    We introduce SelfCite, a novel self-supervised approach that aligns LLMs to generate high-quality, fine-grained, sentence-level citations for the statements in their generated responses. Instead of only relying on costly and labor-intensive annotations, SelfCite leverages a reward signal provided by the LLM itself through context ablation: If a citation is necessary, removing the cited text from the context should prevent the same response; if sufficient, retaining the cited text alone should preserve the same response. This reward can guide the inference-time best-of-N sampling strategy to improve citation quality significantly, as well as be used in preference optimization to directly fine…

  6. Proche Contexte plus large
    Controllable Citation Sentence Generation with Language Models
    Nianlong Gu, Richard H. R. Hahnloser · 2022 · Computation and Language · cité 6 fois · Résumé IA disponible

    Cet article contrôle la génération de phrases de citation selon l’intention et les mots-clés, plutôt que d’attribuer une réponse au contexte.

    Résumé scientifique

    Citation generation aims to generate a citation sentence that refers to a chosen paper in the context of a manuscript. However, a rigid citation generation process is at odds with an author's desire to control specific attributes, such as 1) the citation intent, e.g., either introducing background information or comparing results, and 2) keywords that should appear in the citation text. To provide these degrees of controllability during citation generation, we propose to integrate the manuscript context, the context of the referenced paper, and the desired control attributes into a structured template and use it to fine-tune a language model (LM) via next-token prediction. We then utilize Pr…

  7. Proche Prolonge cet article Cite cet article
    Explaining the Reasoning of Large Language Models Using Attribution Graphs
    Chase Walker, Rickard Ewetz · 2025 · arXiv.org · preprint, non relu par les pairs · cité 4 fois · Pas encore résumé

    CAGE construit des graphes d’attribution pour représenter les influences entre générations, et cite ContextCite parmi les méthodes d’attribution du contexte.

    Résumé scientifique

    Large language models (LLMs) exhibit remarkable capabilities, yet their reasoning remains opaque, raising safety and trust concerns. Attribution methods, which assign credit to input features, have proven effective for explaining the decision making of computer vision models. From these, context attributions have emerged as a promising approach for explaining the behavior of autoregressive LLMs. However, current context attributions produce incomplete explanations by directly relating generated tokens to the prompt, discarding inter-generational influence in the process. To overcome these shortcomings, we introduce the Context Attribution via Graph Explanations (CAGE) framework. CAGE introdu…

  8. Proche Même méthode, autre problème Cité par cet article
    Quantifying the Plausibility of Context Reliance in Neural Machine Translation
    Gabriele Sarti, Grzegorz Chrupała, M. Nissim et al. · 2023 · International Conference on Learning Representations · cité 9 fois · Pas encore résumé

    PECoRe mesure l’usage du contexte dans les générations de traduction automatique au moyen d’attributions fondées sur les états internes, et ContextCite étudie aussi l’influence du contexte.

    Résumé scientifique

    Establishing whether language models can use contextual information in a human-plausible way is important to ensure their trustworthiness in real-world settings. However, the questions of when and which parts of the context affect model generations are typically tackled separately, with current plausibility evaluations being practically limited to a handful of artificial benchmarks. To address this, we introduce Plausibility Evaluation of Context Reliance (PECoRe), an end-to-end interpretability framework designed to quantify context usage in language models' generations. Our approach leverages model internals to (i) contrastively identify context-sensitive target tokens in generated texts a…

Les travaux antérieurs sur lesquels il s’appuie

  1. Proche Contexte plus large
    Unifying Corroborative and Contributive Attributions in Large Language Models
    Theodora T. Worledge, Judy Hanwen Shen, Nicole Meister et al. · 2023 · 2024 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · cité 17 fois · Pas encore résumé

    Cet article unifie l’attribution des sorties aux sources et l’attribution aux données d’entraînement, un cadre plus large que l’attribution du contexte de ContextCite.

    Résumé scientifique

    As businesses, products, and services spring up around large language models, the trustworthiness of these models hinges on the verifiability of their outputs. However, methods for explaining language model outputs largely fall across two distinct fields of study which both use the term "attribution" to refer to entirely separate techniques: citation generation and training data attribution. In many modern applications, such as legal document generation and medical question answering, both types of attributions are important. In this work, we argue for and present a unified framework of large language model attributions. We show how existing methods of different types of attribution fall und…

  2. Proche Base de cet article
    Measuring Attribution in Natural Language Generation Models
    Hannah Rashkin, Vitaly Nikolaev, Matthew Lamm et al. · 2021 · Computational Linguistics · cité 360 fois · Pas encore résumé

    AIS définit une procédure d’évaluation humaine pour vérifier les sorties de génération à partir de sources fournies, problématique à laquelle ContextCite apporte une méthode d’attribution.

    Résumé scientifique

    Abstract Large neural models have brought a new challenge to natural language generation (NLG): It has become imperative to ensure the safety and reliability of the output of models that generate freely. To this end, we present an evaluation framework, Attributable to Identified Sources (AIS), stipulating that NLG output pertaining to the external world is to be verified against an independent, provided source. We define AIS and a two-stage annotation pipeline for allowing annotators to evaluate model output according to annotation guidelines. We successfully validate this approach on generation datasets spanning three tasks (two conversational QA datasets, a summarization dataset, and a tab…

  3. Proche Autre approche du problème
    Teaching language models to support answers with verified quotes
    Jacob Menick, Maja Trebacz, Vladimir Mikulik et al. · 2022 · arXiv.org · preprint, non relu par les pairs · cité 393 fois · Pas encore résumé

    GopherCite entraîne par préférences des modèles de questions-réponses à fournir des preuves citées, tandis que ContextCite attribue les réponses générées au contexte.

    Résumé scientifique

    Recent large language models often answer factual questions correctly. But users can't trust any given claim a model makes without fact-checking, because language models can hallucinate convincing nonsense. In this work we use reinforcement learning from human preferences (RLHP) to train"open-book"QA models that generate answers whilst also citing specific evidence for their claims, which aids in the appraisal of correctness. Supporting evidence is drawn from multiple documents found via a search engine, or from a single user-provided document. Our 280 billion parameter model, GopherCite, is able to produce answers with high quality supporting evidence and abstain from answering when unsure.…

  4. Proche Autre approche du problème
    Enabling Large Language Models to Generate Text with Citations
    Tianyu Gao, Howard Yen, Jiatong Yu et al. · 2023 · Computation and Language · cité 926 fois · Résumé IA disponible

    ALCE évalue des systèmes qui récupèrent des preuves et génèrent des réponses citées, tandis que ContextCite identifie quels passages du contexte ont contribué à une réponse.

    Résumé scientifique

    Large language models (LLMs) have emerged as a widely-used tool for information seeking, but their generated outputs are prone to hallucination. In this work, our aim is to allow LLMs to generate text with citations, improving their factual correctness and verifiability. Existing work mainly relies on commercial search engines and human evaluation, making it challenging to reproduce and compare different modeling approaches. We propose ALCE, the first benchmark for Automatic LLMs' Citation Evaluation. ALCE collects a diverse set of questions and retrieval corpora and requires building end-to-end systems to retrieve supporting evidence and generate answers with citations. We develop automatic…

  5. Proche Autre approche du problème
    RARR: Researching and Revising What Language Models Say, Using Language Models
    Luyu Gao, Zhuyun Dai, Panupong Pasupat et al. · 2022 · Annual Meeting of the Association for Computational Linguistics · cité 409 fois · Pas encore résumé

    RARR recherche des preuves pour les sorties et les révise afin de corriger le contenu non étayé, tandis que ContextCite attribue les énoncés aux passages du contexte.

    Résumé scientifique

    Language models (LMs) now excel at many tasks such as question answering, reasoning, and dialog. However, they sometimes generate unsupported or misleading content. A user cannot easily determine whether their outputs are trustworthy or not, because most LMs do not have any built-in mechanism for attribution to external evidence. To enable attribution while still preserving all the powerful advantages of recent generation models, we propose RARR (Retrofit Attribution using Research and Revision), a system that 1) automatically finds attribution for the output of any text generation model, and 2) post-edits the output to fix unsupported content while preserving the original output as much as …

Les articles qui le citent

  1. Proche Même méthode, autre problème Utilise cet article en profondeur
    AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption
    Yan-Ting Wang, Runpeng Geng, Ying Chen et al. · 2025 · IEEE Symposium on Security and Privacy · cité 10 fois · Pas encore résumé

    AttnTrace attribue au contexte les sorties liées aux injections de prompt et à la corruption des connaissances, rejoignant l’usage de ContextCite pour détecter des attaques d’empoisonnement.

    Résumé scientifique

    Long-context large language models (LLMs), such as GPT-5, Gemini-2.5-Pro, and Claude-Sonnet-4, are increasingly used to empower advanced AI systems, including retrievalaugmented generation (RAG) systems and autonomous agents. In these systems, an LLM receives an instruction along with a context-often consisting of texts retrieved from a knowledge database, memory, or the Internet-and generates a response that is contextually grounded by following the instruction. Many recent studies showed that these LLM-empowered systems are vulnerable to prompt injection and knowledge corruption attacks, where an attacker can inject malicious texts into the context such that the LLM generates an output as …

  2. Proche Même question Utilise cet article en profondeur
    ProvenAI: Provenance-Native Traces of Evidence in Generated Answers
    Mohammad Faizan, Dalal Alharthi · 2026 · arXiv.org · preprint, non relu par les pairs · cité 1 fois · Pas encore résumé

    ProvenAI mesure l’influence des documents sur les réponses par ablation, comme ContextCite qui repère les éléments du contexte responsables d’un énoncé.

    Résumé scientifique

    Retrieval-augmented systems routinely present citations alongside generated answers, yet a citation does not confirm that the corresponding source meaningfully shaped the output. This paper introduces ProvenAI, a framework that decomposes transparency in multi-hop question answering into three independently measurable layers: answer correctness, citation fidelity against benchmark supporting evidence, and per-document influence under leave-one-resource-out intervention. Targeting the HotpotQA distractor benchmark through a seven-stage pipeline covering data normalisation, retrieval indexing, citation-aware answer generation, attribution auditing, ablation-based influence estimation, batch ev…

  3. Apparenté Même méthode, autre problème Utilise cet article en profondeur
    MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attribution
    Sara Patel, Mingxun Zhou, Giulia Fanti · 2025 · arXiv.org · preprint, non relu par les pairs · cité 4 fois · Pas encore résumé

    MaxShapley attribue aux sources leur part dans les réponses de recherche générative, tandis que ContextCite mesure la contribution du contexte à la génération.

    Résumé scientifique

    Generative search engines based on large language models (LLMs) are replacing traditional search, fundamentally changing how information providers are compensated. To sustain this ecosystem, we need fair mechanisms to attribute and compensate content providers based on their contributions to generated answers. We introduce MaxShapley, an efficient algorithm for fair credit attribution in generative search pipelines that retrieve external sources before generation. MaxShapley is a special case of the celebrated Shapley value; it leverages a de-composable max-sum utility function to compute attributions with polynomial-time computation in the number of documents, as opposed to the exponential …

  4. Proche Même question
    Multi-Level Explanations for Generative Language Models
    Lucas Monteiro Paes, Dennis Wei, Hyo Jin Do et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cité 19 fois · Pas encore résumé

    MExGen attribue des scores aux parties du contexte selon leur influence sur un texte généré, comme le fait ContextCite pour les énoncés.

    Résumé scientifique

    Despite the increasing use of large language models (LLMs) for context-grounded tasks like summarization and question-answering, understanding what makes an LLM produce a certain response is challenging. We propose Multi-Level Explanations for Generative Language Models (MExGen), a technique to provide explanations for context-grounded text generation. MExGen assigns scores to parts of the context to quantify their influence on the model's output. It extends attribution methods like LIME and SHAP to LLMs used in context-grounded tasks where (1) inference cost is high, (2) input text is long, and (3) the output is text. We conduct a systematic evaluation, both automated and human, of perturba…

  5. Apparenté Même question Utilise cet article en profondeur
    TracLLM: A Generic Framework for Attributing Long Context LLMs
    Yan-Ting Wang, Wei Zou, Runpeng Geng et al. · 2025 · USENIX Security Symposium · cité 22 fois · Pas encore résumé

    TracLLM cherche les passages d’un long contexte qui contribuent à une sortie, soit le problème d’attribution du contexte abordé par ContextCite.

    Résumé scientifique

    Long context large language models (LLMs) are deployed in many real-world applications such as RAG, agent, and broad LLM-integrated applications. Given an instruction and a long context (e.g., documents, PDF files, webpages), a long context LLM can generate an output grounded in the provided context, aiming to provide more accurate, up-to-date, and verifiable outputs while reducing hallucinations and unsupported claims. This raises a research question: how to pinpoint the texts (e.g., sentences, passages, or paragraphs) in the context that contribute most to or are responsible for the generated output by an LLM? This process, which we call context traceback, has various real-world applicatio…

Comment ces articles sont-ils trouvés ?

Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.

Mis à jour le 1 novembre 2026.

Le guide illustré des articles autour d’un article