TL;DR
This paper tackles the challenge of making powerful face alignment algorithms, like the Supervised Descent Method (SDM), practical for mobile devices by drastically reducing their model size. They achieve this by developing a novel data compression technique that quantizes model parameters and tightly couples this compression into the training process, maintaining high accuracy while shrinking the model to less than 19% of its original size.
What Problem Does This Paper Address?
Face alignment, the task of precisely locating key facial features like eyes, nose, and mouth, is crucial for many applications, including facial recognition, augmented reality (AR), and expression analysis. Cascaded regression methods, such as the Supervised Descent Method (SDM), are popular because they offer a good balance of accuracy and computational efficiency. However, a major hurdle for deploying these methods on resource-constrained devices like smartphones is the large size of their trained models. Standard SDM models can exceed 80MB, which is prohibitive for mobile applications. Existing compression techniques, like lossless entropy coding, aren't sufficient, and lossy methods often struggle with the specific data distributions found in face alignment models.
Methods
The core of this paper is a two-pronged approach to compress SDM models:
- K-Means Based Data Quantization with Probability Density-Aware Initialization:
- The authors first analyze the distribution of the model's parameters (specifically the projection matrices $A_d$). They observe that these distributions are not uniform and often have long tails, making standard quantization methods ineffective.
- To address this, they propose a K-means clustering algorithm for quantizing the model data. The key innovation here is a "probability density-aware initialization" strategy. Instead of random initialization, the initial cluster centers are determined based on the estimated probability density function (PDF) of the data. This ensures that the K-means algorithm better captures the data's distribution, leading to more effective quantization.
- The number of quantization levels ($Q$) is chosen based on a trade-off between compression and accuracy, with 6 bits per element (resulting in $Q=64$) being found to offer a good balance.
- Tightly-Coupled SDM Training Algorithm:
- Simply quantizing a pre-trained SDM model can introduce significant errors. To mitigate this, the authors propose a "tightly-coupled" training approach.
- In this modified training process, the data quantization step is integrated directly into each regression stage. This means that errors introduced by quantization in one stage are propagated to the next, allowing the subsequent regression steps to learn to compensate for these errors. This "coupling" helps to minimize the overall localization error.
Datasets
- 300-W Dataset: This dataset is used for both training and evaluation. It's described as a challenging, publically available dataset with 600 indoor and outdoor "in-the-wild" images, featuring variations in identity, expression, illumination, pose, occlusion, and face size. It includes ground truth locations for 68 facial landmarks.
- Subset of 300-W: A subset of the 300-W dataset with yaw angles between 0 and 30 degrees was specifically used to evaluate performance in moderate head poses, relevant for mobile applications.
Key Insights and Ideas
- Data Distribution Matters: The paper highlights that the non-uniform distribution of SDM model parameters is a critical factor that standard quantization methods fail to address, necessitating a more sophisticated approach.
- Density-Aware Initialization is Key: The probability density-aware initialization for K-means clustering is crucial for effectively quantizing the model parameters, leading to better accuracy compared to random initialization.
- Coupling Compression and Training: Integrating the quantization process directly into the SDM training loop (tightly-coupled) is essential for minimizing the accuracy degradation typically associated with lossy compression. The model learns to "live with" the quantized data.
- Mobile-First Design: The research is explicitly motivated by the need for efficient face alignment on mobile devices, where model size and computational cost are paramount.
Key Results
- Model Size Reduction: The proposed method compresses the trained SDM model to less than 19% of its original size (approximately 5.3X compression).
- Accuracy Preservation: The compressed model achieves very similar feature localization performance to the uncompressed SDM. For example, the normalized mean error on the 300-W dataset is comparable, with differences often less than 1% compared to the uncompressed SDM and even state-of-the-art deep learning methods in moderate pose scenarios.
- Qualitative Results: Visual comparisons show that the compressed model's face alignment results are visually indistinguishable from the uncompressed SDM and competitive with a deep learning-based method (2D-FAN), even in occlusion scenarios.
- User Study: A user study for an AR mobile application demonstrated that the visual effects generated by the compressed model were very similar to those produced by the uncompressed counterpart, with 14 out of 20 users scoring them identically.
- Computational Cost: The extra computational cost introduced by the tightly-coupled training process is negligible compared to the overall training time. The uncompressing process for the model file during runtime is also very fast (around 20ms on an iPhone 6).
Limitations and Future Work
- Uniform Quantization: The paper notes that all model parameters are quantized using the same number of bits. However, they observe that many values are concentrated around zero, suggesting that further compression could be achieved by using fewer bits for these values or even pruning them.
- Future Work: The authors plan to explore this direction to further enhance compression power by adapting the number of bits used for quantization based on the parameter distribution.
Summary updated