IP Library Granted Patent US 12,394,445
Granted Patent B2
US 12,394,445 · App. 18/411,880 · Granted Aug 19, 2025

Generating representations of editing components using a machine learning model

Inventors: Sijie Zhu (Los Angeles, CA); Xin Gu (Beijing, CN); Fan Chen (Los Angeles, CA); Longyin Wen (Los Angeles, CA); Yufei Wang (Los Angeles, CA)
Assignees: Lemon Inc.; Beijing Zitiao Network Technology Co., Ltd.
G11B27/031G06V10/82
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,394,445
App. No.
18/411,880
Granted
Aug 19, 2025
Kind
B2
Abstract

The present disclosure describes techniques for generating representations of editing components using a machine learning model. Images and guidance tokens are input into a first sub-model of the machine learning model. The machine learning model is trained to distinguish the editing components from raw materials and generate the representations of the editing components. Tokens corresponding to the images are generated by the first sub-model based on the images and the guidance tokens. The tokens corresponding to the images and the guidance tokens are input into a second sub-model of the machine learning model. The second sub-model comprises a cross-attention mechanism. An embedding indicative of at least one editing component is generated based on the tokens corresponding to the images and the guidance tokens by the second sub-model.

Claims (64)

1. A method of generating representations of editing components using a machine learning model, comprising:

inputting images and guidance tokens into a first sub-model of the machine learning model, wherein the images comprise content of raw materials and at least one editing component applied on the raw materials, wherein the guidance tokens provide prior knowledge of possible editing components, and wherein the machine learning model is trained to distinguish the editing components from raw materials and generate the representations of the editing components;

generating tokens corresponding to the images by the first sub-model based on the images and the guidance tokens;

inputting the tokens corresponding to the images and the guidance tokens into a second sub-model of the machine learning model, wherein the second sub-model comprises a cross-attention mechanism; and

generating an embedding indicative of the at least one editing component based on the tokens corresponding to the images and the guidance tokens by the second sub-model.

2. The method of claim 1 , further comprising:

generating a dataset of editing components, wherein each video in the dataset is rendered by applying each single editing component on both image materials and video materials, wherein the dataset of editing components enables to learn universal representations of different editing components.

3. The method of claim 2 , wherein the machine learning model is trained on at least a subset of the dataset of editing components.

4. The method of claim 3 , further comprising:

guiding a process of training the machine learning model by a contrastive learning loss, wherein the contrastive learning loss is applied to pull positive samples closer while pushing negative samples away in embedding space.

5. The method of claim 2 , wherein the dataset of editing components comprises different types of editing components, and wherein the different types of editing components comprise video effect, animation, transition, filter, sticker, and text.

6. The method of claim 1 , wherein the first sub-model comprises a spatial encoder, and wherein the method further comprises:

dividing each input image into patches by the spatial encoder;

generating patch embedding by a linear projection layer of the spatial encoder;

generating image tokens by adding positional embedding to each patch embedding inputting the guidance tokens to the spatial encoder;

concatenating a class token to the image tokens and the guidance token to aggregate information; and

generating an output class token corresponding to each input image by a plurality of transformer layers with multi-head self-attention.

7. The method of claim 6 , wherein the first sub-model further comprises a temporal encoder, and wherein the method further comprises:

determining a temporal correlation between the input images by the temporal encoder, wherein the temporal encoder comprises a plurality of self-attention transformer blocks.

8. The method of claim 1 , wherein the generating an embedding indicative of the at least one editing component based on the tokens corresponding to the images and the guidance tokens by the second sub-model further comprising:

adopting the guidance tokens as key-value tokens of a first transformer block of the second sub-model;

extracting prior knowledge of editing component embedding by feeding a query token to the first transformer block;

feeding a token output from the first transformer block and the tokens corresponding to the images output from the first sub-model into a second transformer block, wherein the second sub-model comprises a plurality of layers of the first and second transformer blocks; and

generating the embedding indicative of the at least one editing component by the plurality of layers of the first and second transformer blocks.

