Saved in:
Bibliographic Details
Main Authors: Shi, Wenhang, Chen, Yiren, Bian, Shuqing, Zhao, Zhe, Dong, Jinhao, Hu, Pengfei, Lu, Wei, Du, Xiaoyong
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2606.01967
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914622782570496
author Shi, Wenhang
Chen, Yiren
Bian, Shuqing
Zhao, Zhe
Dong, Jinhao
Hu, Pengfei
Lu, Wei
Du, Xiaoyong
author_facet Shi, Wenhang
Chen, Yiren
Bian, Shuqing
Zhao, Zhe
Dong, Jinhao
Hu, Pengfei
Lu, Wei
Du, Xiaoyong
contents While prompt engineering is instrumental in maximizing the capabilities of Large Language Models (LLMs) during inference, the role of prompts during training remains critically underexplored. Prevailing fine-tuning paradigms typically treat training prompts as mere surface forms, assuming that semantically equivalent instructions yield identical learning outcomes. However, we reveal that this equivalence is deceptive: while paraphrased prompts often lead to comparable in-task performance, they induce drastically different cross-task impacts regarding catastrophic forgetting and generalization. Crucially, these impacts are positively correlated across tasks, indicating the existence of superior prompts that consistently yield better performance. Furthermore, we discover that these superior prompts can be robustly identified by task loss prior to learning. Leveraging these insights, we introduce State-Adaptive Prompt Optimization (SAPO), a lightweight yet effective training strategy that shifts task formulation from a static input to a dynamic, state-adaptive variable. Comprehensive experiments on diverse benchmarks confirm its effectiveness, which significantly mitigates forgetting while improving generalization, achieving substantial performance gains over state-of-the-art methods. These results provide insights into how training prompts shape learning dynamics and offer a practical recipe for robust fine-tuning. Our code is available at https://github.com/Eric8932/SAPO.
format Preprint
id arxiv_https___arxiv_org_abs_2606_01967
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning
Shi, Wenhang
Chen, Yiren
Bian, Shuqing
Zhao, Zhe
Dong, Jinhao
Hu, Pengfei
Lu, Wei
Du, Xiaoyong
Computation and Language
While prompt engineering is instrumental in maximizing the capabilities of Large Language Models (LLMs) during inference, the role of prompts during training remains critically underexplored. Prevailing fine-tuning paradigms typically treat training prompts as mere surface forms, assuming that semantically equivalent instructions yield identical learning outcomes. However, we reveal that this equivalence is deceptive: while paraphrased prompts often lead to comparable in-task performance, they induce drastically different cross-task impacts regarding catastrophic forgetting and generalization. Crucially, these impacts are positively correlated across tasks, indicating the existence of superior prompts that consistently yield better performance. Furthermore, we discover that these superior prompts can be robustly identified by task loss prior to learning. Leveraging these insights, we introduce State-Adaptive Prompt Optimization (SAPO), a lightweight yet effective training strategy that shifts task formulation from a static input to a dynamic, state-adaptive variable. Comprehensive experiments on diverse benchmarks confirm its effectiveness, which significantly mitigates forgetting while improving generalization, achieving substantial performance gains over state-of-the-art methods. These results provide insights into how training prompts shape learning dynamics and offer a practical recipe for robust fine-tuning. Our code is available at https://github.com/Eric8932/SAPO.
title Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning
topic Computation and Language
url https://arxiv.org/abs/2606.01967