# US 2025/0378342 A1 · Generating temporal sequences using diffusion transformer neural networks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0378342 A1
- Document ID: US20250378342A1
- Status: Published application
- Kind: A1
- Application number: 19/231,230
- Filed: 2025-06-06
- Published: 2025-12-11
- Earliest claimed: 2024-06-07
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Agrim Gupta; Zhiyao Yan; Kihyuk Sohn; Irfan Aziz Essa; José Lezama Torres de la Llosa
- Web page: https://patentgrep.com/patent/US20250378342A1

## CPC

- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0475: Generative networks
- G06T 11/00: Two-dimensional [2D] image generation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for generating a temporal sequence of data elements conditioned on an input. One of the methods includes obtaining the input, wherein the input comprises a noise input comprising a plurality of latent representations for the output temporal sequence; updating each latent representation using a latent denoising neural network; and generating the output temporal sequence of data elements by processing the updated latent representations using a decoder neural network.

## Claims

### Claim 1

A computer-implemented method of generating an output temporal sequence of data elements conditioned on an input, the method comprising:
obtaining the input, wherein the input comprises a noise input comprising a plurality of latent representations for the output temporal sequence;
updating each latent representation using a latent denoising neural network, the updating comprising:
updating the latent representation at each of a plurality of iterations, comprising, at each iteration:
processing an intermediate input for the iteration comprising the latent representation to generate a denoising output, the processing comprising:
generating a sequence of tokens each representing a respective patch of the latent representation;
generating an encoded representation of the sequence of tokens, the encoded representation comprising a sequence of input tokens;
processing the encoded representation to generate a merged sequence of output tokens, wherein the merged sequence has a smaller number of output tokens than a number of input tokens in the sequence of input tokens;
processing the merged sequence using a sequence of neural network blocks to generate an updated merged sequence that includes a respective updated output token for each of the output tokens in the merged sequence;
processing the updated merged sequence to generate an expanded representation that includes a same number of tokens as the number of input tokens in the sequence of input tokens; and
processing a decoder input derived from the expanded representation to generate the denoising output;
updating the latent representation using the denoising output for the iteration; and
generating the output temporal sequence of data elements by processing each of the updated latent representations using a decoder neural network.

### Claim 2 (depends on 1)

The method of claim 1, wherein the latent denoising neural network is configured to autoregressively update the latent representations, and wherein for each latent representation other than a first latent representation, the intermediate input comprises one or more preceding updated latent representations.

### Claim 3 (depends on 1)

The method of claim 1, wherein processing the encoded representation to generate a merged sequence of output tokens comprises:
generating, from the sequence of input tokens, a plurality of groups of input tokens, wherein each group comprises a plurality of input tokens;
concatenating, for each group, the input tokens of the group; and
for each group, applying a linear transformation to the concatenated input tokens to generate an initial output token.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
for each group, adding an average patch value to the initial output token to generate an output token for the group, wherein the average patch value is an average of the input tokens of the group; and
including the output token for each group in the merged sequence of output tokens.

### Claim 5 (depends on 3)

The method of claim 3, wherein processing the updated merged sequence to generate an expanded representation comprises:
for each output token in the updated merged sequence, applying a second linear transformation to the output token to generate a respective representation for the output token; and
for each respective representation, splitting the respective representation into a group of a plurality of initial patch tokens, wherein the group corresponds to the output token.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
for each initial patch token in each group, adding the corresponding output token for the group to the initial patch token to generate an updated patch token; and
including the updated patch tokens for each group in the expanded representation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the latent representation has a time dimension and two spatial dimensions, and wherein processing the merged sequence using a sequence of neural network blocks to generate an updated merged sequence comprises:
partitioning the output tokens of the merged sequence into a plurality of spatial groups of output tokens, wherein each spatial group comprises output tokens for a same time index of the time dimension; and
processing each spatial group of output tokens using the sequence of neural network blocks to update each output token, wherein each neural network block is configured to apply attention over the output tokens of the spatial group with keys, values, and queries derived from the output tokens.

### Claim 8 (depends on 7)

The method of claim 7, wherein processing the merged sequence using a sequence of neural network blocks to generate an updated merged sequence comprises:
partitioning the output tokens of the merged sequence into a plurality of spatiotemporal groups of output tokens, wherein each spatiotemporal group comprises output tokens from a same spatial region across multiple time indices of the time dimension; and
processing each spatiotemporal group of output tokens using the sequence of neural network blocks to update each output token, wherein each neural network block is configured to applying attention over the output tokens of the spatiotemporal group with keys, values, and queries derived from the output tokens.

### Claim 9 (depends on 1)

The method of claim 1, wherein each neural network block is configured to:
receive a block input for the neural network block that comprises the merged sequence of output tokens;
for each output token, generate a rotary position embedding using a rotation matrix; and
process the output tokens and the rotary position embeddings by applying one or more attention mechanisms to generate a block output for the neural network block that includes a respective updated output token for each of the output tokens in the merged sequence.

### Claim 10 (depends on 1)

The method of claim 1, wherein the decoder input comprises a combination of the expanded representation and the encoded representation.

### Claim 11 (depends on 1)

The method of claim 1, wherein the input further comprises a conditioning signal, and wherein the intermediate input further comprises the conditioning signal.

### Claim 12 (depends on 11)

