Don't Start Over: A Cost-Effective Framework for Migrating Personalized Prompts Between LLMs

Ziyi Zhao, Chongming Gao, Yang Zhang, Haoyan Liu, Weinan Gan, Huifeng Guo, Yong Liu, Fuli Feng

Abstract

Personalization in Large Language Models (LLMs) often relies on user-specific soft prompts. However, these prompts become obsolete when the foundation model is upgraded, necessitating costly, full-scale retraining. To overcome this limitation, we propose the Prompt-level User Migration Adapter (PUMA), a lightweight framework to efficiently migrate personalized prompts across incompatible models. PUMA utilizes a parameter-efficient adapter to bridge the semantic gap, combined with a group-based user selection strategy to significantly reduce training costs. Experiments on three large-scale datasets show our method matches or even surpasses the performance of retraining from scratch, reducing computational cost by up to 98%. The framework demonstrates strong generalization across diverse model architectures and robustness in advanced scenarios like chained and aggregated migrations, offering a practical path for the sustainable evolution of personalized AI by decoupling user assets from the underlying models.

The Challenge of Model Upgrades

To provide personalized experiences, such as tailored recommendations or adaptive assistants, developers often employ a "1+N" architecture: one frozen, general-purpose foundation model paired with $N$ unique "soft prompts" (trainable vectors) representing millions of individual users.

However, this creates a massive vendor lock-in problem. Foundation models are updated frequently—whether upgrading to a smarter model or swapping to a smaller, cheaper variant. Because soft prompts are tied to the specific embedding space of the model they were trained on, changing the foundation model breaks the semantic alignment. Until now, the only solution was to discard the old prompts and retrain all $N$ users from scratch on the new model, which is computationally prohibitive at scale. This paper addresses the "N-to-N" migration challenge: how to transfer a massive corpus of personalized prompts across incompatible LLMs cheaply and effectively.

PUMA: Prompt-level User Migration Adapter

The authors propose the Prompt-level User Migration Adapter (PUMA), which consists of two main components designed to bridge the gap between models without exhaustive retraining.

The PUMA architecture, illustrating the migration adapter and the group-based user selection strategy.
  1. The Migration Adapter: Instead of retraining individual prompts, PUMA trains a single, lightweight feed-forward network (with residual connections and Layer Normalization) to map source prompt vectors to the target model's embedding space. This adapter is trained end-to-end using the target model's task loss.
  2. Group-Based User Selection (Coreset): Training the adapter on millions of users is still inefficient. PUMA uses a clever sampling strategy to find a tiny, highly representative subset of users to train the adapter. It does this in two stages:
  3. Diversity: It clusters users using K-means on their source prompt embeddings.
  4. Complexity: Within each cluster, it stratifies users by their historical output variance. Users with high/medium variance have more nuanced, complex tastes, so the algorithm samples them more heavily than users with consistent, simple preferences.

Performance and Efficiency

Evaluated on large-scale datasets like Amazon (Movies & TV), Yelp, and MIND, PUMA consistently matches or even surpasses the performance of full retraining.

Comparison of PUMA performance (RMSE) against the number of users used for training, relative to full retraining.
  • Generalization Beats Memorization: Surprisingly, PUMA often outperforms retraining all users from scratch. By learning a single, supervised mapping function across a diverse subset of users, the adapter discovers a more generalized and robust transformation into the target model's semantic space, avoiding the overfitting that can occur when training user prompts in isolation.
  • Massive Efficiency Gains: PUMA achieved a 50x speedup (a 98% reduction in compute). On the Amazon dataset, training PUMA on a subset of just 2,000 users took 0.48 hours, whereas full retraining took 24 hours.
  • Robustness: In a chained migration stress test across five distinct architectures (Llama3.2 → Qwen2.5 → Gemma-3 → StableLM-2 → Phi-3), PUMA maintained highly stable performance without degrading, proving it doesn't suffer from catastrophic cumulative error.

Discussion and Future Directions

PUMA demonstrates that user assets can be successfully decoupled from the underlying foundation models. One key insight is that variance serves as a "cheap proxy" for complexity; consistent users are easy to model, while high-variance users force the adapter to learn better mappings.

Future work will look at moving beyond heuristic user selection toward dynamic policies using Reinforcement Learning. Additionally, the authors plan to explore co-migrating item representations alongside user prompts to provide a more holistic migration path for recommendation systems. This framework offers a practical, sustainable path for the evolution of personalized AI, ensuring that user-specific knowledge is preserved across model generations.

Summary updated

BibTeX
@inproceedings{zhao2026don,
  author = {Ziyi Zhao and Chongming Gao and Yang Zhang and Haoyan Liu and Weinan Gan and Huifeng Guo and Yong Liu and Fuli Feng},
  title = {{Don't Start Over: A Cost-Effective Framework for Migrating Personalized Prompts Between LLMs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i41.40805},
}
Figure