Face Swapping Identity Layers for Low-Memory Multi-ID Training

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing face swapping techniques require large amounts of memory and are inefficient in switching between identities, making it infeasible to mix different identities in a single training batch.

Innovation Solution

The technique involves representing facial identity using a selected identity-specific dense neural network layer or a one-hot encoded identity vector, allowing efficient conversion of latent representations into output images with reduced memory usage and enabling training with multiple identities in a batch.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If existing face swapping techniques use machine learning models with numerous parameters to represent each facial identity, then the model can perform face swapping for multiple identities, but the memory consumption increases substantially for each additional identity

Engineering Contradiction:
Improvenumber of facial identitiesVSAvoidmemory consumption
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The model is segmented into identity-independent components (encoder, decoder, latent space processing) and identity-specific components (dense layers representing each facial identity). This segmentation allows the identity-specific parts to be managed separately, reducing the overall memory footprint while maintaining the ability to handle multiple identities.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter representation from storing complete facial identity models (consuming ~100MB each) to using dense layers with significantly fewer parameters. By modifying how identity information is stored and processed in the latent space, the system achieves the same functionality with reduced memory consumption.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If existing face swapping techniques exchange significant data when changing identity, then the model can switch between different facial identities, but mixing different identities in one training batch becomes infeasible

Engineering Contradiction:
Improveidentity switching capabilityVSAvoiddata exchange complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

Identity-specific information is extracted into separate dense layers that can be independently selected and processed. This extraction allows the training system to handle multiple identities without requiring complex data exchange between identity representations, as each identity's dense layer is self-contained and can be processed in parallel within a training batch.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If the machine learning model size increases in proportion to the number of facial identities, then the model can support more identities, but the computational complexity and training difficulty increase substantially

Engineering Contradiction:
Improvenumber of supported identitiesVSAvoidmodel structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The encoder, latent space processing, and decoder components serve as universal, identity-independent modules that handle all facial identities. Only the dense layers are identity-specific, allowing the majority of the model to be reused across multiple identities without increasing complexity proportionally.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12555273B2Generating an image including a source individual
Publication Date: 2026.02.17 DISNEY ENTERPRISES INC
  • US12555273B2 patent drawing
  • US12555273B2 patent drawing
  • US12555273B2 patent drawing

AI summary

One embodiment of the present invention sets forth a technique for performing face swapping. The technique includes generating a latent representation of a first facial identity included in an input image. The technique further includes identifying a first identity-specific neural network layer associated with a second facial identity from a plurality of identity-specific neural network layers, wherein each neural network layer included in the plurality of identity-specific neural network layers is associated with a different facial identity. The technique further includes executing the first identity-specific neural network layer and one or more other neural network layers to generate one or more decoder input values corresponding to the latent representation. The technique further includes executing a decoder neural network that converts the one or more decoder input values into an output image depicting the second facial identity.