Abstract
Parameter-efficient methods are able to use a single frozen pre-trained large language model (LLM) to perform many tasks by learning task-specific soft prompts that modulate model behavior when concatenated to the input text. However, these learned prompts are tightly coupled to a given frozen model -- if the model is updated, corresponding new prompts need to be obtained. In this work, we propose and investigate several approaches to "Prompt Recycling" where a prompt trained on a source model is transformed to work with the new target model. Our methods do not rely on supervised pairs of prompts, task-specific data, or training updates with the target model, which would be just as costly as re-tuning prompts with the target model from scratch. We show that recycling between models is possible (our best settings are able to successfully recycle 88.9% of prompts, producing a prompt that out-performs baselines), but significant performance headroom remains, requiring improved recycling techniques.
Introduction
Prompt tuning has emerged as a powerful paradigm for adapting large language models (LLMs) to specific tasks without the need for full parameter updates. By learning a small set of continuous vectors—"soft prompts"—concatenated to the input, practitioners can steer a frozen model's behavior. However, a significant drawback is the tight coupling between these prompts and the specific model weights they were trained against. When a model is updated or scaled, existing prompts often become obsolete, necessitating expensive retraining for every task. This paper introduces "Prompt Recycling," a method to migrate these learned prompts across different model versions and sizes without additional task-specific training.
Methodology: The Prompt Recycler
The core idea of prompt recycling is to transform a source prompt ($P_s$) into a target prompt ($P'_t$) using the shared vocabulary space between models. The authors propose three task-agnostic recyclers ($r$):
- v2v-lin (Linear Transformation): Maps vocabulary embeddings from the source to the target model using a simple linear projection solved via least squares.
- v2v-nn (Neural Network): Employs a small neural network with ReLU activations to learn a more complex mapping between embedding spaces.
- lin-comb (Linear Combination): Represents source prompt vectors as weighted sums of the source model's vocabulary and reconstructs the target prompt using those same weights on the target model's vocabulary.
These methods are task-agnostic and do not require any training on the target model, making them highly efficient for multi-task environments.
Experimental Results
The study evaluates recycling on sentiment analysis benchmarks (SST2 and IMDB). While recycling works effectively for tasks where the target model has some zero-shot capability, several key insights emerged regarding the nature of prompt transferability.
The Overfitting Penalty
A critical finding is that prompts trained for longer durations on a source model become harder to recycle. As training progresses, prompts overfit to the specific internal activation patterns and "quirks" of the source model.
As shown in the figure above, prompts from earlier training stages (e.g., 5,000 steps) often transfer better than those trained for 20,000 steps. This suggests that "better" source prompts are not necessarily more "recyclable."
Model Scaling and Initialization
Recycling from a Large model to a Base model proved more robust than same-size transfers, suggesting that larger models may learn more universal task representations. Furthermore, initialization plays a vital role; starting source prompt training with "Class Labels" or using "SPoT" (Source Prompt Transfer) significantly improved subsequent recycling success compared to random initialization.
Conclusion and Future Work
Prompt recycling achieves a success rate of 88.9% in outperforming zero-shot baselines, providing a valuable "warm start" for model updates. However, a significant accuracy gap remains compared to retraining from scratch. Future research should focus on regularization techniques to prevent source-model overfitting and extending these methods to cross-architecture transfers and open-ended generative tasks.
Summary updated