9. The method of claim 1 , further comprising:

building dynamic embedding queues to store recently generated embedding corresponding to the editing components, wherein the embedding queues enable to provide prior knowledge of the editing components.

10. The method of claim 1 , further comprising:

adopting embedding centers corresponding to different types of editing components as the guidance tokens.

11. A system of generating representations of editing components using a machine learning model, comprising:

at least one processor; and

at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform operations comprising:

inputting images and guidance tokens into a first sub-model of the machine learning model, wherein the images comprise content of raw materials and at least one editing component applied on the raw materials, wherein the guidance tokens provide prior knowledge of possible editing components, and wherein the machine learning model is trained to distinguish the editing components from raw materials and generate the representations of the editing components;

generating tokens corresponding to the images by the first sub-model based on the images and the guidance tokens;

inputting the tokens corresponding to the images and the guidance tokens into a second sub-model of the machine learning model, wherein the second sub-model comprises a cross-attention mechanism; and

generating an embedding indicative of the at least one editing component based on the tokens corresponding to the images and the guidance tokens by the second sub-model.

12. The system of claim 11 , the operations further comprising:

generating a dataset of editing components, wherein each video in the dataset is rendered by applying each single editing component on both image materials and video materials, wherein the dataset of editing components enables to learn universal representations of different editing components.

13. The system of claim 12 , wherein the machine learning model is trained on at least a subset of the dataset of editing components, and wherein the operations further comprise:

guiding a process of training the machine learning model by a contrastive learning loss, wherein the contrastive learning loss is applied to pull positive samples closer while pushing negative samples away in embedding space.

14. The system of claim 11 , wherein the first sub-model comprises a spatial encoder and a temporal encoder, and wherein the operations further comprise:

dividing each input image into patches by the spatial encoder;

generating patch embedding by a linear projection layer of the spatial encoder;

generating image tokens by adding positional embedding to each patch embedding inputting the guidance tokens to the spatial encoder;

concatenating a class token to the image tokens and the guidance token to aggregate information;

generating an output class token corresponding to each input image by a plurality of transformer layers with multi-head self-attention; and

determining a temporal correlation between the input images by the temporal encoder, wherein the temporal encoder comprises a plurality of self-attention transformer blocks.

15. The system of claim 11 , wherein the generating an embedding indicative of the at least one editing component based on the tokens corresponding to the images and the guidance tokens by the second sub-model further comprising:

adopting the guidance tokens as key-value tokens of a first transformer block of the second sub-model;

extracting prior knowledge of editing component embedding by feeding a query token to the first transformer block;

feeding a token output from the first transformer block and the tokens corresponding to the images output from the first sub-model into a second transformer block, wherein the second sub-model comprises a plurality of layers of the first and second transformer blocks; and

generating the embedding indicative of the at least one editing component by the plurality of layers of the first and second transformer blocks.

16. The system of claim 11 , the operations further comprising:

building dynamic embedding queues to store recently generated embedding corresponding to the editing components, wherein the embedding queues enable to provide prior knowledge of the editing components.

17. A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a processor cause the processor to implement operations comprising:

inputting images and guidance tokens into a first sub-model of the machine learning model, wherein the images comprise content of raw materials and at least one editing component applied on the raw materials, wherein the guidance tokens provide prior knowledge of possible editing components, and wherein the machine learning model is trained to distinguish the editing components from raw materials and generate the representations of the editing components;

generating tokens corresponding to the images by the first sub-model based on the images and the guidance tokens;

inputting the tokens corresponding to the images and the guidance tokens into a second sub-model of the machine learning model, wherein the second sub-model comprises a cross-attention mechanism; and

generating an embedding indicative of the at least one editing component based on the tokens corresponding to the images and the guidance tokens by the second sub-model.

18. The non-transitory computer-readable storage medium of claim 17 , the operations further comprising:

generating a dataset of editing components, wherein each video in the dataset is rendered by applying each single editing component on both image materials and video materials, wherein the dataset of editing components enables to learn universal representations of different editing components.

