IP Library Granted Patent US 12,579,702
Granted Patent B2
US 12,579,702 · App. 18/436,674 · Granted Mar 17, 2026

Method and system for adapting a diffusion model

Inventors: Artem Babenko (Moscow, RU); Mikhail Khoroshikh (Moscow, RU); Maksim Riabinin (Moscow, RU); Anton Voronov (Moscow, RU)
Assignee: Y.E. Hub Armenia LLC
G06T11/00G06T2200/24G06T2210/61
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,579,702
App. No.
18/436,674
Granted
Mar 17, 2026
Kind
B2
Abstract

A method and a server for adapting a diffusion model are provided. The method comprising: receiving a given plurality of images of a given object; receiving a respective textual description for the given object; generating, based on the given plurality of images, a training set of data including a plurality of training digital objects; sampling, from the plurality of training digital objects, a given reference training digital object for using during a validation step; in cycles, executing the validation step by feeding a given reference training digital object to the diffusion model; in response to a convergence metric associated with a loss function at a given cycle of executing the validation step being below a predetermined threshold, terminating the adapting the diffusion model.

Claims (174)

1 . A computer-implemented method for adapting a diffusion model, which has been pre-trained to generate images of objects based on textual descriptions thereof, to a given plurality of images of at least one object that the diffusion model has been pre-trained to generate, the method comprising:

receiving the given plurality of images, a given image of the given plurality of images being representative of a given object;

receiving a respective textual description for the given object depicted in the given image;

applying, to the given image, an image encoding algorithm, thereby generating a respective image vector for the given image;

applying, to the respective textual description associated with the given image, a text encoding algorithm, thereby generating a respective text vector for the respective textual description;

applying, to the respective image vector, during a respective number of diffusion steps, a respective level of a diffusion noise, thereby generating a respective noisy image vector for the given image;

compiling a training set of data including a plurality of training digital objects, a given one of which includes: (i) a set of images representative of the given object and respective noisy image vectors associated therewith; (ii) a respective set of textual descriptions of the given object and respective text vectors associated therewith;

sampling, from the plurality of training digital objects, at least one reference training digital object for using during a validation step;

excluding the at least one reference training digital object from the plurality of training digital objects, thereby generating an adaptation plurality of training digital objects;

feeding, at each training iteration, to the diffusion model, a respective training digital object of the adaptation plurality of training digital objects, thereby causing the diffusion model to generate, from the respective noisy image vector, a synthetic image representative of a respective object;

in each cycle having a predetermined number of training iterations, executing the validation step by feeding a respective reference training digital object from the at least one reference training digital object to the diffusion model, thereby causing the diffusion model to generate a respective synthetic reference image, wherein the at least one reference training digital object does not change between cycles;

determining, for a given cycle, a value of a loss function indicative of a difference between the given image of the respective reference training digital object and the respective synthetic reference image at the given cycle; and

in response to a convergence metric associated with the loss function being below a predetermined convergence threshold at the given cycle, terminating the adapting the diffusion model without using any further training digital objects.

2 . The method of claim 1 , wherein the text encoding algorithm comprises a Transformer-based machine-learning algorithm (MLA) that has been trained to generate text embeddings from input text.

3 . The method of claim 1 , wherein the loss function is expressed by a following equation:

det

=

ϵ

-

ϵ

θ

(

z

t

(

ε

(

x

)

,

ϵ

)

,

c

(

y

)

,

t

)

2

2

,

where ϵ θ is the respective synthetic reference image generated at the given cycle in response to feeding, to the diffusion model, the given image x of the respective reference training digital object;

ε(x) is the respective noisy image vector of the given image x;

ϵ is the respective level of the diffusion noise applied to the given image x;

c(y) is the respective text vector for the respective textual description y of the given object depicted in the given image x; and

t is the respective number of diffusion steps over which the respective noisy image vector of the given image x has been generated.

4 . The method of claim 3 , wherein each one of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps does not change between cycles.

