Beyond Magic Words: Sharpness-Aware Prompt Evolving for Robust Large Language Models

Apr 23, 2026·
Guancheng Wan
,
Lucheng Fu
,
Haoxin Liu
Yiqiao Jin
Yiqiao Jin
,
Hejia Geng
,
Eric Hanchen Jiang
,
Hui Yi Leong
,
Jinhe Bi
,
Yunpu Ma
,
Xiangru Tang
,
B. Aditya Prakash
,
Yizhou Sun
,
Wei Wang
· 1 min read
Abstract
Prompt engineering for large language models often relies on brittle ‘magic words’ that fail to generalize across tasks and models. We propose a sharpness-aware prompt evolving framework that optimizes prompts for robustness by penalizing sharp regions in the prompt loss landscape. Across diverse benchmarks and LLM families, sharpness-aware prompt evolution produces prompts that are both stronger on the target task and more transferable. ICLR 2026 acceptance rate: 28%.
Type
Publication
International Conference on Learning Representations (ICLR) 2026

Abstract

Prompt engineering for large language models often relies on brittle “magic words” that fail to generalize across tasks and models. We propose a sharpness-aware prompt evolving framework that optimizes prompts for robustness by penalizing sharp regions in the prompt loss landscape.

Yiqiao Jin
Authors
Ph.D. Candidate in Computer Science
My research focuses on adaptive and efficient AI systems, with emphasis on LLM agents, agent memory, self-distillation, multimodal LLMs, and structured multi-agent intelligence.