# US 2026/0301287 A1 · Multi-subject personalization in video generation

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

- Number: US 2026/0301287 A1
- Document ID: US20260301287A1
- Status: Published application
- Kind: A1
- Application number: 19/094,612
- Filed: 2025-03-28
- Published: 2026-10-01
- Earliest claimed: 2025-03-28
- Assignees: Snap Inc.
- Applicants: Snap Inc.
- Inventors: Kfir Aberman; Tsai-Shien Chen; Willi Menapace; Aliaksandr Siarohin; Ivan Skorokhodov; Junyan Zhu
- Web page: https://patentgrep.com/patent/US20260301287A1

## CPC

- G06T 13/40: of characters, e.g. humans, animals or virtual beings
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T 3/60: Rotation of whole images or parts thereof
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/70: Denoising; Smoothing
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06V 10/759: {Region-based matching}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20132: Image cropping
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Examples relate to systems and methods for generating a video depicting multiple subjects. The systems and methods receive a text prompt describing a video to be generated, a plurality of reference images each depicting a corresponding subject, and binding information that associates each reference image with a corresponding entity word in the text prompt. The systems and methods extract features from each reference image and fuse the extracted features with text embeddings of the corresponding entity word based on the binding information to create personalization embeddings. The systems and methods generate an initial noisy video and iteratively de-noise the noisy video using a diffusion model conditioned on both the text prompt and the personalization embeddings to generate a personalized video that preserves identity of the corresponding subjects in the reference images while allowing for natural motion and pose variations.

## Claims

### Claim 1

A system comprising:
at least one processor;
at least one memory component storing instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising:
receiving a text prompt describing a video to be generated, a plurality of reference images each depicting a corresponding subject, and binding information that associates each reference image with a corresponding entity word in the text prompt;
extracting features from each reference image and fusing the extracted features with text embeddings of the corresponding entity word based on the binding information to create personalization embeddings;
generating an initial noisy video; and
iteratively denoising the noisy video using a diffusion model conditioned on both the text prompt and the personalization embeddings to generate a personalized video that preserves identity of the corresponding subjects in the reference images while allowing for natural motion and pose variations.

### Claim 2 (depends on 1)

The system of claim 1, wherein the diffusion model comprises multiple cross-attention layers and a self-attention layer.

### Claim 3 (depends on 2)

The system of claim 2, the operations comprising:
encoding each of the plurality of reference images into image tokens;
projecting fused embeddings of each reference image and its corresponding entity word;
applying a residual connection with the image tokens for each reference image;
adding a learnable image index embedding to separate tokens from different reference images, wherein tokens from the same reference image share the same image index embedding; and
concatenating the personalization embeddings from all reference images to create a combined personalization embedding for conditioning the diffusion model.

### Claim 4 (depends on 3)

The system of claim 3, the operations comprising:
processing the combined personalization embedding by a first cross-attention layer of the multiple cross-attention layers; and
processing the text embeddings by a second cross-attention layer of the multiple cross-attention layers.

### Claim 5 (depends on 1)

The system of claim 1, the operations comprising:
applying data augmentation to the reference images before extracting the features to prevent the diffusion model from overfitting to unintended properties of the reference images.

### Claim 6 (depends on 1)

The system of claim 1, the operations comprising:
encoding the initial noisy video into a set of video tokens using a video encoder; and
decoding a de-noised set of video tokens back into a video using a video decoder.

### Claim 7 (depends on 1)

The system of claim 1, wherein the diffusion model is trained to perform a set of training operations comprising:
accessing a plurality of training data, the plurality of training data comprising a plurality of videos depicting multiple subjects and corresponding captions associated with the plurality of videos;
selecting an individual video from the plurality of training data along with an individual caption of the corresponding captions associated with the individual video;
retrieving entity words from the individual caption using a large language model (LLM), wherein the entity words include subject entities and background entities;
selecting multiple frames from the individual video;
extracting individual images for individual subjects and a background from the selected multiple frames;
binding each extracted individual image with its corresponding entity word in the individual caption to create a training personalization embedding;
generating a training video using the diffusion model conditioned on both the individual caption and the training personalization embedding;
computing a deviation between the training video and the selected individual video; and
updating parameters of self-attention layers and cross-attention layers of the diffusion model based on the computed deviation.

