Dynamic Value Clipping in Diffusion Models for Image Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current CLIP-guided diffusion models are inefficient, requiring over 500 iterations to generate images, resulting in low content safety, low image quality, and unpredictable text-to-image matching and object location, making them unsuitable for real-time applications.

Innovation Solution

The proposed system employs a multi-algorithm diffusion sampling process with dynamic value clipping and multi-text guided image cropping, utilizing a gradient estimator model to speed up image generation while maintaining quality, and includes a data distillation module to curate safe content and artistic styles, reducing computational requirements and improving image rendering speeds.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If traditional CLIP-guided diffusion models are used for image generation, then text-to-image matching can be achieved, but the number of iterations required exceeds 500, resulting in low productivity and high computational cost

Engineering Contradiction:
Improveimage generation speedVSAvoidnumber of iterations
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent applies dynamic value clipping that adapts the clipping threshold based on the iteration number. During early iterations, a higher clipping threshold is used to preserve diverse pixel values and prevent premature convergence. As iterations progress, the clipping threshold is dynamically reduced to refine the image with stronger text guidance. This dynamic adjustment enables faster convergence (reducing iterations from 500+ to ~100) while maintaining image quality and text alignment.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes the clipping parameter (threshold value) during the diffusion process based on iteration stage. The clipping threshold is set to a first value for initial iterations and transitions to a second, lower value for subsequent iterations. This parameter change allows the model to efficiently reduce the number of required iterations while preserving essential image details and text correspondence accuracy.

Inventive Principle:
Principle #35Parameter changes

2Manufacturing precision

If traditional diffusion models run for many iterations to ensure quality, then image quality improves, but content safety decreases due to generation of unsafe content

Engineering Contradiction:
Improveimage qualityVSAvoidcontent safety
Core Design Contradiction:
Manufacturing precisionVSObject-affected harmful factors

Solution Approach 1:

The patent applies preliminary value clipping during early diffusion iterations to prevent the generation of extreme or unsafe pixel values before they can manifest as harmful content. By clipping pixel values to a controlled range from the outset, the model prevents the emergence of unsafe content patterns while still allowing sufficient iteration to achieve high image quality. This preliminary constraint maintains both quality and safety throughout the generation process.

Inventive Principle:
Principle #9Preliminary anti-action

3Productivity

If dynamic value clipping with multiple ranges is applied, then image generation efficiency improves, but device complexity increases

Engineering Contradiction:
Improvegeneration efficiencyVSAvoidalgorithm complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent segments the diffusion iterations into distinct phases: an initial phase with higher clipping threshold and a subsequent phase with lower clipping threshold. This segmentation allows each phase to serve a specific purpose - the initial phase establishes diverse pixel distributions while the second phase refines text alignment. By dividing the process into manageable segments with different clipping parameters, the system achieves high efficiency without requiring overly complex control mechanisms.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12136141B2Generation of image corresponding to input text using dynamic value clipping
Publication Date: 2024.11.05 LEMON INC(GB)
  • US12136141B2 patent drawing
  • US12136141B2 patent drawing
  • US12136141B2 patent drawing

AI summary

Systems and methods are provided that include a processor executing a program to receive input text from a user. The processor is further configured to, for a predetermined number of iterations, input an initial image into a diffusion process to generate a processed image, back-propagate the processed image through a text-image match gradient calculator to calculate a gradient against the input text, and update the initial image with an image generated by applying the calculated gradient to the processed image. The pixel values of the processed image during a first portion of the predetermined number of iterations are value clamped to a first range, and pixel values of the processed image during a second portion of the predetermined number of iterations are value clamped to a second range that is a subset of the first range.