Skip to main content
QUICK REVIEW

[Paper Review] How deep should be the depth of convolutional neural networks: a backyard dog case study

Alexander N. Gorban, Evgeny M. Mirkes|arXiv (Cornell University)|May 3, 2018
Face recognition and analysisComputer Science20 references6 citations
TL;DR

This paper proposes a non-iterative network shallowing algorithm based on Advanced Supervised Principal Component Analysis (ASPCA) to distill deep pre-trained convolutional neural networks into shallow, efficient models for specialized tasks. Applied to face recognition, the method reduces VGG-16 from 16 to 5 layers while maintaining low error rates (MF+MO < 6%) and enabling real-time inference on low-power hardware like Raspberry Pi.

ABSTRACT

The work concerns the problem of reducing a pre-trained deep neuronal network to a smaller network, with just few layers, whilst retaining the network's functionality on a given task The proposed approach is motivated by the observation that the aim to deliver the highest accuracy possible in the broadest range of operational conditions, which many deep neural networks models strive to achieve, may not necessarily be always needed, desired, or even achievable due to the lack of data or technical constraints. In relation to the face recognition problem, we formulated an example of such a usecase, the `backyard dog' problem. The `backyard dog', implemented by a lean network, should correctly identify members from a limited group of individuals, a `family', and should distinguish between them. At the same time, the network must produce an alarm to an image of an individual who is not in a member of the family. To produce such a network, we propose a shallowing algorithm. The algorithm takes an existing deep learning model on its input and outputs a shallowed version of it. The algorithm is non-iterative and is based on the Advanced Supervised Principal Component Analysis. Performance of the algorithm is assessed in exhaustive numerical experiments. In the above usecase, the `backyard dog' problem, the method is capable of drastically reducing the depth of deep learning neural networks, albeit at the cost of mild performance deterioration. We developed a simple non-iterative method for shallowing down pre-trained deep networks. The method is generic in the sense that it applies to a broad class of feed-forward networks, and is based on the Advanced Supervise Principal Component Analysis. The method enables generation of families of smaller-size shallower specialized networks tuned for specific operational conditions and tasks from a single larger and more universal legacy network.

Motivation & Objective

  • To address the challenge of deploying large, pre-trained deep neural networks on resource-constrained devices such as Raspberry Pi.
  • To develop a method that reduces network depth without iterative retraining, preserving functionality for specialized tasks.
  • To create a family of smaller, faster, and more efficient networks tailored for specific operational conditions from a single legacy model.
  • To evaluate the performance of shallowed networks on a realistic, constrained face recognition task—the 'backyard dog' problem.
  • To demonstrate that reduced-depth networks can maintain acceptable accuracy while drastically lowering inference time and computational cost.

Proposed method

  • The method uses Advanced Supervised Principal Component Analysis (ASPCA) to project high-dimensional features from each layer of a pre-trained CNN into a lower-dimensional space.
  • ASPCA is applied layer-by-layer in a non-iterative manner, preserving class-discriminative information relevant to the target task.
  • The algorithm selects a subset of ASPCs (Advanced Supervised Principal Components) that maximize classification performance on the target dataset.
  • The process is applied systematically across all layers of the original network, transforming a deep architecture into a shallow one.
  • The resulting shallowed network is fine-tuned only in the final classification layer, minimizing retraining overhead.
  • Performance is optimized by selecting the number of ASPCs and a regularization parameter α that minimize the sum of false match (MF) and false open (MO) rates.

Experimental results

Research questions

  • RQ1Can a deep pre-trained CNN be effectively reduced in depth while retaining sufficient accuracy for a specific, constrained recognition task?
  • RQ2How does the performance of a shallowed network compare to the original deep model in terms of error rates and inference speed on low-power hardware?
  • RQ3What is the optimal number of ASPCs and regularization parameter α that minimize classification errors in the reduced network?
  • RQ4To what extent can a shallow network maintain functionality when trained on limited data and deployed on edge devices?
  • RQ5Can the proposed method generate a family of specialized, efficient networks from a single universal legacy model without retraining from scratch?

Key findings

  • The 5-layer 'backyard dog' network with 60 ASPCs processes a 64×64 image in 0.70 seconds on a Raspberry Pi 3B, achieving an average MF+MO error rate of 5.78%.
  • The 17-layer network with 70 ASPCs achieves an average MF+MO error rate of 3.27%, with a maximum error rate 1.8 times higher than the average across 100 tests.
  • The 5-layer network with optimal ASPC selection (60) achieves a MF+MO error rate of 8.53% on average and 10.22% in the worst-case scenario.
  • The method enables real-time inference on low-end hardware: the 5-layer model runs in under 1 second per image on a single core of a Raspberry Pi.
  • The non-iterative ASPCA-based approach successfully reduces network depth while maintaining reasonable performance, demonstrating feasibility for edge deployment.
  • The method is generic and could be applied to other architectures like MobileNet and SqueezeNet, though this was not tested in the current study.

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.