Task-Specific Prompt Recycling Across Updated ML Models
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Task-specific prompts for machine-learned models are closely coupled to the state of the model, necessitating the creation of new prompts when the model is updated, which is computationally expensive and resource-intensive.
Innovation Solution
A method and system for recycling task-specific prompts by determining the difference between a base and updated machine-learned model and modifying the prompts accordingly to adapt them to the new model state, reducing the need for re-creation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If task-specific prompts are closely coupled to the model parameters, then the model can perform tasks accurately, but new prompts must be created when the model is updated, increasing computational cost
Solution Approach 1:
The patent applies preliminary action by pre-computing and storing the relationship between model parameters and prompt embeddings in a lookup table during model training. When the model is updated, the system retrieves and adjusts existing prompt embeddings from the lookup table based on parameter differences, rather than creating new prompts from scratch. This preliminary preparation enables efficient prompt adaptation to model updates while maintaining task performance accuracy.
2Reliability
If task-specific prompts are created for each model update, then the prompts remain optimized for the current model state, but significant computational resources and time are consumed
Solution Approach 1:
The patent applies copying by retrieving existing prompt embeddings from a lookup table and copying them for use with updated models. Instead of creating entirely new prompts, the system copies base prompt embeddings and applies minimal adjustments based on model parameter differences. This copying approach maintains prompt-model compatibility while dramatically reducing the time and computational resources required compared to creating prompts from scratch for each model update.
3Stability of the object's composition
If prompts are frozen with the model, then they work well for the base model, but they become obsolete when the model undergoes updates or fine-tuning
Solution Approach 1:
The patent applies dynamics by making prompt embeddings adaptive rather than static. The system stores prompt embeddings in a lookup table indexed by model parameter states and dynamically retrieves or adjusts the appropriate prompt embeddings based on the current model version. This dynamic approach allows prompts to automatically adapt to model updates while maintaining consistency within each model version, resolving the contradiction between prompt stability and model adaptability.
Data Source
AI summary
Systems and methods of the present disclosure are directed to a computer-implemented method for recycling of task-specific prompts for machine-learned models. The method includes obtaining a task-specific prompt for a first machine-learned model, wherein the task-specific prompt is indicative of a task of a plurality of tasks the first machine-learned model is configured to perform. includes determining a difference between the first machine-learned model and a second machine-learned model different than the first machine-learned model. The method includes, based at least in part on the difference, modifying the task-specific prompt to obtain an updated task-specific prompt that corresponds to the second machine-learned model.


