TL;DR
MAD (Makeup All-in-One) is a unified framework that tackles multiple facial makeup tasks—including transfer, removal, beauty filters, and text-guided editing—using a single cross-domain diffusion model. By replacing complex multi-model architectures with learnable domain embeddings and introducing a new text-annotated dataset (MT-Text), MAD achieves state-of-the-art results while enabling flexible, fine-grained control over makeup styles.
What Problem Does This Paper Address?
In the world of AI-driven facial editing, "makeup" isn't just one task; it's a collection of distinct problems. You might want to apply a makeup style from a reference image (makeup transfer), wipe it off entirely (makeup removal), apply a subtle enhancement (beauty filter), or change a lip color based on a text prompt (text-guided modification).
Historically, researchers have treated these as separate problems, engineering bespoke, complex architectures—often relying on CycleGANs or multiple encoder-decoder networks—to bridge different domains. These methods frequently suffer from misaligned facial features, high computational complexity, and a rigid inability to switch tasks seamlessly. Furthermore, text-to-makeup editing has lagged behind due to a severe shortage of high-quality datasets containing paired facial images and descriptive text annotations.
MAD solves both problems by introducing a single, unified diffusion model capable of handling all these tasks through simple domain switching, supported by a newly curated dataset for text-driven makeup.
Methods
Instead of training separate models or adding heavy sub-modules for each task, the authors formulate makeup manipulation as a cross-domain translation problem governed by a single diffusion model.
The architecture relies on three core innovations:
- Cross-Domain Translation with Embeddings: Inspired by CycleDiffusion, MAD defines distinct, learnable embeddings for different domains: "non-makeup", "makeup", "text", and "style". These embeddings act as conditional inputs (domain controllers) to a single diffusion model. To switch from a beauty filter to makeup removal, you simply swap the source and target embeddings.
- Last-$K$ Step Denoising: Standard diffusion models generate images from pure Gaussian noise, which completely destroys the original subject's identity. MAD bypasses this by adding noise only up to an intermediate time step $K$. Denoising from $K$ back to $0$ preserves the underlying facial structure and identity while allowing the model to apply the target style rapidly.
- Component Asynchronous Masking (CAM): A major flaw in uniform face-blending is that small details like eyebrows and lips get washed out by heavy noise. CAM applies different denoising steps ($K$) to different facial components. Smaller components receive less noise (a smaller $K$), preserving their delicate style information during the generation process.
Datasets
The authors evaluate MAD using standard benchmarks and introduce a new dataset to push the boundaries of text-guided makeup:
- MT (Makeup Transfer) Dataset: Contains 1,115 non-makeup and 2,719 makeup images.
- MT-Text Dataset (New): The authors extended the MT dataset by generating detailed textual annotations for three key facial regions ("skin", "eyes", and "lips"). They used GPT-4 Vision for zero-shot labeling and followed it up with a rigorous human cleaning process to eliminate redundancies and correct errors.
- Wild & BeautyFace (BF) Datasets: Used to test the model's generalization across diverse, real-world styles and head angles.
Key Insights and Ideas
- Embeddings as a Universal Switch: The most elegant realization in MAD is that different tasks are just different trajectories in the same latent space. By treating "makeup" and "non-makeup" as text-like embeddings, a single model can seamlessly navigate between them without architectural changes.
- The Spatial Noise Dilemma: Uniformly applying noise to a face during diffusion is counterproductive for local style transfer. The introduction of CAM highlights that facial components possess different "signal-to-noise" tolerances; lips and eyebrows require a gentler touch (less noise) than cheeks or foreheads to maintain style fidelity.
Key Results
MAD achieves dominant performance across quantitative metrics and human evaluations:
- Makeup Removal: When using a reference style to guide removal, MAD achieved the highest scores on both the MT and BF datasets, reaching an SSIM of 0.936 and a PSNR of 28.263 on the MT dataset, outperforming specialized architectures like CPM and SSAT.
- Makeup Transfer: MAD achieved the highest Identity Score (IDS), proving it preserves the source person's face far better than competing models while accurately transferring complex makeup styles.
- User Study: In a "winner-takes-all" user preference study evaluating visual quality, transfer quality, and identity preservation, MAD dominated with a 55% average top-1 selection rate, while the next best method (EleGANt) trailed at 30%.
Limitations and Future Work
Despite its impressive versatility, the authors note a few hurdles remaining for real-world deployment:
- Inference Speed: Because it relies on a full diffusion process, generating an image takes approximately 20 seconds on an NVIDIA RTX 3090. The authors suggest migrating the framework to Latent Diffusion Models (LDMs) or Rectified Flow to accelerate generation.
- Facial Occlusion: When a user's face is partially blocked by hair, hands, or glasses, the pixel-blending step can introduce visible artifacts. Moving the blending process from pixel space into feature space could resolve this.
- Unnatural Text Styles: Occasionally, text prompts can result in slightly unnatural or overly intense makeup renderings (e.g., harsh eyeshadow boundaries). Incorporating more diverse, contemporary styling data in future dataset iterations will help smooth out these edges.
Summary updated