Proceedings

Quantifying Semantic Inertia in Large Language Models Under Rapid Topic Switching

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 780-788.

https://doi.org/10.24963/ijcai.2026/88

Abstract

In multi-turn interactions, large language models (LLMs) often exhibit a persistent influence from prior turns, even after an explicit topic switch. This behavior, which we term semantic inertia, can cause responses to deviate from the expected output distribution for an independent task, undermining task isolation and reliability. This paper introduces a rigorous experimental framework to systematically characterize the nature, form, and dynamics of semantic inertia. We propose an operational definition and a causal-contrastive method that isolates semantic carryover from confounding factors like context length. Through a series of experiments on five leading LLMs, we (i) confirm the existence of semantic inertia and identify its boundary conditions; (ii) model its decay over the course of generation, revealing a characteristic timescale and a heavy-tailed distribution; (iii) decompose its effects on three distinct channels—factual accuracy, structural integrity, and stylistic expression; and (iv) probe its controllability using prompt-based interventions. Our key findings show that inertia is not a simple length effect but an intrinsic dynamic, strongest in the initial part of a generation and decaying over a timescale of approximately 100-200 tokens. Its impact is most pronounced as a stylistic residue, while its effect on factual correctness is weaker and highly dependent on the task and domain switch. Crucially, we find that prompt-level ``reset'' instructions are unreliable and often counter-productive, while conflicting constraints consistently amplify, rather than resolve, output deviation. These results suggest that governing semantic inertia requires system-level state management mechanisms rather than relying on prompt engineering alone.

  1. [Arbuzov et al., 2025] Mikhail L Arbuzov, Alexey A Shvets, and Sisong Beir. Beyond exponential decay: Rethink- ing error accumulation in large language models. arXiv preprint arXiv:2505.24187, 2025.
  2. [Broadfield et al., 2025] Owen Broadfield, Caleb Smith, Callum Winterbourne, Felix Manderston, Kent Blumberg, and Robert Pike. Lexical inertia control in transformer architectures: A study on temporal token reweighting for large language models. 2025.
  3. [Chen et al., 2024a] Nuo Chen, Jiqun Liu, Xiaoyu Dong, Qi- jiong Liu, Tetsuya Sakai, and Xiao-Ming Wu. Ai can be cognitively biased: An exploratory study on thresh- old priming in llm-based batch relevance assessment. In Proceedings of the 2024 Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region, pages 54-63, 2024.
  4. [Chen et al., 2024b] Yaofo Chen, Zeng You, Shuhai Zhang, Haokun Li, Yirui Li, Yaowei Wang, and Mingkui Tan. Core context aware transformers for long context language modeling. arXiv preprint arXiv:2412.12465, 2024.
  5. [Fang et al., 2025] Hanpei Fang, Sijie Tao, Nuo Chen, Kai- Xin Chang, and Tetsuya Sakai. Do large language models favor recent content? a study on recency bias in llm-based reranking. In Proceedings of the 2025 Annual Interna- tional ACM SIGIR Conference on Research and Develop- ment in Information Retrieval in the Asia Pacific Region, pages 85-94, 2025.
  6. [Guan et al., 2025] Bryan Guan, Tanya Roosta, Peyman Passban, and Mehdi Rezagholizadeh. The order effect: In- vestigating prompt sensitivity to input order in llms. arXiv preprint arXiv:2502.04134, 2025.
  7. [Guo et al., 2023] Jing Guo, Nan Li, Jianchuan Qi, Hang Yang, Ruiqiao Li, Yuzhen Feng, Si Zhang, and Ming Xu. Empowering working memory for large language model agents. arXiv preprint arXiv:2312.17259, 2023.
  8. [Gupta et al., 2024] Akash Gupta, Ivaxi Sheth, Vyas Raina, Mark Gales, and Mario Fritz. Llm task interference: An initial study on the impact of task-switch in conversational history. In Proceedings of the 2024 Conference on Em- pirical Methods in Natural Language Processing, pages 14633-14652, 2024.
  9. [Kingsley et al., 2025] Blaine Kingsley, Benedict Wicker- sham, Andrew Delta, Xavier Martin, Andrew Scolto, and Peter Appleyard. Probabilistic contextual resonance in large language model decoding through selfmodulated se- mantic interference. 2025.
  10. [Leonardi et al., 2024] Francois Leonardi, Patrick Feldman, Matthew Almeida, William Moretti, and Charles Iverson. Contextual feature drift in large language models: An ex- amination of adaptive retention across sequential inputs. 2024.
  11. [Li et al., 2023] Daliang Li, Ankit Singh Rawat, Manzil Za- heer, Xin Wang, Michal Lukasik, Andreas Veit, Felix Yu, and Sanjiv Kumar. Large language models with control- lable working memory. In Findings of the association for computational linguistics: ACL 2023, pages 1774-1793, 2023.
  12. [Li et al., 2025] Yubo Li, Xiaobin Shen, Xinyu Yao, Xuey- ing Ding, Yidi Miao, Ramayya Krishnan, and Rema Pad- man. Beyond single-turn: A survey on multi-turn in- teractions with large language models. arXiv preprint arXiv:2504.04717, 2025.
  13. [Liskavets et al., 2025] Barys Liskavets, Maxim Ushakov, Shuvendu Roy, Mark Klibanov, Ali Etemad, and Shane K Luke. Prompt compression with context-aware sentence encoding for fast and improved llm inference. In Proceed- ings of the AAAI Conference on Artificial Intelligence, vol- ume 39, pages 24595-24604, 2025.
  14. [Liu et al., 2024] Nelson F Liu, Kevin Lin, John Hewitt, Ashwin Paranjape, Michele Bevilacqua, Fabio Petroni, and Percy Liang. Lost in the middle: How language mod- els use long contexts. Transactions of the Association for Computational Linguistics, 12:157-173, 2024.
  15. [O'Brien et al., 2024] Kyle O'Brien, Nathan Ng, Isha Puri, Jorge Mendez, Hamid Palangi, Yoon Kim, Marzyeh Ghas- semi, and Thomas Hartvigsen. Improving black-box robustness with in-context rewriting. arXiv preprint arXiv:2402.08225, 2024.
  16. [Patel et al., 2023] Ajay Patel, Delip Rao, Ansh Kothary, Kathleen McKeown, and Chris Callison-Burch. Learning interpretable style embeddings via prompting llms. arXiv preprint arXiv:2305.12696, 2023.
  17. [Peysakhovich and Lerer, 2023] Alexander Peysakhovich and Adam Lerer. Attention sorting combats recency bias in long context language models. arXiv preprint arXiv:2310.01427, 2023.
  18. [Raimondi and Gabbrielli, 2025] Bianca Raimondi and Maurizio Gabbrielli. Exploiting primacy effect to improve large language models. In Proceedings of the 15th International Conference on Recent Advances in Natural Language Processing-Natural Language Processing in the Generative AI Era, pages 989-997, 2025.
  19. [Shaki et al., 2023] Jonathan Shaki, Sarit Kraus, and Michael Wooldridge. Cognitive effects in large language models. arXiv preprint arXiv:2308.14337, 2023.
  20. [Spataru et al., 2024] Ava Spataru, Eric Hambro, Elena Voita, and Nicola Cancedda. Know when to stop: A study of semantic drift in text generation. arXiv preprint arXiv:2404.05411, 2024.
  21. [Talukdar and Biswas, 2024] Wrick Talukdar and Anjanava Biswas. Improving large language model (llm) fi- delity through context-aware grounding: A systematic approach to reliability and veracity. arXiv preprint arXiv:2408.04023, 2024.
  22. [Wu et al., 2024] Xuansheng Wu, Wenlin Yao, Jianshu Chen, Xiaoman Pan, Xiaoyang Wang, Ninghao Liu, and Dong Yu. From language modeling to instruction follow- ing: Understanding the behavior shift in llms after instruc- tion tuning. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computa- tional Linguistics: Human Language Technologies (Vol- ume 1: Long Papers), pages 2341-2369, 2024.
  23. [Xiong et al., 2022] Wenhan Xiong, Barlas Oguz, Anchit Gupta, Xilun Chen, Diana Liskovich, Omer Levy, Scott Yih, and Yashar Mehdad. Simple local attentions remain competitive for long-context tasks. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Lan- guage Technologies, pages 1975-1986, 2022.
  24. [Xu et al., 2024] Rongwu Xu, Zehan Qi, Zhijiang Guo, Cunxiang Wang, Hongru Wang, Yue Zhang, and Wei Xu. Knowledge conflicts for llms: A survey. arXiv preprint arXiv:2403.08319, 2024.
  25. [Yeh et al., 2023] Kai-Ching Yeh, Jou-An Chi, Da-Chen Lian, and Shu-Kai Hsieh. Evaluating interfaced llm bias. In Proceedings of the 35th Conference on Com- putational Linguistics and Speech Processing (ROCLING 2023), pages 292-299, 2023.
  26. [Yi et al., 2025] Zihao Yi, Jiarui Ouyang, Zhe Xu, Yuwen Liu, Tianhao Liao, Haohao Luo, and Ying Shen. A sur- vey on recent advances in llm-based multi-turn dialogue systems. ACM Computing Surveys, 58(6):1-38, 2025.
  27. [Yin et al., 2023] Wenpeng Yin, Qinyuan Ye, Pengfei Liu, Xiang Ren, and Hinrich Schütze. Llm-driven instruction following: Progresses and concerns. In Proceedings of the 2023 Conference on Empirical Methods in Natural Lan- guage Processing: Tutorial Abstracts, pages 19-25, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards