The Fragile Truth of Saliency: Improving LLM Input Attribution via Attention Bias Optimization

Yihua Zhang, Chang-Sheng Wang, Yi-Wei Chen, Chong-Yu Fan, Jing-Han Jia +1 more
1/1/2025

No confident code implementation found for this paper.

Abstract

Input saliency aims to quantify the influence of input tokens on the output of large language models (LLMs), which has been widely used for prompt engineering, model interpretability, and behavior attribution. Despite the proliferation of saliency techniques, the field lacks a standardized and rigorous evaluation protocol.

Show full abstract

In this work, we introduce a stress-testing framework inspired by the needle-in-a-haystack (NIAH) setting to systematically assess the reliability of seven popular input saliency methods. Our evaluation reveals a surprising and critical flaw: existing methods consistently assign non-trivial importance to irrelevant context, and this attribution error worsens as input length increases. To address this issue, we propose a novel saliency method based on Attention Bias Optimization (ABO), which explicitly optimizes the attention bias associated with each input token to quantify its causal impact on target token generation. ABO robustly outperforms existing methods by 10 ∼ 30% in saliency accuracy across diverse NIAH tasks, maintains effectiveness up to 10K-token prompts, and enables practical applications including zero-shot detoxification, sentiment steering, and reasoning-error correction. Our findings highlight the limitations of prevalent attribution methods and establish ABO as a principled alternative for accurate token attribution.

DOISemantic Scholar

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{zhang2025fragile,
  title  = {The Fragile Truth of Saliency: Improving LLM Input Attribution via Attention Bias Optimization},
  author = {Yihua Zhang and Chang-Sheng Wang and Yi-Wei Chen and Chong-Yu Fan and Jing-Han Jia and Sijia Liu},
  year   = {2025},
  doi    = {10.52202/085713-5164},
  url    = {https://doi.org/10.52202/085713-5164},
  journal = {Neural Information Processing Systems}
}

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/56b0d8e748b9d87875fdee2beb9acdfeb3a25a0f.svg)](https://codeofpaper.com/paper/56b0d8e748b9d87875fdee2beb9acdfeb3a25a0f)

Discussion