PEARL: Towards Permutation-Resilient LLMs
Not on the map. Why?
Abstract (arXiv)
The in-context learning (ICL) capability of large language models (LLMs) enables them to perform challenging tasks using provided demonstrations. However, ICL is highly sensitive to the ordering of demonstrations, leading to instability in predictions. This paper shows that this vulnerability can be exploited to design a natural attack - difficult for model providers to detect - that achieves nearly 80% success rate on LLaMA-3 by simply permuting the demonstrations. Existing mitigation methods primarily rely on post-processing and fail to enhance the model's inherent robustness to input permutations, raising concerns about safety and reliability of LLMs. To address this issue, we propose Permutation-resilient learning (PEARL), a novel framework based on distributionally robust optimization (DRO), which optimizes model performance against the worst-case input permutation. Specifically, PEARL consists of a permutation-proposal network (P-Net) and the LLM. The P-Net generates the most challenging permutations by treating it as an optimal transport problem, which is solved using an entropy-constrained Sinkhorn algorithm. Through minimax optimization, the P-Net and the LLM iteratively optimize against each other, progressively improving the LLM's robustness. Experiments on synthetic pre-training and real-world instruction tuning tasks demonstrate that PEARL effectively mitigates permutation attacks and enhances performance. Notably, despite being trained on fewer shots and shorter contexts, PEARL achieves performance gains of up to 40% when scaled to many-shot and long-context scenarios, highlighting its efficiency and generalization capabilities.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Feb 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025Beyond Two-Stage Training: Cooperative SFT and RL for LLM Reasoningcited by 28
- 2025Latent Inter-User Difference Modeling for LLM Personalizationcited by 20
- 2025A Survey of Slow Thinking-based Reasoning LLMs using Reinforced Learning and Inference-time Scaling Lawcited by 18
- 2025EEPO: Exploration-Enhanced Policy Optimization via Sample-Then-Forgetcited by 14
- 2026The Power of Order: Fooling LLMs with Adversarial Table Permutationscited by 0
- 2026The Power of Order: Fooling LLMs with Adversarial Table Permutations1 May 2026
- 2025EEPO: Exploration-Enhanced Policy Optimization via Sample-Then-Forget7 Oct 2025
- 2025Beyond Two-Stage Training: Cooperative SFT and RL for LLM Reasoning8 Sep 2025
- 2025Latent Inter-User Difference Modeling for LLM Personalization28 Jul 2025
- 2025A Survey of Slow Thinking-based Reasoning LLMs using Reinforced Learning and Inference-time Scaling Law5 May 2025