5 . The method of claim 3 , wherein at least one of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps does not change between cycles while other ones of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps are re-determined at each cycle.

6 . The method of claim 1 , wherein the set of images of the respective reference training digital object includes a predetermined number of images of the respective object.

7 . The method of claim 1 , wherein the convergence metric is representative of a ratio between: (i) a local variance of values of the loss function over a first number of cycles; and (ii) a global variance of values of the loss function over a second number of cycles, the second number of cycles being greater than the first number of cycles.

8 . The method of claim 1 , wherein the convergence metric is representative of a ratio between: (i) a current exponential moving average (EMA) of values of the loss function at the given cycle; and (ii) a past EMA, determined over a predetermined number of past cycles.

9 . The method of claim 8 , wherein the convergence metric is expressed by a following equation:

EMA

=

EMA

(

t

)

-

EMA

(

t

-

n

)

EMA

(

t

-

n

)

,

where EMA(t) is the current EMA at the given cycle;

EMA(t−n) is the past EMA;

t is an index representing the given cycle; and

n is the predetermined number of cycles.

10 . The method of claim 1 , wherein the convergence metric comprises a Hall criterion that is representative of a ratio between: (i) a difference between a maximum value and minimum value of the loss function over a given number of cycles; and (ii) a mean value of the loss function over the given number of cycles.

11 . The method of claim 10 , wherein the convergence metric is expressed by a following equation:

Hall

=

max

(

det

n

)

-

min

(

det

n

)

mean

(

det

n

)

.

where det n is a given value of the loss function over the given number of cycles n.

12 . The method of claim 1 , wherein the convergence metric is a Trend metric that is representative of a slope of a graph of a linear regression that has been trained to predict values of the loss function based on past values thereof.

13 . The method of claim 1 , wherein the diffusion model is a Stable diffusion model.

14 . A server for adapting a diffusion model, which has been pre-trained to generate images of objects based on textual descriptions thereof, to a given plurality of images of at least one object that the diffusion model has been pre-trained to generate, the server comprising at least one processor and at least one non-transitory computer-readable memory storing executable instructions, which, when executed by the at least one processor, cause the server to:

receive the given plurality of images, a given image of the given plurality of images being representative of a given object;

receive a respective textual description for the given object depicted in the given image;

apply, to the given image, an image encoding algorithm, thereby generating a respective image vector for the given image;

apply, to the respective textual description associated with the given image, a text encoding algorithm, thereby generating a respective text vector for the respective textual description;

apply, to the respective image vector, during a respective number of diffusion steps, a respective level of a diffusion noise, thereby generating a respective noisy image vector for the given image;

compile a training set of data including a plurality of training digital objects, a given one of which includes: (i) a set of images representative of the given object and respective noisy image vectors associated therewith; (ii) a respective set of textual descriptions of the given object and respective text vectors associated therewith;

sample, from the plurality of training digital objects, at least one reference training digital object for using during a validation step;

exclude the at least one reference training digital object from the plurality of training digital objects, thereby generating an adaptation plurality of training digital objects;

feed, at each training iteration, to the diffusion model, a respective training digital object of the adaptation plurality of training digital objects, thereby causing the diffusion model to generate, from the respective noisy image vector, a synthetic image representative of a respective object;

in each cycle having a predetermined number of training iterations, execute the validation step by feeding a respective reference training digital object from the at least one reference training digital object to the diffusion model, thereby causing the diffusion model to generate a respective synthetic reference image, wherein the at least one reference training digital object does not change between cycles;

determine, for a given cycle, a value of a loss function indicative of a difference between the given image of the respective reference training digital object and the respective synthetic reference image at the given cycle; and

in response to a convergence metric associated with the loss function being below a predetermined convergence threshold at the given cycle, terminate the adapting the diffusion model without using any further training digital objects.

15 . The server of claim 14 , wherein the text encoding algorithm comprises a Transformer-based machine-learning algorithm (MLA) that has been trained to generate text embeddings from input text.

