Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding

Zikai Xiao, Ziyang Wang, Wen Ma, Yan Zhang, Wei Shen +3 more
6/10/2025
cs.CL

No confident code implementation found for this paper.

Abstract

While Large Language Models (LLMs) support long contexts, they struggle with performance degradation within the context window. Current solutions incur prohibitive training costs, leaving statistical behaviors and cost-effective approaches underexplored.

Show full abstract

From the decoding perspective, we identify the Posterior Salience Attenuation (PSA) phenomenon, where the salience ratio correlates with long-text performance degradation. Notably, despite the attenuation, gold tokens still occupy high-ranking positions in the decoding space. Motivated by it, we propose the training-free Positional Contrastive Decoding (PCD) that contrasts the logits derived from long-aware attention with those from designed local-aware attention, enabling the model to focus on the gains introduced by large-scale short-to-long training. Through the analysis of long-term decay simulation, we demonstrate that PCD effectively alleviates attention score degradation. Experimental results show that PCD achieves state-of-the-art performance on long-context benchmarks.

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{xiao2025mitigating,
  title  = {Mitigating Posterior Salience Attenuation in Long-Context LLMs with Positional Contrastive Decoding},
  author = {Zikai Xiao and Ziyang Wang and Wen Ma and Yan Zhang and Wei Shen and Yan Wang and Luqi Gong and Zuozhu Liu},
  year   = {2025},
  eprint = {2506.08371},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.08371v2}
}

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

Discussion