Abstract
Face recognition systems often struggle with occlusions, particularly eyeglasses, which can obscure biometric features and introduce visual artifacts. We present ByeGlassesGAN, an end-to-end generative adversarial network (GAN) framework designed for the automatic detection and removal of eyeglasses. By integrating multi-task learning—specifically face reconstruction and segmentation—with an identity-preserving loss, our method generates realistic, glasses-free images. Experimental results demonstrate that ByeGlassesGAN significantly improves the accuracy of downstream face recognition tasks and outperforms existing state-of-the-art methods in visual quality and identity retention.
Introduction
While face recognition technology is now ubiquitous, natural occlusions like eyeglasses remain a significant challenge. Eyeglasses block critical biometric information around the eyes and can introduce discrepancies in facial feature extraction due to lens glare, tinting, and refraction. Traditional methods, such as PCA-based reconstruction, often yield blurry results, while modern GANs frequently fail to maintain the subject's original identity or handle complex visual artifacts.
ByeGlassesGAN addresses these issues by focusing on two primary goals: generating a visually "clean" face and ensuring the person's identity remains consistent for both human observers and computer vision systems.
Proposed Method
The ByeGlassesGAN architecture is a multi-task framework comprising three primary components: an Encoder (E), a Face Decoder (FD), and a Segmentation Decoder (SD).
Architecture and Loss Functions
The Encoder extracts high-level feature vectors from the input image. These features are then processed by two decoders. The Segmentation Decoder predicts binary masks for both the eyeglasses and the overall face shape. This geometric information is shared with the Face Decoder via skip connections, guiding the reconstruction process by identifying exactly which regions require inpainting.
To ensure identity preservation, the framework incorporates a pre-trained Identity Extractor (IE) based on ResNet34. This component calculates an Identity Preserving Loss, which penalizes the generator if the output image's feature vector deviates from the ground truth.
Realistic Data Synthesis
A key challenge in training such models is the lack of paired data (the same individual with and without glasses in identical poses). To overcome this, the authors developed a sophisticated synthesis pipeline. Unlike simple overlays, this pipeline models physical phenomena such as lens refraction (deforming the face behind the lens), tinting, and specular glare, leading to better generalization on real-world images.
Experimental Results
The performance of ByeGlassesGAN was evaluated using the CelebA and MeGlass datasets. The model was compared against state-of-the-art methods including CycleGAN, StarGAN, and ELEGANT.
Quantitative and Qualitative Performance
In a user study involving 49 subjects, ByeGlassesGAN achieved a Mean Opinion Score (MOS) of 4.31, significantly higher than the next best competitor (CycleGAN at 3.23). Quantitatively, the model achieved the lowest Fréchet Inception Distance (FID) on both MeGlass (27.14) and CelebA (42.97), indicating superior image realism.
Impact on Face Recognition
When integrated as a pre-processing step for a MobileFaceNet recognition model, ByeGlassesGAN improved the True Acceptance Rate (TAR) by approximately 7% at a False Acceptance Rate (FAR) of $10^{-5}$. This demonstrates the model's effectiveness in restoring biometric information lost to occlusion.
Conclusion
ByeGlassesGAN provides a robust solution for removing eyeglasses while preserving facial identity. By leveraging multi-task learning and physically-informed data synthesis, the model handles complex artifacts like refraction and glare that previous methods struggled with. Future work may extend this segmentation-guided approach to other facial attributes, such as facial hair or headwear, to further enhance the robustness of biometric systems.
Summary updated