English

Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search

Computation and Language 2025-09-23 v2

Abstract

Large Language Models (LLMs) often struggle to maintain their original performance when faced with semantically coherent but task-irrelevant contextual information. Although prior studies have explored this issue using fixed-template or retrieval-based distractions, such static methods show limited effectiveness against contemporary models. To address this problem, we propose a dynamic distraction generation framework based on tree search, where the generation process is guided by model behavior. Without modifying the original question or answer, the method efficiently produces challenging adaptive distractions across multiple datasets, enabling systematic stress testing of LLMs' contextual robustness. Experiments on four benchmarks demonstrate that the generated distractions lead to an average performance drop of over 45\% for mainstream models. Further comparisons of mitigation strategies show that prompt-based optimization methods yield limited gains, whereas post-training approaches (e.g., DPO) significantly enhance the model's contextual robustness. The results indicate that these issues do not stem from knowledge deficits in LLMs, but from a fundamental inability to maintain consistent reasoning under contextual distraction, posing a major challenge to the reliability of LLMs in real-world applications. The code is publicly available at https://github.com/wyf23187/Adaptive_Distractions.

Keywords

Cite

@article{arxiv.2502.01609,
  title  = {Adaptive Distraction: Probing LLM Contextual Robustness with Automated Tree Search},
  author = {Yanbo Wang and Zixiang Xu and Yue Huang and Chujie Gao and Siyuan Wu and Jiayi Ye and Pin-Yu Chen and Xiuying Chen and Xiangliang Zhang},
  journal= {arXiv preprint arXiv:2502.01609},
  year   = {2025}
}
R2 v1 2026-06-28T21:30:59.519Z