Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling

Zhenghua Wang, Yiran Ding, Changze Lv, Tianlong Li, Zhibo Xu, Xiaohua Wang, Muling Wu, Tianyuan Shi, Shizheng Li, Qi Qian, Xuanjing Huang, Xiaoqing Zheng · Submission to ICLR 2026 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Large language models (LLMs) still struggle with the ''lost-in-the-middle'' problem, where critical information located in the middle of long-context inputs is often underrepresented or lost. While existing methods attempt to address this by combining multi-scale rotary position embeddings (RoPE), they typically suffer from high latency or rely on suboptimal hand-crafted scaling. To overcome these limitations, we introduce a layer-specific positional embedding scaling (LPES) method that assigns distinct scaling factors to each layer. LPES achieves a more balanced attention distribution without fine-tuning model parameters or increasing inference delay. A specially designed genetic algorithm is employed to efficiently select the optimal scaling factors for each layer by incorporating Bézier curves to reduce the search space. Extensive experiments demonstrate that LPES effectively mitigates positional attention bias and delivers consistent improvements across multiple long-context benchmarks, yielding up to an $11.2$\% accuracy gain on the key-value retrieval dataset.
BibTeX
@misc{wang2026mitigating,
  author = {Zhenghua Wang and Yiran Ding and Changze Lv and Tianlong Li and Zhibo Xu and Xiaohua Wang and Muling Wu and Tianyuan Shi and Shizheng Li and Qi Qian and Xuanjing Huang and Xiaoqing Zheng},
  title = {{Mitigating Position Bias in Transformers via Layer-Specific Positional Embedding Scaling}},
  year = {2026},
  eprint = {2606.27705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.27705},
}
Figure