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

EleGANt: Exquisite and Locally Editable GAN for Makeup Transfer

Chenyu Yang, Wanrong He, Yingqing Xu, Yang Gao · DOI

Abstract

Most existing methods view makeup transfer as transferring color distributions of different facial regions and ignore details such as eye shadows and blushes. Besides, they only achieve controllable transfer within predefined fixed regions. This paper emphasizes the transfer of makeup details and steps towards more flexible controls. To this end, we propose Exquisite and locally editable GAN for makeup transfer (EleGANt). It encodes facial attributes into pyramidal feature maps to preserve high-frequency information. It uses attention to extract makeup features from the reference and adapt them to the source face, and we introduce a novel Sow-Attention Module that applies attention within shifted overlapped windows to reduce the computational cost. Moreover, EleGANt is the first to achieve customized local editing within arbitrary areas by corresponding editing on the feature maps. Extensive experiments demonstrate that EleGANt generates realistic makeup faces with exquisite details and achieves state-of-the-art performance.

Introduction

Makeup transfer aims to apply the makeup style from a reference image onto a source face while maintaining the source individual's identity. Historically, deep learning approaches like BeautyGAN have treated this primarily as a color distribution problem, often relying on histogram matching. While effective for general color palettes, these methods frequently destroy high-frequency spatial details—such as the precise shape of winged eyeliner or the subtle texture of blush.

Recent advancements have utilized attention mechanisms to align reference makeup with source faces to accommodate varying head poses. However, standard pixel-wise attention suffers from quadratic computational complexity ($O(N^2)$). To manage memory constraints, these models often downsample feature maps, which inadvertently smooths out fine details. Furthermore, existing controllable models are typically restricted to editing predefined semantic regions (e.g., lips or skin), lacking the flexibility required for arbitrary, free-hand local editing.

Methodology

To address the loss of detail and computational bottlenecks, we propose EleGANt (Exquisite and locally editable GAN). The framework introduces several key innovations:

Pyramidal Feature Extraction

The model encodes facial attributes into a pyramidal structure, utilizing both low-resolution feature maps for global colors and shadows, and high-resolution maps to capture high-frequency edges and intricate details.

Sow-Attention (Shifted Overlapped Windowing Attention)

This core architectural novelty enables high-resolution alignment without the massive cost of standard attention. EleGANt first performs coarse alignment using Thin Plate Splines (TPS) based on facial landmarks. Subsequently, it computes attention only within local, shifted, overlapping windows. This approach reduces computational complexity by a factor of 16 while avoiding the "blocky" artifacts associated with non-overlapping windows.

Pseudo Ground Truth (PGT) Training

In the absence of paired datasets, EleGANt is trained unsupervised within a CycleGAN framework. Training is guided by a "Pseudo Ground Truth" generated by blending histogram matching (for color) and TPS warping (for spatial details). An annealing schedule is employed: the model prioritizes color matching early in training and shifts toward spatial detail matching later, preventing the learning of warping artifacts.

Arbitrary Local Editing

Because makeup is represented as high-resolution spatial feature maps, EleGANt allows users to apply arbitrary binary masks to interpolate or mix-and-match makeup from multiple references on any part of the face.

Customized local editing workflow using arbitrary masks to blend makeup from multiple references.

Experiments and Results

Datasets

The model was trained and evaluated on the standard MT (Makeup Transfer) Dataset, containing 1,115 non-makeup and 2,719 makeup images, all resized to 256×256 for training.

Key Results

Quantitative evaluation via a user study showed that EleGANt significantly outperforms state-of-the-art baselines (BeautyGAN, LADN, PSGAN, SCGAN). Users selected EleGANt as the superior model 59.00% of the time for visual quality and 66.25% for detail processing.

Qualitatively, EleGANt handles extreme pose misalignments better than previous models, avoiding common issues like "color bleeding" (e.g., lipstick on teeth) and accurately transferring complex, multi-color eye shadows.

Qualitative comparison of makeup transfer results. EleGANt (red box) preserves fine details and avoids artifacts compared to baselines.

Conclusion

EleGANt demonstrates that treating makeup as high-frequency spatial features rather than simple color codes is essential for realism. By utilizing shifted overlapping windows and an annealed training strategy, the model achieves high-fidelity results with unprecedented local controllability. While the model currently struggles with extreme theatrical makeup and is limited by the diversity of the MT dataset, it represents a significant step forward in exquisite and flexible makeup transfer.

Summary updated

BibTeX
@inproceedings{yang2022elegant,
  author = {Chenyu Yang and Wanrong He and Yingqing Xu and Yang Gao},
  title = {{EleGANt: Exquisite and Locally Editable GAN for Makeup Transfer}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19787-1\_42},
}
Figure