Diagnosing and Mitigating Mid-Sequence Degradation in Recommender Systems
Linjiang Guo, Nitin Bisht, Shiqing Wu, Huan Huo, Xianzhi Wang, Guandong Xu
Abstract
Although attention-based sequential recommenders have achieved strong accuracy, they can exhibit a systematic failure mode, i.e., lost-in-the-middle, where attention disproportionately concentrates on sequence boundaries to informative middle behaviors. Through controlled perturbations, we find that this U-shaped bias persists even when collaborative signals are moved, indicating an architectural effect rather than a positional-encoding artifact. To mitigate this bias, we propose Disentangling and Calibrating Position Bias framework, which is a lightweight, plug-and-play calibration procedure that combines bias-adaptive masking during training with counterfactual logit calibration at inference to remove residual position-only effects. Experiments on diverse datasets demonstrate consistent improvements in ranking quality. Further ablations verify the contributions of both masking and calibration components.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on14
- Efficient Streaming Language Models with Attention SinksGuangxuan Xiao, Yuandong Tian, Beidi Chen, Song Han et al.ICLR 2024 · 1,714 citations
- Contrastive Learning for Sequential RecommendationXu Xie, Fei Sun, Zhaoyang Liu, Shiwen Wu et al.ICDE 2022 · 674 citations
- Sequential Recommendation with Graph Neural NetworksJianxin Chang, Chen Gao, Yu Zheng, Yiqun Hui et al.SIGIR 2021 · 435 citations
- Think before you speak: Training Language Models With Pause TokensSachin Goyal, Ziwei Ji, Ankit Singh Rawat, Aditya Krishna Menon et al.ICLR 2024 · 240 citations
- Disentangled Self-Supervision in Sequential RecommendersJianxin Ma, Chang Zhou, Hongxia Yang, Peng Cui et al.KDD 2020 · 223 citations
Related papers
- Found in the middle: Calibrating Positional Attention Bias Improves Long Context UtilizationCheng-Yu Hsieh, Yung-Sung Chuang, Chun-Liang Li, Zifeng Wang et al.ACL Findings 2024 · 31 citations
- On the Emergence of Position Bias in TransformersXinyi Wu, Yifei Wang, Stefanie Jegelka, Ali JadbabaieICML 2025 · 1 citation
- Debiasing the Cloze Task in Sequential Recommendation with Bidirectional TransformersKhalil Damak, Sami Khenissi, Olfa NasraouiKDD 2022 · 10 citations
- Pre-train, Align, and Disentangle: Empowering Sequential Recommendation with Large Language ModelsYuhao Wang, Junwei Pan, Pengyue Jia, Wanyu Wang et al.SIGIR 2025 · 8 citations
- Attention Basin: Why Contextual Position Matters in Large Language ModelsZihao Yi, Zhenqing Ling, Delong Zeng, Haohao Luo et al.ACL 2026 · 2 citations
