NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semantic-Aware Makeup Cleanser

Yi Li, Huaibo Huang, Junchi Yu, Ran He, Tieniu Tan

TL;DR

Facial makeup can significantly degrade the performance of face verification systems by altering key visual features. This paper introduces the Semantic-Aware Makeup Cleanser (SAMC), a generative framework that selectively removes makeup while preserving an individual's identity, pose, and expression. By combining an unsupervised attention module with region-specific texture losses, SAMC achieves state-of-the-art de-makeup visual quality and noticeably boosts face verification accuracy.

What Problem Does This Paper Address?

While deep learning has pushed face verification to remarkable heights, facial cosmetics remain a challenging hurdle. Makeup alters local textures, colors, and facial boundaries (e.g., through heavy eye shadow, lipstick, or foundation), which frequently misleads deep verification networks into false non-matches.

Existing deep generative approaches attempt to solve this by treating makeup removal as a global image-to-image translation problem. However, the authors argue this formulation is flawed. In real-world datasets, a person's makeup and non-makeup photos are rarely perfectly aligned; they differ in pose, expression, lighting, hairstyle, and background. Forcing a network to perform a strict pixel-to-pixel mapping forces it to alter these non-makeup factors incorrectly, leading to severe visual artifacts and a loss of identity. SAMC addresses this by treating makeup removal as a localized, semantic-aware task rather than a global transformation.

Conceptual illustration of verification via generation

Methods

SAMC builds upon a conditional Generative Adversarial Network (cGAN) framework, introducing several novel components to handle spatial misalignment and localized makeup distribution:

  1. Geometry Warping: To handle spatial misalignment in the training data, the non-makeup ground truth image ($Y$) is warped using 68 facial keypoints to match the exact geometry of the input makeup image ($X$), creating a warped target ($W$).
  2. Unsupervised Attention Module: Because non-linear warping inevitably introduces geometric distortions, a learned attention module ($A$) adaptively determines where and how much to modify the image. It focuses strictly on cosmetic regions (eyes, lips) and ignores background or warped artifacts.
  3. Semantic-Aware Texture (SAT) Loss: The authors leverage face parsing networks to segment the face into three distinct cosmetic zones: foundation, eye shadow, and lipstick. Instead of strict pixel-matching, the SAT loss forces the mean and standard deviation of deep features (extracted from the second convolutional layer of a pre-trained Light CNN) within these specific regions to match the non-makeup target.
  4. Identity Preservation: An identity (ID) loss based on deep features from Light CNN ensures that the core facial structure and identity remain unchanged during the "cleansing" process.
SAMC Network Architecture

Datasets

The model was evaluated across four distinct datasets:

  • Dataset1, Dataset2, and Dataset3 (FAM): Three public benchmarks containing pairs of makeup and non-makeup face images under various conditions.
  • Cross-Makeup Face (CMF) Dataset: A high-quality dataset utilized by the authors' lab, containing over 2,600 image pairs from 1,400+ identities at a minimum resolution of $256 \times 256$.

To demonstrate robust generalization, SAMC was trained exclusively on the CMF dataset and tested on the three public datasets in a challenging cross-dataset setting without any fine-tuning.

Key Insights and Ideas

  • Makeup is Local, Not Global: Treating makeup removal as a holistic image translation task introduces unnecessary noise. By isolating foundation, eyes, and lips via face parsing, the network applies tailored treatments to different cosmetic types.
  • Attention as a Distortion Shield: The unsupervised attention map serves a dual purpose. It not only locates makeup but also naturally filters out geometric artifacts introduced by the face-warping preprocessing step. If a pixel is heavily distorted by warping, the attention map assigns it a low weight, forcing the generator to rely on the original input context instead.
  • Verification via Generation: Instead of trying to train a face matcher that is robust to makeup, it is highly effective to use a generative front-end to "cleanse" the face first, allowing standard, off-the-shelf face verification networks to be used without retraining.

Key Results

SAMC achieved superior quantitative and qualitative performance compared to standard translation baselines like Pix2pix, CycleGAN, and BLAN:

  • Verification Accuracy: On the CMF dataset, SAMC achieved a 94.04% Rank-1 accuracy, outperforming the un-cleansed baseline (91.92%) and the previous state-of-the-art BLAN (91.03%).
  • Cross-Dataset Generalization: When trained on CMF and directly tested on public datasets, SAMC achieved 96.1% accuracy on Dataset 1 (vs. BLAN's 94.8%) and 94.8% on the FAM dataset (vs. BLAN's 88.1%).
  • Visual Quality: Qualitatively, SAMC successfully removed heavy eye shadow and lipstick while perfectly preserving the original expressions, poses, and background details, avoiding the blurry artifacts common in standard image-to-image translation models.
Qualitative comparison of makeup removal

Limitations and Future Work

While SAMC excels at isolating and removing makeup, it explicitly leaves out other complex variations like extreme pose changes, severe expression distortions, and dramatic illumination shifts, focusing purely on the cosmetic aspect. The authors note that future work could integrate SAMC with face frontalization or expression normalization techniques to handle uncooperative real-world environments comprehensively.

Summary updated

BibTeX
@inproceedings{li2019semantic,
  author = {Yi Li and Huaibo Huang and Junchi Yu and Ran He and Tieniu Tan},
  title = {{Semantic-Aware Makeup Cleanser}},
  booktitle = {BTAS},
  year = {2019},
  doi = {10.1109/btas46853.2019.9186001},
}
Figure