Introduction
Makeup transfer is the task of applying the cosmetic style from a reference image onto a source face while maintaining the source's identity, including facial structure, lighting, and skin textures. While existing methods have seen success in transferring simple color distributions (like lipstick), they often struggle with "high-frequency" details—the intricate textures found in glittery eye shadows, complex blush gradients, or specific brush strokes. Furthermore, most current models are rigid, offering limited control over specific facial regions and failing when faces are misaligned in pose.
To address these challenges, we present EleGANt (Exquisite and Locally Editable GAN), a framework designed to preserve fine-grained textures and enable arbitrary local editing.
Methodology
EleGANt introduces three core innovations to move beyond simple color matching and achieve high-fidelity results.
1. Pyramidal Feature Encoding
The model utilizes a Facial Attribute Encoder (FAEnc) to decompose images into a multi-scale feature pyramid. High-resolution maps ($X_H, Y_H$) are dedicated to capturing sharp edges and fine textures, while low-resolution maps ($X_L, Y_L$) focus on global color distributions and shadows. This separation allows the model to process delicate makeup details without them being washed out by global color shifts.
2. Sow-Attention Module
Standard pixel-wise attention mechanisms are computationally prohibitive at high resolutions. EleGANt employs a Sow-Attention (Shifted Overlapped Windowing Attention) module. By computing attention within local windows and using a shifted overlapping scheme—inspired by Swin Transformers—the model maintains high-resolution detail while ensuring spatial continuity and avoiding boundary artifacts. This module is critical for aligning makeup features between source and reference faces, even under significant pose differences.
3. Pseudo Ground Truth (PGT) with Annealing
Training makeup transfer models is difficult due to the lack of paired data (the same person with and without makeup). EleGANt generates Pseudo Ground Truths by combining Histogram Matching for color accuracy and Thin Plate Splines (TPS) warping for spatial alignment. An "annealing" strategy is used during training, gradually shifting the loss focus from coarse color matching to fine-grained spatial details as the model matures.
Key Insights and Local Editing
A major breakthrough of EleGANt is its approach to local control. Because makeup is represented as a spatially-aware feature map ($\Gamma$), users can perform "free-style" editing. By masking or interpolating these maps, different makeup styles can be applied to arbitrary regions (e.g., taking skin tone from one reference, eye shadow from another, and lipstick from a third) as shown in the figure above.
Experimental Results
EleGANt was evaluated against leading models such as BeautyGAN, PSGAN, and SCGAN using the standard MT (Makeup Transfer) dataset.
Qualitative Performance
EleGANt consistently produces sharper results, successfully transferring the specific "shape" of eye shadow rather than just a blurred color cloud. It effectively prevents "color bleeding," where lipstick might otherwise smudge into the surrounding skin area.
Quantitative Evaluation
In a user study involving 40 participants, EleGANt significantly outperformed its competitors across three key metrics:
- Visual Quality: Preferred in 59.00% of cases (compared to 21.25% for the runner-up, SCGAN).
- Detail Processing: Preferred in 66.25% of cases.
- Overall Performance: Achieved a 62.25% preference rate.
Conclusion and Future Work
EleGANt sets a new standard for makeup transfer by prioritizing high-frequency textures and offering unprecedented local editability. While it excels in daily makeup scenarios, future work will focus on expanding the model's robustness to extreme theatrical styles and a broader range of skin tones, which are currently underrepresented in standard datasets.
Summary updated