Papers › Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning

Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning

1 Jun 2026ICMLarXiv:2606.01967added by Syntology

Wenhang Shi, Yiren Chen, Shuqing Bian, Zhe Zhao, Jinhao Dong, Pengfei Hu, Wei Lu, Xiaoyong Du

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2606.01967")

Code

Syntology Ran 8 of 14 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Eric8932/SAPO found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 8 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · violated contract
2ran · our draft was wrong
1ran · fixture could not drive it
3ran
6unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Eric8932/SAPO. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AdaptedAttention Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · b0d4930635911b22 · report
AdaptionPromptConfig Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 5dd8180f4190e417 · report
PeftConfigMixin Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 5e9f03c839ac9752 · report
_get_submodules Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 127b2b488cacb9c4 · report
is_adaption_prompt_trainable Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · 56f9a78a6bf96dc2 · report
llama_apply_rotary_pos_emb Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · fixture could not drive it no licence file found · pointer only · 1b3b0b10b6eb22b0 · report
llama_compute_query_states Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 69890b767e2d4847 · report
llama_rotate_half Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · 47805bd9ef4bfdd8 · report
AdaptionPromptModel Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · d717b0d33731ef3d · report
PeftConfig Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · 39fd720bdfd54938 · report
PeftType Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · e18ccecc6524cf57 · report
TaskType Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · fa1641c2e7bbbae1 · report
_freeze_adapter Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · 599fe61280ffc433 · report
prepare_config Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py found in paper text by Syntology unverified no licence file found · pointer only · b48f3b95aab0a0de · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2606.01967, was issued in June 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections