Cascaded Dual Vision Transformer for Accurate Facial Landmark Detection

Ziqiang Dang, Jianfang Li, Lin Liu · DOI

Abstract

Facial landmark detection is a fundamental problem in computer vision for many downstream applications. This paper introduces a new facial landmark detector based on vision transformers, which consists of two unique designs: Dual Vision Transformer (D-ViT) and Long Skip Connections (LSC). Based on the observation that the channel dimension of feature maps essentially represents the linear bases of the heatmap space, we propose learning the interconnections between these linear bases to model the inherent geometric relations among landmarks via Channel-split ViT. We integrate such channel-split ViT into the standard vision transformer (i.e., spatial-split ViT), forming our Dual Vision Transformer to constitute the prediction blocks. We also suggest using long skip connections to deliver low-level image features to all prediction blocks, thereby preventing useful information from being discarded by intermediate supervision. Extensive experiments are conducted to evaluate the performance of our proposal on the widely used benchmarks, i.e., WFLW, COFW, and 300W, demonstrating that our model outperforms the previous SOTAs across all three benchmarks.

Introduction

Facial landmark detection—the task of accurately locating key anatomical points such as the eyes, nose, and mouth—is a critical precursor for facial recognition, expression analysis, and 3D face reconstruction. While Convolutional Neural Networks (CNNs) and standard Vision Transformers (ViTs) have significantly advanced the field, they face two persistent challenges. First, standard models often fail to explicitly capture the rigid and non-rigid geometric constraints between landmarks (e.g., the relative positioning of the eyes). Second, in cascaded architectures designed for iterative refinement, the use of intermediate supervision can lead to an "information bottleneck," where essential low-level image details are discarded in deeper stages of the network.

This paper addresses these issues through a novel architecture combining a Dual Vision Transformer (D-ViT) with Long Skip Connections (LSC), achieving state-of-the-art results on major benchmarks.

Methodology

Dual Vision Transformer (D-ViT)

The core innovation of the D-ViT is the integration of a Channel-split ViT alongside the standard Spatial-split ViT. In a typical ViT, the input is divided into spatial patches. However, the authors observe that since landmark heatmaps are typically generated via $1 \times 1$ convolutions of feature maps, the channel dimension effectively serves as a set of "linear bases" for the heatmap space.

By applying self-attention across these channels, the model learns the inherent geometric correlations between different landmarks without requiring explicit graph-based modeling. This allows the network to "understand" that certain landmarks must move in concert. The D-ViT block combines these spatial and channel-wise insights to produce highly accurate feature representations.

Overview of the proposed architecture featuring Long Skip Connections (LSC) and the Dual Vision Transformer (D-ViT) block.

Long Skip Connections (LSC)

To mitigate the loss of fine-grained information in deep cascaded networks, the authors introduce Long Skip Connections. In traditional cascaded models, performance often plateaus after a few stages because intermediate supervision forces the network to focus on high-level semantics at the expense of low-level texture. LSC bypasses this by delivering raw, low-level features directly from the initial ResNet backbone to every subsequent prediction block. This architectural choice enables the model to scale effectively up to 12 blocks, with accuracy continuing to improve as depth increases.

Cascaded Refinement

The model utilizes a stack of multiple prediction blocks to progressively refine landmark coordinates. Final coordinates are extracted from the generated heatmaps using a soft-argmax operator, which provides a differentiable way to map heatmaps to continuous coordinate space.

Experimental Results

The proposed model was rigorously evaluated on three gold-standard datasets: WFLW (98 landmarks, including challenging subsets for occlusion and pose), COFW (focused on heavy occlusion), and 300W (68 landmarks).

Quantitative Performance

The model established new state-of-the-art (SOTA) benchmarks across all datasets:

  • WFLW: Achieved a Normalized Mean Error (NME) of 3.75, surpassing the previous best of 3.92.
  • COFW: Demonstrated exceptional robustness to occlusion with an NME of 4.13, a significant improvement over the previous SOTA of 4.62.
  • 300W: Set a new record with an NME of 2.85.

Qualitative Analysis

Visual results confirm the model's precision in difficult scenarios. By modeling landmark inter-relationships, the D-ViT can accurately infer the position of occluded features (e.g., an eye hidden by a hand) based on the visible geometry of the rest of the face.

Qualitative comparison of facial landmark detection results across different model variants, highlighting the superior accuracy of the D-ViT approach.

Conclusion and Future Work

The combination of D-ViT and LSC represents a significant step forward in facial landmark detection. By treating feature channels as geometric bases and ensuring the persistence of low-level information, the model overcomes common bottlenecks in cascaded architectures.

While the model achieves superior accuracy, it does come with increased computational and memory costs—stacking 12 blocks requires approximately 14.2 GB of GPU memory during training. Future research may focus on optimizing these requirements through model pruning or knowledge distillation to enable real-time performance on mobile and edge devices. Additionally, the "channel-as-basis" concept holds promise for broader applications such as human pose estimation and medical imaging.

Summary updated

BibTeX
@inproceedings{dang2025cascaded,
  author = {Ziqiang Dang and Jianfang Li and Lin Liu},
  title = {{Cascaded Dual Vision Transformer for Accurate Facial Landmark Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2025},
  doi = {10.1109/wacv61041.2025.00574},
}
Figure