### Claim 8 (depends on 7)

The system of claim 7, wherein updating the parameters comprises:
applying a gradient descent optimization algorithm to minimize the deviation; and
applying gradient clipping with a predetermined value to ensure stable training.

### Claim 9 (depends on 7)

The system of claim 7, the set of training operations comprising:
creating clean background images as a portion of the extracted individual images by removing the subjects depicted in the selected multiple frames and applying inpainting; and
applying data augmentation to the extracted individual images to prevent overfitting to unintended properties.

### Claim 10 (depends on 9)

The system of claim 9, the operations for applying data augmentation comprising:
downscaling and applying Gaussian blurring to the extracted individual images to prevent overfitting to image resolution; and
applying color jittering and brightness adjustment to mitigate overfitting on lighting conditions.

### Claim 11 (depends on 9)

The system of claim 9, the operations for applying data augmentation comprising:
applying horizontal flip, image shearing, and rotation to the extracted individual images to weaken overfitting on the subject's pose; and
applying random cropping to the extracted individual images to increase diversity during training.

### Claim 12 (depends on 9)

The system of claim 9, wherein computing the deviation comprises:
encoding the individual video into video tokens; and
comparing the encoded individual video tokens with denoised video tokens of the training video generated by the diffusion model.

### Claim 13 (depends on 1)

The system of claim 1, the operations comprising:
tokenizing the video into a sequence of 1-D video tokens; and
adding Gaussian noise to the video tokens to obtain the initial noisy video.

### Claim 14 (depends on 1)

The system of claim 1, the operations comprising:
processing the personalization embeddings through a first cross-attention layer from the text embeddings that are processed through a second cross-attention layer; and
combining outputs of the first and second cross-attention layers to condition the diffusion model.

### Claim 15 (depends on 1)

The system of claim 1, the operations comprising:
evaluating the generated personalized video using a subject similarity metric that measures similarity between reference images and segmented subjects in the generated personalized video; and
evaluating the generated personalized video using a dynamic degree metric that measures optical flow magnitude between consecutive generated video frames.

### Claim 16 (depends on 15)

The system of claim 15, the operations comprising:
segmenting subjects from the generated personalized video;
segmenting the subjects from a ground truth video; and
computing the subject similarity metric by measuring average cosine similarity between the reference images and the segmented subjects of the generated video frames.

### Claim 17 (depends on 15)

The operations of claim 15, the operations comprising:
detecting faces in the generated personalized video using a face detection algorithm;
detecting faces in a ground truth video using the same face detection algorithm; and
computing a face similarity metric by measuring average cosine similarity between reference face crops and generated face crops.

### Claim 18 (depends on 15)

The operations of claim 15, the operations comprising:
computing a text similarity metric by measuring cosine similarity between text embeddings and the generated video frames; and
computing a video similarity metric by measuring average cosine similarity between ground truth video frames and generated video frames.

### Claim 19

A computer-implemented method comprising:
receiving a text prompt describing a video to be generated, a plurality of reference images each depicting a corresponding subject, and binding information that associates each reference image with a corresponding entity word in the text prompt;
extracting features from each reference image and fusing the extracted features with text embeddings of the corresponding entity word based on the binding information to create personalization embeddings;
generating an initial noisy video; and
iteratively denoising the noisy video using a diffusion model conditioned on both the text prompt and the personalization embeddings to generate a personalized video that preserves identity of the corresponding subjects in the reference images while allowing for natural motion and pose variations.

### Claim 20

A non-transitory computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform operations comprising:
receiving a text prompt describing a video to be generated, a plurality of reference images each depicting a corresponding subject, and binding information that associates each reference image with a corresponding entity word in the text prompt;
extracting features from each reference image and fusing the extracted features with text embeddings of the corresponding entity word based on the binding information to create personalization embeddings;
generating an initial noisy video; and
iteratively denoising the noisy video using a diffusion model conditioned on both the text prompt and the personalization embeddings to generate a personalized video that preserves identity of the corresponding subjects in the reference images while allowing for natural motion and pose variations.
