AFFACT: Alignment-free facial attribute classification technique

Manuel Günther, Andras Rozsa, Terrance E. Boult · DOI

TL;DR

This paper introduces AFFACT, an alignment-free technique for facial attribute classification that achieves state-of-the-art results on the CelebA dataset. By leveraging data augmentation and deep convolutional neural networks (ResNets), AFFACT can accurately classify facial attributes even when faces are not perfectly aligned, significantly improving robustness and simplifying the pipeline.

What Problem Does This Paper Address?

Facial attribute classification, which involves identifying characteristics like "wearing glasses" or "blond hair," is crucial for tasks like semantic image search and forensic analysis. Traditionally, these tasks rely on aligning faces using detected facial landmarks. However, this alignment step is sensitive to errors in landmark detection, especially in unconstrained environments. The paper questions whether this alignment is truly necessary, proposing that attribute classification might be achievable directly from detected face bounding boxes, thereby bypassing a potentially error-prone and complex preprocessing step.

Methods

The authors investigate the performance of deep convolutional neural networks (DCNNs), specifically Residual Networks (ResNets), for facial attribute classification. They compare two loss functions: sigmoid cross-entropy and Euclidean loss, finding little difference in classification performance.

The core innovation is the Alignment-Free Facial Attribute Classification Technique (AFFACT). This technique employs a novel data augmentation strategy during training. Instead of relying on perfectly aligned images, AFFACT introduces random perturbations to scale, rotation, and shift of the detected bounding boxes. This makes the network more robust to variations in face pose and position. For testing, they also explore using multiple crops and transformations of the input image to further improve robustness.

Datasets

The primary dataset used is CelebA [18]. This dataset contains over 200,000 images with approximately 10,000 celebrities, each annotated with binary labels for 40 facial attributes. The paper also mentions using ImageNet for pre-training their ResNet models.

Key Insights and Ideas

  • Alignment is not always necessary: The paper demonstrates that accurate facial attribute classification can be achieved without explicit facial landmark alignment, challenging a long-standing assumption in the field.
  • Data augmentation is key: The proposed data augmentation strategy, which introduces random perturbations to scale, rotation, and shift, is crucial for training an alignment-free network. This makes the model inherently more robust to real-world variations.
  • DCNNs are powerful, but sensitive: While DCNNs like ResNets achieve high accuracy, they are sensitive to misalignment. AFFACT addresses this sensitivity through its training methodology.
  • Ensembles offer marginal gains for augmented testing: While ensembles of networks can improve performance on aligned images, their benefit diminishes significantly when extensive test-time data augmentation (like 162 transformations) is applied.

Key Results

  • State-of-the-art performance: AFFACT achieves a new state-of-the-art error rate of 8.03% on the CelebA dataset using detected face bounding boxes without alignment. This represents a 36.8% relative improvement over the previous state-of-the-art (LNets+ANet [18]).
  • Robustness to misalignment: AFFACT shows significantly better performance than standard ResNets when tested on images aligned using automatically detected landmarks, demonstrating its robustness to real-world errors.
  • Comparable performance to aligned methods: AFFACT achieves comparable results to methods that use hand-labeled landmarks, even when tested on aligned images (AFFACT/A in Table 1).
  • Loss function comparison: Little difference was found between sigmoid cross-entropy and Euclidean loss functions for attribute classification.

Limitations and Future Work

  • Dataset bias: The authors acknowledge that the CelebA dataset, while large, is collected in relatively controlled environments. They anticipate that performance might be more impacted by misalignment in datasets like IJB-A [11].
  • Label noise: The authors mention that they are relabeling some errors in the CelebA dataset and expect actual classification errors to be at least 25% lower.
  • Training time: The data augmentation technique increases training time, though it remains competitive with existing methods.
  • Future work: The authors plan to investigate the usefulness of AFFACT attributes for face recognition tasks and explore other fusion techniques for test-time augmentation. They also aim to adapt the generic data augmentation technique to other face processing tasks.

Summary updated

BibTeX
@inproceedings{gunther2016affact,
  author = {Manuel Günther and Andras Rozsa and Terrance E. Boult},
  title = {{AFFACT: Alignment-free facial attribute classification technique}},
  booktitle = {Ijcb},
  year = {2016},
  doi = {10.1109/btas.2017.8272686},
}
Figure