Summarization Model Reduces LLM Prompt Length

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Large language models require lengthy input prompts, which increase computational resources and costs while maintaining output quality, posing a challenge in balancing detailed descriptions and input length limitations.

Innovation Solution

A method involving a summary model trained using a task-driven attention mechanism to refine original input prompts, generating a condensed version that maximizes similarity scores between original and reduced outputs, thereby reducing prompt text length without compromising output quality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If lengthy input prompts are used to maintain output quality, then the quality and accuracy of LLM outputs are improved, but the computational resources and costs increase

Engineering Contradiction:
Improveoutput qualityVSAvoidcomputational resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent extracts and removes redundant information from the original prompt while retaining only the essential elements needed for the LLM to generate high-quality outputs. The summarization model identifies and eliminates unnecessary tokens, achieving significant prompt length reduction (e.g., 50-70% reduction) while maintaining output quality through selective information retention.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter of prompt length by using a summarization model to transform long prompts into condensed versions. The training process optimizes the summarization model to preserve critical information while reducing token count, effectively changing the length parameter without sacrificing the reliability of the LLM output.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If detailed descriptions are provided in prompts, then the accuracy and completeness of LLM responses are improved, but the input prompt length increases

Engineering Contradiction:
Improveresponse accuracyVSAvoidprompt text length
Core Design Contradiction:
Measurement precisionVSLength of stationary object

Solution Approach 1:

The summarization model extracts and removes redundant information from detailed prompts while retaining essential elements. It identifies unnecessary descriptions and eliminates them, achieving prompt length reduction while maintaining response accuracy through selective information preservation.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The summarization model acts as an intermediary between the original detailed prompt and the LLM. It processes the long prompt into a condensed version that preserves critical information, serving as a bridge that maintains accuracy while reducing length before the prompt reaches the LLM.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If comprehensive prompts are used to ensure task completion, then the reliability of results is improved, but the computational cost and processing time increase

Engineering Contradiction:
Improvetask completion reliabilityVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The summarization model extracts and removes redundant information from comprehensive prompts while retaining essential task-related elements. It identifies and eliminates unnecessary tokens that do not contribute to task completion, reducing processing time while maintaining result reliability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the parameter of prompt length by transforming comprehensive prompts into condensed versions through the summarization model. This parameter change reduces the computational burden and processing time while the training process ensures that task completion reliability is maintained.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250200299A1Saving prompt text length by training a summarization model through task-driven attention
Publication Date: 2025.06.19 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20250200299A1 patent drawing
  • US20250200299A1 patent drawing
  • US20250200299A1 patent drawing

AI summary

A method, computer program product, and computer system are provided for saving prompt text length for large language models. A large language model is prompted with a first prompt to receive a first result. A summary is generated based on prompting a summary model with the first prompt. The large language model is prompted with the generated summary to receive a second result. The summary model is trained based on maximizing a similarity score between the first result and the second result. A text output associated with the first prompt is generated based on prompting the large language model with a second prompt generated by the trained summary model.