UniBioTransfer: A Unified Framework for Multiple Biometrics Transfer

Caiyi Sun, Yujing Sun, Xiangyu Li, Yuhang Zheng, Yiming Ren, Jiamin Wang, Yuexin Ma, Siu-Ming YiuarXiv 2026

TL;DR

UniBioTransfer is the first unified deepface generation framework capable of handling multiple complex biometric transfer tasks—such as face, hair, motion, and whole-head swapping—within a single architecture. By introducing a swap-based data corruption strategy and a structure-aware Mixture-of-Experts (BioMoE) module, it successfully overcomes data scarcity and cross-task gradient conflicts, while easily generalizing to unseen low-level facial features with minimal fine-tuning.

Overview of UniBioTransfer's multi-level biometrics transfer capabilities.

What Problem Does This Paper Address?

Deepface generation tasks (e.g., changing someone's hair, swapping a face, or reenacting expressions) have traditionally relied on highly specialized, task-specific models. While effective, this single-task paradigm scales poorly and fails to share inter-task knowledge.

Building a unified model faces two major roadblocks:

  1. The Data Dilemma: Training deepface models typically relies on self-reconstruction (where target, reference, and ground-truth images come from the same person). Standard approaches mask out target regions, but for shape-varying attributes like hair, the mask's silhouette leaks the original geometry. The model simply learns to "inpaint" inside the boundary rather than performing a true shape transfer.
  2. Cross-Task Conflict: Different tasks have fundamentally conflicting objectives. Face swapping prioritizes identity preservation, motion transfer focuses on expressions, and hair/head transfer requires large structural adaptations. Training a single shared network naively leads to severe gradient interference, where updates for one task degrade the performance of another.

Methods

To resolve these challenges, the authors propose UniBioTransfer, which innovates at both the data and architectural levels:

1. Swapping-Based Data Corruption

For relatively static attributes (like the face), standard masking works fine. However, for spatially dynamic attributes (like hair or accessories), the authors introduce a Swapping-Based Corruption Strategy. Instead of masking, they use an off-the-shelf generative model to replace the target attribute with a completely random variation during training. This removes the original silhouette information, forcing the network to actually learn how to extract and transfer shape from the reference image.

Comparison between naive mask-based data construction and the proposed swap-based strategy.

2. BioMoE Architecture & Structure-Aware Routing

Built on top of a Stable Diffusion v1.5 backbone, the custom BioMoE module splits the network's Feed-Forward Network (FFN) layers into three expert types:

  • Global Expert: The original pre-trained dense FFN, acting as a shared knowledge base.
  • Routed Experts: A pool of lightweight experts shared across all tasks. Crucially, they are guided by a Structure-Aware Router that incorporates spatial cues (relative distances to facial landmarks), allowing experts to dynamically specialize in specific anatomical regions (e.g., face center vs. hair boundaries).
  • Task-Specific Experts: Implemented via parameter-efficient Low-Rank Adaptation (LoRA) to handle unique task demands.

3. Two-Stage Training Strategy

  • Stage I (Task-Specific Pre-training): Tasks are trained independently with isolated gradients to establish a clean weight profile. A Result-Based Adaptive LoRA Rank Allocation then uses Singular Value Decomposition (SVD) on the residual weights to dynamically allocate parameter budgets based on task complexity.
  • Stage II (Task-Unified Fine-tuning): The global expert weights are initialized by averaging the Stage I weights, and the entire system is jointly optimized across all tasks.
The complete UniBioTransfer architecture framework and two-stage training pipeline.

Datasets

The framework utilizes a combination of large-scale public datasets for multi-task training:

  • Face & Head Transfer: The entire VFHQ dataset (~15K videos) and a subset of Arc2Face (60K images across 30K identities).
  • Glasses & Hat Transfer: A filtered glasses dataset (7K images) and hat images from FFHQ and VFHQ (5K images).
  • Other Tasks: CelebV-HQ and VFHQ, yielding 80K real images after filtering.
  • Evaluation: A curated test set of 987 image pairs from FFHQ, alongside robustness testing on AffectNet (exaggerated expressions), EFHQ (extreme poses), and ROF (occlusions).

Key Insights and Ideas

  • Generative Corruption Prevents Trivial Solutions: By using an imperfect generative model to corrupt training data, the authors turn a flaw into a feature. The model cannot rely on target geometry shortcuts, forcing it to learn genuine structural transformation.
  • Spatial Awareness in MoE Routing: Standard MoE routers are spatially blind, treating all tokens equally. By injecting relative landmark coordinates, the router naturally clusters experts to handle specific facial regions (e.g., one expert handles forehead blending, another handles neck alignment).
Visualization of the structure-aware routing scores showing clear anatomical specialization.
  • Data-Driven Capacity Allocation: Rather than guessing LoRA ranks for different tasks, performing SVD on the pre-trained task residuals automatically assigns higher capacity to highly divergent tasks (like motion transfer) and lower capacity to simpler ones.

Key Results

UniBioTransfer achieves state-of-the-art performance across both unified and task-specific baselines:

  • High-Level & Mid-Level Tasks: It is the only unified model capable of executing face, hair, motion, and head transfer simultaneously. It outperforms specialized models like Stable-Hair and HairFusion in hair transfer, and GHOST2.0 in head transfer.
  • Fast Adaptation to Unseen Tasks: The pre-trained unified model acts as an excellent prior. It successfully adapts to novel low-level tasks (like eye, lip, or glasses swapping) using < 20% of the data and < 10% of the training cost of training from scratch.
  • Efficiency: It maintains a highly competitive inference speed (~15 seconds per image) and a reasonable memory footprint (14.5 GB Peak CUDA memory), making it far more practical than deploying multiple distinct pipelines.

Limitations and Future Work

  • Demographic Bias: The model exhibits suboptimal performance on certain ethnic groups, particularly Asian faces, which the authors attribute to underlying imbalances in the public training datasets.
  • Backbone Constraints: Due to resource limitations, the framework was only validated using Stable Diffusion v1.5. The authors note that adapting the BioMoE and data corruption strategy to newer, more powerful flow-matching backbones (like FLUX) remains an open and promising direction for future work.

Summary updated

Abstract

Deepface generation has traditionally followed a task-driven paradigm, where distinct tasks (e.g., face transfer and hair transfer) are addressed by task-specific models. Nevertheless, this single-task setting severely limits model generalization and scalability. A unified model capable of solving multiple deepface generation tasks in a single pass represents a promising and practical direction, yet remains challenging due to data scarcity and cross-task conflicts arising from heterogeneous attribute transformations. To this end, we propose UniBioTransfer, the first unified framework capable of handling both conventional deepface tasks (e.g., face transfer and face reenactment) and shape-varying transformations (e.g., hair transfer and head transfer). Besides, UniBioTransfer naturally generalizes to unseen tasks, like lip, eye, and glasses transfer, with minimal fine-tuning. Generally, UniBioTransfer addresses data insufficiency in multi-task generation through a unified data construction strategy, including a swapping-based corruption mechanism designed for spatially dynamic attributes like hair. It further mitigates cross-task interference via an innovative BioMoE, a mixture-of-experts based model coupled with a novel two-stage training strategy that effectively disentangles task-specific knowledge. Extensive experiments demonstrate the effectiveness, generalization, and scalability of UniBioTransfer, outperforming both existing unified models and task-specific methods across a wide range of deepface generation tasks. Project page is at https://scy639.github.io/UniBioTransfer.github.io/
BibTeX
@misc{sun2026unibiotransfer,
  author = {Caiyi Sun and Yujing Sun and Xiangyu Li and Yuhang Zheng and Yiming Ren and Jiamin Wang and Yuexin Ma and Siu-Ming Yiu},
  title = {{UniBioTransfer: A Unified Framework for Multiple Biometrics Transfer}},
  year = {2026},
  eprint = {2603.19637},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.19637},
}
Figure