Task-Specific Prompt Recycling Across Updated ML Models

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improvetask performance accuracyVSAvoidcomputational efficiency
Core Design Contradiction:
Measurement precisionVSProductivity

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.

Inventive Principle:
Principle #10Preliminary action

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

Engineering Contradiction:
Improveprompt-model compatibilityVSAvoidprompt creation time
Core Design Contradiction:
ReliabilityVSLoss of time

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.

Inventive Principle:
Principle #26Copying

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

Engineering Contradiction:
Improveprompt consistencyVSAvoidmodel update adaptability
Core Design Contradiction:
Stability of the object's compositionVSAdaptability or versatility

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.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250371043A1Task-Specific Prompt Recycling for Machine-Learned Models that Perform Multiple Tasks
Publication Date: 2025.12.04 GOOGLE LLC
  • US20250371043A1 patent drawing
  • US20250371043A1 patent drawing
  • US20250371043A1 patent drawing

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.