Saved in:
Bibliographic Details
Main Authors: Walker, Chase, Ewetz, Rickard
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2512.15663
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911324476276736
author Walker, Chase
Ewetz, Rickard
author_facet Walker, Chase
Ewetz, Rickard
contents 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 introduces an attribution graph: a directed graph that quantifies how each generation is influenced by both the prompt and all prior generations. The graph is constructed to preserve two properties-causality and row stochasticity. The attribution graph allows context attributions to be computed by marginalizing intermediate contributions along paths in the graph. Across multiple models, datasets, metrics, and methods, CAGE improves context attribution faithfulness, achieving average gains of up to 40%.
format Preprint
id arxiv_https___arxiv_org_abs_2512_15663
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explaining the Reasoning of Large Language Models Using Attribution Graphs
Walker, Chase
Ewetz, Rickard
Artificial Intelligence
Computation and Language
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 introduces an attribution graph: a directed graph that quantifies how each generation is influenced by both the prompt and all prior generations. The graph is constructed to preserve two properties-causality and row stochasticity. The attribution graph allows context attributions to be computed by marginalizing intermediate contributions along paths in the graph. Across multiple models, datasets, metrics, and methods, CAGE improves context attribution faithfulness, achieving average gains of up to 40%.
title Explaining the Reasoning of Large Language Models Using Attribution Graphs
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2512.15663