SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.01967 · ICML · 2026

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

J Kim, Zhe Zhao, Xiaoyong Du, C Kim, G Krueger, M Lin, S Lin, P Lue, D M'ely, O Keefe, Pengfei Hu, Wei Lu, and 6 more

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 3 have no contract verdict; 3 failures of our instrument; 6 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.01967.json · badge: /api/ran/2606.01967.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Eric8932/SAPO community
Papers with Code archive
8 ran · 6 no recorded run
FunctionStatusWhere it lives
AdaptedAttention Ran
ran on a synthesized input · constructed an object; no result was computed
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("b0d4930635911b22")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AdaptionPromptConfig Ran
ran on a synthesized input · constructed an object; no result was computed
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("5dd8180f4190e417")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

PeftConfigMixin Ran
ran on a synthesized input · constructed an object; no result was computed
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("5e9f03c839ac9752")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

_get_submodules Ran
ran; our contract draft was wrong, not the code
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("127b2b488cacb9c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_adaption_prompt_trainable Ran
ran, violated the contract we drafted
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("56f9a78a6bf96dc2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

llama_apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("1b3b0b10b6eb22b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

llama_compute_query_states Ran
ran; our contract draft was wrong, not the code
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("69890b767e2d4847")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

llama_rotate_half Ran
ran, violated the contract we drafted
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("47805bd9ef4bfdd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

AdaptionPromptModel Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("d717b0d33731ef3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PeftConfig Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("39fd720bdfd54938")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

PeftType Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("e18ccecc6524cf57")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

TaskType Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("fa1641c2e7bbbae1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

_freeze_adapter Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("599fe61280ffc433")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

prepare_config Not yet run
unverified (harvested, no recorded run)
Eric8932/SAPO/src/peft_custom/tuners/adaption_prompt.py
pointer only (licence: NONE) · get_code("b48f3b95aab0a0de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Eric8932/SAPO when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
llama_apply_rotary_pos_emb
brick of this paper's assembly: helper
6 other papers
6 dated earlier
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2310.18339 (2023-10)
When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
and 3 more not named here
llama_compute_query_states
brick of this paper's assembly: helper
6 other papers
6 dated earlier
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2310.18339 (2023-10)
When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
and 3 more not named here
llama_rotate_half
brick of this paper's assembly: helper
6 other papers
6 dated earlier
2307.02053 (2023-07)
Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning
2310.18339 (2023-10)
When MOE Meets LLMs: Parameter Efficient Fine-tuning for Multi-task Medical Applications
2403.08350 (2024-03)
CoIN: A Benchmark of Continual Instruction tuNing for Multimodel Large Language Model
and 3 more not named here
_get_submodules
brick of this paper's assembly: helper
5 other papers
5 dated earlier · 4 only as an assembly brick
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
2402.13717 (2024-02)
Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent
2408.10159 (2024-08)
Customizing Language Models with Instance-wise LoRA for Sequential Recommendation
and 2 more not named here
_freeze_adapter
brick of this paper's assembly: helper
4 other papers
4 dated earlier · 4 only as an assembly brick
2106.09685 (2021-06)
LoRA: Low-Rank Adaptation of Large Language Models
2402.13717 (2024-02)
Neeko: Leveraging Dynamic LoRA for Efficient Multi-Character Role-Playing Agent
2408.10159 (2024-08)
Customizing Language Models with Instance-wise LoRA for Sequential Recommendation
and 1 more not named here
TaskType
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
2406.18060 (2024-06)
AdaZeta: Adaptive Zeroth-Order Tensor-Train Adaption for Memory-Efficient Large Language Models Fine-Tuning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.01967")
get_code_for_paper("2606.01967")
have("2606.01967")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.01967.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.01967.svg)](https://syntology.ai/paper/2606.01967)

Connect an agent — have() is free.