DeltaTrace: Efficient Signed Attribution for Reasoning Language Models

Chen Liang, Daoping Wu, Donghua Yang, Zhiyu Liang, Ying Zhang +2 more
10/19/2026
cs.LG

No confident code implementation found for this paper.

Abstract

We study how words in the context support or oppose a language model's response and present DeltaTrace, a novel attribution framework that explains the effect of input tokens on a fixed model response. DeltaTrace measures how the response's log-probability changes when the context tokens being explained are masked. To distribute this difference among source tokens, it constructs operator-specific local rules for finite changes and composes them backward through the computational graph using effective secant slopes. Each token is assigned a signed attribution as the inner product of its embedding displacement and the corresponding backward-propagated slope. Local conservation makes these contributions sum to the measured score difference and preserves their meaning when aggregated over sentences or passages. DeltaTrace supports both attention and linear-attention models, with auxiliary memory growing linearly with sequence length at fixed model dimensions and chunk size. On the evaluated attention model, DeltaTrace achieves the lowest deletion-faithfulness scores (RISE and MAS) on most retrieval and reasoning tasks and the highest needle-in-a-haystack Recall, exceeding FlashTrace by 5.67-24.33 percentage points. On the evaluated hybrid attention and linear-attention model, DeltaTrace lowers RISE on 9 tasks and MAS on 12 relative to FlashTrace.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liang2026deltatrace,
  title  = {DeltaTrace: Efficient Signed Attribution for Reasoning Language Models},
  author = {Chen Liang and Daoping Wu and Donghua Yang and Zhiyu Liang and Ying Zhang and Shuguang Xiong and Hongzhi Wang},
  year   = {2026},
  eprint = {2610.25877},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.25877v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.25877.svg)](https://codeofpaper.com/paper/2610.25877)

Discussion