Diffusion Image Generation With Constant-Memory Latent Optimization

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for latent optimization in image generation via diffusion models require excessive memory or computational resources due to the need to store or recompute intermediate latents during the backward pass, making them impractical for efficient image generation.

Innovation Solution

The proposed method, called DOODL, leverages invertible diffusion processes like EDICT to compute gradients directly from the final image pixels, eliminating the need to store or recompute intermediate latents, allowing for efficient iterative optimization with constant memory cost.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If intermediate latents are stored in memory during forward pass for gradient calculations, then gradient computation is enabled, but memory requirements become excessive

Engineering Contradiction:
Improvegradient computation capabilityVSAvoidmemory requirements
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent extracts only the necessary gradient information from the full intermediate latent representations. Instead of storing complete latent vectors at each diffusion step, the system computes and stores only the gradient contributions needed for backpropagation, significantly reducing memory requirements while maintaining gradient computation capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the gradient computation process into incremental updates rather than requiring full intermediate state storage. By computing gradients step-by-step and accumulating only essential information, the system enables gradient backpropagation without storing all intermediate latents in memory simultaneously.

Inventive Principle:
Principle #1Segmentation

2Reliability

If intermediate latents are recomputed repeatedly at each backward step, then gradient calculations are possible, but computation time becomes excessive

Engineering Contradiction:
Improvegradient calculation accuracyVSAvoidcomputation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary computation of gradient contributions during the forward pass, accumulating necessary gradient information in an efficient manner. This preliminary action eliminates the need to recompute intermediate latents during backward passes, as the gradient information is already prepared and can be directly used for optimization.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements feedback mechanisms that allow the system to use previously computed gradient information efficiently during backward passes. By maintaining appropriate caches and using the computed gradients to guide subsequent computations, the system avoids redundant recalculations and significantly reduces total computation time.

Inventive Principle:
Principle #23Feedback

3Productivity

If latent optimization is performed with existing methods, then image generation can be optimized, but the system becomes impractical due to resource requirements

Engineering Contradiction:
Improveimage generation optimization capabilityVSAvoidsystem resource requirements
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent changes the parameters of the optimization process by modifying how gradient information is stored and computed. Instead of using standard backpropagation that requires full intermediate state storage, the system uses modified parameter storage strategies that enable latent optimization with significantly reduced computational and memory resources, making the system practical for real-world applications.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20260073582A1Systems and methods for image generation via diffusion
Publication Date: 2026.03.12 SALESFORCE INC
  • US20260073582A1 patent drawing
  • US20260073582A1 patent drawing
  • US20260073582A1 patent drawing

AI summary

Embodiments described herein provide a method of generating an image. the method comprises receiving, via a data interface, a natural language prompt, obtaining a noised vector, and generating a denoised vector by a first forward pass of a plurality of iterations of a denoising diffusion model with the noised vector as an input and conditioned on the natural language prompt. The method further includes calculating a gradient of a loss function based on the denoised vector with respect to the noised vector, and updating the noised vector based on the gradient. A final image is generated using a final forward pass of the denoising diffusion model with the updated noised vector as an input and conditioned on the natural language prompt.