Systems and methods for text-to-image generation using language models

US2024185035A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2024185035-A1
Application numberUS-202318162535-A
CountryUS
Kind codeA1
Filing dateJan 31, 2023
Priority dateOct 24, 2022
Publication dateJun 6, 2024
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Embodiments described herein provide a mechanism for replacing existing text encoders in text-to-image generation models with more powerful pre-trained language models. Specifically, a translation network is trained to map features from the pre-trained language model output into the space of the target text encoder. The training preserves the rich structure of the pre-trained language model while allowing it to operate within the text-to-image generation model. The resulting modularized text-to-image model receives prompt and generates an image representing the features contained in the prompt.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method of integrating a pre-trained language model into a text-to-image model, the method comprising: receiving, via a data interface, a prompt; encoding, via a pre-trained language model, the prompt into a source embedding in a source representation space; encoding, via a target text encoder, the prompt into a target embedding in a target representation space; transforming, via a translation network encoder, the source embedding from the source representation space into a transformed source embedding in the target representation space; generating, via a translation network decoder, a decoded source embedding in the source representation space from the transformed source embedding; computing a first loss based, at least in part, on a difference between the target embedding and the transformed source embedding; computing a second loss based, at least in part, on a difference between the source embedding and the decoded source embedding; and updating parameters of the translation network encoder and the translation network decoder based on the first loss and the second loss via backpropagation. 2 . The method of claim 1 , wherein the updating comprises updating the parameters of the translation network encoder and the translation network decoder via propagation through the translation network encoder, the translation network decoder, and the pre-trained language model based on the first loss and the second loss while keeping the pre-trained language model frozen. 3 . The method of claim 1 , further comprising: generating, by an image generator, an image from the transformed source embedding. 4 . The method of claim 1 , further comprising: receiving, via a data interface, an image associated with the prompt; generating, via a conditioning network, a condition source embedding from the transformed source embedding; generating, by an image encoder, an image feature embedding in a latent image space from the image; generating a noisy image embedding from the image feature embedding by adding gaussian noise to the image feature embedding; generating a noisy image-text embedding by concatenating the condition source embedding and the noisy image embedding; generating, by a denoising network, a noise-reduced image-text embedding from the noisy image-text embedding; computing a third loss, based at least in part, on an unscaled gaussian noise and the noise-reduced image-text embedding; and updating parameters of the denoising network and conditioning network based on the third loss via backpropagation. 5 . The method of claim 4 , wherein the updating comprises updating the parameters of the denoising network and the conditioning network while keeping the pre-trained language model frozen. 6 . The method of claim 1 , further comprising: generating, by a discriminator network, a target distribution over the target representation space and a transformed source distribution over the target representation space from the target embedding and the transformed source embedding, respectively; computing a third loss based, at least in part, on the target distribution and the transformed source distribution; and updating parameters of the discriminator network, the translation network encoder, and the translation network decoder based on the first loss, second loss, and third loss via backpropagation. 7 . The method of claim 6 , wherein the updating comprises updating the parameters of the discriminator network, the translation network encoder, and translation network decoder while keeping the pre-trained language model frozen. 8 . A system for integrating a pre-trained language model into a text-to-image model, the system comprising: a communication interface that receives a plurality of training samples; a memory containing machine readable medium storing machine executable code; one or more processors coupled to the memory and configurable to execute the machine executable code to cause the one or more processors to: receive, via a data interface, a prompt; encode, via a pre-trained language model, the prompt into a source embedding in a source representation space; encode, via a target text encoder, the prompt into a target embedding in a target representation space; transform, via a translation network encoder, the source embedding from the source representation space into a transformed source embedding in the target representation space; generate, via a translation network decoder, a decoded source embedding in the source representation space from the transformed source embedding; compute a first loss based, at least in part, on a difference between the target embedding and the transformed source embedding; compute a second loss based, at least in part, on a difference between the source embedding and the decoded source embedding; and update parameters of the translation network encoder and the translation network decoder based on the first loss and the second loss via backpropagation. 9 . The system of claim 8 , wherein to update parameters, the processor is further configured to update parameters of the translation network encoder and translation network decoder via propagation through the translation network encoder, the translation network decoder, and the pre-trained language model based on the first loss and the second loss while keeping the pre-trained language model frozen. 10 . The system of claim 8 , wherein the processor is further configured to: generate, by an image generator, an image from the transformed source embedding. 11 . The system of claim 8 , wherein the processor is further configured to: receive, via a data interface, an image associated with the prompt; generate, via a conditioning network, a condition source embedding from the transformed source embedding; generate, by an image encoder, an image feature embedding in a latent image space from the image; generate a noisy image embedding from the image feature embedding by adding gaussian noise to the image feature embedding; generate a noisy image-text embedding by concatenating the condition source embedding and the noisy image embedding; generate, by a denoising network, a noise-reduced image-text embedding from the noisy image-text embedding; compute a third loss, based at least in part, on an unscaled gaussian noise and the noise-reduced image-text embedding; and update parameters of the denoising network and conditioning network based on the third loss via backpropagation. 12 . The system of claim 11 , wherein to update parameters, the processor is further configured to update the parameters of the denoising network and the conditioning network while keeping the pre-trained language model frozen. 13 . The system of claim 8 , wherein the processor is further configured to: generate, by a discriminator network, a target distribution over the target representation space and a transformed source distribution over the target representation space from the target embedding and the transformed source embedding, respectively; compute a third loss based, at least in part, on the target distribution and the transformed source distribution; and update parameters of the discriminator network, the translation network encoder, and the translation network decoder based on the first loss, second loss, and third loss via backpropagation. 14 . The system of claim 13 , wherein to update parameters, the processor is further configured to update parameters of the discriminator network, the translation network encoder, and the translation network decoder while keeping the pre-trai

Assignees

Inventors

Classifications

  • Denoising; Smoothing · CPC title

  • Backpropagation, e.g. using gradient descent · CPC title

  • Combinations of networks · CPC title

  • G06N3/0455Primary

    Auto-encoder networks; Encoder-decoder networks · CPC title

  • Physics · mapped topic

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2024185035A1 cover?
Embodiments described herein provide a mechanism for replacing existing text encoders in text-to-image generation models with more powerful pre-trained language models. Specifically, a translation network is trained to map features from the pre-trained language model output into the space of the target text encoder. The training preserves the rich structure of the pre-trained language model whi…
Who is the assignee on this patent?
Salesforce Inc
What technology area does this patent fall under?
Primary CPC classification G06N3/0455. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Jun 06 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).