Generative Model Output Length Compliance With Synthetic Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Generative models struggle with generating output that adheres to specific length constraints such as words, sentences, or paragraphs.

Innovation Solution

Techniques for evaluating pairs of generative model prompts and responses for compliance with length constraints, and generating synthetic training data to improve the models' adherence to these constraints, including modifying input prompts or responses to align with detected length features.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If generative models are trained using conventional techniques, then they can perform various tasks, but they struggle to generate output with specific length constraints

Engineering Contradiction:
Improvelength constraint complianceVSAvoidtask performance capability
Core Design Contradiction:
Manufacturing precisionVSAdaptability or versatility

Solution Approach 1:

The system performs preliminary analysis of input prompts to identify length constraints before generating responses. By detecting and understanding length requirements in advance, the generative model can adjust its generation process to comply with specified constraints, thereby improving length constraint compliance without sacrificing task performance capability

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system evaluates generated responses against identified length constraints and uses this feedback to improve future generations. By comparing actual output length with required length constraints and adjusting the generation process accordingly, the model learns to comply with length requirements while maintaining its ability to perform various tasks

Inventive Principle:
Principle #23Feedback

2Loss of information

If the generative model generates longer responses to be more comprehensive, then it provides more information, but it fails to comply with length constraints

Engineering Contradiction:
Improveinformation completenessVSAvoidlength constraint compliance
Core Design Contradiction:
Loss of informationVSManufacturing precision

Solution Approach 1:

The system generates responses that partially satisfy length constraints by prioritizing essential information. When comprehensive information would exceed length limits, the model selectively includes the most important content, providing sufficient information without violating length requirements

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system changes the parameter of response length to match constraints while adjusting information density accordingly. By compressing or expanding content to fit specified length limits, the model maintains information completeness within the required length boundaries

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250328757A1Techniques for improved length constraint compliance
Publication Date: 2025.10.23 GOOGLE LLC
  • US20250328757A1 patent drawing
  • US20250328757A1 patent drawing
  • US20250328757A1 patent drawing

AI summary

Implementations are described herein for improving compliance with length constraints imposed on generative model output. In various implementations, a candidate generative model training example may be retrieved and include an input prompt and a generative model response that was generated by processing the input prompt using one or more generative models. The input prompt may be analyzed to identify length constraint(s) intended to be imposed on the generative model response. The generative model response may be evaluated for compliance with the length constraint(s). Based on a determination that the generative model response fails to comply with one or more of the length constraints, the candidate generative model training example may be modified to generate a synthetic generative model training example for which one or more length constraints are satisfied. The generative model(s) may be trained using the synthetic generative model training example.