19. The non-transitory computer-readable storage medium of claim 18 , wherein the machine learning model is trained on at least a subset of the dataset of editing components, and wherein the operations further comprising:

guiding a process of training the machine learning model by a contrastive learning loss, wherein the contrastive learning loss is applied to pull positive samples closer while pushing negative samples away in embedding space.

20. The non-transitory computer-readable storage medium of claim 17 , the operations further comprising:

adopting embedding centers corresponding to different types of editing components as the guidance tokens.

Assignments (6)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: ZHU, SIJIE; CHEN, FAN; WEN, LONGYIN; WANG, YUFEI
To: BYTEDANCE INC.
Reel/Frame 071703/0394 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: GU, XIN
To: DOUYIN VISION CO., LTD.
Reel/Frame 071703/0533 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: BYTEDANCE INC.
To: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 071703/0602 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: BYTEDANCE INC.
To: LEMON INC.
Reel/Frame 071703/0643 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: DOUYIN VISION CO., LTD.
To: BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 071703/0678 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 15, 2025
From: DOUYIN VISION CO., LTD.
To: LEMON INC.
Reel/Frame 071703/0719 →
Continuity (1)
Related Publication 20250232793A1 · Jul 17, 2025
References Cited (52)
US 11829406B1 · Meir Lador et al. · 2023 [cited by applicant]
US 12142298B1 · Kottur · 2024 [cited by examiner]
US 20210357307A1 · Deng et al. · 2021 [cited by applicant]
US 20230042221A1 · Xu et al. · 2023 [cited by applicant]
US 20240134936A1 · Fu · 2024 [cited by examiner]
US 20240135098A1 · Simard · 2024 [cited by examiner]
US 20240203119A1 · Ma · 2024 [cited by examiner]
US 20240314406A1 · Meier · 2024 [cited by examiner]
US 20240355022A1 · Shi · 2024 [cited by examiner]
US 20240404013A1 · Zhou · 2024 [cited by examiner]
US 20240412726A1 · Delmas · 2024 [cited by examiner]
US 20250005825A1 · Zhang · 2025 [cited by examiner]
US 20250078546A1 · Zhang · 2025 [cited by examiner]
CA 3145124A1 · 2023 [cited by applicant]
CN 117274450A · 2023 [cited by applicant]
“Free all-in-one video editor for everyone to create anything anywhere”; https://www.capcut.com/; CapCut; accessed Jun. 11, 2024; 8 pages. [cited by applicant]
Arnab et al.; “ViViT: A Video Vision Transformer”; IEEE/CVF Int'l Conf. on Computer Vision; 2021; p. 6836-6846. [cited by applicant]
Carion et al.; “End-to-End Object Detection with Transformers”; European Conf. on Computer Vision; 2020; p. 213-229. [cited by applicant]
Ceylan et al.; “Pix2Video: Video Editing using Image Diffusion”; IEEE/CVF Int'l Conf. on Computer Vision; 2023; p. 23206-23217. [cited by applicant]
Chen et al.; “Exploring Simple Siamese Representation Learning”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2021; p. 15750-15758. [cited by applicant]
Deng et al.; “ImageNet: A large-scale hierarchical image database”; IEEE Conf. on Computer Vision and Pattern Recognition; 2009; p. 248-255. [cited by applicant]
Devlin et al.; “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding”; Computer and Language; arXiv:1810.04805; May 2019; 16 pages. [cited by applicant]
Dosovitskiy et al.; “An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale”; ICLR; arXiv:2010.11929; Jun. 2021; 22 pages. [cited by applicant]
Feichtenhofer et al.; “SlowFast Networks for Video Recognition”; IEEE/CVF Int'l Conf. on Computer Vision; 2019; p. 6202-6211. [cited by applicant]
Feichtenhofer et al.; “A Large-Scale Study on Unsupervised Spatiotemporal Representation Learning”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2021; p. 3299-3309. [cited by applicant]
Frey et al.; “Automatic Non-Linear Video Editing Transfer”; Computer Vision and Pattern Recognition; arXiv:2105.06988; May 2021; 5 pages. [cited by applicant]
Goodfellow et al.; “Generative Adversarial Networks”; Communications of the ACM; vol. 63; Nov. 2020; p. 139-144. [cited by applicant]
He et al.; “Momentum Contrast for Unsupervised Visual Representation Learning”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2020; p. 9729-9738. [cited by applicant]
He et al.; “Masked Autoencoders Are Scalable Vision Learners”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2022; p. 16000-16009. [cited by applicant]
Ho et al.; “Denoising Diffusion Probabilistic Models”; 34 [cited by applicant]
Kay et al.; “The Kinetics Human Action Video Dataset”; Computer Vision and Pattern Recognition; arXiv:1705.06950; May 2017; 22 pages. [cited by applicant]
Kingma et al.; “Adam: A Method for Stochastic Optimization”; ICLR; 2015; 15 pages. [cited by applicant]
Koorathota et al.; “Editing Like Humans: A Contextual, Multimodal Framework for Automated Video Editing”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2021; p. 1701-1709. [cited by applicant]
Liew et al; “MagicEdit: High-Fidelity and Temporally Coherent Video Editing”; Computer Vision and Pattern Recognition; arXiv:2308.14749; Aug. 2023; 8 pages. [cited by applicant]
Loshchilov et al.; “SGDR: Stochastic Gradient Descent with Warm Restarts”; ICLR; 2017; 16 pages. [cited by applicant]
Oord et al.; “Representation Learning with Contrastive Predictive Coding”; Machine Learning; arXiv:1807.03748; Jan. 2019; 13 pages. [cited by applicant]
Pan et al.; “VideoMoCo: Contrastive Video Representation Learning With Temporally Adversarial Examples”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2021; p. 11205-11214. [cited by applicant]
Paszke et al.; “PyTorch: An Imperative Style, High-Performance Deep Learning Library”; 33 [cited by applicant]
Radford et al.; “Learning Transferable Visual Models From Natural Language Supervision”; 38 [cited by applicant]
Rombach et al.; “High-Resolution Image Synthesis With Latent Diffusion Models”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2022; p. 10684-10695. [cited by applicant]
Shang et al.; “Video Visual Relation Detection”; 25 [cited by applicant]
Shen et al.; “AutoTransition: Learning to Recommend Video Transition Effects”; ECCV; arXiv:2207.13479; Jul. 2022; 22 pages. [cited by applicant]
Tong et al.; “VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training”; 36 [cited by applicant]
Tran et al.; “Video Classification With Channel-Separated Convolutional Networks”; IEEE/CVF Int'l Conf. on Computer Vision; 2019; p. 5552-5561. [cited by applicant]
Van der Maaten et al.; “Visualizing Data using t-SNE”; Journal of Machine Learning Research; vol. 9; 2008; p. 2579-2605. [cited by applicant]
Vaswani et al.; “Attention is All you Need”; 31 [cited by applicant]
Wang et al.; “VideoMAE V2: Scaling Video Masked Autoencoders With Dual Masking”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2023; p. 14549-14560. [cited by applicant]
Wei et al.; “Masked Feature Prediction for Self-Supervised Visual Pre-Training”; IEEE/CVF Conf. on Computer Vision and Pattern Recognition; 2022; p. 14668-14678. [cited by applicant]
Wu et al.; “Sampling Matters in Deep Embedding Learning”; IEEE Int'l Conf. on Computer Vision; 2017; p. 2840-2848. [cited by applicant]
Yang et al.; “Rerender A Video: Zero-Shot Text-Guided Video-to-Video Translation”; SIGGRAPH Asia Conf. Papers; arXiv:2306.07954; Sep. 2023; 13 pages. [cited by applicant]
Zhang et al.; “Deep Image Compositing”; IEEE/CVF Winter Conf. on Applications of Computer Vision; 2021; p. 365-374. [cited by applicant]
International Patent Application No. PCT/CN2024/140349; Int'l Search Report; dated Mar. 13, 2025; 3 pages. [cited by applicant]