Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning
Wenhang ShiYiren ChenSBShuqing Bian
Zhe Zhao
Jinhao DongPengfei HuWLWei LuXiaoyong Du Wenhang Shi
Yiren Chen
SBShuqing Bian

Zhe Zhao

Jinhao Dong
Pengfei Hu
WLWei Lu
Xiaoyong Du
+8
The paper reveals that semantically equivalent training prompts cause drastically different cross-task forgetting and generalization in LLM fine-tuning, despite yielding similar in-task performance. These cross-task impacts are positively correlated across tasks, and superior prompts can be identified by task loss prior to learning. Leveraging this, the authors propose State-Adaptive Prompt Optimization (SAPO), which treats the training prompt as a dynamic, state-adaptive variable rather than a static input. SAPO mitigates forgetting and improves generalization, outperforming state-of-the-art methods on diverse benchmarks.

arXiv ·
· June 1, 2026