The method of claim 11, wherein each neural network block is configured to apply attention over the conditioning signal and the output tokens of the merged sequence to update the output tokens of the merged sequence with keys and values derived from the conditioning signal and queries derived from the output tokens of the merged sequence.

### Claim 13 (depends on 1)

The method of claim 1, wherein obtaining the input comprises sampling the noise input from a noise distribution.

### Claim 14 (depends on 1)

The method of claim 1, wherein generating the sequence of tokens each representing a respective patch of the latent representation comprises:
generating a respective patch embedding for each respective patch of the latent representation;
generating one or more corresponding positional embeddings for each of the respective patch embeddings; and
generating the sequence of tokens by combining, for each respective patch embedding, the respective patch embedding and the one or more corresponding positional embeddings.

### Claim 15 (depends on 14)

The method of claim 14, wherein the one or more corresponding positional embeddings are derived from spatial positional embeddings and temporal positional embeddings.

### Claim 16 (depends on 14)

The method of claim 14, wherein each respective patch comprises a spatiotemporal region over one or more data elements represented by the latent representation.

### Claim 17 (depends on 14)

The method of claim 14, wherein each respective patch comprises a spatial region of a particular data element represented by the latent representation.

### Claim 18 (depends on 1)

The method of claim 1, wherein the decoder neural network has been trained and frozen prior to training the latent denoising neural network.

### Claim 19 (depends on 1)

The method of claim 1, wherein the latent denoising neural network has been trained by repeatedly:
obtaining a training example comprising a training temporal sequence of data elements;
generating one or more ground-truth latent representations for the training temporal sequence of data elements using an encoder neural network;
adding noise to each ground-truth latent representation to generate a training input;
for each training input:
generating a training denoising output from the training input by processing a training intermediate input comprising the training input using the latent denoising neural network in accordance with current values of the parameters of the latent denoising neural network; and
determining updates to the parameters of the latent denoising neural network that optimize a training objective.

### Claim 20 (depends on 19)

The method of claim 19, wherein the training objective measures an error between the ground-truth latent representation and a denoised representation generated using the training denoising output.

### Claim 21 (depends on 19)

The method of claim 19, further comprising fine-tuning the latent denoising neural network.

### Claim 22 (depends on 19)

The method of claim 19, wherein the training example further comprises a training conditioning input, and wherein the training conditioning input comprises one or more conditioning latent representations.

### Claim 23 (depends on 19)

The method of claim 19, wherein the respective training temporal sequence of data elements comprises one data element.

### Claim 24 (depends on 1)

The method of claim 1, wherein the output temporal sequence of data elements is a video, and wherein each data element is a video frame.

### Claim 25 (depends on 24)

The method of claim 24, wherein the input comprises a conditioning input, and wherein the conditioning input comprises an embedding of text describing the video.

### Claim 26 (depends on 24)

The method of claim 24, wherein the decoder neural network is configured to generate one or more video frames given a latent representation for the one or more video frames.

### Claim 27

A system comprising one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations for generating an output temporal sequence of data elements conditioned on an input, the operations comprising:
obtaining the input, wherein the input comprises a noise input comprising a plurality of latent representations for the output temporal sequence;
updating each latent representation using a latent denoising neural network, the updating comprising:
updating the latent representation at each of a plurality of iterations, comprising, at each iteration:
processing an intermediate input for the iteration comprising the latent representation to generate a denoising output, the processing comprising:
generating a sequence of tokens each representing a respective patch of the latent representation;
generating an encoded representation of the sequence of tokens, the encoded representation comprising a sequence of input tokens;
processing the encoded representation to generate a merged sequence of output tokens, wherein the merged sequence has a smaller number of output tokens than a number of input tokens in the sequence of input tokens;
processing the merged sequence using a sequence of neural network blocks to generate an updated merged sequence that includes a respective updated output token for each of the output tokens in the merged sequence;
processing the updated merged sequence to generate an expanded representation that includes a same number of tokens as the number of input tokens in the sequence of input tokens; and
processing a decoder input derived from the expanded representation to generate the denoising output;
updating the latent representation using the denoising output for the iteration; and
generating the output temporal sequence of data elements by processing each of the updated latent representations using a decoder neural network.

### Claim 28

A computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations for generating an output temporal sequence of data elements conditioned on an input, the operations comprising:
obtaining the input, wherein the input comprises a noise input comprising a plurality of latent representations for the output temporal sequence;
updating each latent representation using a latent denoising neural network, the updating comprising:
updating the latent representation at each of a plurality of iterations, comprising, at each iteration:
processing an intermediate input for the iteration comprising the latent representation to generate a denoising output, the processing comprising:
generating a sequence of tokens each representing a respective patch of the latent representation;
generating an encoded representation of the sequence of tokens, the encoded representation comprising a sequence of input tokens;
processing the encoded representation to generate a merged sequence of output tokens, wherein the merged sequence has a smaller number of output tokens than a number of input tokens in the sequence of input tokens;
processing the merged sequence using a sequence of neural network blocks to generate an updated merged sequence that includes a respective updated output token for each of the output tokens in the merged sequence;
processing the updated merged sequence to generate an expanded representation that includes a same number of tokens as the number of input tokens in the sequence of input tokens; and
processing a decoder input derived from the expanded representation to generate the denoising output;
updating the latent representation using the denoising output for the iteration; and
generating the output temporal sequence of data elements by processing each of the updated latent representations using a decoder neural network.