16 . The server of claim 14 , wherein the loss function is expressed by a following equation:

det

=

ϵ

-

ϵ

θ

(

z

t

(

ε

(

x

)

,

ϵ

)

,

c

(

y

)

,

t

)

2

2

,

where ϵ θ is the respective synthetic reference image generated at the given cycle in response to feeding, to the diffusion model, the given image x of the respective reference training digital object;

ε(x) is the respective noisy image vector of the given image x;

ϵ is the respective level of the diffusion noise applied to the given image x;

c(y) is the respective text vector for the respective textual description y of the given object depicted in the given image x; and

t is the respective number of diffusion steps over which the respective noisy image vector of the given image x has been generated.

17 . The server of claim 16 , wherein each one of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps does not change between cycles.

18 . The server of claim 16 , wherein at least one of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps does not change between cycles while other ones of (i) the respective noisy image vector of the given image; (ii) the respective level of the diffusion noise; (iii) the respective textual description for the given object depicted in the given image; and (iv) the respective number of diffusion steps are re-determined at each cycle.

19 . The server of claim 14 , wherein the set of images of the respective reference training digital object includes a predetermined number of images of the respective object.

20 . The server of claim 14 , wherein the convergence metric is representative of a ratio between: (i) a local variance of values of the loss function over a first number of cycles; and (ii) a global variance of values of the loss function over a second number of cycles, the second number of cycles being greater than the first number of cycles.

Assignments (6)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 19, 2025
From: BABENKO, ARTEM, MR.; KHOROSHIKH, MIKHAIL, MR.; RIABININ, MAKSIM, MR.; VORONOV, ANTON, MR.
To: YANDEX.TECHNOLOGIES LLC
Reel/Frame 072318/0278 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 19, 2025
From: YANDEX.TECHNOLOGIES LLC
To: YANDEX LLC
Reel/Frame 072318/0336 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 19, 2025
From: YANDEX LLC
To: Y.E. HUB ARMENIA LLC
Reel/Frame 072318/0456 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 9, 2024
From: DIRECT CURSUS TECHNOLOGY L.L.C
To: Y.E. HUB ARMENIA LLC
Reel/Frame 068534/0750 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 27, 2024
From: BABENKO, ARTEM, MR.; KHOROSHIKH, MIKHAIL, MR.; RIABININ, MAKSIM, MR.; VORONOV, ANTON, MR.
To: YANDEX.TECHNOLOGIES LLC
Reel/Frame 068102/0137 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 27, 2024
From: YANDEX.TECHNOLOGIES LLC
To: YANDEX LLC
Reel/Frame 068102/0157 →
Continuity (1)
Related Publication 20250259338A1 · Aug 14, 2025
References Cited (18)
US 9646226B2 · Wang et al. · 2017 [cited by applicant]
US 9799098B2 · Seung et al. · 2017 [cited by applicant]
US 11126890B2 · Lin et al. · 2021 [cited by applicant]
US 20160030514A1 · Ko · 2016 [cited by examiner]
US 20190062692A1 · Thompson · 2019 [cited by examiner]
US 20190184033A1 · Duan · 2019 [cited by examiner]
US 20190213772A1 · Lombardi · 2019 [cited by examiner]
US 20220122001A1 · Choe et al. · 2022 [cited by applicant]
US 20220156458A1 · Dorogush et al. · 2022 [cited by applicant]
US 20230103638A1 · Saharia et al. · 2023 [cited by applicant]
US 20230177097A1 · Boymel et al. · 2023 [cited by applicant]
US 20230334834A1 · Bai et al. · 2023 [cited by applicant]
US 20230377226A1 · Saharia et al. · 2023 [cited by applicant]
CN 116051668B · 2023 [cited by applicant]
CN 116778011A · 2023 [cited by applicant]
CN 117033681A · 2023 [cited by applicant]
CN 117173504A · 2023 [cited by applicant]
WO 2023204944A1 · 2023 [cited by applicant]