Stacked Dense U-Nets with Dual Transformers for Robust Face Alignment

Jia Guo, Jiankang Deng, Niannan Xue, Stefanos Zafeiriou

Introduction

Facial landmark localization is a critical component for downstream tasks such as face recognition, animation, and augmented reality. While Deep Convolutional Neural Networks (DCNNs) have significantly advanced the state-of-the-art, "in-the-wild" scenarios—characterized by extreme poses, heavy occlusions, and exaggerated expressions—remain challenging. Existing models often suffer from limited capacity due to simple skip connections and a lack of spatial invariance, making them sensitive to geometric transformations.

This paper introduces a novel architecture that addresses these bottlenecks by combining Stacked Dense U-Nets with Dual Transformers. The proposed framework integrates a Scale Aggregation Topology (SAT) and Channel Aggregation Blocks (CAB) with deformable convolutions and a "coherent loss" function to achieve superior robustness across both 2D and 3D face alignment tasks.

Proposed Architecture

The core of the system is a stacked configuration of Dense U-Nets, enhanced by transformers both internal and external to the convolutional layers.

Overview of the proposed architecture featuring Stacked Dense U-Nets and Dual Transformers.

Stacked Dense U-Nets

The authors move beyond standard Hourglass or U-Net modules by introducing two key structural innovations:

  1. Scale Aggregation Topology (SAT): Inspired by Deep Layer Aggregation (DLA), SAT iteratively merges features across different resolutions. This creates a dense web of connections that captures fine-grained local details alongside broad global context.
  2. Channel Aggregation Block (CAB): This block utilizes channel compression and aggregation to enhance contextual modeling, helping the network maintain landmark relationships even when local features (like an eye) are blurred or occluded.
Comparison of different network topologies, highlighting the proposed Scale Aggregation Topologies (SAT I-III).

Dual Transformers

To achieve spatial invariance, the model employs "transformers" at two levels:

  • Inside Transformer (Implicit): By using deformable convolutions, the network learns offsets for its sampling grid. This allows the receptive field to adaptively "warp" to the face's actual shape, handling non-rigid transformations more effectively than standard fixed-grid convolutions.
  • Outside Transformer (Explicit): A "coherent loss" function is introduced during training. The model processes both an original image and its transformed version (e.g., flipped or rotated). The loss enforces consistency between the predicted landmarks of the transformed image and the transformed predictions of the original image, forcing the model to be mathematically consistent across views.

Experimental Evaluation

The model was evaluated on several challenging 2D and 3D benchmarks:

  • 2D Alignment: On the IBUG and COFW (occlusion-heavy) datasets, the model achieved state-of-the-art Normalized Mean Error (NME) of 6.73% and 5.55%, respectively.
  • 3D Alignment: On AFLW2000-3D, the model reached an NME of 3.07, a significant improvement over previous benchmarks.
  • Downstream Impact: Integrating this 3D alignment as a pre-processing step for face recognition on the CFP-FP dataset improved verification accuracy to 98.514%, demonstrating the practical value of robust alignment for profile-view recognition.

Discussion and Insights

A key finding was the trade-off between model complexity and optimizability. While the most complex topology, SAT (I), offered high theoretical capacity, it proved difficult to optimize with limited training data (~10k images). The authors successfully simplified this into SAT (III), which uses depth-wise separable convolutions to maintain high performance while keeping the model size manageable.

Furthermore, the study highlights that deformable convolutions are more computationally efficient and flexible for modeling local, non-rigid movements compared to explicit Spatial Transformer Networks. Finally, the "coherent loss" was shown to be a critical factor; simply using data augmentation is insufficient without explicitly penalizing the network for inconsistent predictions across transformations.

Conclusion

By combining dense multi-scale feature fusion with adaptive receptive fields and consistency-based training, the Stacked Dense U-Net with Dual Transformers sets a new bar for robust face alignment. Future work may involve exploring more stable face detection initializations and advanced optimization strategies to further unlock the potential of even denser network topologies.

Summary updated

BibTeX
@inproceedings{guo2018stacked,
  author = {Jia Guo and Jiankang Deng and Niannan Xue and Stefanos Zafeiriou},
  title = {{Stacked Dense U-Nets with Dual Transformers for Robust Face Alignment}},
  booktitle = {BMVC},
  year = {2018},
}
Figure