Generative Model Prompt Simplification Using Cached Intermediate Results

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generative AI models require significant computational resources and data transfer between memories due to large matrix sizes and increased computation when processing lengthy prompts, leading to prolonged processing times.

Innovation Solution

Simplify prompts into simplified forms including intent and details, search for stored task records based on intent, and utilize intermediate computation results from previous tasks to execute the generative model, reducing computational load and data transfer.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the generative model processes longer prompts, then the model can handle more complex tasks and provide more detailed responses, but the computation time and data transfer requirements increase significantly

Engineering Contradiction:
Improveprompt handling capabilityVSAvoidprocessing time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent segments the prompt processing into two parts: a simplified prompt that is processed by the generative model and a detailed prompt that is stored and retrieved. The detailed prompt is divided into multiple records that can be searched and retrieved based on the simplified prompt, allowing the system to handle complex prompts efficiently without increasing computation time.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary action by pre-processing and storing detailed prompts in a database before they are needed. When a new prompt arrives, the system searches for matching stored records and retrieves only the necessary portions, avoiding the need to re-process entire detailed prompts and significantly reducing computation time.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If the generative model processes longer prompts, then the model can handle more complex tasks, but the amount of data transferred between memories increases

Engineering Contradiction:
Improveprompt handling capabilityVSAvoiddata transfer volume
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential information from detailed prompts and stores it in a simplified format in the database. When processing a new prompt, the system retrieves only the necessary stored records rather than transferring entire detailed prompts, significantly reducing data transfer volume while maintaining the ability to handle complex tasks.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent creates a copy of the detailed prompt in a simplified format and stores it in the database. This copy is then retrieved and used for processing, allowing the system to handle complex prompts without transferring the full original data, thus reducing data transfer requirements.

Inventive Principle:
Principle #26Copying

3Measurement precision

If the generative model uses larger matrices for computation, then the model can process prompts more accurately, but the computational load and processing time increase

Engineering Contradiction:
Improveprompt processing accuracyVSAvoidcomputational load
Core Design Contradiction:
Measurement precisionVSPower

Solution Approach 1:

The patent segments the computation process by separating the prompt simplification step from the generative model processing step. The simplification step reduces the input size to a manageable level, and the generative model then processes this simplified prompt with appropriate matrix sizes, achieving accurate processing without excessive computational load.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter of prompt length by transforming long detailed prompts into shorter simplified prompts through the simplification step. This parameter change allows the generative model to process the input with appropriate matrix sizes, maintaining accuracy while reducing computational load.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250348490A1Method of improving processing efficiency of generative model and electronic device for performing the method
Publication Date: 2025.11.13 SAMSUNG ELECTRONICS CO LTD
  • US20250348490A1 patent drawing
  • US20250348490A1 patent drawing
  • US20250348490A1 patent drawing

AI summary

A processing method of a generative model includes: obtaining a prompt; simplifying the prompt into a simplified prompt including an intent and details; searching for stored records of a previously performed tasks, based on the intent of the simplified prompt; based on identifying a stored record of a previously performed task corresponding to the intent of the simplified prompt, executing the generative model according to the simplified prompt using an intermediate computation result corresponding to the previously performed task; and outputting an execution result of the generative model.