Skip to main content
QUICK REVIEW

[Paper Review] Efficient Gender Classification Using a Deep LDA-Pruned Net

Qing Tian, Tal Arbel|arXiv (Cornell University)|Apr 20, 2017
Face recognition and analysisComputer Science45 references7 citations
TL;DR

This paper proposes a lightweight, 16-layer deep neural network pruned from VGG-16 using Fisher’s Linear Discriminant Analysis (LDA) to identify and remove redundant neurons in the final convolutional layer, achieving a 70× reduction in model size and 11× speedup while maintaining or improving accuracy on LFW and CelebA datasets. The pruned features are classified efficiently using Bayesian or SVM classifiers, enabling real-time deployment on CPU and mobile devices.

ABSTRACT

Many real-time tasks, such as human-computer interaction, require fast and efficient facial gender classification. Although deep CNN nets have been very effective for a multitude of classification tasks, their high space and time demands make them impractical for personal computers and mobile devices without a powerful GPU. In this paper, we develop a 16-layer, yet lightweight, neural network which boosts efficiency while maintaining high accuracy. Our net is pruned from the VGG-16 model starting from the last convolutional (conv) layer where we find neuron activations are highly uncorrelated given the gender. Through Fisher's Linear Discriminant Analysis (LDA), we show that this high decorrelation makes it safe to discard directly last conv layer neurons with high within-class variance and low between-class variance. Combined with either Support Vector Machines (SVM) or Bayesian classification, the reduced CNNs are capable of achieving comparable (or even higher) accuracies on the LFW and CelebA datasets than the original net with fully connected layers. On LFW, only four Conv5_3 neurons are able to maintain a comparably high recognition accuracy, which results in a reduction of total network size by a factor of 70X with a 11 fold speedup. Comparisons with a state-of-the-art pruning method as well as two smaller nets in terms of accuracy loss and convolutional layers pruning rate are also provided.

Motivation & Objective

  • To enable real-time facial gender classification on resource-constrained devices like mobile phones and embedded systems.
  • To reduce the computational and memory footprint of deep CNNs without sacrificing classification accuracy.
  • To identify and remove redundant neurons in the final convolutional layer of pre-trained deep networks using statistical decorrelation analysis.
  • To replace expensive fully connected layers with lightweight classifiers (SVM, Bayesian) that maintain or improve performance.
  • To demonstrate that pruning based on class-specific neuron decorrelation is more effective than weight-based magnitude pruning.

Proposed method

  • Applying Fisher’s Linear Discriminant Analysis (LDA) to the activations of the last convolutional layer (Conv5_3) to identify neurons with low between-class variance and high within-class variance.
  • Pruning neurons with high within-class variance and low between-class variance, as they contribute little to class discrimination.
  • Retraining the network using only the remaining neurons to maintain performance after pruning.
  • Replacing the original fully connected layers with lightweight classifiers: Bayesian and SVM with linear/RBF kernels.
  • Evaluating the pruned network with alternative classifiers on LFW and CelebA datasets to assess accuracy and efficiency.
  • Measuring model size, inference speed, and accuracy loss across different pruning rates and comparison methods.

Experimental results

Research questions

  • RQ1Can neuron pruning based on statistical decorrelation in the final convolutional layer significantly reduce model size and inference time without degrading accuracy?
  • RQ2Does replacing fully connected layers with lightweight classifiers (SVM, Bayesian) yield comparable or better performance than the original FC layers?
  • RQ3How does LDA-based pruning compare to magnitude-based weight pruning in terms of accuracy loss and pruning efficiency?
  • RQ4Can a pruned, lightweight network achieve high accuracy on challenging datasets like LFW and CelebA with partial occlusions and complex backgrounds?
  • RQ5To what extent can the pruned network be deployed on mobile or embedded systems due to reduced memory and computational demands?

Key findings

  • The LDA-pruned network achieved a 70× reduction in model size (from over 500 MB to 7 MB) while maintaining high accuracy on LFW and CelebA.
  • Only four neurons from the Conv5_3 layer were needed to maintain high recognition accuracy on LFW, enabling a 70× model size reduction.
  • The pruned network achieved an 11-fold speedup in inference time compared to the original VGG-16, even when tested on CPU.
  • The combination of LDA-pruned features with Bayesian or SVM classifiers outperformed the original fully connected layers on challenging test cases, such as those with occlusions or blur.
  • The method achieved lower accuracy loss than state-of-the-art magnitude-based pruning at high pruning rates (above 85%), especially in convolutional layer pruning.
  • The storage overhead of the alternative classifiers was minimal—only 2 MB for Bayesian and 30 KB for SVMs—making the entire system highly suitable for mobile deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.