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

Cosmetic-Aware Makeup Cleanser

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

Introduction

Face verification is a critical component of modern security and social media platforms. However, facial makeup presents a significant challenge to these systems. Unlike permanent physiological changes, makeup is a temporary, localized alteration that can dramatically change a person's appearance, often leading to false negatives in biometric systems.

Existing solutions often treat makeup removal as a global image-to-image translation problem. This approach typically fails due to two main issues: misalignment between training pairs and the tendency of global models to alter non-cosmetic regions like background or bone structure, which destroys identity-defining features.

Overview of the makeup-invariant face verification pipeline using SAMC.

The SAMC Framework

To address these challenges, the authors propose the Semantic-Aware Makeup Cleanser (SAMC). SAMC operates on the principle of "verification via generation," normalizing input data before passing it to a standard face recognizer. The framework consists of several innovative components designed to preserve identity while removing cosmetics.

Unsupervised Attention and Residual Generation

Rather than modifying the entire image, SAMC employs an unsupervised attention module. This module identifies specific regions where makeup is applied and determines its intensity. This allows the generator—a U-Net structure—to focus exclusively on cosmetic areas. The generator produces a "residual result," which is subtracted from the original image to reach a cleansed, non-makeup state.

Semantic-Aware Texture (SAT) Loss

The core technical innovation is the Semantic-Aware Texture (SAT) loss. Traditional pixel-wise losses (like L1 or L2) often result in blurriness because training images are rarely perfectly aligned. Instead, the SAT loss uses a face-parsing model to calculate the mean and standard deviation of features within specific regions (e.g., lips, eyes, skin). By matching these texture statistics to those of real non-makeup faces, the model ensures the output looks natural and retains high visual fidelity.

The detailed architecture of the Semantic-Aware Makeup Cleanser (SAMC) training pipeline.

Handling Misalignment

To train the model without perfectly aligned pairs, the system utilizes 68 facial keypoints to "warp" non-makeup ground truth images to match the pose and expression of the makeup-wearing input. This provides a spatially consistent target for the reconstruction process.

Experimental Evaluation

The researchers evaluated SAMC on several datasets, including the high-quality Cross-Makeup Face (CMF) dataset, which contains over 2,600 image pairs.

  • Verification Accuracy: SAMC significantly outperformed baseline methods. On the CMF dataset, it achieved a Rank-1 accuracy of 94.04%, surpassing both standard baselines (91.92%) and previous state-of-the-art models like BLAN (91.03%).
  • Robustness and Generalization: In cross-dataset tests, SAMC demonstrated superior generalization, reaching 96.1% accuracy on Dataset 1 and 94.8% on the FAM dataset.
  • Qualitative Results: Visual inspections show that SAMC successfully removes heavy eyeshadow and lipstick while maintaining sharp details in the iris and skin texture, areas where other generative approaches often produce artifacts.

Conclusion

SAMC demonstrates that treating makeup as a localized effect rather than a global transformation is key to effective digital cleansing. By combining unsupervised attention with region-specific texture statistics, the model provides a robust preprocessing step for face verification systems. While extreme profile views remain a challenge, SAMC sets a new benchmark for makeup-invariant biometric security.

Summary updated

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