PocketNet
A sub-million-parameter face recognition network found by architecture search.
Image classification · 820 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Image classification
- Parameters
- 925.6K
- Operations
- 820
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Access (arXiv 2021)
- Cited by
- 0 (as of 5 October 2026)
- Authors
- Fadi Boutros, Patrick Siebke, Marcel Klemt and others
- Source
- GitHub: fdbtrs/PocketNet
- License
- CC-BY-NC-SA-4.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14404
- Graph hash
- df69c3585d11d0d3e4e7768965b1daf75fdc29c96aeb21b5e0c3875e3ad50fd2
- Skeleton hash
- 356a4054ceadcb3f68d7f5918075fc035689626c3d9b53a2f97429203b225054
- Architecture hash
- 2a9d6ef88c329a23c1fdd703fe90141d2a420cd91bd95870ad3ce9494cd7c18c
- Diagram SHA-256
- 92077dddefc84b7cc8e390389c092d58ef310717784e9895c75b07a9c8021d2f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
PocketNet is a face recognition network built to be extremely lightweight, so that a face embedding model can run on embedded and low-end devices rather than only on servers. Instead of hand-designing the network, the authors used neural architecture search to develop a new family of lightweight face-specific architectures. The member traced here is PocketNetS-128, the smallest of the four released sizes, with 0.92M parameters.
The search used the differentiable architecture search algorithm DARTS to learn two building blocks, a normal cell and a reduce cell, which are then stacked to form the network. The cells were searched on CASIA-WebFace, a face dataset of 500K images, rather than on a general object classification set. PocketNetS stacks 18 cells, 15 normal and 3 reduction, and the S-128 and S-256 variants differ only in embedding size. The network starts with fast downsampling by a stride-2 3x3 convolution and ends with a global depthwise convolution to produce the face embedding, chosen because it has fewer parameters than a fully connected layer.
Training adds a second idea, multi-step knowledge distillation, in which knowledge is distilled from the teacher to the student at different stages of the training maturity. The networks are trained with the ArcFace loss, and the repository provides scripts for plain ArcFace training, template distillation and multi-step template distillation. The paper evaluates against compact face recognition models on nine benchmarks, including the large-scale IJB-B, IJB-C and MegaFace. The official code was trained and tested with PyTorch 1.7.1 and is released under a CC BY-NC-SA 4.0 license.
Key idea. A face-specific lightweight architecture found by neural architecture search, trained with multi-step knowledge distillation, reaching 0.92M parameters in its smallest form.
- PocketNet
- PocketNetS
- PocketNetS-128
- PocketNetM
- face recognition
- lightweight face recognition
- neural architecture search
- DARTS
- knowledge distillation
- face embedding
AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{boutros2021pocketnetextremelightweightface,
title={PocketNet: Extreme Lightweight Face Recognition Network using Neural Architecture Search and Multi-Step Knowledge Distillation},
author={Fadi Boutros and Patrick Siebke and Marcel Klemt and Naser Damer and Florian Kirchbuchner and Arjan Kuijper},
year={2021},
eprint={2108.10710},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2108.10710},
}