Add Batch ca90d270-3866-42ec-b145-a085f92d0ee5
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_content_list.json +3 -0
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_model.json +3 -0
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_origin.pdf +3 -0
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/full.md +465 -0
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/images.zip +3 -0
- rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/layout.json +3 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_content_list.json +3 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_model.json +3 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_origin.pdf +3 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/full.md +344 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/images.zip +3 -0
- rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/layout.json +3 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_content_list.json +3 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_model.json +3 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_origin.pdf +3 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/full.md +385 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/images.zip +3 -0
- rethinkingdifferentiablesearchformixedprecisionneuralnetworks/layout.json +3 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_content_list.json +3 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_model.json +3 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_origin.pdf +3 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/full.md +335 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/images.zip +3 -0
- rethinkingperformanceestimationinneuralarchitecturesearch/layout.json +3 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_content_list.json +3 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_model.json +3 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_origin.pdf +3 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/full.md +302 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/images.zip +3 -0
- rethinkingtheroutetowardsweaklysupervisedobjectlocalization/layout.json +3 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_content_list.json +3 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_model.json +3 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_origin.pdf +3 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/full.md +360 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/images.zip +3 -0
- rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/layout.json +3 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_content_list.json +3 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_model.json +3 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_origin.pdf +3 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/full.md +350 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/images.zip +3 -0
- retinafacesingleshotmultilevelfacelocalisationinthewild/layout.json +3 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_content_list.json +3 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_model.json +3 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_origin.pdf +3 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/full.md +309 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/images.zip +3 -0
- retinalikevisualimagereconstructionviaspikingneuralmodel/layout.json +3 -0
- retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_content_list.json +3 -0
- retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_model.json +3 -0
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26a30abb2c5a4637bc67f5474c39cd0076dea6b15cc1feddb645ac54d164572f
|
| 3 |
+
size 90672
|
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d62915e24570d5b41f184cb01744ce90ddafedc7506ee9a7e7329a6db9f2409e
|
| 3 |
+
size 114367
|
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/a3a7c8f1-73ec-4e4f-847b-4e90fdc9c177_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e3bfe6b59a034a7cd58b2d865bf218164b6371b60adc192f6d1579bdcbbcdd7
|
| 3 |
+
size 1147408
|
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/full.md
ADDED
|
@@ -0,0 +1,465 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking Data Augmentation for Image Super-resolution: A Comprehensive Analysis and a New Strategy
|
| 2 |
+
|
| 3 |
+
Jaejun Yoo* EPFL.
|
| 4 |
+
|
| 5 |
+
jaejun.yoo88@gmail.com
|
| 6 |
+
|
| 7 |
+
Namhyuk Ahn*
|
| 8 |
+
Ajou University
|
| 9 |
+
|
| 10 |
+
aa0cfg@ajou.ac.kr
|
| 11 |
+
|
| 12 |
+
Kyung-Ah Sohn†
|
| 13 |
+
|
| 14 |
+
Ajou University
|
| 15 |
+
|
| 16 |
+
kasohn@ajou.ac.kr
|
| 17 |
+
|
| 18 |
+
# Abstract
|
| 19 |
+
|
| 20 |
+
Data augmentation is an effective way to improve the performance of deep networks. Unfortunately, current methods are mostly developed for high-level vision tasks (e.g., classification) and few are studied for low-level vision tasks (e.g., image restoration). In this paper, we provide a comprehensive analysis of the existing augmentation methods applied to the super-resolution task. We find that the methods discarding or manipulating the pixels or features too much hamper the image restoration, where the spatial relationship is very important. Based on our analyses, we propose CutBlur that cuts a low-resolution patch and pastes it to the corresponding high-resolution image region and vice versa. The key intuition of CutBlur is to enable a model to learn not only "how" but also "where" to superresolve an image. By doing so, the model can understand "how much", instead of blindly learning to apply super-resolution to every given pixel. Our method consistently and significantly improves the performance across various scenarios, especially when the model size is big and the data is collected under real-world environments. We also show that our method improves other low-level vision tasks, such as denoising and compression artifact removal.
|
| 21 |
+
|
| 22 |
+
# 1. Introduction
|
| 23 |
+
|
| 24 |
+
Data augmentation (DA) is one of the most practical ways to enhance model performance without additional computation cost in the test phase. While various DA methods [7, 29, 30, 13] have been proposed in several high-level vision tasks, DA in low-level vision has been scarcely investigated. Instead, many image restoration studies, such as super-resolution (SR), have relied on the synthetic datasets [22], which we can easily increase the number of training samples by simulating the system degradation functions (e.g., using the bicubic kernel for SR).
|
| 25 |
+
|
| 26 |
+
Because of the gap between a simulated and a real data
|
| 27 |
+
|
| 28 |
+
distribution, however, models that are trained on simulated datasets do not exhibit optimal performance in the real environments [4]. Several recent studies have proposed to mitigate the problem by collecting real-world datasets [1, 4, 32]. However, in many cases, it is often very time-consuming and expensive to obtain a large number of such data. Although this is where DA can play an important role, only a handful of studies have been performed [9, 24].
|
| 29 |
+
|
| 30 |
+
Radu et al. [24] was the first to study various techniques to improve the performance of example-based single-image super-resolution (SISR), one of which was data augmentation. Using rotation and flipping, they reported consistent improvements across models and datasets. Still, they only studied simple geometric manipulations with traditional SR models [12, 23] and a very shallow learning-based model, SRCNN [8]. To the best of our knowledge, Feng et al. [9] is the only work that analyzed a recent DA method (Mixup [30]) in the example-based SISR problem. However, the authors provided only a limited observation using a single U-Net-like architecture and tested the method with a single dataset (RealSR [4]).
|
| 31 |
+
|
| 32 |
+
To better understand DA methods in low-level vision, we provide a comprehensive analysis on the effect of various DA methods that are originally developed for high-level vision tasks (Section 2). We first categorize the existing augmentation techniques into two groups depending on where the method is applied; pixel-domain [7, 29, 30] and feature-domain [11, 10, 26, 27]. When directly applied to SISR, we find that some methods harm the image restoration results and even hampers the training, especially when a method largely induces the loss or confusion of spatial information between nearby pixels (e.g., Cutout [7] and feature-domain methods). Interestingly, basic manipulations like RGB permutation that do not cause a severe spatial distortion provide better improvements than the ones which induce unrealistic patterns or a sharp transition of the structure (e.g., Mixup [30] and CutMix [29]).
|
| 33 |
+
|
| 34 |
+
Based on our analyses, we propose CutBlur, a new augmentation method that is specifically designed for the low-level vision tasks. CutBlur cut and paste a low resolution
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
(a) High resolution
|
| 38 |
+
|
| 39 |
+

|
| 40 |
+
(b) Low resolution
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
(c) CutBlur
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
(d) Schematic illustration of CutBlur operation
|
| 47 |
+
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
(e) Blend
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
(f) RGB permute
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
(g) Cutout $(25\%)$ [7]
|
| 58 |
+
Figure 1. Data augmentation methods. (Top) An illustrative example of our proposed method, CutBlur. CutBlur generates an augmented image by cut-and-pasting the low resolution (LR) input image onto the ground-truth high resolution (HR) image region and vice versa (Section 3). (Bottom) Illustrative examples of the existing augmentation techniques and a new variation of CutMix and Mixup, CutMixup.
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
(h) Mixup [30]
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
(i) CutMix [29]
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
(j) CutMixup
|
| 68 |
+
|
| 69 |
+
(LR) image patch into its corresponding ground-truth high resolution (HR) image patch (Figure 1). By having partially LR and partially HR pixel distributions with a random ratio in a single image, CutBlur enjoys the regularization effect by encouraging a model to learn both "how" and "where" to super-resolve the image. One nice side effect of this is that the model also learns "how much" it should apply super-resolution on every local part of a given image. While trying to find a mapping that can simultaneously maintain the input HR region and super-resolve the other LR region, the model adaptively learns to super-resolve an image.
|
| 70 |
+
|
| 71 |
+
Thanks to this unique property, CutBlur prevents oversharpening of SR models, which can be commonly found in real-world applications (Section 4.3). In addition, we show that the performance can be further boosted by applying several curated DA methods together during the training phase, which we call mixture of augmentations (MoA) (Section 3). Our experiments demonstrate that the proposed strategy significantly and consistently improves the model performance over various models and datasets. Our contributions are summarized as follows:
|
| 72 |
+
|
| 73 |
+
1. To the best of our knowledge, we are the first to provide comprehensive analysis of recent data augmentation methods when directly applied to the SISR task.
|
| 74 |
+
2. We propose a new DA method, CutBlur, which can reduce unrealistic distortions by regularizing a model to learn not only "how" but also "where" to apply the super-resolution to a given image.
|
| 75 |
+
3. Our mixed strategy shows consistent and significant improvements in the SR task, achieving state-of-the-art (SOTA) performance in RealSR [4].
|
| 76 |
+
|
| 77 |
+
# 2. Data augmentation analysis
|
| 78 |
+
|
| 79 |
+
In this section, we analyze existing augmentation methods and compare their performances when applied to EDSR [15], which is our baseline super-resolution model. We train EDSR from scratch with DIV2K [2] dataset or RealSR [4] dataset. We used the authors' official code.
|
| 80 |
+
|
| 81 |
+
# 2.1. Prior arts
|
| 82 |
+
|
| 83 |
+
DA in pixel space. There have been many studies to augment images in high-level vision tasks [7, 29, 30] (Figure 1). Mixup [30] blends two images to generate an unseen training sample. Cutout and its variants [7, 34] drop a randomly selected region of an image. Addressing that Cutout cannot fully exploit the training data, CutMix [29] replaces the random region with another image. Recently, AutoAugment and its variant [6, 16] have been proposed to learn the best augmentation policy for a given task and dataset.
|
| 84 |
+
|
| 85 |
+
DA in feature space. DA methods manipulating CNN features have been proposed [5, 10, 11, 19, 26, 27] and can be categorized into three groups: 1) feature mixing, 2) shaking, and 3) dropping. Like Mixup, Manifold Mixup [26] mixes both input image and the latent features. Shake-shake [10] and ShakeDrop [27] perform a stochastic affine transformation to the features. Finally, following the spirit of Dropout [19], a lot of feature dropping strategies [5, 11, 25] have been proposed to boost the generalization of a model.
|
| 86 |
+
|
| 87 |
+
DA in super-resolution. A simple geometric manipulation, such as rotation and flipping, has been widely used in SR models [24]. Recently, Feng et al. [9] showed that Mixup can alleviate the overfitting problem of SR models [4].
|
| 88 |
+
|
| 89 |
+
# 2.2. Analysis of existing DA methods
|
| 90 |
+
|
| 91 |
+
The core idea of many augmentation methods is to partially block or confuse the training signal so that the model acquires more generalization power. However, unlike the high-level tasks, such as classification, where a model should learn to abstract an image, the local and global relationships among pixels are especially more important in the low-level vision tasks, such as denoising and superresolution. Considering this characteristic, it is unsurprising that DA methods, which lose the spatial information, limit the model's ability to restore an image. Indeed, we observe that the methods dropping the information [5, 11, 25] are detrimental to the SR performance and especially harmful in the feature space, which has larger receptive fields. Every feature augmentation method significantly drops the performance. Here, we put off the results of every DA method that degrades the performance in the supplementary material.
|
| 92 |
+
|
| 93 |
+
On the other hand, DA methods in pixel space bring some improvements when applied carefully (Table 1). For example, Cutout [7] with default setting (dropping $25\%$ of pixels in a rectangular shape) significantly degrades the original performance by $0.1 \mathrm{~dB}$ . However, we find that Cutout gives a positive effect (DIV2K: $+0.01 \mathrm{~dB}$ and RealSR: $+0.06 \mathrm{~dB}$ ) when applied with $0.1\%$ ratio and erasing random pixels instead of a rectangular region. Note that this drops only $2 \sim 3$ pixels when using a $48 \times 48$ input patch.
|
| 94 |
+
|
| 95 |
+
CutMix [29] shows a marginal improvement (Table 1), and we hypothesize that this happens because CutMix generates a drastically sharp transition of image context making boundaries. Mixup improves the performance but it minngles the context of two different images, which can confuse the model. To alleviate these issues, we create a variation of CutMix and Mixup, which we call CutMixup (below the dashed line, Figure 1). Interestingly, it gives a better improvement on our baseline. By getting the best of both methods, CutMixUp benefits from minimizing the boundary effect as well as the ratio of the mixed contexts.
|
| 96 |
+
|
| 97 |
+
Based on these observations, we further test a set of basic operations such as RGB permutation and Blend (adding a constant value) that do not incur any structural change in an image. (For more details, please see our supplementary material.) These simple methods show promising results in the synthetic DIV2K dataset and a big improvement in the RealSR dataset, which is more difficult. These results empirically prove our hypothesis, which naturally leads us to a new augmentation method, CutBlur. When applied, CutBlur not only improves the performance (Table 1) but provides some good properties and synergy (Section 3.2), which cannot be obtained by the other DA methods.
|
| 98 |
+
|
| 99 |
+
Table 1. PSNR (dB) comparison of different data augmentation methods in super-resolution. We report the baseline model (EDSR [15]) performance that is trained on DIV2K $(\times 4)$ [2] and RealSR $(\times 4)$ [4]. The models are trained from scratch. $\delta$ denotes the performance gap between with and without augmentation.
|
| 100 |
+
|
| 101 |
+
<table><tr><td>Method</td><td>DIV2K (δ)</td><td>RealSR (δ)</td></tr><tr><td>EDSR</td><td>29.21 (+0.00)</td><td>28.89 (+0.00)</td></tr><tr><td>Cutout [7] (0.1%)</td><td>29.22 (+0.01)</td><td>28.95 (+0.06)</td></tr><tr><td>CutMix [29]</td><td>29.22 (+0.01)</td><td>28.89 (+0.00)</td></tr><tr><td>Mixup [30]</td><td>29.26 (+0.05)</td><td>28.98 (+0.09)</td></tr><tr><td>CutMixup</td><td>29.27 (+0.06)</td><td>29.03 (+0.14)</td></tr><tr><td>RGB perm.</td><td>29.30 (+0.09)</td><td>29.02 (+0.13)</td></tr><tr><td>Blend</td><td>29.23 (+0.02)</td><td>29.03 (+0.14)</td></tr><tr><td>CutBlur</td><td>29.26 (+0.05)</td><td>29.12 (+0.23)</td></tr><tr><td>All DA's (random)</td><td>29.30 (+0.09)</td><td>29.16 (+0.27)</td></tr></table>
|
| 102 |
+
|
| 103 |
+
# 3. CutBlur
|
| 104 |
+
|
| 105 |
+
In this section, we describe the CutBlur, a new augmentation method that is designed for the super-resolution task.
|
| 106 |
+
|
| 107 |
+
# 3.1. Algorithm
|
| 108 |
+
|
| 109 |
+
Let $x_{LR} \in \mathbb{R}^{W \times H \times C}$ and $x_{HR} \in \mathbb{R}^{sW \times sH \times C}$ are LR and HR image patches and $s$ denotes a scale factor in the SR. As illustrated in Figure 1, because CutBlur requires to match the resolution of $x_{LR}$ and $x_{HR}$ , we first upsample $x_{LR}$ by $s$ times using a bicubic kernel, $x_{LR}^s$ . The goal of CutBlur is to generate a pair of new training samples $(\hat{x}_{HR \to LR}, \hat{x}_{LR \to HR})$ by cut-and-pasting the random region of $x_{HR}$ into the corresponding $x_{LR}^s$ and vice versa:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\begin{array}{l}\hat {x} _ {H R \rightarrow L R} = \mathbf {M} \odot x _ {H R} + (\mathbf {1} - \mathbf {M}) \odot x _ {L R} ^ {s}\\\hat {x} _ {L R \rightarrow H R} = \mathbf {M} \odot x _ {L R} ^ {s} + (\mathbf {1} - \mathbf {M}) \odot x _ {H R}\end{array}\tag {1}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $\mathbf{M} \in \{0,1\}^{sW \times sH}$ denotes a binary mask indicating where to replace, $\mathbf{1}$ is a binary mask filled with ones, and $\odot$ is element-wise multiplication. For sampling the mask and its coordinates, we follow the original CutMix [29].
|
| 116 |
+
|
| 117 |
+
# 3.2. Discussion
|
| 118 |
+
|
| 119 |
+
Why CutBlur works for SR? In the previous analysis (Section 2.2), we found that sharp transitions or mixed image contents within an image patch, or losing the relationships of pixels can degrade SR performance. Therefore, a good DA method for SR should not make unrealistic patterns or information loss while it has to serve as a good regularizer to SR models.
|
| 120 |
+
|
| 121 |
+
CutBlur satisfies these conditions because it performs cut-and-paste between the LR and HR image patches of the same content. By putting the LR (resp. HR) image region onto the corresponding HR (resp. LR) image region, it can minimize the boundary effect, which majorly comes from
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
HR (input)
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
EDSR w/o CutBlur $(\Delta)$
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
|
| 133 |
+

|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
EDSR w/ CutBlur $(\Delta)$
|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
HR (input)
|
| 144 |
+
|
| 145 |
+

|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
EDSR w/o CutBlur $(\Delta)$
|
| 151 |
+
|
| 152 |
+

|
| 153 |
+
EDSR w/ CutBlur $(\Delta)$
|
| 154 |
+
|
| 155 |
+

|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
|
| 159 |
+
a mismatch between the image contents (e.g., Cutout and CutMix). Unlike Cutout, CutBlur can utilize the entire image information while it enjoys the regularization effect due to the varied samples of random HR ratios and locations.
|
| 160 |
+
|
| 161 |
+
What does the model learn with CutBlur? Similar to the other DA methods that prevent classification models from over-confidently making a decision (e.g., label smoothing [21]), CutBlur prevents the SR model from oversharpening an image and helps it to super-resolve only the necessary region. This can be demonstrated by performing the experiments with some artificial setups, where we provide the CutBlur-trained SR model with an HR image (Figure 2) or CutBlurred LR image (Figure 3) as input.
|
| 162 |
+
|
| 163 |
+
When the SR model takes HR images at the test phase, it commonly outputs over-sharpened predictions, especially where the edges are (Figure 2). CutBlur can resolve this issue by directly providing such examples to the model during the training phase. Not only does CutBlur mitigate the oversharpening problem, but it enhances the SR performance on the other LR regions, thanks to the regularization effect (Figure 3). Note that the residual intensity has significantly decreased in the CutBlur model. We hypothesize that this enhancement comes from constraining the SR model to discriminatively apply super-resolution to the image. Now the model has to simultaneously learn both "how" and "where" to super-resolve an image, and this leads the model to learn "how much" it should apply super-resolution, which provides a beneficial regularization effect to the training.
|
| 164 |
+
|
| 165 |
+
Of course it is unfair to compare the models that have been trained with and without such images. However, we argue that these scenarios are not just the artificial experimental setups but indeed exist in the real-world (e.g., out-of-focus images). We will discuss this more in detail with several real examples in Section 4.3.
|
| 166 |
+
|
| 167 |
+
CutBlur vs. Giving HR inputs during training. To make a model learn an identity mapping, instead of using CutBlur, one can easily think of providing HR images as an input of the network during the training phase. With the EDSR model, CutBlur trained model (29.04 dB) showed better
|
| 168 |
+
|
| 169 |
+

|
| 170 |
+
Figure 2. Qualitative comparison of the baseline with and without CutBlur when the network takes the HR image as an input during the inference time. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. CutBlur successfully preserves the entire structure while the baseline generates unrealistic artifacts (left) or incorrect outputs (right).
|
| 171 |
+
HR
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
EDSR w/o CutBlur (Δ)
|
| 175 |
+
|
| 176 |
+

|
| 177 |
+
|
| 178 |
+
w/o CutBlur $(\Delta)$
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
LR (CutBlurred)
|
| 182 |
+
Figure 3. Qualitative comparison of the baseline and Cut-Blur model outputs when the input is augmented by CutBlur. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. Unlike the baseline (top right), CutBlur model not only resolves the HR region but reduces $\Delta$ of the other LR input area as well (bottom right).
|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
EDSR w/CutBlur (Δ)
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+
performance in PSNR than naively providing the HR images (28.87 dB) to the network. (The detailed setups can be found in the supplementary material.) This is because Cut-Blur is more general in that HR inputs are its special case ( $\mathbf{M} = \mathbf{0}$ or $\mathbf{1}$ ). On the other hand, giving HR inputs can never simulate the mixed distribution of LR and HR pixels so that the network can only learn "how", not "where" to super-resolve an image.
|
| 190 |
+
|
| 191 |
+
Mixture of augmentation (MoA). To push the limits of performance gains, we integrate various DA methods into a single framework. For each training iteration, the model first decides with probability $p$ whether to apply DA on inputs or not. If yes, it randomly selects a method among the DA pool. Based on our analysis, we use all the pixel-domain DA methods discussed in Table 1 while excluding all feature-domain DA methods. Here, we set $p = 1.0$ as a default. From now on, unless it is specified, we report all the experimental results using this MoA strategy.
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
|
| 197 |
+

|
| 198 |
+
(a) SRCNN (0.07M)
|
| 199 |
+
(c) RCAN (15.6M)
|
| 200 |
+
Figure 4. PSNR (dB) comparison on ten DIV2K $(\times 4)$ validation images during training for different data size $(\%)$ . Ours are shown by triangular markers. Zoomed curves are displayed (inlets).
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
(b) CARN (1.14M)
|
| 204 |
+
(d) EDSR (43.2M)
|
| 205 |
+
|
| 206 |
+
# 4. Experiments
|
| 207 |
+
|
| 208 |
+
In this section, we describe our experimental setups and compare the model performance with and without applying our method. We compare the super-resolution (SR) performance under various model sizes, dataset sizes (Section 4.1), and benchmark datasets (Section 4.2). Finally, we apply our method to the other low-level vision tasks, such as Gaussian denoising and JPEG artifact removal, to show the potential extensibility of our method (Section 4.4).[23]
|
| 209 |
+
|
| 210 |
+
Baselines. We use four SR models: SRCNN [8], CARN [3], RCAN [33], and EDSR [15]. These models have different numbers of parameters from 0.07M to 43.2M (million). For fair comparisons, every model is trained from scratch using the authors' official code unless mentioned otherwise.
|
| 211 |
+
|
| 212 |
+
Dataset and evaluation. We use the DIV2K [2] dataset or a recently proposed real-world SR dataset, RealSR [4] for training. For evaluation, we use Set14 [28], Urban100 [14], Manga109 [17], and test images of the RealSR dataset. Here, PSNR and SSIM are calculated on the Y channel only except the color image denoising task.
|
| 213 |
+
|
| 214 |
+
# 4.1. Study on different models and datasets
|
| 215 |
+
|
| 216 |
+
Various model sizes. It is generally known that a large model benefits more from augmentation than a small model does. To see whether this is true in SR, we investigate how the model size affects the maximum performance gain using our strategy. Here, we set the probability of applying augmentations differently depending on the model size, $p = 0.2$ for the small models (SRCNN and CARN) and
|
| 217 |
+
|
| 218 |
+
Table 2. PSNR (dB) comparison on DIV2K $(\times 4)$ validation set by varying the model and the size of dataset for training. Note that the number of RealSR dataset, which is more difficult to collect, is around $15\%$ of DIV2K dataset.
|
| 219 |
+
|
| 220 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Params.</td><td colspan="5">Training Data Size</td></tr><tr><td>100%</td><td>50%</td><td>25%</td><td>15%</td><td>10%</td></tr><tr><td rowspan="2">SRCNN + proposed</td><td rowspan="2">0.07M</td><td>27.95</td><td>27.95</td><td>27.95</td><td>27.93</td><td>27.91</td></tr><tr><td>-0.02</td><td>-0.01</td><td>-0.02</td><td>-0.02</td><td>-0.01</td></tr><tr><td rowspan="2">CARN + proposed</td><td rowspan="2">1.14M</td><td>28.80</td><td>28.77</td><td>28.72</td><td>28.67</td><td>28.60</td></tr><tr><td>+0.00</td><td>+0.01</td><td>+0.02</td><td>+0.03</td><td>+0.04</td></tr><tr><td rowspan="2">RCAN + proposed</td><td rowspan="2">15.6M</td><td>29.22</td><td>29.06</td><td>29.01</td><td>28.90</td><td>28.82</td></tr><tr><td>+0.08</td><td>+0.16</td><td>+0.11</td><td>+0.13</td><td>+0.14</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">43.2M</td><td>29.21</td><td>29.10</td><td>28.97</td><td>28.87</td><td>28.77</td></tr><tr><td>+0.08</td><td>+0.08</td><td>+0.10</td><td>+0.10</td><td>+0.11</td></tr></table>
|
| 221 |
+
|
| 222 |
+
$p = 1.0$ for the large models (RCAN and EDSR). With the small models, our proposed method provides no benefit or marginally increases the performance (Table 2). This demonstrates the severe underfitting of the small models, where the effect of DA is minimal due to the lacking capacity. On the other hand, it consistently improves the performance of RCAN and EDSR, which have enough capacity to exploit the augmented information.
|
| 223 |
+
|
| 224 |
+
Various dataset sizes. We further investigate the model performance while decreasing the data size for training (Table 2). Here, we use $100\%$ , $50\%$ , $25\%$ , $15\%$ and $10\%$ of the DIV2K dataset. SRCNN and CARN show none or marginal improvements with our method. This can be also seen by the validation curves while training (Figure 4a and 4b). On the other hand, our method brings a huge benefit to the RCAN and EDSR in all the settings. The performance gap between the baseline and our method becomes profound as the dataset size diminishes. RCAN trained on half of the dataset shows the same performance as the $100\%$ baseline when applied with our method $(29.06 + 0.16 = 29.22\mathrm{dB})$ . Our method gives an improvement of up to $0.16\mathrm{dB}$ when the dataset size is less than $50\%$ . This tendency is observed in EDSR as well. This is important because $15\%$ of the DIV2K dataset is similar to the size of the RealSR dataset, which is more expensive taken under real environments.
|
| 225 |
+
|
| 226 |
+
Our method also significantly improves the overfitting problem (Figure 4c and 4d). For example, if we use $25\%$ of the training data, the large models easily overfit and this can be dramatically reduced by using our method (denoted by curves with the triangular marker of the same color).
|
| 227 |
+
|
| 228 |
+
# 4.2. Comparison on diverse benchmark dataset
|
| 229 |
+
|
| 230 |
+
We test our method on various benchmark datasets. For the synthetic dataset, we train the models using the DIV2K dataset and test them on Set14, Urban100, and Manga109. Here, we first pre-train the network with $\times 2$ scale dataset, then fine-tune on $\times 4$ scale images. For the realistic case, we train the models using the training set of the RealSR dataset
|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
Urban100: 004
|
| 234 |
+
|
| 235 |
+

|
| 236 |
+
HR (PSNR/SSIM)
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
CARN (Δ) (21.97/0.8127)
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
EDSR $(\Delta)$ (23.04/0.8492)
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
RCAN $(\Delta)$ (23.64/0.8658)
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Urban100: 073
|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
LR (19.81/0.6517)
|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
CARN + proposed (Δ) (22.04/0.8148)
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
EDSR + proposed (Δ) (24.13/0.8687)
|
| 258 |
+
|
| 259 |
+

|
| 260 |
+
RCAN + proposed (Δ) (24.07/0.8704)
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
manga109: RisingGirl
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
|
| 269 |
+

|
| 270 |
+
HR (PSNR/SSIM)
|
| 271 |
+
LR (18.20/0.4204)
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
|
| 275 |
+

|
| 276 |
+
CARN (Δ) (18.71/0.5343)
|
| 277 |
+
CARN + proposed (Δ) (18.83/0.5347)
|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
EDSR $(\Delta)$ (19.08/0.5869)
|
| 283 |
+
EDSR + proposed (Δ) (19.86/0.6074)
|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
RCAN (Δ) (19.40/0.5843)
|
| 289 |
+
RCAN $^+$ proposed $(\Delta)$ (20.02/0.6085)
|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
|
| 293 |
+

|
| 294 |
+
RealSR: Canon010
|
| 295 |
+
|
| 296 |
+

|
| 297 |
+
|
| 298 |
+

|
| 299 |
+
HR (PSNR/SSIM)
|
| 300 |
+
LR (22.99/0.7440)
|
| 301 |
+
|
| 302 |
+

|
| 303 |
+
|
| 304 |
+

|
| 305 |
+
CARN (Δ) (27.29/0.8404)
|
| 306 |
+
CARN + proposed (Δ) (27.29/0.8402)
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
|
| 310 |
+

|
| 311 |
+
EDSR $(\Delta)$ (27.98/0.8546)
|
| 312 |
+
EDSR + proposed (Δ) (28.12/0.8579)
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
RCAN $(\Delta)$ (27.77/0.8533)
|
| 318 |
+
RCAN + proposed (Δ) (28.10/0.8572)
|
| 319 |
+
|
| 320 |
+

|
| 321 |
+
|
| 322 |
+

|
| 323 |
+
RealSR: Nikon011
|
| 324 |
+
Figure 5. Qualitative comparison of using our proposed method on different datasets and tasks. $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image.
|
| 325 |
+
|
| 326 |
+

|
| 327 |
+
HR (PSNR/SSIM)
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
LR (23.21/0.7865)
|
| 331 |
+
|
| 332 |
+

|
| 333 |
+
CARN (Δ) (24.69/0.8486)
|
| 334 |
+
|
| 335 |
+

|
| 336 |
+
CARN + proposed (Δ) (25.13/0.8578)
|
| 337 |
+
|
| 338 |
+

|
| 339 |
+
EDSR $(\Delta)$ (25.19/0.8575)
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
EDSR + proposed (Δ) (25.54/0.8673)
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
RCAN (Δ) (25.53/0.8669)
|
| 346 |
+
|
| 347 |
+

|
| 348 |
+
RCAN $^+$ proposed $(\Delta)$ (25.78/0.8693)
|
| 349 |
+
|
| 350 |
+

|
| 351 |
+
|
| 352 |
+
Table 3. Quantitative comparison (PSNR / SSIM) on SR (scale $\times 4$ ) task in both synthetic and realistic settings. $\delta$ denotes the performance gap between with and without augmentation. For synthetic case, we perform the $\times 2$ scale pre-training.
|
| 353 |
+
|
| 354 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2"># Params.</td><td colspan="3">Synthetic (DIV2K dataset)</td><td>Realistic (RealSR dataset)</td></tr><tr><td>Set14 (δ)</td><td>Urban100 (δ)</td><td>Manga109 (δ)</td><td>RealSR (δ)</td></tr><tr><td rowspan="2">CARN + proposed</td><td rowspan="2">1.14M</td><td>28.48 (+0.00) / 0.7787</td><td>25.85 (+0.00) / 0.7779</td><td>30.17 (+0.00) / 0.9034</td><td>28.78 (+0.00) / 0.8134</td></tr><tr><td>28.48 (+0.00) / 0.7788</td><td>25.85 (+0.00) / 0.7780</td><td>30.16 (-0.01) / 0.9032</td><td>29.00 (+0.22) / 0.8204</td></tr><tr><td rowspan="2">RCAN + proposed</td><td rowspan="2">15.6M</td><td>28.86 (+0.00) / 0.7879</td><td>26.76 (+0.00) / 0.8062</td><td>31.24 (+0.00) / 0.9169</td><td>29.22 (+0.00) / 0.8254</td></tr><tr><td>28.92 (+0.06) / 0.7895</td><td>26.93 (+0.17) / 0.8106</td><td>31.46 (+0.22) / 0.9190</td><td>29.49 (+0.27) / 0.8307</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">43.2M</td><td>28.81 (+0.00) / 0.7871</td><td>26.66 (+0.00) / 0.8038</td><td>31.06 (+0.00) / 0.9151</td><td>28.89 (+0.00) / 0.8204</td></tr><tr><td>28.88 (+0.07) / 0.7886</td><td>26.80 (+0.14) / 0.8072</td><td>31.25 (+0.19) / 0.9163</td><td>29.16 (+0.27) / 0.8258</td></tr></table>
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
HR LR (input)
|
| 358 |
+
|
| 359 |
+

|
| 360 |
+
HR
|
| 361 |
+
LR (input)
|
| 362 |
+
|
| 363 |
+

|
| 364 |
+
EDSR w/o CutBlur (Δ)
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
EDSR w/o CutBlur (Δ)
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
EDSR w/CutBlur $(\Delta)$
|
| 371 |
+
Figure 6. Qualitative comparison of the baseline and CutBlur model outputs. The inputs are the real-world out-of-focus photography ( $\times 2$ bicubic downsampled), which are taken from a web (left) and captured by iPhone 11 Pro (right). $\Delta$ is the absolute residual intensity map between the network output and the ground-truth HR image. The baseline model over-sharpens the focused region resulting in unpleasant distortions while the CutBlur model effectively super-resolves the image without such a problem.
|
| 372 |
+
|
| 373 |
+

|
| 374 |
+
EDSR w/CutBlur (Δ)
|
| 375 |
+
|
| 376 |
+
$(\times 4$ scale) and test them on its unseen test images.
|
| 377 |
+
|
| 378 |
+
Our proposed method consistently gives a huge performance gain, especially when the models have large capacities (Table 3). In the RealSR dataset, which is a more realistic case, the performance gain of our method becomes larger, increasing at least $0.22\mathrm{dB}$ for all models in PSNR. We achieve the SOTA performance (RCAN [33]) compared to the previous SOTA model (LP-KPN [4]: 28.92 dB / 0.8340). Note that our model increases the PSNR by 0.57 dB with a comparable SSIM score. Surprisingly, the lightest model (CARN [3]: 1.14M) can already beat the LP-KPN (5.13M) in PSNR with only $22\%$ of the parameters.
|
| 379 |
+
|
| 380 |
+
Figure 5 shows the qualitative comparison between the models with and without applying our DA method. In the Urban100 examples (1st and 2nd rows in Figure 5), RCAN and EDSR benefit from the increased performance and successfully resolve the aliasing patterns. This can be seen more clearly in the residual between the model-prediction and the ground-truth HR image. Such a tendency is con
|
| 381 |
+
|
| 382 |
+
sistently observed across different benchmark images. In RealSR dataset images, even the performance of the small model is boosted, especially when there are fine structures (4th row in Figure 5).
|
| 383 |
+
|
| 384 |
+
# 4.3. CutBlur in the wild
|
| 385 |
+
|
| 386 |
+
With the recent developments of devices like iPhone 11 Pro, they offer a variety of features, such as portrait images. Due to the different resolutions of the focused foreground and the out-focused background of the image, the baseline SR model shows degraded performance, while the CutBlur model does not (Figure 6). These are the very real-world examples, which are simulated by CutBlur. The baseline model adds unrealistic textures in the grass (left, Figure 6) and generates ghost artifacts around the characters and coin patterns (right, Figure 6). In contrast, the CutBlur model does not add any unrealistic distortion while it adequately super-resolves the foreground and background of the image.
|
| 387 |
+
|
| 388 |
+
Table 4. Performance comparison on the color Gaussian denoising task evaluated on the Kodak24 dataset. We train the model with both mild $(\sigma = 30)$ and severe noises $(\sigma = 70)$ and test on the mild setting. LPIPS [31] (lower is better) indicates the perceptual distance between the network output and the ground-truth.
|
| 389 |
+
|
| 390 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Train σ</td><td colspan="3">Test (σ = 30)</td></tr><tr><td>PSNR ↑</td><td>SSIM ↑</td><td>LPIPS ↓</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">30</td><td>31.92</td><td>0.8716</td><td>0.136</td></tr><tr><td>+0.02</td><td>+0.0006</td><td>-0.004</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">70</td><td>27.38</td><td>0.7295</td><td>0.375</td></tr><tr><td>-2.51</td><td>+0.0696</td><td>-0.193</td></tr></table>
|
| 391 |
+
|
| 392 |
+
Table 5. Performance comparison on the color JPEG artifact removal task evaluated on the LIVE1 [18] dataset. We train the model with both mild $(q = 30)$ and severe compression $(q = 10)$ and test on the mild setting.
|
| 393 |
+
|
| 394 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Train q</td><td colspan="3">Test (q = 30)</td></tr><tr><td>PSNR ↑</td><td>SSIM ↑</td><td>LPIPS ↓</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">30</td><td>33.95</td><td>0.9227</td><td>0.118</td></tr><tr><td>-0.01</td><td>-0.0002</td><td>+0.001</td></tr><tr><td rowspan="2">EDSR + proposed</td><td rowspan="2">10</td><td>32.45</td><td>0.8992</td><td>0.154</td></tr><tr><td>+0.97</td><td>+0.0187</td><td>-0.023</td></tr></table>
|
| 395 |
+
|
| 396 |
+
# 4.4. Other low-level vision tasks
|
| 397 |
+
|
| 398 |
+
Interestingly, we find that our method also gives similar benefits when applied to the other low-level vision tasks. We demonstrate the potential advantages of our method by applying it to the Gaussian denoising and JPEG artifact removal tasks. For each task, we use EDSR as our baseline and trained the model from scratch with the synthetic DIV2K dataset with the corresponding degradation functions. We evaluate the model performance on the Kodak24 and LIVE1 [18] datasets using PSNR (dB), SSIM, and LPIPS [31]. Please see the appendix for more details.
|
| 399 |
+
|
| 400 |
+
Gaussian denoising (color). We generate a synthetic dataset using Gaussian noise of different signal-to-noise ratios (SNR); $\sigma = 30$ and 70 (higher $\sigma$ means stronger noise). Similar to the over-sharpening issue in SR, we simulate the over-smoothing problem (bottom row, Table 4). The proposed model has lower PSNR (dB) than the baseline but it shows higher SSIM and lower LPIPS [31], which is known to measure the perceptual distance between two images (lower LPIPS means smaller perceptual difference).
|
| 401 |
+
|
| 402 |
+
In fact, the higher PSNR of the baseline model is due to the over-smoothing (Figure 7). Because the baseline model has learned to remove the stronger noise, it provides the over-smoothed output losing the fine details of the image. Due to this over-smoothing, its SSIM score is significantly lower and LPIPS is significantly higher. In contrast, the proposed model trained with our strategy successfully denoises the image while preserving the fine structures, which demonstrates the good regularization effect of our method.
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
High quality (PSNR/SSIM/LPIIPS)
|
| 406 |
+
|
| 407 |
+

|
| 408 |
+
Low quality $(\sigma = 30)$ (18.88, 0.4716 / 0.446)
|
| 409 |
+
|
| 410 |
+

|
| 411 |
+
Baseline
|
| 412 |
+
(23.38 / 0.5375 / 0.598)
|
| 413 |
+
Figure 7. Comparison of the generalization ability in the denoising task. Both the baseline and the proposed method are trained using $\sigma = 70$ (severe) and tested with $\sigma = 30$ (mild). Our proposed method effectively recovers the details while the baseline oversmooths the input resulting in a blurry image.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Proposed
|
| 417 |
+
(23.14/0.7630/0.191)
|
| 418 |
+
|
| 419 |
+
JPEG artifact removal (color). We generate a synthetic dataset using different compression qualities, $q = 10$ and 30 (lower $q$ means stronger artifact) on the color image. Similar to the denoising task, we simulate the over-removal issue. Compared to the baseline model, our proposed method shows significantly better performance in all metrics we used (bottom row, Table 5). The model generalizes better and gives 0.97 dB performance gain in PSNR.
|
| 420 |
+
|
| 421 |
+
# 5. Conclusion
|
| 422 |
+
|
| 423 |
+
We have introduced CutBlur and Mixture of Augmentations (MoA), a new DA method and a strategy for training a stronger SR model. By learning how and where to super-resolve an image, CutBlur encourages the model to understand how much it should apply the super-resolution to an image area. We have also analyzed which DA methods hurt SR performance and how to modify those to prevent such degradation. We showed that our proposed MoA strategy consistently and significantly improves the performance across various scenarios, especially when the model size is big and the dataset is collected from real-world environments. Last but not least, our method showed promising results in denoising and JPEG artifact removals, implying its potential extensibility to other low-level vision tasks.
|
| 424 |
+
|
| 425 |
+
Acknowledgement. We would like to thank Clova AI Research team, especially Yunjay Choi, Seong Joon Oh, Youngjung Uh, Sangwoo Yun, Dongyoon Han, Youngjoon Yoo, and Jung-Woo Ha for their valuable comments and feedback. This work was supported by Naver Corp and also by the National Research Foundation of Korea grant funded by the Korea government (MSIT) (no.NRF2019R1A2C1006608)
|
| 426 |
+
|
| 427 |
+
# References
|
| 428 |
+
|
| 429 |
+
[1] Abdelrahman Abdelhamed, Stephen Lin, and Michael S Brown. A high-quality denoising dataset for smartphone cameras. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1692-1700, 2018. 1
|
| 430 |
+
[2] Eirikur Agustsson and Radu Timofte. Ntire 2017 challenge on single image super-resolution: Dataset and study. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, July 2017. 2, 3, 5
|
| 431 |
+
[3] Namhyuk Ahn, Byungkon Kang, and Kyung-Ah Sohn. Fast, accurate, and lightweight super-resolution with cascading residual network. In Proceedings of the European Conference on Computer Vision (ECCV), pages 252-268, 2018. 5, 7
|
| 432 |
+
[4] Jianrui Cai, Hui Zeng, Hongwei Yong, Zisheng Cao, and Lei Zhang. Toward real-world single image super-resolution: A new benchmark and a new model. arXiv preprint arXiv:1904.00523, 2019. 1, 2, 3, 5, 7
|
| 433 |
+
[5] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2219-2228, 2019. 2, 3
|
| 434 |
+
[6] Ekin D Cubuk, Barret Zoph, Dandelion Mane, Vijay Vasudevan, and Quoc V Le. Autoaugment: Learning augmentation policies from data. arXiv preprint arXiv:1805.09501, 2018. 2
|
| 435 |
+
[7] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552, 2017. 1, 2, 3
|
| 436 |
+
[8] Chao Dong, Chen Change Loy, Kaiming He, and Xiaou Tang. Image super-resolution using deep convolutional networks. IEEE transactions on pattern analysis and machine intelligence, 38(2):295-307, 2015. 1, 5
|
| 437 |
+
[9] Ruicheng Feng, Jinjin Gu, Yu Qiao, and Chao Dong. Suppressing model overfitting for image super-resolution networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 0-0, 2019. 1, 2
|
| 438 |
+
[10] Xavier Gastaldi. Shake-shake regularization. arXiv preprint arXiv:1705.07485, 2017. 1, 2
|
| 439 |
+
[11] Golnaz Ghiasi, Tsung-Yi Lin, and Quoc V Le. Dropblock: A regularization method for convolutional networks. In Advances in Neural Information Processing Systems, pages 10727-10737, 2018. 1, 2, 3
|
| 440 |
+
[12] Shuhang Gu, Wangmeng Zuo, Qi Xie, Deyu Meng, Xi-angchu Feng, and Lei Zhang. Convolutional sparse coding for image super-resolution. In Proceedings of the IEEE International Conference on Computer Vision, pages 1823–1831, 2015. 1
|
| 441 |
+
[13] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 1
|
| 442 |
+
[14] Jia-Bin Huang, Abhishek Singh, and Narendra Ahuja. Single image super-resolution from transformed self-exemplars. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5197-5206, 2015. 5
|
| 443 |
+
|
| 444 |
+
[15] Bee Lim, Sanghyun Son, Heewon Kim, Seungjun Nah, and Young Mu Lee. Enhanced deep residual networks for single image super-resolution. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 136-144, 2017. 2, 3, 5
|
| 445 |
+
[16] Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. arXiv preprint arXiv:1905.00397, 2019. 2
|
| 446 |
+
[17] Yusuke Matsui, Kota Ito, Yuji Aramaki, Azuma Fujimoto, Toru Ogawa, Toshihiko Yamasaki, and Kiyoharu Aizawa. Sketch-based manga retrieval using manga109 dataset. Multimedia Tools and Applications, 76(20):21811-21838, 2017. 5
|
| 447 |
+
[18] HR Sheikh. Live image quality assessment database release 2. http://live.ece.utexas.edu/research/quality, 2005. 8
|
| 448 |
+
[19] Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929-1958, 2014. 2
|
| 449 |
+
[20] Nako Sung, Minkyu Kim, Hyunwoo Jo, Youngil Yang, Jingwoong Kim, Leonard Lausen, Youngkwan Kim, Gayoung Lee, Donghyun Kwak, Jung-Woo Ha, et al. Nsml: A machine learning platform that enables you to focus on your models. arXiv preprint arXiv:1712.05902, 2017. 5
|
| 450 |
+
[21] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2818-2826, 2016. 4
|
| 451 |
+
[22] Radu Timofte, Eirikur Agustsson, Luc Van Gool, Ming-Hsuan Yang, and Lei Zhang. Ntire 2017 challenge on single image super-resolution: Methods and results. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 114-125, 2017. 1
|
| 452 |
+
[23] Radu Timofte, Vincent De Smet, and Luc Van Gool. A+: Adjusted anchored neighborhood regression for fast superresolution. In Asian conference on computer vision, pages 111-126. Springer, 2014. 1
|
| 453 |
+
[24] Radu Timofte, Rasmus Rothe, and Luc Van Gool. Seven ways to improve example-based single image super resolution. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 1865-1873, 2016. 1, 2
|
| 454 |
+
[25] Jonathan Tompson, Ross Goroshin, Arjun Jain, Yann LeCun, and Christoph Bregler. Efficient object localization using convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 648-656, 2015. 2, 3
|
| 455 |
+
[26] Vikas Verma, Alex Lamb, Christopher Beckham, Amir Najafi, Ioannis Mitlagkas, Aaron Courville, David Lopez-Paz, and Yoshua Bengio. *Manifold mixup: Better representations by interpolating hidden states.* arXiv preprint arXiv:1806.05236, 2018. 1, 2
|
| 456 |
+
[27] Yoshihiro Yamada, Masakazu Iwamura, Takuya Akiba, and Koichi Kise. Shakedrop regularization for deep residual learning. arXiv preprint arXiv:1802.02375, 2018. 1, 2
|
| 457 |
+
[28] Jianchao Yang, John Wright, Thomas S Huang, and Yi Ma. Image super-resolution via sparse representation. IEEE
|
| 458 |
+
|
| 459 |
+
transactions on image processing, 19(11):2861-2873, 2010. 5
|
| 460 |
+
[29] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable features. arXiv preprint arXiv:1905.04899, 2019. 1, 2, 3
|
| 461 |
+
[30] Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017. 1, 2, 3
|
| 462 |
+
[31] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 586-595, 2018. 8
|
| 463 |
+
[32] Xuaner Zhang, Ren Ng, and Qifeng Chen. Single image reflection separation with perceptual losses. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4786-4794, 2018. 1
|
| 464 |
+
[33] Yulun Zhang, Kunpeng Li, Kai Li, Lichen Wang, Bineng Zhong, and Yun Fu. Image super-resolution using very deep residual channel attention networks. In Proceedings of the European Conference on Computer Vision (ECCV), pages 286-301, 2018. 5, 7
|
| 465 |
+
[34] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data augmentation. arXiv preprint arXiv:1708.04896, 2017. 2
|
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:159c2d517763cd7a9ed4ea80bfc59664e39b1e80fe52d80e2493a6eebf8922b4
|
| 3 |
+
size 1037610
|
rethinkingdataaugmentationforimagesuperresolutionacomprehensiveanalysisandanewstrategy/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6269ff15a8a1607ce67136f9b5e406946079c4f95689693b7cc87d47f263c0e
|
| 3 |
+
size 566865
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d5db640d53b7778bab74a3fb441f4720fd3bed7f95ee229ff8b6e5e655723f2
|
| 3 |
+
size 78897
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b42c4405a687c25907f1efd27561cebd54ab072d42526a98eb7a147544e7ad6a
|
| 3 |
+
size 96071
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/b7544196-a325-427c-aa3d-82cc4a50b918_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b094449cd8af56ca7087fa22363fa3f483d835dc5bc6adfbf08a44af98df9d1a
|
| 3 |
+
size 612427
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/full.md
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking Depthwise Separable Convolutions: How Intra-Kernel Correlations Lead to Improved MobileNets
|
| 2 |
+
|
| 3 |
+
Daniel Haase*
|
| 4 |
+
|
| 5 |
+
ZEISS Microscopy
|
| 6 |
+
|
| 7 |
+
daniel.haase@zeiss.com
|
| 8 |
+
|
| 9 |
+
Manuel Amthor*
|
| 10 |
+
|
| 11 |
+
ZEISS Microscopy
|
| 12 |
+
|
| 13 |
+
manuel.amthor@zeiss.com
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
We introduce blueprint separable convolutions (BSConv) as highly efficient building blocks for CNNs. They are motivated by quantitative analyses of kernel properties from trained models, which show the dominance of correlations along the depth axis. Based on our findings, we formulate a theoretical foundation from which we derive efficient implementations using only standard layers. Moreover, our approach provides a thorough theoretical derivation, interpretation, and justification for the application of depthwise separable convolutions (DSCs) in general, which have become the basis of many modern network architectures. Ultimately, we reveal that DSC-based architectures such as MobileNets implicitly rely on cross-kernel correlations, while our BSConv formulation is based on intrakernel correlations and thus allows for a more efficient separation of regular convolutions. Extensive experiments on large-scale and fine-grained classification datasets show that BSCnvs clearly and consistently improve MobileNets and other DSC-based architectures without introducing any further complexity. For fine-grained datasets, we achieve an improvement of up to 13.7 percentage points. In addition, if used as drop-in replacement for standard architectures such as ResNets, BSCnv variants also outperform their vanilla counterparts by up to 9.5 percentage points on ImageNet.
|
| 18 |
+
|
| 19 |
+
# 1. Introduction
|
| 20 |
+
|
| 21 |
+
Convolutional neural networks (CNNs) [27, 26] have become the basis of practically all state-of-the-art approaches for image classification, object detection [5], semantic segmentation [30], and many other applications. In the past, improvements of CNNs were mainly driven by increasing the model capacity, while at the same time ensuring a proper training behavior [20, 13, 14]. Recently, this has led to the development of models with half a billion parameters [18]. In practical applications, however, the computational ca
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1. We introduce blueprint separable convolutions (BSConv) as highly efficient building block for CNNs. BSCnv exploits correlations of CNN kernels along their depth axis. In consequence, BSCnv represents each filter kernel using one 2d blueprint kernel which is distributed along the depth axis using a weight vector.
|
| 25 |
+
|
| 26 |
+
pacity is often limited, especially in mobile and automotive contexts. This fact has led to another important research direction which focuses on improving model efficiency. The most prominent approaches are based on depthwise separable convolutions (DSCs) [37, 16]—building blocks which are motivated by exploiting redundancies of filter weights.
|
| 27 |
+
|
| 28 |
+
Based on quantitative and qualitative analyses of trained CNNs, in Section 3 we propose blueprint separable convolutions (BSConv), which follow this path of research. The main idea of BSConv is to exploit that kernels of CNNs usually show high redundancies along their depth axis (i.e., intra-kernel correlations). Thus, BSConv represents each filter kernel using one 2d blueprint which is distributed along the depth axis using a weight vector (see Figure 1).
|
| 29 |
+
|
| 30 |
+
Although DSCs are also motivated by intra-kernel correlations [37], in Section 4 we show that their derived order of operations contradicts this assumption and is reversed compared to our BSConv solution. In fact, the DSC result is equivalent to assuming redundancies between kernels (i.e., cross-kernel correlations, see Figure 5), which was shown
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Figure 2. Exemplary filter weights of a vanilla VGG-19, Inception v2, and ResNet-50 CNN trained on ImageNet. For each of the three CNN architectures, one filter kernel of size $M \times K \times K = 128 \times 3 \times 3$ is visualized, split into 128 images. The weights of each filter kernel are highly correlated along the depth axis. Concretely, most slices show the same filter-specific $3 \times 3$ 'blueprint', only scaled by different factors (including negative factors which cause 'inverted' versions of the blueprint). While only three slices are highlighted for each kernel, the correlation is visible for far more slices (52/128 for the ResNet-50 example). This observation is the motivation for our proposal of blueprint separable convolutions (BSConv), which inherently represent a filter kernel of size $M \times K \times K$ using one blueprint kernel of size $K \times K$ and a set of $M$ multiplicative factors used to distribute the blueprint across the depth axis.
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
to be less effective when separating convolutions [7]. In addition, a natural extension of BSConv leads to an interpretation and justification for DSCs with linear bottlenecks [35], which are extensively used in many recent models [15, 40, 41]. Our solution, however, directly implies the use of an additional regularization loss to improve the subspace transform implicitly performed by these bottlenecks.
|
| 40 |
+
|
| 41 |
+
In Section 5, we thoroughly demonstrate that BSCov consistently outperforms DSC-based architectures such as MobileNets on a wide variety of large-scale and fine-grained datasets at the same parameter and time complexity. Furthermore, BSCov can be used as drop-in replacement for standard convolution layers and can be applied to other architectures as well, leading to performance gains while drastically increasing model efficiency.
|
| 42 |
+
|
| 43 |
+
# 2. Related Work
|
| 44 |
+
|
| 45 |
+
Numerous approaches exist to improve the efficiency of CNNs. One example is model pruning, where filters and/or connections are removed from CNNs during or after model training [10, 28, 11, 29]. Closely related and often combined are quantization [33, 47, 19] and compression techniques [6, 9, 8] to accelerate model inference.
|
| 46 |
+
|
| 47 |
+
Another relevant research area is efficiency-driven CNN architecture search. It can be performed manually [12] or automatically, e.g. via genetic algorithms [43] or via reinforcement learning in the form of neural architecture search [48, 1]. The latter is the basis for the most recent advances in building efficient models such as MnasNet [40], MobileNetV3 [15], and EfficientNet [41].
|
| 48 |
+
|
| 49 |
+
Building blocks typically consist of activation, normalization, and convolution operations, where the latter bear the greatest potential for efficiency optimizations. Redundancies in convolution weights of trained CNNs are ana-
|
| 50 |
+
|
| 51 |
+
lyzed in [3, 37, 36, 7]. Approaches to reduce these redundancies are for instance low-rank approximations of the filter kernels [4, 21, 22] and the usage of grouped convolutions [46, 31, 44]. In [37], DSCs are introduced, which form the basis for practically all recent efficient network architectures. Their direct application can for instance be found in MobileNetV1 [16], factorized CNNs [42], and Xception [2]. An extension of DSCs are inverted residual bottlenecks which are introduced in MobileNetV2 [35]. They are used in state-of-the-art efficient architectures, including MnasNet [40], MobileNetV3 [15], and EfficientNet [41].
|
| 52 |
+
|
| 53 |
+
# 3. Blueprint Separable Convolutions (BSConv)
|
| 54 |
+
|
| 55 |
+
In standard CNNs, each convolution layer transforms an input tensor $U$ of size $M \times Y \times X$ into an output tensor $V$ of size $N \times Y \times X$ by applying convolution kernels $F^{(1)}, \ldots, F^{(N)}$ , each of size $M \times K \times K$ such that
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
V _ {n,:,:} = U * F ^ {(n)} \tag {1}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
with $n \in \{1, \dots, N\}$ (see Figure 1, top row). The entries (or 'weights') of these $N$ kernels are optimized during the training stage of CNNs via backpropagation and may take arbitrary values. However, in the following we show that in practice these weights often converge towards a state in which they show a substantial amount of correlation. We analyze these correlations qualitatively and quantitatively, and then derive a new, parameter- and time-efficient version of convolution layers for CNNs based on our findings.
|
| 62 |
+
|
| 63 |
+
# 3.1. Intra-Kernel Correlations in Standard CNNs
|
| 64 |
+
|
| 65 |
+
In this paper we focus on intra-kernel correlations and their potential for the design of parameter- and time-efficient CNNs. We start with a qualitative analysis of intra-kernel correlations by visualizing filters of trained CNNs.
|
| 66 |
+
|
| 67 |
+

|
| 68 |
+
Figure 3. Histogram of the variance along the depth axis of filter kernels which can be explained using only one principal component per filter. The filters are grouped by convolution stages (stage 1: blue, stage 2: orange, stage 3: green, stage 4: red). These quantitative results show that a large portion of CNN filters can potentially be represented using our BSConv formulation. This figure is best viewed in color.
|
| 69 |
+
|
| 70 |
+

|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
|
| 74 |
+
Figure 2 shows exemplary filter kernels for three established CNN architectures trained on the ImageNet dataset—namely VGG-19 [38], Inception v2 [20], and ResNet-50 [13, 14]. From these visualizations, it can be seen that intrakernel correlations exist along the depth axis. Concretely, it often seems that for a filter $F^{(n)}$ , its slices $F_{1,:,:}^{(n)}, \ldots, F_{M,:,:}^{(n)}$ show the same filter-specific $K \times K$ 'blueprint', only scaled by different factors (including negative factors which cause 'inverted' versions of the blueprint).
|
| 75 |
+
|
| 76 |
+
While Figure 2 shows only a small subset of filter kernels, the described property of filter slices being based on a 'blueprint' are by no means an exception. According to our observations, it occurs consistently across different CNN architectures, training settings, and datasets. To systematically quantify to which extent filter kernels show this behavior, we analyze several trained CNNs in the following way: For each individual filter of the CNN, we (i) split the $M \times K \times K$ kernel into $M$ samples of size $K \times K$ , (ii) perform principal component analysis (PCA) on the set of $M$ samples, and (iii) determine the variance of the filter kernel which is explained by the first principal component (PC1). Using this approach, we can quantify how well each filter is representable by a $K \times K$ filter-specific blueprint (which in this case corresponds to PC1) and $M$ factors (which in this case are the 'scores' obtained via PCA). We aggregate these individual values into histograms, which are shown in Figure 3 for the same vanilla CNNs used in Figure 2. It can be seen that on average, about $50\%$ of each filter kernel's variance can be explained using this simple model, suggesting a large potential for efficiency improvements.
|
| 77 |
+
|
| 78 |
+
# 3.2. From Correlations to BSConv
|
| 79 |
+
|
| 80 |
+
The analysis in Section 3.1 suggests that for trained vanilla CNNs, each $M \times K \times K$ filter can be approximated using a $K \times K$ blueprint and $M$ factors which 'distribute' the blueprint along the depth dimension. Even though it is by no means enforced during training, this approximation explains a large portion of the observed variance. This
|
| 81 |
+
|
| 82 |
+
finding is the motivation for the introduction of blueprint separable convolutions (BSConv). They are defined in such a way that above approximation turns into an integral property of the filters of CNNs. Concretely, we define each filter kernel $F^{(n)}$ to be represented using a blueprint $B^{(n)}$ and the weights $w_{n,1},\ldots ,w_{n,M}\in \mathbb{R}$ via
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
F _ {m,:,:} ^ {(n)} = w _ {n, m} \cdot B ^ {(n)}, \tag {2}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
with $m \in \{1, \dots, M\}$ and $n \in \{1, \dots, N\}$ (see Figure 1, bottom row). While this definition poses a hard constraint on the filter kernels, in Section 5 we experimentally show that CNNs trained with BSConv can reach the same or even better quality in comparison to their vanilla counterparts. However, in contrast to standard convolution layers which have $M \cdot N \cdot K^2$ free parameters (see Figure 1), the BSConv variant only has $N \cdot K^2$ parameters for the blueprints, and $M \cdot N$ parameters for the weights. As is discussed below, the latter can be reduced even further.
|
| 89 |
+
|
| 90 |
+
# 3.3. Variants and Implementations
|
| 91 |
+
|
| 92 |
+
A BSCnv module consists of $N$ filters, each having one blueprint and $M$ weights. All $M \cdot N$ weights can be combined into the matrix $W = (w_{n,m})$ . Depending on how $W$ is learned in the training step, different BSCnv variants can be derived. In the following, two variants are described.
|
| 93 |
+
|
| 94 |
+
# 3.3.1 Unconstrained BSConv (BSConv-U)
|
| 95 |
+
|
| 96 |
+
In the most general case, the weights $W$ can vary without any constraints and are learned directly via backpropagation, just like the entries of the blueprint filter kernels.
|
| 97 |
+
|
| 98 |
+
As shown in Figure 1, a naive implementation can be achieved by constructing a full kernel from each blueprint and performing a regular convolution afterwards. However, to derive a much more efficient implementation for CNNs, we rewrite Equation (1) in the following way: Firstly, because the input data tensor $U$ and the filter kernels $F^{(1)},\ldots ,F^{(N)}$ have the same size $M$ along their depth dimension, we can split each 3d convolution into a sum of $M$
|
| 99 |
+
|
| 100 |
+

|
| 101 |
+
Figure 4. Computational graphs for the efficient implementation of the different BSConv variants (see Sections 3.3.1 and 3.3.2).
|
| 102 |
+
|
| 103 |
+
2d convolutions, yielding
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
V _ {n,:,:} = U * F ^ {(n)} = \sum_ {m = 1} ^ {M} \left(U _ {m,:,: *} * F _ {m,:,:} ^ {(n)}\right). \tag {3}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
Secondly, we can replace each filter with its BSConv representation as given in Equation (2), and obtain
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
V _ {n, \therefore :} = \sum_ {m = 1} ^ {M} \left(U _ {m, \therefore :} * \left(w _ {n, m} \cdot B ^ {(n)}\right)\right). \tag {4}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
Because (i) each filter blueprint $B^{(n)}$ is independent of the input channel $m$ , and (ii) $w_{n,m}$ is a scalar, we can rearrange above equation into
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
V _ {n,:,:} = \underbrace {\left(\sum_ {m = 1} ^ {M} U _ {m , : , :} \cdot w _ {n , m}\right)} _ {V _ {n,:,:} ^ {\prime}} * B ^ {(n)}. \tag {5}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
If we further rearrange $w_{n,1}, \ldots, w_{n,M}$ into a $M \times 1 \times 1$ array $\tilde{w}_n$ , the sum can be replaced by a convolution, giving
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
V _ {n,:,:} ^ {\prime} = U * \tilde {w} _ {n} \tag {6}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
V _ {n, \vdots ; \vdots} = V _ {n, \vdots ; \vdots} ^ {\prime} * B ^ {(n)}. \tag {7}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
For a concrete implementation, these Equations (6) and (7) can directly be translated into two tensor operations: (i) a $1 \times 1$ pointwise convolution with the kernels $\tilde{w}_1, \ldots, \tilde{w}_N$ , which is performed on the input data tensor $U$ , and (ii) a $K \times K$ depthwise convolution [16, 20] with kernels $B^{(1)}, \ldots, B^{(N)}$ , which is applied to the result of the first step. A flowchart visualization of these steps is given in Figure 4.
|
| 132 |
+
|
| 133 |
+
# 3.3.2 Subspace BSConv (BSConv-S)
|
| 134 |
+
|
| 135 |
+
For CNNs trained with BSConv-U convolution layers, the free parameters to be estimated are the $N$ blueprint ker
|
| 136 |
+
|
| 137 |
+
nel matrices and the weight matrix $W = (w_{n,m})$ of size $N \times M$ . When analyzing the structure of the weight matrices $W$ of such CNNs, we observe that the rows of $W$ are often highly correlated. This fact indicates the potential for a further regularization and parameter reduction.
|
| 138 |
+
|
| 139 |
+
Concretely, we perform a low-rank approximation of $W$ by factorizing it into the $N \times M'$ matrix $W^{A} = (w_{n,m'}^{A})$ and the $M' \times M$ matrix $W^{B} = (w_{m',m}^{B})$ as
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
W = W ^ {A} \cdot W ^ {B}, \tag {8}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
with $M' = \lceil p \cdot M \rceil$ , while $p \in (0.0, 1.0)$ specifies the size of the subspace $M'$ in relation to the size $M$ of the original space. The matrix $W^B$ can be thought of as a set of $M'$ basis vectors, while $W^A$ is the subspace version of $W$ . Instead of $N \cdot M$ weights as for the case of BSCov-U, this method reduces the parameter count to $N \cdot M' + M' \cdot M$ , as only $W^A$ and $W^B$ have to be learned via backpropagation.
|
| 146 |
+
|
| 147 |
+
To minimize redundancies in the low-rank subspace, we want the basis defined by $W^{B}$ to be orthonormal. This can be achieved via the regularization loss
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
L _ {\text {o r t h o}} = \left\| W ^ {B} W ^ {B ^ {\mathrm {T}}} - I \right\| _ {\mathrm {F}}, \tag {9}
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
where $I$ is the identity matrix and $\| \cdot \|_{\mathrm{F}}$ the Frobenius norm of a matrix. The regularization loss is added to the classification loss $L_{\mathrm{class}}$ with the weighting factor $\alpha$ , resulting in the joint loss $L = L_{\mathrm{class}} + \alpha L_{\mathrm{ortho}}$ .
|
| 154 |
+
|
| 155 |
+
To derive an efficient implementation of BSCov-S, we can substitute $w_{n,m} = \sum_{m' = 1}^{M'}w_{n,m'}^A\cdot w_{m',m}^B$ in Equation (5), yielding
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
V _ {n, \therefore :} = \left(\sum_ {m = 1} ^ {M} U _ {m, \therefore :} \cdot \left(\sum_ {m ^ {\prime} = 1} ^ {M ^ {\prime}} w _ {n, m ^ {\prime}} ^ {A} \cdot w _ {m ^ {\prime}, m} ^ {B}\right)\right) * B ^ {(n)}. \tag {10}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
Using the same arguments as in Section 3.3.1, we can rearrange this equation into
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
V _ {n, \vdots ,:} = \overbrace {\left(\sum_ {m ^ {\prime} = 1} ^ {M ^ {\prime}} \underbrace {\left(\sum_ {m = 1} ^ {M} U _ {m , \vdots , :} \cdot w _ {m ^ {\prime} , m} ^ {B}\right)} _ {U _ {m ^ {\prime}, \vdots ,}:} \cdot w _ {n , m ^ {\prime}} ^ {A}\right)} ^ {V _ {n, \vdots ,:} ^ {\prime}} * B ^ {(n)}. \tag {11}
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
By rearranging the weights $w_{m',1}^{B}, \ldots, w_{m',M}^{B}$ into the $M \times 1 \times 1$ array $\tilde{w}_{m'}^{B}$ and the weights $w_{n,1}^{A}, \ldots, w_{n,M'}^{A}$ into the $M' \times 1 \times 1$ array $\tilde{w}_{n}^{A}$ , the sums can be replaced by convolutions in the same way as in Section 3.3.1, and we obtain
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
U _ {m ^ {\prime}, \therefore ;} ^ {\prime} = U * \tilde {w} _ {m ^ {\prime}} ^ {B} \tag {12}
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
V _ {n, \therefore , \therefore} ^ {\prime} = U ^ {\prime} * \tilde {w} _ {n} ^ {A} \tag {13}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
V _ {n, \therefore ;} = V _ {n, \therefore} ^ {\prime} * B ^ {(n)}. \tag {14}
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
Again, Equations (12) to (14) directly translate into tensor operations, thus a concrete implementation of BSConv-S is
|
| 182 |
+
|
| 183 |
+
a three-step process: (i) the input tensor is projected into a $M^{\prime}$ -dimensional subspace via a $1\times 1$ pointwise convolution with kernels $\tilde{w}_1^B,\ldots ,\tilde{w}_{M'}^B$ , (ii) another $1\times 1$ pointwise convolution with kernels $\tilde{w}_1^A,\ldots ,\tilde{w}_N^A$ is applied to the result of the first step, and (iii) a $K\times K$ depthwise convolution with kernels $B^{(1)},\ldots ,B^{(N)}$ is applied to the result of step two (see Figure 4 for a visualization).
|
| 184 |
+
|
| 185 |
+
# 4. Rethinking Depthwise Separable Convolutions
|
| 186 |
+
|
| 187 |
+
In the following, we show how the derived variants of BSCnv are related to both most important building blocks for mobile models, i.e. depthwise separable convolutions and linear inverted residual bottlenecks. Moreover, we demonstrate how current model architectures can easily be equipped with our improved building blocks. As we will see in our experiments in Section 5, BSCnv variants substantially outperform their vanilla counterparts.
|
| 188 |
+
|
| 189 |
+
# 4.1. BSCnv-U is a Reversed Depthwise Separable Convolution
|
| 190 |
+
|
| 191 |
+
Although the derivation of DSCs in [37] is based on the same observation of kernel correlations along the depth axis, they obtain a reversed order of depthwise and pointwise convolution layers compared to BSConv (see Figure 4). This is because DSC in fact enforces cross-kernel correlations instead of intra-kernel correlations. Using our formulation in Section 3.3, this can be verified by setting Equation (2) to $F_{m,::}^{(n)} = w_{n,m} \cdot B_{m,::}^{\prime}$ . This case corresponds to having a single 3d $M \times K \times K$ blueprint kernel $B^{\prime}$ , which is replicated along the width axis, i.e. across kernels (see Figure 5). While both cross-kernel and intrakernel correlations are valid assumptions, in [7] it is shown that the latter dominate and thus have a larger potential for an efficient separation. This becomes even more obvious given that natural images are inherently correlated along the depth axis, which propagates through all layers.
|
| 192 |
+
|
| 193 |
+
The MobileNetV1 architecture can be translated to a BSConv-U model by simply substituting all DSCs by BSConv-U building blocks, which effectively means switching the order depthwise and pointwise convolutions. However, the inversion of the layer order should have no substantial effect on the middle flow of the network, since we already have alternating point- and depthwise convolutions. The main difference comes from the entry flow: with our approach, feature maps from the first regular convolution can be fully utilized by the depthwise convolution via the preceding pointwise distribution. In contrast, each kernel of the first depthwise convolution of the original MobileNetV1 model can only benefit from a single feature map, leading to limited expressiveness. Following our derivation, for the BSConv-U version of MobileNetV1, no
|
| 194 |
+
|
| 195 |
+

|
| 196 |
+
Figure 5. Interpretations for DSC and BSConv. DSCs implicitly assume one 3d blueprint which is used for all kernels, while BSConv relies on individual 2d blueprints for each kernel.
|
| 197 |
+
|
| 198 |
+
activation nor normalization is applied after the pointwise convolutions, since it is essential to allow the weights $w_{n,m}$ to be negative.
|
| 199 |
+
|
| 200 |
+
# 4.2. BSCnv-S is a Shifted Linear Bottleneck with Orthonormal Regularization
|
| 201 |
+
|
| 202 |
+
Linear bottlenecks with inverted residual skips were first introduced in [35] as a highly efficient building block providing impressive expressiveness at a minimum amount of required operations. It follows the idea of regularizing bottlenecks in very large ResNets and became the de facto standard in most of the current state-of-the-art mobile architectures such as MobileNetV2 and MobileNetV3. A single block consists of a cascade of a pointwise, a depthwise, and a pointwise convolution where the bottleneck is placed between blocks. Considering BSConv-S, we can see the close relationship when shifting our cascade of two pointwise and one depthwise convolution within a block to obtain a pointwise, a depthwise, and a pointwise convolution. Thus, MobileNetV2 and V3 can be reinterpreted as a BSConv model with subspace transforms. As found by [35], the shift of residual skips into the bottleneck provides superior model performance and we keep that idea also for our implementation of MobileNets equipped with BSConv-S. Following our derivation in Section 3.3.2, the linear bottleneck, i.e. without the use of an activation function, comes quite natural since negative components are equally essential as positive ones for the subspace transform. Note that this implies that the first bottleneck block does not apply a subspace transform while the last feature map before the final classification layer is in fact compressed. Most importantly, BSConv-S models greatly benefit from our theoretical findings concerning the application of the orthonormal regularization during training. Note that the conversion to a BSConv-S model as described above is also suited for other architectures which use linear bottleneck blocks, such as EfficientNet [41] and MnasNet [40].
|
| 203 |
+
|
| 204 |
+
# 5. Experiments
|
| 205 |
+
|
| 206 |
+
We evaluate our approach of blueprint separable convolutions based on a variety of commonly used benchmark datasets. We provide a comprehensive analysis of the MobileNet family and their modified counterparts according to our findings in Section 4. Furthermore, we demonstrate how our approach can be used as a drop-in substitution for regular convolution layers in standard models like ResNets to drastically reduce the number of model parameters and operations, while keeping or even gaining accuracy.
|
| 207 |
+
|
| 208 |
+
To allow for a fair comparison, we train all models—including the baseline networks—with exactly the same training procedure.
|
| 209 |
+
|
| 210 |
+
# 5.1. CIFAR10 and CIFAR100
|
| 211 |
+
|
| 212 |
+
The CIFAR10/100 datasets [25] consist of 50k training and 10k test images of size $32\mathrm{px} \times 32\mathrm{px}$ and comprise 10 and 100 classes, respectively. As suggested in [13, 45], we train for 200 epochs for both datasets. We use SGD with momentum set to 0.9 and a weight decay of $10^{-4}$ . The initial learning rate is set to 0.1 and decayed by a factor of 0.1 at epochs 100, 150, and 180. Images are augmented by random horizontal flips and random shifts by up to 4 px to prevent models from overfitting [13, 45].
|
| 213 |
+
|
| 214 |
+
MobileNets. As first experiment, we evaluate our improvements of MobileNetV1-V3 [16, 35, 15] as derived in Section 4. To make MobileNets applicable to CIFAR, we removed the first and second pooling operation to obtain a final feature map of size $4 \times 4$ . With this modification, we achieve state-of-the-art performance for the baseline models (see Table 1).
|
| 215 |
+
|
| 216 |
+
As described in Section 4, we use BSConv-U for MobileNetV1 and BSConv-S for MobileNetV2/V3. For the BSConv-S models, we use a subspace compression ratio of $p = \frac{1}{6}$ to have exactly the same parameter count as the vanilla model. The weighting coefficient $\alpha$ for the orthonormal regularization loss was set to 0.01.
|
| 217 |
+
|
| 218 |
+
The results are shown in Table 1. We can state that all BSConv variants outperform their corresponding MobileNet baselines. For MobileNetV1, this can be explained by (i) the inversion of point- and depthwise convolutions and (ii) the absence of ReLU activations for the pointwise convolutions (see discussion in Section 4.1). For MobileNetsV2 and V3, the fact that BSConv-S always outperforms the baseline models clearly confirms the advantage of our proposed orthonormal regularization loss.
|
| 219 |
+
|
| 220 |
+
ResNets and WideResNets. In addition to the improvements with respect to MobileNets, we can use our BSCov approach as drop-in substitution for regular convolution layers in standard networks. In the following, we consider ResNets [13] and WideResNets [45] as two state-of-the-art models for the CIFAR datasets. In both cases, we use the
|
| 221 |
+
|
| 222 |
+
BSConv-U variant. We increase the depth and width factor of each BSConv model such that its parameter count matches the parameter count of the corresponding baseline model. We apply the same training protocol and augmentation techniques as described above.
|
| 223 |
+
|
| 224 |
+
In Table 2 we compare the original networks with their modified BSConv versions. For ResNets, we can improve accuracy by up to 3.1 percentage points for CIFAR100, while having slightly fewer parameters and computational costs. For WideResNets, we can gain accuracy of up to 2.1 percentage points for CIFAR100, while having fewer parameters and computational costs. This clearly shows the effectiveness of our approach as an drop-in substitution of regular convolution layers.
|
| 225 |
+
|
| 226 |
+
# 5.2. ImageNet
|
| 227 |
+
|
| 228 |
+
To assess the performance of BSConv models in large-scale classification scenarios, we conduct experiments on the ImageNet dataset (ILSVRC2012, [34]). It contains about 1.3M images for training and 50k images for testing which are drawn from 1000 object categories.
|
| 229 |
+
|
| 230 |
+
We employ a common training protocol and train for 100 epochs with an initial learning rate of 0.1 which is decayed by a factor of 0.1 at epochs 30, 60, and 90. We use SGD with momentum 0.9 and a weight decay of $10^{-4}$ . To allow for a fair comparison and to investigate the effect of our approach, we train own baseline models with exactly the same training setup as used for BSConv models. The images are resized such that their short side has a length of $256\mathrm{px}$ . We use the well-established Inception-like scale augmentation [39], horizontal flips, and color jitter [26].
|
| 231 |
+
|
| 232 |
+
MobileNets. As for the CIFAR experiments, we compare MobileNets to their corresponding BSConv variants. Again, BSConv-U is used for MobileNetV1, and BSConv-S is used for MobileNetV2/V3. The subspace compression ratio for BSConv-S is $p = \frac{1}{6}$ just like for the CIFAR experiments. The weighting coefficient $\alpha$ for the orthonormal regularization loss was set to 0.1.
|
| 233 |
+
|
| 234 |
+
The results are presented in Table 3. Again, it can be seen that the BSCov variants of MobileNets outperform their corresponding baseline models. However, the relative improvements are no longer as large as for the CIFAR experiments. This effect can be explained by the regularization impact of the dataset itself. Considering the MobileNetV3-large results, we note that even if the orthonormal regularization loss seems to be no longer effective, it has no negative influence on the training.
|
| 235 |
+
|
| 236 |
+
ResNets. As noted before, it is possible to directly substitute regular convolution layers in standard networks by BSConv variants. To this end, we analyze the effectiveness of our approach when applied to ResNets on large-scale image databases. For the baseline models, we use ResNet-10, ResNet-18, and ResNet-26. The BSConv vari
|
| 237 |
+
|
| 238 |
+
<table><tr><td rowspan="2">Network</td><td colspan="2">CIFAR10</td><td colspan="2">CIFAR100</td><td colspan="2">Stanford Dogs</td><td colspan="2">Stanford Cars</td><td colspan="2">Oxford Flowers</td></tr><tr><td>orig</td><td>ours</td><td>orig</td><td>ours</td><td>orig</td><td>ours</td><td>orig</td><td>ours</td><td>orig</td><td>ours</td></tr><tr><td>MobileNetV1 (x0.25)</td><td>90.4</td><td>91.6</td><td>67.5</td><td>69.8</td><td>42.8</td><td>49.1</td><td>64.6</td><td>74.0</td><td>59.2</td><td>68.0</td></tr><tr><td>MobileNetV1 (x0.5)</td><td>91.8</td><td>93.3</td><td>70.8</td><td>73.5</td><td>49.3</td><td>55.2</td><td>70.6</td><td>78.8</td><td>63.1</td><td>71.5</td></tr><tr><td>MobileNetV1 (x0.75)</td><td>92.7</td><td>94.3</td><td>72.2</td><td>74.5</td><td>51.4</td><td>57.9</td><td>72.9</td><td>80.0</td><td>63.1</td><td>70.8</td></tr><tr><td>MobileNetV1 (x1.0)</td><td>93.4</td><td>94.3</td><td>73.4</td><td>75.7</td><td>51.6</td><td>59.1</td><td>74.4</td><td>79.9</td><td>60.2</td><td>67.3</td></tr><tr><td>MobileNetV2 (x0.25)</td><td>89.6</td><td>90.1</td><td>65.6</td><td>68.9</td><td>42.0</td><td>46.8</td><td>65.2</td><td>69.9</td><td>44.9</td><td>51.9</td></tr><tr><td>MobileNetV2 (x0.5)</td><td>92.0</td><td>93.2</td><td>72.5</td><td>73.2</td><td>50.8</td><td>54.8</td><td>70.4</td><td>78.0</td><td>57.6</td><td>60.6</td></tr><tr><td>MobileNetV2 (x0.75)</td><td>93.1</td><td>93.9</td><td>73.2</td><td>75.0</td><td>53.5</td><td>59.0</td><td>73.4</td><td>82.0</td><td>55.7</td><td>71.5</td></tr><tr><td>MobileNetV2 (x1.0)</td><td>93.6</td><td>94.2</td><td>74.9</td><td>75.8</td><td>56.0</td><td>60.1</td><td>76.7</td><td>83.8</td><td>61.3</td><td>67.0</td></tr><tr><td>MobileNetV3-small (x0.35)</td><td>90.3</td><td>90.6</td><td>66.5</td><td>67.2</td><td>42.8</td><td>44.2</td><td>63.4</td><td>70.4</td><td>56.9</td><td>66.5</td></tr><tr><td>MobileNetV3-small (x0.5)</td><td>91.5</td><td>91.7</td><td>69.4</td><td>69.6</td><td>45.3</td><td>47.4</td><td>68.1</td><td>74.4</td><td>64.0</td><td>71.7</td></tr><tr><td>MobileNetV3-small (x0.75)</td><td>92.0</td><td>92.5</td><td>70.4</td><td>72.0</td><td>46.7</td><td>49.5</td><td>72.1</td><td>77.2</td><td>66.3</td><td>74.3</td></tr><tr><td>MobileNetV3-small (x1.0)</td><td>92.2</td><td>92.7</td><td>72.2</td><td>73.7</td><td>49.4</td><td>52.1</td><td>72.5</td><td>77.0</td><td>68.4</td><td>75.6</td></tr><tr><td>MobileNetV3-large (x0.35)</td><td>92.8</td><td>93.0</td><td>71.5</td><td>73.7</td><td>48.5</td><td>56.0</td><td>69.5</td><td>77.5</td><td>55.7</td><td>69.4</td></tr><tr><td>MobileNetV3-large (x0.5)</td><td>93.0</td><td>93.9</td><td>72.9</td><td>75.3</td><td>51.2</td><td>57.9</td><td>73.6</td><td>80.4</td><td>65.7</td><td>66.8</td></tr><tr><td>MobileNetV3-large (x0.75)</td><td>93.7</td><td>94.4</td><td>73.9</td><td>77.0</td><td>51.8</td><td>60.0</td><td>74.9</td><td>80.9</td><td>63.1</td><td>75.1</td></tr><tr><td>MobileNetV3-large (x1.0)</td><td>93.7</td><td>94.6</td><td>75.2</td><td>77.7</td><td>54.9</td><td>60.0</td><td>75.7</td><td>82.3</td><td>64.4</td><td>73.8</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 1. MobileNet results for various datasets. The columns 'orig' refer to the baseline MobileNet models. The columns 'ours' refer to BSConv-U for MobileNetV1 and BSConv-S for MobileNetV2/V3.
|
| 241 |
+
|
| 242 |
+
<table><tr><td rowspan="2">Network</td><td colspan="3">CIFAR10</td><td colspan="3">CIFAR100</td></tr><tr><td>Parameters</td><td>FLOPs</td><td>Accuracy</td><td>Parameters</td><td>FLOPs</td><td>Accuracy</td></tr><tr><td>ResNet-20 [13]</td><td>272.5K</td><td>41.3M</td><td>92.2</td><td>278.3K</td><td>41.3M</td><td>67.7</td></tr><tr><td>ResNet-110 (BSConv-U)</td><td>239.0K</td><td>41.1M</td><td>92.9</td><td>244.8K</td><td>41.1M</td><td>70.8</td></tr><tr><td>WideResNet-40-3 [45]</td><td>5.0M</td><td>735.0M</td><td>94.9</td><td>5.0M</td><td>735.0M</td><td>75.5</td></tr><tr><td>WideResNet-40-8 (BSConv-U)</td><td>4.2M</td><td>671.6M</td><td>95.2</td><td>4.3M</td><td>671.6M</td><td>77.6</td></tr></table>
|
| 243 |
+
|
| 244 |
+
Table 2. ResNets and WideResNets on CIFAR10 and CIFAR100. We increase the depth and width factor of each BSCov model such that its parameter count matches the parameter count of the corresponding baseline model.
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Network</td><td>Original</td><td>BSConv (ours)</td></tr><tr><td>MobileNetV1 (x0.25)</td><td>51.8</td><td>53.2</td></tr><tr><td>MobileNetV1 (x0.5)</td><td>63.5</td><td>64.6</td></tr><tr><td>MobileNetV1 (x0.75)</td><td>68.2</td><td>69.2</td></tr><tr><td>MobileNetV1 (x1.0)</td><td>70.8</td><td>71.5</td></tr><tr><td>MobileNetV2 (x1.0)</td><td>69.7</td><td>69.8</td></tr><tr><td>MobileNetV3-small (x1.0)</td><td>64.4</td><td>64.8</td></tr><tr><td>MobileNetV3-large (x1.0)</td><td>71.5</td><td>71.5</td></tr></table>
|
| 247 |
+
|
| 248 |
+
Table 3. MobileNets on ImageNet. BSConv-U is used for MobileNetV1, and BSConv-S is used for MobileNetV2/V3. Note that BSConv does not introduce additional parameters.
|
| 249 |
+
|
| 250 |
+
ants are ResNet-10, ResNet-18, ResNet-34, ResNet-68, and ResNet-102. Again, we use the same training protocol and augmentation techniques as described above.
|
| 251 |
+
|
| 252 |
+
The results are shown in Figure 6, split by parameter count and computational complexity. It can be seen that the BSConv-U variants of ResNets significantly outperform the baseline models. ResNet-10 and ResNet-68+BSConv-U, for instance, have similar parameter counts, while us
|
| 253 |
+
|
| 254 |
+
ing BSCnv leads to an accuracy gain of 9.5 percentage points. Another interesting example is ResNet-18 vs. ResNet-34+BSConv-U: both have a comparable accuracy, while the BSCnv model has only about one fifth of the baseline model parameter count.
|
| 255 |
+
|
| 256 |
+
# 5.3. Fine-grained Recognition
|
| 257 |
+
|
| 258 |
+
Apart from large-scale object recognition, we are interested in the task of fine-grained classification, as those datasets usually have no inherent regularization. The following experiments are conducted on three well-established benchmark datasets for fine-grained recognition, namely Stanford Dogs [23], Stanford Cars [24], and Oxford 102 Flowers [32]. We train all models from scratch, since parts of these datasets are a subset of ImageNet. In contrast to the ImageNet training protocol, we do not use aggressive data augmentation, since we observed that it severely affects model performance. We only augment data via random crops, horizontal flips, and random gamma transform.
|
| 259 |
+
|
| 260 |
+
We use the same training protocol for all three datasets. In particular, we use SGD with momentum set to 0.9 and a
|
| 261 |
+
|
| 262 |
+

|
| 263 |
+
Figure 6. ResNets on ImageNet. For the baseline models, we use ResNet-10/18/26. The BSCnv variants are ResNet-10/18/34/68/102.
|
| 264 |
+
|
| 265 |
+

|
| 266 |
+
|
| 267 |
+
weight decay of $10^{-4}$ . The initial learning rate is set to 0.1 and linearly decayed at every epoch such that it approaches zero after a total of 100 epochs.
|
| 268 |
+
|
| 269 |
+
MobileNets. We use the same model setup as for the CIFAR and ImageNet experiments discussed above. The results are shown in Table 1. Again, all BSConv models substantially outperform their baseline counterparts. In contrast to the CIFAR results, the margin is even larger. Therefore, the interpretation of the CIFAR results applies here as well.
|
| 270 |
+
|
| 271 |
+
Other Architectures. We further evaluate the effect of our approach for a variety of state-of-the-art models. We replace regular convolution layers in standard networks such as VGG [38] and DenseNet [17].
|
| 272 |
+
|
| 273 |
+
In Table 4 we can see that all models greatly benefit from the application of BSConv. Accuracy for BSConv-U can be improved by at least 2 percentage points, while having up to $8.5 \times$ less parameters and a substantial reduction of computational complexity. Most of the recently proposed model architectures utilize residual linear bottlenecks [35], which can also be easily equipped with our BSConv-S approach in the same way as for MobileNetV2/V3 (see Section 4.2). As can be seen in Table 4, our subspace model clearly outperforms the original EfficientNet-B0 [41] by 6.5 percentage points and MnasNet [40] by 5 percentage points with the same number of parameters and computational complexity. This shows the effectiveness of our proposed orthonormal regularization of the BSConv-S subspace transform.
|
| 274 |
+
|
| 275 |
+
Influence of the Orthonormal Regularization. To evaluate the influence of the proposed orthonormal regularization loss for BSCov-S models, we conduct an ablation study using MobileNetV3-large. In particular, several identical models are trained on the Stanford Dogs dataset using weighting coefficients $\alpha$ in the range of $10^{-5},\ldots ,10^{0}$
|
| 276 |
+
|
| 277 |
+
As can be seen in Figure 7, by regularizing the subspace components to be orthonormal, model performance can be substantially improved by over 5 percentage points. An optimum is reached for a weighting coefficient of $\alpha = 0.1$ . For smaller values, the influence of the regularization decreases, until it is no longer effective and converges towards the baseline performance. Larger values, however, decrease model performance since the optimization is mainly driven by rapidly reaching a solution with an orthonormal basis independently of creating a beneficial joint representation.
|
| 278 |
+
|
| 279 |
+
<table><tr><td>Network</td><td>Accuracy</td></tr><tr><td>VGG-16 (BN) [38]</td><td>60.5</td></tr><tr><td>VGG-16 (BN) (BSConv-U)</td><td>62.4</td></tr><tr><td>DenseNet-121 [17]</td><td>56.9</td></tr><tr><td>DenseNet-121 (BSConv-U)</td><td>59.4</td></tr><tr><td>Xception* [2]</td><td>59.6</td></tr><tr><td>Xception (BSConv-U)</td><td>64.3</td></tr><tr><td>EfficientNet-B0 [41]</td><td>54.7</td></tr><tr><td>EfficientNet-B0 (BSConv-S)</td><td>61.2</td></tr><tr><td>MnasNet [40]</td><td>54.8</td></tr><tr><td>MnasNet (BSConv-S)</td><td>59.8</td></tr></table>
|
| 280 |
+
|
| 281 |
+
Table 4. Results of various architectures and their BSConv counterparts for the Stanford Dogs dataset. BSConv-U CNNs have fewer parameters and a smaller computational complexity compared to their baseline models. BSConv-S CNNs have the same parameter count and computational complexity as their counterparts. * Commonly used implementation based on DSCs.
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
Figure 7. Influence of the orthonormal regularization loss on the accuracy for the BSConv-S variant of MobileNetV3-large (red solid line) on Stanford Dogs. The baseline MobileNetV3-large model without BSConv-S is indicated by the black dashed line.
|
| 285 |
+
|
| 286 |
+
# 6. Conclusions
|
| 287 |
+
|
| 288 |
+
We introduced blueprint separable convolutions (BSConv) as highly efficient building blocks for CNNs. Our formulation provided an interpretation and justification for depthwise separable convolutions. By using BSConv, we clearly and consistently improved established models such as MobileNets, MnasNets, EfficientNets, and ResNets. Code and trained models are available under https://github.com/zeiss-microscopy/BSCnv.
|
| 289 |
+
|
| 290 |
+
# References
|
| 291 |
+
|
| 292 |
+
[1] Han Cai, Ligeng Zhu, and Song Han. Proxylessnas: Direct neural architecture search on target task and hardware. arXiv preprint arXiv:1812.00332, 2018. 2
|
| 293 |
+
[2] François Chollet. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1251-1258, 2017. 2, 8
|
| 294 |
+
[3] Misha Denil, Babak Shakibi, Laurent Dinh, Marc'Aurelio Ranzato, and Nando De Freitas. Predicting parameters in deep learning. In Advances in neural information processing systems, pages 2148-2156, 2013. 2
|
| 295 |
+
[4] Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in neural information processing systems, pages 1269-1277, 2014. 2
|
| 296 |
+
[5] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 580-587, 2014. 1
|
| 297 |
+
[6] Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014. 2
|
| 298 |
+
[7] Jianbo Guo, Yuxi Li, Weiyao Lin, Yurong Chen, and Jianguo Li. Network decoupling: From regular to depthwise separable convolutions. arXiv preprint arXiv:1808.05517, 2018. 2, 5
|
| 299 |
+
[8] Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: efficient inference engine on compressed deep neural network. In 2016 ACM/IEEE 43rd Annual International Symposium on Computer Architecture (ISCA), pages 243-254. IEEE, 2016. 2
|
| 300 |
+
[9] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. 2
|
| 301 |
+
[10] Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pages 1135-1143, 2015. 2
|
| 302 |
+
[11] Babak Hassibi and David G Stork. Second order derivatives for network pruning: Optimal brain surgeon. In Advances in neural information processing systems, pages 164-171, 1993. 2
|
| 303 |
+
[12] Kaiming He and Jian Sun. Convolutional neural networks at constrained time cost. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 5353-5360, 2015. 2
|
| 304 |
+
[13] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016. 1, 3, 6, 7
|
| 305 |
+
[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In European
|
| 306 |
+
|
| 307 |
+
conference on computer vision, pages 630-645. Springer, 2016. 1, 3
|
| 308 |
+
[15] Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, et al. Searching for mobilenetv3. arXiv preprint arXiv:1905.02244, 2019. 2, 6
|
| 309 |
+
[16] Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andretto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. 1, 2, 4, 6
|
| 310 |
+
[17] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4700-4708, 2017. 8
|
| 311 |
+
[18] Yanping Huang, Yonglong Cheng, Dehao Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, and Zhifeng Chen. Gpipe: Efficient training of giant neural networks using pipeline parallelism. arXiv preprint arXiv:1811.06965, 2018. 1
|
| 312 |
+
[19] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Quantized neural networks: Training neural networks with low precision weights and activations. The Journal of Machine Learning Research, 18(1):6869-6898, 2017. 2
|
| 313 |
+
[20] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. 1, 3, 4
|
| 314 |
+
[21] Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014. 2
|
| 315 |
+
[22] Jonghoon Jin, Aysegul Dundar, and Eugenio Culurciello. Flattened convolutional neural networks for feedforward acceleration. arXiv preprint arXiv:1412.5474, 2014. 2
|
| 316 |
+
[23] Aditya Khosla, Nityananda Jayadevaprakash, Bangpeng Yao, and Li Fei-Fei. Novel dataset for fine-grained image categorization. In First Workshop on Fine-Grained Visual Categorization, IEEE Conference on Computer Vision and Pattern Recognition, Colorado Springs, CO, June 2011. 7
|
| 317 |
+
[24] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In 4th International IEEE Workshop on 3D Representation and Recognition (3dRR-13), Sydney, Australia, 2013. 7
|
| 318 |
+
[25] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, Cite-seer, 2009. 6
|
| 319 |
+
[26] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012. 1, 6
|
| 320 |
+
[27] Yann LeCun, Bernhard Boser, John S Denker, Donnie Henderson, Richard E Howard, Wayne Hubbard, and Lawrence D Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541-551, 1989. 1
|
| 321 |
+
|
| 322 |
+
[28] Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016. 2
|
| 323 |
+
[29] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. arXiv preprint arXiv:1810.05270, 2018. 2
|
| 324 |
+
[30] Jonathan Long, Evan Shelhamer, and Trevor Darrell. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3431-3440, 2015. 1
|
| 325 |
+
[31] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In Proceedings of the European Conference on Computer Vision (ECCV), pages 116-131, 2018. 2
|
| 326 |
+
[32] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian Conference on Computer Vision, Graphics & Image Processing, pages 722-729. IEEE, 2008. 7
|
| 327 |
+
[33] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pages 525-542. Springer, 2016. 2
|
| 328 |
+
[34] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211-252, 2015. 6
|
| 329 |
+
[35] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zh-moginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4510-4520, 2018. 2, 5, 6, 8
|
| 330 |
+
[36] Wenling Shang, Kihyuk Sohn, Diogo Almeida, and Honglak Lee. Understanding and improving convolutional neural networks via concatenated rectified linear units. In international conference on machine learning, pages 2217-2225, 2016. 2
|
| 331 |
+
[37] L Sifre and S Mallat. Rigid-motion scattering for image classification, 2014. PhD thesis, Ph.D. thesis, 2014. 1, 2, 5
|
| 332 |
+
[38] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. 3, 8
|
| 333 |
+
[39] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1-9, 2015. 6
|
| 334 |
+
[40] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V Le. Mnasnet: Platform-aware neural architecture search for mobile. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2820-2828, 2019. 2, 5, 8
|
| 335 |
+
[41] Mingxing Tan and Quoc V Le. Efficientnet: Rethinking model scaling for convolutional neural networks. arXiv preprint arXiv:1905.11946, 2019. 2, 5, 8
|
| 336 |
+
[42] Min Wang, Baoyuan Liu, and Hassan Foroosh. Factorized convolutional neural networks. In Proceedings of the IEEE
|
| 337 |
+
|
| 338 |
+
International Conference on Computer Vision, pages 545-553, 2017. 2
|
| 339 |
+
[43] Lingxi Xie and Alan Yuille. Genetic cnn. In Proceedings of the IEEE International Conference on Computer Vision, pages 1379-1388, 2017. 2
|
| 340 |
+
[44] Saining Xie, Ross Girshick, Piotr Dólár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1492-1500, 2017. 2
|
| 341 |
+
[45] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. 6, 7
|
| 342 |
+
[46] Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6848-6856, 2018. 2
|
| 343 |
+
[47] Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. Incremental network quantization: Towards lossless cnns with low-precision weights. arXiv preprint arXiv:1702.03044, 2017. 2
|
| 344 |
+
[48] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.2
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86dbcd7bcdd2a8c07a5cafd52deb59d5ecf6a8ac47d074dd13f45450226b0fbc
|
| 3 |
+
size 622398
|
rethinkingdepthwiseseparableconvolutionshowintrakernelcorrelationsleadtoimprovedmobilenets/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a27133d4fb514af305e214bfe7addd34808982282ef6ed678eb731910a11276
|
| 3 |
+
size 405985
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:481c52db094d6012093dc8d908b9d92a7464919ae81908da2baf64095f3db26c
|
| 3 |
+
size 78658
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:060d71201d12a8b2e2732401f4bc1540ff8b4b9656128ebbc87207eb532e5536
|
| 3 |
+
size 93865
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/152a81a5-de52-4478-89d2-495f940592c1_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38cf129a8d6b53c5066f3c5787fb164625c2047dc53ba9a2d2bd658396046f09
|
| 3 |
+
size 287977
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/full.md
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking Differentiable Search for Mixed-Precision Neural Networks
|
| 2 |
+
|
| 3 |
+
Zhaowei Cai
|
| 4 |
+
UC San Diego
|
| 5 |
+
|
| 6 |
+
zwcai@ucsd.edu
|
| 7 |
+
|
| 8 |
+
Nuno Vasconcelos
|
| 9 |
+
UC San Diego
|
| 10 |
+
|
| 11 |
+
nuno@ucsd.edu
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Low-precision networks, with weights and activations quantized to low bit-width, are widely used to accelerate inference on edge devices. However, current solutions are uniform, using identical bit-width for all filters. This fails to account for the different sensitivities of different filters and is suboptimal. Mixed-precision networks address this problem, by tuning the bit-width to individual filter requirements. In this work, the problem of optimal mixed-precision network search (MPS) is considered. To circumvent its difficulties of discrete search space and combinatorial optimization, a new differentiable search architecture is proposed, with several novel contributions to advance the efficiency by leveraging the unique properties of the MPS problem. The resulting Efficient differentiable MFixed-Precision network Search (EdMIPS) method is effective at finding the optimal bit allocation for multiple popular networks, and can search a large model, e.g. Inception-V3, directly on ImageNet without proxy task in a reasonable amount of time. The learned mixed-precision networks significantly outperform their uniform counterparts.
|
| 16 |
+
|
| 17 |
+
# 1. Introduction
|
| 18 |
+
|
| 19 |
+
Deep neural networks have state-of-the-art performance on computer vision tasks such as visual recognition [16, 26, 29, 30, 12], object detection [24, 19, 5], segmentation [11, 6], etc. However, their large computation and memory costs make them difficult to deploy on devices such as mobile phones, drones, autonomous robots, etc. Low-precision networks, which severely reduce computation and storage by quantizing network weights and activations to low-bit representations, promise a solution to this problem.
|
| 20 |
+
|
| 21 |
+
In the low-precision literature, all network weights and activations are usually quantized to the same bit-width [14, 23, 35, 4, 37, 34]. The resulting uniform low-precision networks have been preferred mostly because they are well supported by existing hardware, e.g. CPUs, FPGAs, etc. However, uniform bit allocation does not account for the individual properties of different filters, e.g. their location
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1. Differentiable architecture of the proposed mixed-precision network search module.
|
| 25 |
+
|
| 26 |
+
on the network, structure, parameter cardinality, etc. In result, it can lead to suboptimal performance for a given network size and complexity. Mixed-precision networks [1, 18, 17, 33, 32, 31, 9] address this limitation, enabling the optimization of bit-widths at the filter level. They are also becoming practically relevant, with the introduction of hardware that supports mixed-precision representations. For example, the NVIDIA $\mathrm{AMP}^1$ can choose between different floating point representations during training.
|
| 27 |
+
|
| 28 |
+
Nevertheless, the problem of optimizing bit allocation for a mixed-precision network is very challenging. Since a network of $L$ layers and $N$ candidate bit-widths can have $N^L$ different configurations, it is usually impossible to manually craft the optimal solution, and automatic bit allocation techniques are required. While this is well aligned with recent progresses in automatic neural architecture search (NAS) [38, 39, 3, 2, 20], there are several important differences between generic NAS and mixed-precision network search (MPS). First, NAS relies extensively on a proxy task to overcome the extremely high computational demands of searching for the optimal network architecture on a large dataset, such as ImageNet. It is common to search for a module block on a small dataset (such as CIFAR-10) and stack copies of this module as the final architecture. How
|
| 29 |
+
|
| 30 |
+
ever, this type of proxy task is very ineffective for MPS, due to 1) the layer importance difference, e.g. layers closer to input and output typically require higher bit-width; and 2) the (likely large) difference between optimal bit allocations for CIFAR-10 and ImageNet. Second, higher bit-widths usually lead (up to overfitting) to mixed-precision networks of higher accuracy. Hence, the sole minimization of classification loss usually has a trivial solution: to always select the candidate of highest bit-width. Third, while general NAS requires candidate operators that are heterogeneous in structure, e.g. convolution, skip connection, pooling, etc., MPS only involves homogeneous operators and very similar representations, e.g. convolutions of different bit-widths. These unique properties of MPS suggest the need for search techniques different than those of standard NAS.
|
| 31 |
+
|
| 32 |
+
In this work, we leverage the above properties to propose an efficient MPS framework based on several contributions. First, to enable search without proxies, the proposed framework is based on the differentiable search architecture of Figure 1, motivated by the popular DARTS [20] approach to generic NAS. Second, to avoid the trivial selection of the highest bit-width, learning is constrained by a complexity budget. The constrained optimization is reformulated as a Lagrangian, which is optimized to achieve the optimal trade-off between accuracy and complexity. Third, to circumvent the expensive second-order bi-level optimization of DARTS, a much simpler and effective optimization is proposed, where both architecture and network parameters are updated in a single forward-backward pass. Fourth, by exploiting the linearity of the convolution operator, the expensive parallel convolutions of Figure 1 are replaced by an efficient composite convolution, parameterized by the weighted sum of parallel weight tensors. This ensures the training complexity remains constant, independently of the size of search space, enabling the training of large networks.
|
| 33 |
+
|
| 34 |
+
Together, these contributions enable an efficient MPS procedure with no need for proxy tasks. This is denoted as Efficient differentiable MFixed-Precision network Search (EdMIPS) and can, for example, search the optimal mixed-precision Inception-V3 [30] of 93 filters, on ImageNet, in 8 GPU days. Extensive evaluations of EdMIPS on multiple popular networks of various sizes, accuracies, properties, etc., including AlexNet, ResNet, GoogLeNet and Inception-V3, show that it outperforms uniform low-precision solutions by a large margin. Beyond demonstrating the effectiveness of EdMIPS, this vast set of results also establishes solid baselines for the growing area of mixed-precision networks. To facilitate future research, all code is released at https://github.com/zhaoweicai/EdMIPS.
|
| 35 |
+
|
| 36 |
+
# 2. Related Work
|
| 37 |
+
|
| 38 |
+
Uniform low-precision: Low-precision networks have recently become popular to speed-up and reduce model size
|
| 39 |
+
|
| 40 |
+
of deep networks [14, 23, 35, 4, 37, 34, 36]. [14, 23] pioneered the joint binarization of network weights and activations, using a continuous approximation to overcome the non-differentiability of quantization. This, however, entailed a significant accuracy loss. [35, 4] later achieved accuracies much closer to those of full-precision networks. The HWGQ-Net [4] approximated the ReLU by a half-wave Gaussian quantizer, and proposed a clipped ReLU function to avoid the gradient mismatch. LQ-Net [34] and PACT [7] tried to learn the optimal step size and clipping function online, respectively, achieving better performance. However, these are all uniform low-precision networks.
|
| 41 |
+
|
| 42 |
+
Bit allocation: Optimal bit allocation has a long history in neural networks [15, 1, 18]. [15, 1] proposed the exhaustive checking of filter sensitivities on a per layer basis, following simulation-based word-length optimization methods from signal processing [28]. [18] proposed an analytical solution to fixed-point quantization that seeks the optimal bit-width allocations across network layers by optimizing signal-to-quantization-noise-ratio (SQNR). [17] frames precision allocation as the sequential allocation of bits of precision to the weights of one layer, until a bit budget is exhausted. These techniques precede NAS [38] and are less powerful, less applicable to practical network design, or both.
|
| 43 |
+
|
| 44 |
+
Neural architecture search: NAS is a popular approach to automated search of neural network architectures [38, 39, 3, 2, 20]. However, the large and discrete nature of the search space make NAS very expensive. [38] proposed a reinforcement learning (RL) technique that requires 1,000 GPU days to search for an architecture on CIFAR-10. Subsequent works have tried to reduce these extraordinary levels of computation. [3, 2, 10] start by learning a subnet, containing all possible module choices, and find the best subnet within this subnet. Differentiable architecture search (DARTS) [20] relaxes the discrete search space into a continuous one, enabling the optimization by gradient descent.
|
| 45 |
+
|
| 46 |
+
Mixed Precision: Recently, [33, 32, 31] formulated MPS as an instance of NAS. Some of these techniques [33, 31] are based on RL and thus not very efficient. [32] relies on DARTS but requires a proxy task, due to the linear memory/computation on the cardinality of candidate pool, and samples dozens of architectures during search. Compared to these approaches, EdMIPS is simpler, more efficient, effective, and applicable to a much broader set of networks.
|
| 47 |
+
|
| 48 |
+
# 3. Low-Precision Neural Network
|
| 49 |
+
|
| 50 |
+
In this section, we briefly review some preliminary concepts on low-precision neural network.
|
| 51 |
+
|
| 52 |
+
# 3.1. Deep Neural Network
|
| 53 |
+
|
| 54 |
+
Deep networks implement many filtering operators,
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
y = f (a (x)) = \mathbf {W} * a (x), \tag {1}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 2. The Inception module in GoogLeNet.
|
| 62 |
+
|
| 63 |
+
where filter $f$ is parameterized by weight tensor $\mathbf{W}$ (which can be expressed in full or low-precision), $x$ is the filter input, $a$ a non-linear activation function (e.g. ReLU in full-or HWGQ [4] in low-precision networks), $y$ the filter output and $*$ the convolution or matrix-vector multiplication operator. The $L$ network filters $F = \{f_{1}, f_{2}, \dots, f_{L}\}$ are learned by minimizing the classification risk $\mathcal{R}_E[F]$ defined by the cross-entropy loss function on a training set. The overall complexity of a neural network is mostly dictated by the complexity of (1). By quantizing both weights and activations to low bit-width, the expensive float-point operations of (1) can be replaced by efficient bit operations (e.g. XNOR and bit-count), substantially reducing model size and computation [23, 4].
|
| 64 |
+
|
| 65 |
+
# 3.2.HWGQ Network
|
| 66 |
+
|
| 67 |
+
A mixed-precision network can have arbitrary weight and activation bit-widths. Many quantization techniques have been proposed [14, 23, 35, 4, 37, 34]. In this work, we start from the HWGQ-Net [4], one of the state-of-the-art low-precision networks in the literature. Although the HWGQ-Net only uses binary weights, its activation quantization technique can be used to produce weights of higher precision. This starts by pre-computing the optimal quantizer
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
Q (x) = q _ {i}, \quad i f \quad x \in \left(t _ {i}, t _ {i + 1} \right] \tag {2}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
for a Gaussian distribution of zero mean and unit variance, using Lloyd's algorithm [21, 22]. Since the network weight distributions are always close to zero-mean Gaussians of different variance $\sigma^2$ , the optimal quantization parameters can then be easily obtained by rescaling the pre-computed quantization parameters [27], i.e. using the quantizer
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
Q (x) = \sigma q _ {i}, \quad i f \quad x \in \left(\sigma t _ {i}, \sigma t _ {i + 1} \right]. \tag {3}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
To be hardware-friendly, all quantizers are uniform.
|
| 80 |
+
|
| 81 |
+
# 3.3. Filter Sensitivity
|
| 82 |
+
|
| 83 |
+
The allocation of the same bit-width to all network layers, known as uniform bit allocation, can be very suboptimal, since different filters have different bit-width sensitivities. Figure 3 illustrates this point for the popular Inception
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 3. The filter sensitivity in the Inception module.
|
| 87 |
+
|
| 88 |
+
module of GoogLeNet [29] whose architecture is shown in Figure 2. This has four parallel branches and six learnable filters in total. To check their sensitivities, we started by training a uniform 2-bit GoogLeNet baseline on ImageNet. We then trained another model, changing a single filter of the Inception module to 4-bit, throughout the network. This experiment was repeated for all six filters. The changes in accuracy and computation of the whole network, with respect to the baseline, reflect the differences in bit-width sensitivity of the six filters. Figure 3 shows that "ch1x1" is the most sensitive filter, as the bit-width increase improves network accuracy by more than $2\%$ with only a $25\%$ computation increase. "ch3x3red" and "ch5x5" have computation similar to "ch1x1" but are less sensitive, especially "ch5x5". On the other hand, the computation of "ch3x3" skyrockets to $125\%$ for a much smaller gain of $1.3\%$ in accuracy, which is close to that of the inexpensive "ch3x3red" and "poolProj". Finally, "ch5x5red" has minor changes in accuracy and computation. These observations suggest that mixed-precision networks could substantially outperform uniform networks.
|
| 89 |
+
|
| 90 |
+
# 4. Mixed-Precision Network
|
| 91 |
+
|
| 92 |
+
In a mixed-precision network, bit-width varies filter by filter. The problem is to search a candidate pool $\mathcal{B}$ of bit-widths for the optimal bit-width for each filter in the network. This can be implemented by reformulating (1) as
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
y = \sum_ {i = 1} ^ {n _ {f}} o _ {i} ^ {\alpha} f _ {i} \left(\sum_ {j = 1} ^ {n _ {a}} o _ {j} ^ {\beta} a _ {j} (x)\right), \tag {4}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\begin{array}{l} \text {s . t .} \sum o _ {i} ^ {\alpha} = 1, \sum o _ {j} ^ {\beta} = 1, o ^ {\alpha}, o ^ {\beta} \in \{0, 1 \}, \end{array}
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $n_f$ and $n_a$ are the cardinalities of bit-width pool $\mathcal{B}^{\alpha}$ for weights and $\mathcal{B}^{\beta}$ for activations. The goal is to find the optimal bit-width configuration $\{o_{\alpha}^{*}, o_{\beta}^{*}\}$ for the whole network. Since the search space is discrete and large, it is usually infeasible to hand-craft the optimal solution.
|
| 103 |
+
|
| 104 |
+
# 4.1. Complexity-Aware Learning
|
| 105 |
+
|
| 106 |
+
In general, networks of higher bit-width have higher accuracy. Hence, the simple minimization of classification loss has the trivial solution of always selecting the highest possible bit-width. To avoid this, we resort to complexity-aware learning, seeking the best trade-off between classification accuracy and complexity. This is a constrained optimization problem, where classification risk $\mathcal{R}_E[F]$ is minimized under a bound on complexity risk $R_C[F]$ ,
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
F ^ {*} = \arg \min _ {F} R _ {E} [ F ] \quad \text {s . t .} \quad R _ {C} [ F ] < \gamma , \tag {5}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
which can be solved by minimizing the Lagrangian
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\mathcal {L} [ F ] = \mathcal {R} _ {E} [ F ] + \eta \mathcal {R} _ {C} [ F ], \tag {6}
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $\eta$ is a Lagrange multiplier that only depends on $\gamma$ . Under this constrained formulation, the optimal bit allocation is no longer trivial. The complexity is user-defined, and could address computation, memory, model size, energy, running speed, or other aspects. It has the form
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\mathcal {R} _ {C} [ F ] = \sum_ {f \in F} c (f). \tag {7}
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
where $c(f)$ is the cost of filter $f$ .
|
| 125 |
+
|
| 126 |
+
# 4.2. Model Complexity
|
| 127 |
+
|
| 128 |
+
A popular practice is to characterize complexity by the number of floating-point operations (FLOPs) of filter $f$ ,
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
c (f) = | f | w _ {x} h _ {x} / s ^ {2}, \tag {8}
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
where $|\cdot|$ denotes cardinality, $w_{x}$ and $h_x$ are the spatial width and height of the filter input $x$ , and $s$ the filter stride. In low-precision networks, where filter $f$ and activation function $a$ have low bit-width, this cost can be expressed in bit operations (BitOps),
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
c (f) = b _ {f} b _ {a} | f | w _ {x} h _ {x} / s ^ {2}, \tag {9}
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
where $b_{f}$ and $b_{a}$ are the bit-widths of weights and activations, respectively. Since only relative complexities matter for the search, the overall network complexity is normalized by the value of (8) for the first layer to search.
|
| 141 |
+
|
| 142 |
+
# 4.3. Relaxed Mixed-Precision Network
|
| 143 |
+
|
| 144 |
+
The binary nature of the search space of $\{o_{\alpha}, o_{\beta}\}$ makes the minimization of (6) a complex combinatorial problem. As suggested by [20], a much simpler optimization is possible by relaxing the binary search space into a continuous one, through the reformulation of (4) as
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
y = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} f _ {i} \left(\sum_ {j = 1} ^ {n _ {a}} \pi_ {j} ^ {\beta} a _ {j} (x)\right), \tag {10}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
$$
|
| 151 |
+
\mathrm {s . t .} \sum \pi_ {i} ^ {\alpha} = 1, \sum \pi_ {j} ^ {\beta} = 1, \pi^ {\alpha}, \pi^ {\beta} \in [ 0, 1 ].
|
| 152 |
+
$$
|
| 153 |
+
|
| 154 |
+
The constraints $\pi^{\alpha},\pi^{\beta}\in [0,1]$ can then be eliminated by introducing a set of real configuration parameters $\{\alpha ,\beta \}$ and defining
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
\pi_ {i} ^ {\alpha} = \frac {\exp (\alpha_ {i})}{\sum_ {k} \exp (\alpha_ {k})}, \quad \pi_ {j} ^ {\beta} = \frac {\exp (\beta_ {j})}{\sum_ {k} \exp (\beta_ {k})}. \tag {11}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
This leads to the architecture of Figure 1. The complexity measure of (9) is finally defined as
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
c (f) = E \left[ b _ {f} \right] E \left[ b _ {a} \right] | f | w _ {x} h _ {x} / s ^ {2}, \tag {12}
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
where
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
E \left[ b _ {f} \right] = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} b _ {f _ {i}}, \quad E \left[ b _ {a} \right] = \sum_ {j = 1} ^ {n _ {a}} \pi_ {j} ^ {\beta} b _ {a _ {j}} \tag {13}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
are the bit-width expectations for weights and activations, respectively. This relaxation enables learning by gradient descent in the space of continuous parameters $\{\alpha ,\beta \}$ which is much less expensive than combinatorial search over the configurations of $\{o_{\alpha},o_{\beta}\}$
|
| 173 |
+
|
| 174 |
+
# 4.4. Efficient Composite Convolution
|
| 175 |
+
|
| 176 |
+
While efficient, differentiable architecture search is not without limitations. A common difficulty for general NAS is the linear increase in computation and memory with the search space dimension [20, 2]. If there are ten candidate operators for a layer, they all need to be applied to the same input, in parallel. This makes the search impossible for large networks, e.g. the ResNet-50, Inception-V3, etc., and is usually addressed by resorting to a proxy task.
|
| 177 |
+
|
| 178 |
+
Unlike general NAS, where the candidate operators are heterogeneous [38, 20, 2], e.g. convolution, skip connection, pooling, etc., the candidate operators of MPS are homogeneous, namely replicas of the same filter with different bit-widths. This property can be exploited to avoid the expensive parallel operations. The weighted sum of parallel convolutions, as shown in Figure 1, given the weighted activation sum $\bar{a}(x) = \sum_{j=1}^{n_a} \pi_j^\beta a_j(x)$ , can be rewritten as
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\begin{array}{l} y = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} f _ {i} (\bar {a} (x)) = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} \left(Q _ {i} \left(\mathbf {W} _ {i}\right) * \bar {a} (x)\right) \\ = \left(\sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} (\mathbf {W} _ {i})\right) * \bar {a} (x) = \bar {f} (\bar {a} (x)) \tag {14} \\ \end{array}
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
where $\bar{f}$ is the composite filter parameterized by weight tensor
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
\overline {{\mathbf {W}}} = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} \left(\mathbf {W} _ {i}\right). \tag {15}
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
Hence, rather than $n_f$ convolutions between the different $Q_{i}(\mathbf{W}_{i})$ and the common activation $\bar{a}(x)$ , the architecture
|
| 191 |
+
|
| 192 |
+
of Figure 1 only requires one convolution with the composite filter of (15). This enables constant training time, independently of the number of bit-widths considered per filter, and the training of large networks become feasible.
|
| 193 |
+
|
| 194 |
+
In (15), each candidate operator has its own weight tensor $\mathbf{W}_i$ . During training, the gradients arriving at a layer are distributed to the different branches. In result, filters of low probability $\pi_i^\alpha$ receive few gradient updates and could be under-trained. For example, a branch of $\pi^{\alpha} = 0.1$ will only receive $10\%$ of the overall gradients. A more robust solution is to share weights across all filters by making $\mathbf{W}_i = \mathbf{W}$ and redefining the composite filter of (15) as
|
| 195 |
+
|
| 196 |
+
$$
|
| 197 |
+
\overline {{\mathbf {W}}} = \sum_ {i = 1} ^ {n _ {f}} \pi_ {i} ^ {\alpha} Q _ {i} (\mathbf {W}). \tag {16}
|
| 198 |
+
$$
|
| 199 |
+
|
| 200 |
+
In this case, while the gradients are still distributed to each branch, they are all accumulated to update the universal weight tensor $\mathbf{W}$ . This eliminates the potential for underfitting, and the size of search model can also remain constant independent of the search space. Note that this weight sharing requires a universal $\mathbf{W}$ representative enough for multiple quantizers of different bit-widths. While this has not been shown in the low-precision network literature [35, 4, 37, 34], it is less of a problem for MPS since 1) the parallel branches learn similar and potentially redundant representations at different bit-widths; 2) what matters for MPS is to optimize the bit allocation, not the weight tensor.
|
| 201 |
+
|
| 202 |
+
# 4.5. Search Space
|
| 203 |
+
|
| 204 |
+
The design of the search space is critical for NAS. Unlike NAS, which has an open-set search space, the search space of MPS is well-defined and limited to a relatively small number of possibilities per filter and activation, e.g. bit-widths in $\{1,\ldots ,32\}$ . Previous works [32, 10] have coupled weight and activation bit-widths, e.g. defining pairs (1,4), (2,4), etc. This results in $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ parallel branches per filter. To reduce complexity, [32, 10] manually pruned $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ to a small subset, e.g. six pairs, which is suboptimal. Instead, we decouple weight and activation bit-widths, using $|\mathcal{B}^{\alpha}|$ and $|\mathcal{B}^{\beta}|$ parallel branches for weight and activations, respectively, as shown in Figure 1. This decoupling maintains the search space at full size $|\mathcal{B}^{\alpha}| \times |\mathcal{B}^{\beta}|$ , but significantly reduces computation and memory. Since 1) many works [34, 7] have shown that a bit-width of 4 suffices for very good performance; 2) very low-precision networks, e.g. using 2 bits, are the most challenging to develop; and 3) 1-bit activations are usually insufficient for good performance [14, 23, 35, 4], we use a search space with
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
\mathcal {B} ^ {\alpha} = \{1, 2, 3, 4 \}, \quad \mathcal {B} ^ {\beta} = \{2, 3, 4 \}. \tag {17}
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
# 4.6. Learning
|
| 211 |
+
|
| 212 |
+
This leads to the learning procedure for MPS. EdMIPS optimizes the Lagrangian of (6) with respect to the architecture parameters $\{\alpha, \beta\}$ of (11) and the weight tensors $\mathbf{W}$ of (16) over the search space of (17). Both $\mathbf{W}$ and $\{\alpha, \beta\}$ are learned by gradient descent. This is modeled as a bilevel optimization problem [8] in [20]. However, this is too complex, even impractical, for searching large models (e.g. ResNet and Inception-V3) on large datasets (e.g. ImageNet) without a proxy task. To avoid this, we consider two more efficient optimization approaches. The first, which is used by default, is vanilla end-to-end backpropagation. It treats the architecture $\{\alpha, \beta\}$ and filter $\mathbf{W}$ parameters equally, updating both in a single forward-backward pass. The second is an alternating optimization of two steps: 1) fix $\{\alpha, \beta\}$ and update $\mathbf{W}$ ; 2) fix $\mathbf{W}$ and update $\{\alpha, \beta\}$ . It has twice the complexity of vanilla backpropagation. Our experiments show that these strategies are efficient and effective for MPS.
|
| 213 |
+
|
| 214 |
+
# 4.7. Architecture Discretization
|
| 215 |
+
|
| 216 |
+
Given the optimal architecture parameters $\{\alpha^{*},\beta^{*}\}$ , the mixed-precision network must be derived by discretizing the soft selector variables $\pi$ of (11) into the binary selectors $o$ required by (4). Two strategies are explored.
|
| 217 |
+
|
| 218 |
+
The first is a "winner-take-all" approach, used by default, in which only the branch with the highest $\pi$ is selected and the others removed, by defining
|
| 219 |
+
|
| 220 |
+
$$
|
| 221 |
+
o _ {i} ^ {*} = \left\{ \begin{array}{l l} 1, & \text {i f} i = \arg \max _ {j} \pi_ {j}, \\ 0, & \text {o t h e r w i s e .} \end{array} \right. \tag {18}
|
| 222 |
+
$$
|
| 223 |
+
|
| 224 |
+
This results in a deterministic architecture, which is not affected by the details of the distribution of $\pi$ , only the relative ranking of its values.
|
| 225 |
+
|
| 226 |
+
The second is a sampling strategy. Since each $\pi$ is a categorical distribution, hard selectors $o_i$ can be sampled from a multinomial distribution
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
O \sim \text {M u l t i n o m i a l} (n, \pi). \tag {19}
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
with one trial $n = 1$ . This defines a random architecture with expected BitOps as defined in (13). The user can then sample multiple architectures and choose the one with the best trade-off between accuracy and complexity, as in [32]. However, in our experience, the variance of this random architecture is very large, making it very inefficient to find the best network configuration. Alternatively, it is possible to sample from (19) with multiple trials, e.g. $n = 50$ , and choose the architecture with the highest counts. This produces architectures closer to that discovered by "winnertake-all", converging to the latter when $n \to \infty$ .
|
| 233 |
+
|
| 234 |
+
# 5. Experiments
|
| 235 |
+
|
| 236 |
+
EdMIPS was evaluated with ImageNet [25], top-1 and top-5 classification accuracy. Previous MPS works [32, 31]
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 4. Architecture evolution of ResNet-18 during search. The curves shown per layer index represent the probabilities of the two bit-widths. Layers indexes are as in PyTorch, where 7/12/17 are residual connections. Left: $\eta = 0.001$ in (6). Right: $\eta = 0.002$ .
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
|
| 245 |
+

|
| 246 |
+
|
| 247 |
+
used ResNet-18 or MobileNet [13]. However, these are relatively simple networks, that stack replicas of a single module block, and for which heuristics can be used to hand-craft nearly optimal bit allocation. For example, the depth-wise layers of MobileNet should receive more bits than the pointwise ones. On the other end of the spectrum, GoogLeNet [29] and Inception-V3 [30] are complex combinations of different modules and too complicated to optimize by hand. Since this is the case where MPS is more useful, beyond the small and simple AlexNet and ResNet-18, we have also tested EdMIPS on larger and more complicated ResNet-50, GoogLeNet and Inception-V3. These experiments establish broad baselines for future studies in MPS.
|
| 248 |
+
|
| 249 |
+
# 5.1. Implementation Details
|
| 250 |
+
|
| 251 |
+
All experiments, followed standard ImageNet training on PyTorch $^2$ , with the following exceptions. For simplicity, all auxiliary losses were removed from the GoogLeNet and Inception-V3. EdMIPS used a learning rate of 0.1 for network parameters $\mathbf{W}$ , and 0.01 for architecture parameters $\{\alpha, \beta\}$ . All network parameters were initialized as usual, and all architecture parameters were set to 0.01, treating all candidates equally. The search model was trained for 25 epochs, with learning rates decayed by 10 time at every 10 epochs. After training the search model, the classification model was derived by the "winner-take-all" strategy of Section 4.7. Next, the classification models were trained for 50 (95) epochs, with learning rate decayed by 10 times at every 15 (30) epochs, to allow exploration (the final comparison with the state-of-the-art). All models were trained from scratch. For network quantization, we followed [4] but enabled scaling in all BatchNorm layers.
|
| 252 |
+
|
| 253 |
+
# 5.2. Architecture Evolution
|
| 254 |
+
|
| 255 |
+
Sometimes, it is mysterious why and how an architecture is found by NAS. Due to the differentiability of Ed
|
| 256 |
+
|
| 257 |
+
MIPS, the soft architecture evolves gradually during search, as shown in Figure 4. For clarity, we only show the evolution of a ResNet-18 with search space of $\{2,4\}$ bit. Some interesting observations follow from the left part of Figure 4. First, the use of (6) with complexity penalty $\eta = 0.001$ is shown to avoid the trivial solution (highest bit-width always selected). Candidates of lower bit-width are selected for many layers. Second, nearly all layers choose 2 bits in the early epochs, where the network parameters are not yet trained and the complexity penalty dominates. As network parameters become stronger, the error penalty is more likely to overcome the complexity penalty, and 4-bit candidates start to be selected. Third, weights and activations can have different optimal bit allocations. For example, 4-bits are selected for the weights of layers $5/6/8$ , whose activations are assigned 2-bits. Fourth, since the complexity penalty of residual connections (layers $7/12/17$ ) is much smaller than $3 \times 3$ convolutions, they are allocated 4-bits early on. Finally, both candidates are equally strong for some layers, e.g. $9/13$ for weights and 1 for activations. In these cases, the model is not confident on which candidate to choose.
|
| 258 |
+
|
| 259 |
+
# 5.3. Effect of Complexity Constraint
|
| 260 |
+
|
| 261 |
+
When a stronger complexity constraint is enforced, lower bit-widths are more likely to be chosen. This can be observed by comparing the left $(\eta = 0.001)$ and right $(\eta = 0.002)$ of Figure 4. For layers preferring lower bit-width, this preference is reinforced by stronger $\eta$ . For example, in layers 1-4 for weights and 2-6 for activations, EdMIPS converges to lower bit-widths much faster. For layers preferring lower bit-width at the start but switching to more bits at the end, e.g. 5/10/15 for weights and 10/15/16 for activations, more epochs are required to reach the crossing point. The stronger complexity constraint can also change the final decisions. For example, for weights at layers 6/8/11 and activations at layers 18-19, the decisions switch from 4- to 2-bit. These results show that the optimal architecture depends on the complexity constraint.
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
Figure 5. Comparison of the uniform HWGQ-Net and the EdMIPS network. The x-axis, indicating BitOps, is normalized to the scale of bit-width, which is actually in log-scale.
|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
|
| 272 |
+

|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
Figure 6. EdMIPS bit allocation for AlexNet, ResNet-18 and GoogLeNet.
|
| 278 |
+
|
| 279 |
+

|
| 280 |
+
|
| 281 |
+
# 5.4. Comparison to Uniform Bit Allocation
|
| 282 |
+
|
| 283 |
+
Figure 5 shows that EdMIPS networks substantially outperform the uniform HWGQ-Net versions of AlexNet, ResNet-18/50, GoogLeNet, and Inception-V3. Note that the HWGQ-Net has fairly high baselines. Since the learned model is bounded by the weakest (W1A2) and strongest (W4A4) models in the search space, the improvements are small on both ends, but substantial in between. For example, the EdMIPS models improve the uniform 2-bit HWGQ-Net by about 0.9 point for AlexNet, 0.8 point for ResNet-18, 2.8 points for GoogLeNet, 1.5 points for ResNet-50 and 1.7 points for Inception-V3. This is strong evidence for the effectiveness of EdMIPS.
|
| 284 |
+
|
| 285 |
+
# 5.5. Learned Optimal Bit Allocation
|
| 286 |
+
|
| 287 |
+
To understand what EdMIPS learns, we visualize the optimal bit allocation of each layer in Figure 6, for AlexNet, ResNet-18 and GoogLeNet, with roughly the same BitOps as the uniform 2-bit models. On AlexNet, whose FC layers are lighter and closer to the output, they receive higher bitwidth. The layers closer to the input, e.g. 1st for weights and 2nd for activations, also receive relatively higher bitwidth. On ResNet-18, the cheap residual connections usually receive the largest bit-width. The first block of layers in each stage, e.g. 5-6th, 10-11th, and 15-16th, also has relatively higher bit-width. GoogLeNet is a more complicated network, and so is its bit allocation. The most expensive "ch3x3" layers frequently receive the lowest bit-width, but not always. Higher bit-widths are allocated to "ch3x3" layers closer to the output. On the other hand, "ch5x5red" is very cheap, and usually receives the highest bit-width. Although "ch1x1" is the second most expensive filter, it is frequently allocated higher bit-width. This reflects its highest sensitivity, shown in Figure 3. Finally, "ch3x3red" and
|
| 288 |
+
|
| 289 |
+
"ch5x5" have similar computation, but the former is much more sensitive. Hence, it receives higher bit-width allocations. Note the difficulty of hand-crafting the optimal bit allocation for this complex network.
|
| 290 |
+
|
| 291 |
+
# 5.6. Ablation Studies
|
| 292 |
+
|
| 293 |
+
ResNet-18 is used for ablation experiments. The default EdMIPS model is denoted as "mixed" in Figure 7 (a).
|
| 294 |
+
|
| 295 |
+
Relaxation: Figure 7 (a) shows that the relaxed models of (10) (trained for 50 epochs), only have slightly higher accuracy than their discretized counterparts, i.e. architecture discretization has little performance cost.
|
| 296 |
+
|
| 297 |
+
Filter Sharing vs. Non-Sharing: In the default model, all parallel candidates share the weight tensor of (16). Figure 7 (a) shows that this is as effective as learning the individual weight tensors of (15). This is also confirmed by the comparison of their relaxed counterparts, indicating that the unshared parallel branches are somewhat redundant.
|
| 298 |
+
|
| 299 |
+
Sampling: Four architectures were sampled from the architecture distribution of the model close to 2-bit of Figure 5, using both the categorical and multinomial sampling discussed in Section 4.7, with close BitOps to the uniform 2-bit model. Figure 7 (a) shows that categorical sampling architectures have large accuracy variance, sometimes even underperforming the uniform baseline. Better performance and lower variance are obtained with multinomial sampling.
|
| 300 |
+
|
| 301 |
+
Learning Strategy: Figure 7 (a) shows that there is little difference in accuracy between the default model, which uses single pass optimization, and a model trained with the alternating optimization of Section 4.6. Since the latter has twice the learning complexity, single pass optimization is used by default on EdMIPS.
|
| 302 |
+
|
| 303 |
+
Convergence Speed: Figure 7 (b) summarizes the evolu
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
(a)
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
(b)
|
| 310 |
+
Figure 7. (a) ablation experiments on ResNet-18; (b) complexity evolution on ResNet-18 (dashed lines are expected complexities of (13)); (c) savings by efficient composite convolution of Section 4.4.
|
| 311 |
+
|
| 312 |
+

|
| 313 |
+
(c)
|
| 314 |
+
|
| 315 |
+
tion of network complexity as a function of $\eta$ , for the five ResNet-18 models of Figure 5. The search usually converges quickly, with minor changes in architecture complexity after the 15th epoch. The accuracy of the corresponding classification models ("models at 15th epoch") is shown in Figure 7 (a). They are comparable to those found after 25 search epochs.
|
| 316 |
+
|
| 317 |
+
Search Space: Figure 7 (a) shows that no gain occurs over the uniform model when a coarser search space ( $\{1,4\}$ bit for weight and $\{2,4\}$ bit for activation) is used.
|
| 318 |
+
|
| 319 |
+
Efficient Composite Convolution: Figure 7 (c) summarizes the practical savings achieved with the efficient composite convolution of Section 4.4, with respect to the vanilla parallel convolutions, in terms of computation, memory and model size, for the search space of (17). The weight sharing of (16) reduces model size by a factor of almost four. Replacing the parallel convolutions results in $30 - 50\%$ savings in computation and $20 - 40\%$ in memory. These savings make MPS much more practical. For example, the time needed to search for the ResNet-18 on 2 GPUs decreased from 35 to 18 hours, and the search for the Inception-V3 can be performed with 8 GPUs and 12GB of memory. In result, the complete search (e.g. 25 epochs) only increases by $\sim 45\%$ the training complexity of a uniform low-precision ResNet-18 network. It should be mentioned that these practical savings are nevertheless smaller than theoretically predicted by (14), due to other practical cost bottlenecks, e.g. weight/activation quantization, parallelization efficiency in GPUs, network architecture, etc. Better implementations of EdMIPS could enable further savings.
|
| 320 |
+
|
| 321 |
+
# 5.7. Comparison to state-of-the-art
|
| 322 |
+
|
| 323 |
+
Table 1 compares EdMIPS models to state-of-the-art uniform low-precision networks, including HWGQ-Net [4] and LQ-Net [34]. EdMIPS models, with similar BitOps to the 2-bit uniform models, achieve top performance for all base networks. Compared to the uniform HWGQ-Net, the gains are particularly large (3 points) for the complicated
|
| 324 |
+
|
| 325 |
+
Table 1. Comparison to the state-of-the-art.
|
| 326 |
+
|
| 327 |
+
<table><tr><td colspan="2">Model
|
| 328 |
+
bit-width</td><td>Ref
|
| 329 |
+
32</td><td>Full
|
| 330 |
+
32</td><td>HWGQ
|
| 331 |
+
2</td><td>LQ [34]
|
| 332 |
+
2</td><td>EdMIPS
|
| 333 |
+
~2</td></tr><tr><td rowspan="2">AlexNet</td><td>Top-1</td><td>57.1</td><td>59.2</td><td>58.6</td><td>57.4</td><td>59.1</td></tr><tr><td>Top-5</td><td>80.2</td><td>81.7</td><td>80.9</td><td>80.1</td><td>81.0</td></tr><tr><td rowspan="2">ResNet-18</td><td>Top-1</td><td>69.6</td><td>70.2</td><td>65.1</td><td>64.9</td><td>65.9</td></tr><tr><td>Top-5</td><td>89.2</td><td>89.5</td><td>86.2</td><td>85.9</td><td>86.5</td></tr><tr><td rowspan="2">GoogLeNet</td><td>Top-1</td><td>73.3</td><td>72.7</td><td>64.8</td><td>-</td><td>67.8</td></tr><tr><td>Top-5</td><td>91.3</td><td>91.0</td><td>86.3</td><td>-</td><td>88.0</td></tr><tr><td rowspan="2">ResNet-50</td><td>Top-1</td><td>76.0</td><td>76.2</td><td>70.6</td><td>71.5</td><td>72.1</td></tr><tr><td>Top-5</td><td>93.0</td><td>93.0</td><td>89.8</td><td>90.3</td><td>90.6</td></tr><tr><td rowspan="2">Inception-V3</td><td>Top-1</td><td>77.5</td><td>77.3</td><td>71.0</td><td>-</td><td>72.4</td></tr><tr><td>Top-5</td><td>93.6</td><td>93.6</td><td>89.9</td><td>-</td><td>90.7</td></tr></table>
|
| 334 |
+
|
| 335 |
+
GoogLeNet, a compact model very averse to quantization. On the other hand, for the simplest model (AlexNet), the 2-bit EdMIPS model is already equivalent to the full precision network. These results show that EdMIPS is an effective MPS solution. Since 1) [31] only experiments on MobileNet and uses latency as complexity indicator; 2) [32] mainly focuses on ResNet-18/34 of higher bit-widths, e.g. 4-bit; 3) neither of these works have released the code needed to reproduce their results, we are unable to compare to them. We believe that the release of EdMIPS code and the solid baselines now established by Table 1 will enable more extensive comparisons to future work in MPS.
|
| 336 |
+
|
| 337 |
+
# 6. Conclusion
|
| 338 |
+
|
| 339 |
+
We have proposed EdMIPS, an efficient framework for MPS based on a differentiable architecture. EdMIPS has multiple novel contributions to the MPS problem. It can search large models, e.g. ResNet-50 and Inception-V3, directly on ImageNet, at affordable costs. The learned mixed-precision models of multiple popular networks substantially outperform their uniform low-precision counterparts and establish a solid set of baselines for future MPS research.
|
| 340 |
+
|
| 341 |
+
Acknowledgment This work was partially funded by NSF awards IIS-1637941, IIS-1924937, and NVIDIA GPU donations.
|
| 342 |
+
|
| 343 |
+
# References
|
| 344 |
+
|
| 345 |
+
[1] Sajid Anwar, Kyuyeon Hwang, and Wonyong Sung. Fixed point optimization of deep convolutional neural networks for object recognition. In ICASSP, pages 1131-1135, 2015. 1, 2
|
| 346 |
+
[2] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc V. Le. Understanding and simplifying one-shot architecture search. In ICML, pages 549-558, 2018. 1, 2, 4
|
| 347 |
+
[3] Andrew Brock, Theodore Lim, James M. Ritchie, and Nick Weston. SMASH: one-shot model architecture search through hypernetworks. In ICLR, 2018. 1, 2
|
| 348 |
+
[4] Zhaowei Cai, Xiaodong He, Jian Sun, and Nuno Vasconcelos. Deep learning with low precision by half-wave gaussian quantization. In CVPR, pages 5406-5414, 2017. 1, 2, 3, 5, 6, 8
|
| 349 |
+
[5] Zhaowei Cai and Nuno Vasconcelos. Cascade R-CNN: delving into high quality object detection. In CVPR, pages 6154-6162, 2018. 1
|
| 350 |
+
[6] Liang-Chieh Chen, George Papandreou, Iasonas Kokkinos, Kevin Murphy, and Alan L. Yuille. Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs. IEEE Trans. Pattern Anal. Mach. Intell., 40(4):834-848, 2018. 1
|
| 351 |
+
[7] Jungwook Choi, Zhuo Wang, Swagath Venkataramani, Pierce I-Jen Chuang, Vijayalakshmi Srinivasan, and Kailash Gopalakrishnan. Pact: Parameterized clipping activation for quantized neural networks. arXiv preprint arXiv:1805.06085, 2018. 2, 5
|
| 352 |
+
[8] Benoit Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals OR, 153(1):235-256, 2007. 5
|
| 353 |
+
[9] Zhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney, and Kurt Keutzer. HAWQ: hessian aware quantization of neural networks with mixed-precision. In ICCV, pages 293–302. IEEE, 2019. 1
|
| 354 |
+
[10] Zichao Guo, Xiangyu Zhang, Haoyuan Mu, Wen Heng, Zechun Liu, Yichen Wei, and Jian Sun. Single path oneshot neural architecture search with uniform sampling. arXiv preprint arXiv:1904.00420, 2019. 2, 5
|
| 355 |
+
[11] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross B. Girshick. Mask R-CNN. In ICCV, pages 2980-2988, 2017. 1
|
| 356 |
+
[12] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 1
|
| 357 |
+
[13] Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andretto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. 6
|
| 358 |
+
[14] Itay Hubara, Matthieu Courbariaux, Daniel Soudry, Ran ElYaniv, and Yoshua Bengio. Binarized neural networks. In NIPS, pages 4107-4115, 2016. 1, 2, 3, 5
|
| 359 |
+
[15] Kyuyeon Hwang and Wonyong Sung. Fixed-point feedforward deep neural network design using weights $+1$ , 0, and -1. In IEEE Workshop on Signal Processing Systems, pages 174-179, 2014. 2
|
| 360 |
+
|
| 361 |
+
[16] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, pages 1106-1114, 2012. 1
|
| 362 |
+
[17] Griffin Lacey, Graham W. Taylor, and Shawki Areibi. Stochastic layer-wise precision in deep neural networks. In UAI, pages 663-672, 2018. 1, 2
|
| 363 |
+
[18] Darryl Dexu Lin, Sachin S. Talathi, and V. Sreekanth Annapureddy. Fixed point quantization of deep convolutional networks. In ICML, pages 2849-2858, 2016. 1, 2
|
| 364 |
+
[19] Tsung-Yi Lin, Piotr Dólar, Ross B. Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. Feature pyramid networks for object detection. In CVPR, pages 936-944, 2017. 1
|
| 365 |
+
[20] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018. 1, 2, 4, 5
|
| 366 |
+
[21] Stuart P. Lloyd. Least squares quantization in PCM. IEEE Trans. Information Theory, 28(2):129-136, 1982. 3
|
| 367 |
+
[22] Joel Max. Quantizing for minimum distortion. IRE Trans. Information Theory, 6(1):7-12, 1960. 3
|
| 368 |
+
[23] Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In ECCV, pages 525-542, 2016. 1, 2, 3, 5
|
| 369 |
+
[24] Shaoqing Ren, Kaiming He, Ross B. Girshick, and Jian Sun. Faster R-CNN: towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015. 1
|
| 370 |
+
[25] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael S. Bernstein, Alexander C. Berg, and Fei-Fei Li. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015. 5
|
| 371 |
+
[26] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. 1
|
| 372 |
+
[27] Huifang Sun and Yun Q Shi. Image and video compression for multimedia engineering: Fundamentals, algorithms, and standards. CRC press, 2008. 3
|
| 373 |
+
[28] Wonyong Sung and Ki-II Kum. Simulation-based word-length optimization method for fixed-point digital signal processing systems. IEEE Trans. Signal Processing, 43(12):3087-3090, 1995. 2
|
| 374 |
+
[29] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott E. Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, pages 1-9, 2015. 1, 3, 6
|
| 375 |
+
[30] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jonathon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, pages 2818-2826, 2016. 1, 2, 6
|
| 376 |
+
[31] Kuan Wang, Zhijian Liu, Yujun Lin, Ji Lin, and Song Han. Haq: Hardware-aware automated quantization with mixed precision. In CVPR, pages 8612-8620, 2019. 1, 2, 5, 8
|
| 377 |
+
[32] Bichen Wu, Yanghan Wang, Peizhao Zhang, Yuandong Tian, Peter Vajda, and Kurt Keutzer. Mixed precision quantization of convnets via differentiable neural architecture search. arXiv preprint arXiv:1812.00090, 2018. 1, 2, 5, 8
|
| 378 |
+
|
| 379 |
+
[33] Amir Yazdanbakhsh, Ahmed T Elthakeb, Prannoy Pilligundla, FatemehSadat Mireshghallah, and Hadi Esmaeilzadeh. Releq: An automatic reinforcement learning approach for deep quantization of neural networks. arXiv preprint arXiv:1811.01704, 2018. 1, 2
|
| 380 |
+
[34] Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In ECCV, pages 373-390, 2018. 1, 2, 3, 5, 8
|
| 381 |
+
[35] Shuchang Zhou, Zekun Ni, Xinyu Zhou, He Wen, Yuxin Wu, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. CoRR, abs/1606.06160, 2016. 1, 2, 3, 5
|
| 382 |
+
[36] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian Reid. Structured binary neural networks for image recognition. arXiv preprint arXiv:1909.09934, 2019. 2
|
| 383 |
+
[37] Bohan Zhuang, Chunhua Shen, Mingkui Tan, Lingqiao Liu, and Ian D. Reid. Towards effective low-bitwidth convolutional neural networks. In CVPR, pages 7920-7928, 2018. 1, 2, 3, 5
|
| 384 |
+
[38] Barret Zoph and Quoc V. Le. Neural architecture search with reinforcement learning. CoRR, abs/1611.01578, 2016. 1, 2, 4
|
| 385 |
+
[39] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V. Le. Learning transferable architectures for scalable image recognition. In CVPR, pages 8697-8710, 2018. 1, 2
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d9b0b194090be47d18486421127c21eb5bdeae186343970550df448d8ecebf9e
|
| 3 |
+
size 533019
|
rethinkingdifferentiablesearchformixedprecisionneuralnetworks/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e26f3075cd4dd63a6a2fb23c1d7a58bd690a0830afd32a2b3e1bd9ad1efca495
|
| 3 |
+
size 401373
|
rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1eb04698fc620471d1706f06a0948d31701c578b9e1216913cab876665e0e48b
|
| 3 |
+
size 77514
|
rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cbdb79d2c492d3481d6c2766c59f64f42dbb8e60a820194c88c0d88c752ae6f
|
| 3 |
+
size 94566
|
rethinkingperformanceestimationinneuralarchitecturesearch/c50097d4-2297-470a-aeeb-504fc5f7d37a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fb9170cd1bef587c847e6eb5fe73b76cf34526788e91cee3b415e601c27fac0
|
| 3 |
+
size 457665
|
rethinkingperformanceestimationinneuralarchitecturesearch/full.md
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking Performance Estimation in Neural Architecture Search
|
| 2 |
+
|
| 3 |
+
Xiawu Zheng $^{1,2,3}$ , Rongrong Ji $^{1,2,3*}$ , Qiang Wang $^{1,3}$ , Qixiang Ye $^{3,4}$ , Zhenguo Li $^{5}$ Yonghong Tian $^{3,6}$ , Qi Tian $^{5}$ $^{1}$ Media Analytics and Computing Lab, Department of Artificial Intelligence, School of Informatics, Xiamen University, 361005, China
|
| 4 |
+
|
| 5 |
+
$^{2}$ National Institute for Data Science in Health and Medicine, Xiamen University. $^{3}$ Peng Cheng Laboratory, Shenzhen, China. $^{4}$ University of Chinese Academy of Sciences, China.
|
| 6 |
+
|
| 7 |
+
$^{5}$ Noah's Ark Lab, Huawei Technologies $^{6}$ Peking University.
|
| 8 |
+
|
| 9 |
+
{zhengxiawu,Wangqiang}@stu.xmu.edu.cn, rrji@xmu.edu.cn qxye@ucas.ac.cn, li.zhenguo@huawei.com,yhtian@pku.edu.cn,tian.qil@huawei.com
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Neural architecture search (NAS) remains a challenging problem, which is attributed to the indispensable and time-consuming component of performance estimation (PE). In this paper, we provide a novel yet systematic rethinking of PE in a resource constrained regime, termed budgeted PE (BPE), which precisely and effectively estimates the performance of an architecture sampled from an architecture space. Since searching an optimal BPE is extremely time-consuming as it requires to train a large number of networks for evaluation, we propose a Minimum Importance Pruning (MIP) approach. Given a dataset and a BPE search space, MIP estimates the importance of hyper-parameters using random forest and subsequently prunes the minimum one from the next iteration. In this way, MIP effectively prunes less important hyper-parameters to allocate more computational resource on more important ones, thus achieving an effective exploration. By combining BPE with various search algorithms including reinforcement learning, evolution algorithm, random search, and differentiable architecture search, we achieve $1,000 \times$ of NAS speed up with a negligible performance drop comparing to the SOTA.
|
| 14 |
+
|
| 15 |
+
# 1. Introduction
|
| 16 |
+
|
| 17 |
+
Deep learning have made significant success in classification [15, 12], retrieval [48, 47] and detection [42, 46, 20]. To this end, neural architecture search (NAS) aims to automatically discover a suitable neural network architecture by exploring over a tremendous architecture search space, which
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1. Time cost with/without budgeted performance estimation (BPE-1). (a) Previous methods did not optimize the huge computation cost in PE. (b) By incorporating the BPE, we can largely accelerate NAS methods including reinforcement learning (RL) [52], evolution algorithm (EA) [34], random search (RS) and DARTS [28] (One-shot) with a negligible performance drop.
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
|
| 24 |
+
has shown remarkable performance over manual designs in various computer vision tasks [9, 51, 28, 52, 10, 26].
|
| 25 |
+
|
| 26 |
+
Despite the extensive success, previous methods are still defective in intensive computation resources, which severely restricts its application prospect and flexibility. For instance, reinforcement learning (RL) based methods [52, 51] search a suitable architecture on CIFAR10 by training and evaluating more than 20,000 architectures by using 500 GPUs over 4 days. For another instance, the evolutionary algorithm (EA) based method in [34] needs 3,150 GPU days to find an optimal architecture on CIFAR10.
|
| 27 |
+
|
| 28 |
+
A NAS method generally consists of three components, i.e., search space, search strategy and performance estimation. As established by [51], cell based search space is now well adopted [49, 44, 11, 31, 34, 33, 51, 52], which is predefined and fixed during the architecture search to ensure a fair comparison among different NAS methods. On the other hand, as illustrated in Fig. 1, different search strategies (RL or EA) have similar run-time (after subtracting the
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 2. The overall framework of the proposed Minimum Importance Pruning for finding an optimal Budgeted Performance Estimation. The search space of BPE is built from the training hyper-parameters including training epoch, batch size, learning rate, layer number, float point, channels, cutout and image size. We first sample the example with the lowest time cost. Then the sampled example is used to train the random forest, which is used to evaluate the importance of the corresponding hyper-parameters. The hyper-parameter with the lowest importance is pruned by assigning the value with a minimum time cost.
|
| 32 |
+
|
| 33 |
+
performance estimation cost), which can also be well accelerated with GPU packages. Therefore the major computational consumption of NAS lies in the performance estimation (PE) step, as validated in Fig. 1. However, few works have been devoted to the efficiency issue of PE, which is crucial to cope with the explosive growth of dataset size and model complexity. Moreover, it is highly desirable to conduct fast architecture search under different datasets for deployment in emerging applications like self-driving cars [5].
|
| 34 |
+
|
| 35 |
+
In this paper, we propose a novel and efficient performance estimation under the resource-constrained regime, termed budgeted performance estimation (BPE), which is the first of its kind in the NAS community. The BPE essentially controls the hyper-parameters of training, network designing and dataset processing, such as number of channels, number of layers, learning rate and image size. Rather than pursuing model precision for a specific dataset, BPE aims to learn the most achievable relative precision order of different neural architectures in a specific architecture space. In other words, a good network structure still has a relatively high ranking on an accurate BPE. We argue that the missing of accurate and efficient BPE remains as the main barrier for the wide usage of NAS research. However, finding an accurate and effective BPE is extremely challenging compared to other black-box optimization problems. First, BPE needs to carefully deal with the discrete (like layers or channels) and continuous (like learning rate) hyper-parameters. Second, evaluating a specific BPE needs to train a large number of neural networks e.g., $2 \times 8^{14}$ networks in the cell-based architecture search space [28].
|
| 36 |
+
|
| 37 |
+
As implicitly employed in previous NAS [52, 22, 33, 28,
|
| 38 |
+
|
| 39 |
+
7, 31] methods, most BPE methods only leverage intuitive tricks including early stopping [52], dataset sampling [22] and lower resolution dataset, or using a proxy search network with fewer filters per layer and fewer cells [52, 28]. While such methods can reduce the computational cost to a certain extent (which is still time consuming [52, 34]), noise is also introduced into PE to underestimate its corresponding performance. Little work investigates the relative performance rank between approximated evaluations and full evaluations, which is traditionally considered as a merited trick [28, 52, 34]. However, as subsequently validated in Sec. 5, such a relative rank can change dramatically under a tiny difference in the training condition.
|
| 40 |
+
|
| 41 |
+
In this paper, we present a unified, fast and effective framework, termed Minimum Importance Pruning (MIP), to find an optimal BPE on a specific architecture search space such as cell-based search space [49, 44, 11, 31, 34, 33, 51, 52], as illustrated in Fig. 2. In particular, for a given large-scale hyper-parameter search space, we first sample examples with the lowest time consumption. The sampled examples are then used to estimate the hyper-parameter importance using random forest [6, 16]. The hyper-parameter of the lowest importance is set to the value with the minimum time cost. The algorithm stops when every hyperparameter is set. The contributions of this paper include:
|
| 42 |
+
|
| 43 |
+
- It is the first work to systematically investigate the performance estimation in NAS under the resource-constrained regime. We seek an optimal budgeted PE (BPE) by designing a spearman correlation loss function on a group of key hyper-parameters.
|
| 44 |
+
- A novel hyper-parameter optimization method, termed
|
| 45 |
+
|
| 46 |
+
Minimum Importance Pruning (MIP), is proposed, which is effective for black-box optimization with extremely time consuming on the evaluation step.
|
| 47 |
+
|
| 48 |
+
- The proposed MIP-BPE generalizes well to various architecture search methods, including Reinforcement Learning (RL), Evolutionary Algorithms (EA), Random Search (RS) and DARTS. MIP-BPE achieves remarkable performance on both CIFAR-10 and ImageNet, while accelerating the search process by $1,000 \times$ .
|
| 49 |
+
|
| 50 |
+
# 2. Related Work
|
| 51 |
+
|
| 52 |
+
# 2.1. Performance Estimation in NAS
|
| 53 |
+
|
| 54 |
+
Performance estimation refers to estimating the performance of a specific architecture in the architecture search space. A conventional option is to perform a standard training and validation process of this architecture on the dataset, which is computationally expensive and limits the number of architectures that can be explored. To accelerate performance estimation, most NAS methods only provide simple intuitive cues such as early stopping [52], dataset sampling [22] and lower resolution dataset, or using a proxy search network with fewer filters and fewer cells [52, 28].
|
| 55 |
+
|
| 56 |
+
Another possibility of estimating the architecture performance is one-shot based methods [50, 28, 1], which consider each individual in the search space as a sub-graph sampled from a super-graph. In this way, they accelerate the search process by parameter sharing [31]. Chen et al. [11] proposed to progressively grow the depth of searched architectures during the training procedure. Xu et al. [44] presented a partially connected method by sampling a small part of the super-net to reduce the redundancy in the network space, which thereby performs a more efficient search without comprising the performance. However, these methods do not deeply investigate the influence of different hyper-parameters, which has introduced large noise as validated in Sec. 5.
|
| 57 |
+
|
| 58 |
+
# 2.2. Hyper-parameter Optimization
|
| 59 |
+
|
| 60 |
+
Hyper-parameter optimization [41] aims to automatically optimize the hyper-parameters during the learning process [4, 19, 39, 45]. To this end, gird search and random search [4] are the two simplest and most straightforward approaches. Note that these methods do not consider to use the experience (sampled examples in the search process). Subsequently, sequential model-based optimization (SMBO) [19] is proposed to learn a proxy function from the experience and estimate the performance for unknown hyper-parameters. As one of the most popular methods, Bayesian optimization [39] learns a Gaussian process with the sampled examples, and then decides the best hyper
|
| 61 |
+
|
| 62 |
+
parameter for the next trial by maximizing the corresponding improvement function.
|
| 63 |
+
|
| 64 |
+
However, all these methods mostly deal with hyperparameters for particular machine learning models, which cannot handle the optimization of BPE with such an expensive evaluation step. Different from the previous methods, we evaluate and estimate the importance of the hyperparameters by sampling examples with the minimum time consumption, where hyper-parameters of minimum importances are then pruned in the next iteration, which is extremely effective and efficient to find the optimal BPE.
|
| 65 |
+
|
| 66 |
+
# 3. Preliminaries
|
| 67 |
+
|
| 68 |
+
# 3.1. NAS Pipeline
|
| 69 |
+
|
| 70 |
+
Given a training set, conventional NAS algorithms [52, 49, 25] first sample an architecture in the pre-defined search space by a certain search strategy like Reinforcement Learning (RL) or Evolution Algorithm (EA). Then the sampled neural architecture is passed to the performance estimation (PE), which returns the performance of the architecture to the search algorithm.
|
| 71 |
+
|
| 72 |
+
In most NAS methods [49, 28, 44], PE is accelerated by using a group of lower-cost hyper-parameters (like smaller image size, less channel and shallower network) in the search space $\Omega = \Theta_{1} \times \Theta_{2} \times \ldots \times \Theta_{n}$ , termed budgeted PE (BPE), which contains $n$ sorts of training hyper-parameters including the number of training epochs, batch size, learning rate, the number of layers, float point precision, channels, cutout [13] and image size. For instance, Liu et al. [28] proposed to estimate the performance of an architecture on a small network of 8 layers trained for 50 epochs, with batch size 64 and initial number of channels 16. After the search process, the optimal neural architecture is then evaluated by a fully and time-consuming training hyperparameter set $f$ . In the existing works [49, 28, 44], $f$ controls the final evaluation hyper-parameters of the optimal architecture, i.e., a large network of 20 layers is trained for 600 epochs with a batch size of 96 and an additional regularization such as cutout [13].
|
| 73 |
+
|
| 74 |
+
However, in this pipeline, the BPE and the final evaluation phase are decoupled. There is no guarantee that the BPE is correlated to the final evaluation step, i.e., the same architectures may have large ranking distances under different training conditions. Most NAS methods [28, 52] intuitively change BPE with fewer channels or layers. Nevertheless, extensive experiments in Sec. 5 show that the effectiveness of BPE is very sensitive, which means that it needs to carefully select and analyze the corresponding hyper-parameters in NAS. Indeed, we believe, and validated in Sec. 5, that BPE is a crucial component, while unfortunately there are no corresponding works devoted to this area.
|
| 75 |
+
|
| 76 |
+
# 3.2. Cell based Architecture Search Space
|
| 77 |
+
|
| 78 |
+
As mentioned in Sec. 1, BPE aims to find optimal training hyper-parameters on a specific architecture search space. In this paper, we follow the widely-used cell-based architecture search space in [49, 44, 11, 31, 34, 33, 51, 52, 50]: A network consists of a pre-defined number of cells [51], which can be either norm cells or reduction cells. Each cell takes the outputs of the two previous cells as input. A cell is a fully-connected directed acyclic graph (DAG) of $M$ nodes, i.e., $\{B_1, B_2, \dots, B_M\}$ . Each node $B_i$ takes the dependent nodes as input, and generates an output through a sum operation $B_j = \sum_{i < j} o^{(i,j)}(B_i)$ . Here each node is a specific tensor (e.g., a feature map in convolutional neural networks) and each directed edge $(i,j)$ between $B_i$ and $B_j$ denotes an operation $o^{(i,j)}(.)$ , which is sampled from the corresponding operation search space $\mathcal{O}^{(i,j)}$ . Note that the constraint $i < j$ ensures no cycles in a cell. Each cell takes the outputs of two dependent cells as input, and the two input nodes are set as $B_{-1}$ and $B_0$ for simplicity. Following [28], the operation search space $\mathcal{O}^{(i,j)}$ consists of $K = 8$ operations: $3 \times 3$ dilated convolution with rate 2, $5 \times 5$ dilated convolution with rate 2, $3 \times 3$ depth-wise separable convolution, $5 \times 5$ depth-wise separable convolution, $3 \times 3$ max pooling, $3 \times 3$ average pooling, no connection (zero), and a skip connection (identity). Therefore, the size of the whole search space $\mathcal{O}$ is $2 \times K^{|\mathcal{E}_{\mathcal{M}}|}$ , where $\mathcal{E}_{\mathcal{M}}$ is the set of possible edges with $M$ intermediate nodes in the fully-connected DAG. In our case with $M = 4$ the total number of cell structures in the search space is $2 \times 8^{2 + 3 + 4 + 5} = 2 \times 8^{14}$ , which is an extremely large space to search.
|
| 79 |
+
|
| 80 |
+
# 4. The Proposed Method
|
| 81 |
+
|
| 82 |
+
In this section, we first describe the formal setting of BPE in Sec. 4.1. We then present the proposed minimum importance pruning (MIP) to find the optimal BPE.
|
| 83 |
+
|
| 84 |
+
# 4.1. Budgeted Performance Estimation
|
| 85 |
+
|
| 86 |
+
The performance estimation is a training algorithm $A$ with $n$ hyper-parameters in a domain $\Omega$ . Given an architecture set $\mathcal{G}$ sampled from $\mathcal{O}$ , we address the following optimization problem:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\max _ {b \in \Omega} r _ {s} \left(R _ {f}, R _ {b}\right) + \lambda \overline {{T \left(\mathcal {G} _ {b}\right)}}, \tag {1}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where $0 < \lambda < 1$ , $r_s$ calculates the Spearman Rank Correlation between $R_f$ and $R_b$ . $R_f$ and $R_b$ are the performance on validation set of every architecture in $\mathcal{G}$ with full training hyper-parameter $f$ and BPE parameter $b$ , respectively. We aim to find the optimal $b$ with less average training consumption $\overline{T(\mathcal{G}_b)}$ on $\mathcal{G}$ .
|
| 93 |
+
|
| 94 |
+
Optimizing Eq. 1 is extremely challenging, as we need to train over $|\mathcal{G}|$ architectures to validate one example in $\Omega$ .
|
| 95 |
+
|
| 96 |
+
This large set of models to be trained and evaluated prevent most NAS methods to be widely deployed. Fortunately, Radosavovic et al. [32] observed that sampling about 100 models form a given architecture search space is sufficient to perform robust estimation, which is also validated in our work. Specifically, we randomly sample 100 neural architectures in the cell-based search architecture space to construct the architecture set $\mathcal{G}$ . Then $R_{f}$ and $R_{b}$ are obtained by training and validate every architecture in $\mathcal{G}$ with the hyper-parameters $f$ and $b$ , respectively.
|
| 97 |
+
|
| 98 |
+
# 4.2. Minimum Importance Pruning
|
| 99 |
+
|
| 100 |
+
Although the time consumption of the validation step has been drastically reduced, it is still very difficult to optimize Eq. 1, i.e., in our evaluation, the average training time of an architecture from $\mathcal{G}$ for different hyper-parameters is 10 hours on CIFAR10 benchmark. In this case, each example needs to train 100 networks, and the time consumption for one BPE example $b$ is $\sim 10^{3}$ hours. Such a time consumption is still difficult for finding an optimal BPE efficiently.
|
| 101 |
+
|
| 102 |
+
To handle this issue we propose a minimum importance pruning (MIP) as illustrated in Fig. 2. We first sample the hyper-parameter examples around the lowest time cost. Then the sampled examples are trained to estimate the hyper-parameter importance by using random forest [16, 6]. After that, the hyper-parameter with the lowest importance is pruned by setting the value with the minimum time cost. The pruning step is ceased when there is only one hyperparameter in the search space, and the optimal BPE is the example with the maximum $r_s$ .
|
| 103 |
+
|
| 104 |
+
Lowest time cost sampling. For each element in $\Theta_{i}$ , we introduce a category distribution related to the computational cost:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
p \left(\eta_ {i, j}\right) = \frac {\exp \left\{- F L O P s \left(\Theta_ {i , j}\right) \right\}}{\sum_ {j} \exp \left\{- F L O P s \left(\Theta_ {i , j}\right) \right\}}, \tag {2}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\Theta_{i,j}$ denotes the $j$ th element of the $i$ th hyperparameter $\Theta_{i}$ . The function $FLOPs(\Theta_{i,j})$ is the number of floating point operations. We set $\Theta_{i}$ with the $j$ th element and fix other hyper-parameters in $\Omega$ by the value with the minimum time cost. An example $b$ is generated by sampling the joint probability in Eq. 2, e.g., $p(\eta) = \prod_{i=1}^{n} p(\eta_i)$ . Then, we obtain $R_b$ by training every architecture in $\mathcal{G}$ using the sampled $b$ , and the objective $r_s$ is calculated with $R_f$ by using Eq. 1.
|
| 111 |
+
|
| 112 |
+
Random forest training. After repeating previous steps over $K = 10$ times, we get a set $\mathcal{D} = \{(b_1, r_{s,1}), (b_2, r_{s,2}), \ldots, (b_K, r_{s,K})\}$ with different BPEs and corresponding objective values, which is used as a training set for the random forest. In random forest, each tree is built from a set $\mathcal{D}_s$ drawn with a replacement sampling from $\mathcal{D}$ . Training random forest is to train multiple regression trees. Given a training set $\mathcal{D}_s$ with $b_i \in \mathbb{R}^n$ , $i =$
|
| 113 |
+
|
| 114 |
+
Algorithm 1: Minimum Importance Pruning
|
| 115 |
+
Input: Architecture search space $\mathcal{O}$ ; hyper-parameter space $\Omega$ sampling time $K = 10$ Output: Optimal BPE hyper-parameter $b$
|
| 116 |
+
1 $n\gets$ The number of parameter in $\Omega$ .
|
| 117 |
+
2 $R\gets$ {Sample 100 network architectures in $\mathcal{O}\} .$
|
| 118 |
+
3 Train $R$ with fully training condition $f$ .
|
| 119 |
+
4 $R_{f}\gets \{R$ 's performance on validation set};
|
| 120 |
+
5 $\mathcal{D}\gets \emptyset$ .
|
| 121 |
+
6 while $(n > 0)$ do
|
| 122 |
+
7 $B = \{\mathrm{Randomly~sample~}T\mathrm{~ex~amples~in~}\Omega \mathrm{~by~}$ distribution in Eq. 2};
|
| 123 |
+
8 for $b$ in $B$ do
|
| 124 |
+
9 Train $R$ with BPE $b$ ..
|
| 125 |
+
10 $R_{b}\gets \{R$ 's performance on validation set};
|
| 126 |
+
11 $r_s\gets$ Spearman Rank Correlation between $R_{b}$ and $R_{f}$ ..
|
| 127 |
+
12 $\mathcal{D}\gets \mathcal{D}\cup \{b,r_s\}$
|
| 128 |
+
13 end
|
| 129 |
+
14 Train random forest $\mathcal{T}$ by using Eq. 5 and Eq. 6 on $\mathcal{D}$ .
|
| 130 |
+
15 Calculate the importance by Eq. 8;
|
| 131 |
+
16 Pruning space $\Omega$ by Eq. 9;
|
| 132 |
+
17 $n = n - 1$ .
|
| 133 |
+
18 end
|
| 134 |
+
|
| 135 |
+
$1, \dots, l$ and the corresponding spearman rank correlation vector $[r_{s,1}, r_{s,2}, \dots, r_{s,l}]$ sampled from $\mathcal{D}$ , a regression tree in the random forest recursively partitions the space such that the examples in $\mathcal{D}_s$ with similar values are grouped together. When training the regression tree, we need to consider how to measure and choose the partition feature (hyper-parameter in our case). Specifically, let the data at node $m$ be represented by $Q$ . For each candidate partition $\xi = (i, t_m)$ consisting of hyper-parameter $i$ and threshold $t_m$ , we partition the data into $Q_{left}(\xi)$ and $Q_{right}(\xi)$ subsets as follows:
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\begin{array}{l} Q _ {\text {l e f t}} (\xi) = (x, r _ {s}) \left| x _ {i} \leq t _ {m} \right. \\ Q _ {\text {r e s}} (\xi) = (x, r _ {s}) \end{array} \tag {3}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
Q _ {r i g h t} (\xi) = (x, r _ {s}) \left| x _ {i} > t _ {m}. \right.
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
We further define the impurity function $H(\cdot)$ for a given split set $Q$ as
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
H (Q) = \frac {1}{| Q |} \sum_ {r _ {s, i} \in Q} \left(r _ {s, i} - \overline {{r _ {s , Q}}}\right) ^ {2}, \tag {4}
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
where $\overline{r_{s,Q}} = \frac{1}{|Q|}\sum_{r_{s,i}\in Q}r_{s,i}, |Q|$ denotes the number of examples in set $Q$ . And the impurity for a specific partition is the weighted sum of the impurity function:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
G (Q, \xi) = \frac {\left| Q _ {l e f t} \right| H \left(Q _ {l e f t}\right) + \left| Q _ {r i g h t} \right| H \left(Q _ {r i g h t}\right)}{\left| Q _ {l e f t} \right| + \left| Q _ {r i g h t} \right|}. \tag {5}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
We adopt the exhaustion method to find the optimal partition, that is, iterate through all possible partitions and select
|
| 158 |
+
|
| 159 |
+
<table><tr><td>Hyper-parameter</td><td>BPE-1</td><td>BPE-2</td><td>DARTS[28]</td></tr><tr><td>Epoch</td><td>10</td><td>30</td><td>50</td></tr><tr><td>Batch size</td><td>128</td><td>128</td><td>64</td></tr><tr><td>Learning rate</td><td>0.03</td><td>0.03</td><td>0.025</td></tr><tr><td>N_Layers</td><td>6</td><td>16</td><td>8</td></tr><tr><td>Channels</td><td>8</td><td>16</td><td>16</td></tr><tr><td>Image Size</td><td>16</td><td>16</td><td>32</td></tr><tr><td>Correlation rs</td><td>0.50</td><td>0.63</td><td>0.57</td></tr><tr><td>Training Time</td><td>0.08</td><td>0.55</td><td>1.38</td></tr></table>
|
| 160 |
+
|
| 161 |
+
Table 1. Detailed hyper-parameters of the best settings discovered On CIFAR10 by using MIP. The found BPE-1 and BPE-2 show a better correlation $r_s$ with less average training time (GPU Hours).
|
| 162 |
+
|
| 163 |
+
the partition with the minimum impurity:
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
\xi^ {*} = \underset {\xi} {\arg \min } G (Q, \xi). \tag {6}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
Hyper-parameter importance. For every node $m$ in the regression tree, we calculate the parameter importance as the decrease in node impurity, which is weighted by the number of samples that reach the node. The parameter importance for node $m$ is defined as:
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\begin{array}{l} I _ {m} = \left| Q _ {m} \right| H \left(Q _ {m}\right) - \left| Q _ {\{l e f t, m \}} \right| H \left(Q _ {\{l e f t, m \}}\right) \tag {7} \\ - \left| Q _ {\{r i g h t, m \}} \right| H \left(Q _ {\{r i g h t, m \}}\right). \\ \end{array}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
The importance for each $\Theta_{i}$ is the summation of the importance through the node in the random forest, which uses $\Theta_{i}$ as the partition parameter:
|
| 176 |
+
|
| 177 |
+
$$
|
| 178 |
+
I _ {\Theta_ {i}} = \frac {\sum_ {\xi_ {m} (0) = \Theta_ {i}} I _ {m}}{\sum I _ {m}}. \tag {8}
|
| 179 |
+
$$
|
| 180 |
+
|
| 181 |
+
Parameter pruning. After the importance estimation process in Eq. 8, the hyper-parameter with the lowest probability is pruned by setting
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
\Theta_ {i} = \beta_ {i}, \Theta_ {i} = \arg \min I _ {\Theta}. \tag {9}
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
$\beta_{i}$ is the value of the lowest FLOPs in hyper-parameter $\Theta_{i}$ when $I_{\Theta_i} < 0.1$ . Otherwise, $\beta_{i}$ is the corresponding parameter value with the maximum $r_s$ in $\mathcal{D}$ . The pruning step significantly improves the search efficiency. By setting the less important hyper-parameter to a value with less resource consumption, we can allocate more computational resource on important parameters. Our minimum importance pruning algorithm is presented in Alg. 1.
|
| 188 |
+
|
| 189 |
+
# 5. Experiment
|
| 190 |
+
|
| 191 |
+
As we mentioned before, the average time consumption for evaluating BPE examples is $\sim 10^{3}$ GPU hours, which means that with similar sample magnitude ( $\sim 70$ ), methods such as bayesian optimization or random search need about $7 \times 10^{4}$ GPU hours (almost infeasible). In contrast, our
|
| 192 |
+
|
| 193 |
+
<table><tr><td>Architecture</td><td>Test Error (%)</td><td>Params (M)</td><td>Search Cost (GPU days)</td><td>Search Method</td></tr><tr><td>ResNet-18 [15]</td><td>3.53</td><td>11.1</td><td>-</td><td>Manual</td></tr><tr><td>DenseNet [18]</td><td>4.77</td><td>1.0</td><td>-</td><td>Manual</td></tr><tr><td>SENet [17]</td><td>4.05</td><td>11.2</td><td>-</td><td>Manual</td></tr><tr><td>NASNet-A [52]</td><td>2.65</td><td>3.3</td><td>1800</td><td>RL</td></tr><tr><td>ENAS [31]</td><td>2.89</td><td>4.6</td><td>0.5</td><td>RL</td></tr><tr><td>Path-level NAS [8]</td><td>3.64</td><td>3.2</td><td>8.3</td><td>RL</td></tr><tr><td>RL+BPE-1 (Ours)</td><td>2.66 ± 0.05</td><td>2.7</td><td>0.33</td><td>RL</td></tr><tr><td>RL+BPE-2 (Ours)</td><td>2.65 ± 0.12</td><td>2.9</td><td>2</td><td>RL</td></tr><tr><td>AmoebaNet-B [34]</td><td>2.55</td><td>2.8</td><td>3150</td><td>Evolution</td></tr><tr><td>EA+BPE-1 (Ours)</td><td>2.68 ± 0.09</td><td>2.46</td><td>0.33</td><td>Evolution</td></tr><tr><td>EA+BPE-2 (Ours)</td><td>2.66 ± 0.07</td><td>2.87</td><td>2</td><td>Evolution</td></tr><tr><td>DARTS [28]</td><td>2.7 ± 0.01</td><td>3.1</td><td>1.5</td><td>Gradient-based</td></tr><tr><td>GDAS [14]</td><td>2.93 ± 0.07</td><td>3.4</td><td>0.8</td><td>Gradient-based</td></tr><tr><td>P-DARTS [11]</td><td>2.75 ± 0.06</td><td>3.4</td><td>0.3</td><td>Gradient-based</td></tr><tr><td>SNAS [43]</td><td>2.85 ± 0.02</td><td>2.8</td><td>1.5</td><td>Gradient-based</td></tr><tr><td>DARTS + BPE-1 (Ours)</td><td>2.89 ± 0.0</td><td>3.9</td><td>0.05</td><td>Gradient-based</td></tr><tr><td>DARTS + BPE-2 (Ours)</td><td>2.72 ± 0.0</td><td>4.04</td><td>0.33</td><td>Gradient-based</td></tr><tr><td>Random Sample 100</td><td>2.55</td><td>2.9</td><td>108</td><td>Random Search</td></tr><tr><td>Random Sample 100 + BPE-1 (Ours)</td><td>2.68 ± 0.09</td><td>2.7</td><td>0.33(337×)</td><td>Random Search</td></tr><tr><td>Random Sample 100 + BPE-2 (Ours)</td><td>2.68 ± 0.05</td><td>1.9</td><td>2 (54×)</td><td>Random Search</td></tr></table>
|
| 194 |
+
|
| 195 |
+
Table 2. Comparing of test error rates for our discovered architecture, human-designed networks and other NAS architectures on CIFAR-10. For a fair comparison, we select the architectures and results with similar parameters (< 5M) and the same training condition (all the networks are trained with Cutout [13]). Values are $\mu \pm \sigma$ across 4 runs.
|
| 196 |
+
|
| 197 |
+
method needs only $5.2 \times 10^{3}$ GPU hours. Therefore, we do not compare these methods in our paper.
|
| 198 |
+
|
| 199 |
+
We first combine BPE with different search strategies including Reinforcement Learning (RL) [21], Evolutionary Algorithm (EA) [2], Random Search (RS) [4] and Different Architecture Search (DARTS) [28]. As shown in Sec. 5.1, we compare with state-of-the-art methods in terms of both effectiveness and efficiency using CIFAR10 [24] and ImageNet [35]. In Sec. 5.2, we investigate the effect of each hyper-parameter in BPE, as well as the efficiency of using Spearman Rank Correlation as the objective function. Although many works [38, 25] pointed out that the one-shot based method [37, 31, 28, 3, 50] could not effectively estimate the performance throughout the entire search space, in Sec. 5.3 we have found that these methods are indeed effective in the local search space, which reasonably explains the reproducibility and effectiveness, i.e., the corresponding algorithms are actually able to find good architectures, and the optimal architectures are quite different in different runs due to the local information.
|
| 200 |
+
|
| 201 |
+
# 5.1. Comparing with State-of-the-arts
|
| 202 |
+
|
| 203 |
+
We first search neural architectures by using the found BPE-1 and BPE-2 in Tab. 1, and then evaluate the best architecture with a stacked deeper network. To ensure the stability of the proposed method, we run each experiment 4 times and find that the resulting architectures only show a
|
| 204 |
+
|
| 205 |
+
slight variance in performance.
|
| 206 |
+
|
| 207 |
+
# 5.1.1 Experimental Settings
|
| 208 |
+
|
| 209 |
+
We use the same datasets and evaluation metrics for existing NAS methods [28, 8, 52, 27]. First, most experiments are conducted on CIFAR-10 [23], which has $50\mathrm{K}$ training images and $10\mathrm{K}$ testing images from 10 classes with a resolution $32 \times 32$ . During the architecture search, we randomly select $5\mathrm{K}$ images from the training set as a validation set. To further evaluate the generalization capability, we stack the optimal cell discovered on CIFAR-10 into a deeper network, and then evaluate the classification accuracy on ILSVRC 2012 [35], which consists of 1,000 classes with 1.28M training images and $50\mathrm{K}$ validation images. Here, we consider the mobile setting, where the input image size is $224 \times 224$ and the FLOPs is less than 600M.
|
| 210 |
+
|
| 211 |
+
In the search process, we directly use the found BPE-1 and BPE-2 in Tab. 1 as the performance estimation with other search algorithms. After finding the optimal architecture in the search space, we validate the final accuracy on a large network of 20 cells is trained for 600 epochs with a batch size of 96 and additional regularization such as cutout [13], which are similar to [28, 52, 31]. When stacking cells to evaluate on ImageNet, we use two initial convolutional layers of stride 2 before stacking 14 cells with the scale reduction at the 1st, 2nd, 6th and 10th cells. The total number
|
| 212 |
+
|
| 213 |
+
<table><tr><td>Model</td><td>Top-1</td><td>Params (M)</td><td>Search time (GPU days)</td></tr><tr><td>MobileNetV2 [36]</td><td>72.0</td><td>3.4</td><td>-</td></tr><tr><td>ShuffleNetV2 2x (V2) [29]</td><td>73.7</td><td>~5</td><td>-</td></tr><tr><td>NASNet-A [52]</td><td>74.0</td><td>5.3</td><td>1800</td></tr><tr><td>AmoebaNet-A [34]</td><td>74.5</td><td>5.1</td><td>3150</td></tr><tr><td>MnasNet-92 [40]</td><td>74.8</td><td>4.4</td><td>-</td></tr><tr><td>SNAS [43]</td><td>72.7</td><td>4.3</td><td>522</td></tr><tr><td>DARTS [28]</td><td>73.1</td><td>4.9</td><td>4</td></tr><tr><td>RL + BPE-1 (Ours)</td><td>74.18</td><td>5.5</td><td>0.33</td></tr><tr><td>EA + BPE-1 (Ours)</td><td>74.56</td><td>5.0</td><td>0.33</td></tr><tr><td>RS + BPE-1 (Ours)</td><td>74.2</td><td>5.5</td><td>0.33</td></tr><tr><td>DARTS [28] + BPE-1 (Ours)</td><td>74.0</td><td>5.9</td><td>0.05</td></tr></table>
|
| 214 |
+
|
| 215 |
+
Table 3. Comparison with the state-of-the-art image classification methods on ImageNet. All the NAS networks in this table are searched on CIFAR10, and are then directly transferred to ImageNet.
|
| 216 |
+
|
| 217 |
+
of FLOPs is determined by the initial number of channels. The network is trained for 250 epochs with a batch size of 512, a weight decay of $3 \times 10^{-5}$ , and an initial SGD learning rate of 0.1. All the experiments and models are implemented in PyTorch [30].
|
| 218 |
+
|
| 219 |
+
# 5.1.2 Result on CIFAR10
|
| 220 |
+
|
| 221 |
+
We compare our method with both manually designed networks and NAS networks. The manually designed networks include ResNet [15], DenseNet [18] and SENet [17]. We evaluate on four categories of NAS methods, i.e., RL methods (NASNet [52], ENAS [31] and Path-level NAS [8]), evolutionary algorithms (AmoebaNet [34]), gradient-based methods (DARTS [28]) and Random Search.
|
| 222 |
+
|
| 223 |
+
The results for convolutional architectures on CIFAR-10 are presented in Tab. 2. It is worth noting that the found BPE combining with various search algorithms outperform various state-of-the-art search algorithms [52, 28, 33] in accuracy, with much lower computational consumption (only 0.05 GPU days $\ll 3150$ in [34]). We attribute our superior results to the found BPE. Another notable observation from Tab. 2 is that, even with random search in the search space, the test error rate is only $2.44\%$ , which outperforms previous methods in the same search space. Conclusively, with the found BPE, search algorithms can quickly explore the architecture search space and generate a better architecture. We also report the results of hand-crafted networks in Tab. 2. Clearly, our method shows a notable enhancement.
|
| 224 |
+
|
| 225 |
+
# 5.1.3 Results on ImageNet
|
| 226 |
+
|
| 227 |
+
We further compare our method under the mobile settings on ImageNet to demonstrate the generalizability. The best architecture on CIFAR-10 is transferred to ImageNet, which
|
| 228 |
+
|
| 229 |
+

|
| 230 |
+
Figure 3. The relationship between $r_s$ and performance with random sampled BPEs in $\mathcal{D}$ . The x-axis measures the Spearman Rank Correlation $r_s$ by Eq. 1, and the y-axis measures the real architecture performance found by DARTS+BPE on CIFAR10. The correlation between $r_s$ and performance is 0.65.
|
| 231 |
+
|
| 232 |
+
follows the same experimental settings in [52, 31, 8]. Results in Tab. 3 show that the best cell architecture on CIFAR10 is transferable to ImageNet. The proposed method achieves comparable accuracy to the state-of-the-art methods [52, 34, 27, 34, 27, 31, 28, 8] while using far less computational resources, e.g., 9, 545 times faster comparing to EA, and 5, 400 times faster comparing to RL.
|
| 233 |
+
|
| 234 |
+
# 5.2. Deep Analysis in Performance Estimation
|
| 235 |
+
|
| 236 |
+
We further study the efficiency of using Spearman Rank Correlation $r_s$ as the objective function in Fig. 3. In Fig. 4, we also provide a deep analysis about the importance of every hyper-parameter. One can make full use of this analysis to transfer the found BPEs to other datasets and tasks.
|
| 237 |
+
|
| 238 |
+
We randomly select 15 hyper-parameter settings in $\Omega$ and apply them on the DARTS [28] search algorithm to find optimal architectures. Fig. 3 illustrates the relationship between $r_s$ and the accuracy of the optimal architecture found by the corresponding setting. The performance is highly correlated to $r_s$ (with a 0.65 correlation), which denotes the efficiency of the proposed objective function in Eq. 1.
|
| 239 |
+
|
| 240 |
+
After exploring the BPE space by the proposed method, we get a dataset $\mathcal{D}$ w.r.t. each $\Theta_{i}$ and $r_s$ , which is used as the training set to train a random forest regression predictor [16] for each $\Theta_{i}$ . We then report the $r_s$ estimated by the predictor and importance for each hyper-parameter in Fig. 4. As illustrated in Fig. 4, the steepness and importance are highly correlated, i.e., the more important the parameter is, the steeper of the corresponding curve is, vice versa. At the same time, for the two most important parameters (epoch and layer), we get a high $r_s$ with a small range. This means that we only need to carefully finetune these two parameters
|
| 241 |
+
|
| 242 |
+

|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
Figure 4. The importance (within brackets) and regression predict curves with mean and variance learned by the random forest for each hyper-parameter. Importance is highly correlated to the curve steepnes. For the two most important parameters (epoch and layer), we can get a high $r_s$ within a small range.
|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
|
| 257 |
+

|
| 258 |
+
|
| 259 |
+
<table><tr><td rowspan="2" colspan="2"></td><td colspan="4">Epoch</td></tr><tr><td>50</td><td>200</td><td>400</td><td>600</td></tr><tr><td rowspan="2">Fair</td><td>Global rs</td><td>0.10</td><td>-0.06</td><td>0.13</td><td>-0.03</td></tr><tr><td>Local rs</td><td>0.13</td><td>0.50</td><td>0.31</td><td>0.31</td></tr><tr><td rowspan="2">Random</td><td>Global rs</td><td>0.10</td><td>-0.05</td><td>-0.30</td><td>-0.19</td></tr><tr><td>Local rs</td><td>-0.14</td><td>-0.52</td><td>0.61</td><td>-0.01</td></tr><tr><td rowspan="2">Random_10</td><td>Global rs</td><td>0.0</td><td>0.0</td><td>0.02</td><td>-0.08</td></tr><tr><td>Local rs</td><td>0.26</td><td>0.11</td><td>0.57</td><td>0.58</td></tr></table>
|
| 260 |
+
|
| 261 |
+
Table 4. Comparison of the Global $r_s$ and Local $r_s$ under different training conditions. "Fair" denotes each operation in an edge is trained with exactly the same epoch. "Random" denotes each operation in an edge is trained randomly with different random level. Global $r_s$ and local $r_s$ denote we use the trained model to evaluate the performance estimation globally and locally, respectively.
|
| 262 |
+
|
| 263 |
+
in a small range when transferring to other datasets.
|
| 264 |
+
|
| 265 |
+
# 5.3. Understanding One-shot based Methods
|
| 266 |
+
|
| 267 |
+
Previous works [25, 38] have reported that one-shot based methods such as DARTS do not work well (in some cases even no better than random search). There are two main questions which are not been explained yet: (1) One-shot based methods can not make a good estimate of performance, but they can search for good neural architectures. (2) The instability of one-shot based methods, that is, the found networks are different with different random seeds. With the found BPE, we can effectively investigate every search phase in these methods.
|
| 268 |
+
|
| 269 |
+
To understand and explain such questions, we first train the same hypergraph with different settings: (1) Fair training, each operation in an edge is trained with exactly the same epoch; (2) Random training, each operation in an edge is trained randomly at different random levels. In Tab. 4, we report the global and local $r_s$ in the case of fair training and random training. The global $r_s$ denotes that we use our
|
| 270 |
+
|
| 271 |
+
trained hypergraph to get the validation performance for the networks in $\mathcal{G}$ , and then calculate the $r_s$ with $X_f$ . The local $r_s$ is obtained by the following steps: When training the hypergraph, we save the sampled network architectures $\mathcal{G}_t$ and the corresponding validation performance $X_{\mathcal{G}_t}$ at epoch $t$ . The local $r_s$ is then obtained by using the found BPE-2 and Eq. 1 i.e., $r_s(X_{\mathcal{G}_t}, \mathrm{BPE}-2(\mathcal{G}_t))$ . As illustrated in Tab. 4, one-shot based methods have a poor performance estimation in global $r_s$ , which is consistent with previous works [25, 38]. However, these methods have a high local $r_s$ , which means that these methods are essentially using the local information. That is to say, each epoch in the search phase can only perceive and optimize by using local information, which reasonably explains the instability of DARTS.
|
| 272 |
+
|
| 273 |
+
# 6. Conclusion
|
| 274 |
+
|
| 275 |
+
In this paper, we present the first systematic analysis of the budgeted performance estimation (BPE) in NAS, and propose a minimum importance pruning (MIP) towards optimal PE. The proposed MIP gradually reduces the number of BPE hyper-parameters, which allocates more computation resources on more important hyper-parameters. The found MIP-BPE is generalized to various search algorithms, including reinforcement learning, random search, evolution algorithm and gradient-based methods. Combining the found BPE with various NAS algorithms, we have reached the state-of-the-art test error $2.66\%$ on CIFAR10 with much fewer search time, which also helps us to better understand the widely-used one-shot based methods.
|
| 276 |
+
|
| 277 |
+
Acknowledgements. This work is supported by the Nature Science Foundation of China (No.U1705262, No.61772443, No.61572410, No.61802324 and No.61702136), National Key R&D Program (No.2017YFC0113000, and No.2016YFB1001503), and Nature Science Foundation of Fujian Province, China (No. 2017J01125 and No. 2018J01106).
|
| 278 |
+
|
| 279 |
+
# References
|
| 280 |
+
|
| 281 |
+
[1] Youhei Akimoto, Shinichi Shirakawa, Nozomu Yoshinari, Kento Uchida, Shota Saito, and Kouhei Nishida. Adaptive stochastic natural gradient method for one-shot neural architecture search. In ICML, 2019. 3
|
| 282 |
+
[2] Thomas Back. Evolutionary algorithms in theory and practice: evolution strategies, evolutionary programming, genetic algorithms. Oxford university press, 1996. 6
|
| 283 |
+
[3] Gabriel Bender, Pieter-Jan Kindermans, Barret Zoph, Vijay Vasudevan, and Quoc Le. Understanding and simplifying one-shot architecture search. In ICML, 2018. 6
|
| 284 |
+
[4] James Bergstra and Yoshua Bengio. Random search for hyper-parameter optimization. JMLR, 2012. 3, 6
|
| 285 |
+
[5] Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, Lawrence D Jackel, Mathew Monfort, Urs Muller, Jiakai Zhang, et al. End to end learning for self-driving cars. arXiv, 2016. 2
|
| 286 |
+
[6] Leo Breiman. Random forests. Machine learning, 2001. 2, 4
|
| 287 |
+
[7] Han Cai, Tianyao Chen, Weinan Zhang, Yong Yu, and Jun Wang. Efficient architecture search by network transformation. In AAAI, 2018. 2
|
| 288 |
+
[8] Han Cai, Jiacheng Yang, Weinan Zhang, Song Han, and Yong Yu. Path-level network transformation for efficient architecture search. arXiv, 2018. 6, 7
|
| 289 |
+
[9] Hanlin Chen, Li'an Zhuo, Baochang Zhang, Xiawu Zheng, Jianzhuang Liu, David Doermann, and Rongrong Ji. Binarized neural architecture search. arXiv preprint arXiv:1911.10862, 2019. 1
|
| 290 |
+
[10] Liang-Chieh Chen, Maxwell Collins, Yukun Zhu, George Papandreou, Barret Zoph, Florian Schroff, Hartwig Adam, and Jon Shlens. Searching for efficient multi-scale architectures for dense image prediction. In NeurIPS, 2018. 1
|
| 291 |
+
[11] Xin Chen, Lingxi Xie, Jun Wu, and Qi Tian. Progressive differentiable architecture search: Bridging the depth gap between search and evaluation. ICCV, 2019. 1, 2, 3, 4, 6
|
| 292 |
+
[12] Hao Cheng, Dongze Lian, Bowen Deng, Shenghua Gao, Tao Tan, and Yanlin Geng. Local to global learning: Gradually adding classes for training deep neural networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. 1
|
| 293 |
+
[13] Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv, 2017. 3, 6
|
| 294 |
+
[14] Xuanyi Dong and Yi Yang. Searching for a robust neural architecture in fourgpu hours. In CVPR, 2019. 6
|
| 295 |
+
[15] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 1, 6, 7
|
| 296 |
+
[16] Holger Hoos and Kevin Leyton-Brown. An efficient approach for assessing hyperparameter importance. In ICML, pages 754-762, 2014. 2, 4, 7
|
| 297 |
+
[17] Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018. 6, 7
|
| 298 |
+
[18] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. 6, 7
|
| 299 |
+
|
| 300 |
+
[19] Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Sequential model-based optimization for general algorithm configuration. In LION, 2011. 3
|
| 301 |
+
[20] Rongrong Ji, Ke Li, Yan Wang, Xiaoshuai Sun, Feng Guo, Xiaowei Guo, Yongjian Wu, Feiyue Huang, and Jiebo Luo. Semi-supervised adversarial monocular depth estimation. IEEE transactions on pattern analysis and machine intelligence, 2019. 1
|
| 302 |
+
[21] Leslie Pack Kaelbling, Michael L Littman, and Andrew W Moore. Reinforcement learning: A survey. JAIR, 1996. 6
|
| 303 |
+
[22] Aaron Klein, Stefan Falkner, Simon Bartels, Philipp Hennig, and Frank Hutter. Fast bayesian optimization of machine learning hyperparameters on large datasets. arXiv, 2016. 2, 3
|
| 304 |
+
[23] Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, 2009. 6
|
| 305 |
+
[24] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, 2009. 6
|
| 306 |
+
[25] Liam Li and Ameet Talwalkar. Random search and reproducibility for neural architecture search. arXiv, 2019. 3, 6, 8
|
| 307 |
+
[26] Chenxi Liu, Liang-Chieh Chen, Florian Schroff, Hartwig Adam, Wei Hua, Alan Yuille, and Li Fei-Fei. Auto-deeplab: Hierarchical neural architecture search for semantic image segmentation. CVPR, 2019. 1
|
| 308 |
+
[27] Chenxi Liu, Barret Zoph, Maxim Neumann, Jonathon Shlens, Wei Hua, Li-Jia Li, Li Fei-Fei, Alan Yuille, Jonathan Huang, and Kevin Murphy. Progressive neural architecture search. In ECCV, 2018. 6, 7
|
| 309 |
+
[28] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. *ICLR*, 2019. 1, 2, 3, 4, 5, 6, 7
|
| 310 |
+
[29] Ningning Ma, Xiangyu Zhang, Hai-Tao Zheng, and Jian Sun. Shufflenet v2: Practical guidelines for efficient cnn architecture design. In ECCV, 2018. 7
|
| 311 |
+
[30] Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. 7
|
| 312 |
+
[31] Hieu Pham, Melody Y Guan, Barret Zoph, Quoc V Le, and Jeff Dean. Efficient neural architecture search via parameter sharing. ICML, 2018. 1, 2, 3, 4, 6, 7
|
| 313 |
+
[32] Ilija Radosavovic, Justin Johnson, Saining Xie, Wan-Yen Lo, and Piotr Dólar. On network design spaces for visual recognition. arXiv, 2019. 4
|
| 314 |
+
[33] E Real, A Aggarwal, Y Huang, and QV Le. Aging evolution for image classifier architecture search. In AAAI, 2019. 1, 2, 4, 7
|
| 315 |
+
[34] Esteban Real, Alok Aggarwal, Yanping Huang, and Quoc V Le. Regularized evolution for image classifier architecture search. AAAI, 2019. 1, 2, 4, 6, 7
|
| 316 |
+
[35] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IJCV, 2015. 6
|
| 317 |
+
|
| 318 |
+
[36] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *CVPR*, 2018. 7
|
| 319 |
+
[37] Shreyas Saxena and Jakob Verbeek. Convolutional neural fabrics. In NeurlPS, 2016. 6
|
| 320 |
+
[38] Christian Scioso, Kaicheng Yu, Martin Jaggi, Claudiu Musat, and Mathieu Salzmann. Evaluating the search phase of neural architecture search. arXiv, 2019. 6, 8
|
| 321 |
+
[39] Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In NeurIPS, pages 2951-2959, 2012. 3
|
| 322 |
+
[40] Mingxing Tan, Bo Chen, Ruoming Pang, Vijay Vasudevan, Mark Sandler, Andrew Howard, and Quoc V. Le. Mnasnet: Platform-aware neural architecture search for mobile. In CVPR, 2019. 7
|
| 323 |
+
[41] Chris Thornton, Frank Hutter, Holger H Hoos, and Kevin Leyton-Brown. Auto-weka: Combined selection and hyperparameter optimization of classification algorithms. In SIGKDD, 2013. 3
|
| 324 |
+
[42] Fang Wan, Chang Liu, Wei Ke, Xiangyang Ji, Jianbin Jiao, and Qixiang Ye. C-mil: Continuation multiple instance learning for weakly supervised object detection. In IEEE CVPR, pages 2199-2208, 2019. 1
|
| 325 |
+
[43] Sirui Xie, Hehui Zheng, Chunxiao Liu, and Liang Lin. SNAS: stochastic neural architecture search. In ICLR, 2019. 6, 7
|
| 326 |
+
[44] Yuhui Xu, Lingxi Xie, Xiaopeng Zhang, Xin Chen, Guo-Jun Qi, Qi Tian, and Hongkai Xiong. Pc-darts: Partial channel connections for memory-efficient differentiable architecture search. arXiv, 2019. 1, 2, 3, 4
|
| 327 |
+
[45] Arber Zela, Aaron Klein, Stefan Falkner, and Frank Hutter. Towards automated deep learning: Efficient joint neural architecture and hyperparameter search. ICML Workshop, 2018. 3
|
| 328 |
+
[46] Xiaosong Zhang, Fang Wan, Chang Liu, Rongrong Ji, and Qixiang Ye. Freeanchor: Learning to match anchors for visual object detection. In NeurIPS, pages 147-155, 2019. 1
|
| 329 |
+
[47] Xiawu Zheng, Rongrong Ji, Xiaoshuai Sun, Yongjian Wu, Feiyue Huang, and Yanhua Yang. Centralized ranking loss with weakly supervised localization for fine-grained object retrieval. In IJCAI, pages 1226-1233, 2018. 1
|
| 330 |
+
[48] Xiawu Zheng, Rongrong Ji, Xiaoshuai Sun, Baochang Zhang, Yongjian Wu, and Feiyue Huang. Towards optimal fine grained retrieval via decorrelated centralized loss with normalize-scale layer. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pages 9291-9298, 2019. 1
|
| 331 |
+
[49] Xiawu Zheng, Rongrong Ji, Lang Tang, Yan Wan, Baochang Zhang, Yongjian Wu, Yunsheng Wu, and Ling Shao. Dynamic distribution pruning for efficient network architecture search. arXiv, 2019. 1, 2, 3, 4
|
| 332 |
+
[50] Xiawu Zheng, Rongrong Ji, Lang Tang, Baochang Zhang, Jianzhuang Liu, and Qi Tian. Multinomial distribution learning for effective neural architecture search. In ICCV, 2019. 3, 4, 6
|
| 333 |
+
[51] Barret Zoph and Quoc V Le. Neural architecture search with reinforcement learning. arXiv, 2016. 1, 2, 4
|
| 334 |
+
|
| 335 |
+
[52] Barret Zoph, Vijay Vasudevan, Jonathon Shlens, and Quoc V Le. Learning transferable architectures for scalable image recognition. In CVPR, 2018. 1, 2, 3, 4, 6, 7
|
rethinkingperformanceestimationinneuralarchitecturesearch/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5c13cc3d0cf6f5013872c5b70aff927a2b6ea07d2bf39d78d14be94f6557450
|
| 3 |
+
size 452563
|
rethinkingperformanceestimationinneuralarchitecturesearch/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3060c5e259bcbacd35ef5ca0f8c2e24192a8176b9149c52834c365b113745cf1
|
| 3 |
+
size 473709
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d4d23f6e7d92389f7ac101741559642f139540f58ff13b3e80fdaa6a0df2f8f
|
| 3 |
+
size 74936
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b186007704c0fc7c13bdca932f68e0749e5235f62389dbd26ecc8f33bde8d589
|
| 3 |
+
size 90364
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/87179fc2-4049-406a-a9d7-005bda956120_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0027d385a6bbeb6d406574ecc4d9b3c84a0b0743d7151e68affa442fe558e7e3
|
| 3 |
+
size 988212
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/full.md
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking the Route Towards Weakly Supervised Object Localization
|
| 2 |
+
|
| 3 |
+
Chen-Lin Zhang Yun-Hao Cao Jianxin Wu\*
|
| 4 |
+
|
| 5 |
+
National Key Laboratory for Novel Software Technology Nanjing University, Nanjing, China
|
| 6 |
+
|
| 7 |
+
{zhangcl,caoyh}@lamda.nju.edu.cn,wuqx2001@nju.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Weakly supervised object localization (WSOL) aims to localize objects with only image-level labels. Previous methods often try to utilize feature maps and classification weights to localize objects using image level annotations indirectly. In this paper, we demonstrate that weakly supervised object localization should be divided into two parts: the class-agnostic object localization and the object classification. For class-agnostic object localization, we should use class-agnostic methods to generate noisy pseudo annotations and then perform bounding box regression on them without class labels. We propose the pseudo supervised object localization (PSOL) method as a new way to solve WSOL. Our PSOL models have good transferability across different datasets without fine-tuning. With the generated pseudo bounding boxes, we achieve $58.00\%$ localization accuracy on ImageNet and $74.97\%$ localization accuracy on CUB-200, which have a large edge over previous models.
|
| 12 |
+
|
| 13 |
+
# 1. Introduction
|
| 14 |
+
|
| 15 |
+
Deep convolutional neural networks have achieved enormous success in various computer vision tasks, such as classification, localization and detection. However, current deep learning models need a large number of accurate annotations, including image-level labels, location-level labels (bounding boxes and key points) and pixel-level labels (per pixel class labels for semantic segmentation). Many large-scale datasets are proposed to solve this problem [15, 10, 3]. However, models pre-trained on these large-scale datasets cannot be directly applied to a different task due to the differences between source and target domains.
|
| 16 |
+
|
| 17 |
+
To relax these restrictions, weakly supervised methods are proposed. Weakly supervised methods try to perform detection, localization and segmentation tasks with only image-level labels, which are relatively easy and cheap to
|
| 18 |
+
|
| 19 |
+
obtain. Among these tasks, weakly supervised object localization (WSOL) is the most practical task since it only needs to locate the object with a given class label. Most of these WSOL methods try to enhance the localization ability of classification models to conduct WSOL tasks [19, 28, 29, 2, 27] using the class activation map (CAM) [30].
|
| 20 |
+
|
| 21 |
+
However, in this paper, through ablation studies and experiments, we demonstrate that the localization part of WSOL should be class-agnostic, which is not related to classification labels. Based on these observations, we advocate a paradigm shift which divides WSOL into two independent sub-tasks: the class-agnostic object localization and the object classification. The overall pipeline of our method is in Fig. 1. We name this novel pipeline as Pseudo Supervised Object Localization (PSOL). We first generate pseudo groundtruth bounding boxes based on the class-agnostic method deep descriptor transformation (DDT) [26]. By performing bounding box regression on these generated bounding boxes, our method removes restrictions on most WSOL models, including the restrictions of allowing only one fully connected layer as classification weights [30] and the dilemma between classification and localization [19, 2].
|
| 22 |
+
|
| 23 |
+
We achieve state-of-the-art performances on ImageNet-1k [15] and CUB-200 [25] combining the results of these two independent sub-tasks, obtaining a large edge over previous WSOL models (especially on CUB-200). With classification results of the recent EfficientNet [22] model, we achieve $58.00\%$ Top-1 localization accuracy on ImageNet-1k, which significantly outperforms previous methods.
|
| 24 |
+
|
| 25 |
+
We summarize our contributions as follows.
|
| 26 |
+
|
| 27 |
+
- We show that weakly supervised object localization should be divided into two independent sub-tasks: the class-agnostic object localization and the object classification. We propose PSOL to solve the drawbacks and problems in previous WSOL methods.
|
| 28 |
+
- Though generated bounding boxes are noisy, we argue that we should directly optimize on them without using class labels. With the proposed PSOL, we achieve
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 1: Overall pipeline of previous WSOL methods (top) and our proposed PSOL (bottom). Previous WSOL methods need the final feature map to generate bounding boxes implicitly. However, PSOL first generates inaccurate bounding boxes using class-agnostic methods, then perform bounding box regression to predict the bounding box explicitly.
|
| 32 |
+
|
| 33 |
+
58.00% Top-1 localization accuracy on ImageNet-1k and 74.97% Top-1 localization accuracy on CUB-200, which is far beyond previous state-of-the-art.
|
| 34 |
+
|
| 35 |
+
- Our PSOL method has good localization transferability across different datasets without any fine-tuning, which is significantly better than previous WSOL models.
|
| 36 |
+
|
| 37 |
+
# 2. Related Works
|
| 38 |
+
|
| 39 |
+
Convolutional neural networks (CNN), since the success of AlexNet [8], have been widely applied in many areas of computer vision, including object localization and object detection tasks. We will briefly review detection and localization with full supervision and weak supervision in this section.
|
| 40 |
+
|
| 41 |
+
# 2.1. Fully Supervised Methods
|
| 42 |
+
|
| 43 |
+
After the success of AlexNet [8], researchers tried to adopt CNN to conduct object localization and detection. The pioneering work OverFeat [17] tried to use sliding window and multi-scale techniques to conduct classification, localization and detection within a single network. VGG-Net [18] adds a per-class regression and model ensemble to enhance the prediction result of localization.
|
| 44 |
+
|
| 45 |
+
Object detection is another task that can generate bounding boxes and labels simultaneously. R-CNN [5] and FastRCNN [4] use the selective search [24] to generate candidate regions and then use CNN to classify them. FasterRCNN [14] proposes a two-stage network: the region
|
| 46 |
+
|
| 47 |
+
proposal network (RPN) for generating regions of interest (ROI), then the R-CNN module to classify them and localize the object in the region. These popular two-stage detectors are widely used in detection tasks. YOLO [13] and SSD [11] are one stage detectors with carefully designed network structures and anchors. Recently, some anchor-free detectors are proposed to mitigate the anchor problem in common detectors like CornerNet [9] and CenterNet [31].
|
| 48 |
+
|
| 49 |
+
However, all these methods need massive, detailed and accurate annotations. Annotations in real-world tasks are expensive and sometimes even hard to get. So we need some other methods to perform object localization tasks without requiring many exact labels.
|
| 50 |
+
|
| 51 |
+
# 2.2. Weakly Supervised Methods
|
| 52 |
+
|
| 53 |
+
Weakly supervised object localization (WSOL) learns to localize the object with only image-level labels. It is more attractive since image-level labels are much easier and cheaper to obtain than object level labels. Weakly supervised detection (WSOD) tries to give the object location and category simultaneously when training images only have image-level labels.
|
| 54 |
+
|
| 55 |
+
WSOL has the assumption that there is only one object of the specific category in the whole image. Based on this assumption, many methods are proposed to push the limit of WSOL. [30] first generates class activation maps with the global average pooling layer and the final fully connected layer (weights of the classifier). Grad-CAM [16] uses gradients rather than output features to generate more accurate class response maps. Besides these methods which focus
|
| 56 |
+
|
| 57 |
+
on improving class response maps, some other methods try to make the classification model more suitable for localization tasks. HaS [19] tries to randomly erase some regions in the input image to force the network to be meticulous for WSOL. ACoL [28] uses two parallel classifiers with dynamic erasing and adversarial learning to discover complementary object regions more effectively. SPG [29] generates Self-Produced Guidance masks to localize the whole object. ADL [2] proposes the importance map and the drop mask, with a random selection mechanism to achieve a balance between classification and localization.
|
| 58 |
+
|
| 59 |
+
WSOD does not have the one object in one class restriction. However, WSOD often needs methods to generate region proposals like selective search [24] and edge boxes [32], which will cost much computation resources and time. Furthermore, current WSOD detectors use high resolution inputs to output the bounding boxes, leading to heavy computational burdens. Thus, most WSOD methods are difficult to be applied to large-scale datasets.
|
| 60 |
+
|
| 61 |
+
# 3. Methodology
|
| 62 |
+
|
| 63 |
+
In this section, we will mainly discuss the drawbacks of the current WSOL pipeline and propose our pseudo supervised object localization (PSOL).
|
| 64 |
+
|
| 65 |
+
# 3.1. A paradigm shift from WSOL to PSOL
|
| 66 |
+
|
| 67 |
+
Current WSOL methods can generate the bounding box with a given class label. However, the community have identified serious drawbacks of this pipeline.
|
| 68 |
+
|
| 69 |
+
- The learning objective is indirect, which will hurt the model's performance on localization tasks. HaS [19] and ADL [2] show that localization is not compatible with classification when only having a single CNN model. Localization tries to localize the whole object while classification tries to classify the object. The classification model often tries to localize only the most discriminative part of the object in an image.
|
| 70 |
+
- Offline CAM [30] has the thresholding parameter and needs to store the three-dimensional feature map for further computation. The thresholding value is tricky and hard to determine.
|
| 71 |
+
|
| 72 |
+
Those drawbacks make WSOL hard to apply to real-world applications.
|
| 73 |
+
|
| 74 |
+
Encouraged by the class-agnostic process that generates regions of interest (ROI) in selective search [24] and Faster-RCNN [14], we divide WSOL into two sub-tasks: the class-agnostic object localization and the object classification. Based on these two sub-tasks, we propose our PSOL method. PSOL directly optimizes the localization model on explicitly generated pseudo ground-truth bounding boxes. Hence, it removes the restrictions and drawbacks illustrated
|
| 75 |
+
|
| 76 |
+
# Algorithm 1 Pseudo Supervised Object Localization
|
| 77 |
+
|
| 78 |
+
Input: Training images $I_{tr}$ with class label $L_{tr}$
|
| 79 |
+
|
| 80 |
+
Output: Predicted bounding boxes $b_{te}$ and class labels $L_{te}$ on testing images $I_{te}$
|
| 81 |
+
|
| 82 |
+
1: Generate pseudo bounding boxes $\tilde{b}_{tr}$ on $I_{tr}$
|
| 83 |
+
2: Train a localization CNN $F_{loc}$ on $I_{tr}$ with $\dot{b}_{tr}$
|
| 84 |
+
3: Train a classification CNN $F_{cls}$ on $I_{tr}$ with $L_{tr}$
|
| 85 |
+
4: Use $F_{loc}$ to predict $b_{te}$ on $I_{te}$
|
| 86 |
+
5: Use $F_{cls}$ to predict $L_{te}$ on $I_{te}$
|
| 87 |
+
6: Return: $b_{te}$ , $L_{te}$
|
| 88 |
+
|
| 89 |
+
in previous WSOL methods, and it is a paradigm shift for WSOL.
|
| 90 |
+
|
| 91 |
+
# 3.2. The PSOL Method
|
| 92 |
+
|
| 93 |
+
The general framework of our PSOL is in Algorithm 1. We will introduce our PSOL step by step. We will discuss the details of generating pseudo groundtruth bounding boxes in Sec 3.2.1, then the localization method used in our model in Sec 3.2.2. For the classification method, we use pre-trained models in the computer vision community directly.
|
| 94 |
+
|
| 95 |
+
# 3.2.1 Bounding Box Generation
|
| 96 |
+
|
| 97 |
+
The critical difference between WSOL and our PSOL is the generation of pseudo bounding boxes for training images. Detection is a natural choice for this task since detection models can provide bounding boxes and classes directly. However, the largest dataset in detection only has 80 classes [10], and it cannot provide a general object localizer for datasets with many classes such as ImageNet-1k. Furthermore, current detectors like Faster-RCNN [14] need substantial computation resources and large input image sizes (like shorter side=600 when testing). These issues prevent detection models from being applied to generate bounding boxes on large-scale datasets.
|
| 98 |
+
|
| 99 |
+
Without detection models, we can try some localization methods to output bounding boxes for training images directly. Some weakly and co-supervised methods can generate noisy bounding boxes, and we will give a brief introduction to them.
|
| 100 |
+
|
| 101 |
+
WSOL methods. Existing WSOL methods often follow this pipeline to generate the bounding box for an image. First the image $I$ is feed into the network $F$ , then the final feature map (often the output of the last convolutional layer) $G$ is generated: $G \in \mathbb{R}^{h \times w \times d} = F(I)$ , where $h, w, d$ are the height, width and depth of the final feature map. Then, after global average pooling and the final fully connected layer, the label $L_{pred}$ is produced. According to the predicted label $L_{pred}$ or the ground truth label $L_{gt}$ , we can get the class specific weights in the final fully connected layer
|
| 102 |
+
|
| 103 |
+
$W \in \mathbb{R}^d$ . Then each spatial location of $G$ is channel-wise weighed and summed to get the final heat map $H$ for the specific class: $H_{i,j} = \sum_{k=1}^{d} G_{i,j,k} W_k$ . Finally, $H$ is upsampled to the original input size, and thresholding is applied to generate the final bounding box.
|
| 104 |
+
|
| 105 |
+
DDT recap. Some co-supervised methods can also have good performances on localization tasks. DDT has good performance and little computational resource requirement among these co-supervised methods. So we use DDT [26] as an example. Here is a brief recap of DDT. Given a set of images $S$ with $n$ images, where each image $I \in S$ has the same label, or contains the same object in the image. With a pre-trained model $F$ , the final feature map is also generated: $G \in \mathbb{R}^{h \times w \times d} = \mathbb{R}^{hw \times d} = F(I)$ . Then these feature maps are gathered together into a large feature set: $G_{all} \in \mathbb{R}^{n \times hw \times d} = \mathbb{R}^{nhw \times d}$ . Principal component analysis (PCA) [12] is applied along the depth dimension. After the PCA process, we can get the eigenvector $P$ with the largest eigenvalue. Then, each spatial location of $G$ is channel-wise weighed and summed to get the final heat map $H: H_{i,j} = \sum_{k=1}^{d} G_{i,j,k} P_k$ . Then $H$ is upsampled to the original input size. Zero thresholding and max connected component analysis is applied to generate the final bounding box.
|
| 106 |
+
|
| 107 |
+
We will generate pseudo bounding boxes using both WSOL methods and the DDT method, and evaluate their suitability.
|
| 108 |
+
|
| 109 |
+
# 3.2.2 Localization Methods
|
| 110 |
+
|
| 111 |
+
After generating bounding boxes, we have (pseudo) bounding box annotations for each training image. Then it is natural to perform object localization with these generate boxes. As shown before, detection models are too heavy to handle this task. Thus, it is natural to perform bounding box regression. Previous fully supervised works [18, 17] suggest two methods of bounding box regression: single-class regression (SCR) and per-class regression (PCR). PCR is strongly related to the class label. Since we advocate that localization is a class-agnostic rather than a class-aware task, we choose SCR for all our experiments.
|
| 112 |
+
|
| 113 |
+
We follow previous work to perform bounding box regression [18]. Suppose the bounding box is in the $x, y, w, h$ format, where $x, y$ are the top-left coordinates of the bounding box and $w, h$ are the width and height of the bounding box, respectively. We first transfer $x, y, w, h$ into $x^{*}, y^{*}, w^{*}, h^{*}$ where $x^{*} = \frac{x}{w_{i}}, y^{*} = \frac{y}{h_{i}}, w^{*} = \frac{w}{w_{i}}, h^{*} = \frac{h}{h_{i}}$ , and $w_{i}$ and $h_{i}$ are the width and height of the input image, respectively. We use a sub-network with two fully connected layers and corresponding ReLU layers for regression. Finally, the outputs are sigmoid activated. We use the mean squared error loss ( $\ell_{2}$ loss) for the regression task.
|
| 114 |
+
|
| 115 |
+
Step 2 and step 3 in Algorithm 1 may be combined, i.e.,
|
| 116 |
+
|
| 117 |
+
$F_{cls}$ and $F_{loc}$ can be integrated into a single model, which is jointly trained with classification labels and generated bounding boxes. However, we will show empirically that localization and classification models should be separated.
|
| 118 |
+
|
| 119 |
+
# 4. Experiments
|
| 120 |
+
|
| 121 |
+
# 4.1. Experimental Setups
|
| 122 |
+
|
| 123 |
+
Datasets. We evaluate our proposed method on two common WSOL datasets: ImageNet-1k [15] and CUB200 [25]. The ImageNet-1k dataset is a large dataset with 1000 classes, containing 1,281,197 training images and 50,000 validation images. For training images, bounding box annotations are incomplete, and bounding box labels are complete for validation images. In this paper, we do not use any accurate training bounding box annotations. In our experiments, we generate pseudo bounding boxes on training images by previous methods. The detailed ablation studies will be in Sec 5.1. We train all models on the generated bounding box annotations and classification labels and test them on the validation dataset.
|
| 124 |
+
|
| 125 |
+
For the CUB-200 dataset, it contains 200 categories of birds with 5,994 training images and 5,794 testing images. Each image in the dataset has an accurate bounding box annotation. We follow the strategies on ImageNet-1k to train and test models.
|
| 126 |
+
|
| 127 |
+
Metrics. We use three metrics for evaluating our models: Top-1/Top-5 localization accuracy (Top-1/Top-5 Loc) and localization accuracy with known ground truth class (GT-Known Loc). They are following previous state-of-the-art methods [30, 2]: GT-Known Loc is correct when given the ground truth class to the model, the intersection over union (IoU) between the ground truth bounding box and the predicted box is $50\%$ or more. Top-1 Loc is correct when the Top-1 classification result and GT-Known Loc are both correct. Top-5 Loc is correct when given the Top-5 predictions of groundtruth labels and bounding boxes, there is one prediction which the classification result and localization result are both correct.
|
| 128 |
+
|
| 129 |
+
Base Models. We prepare several baseline models for evaluating our method on localization tasks: VGG16 [18], InceptionV3 [21], ResNet50 [6] and DenseNet161 [7]. Previous methods try to enlarge the spatial resolution of the feature map [28, 29, 2], we do not use this technology in our PSOL models. Previous WSOL methods need the classification weights to turn a 3D feature map into a 2D spatial heat map. However, in PSOL, we do not need the feature map for localization, our model will directly output the bounding box for object localization. For a fair comparison, we modified VGG16 into two versions: VGG-GAP and VGG16. VGG-GAP replaces all fully connected layers in VGG16 with GAP and a single fully connected layer, and VGG16 keeps the original structures in VGG16. For
|
| 130 |
+
|
| 131 |
+
other models, we keep the original structure of each model. For regression, we use a two-layer fully connected network with corresponding ReLU layers to replace the last layer in original networks, as illustrated in Sec 3.2.2.
|
| 132 |
+
|
| 133 |
+
Joint and Separate Optimization In the previous section, we discussed the problem of joint optimization of classification and localization tasks. For ablating this issue, we prepare several models for each base model. For joint optimization models, we add a new bounding box regression branch to the model (-Joint models), and then train this model with both generated bounding boxes and class labels simultaneously. For separate optimization models, we replace the classification part with the regression part (-Sep models), then train these two models separately, i.e., localization models are trained with only generated bounding boxes while classification models are trained with only class labels. The hyperparameters are kept same for all models.
|
| 134 |
+
|
| 135 |
+
# 4.2. Implementation Details
|
| 136 |
+
|
| 137 |
+
We use the PyTorch framework with TitanX Pascal GPUs support. For all models, we use pre-trained classification weights on ImageNet-1k and fine-tune on target localization and classification tasks.
|
| 138 |
+
|
| 139 |
+
For experiments on ImageNet-1k, the hyperparameters are set the same for all models: batch size 256, 0.0005 weight decay and 0.9 momentum. We will fine-tune all models with a start learning rate of 0.001. Added components (like the regression sub-network) will have a larger learning rates due to the random initialization. We train 6 epochs on ImageNet and 30 epochs on CUB-200. For localization only tasks, we keep the learning rate fixed among all epochs. The reason is that DDT generated bounding boxes are noisy, which contain many inaccurate or even totally wrong bounding boxes. The conclusion in [23] shows that for noisy data, we should retain large learning rates. For classification related tasks (including single classification and joint classification and localization tasks), we divide the learning rate by 10 every 2/10 epochs on ImageNet/CUB-200.
|
| 140 |
+
|
| 141 |
+
For testing models, we use ten crop augmentations on ImageNet to output results of the final classification following [28] and [29] on ImageNet and single crop classification results on CUB200, and use single image inputs for all our localization results. We use the center crop techniques to get the image input, e.g., resize to $256 \times 256$ then center crop to $224 \times 224$ for most models except InceptionV3 (resize to $320 \times 320$ then center crop to $299 \times 299$ ), following the setup in [2, 27]. For state-of-the-art classification models, we also follow the input size in their paper, e.g., 600 for EfficientNet-B7.
|
| 142 |
+
|
| 143 |
+
Previous WSOL methods can provide multiple boxes for a single image with different labels. However, our SCR model can only provide one bounding box output for
|
| 144 |
+
|
| 145 |
+
Table 1: The GT-Known Loc accuracy on the ImageNet-1k validation dataset of various weakly and co-supervised localization (DDT) methods.
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Model</td><td>ImageNet-1k</td><td>CUB-200</td></tr><tr><td>VGG16-CAM [30]</td><td>59.00</td><td>57.96</td></tr><tr><td>VGG16-ACoL [28]</td><td>62.96</td><td>59.30</td></tr><tr><td>SPG [29]</td><td>64.69</td><td>60.50</td></tr><tr><td>DDT-ResNet50 [26]</td><td>59.92</td><td>72.39</td></tr><tr><td>DDT-VGG16 [26]</td><td>61.41</td><td>84.55</td></tr><tr><td>DDT-InceptionV3 [26]</td><td>51.87</td><td>51.80</td></tr><tr><td>DDT-DenseNet161 [26]</td><td>61.92</td><td>78.09</td></tr></table>
|
| 148 |
+
|
| 149 |
+
each image. Thus, we combine the output bounding box with Top-1/Top-5 classification outputs of baseline models $(-Sep$ models) or with outputs of the classification branch $(-Joint$ models) to get the final output to evaluate on test images.
|
| 150 |
+
|
| 151 |
+
For experiments on CUB-200, we change the batch size from 256 to 64, and keep other hyperparameters the same as ImageNet-1k.
|
| 152 |
+
|
| 153 |
+
# 5. Results and Analyses
|
| 154 |
+
|
| 155 |
+
In this section, we will provide empirical results, and perform detailed analyses on them.
|
| 156 |
+
|
| 157 |
+
# 5.1. Ablation Studies on How to Generate Pseudo Bounding Boxes
|
| 158 |
+
|
| 159 |
+
Previous WSOL methods can generate bounding boxes with given ground truth labels. Some co-localization methods can also provide bounding boxes with a given class label. Since some annotations are missing in ImageNet-1k training images, we test these methods on the validation/test set of ImageNet-1k and CUB-200 to choose a better method to generate pseudo bounding boxes for PSOL. For the DDT method, we first resize the training images to the resolution size of $448 \times 448$ , then perform DDT on training images. According to the statistics collected on training images, we generate bounding boxes on test images with the correct class label. For other WSOL methods, we follow original instructions in their papers and use pre-trained models to generate bounding boxes on validation/test images with the correct class label.
|
| 160 |
+
|
| 161 |
+
We list the GT-Known Loc of DDT and weakly supervised localization methods in Table 1. As shown in Table 1, DDT achieves comparable results with WSOL methods on ImageNet-1k, but achieves better performance than all WSOL methods on CUB-200. DDT results on CUB-200 indicate that object localization should not be related to classification labels. Furthermore, these WSOL methods need large computational resources, e.g., storing the feature map of each image, then perform off-line CAM operation to
|
| 162 |
+
|
| 163 |
+
Table 2: Empirical localization accuracy results on CUB-200 and ImageNet-1k. The first column of the paper shows the model name, and the second column shows the backbone network for each model. Parameter number and FLOPs are shown in the third and fourth column. Then Top-1/Top-5 Loc accuracy of CUB-200 and ImageNet-1k are shown in the next four columns. The last column illustrates the GT-Known Loc accuracy on ImageNet-1k. For separate models like DDT and our -Sep models, we combine their localization results with classification results of baseline models. For FLOPs calculation, we only calculate convolutional operations as FLOPs and using networks on ImageNet as counting examples. Results with bold are best among the same backbone networks.
|
| 164 |
+
|
| 165 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Backbone</td><td rowspan="2">Parameters</td><td rowspan="2">FLOPs</td><td colspan="2">CUB-200</td><td colspan="3">ImageNet-1k</td></tr><tr><td>Top-1 Loc</td><td>Top-5 Loc</td><td>Top-1 Loc</td><td>Top-5 Loc</td><td>GT-Known Loc</td></tr><tr><td>VGG16-CAM [30]</td><td>VGG-GAP</td><td>14.82M</td><td>15.35G</td><td>36.13</td><td>-</td><td>42.80</td><td>54.86</td><td>59.00</td></tr><tr><td>VGG16-ACoL [28]</td><td>VGG-GAP</td><td>45.08M</td><td>43.32G</td><td>45.92</td><td>56.51</td><td>45.83</td><td>59.43</td><td>62.96</td></tr><tr><td>ADL [2]</td><td>VGG-GAP</td><td>14.82M</td><td>15.35G</td><td>52.36</td><td>-</td><td>44.92</td><td>-</td><td>-</td></tr><tr><td>VGG16-Grad-CAM [16]</td><td>VGG16</td><td>138.36M</td><td>15.42G</td><td>-</td><td>-</td><td>43.49</td><td>53.59</td><td>-</td></tr><tr><td>CutMix [27]</td><td>VGG-GAP</td><td>138.36M</td><td>15.35G</td><td>52.53</td><td>-</td><td>43.45</td><td>-</td><td>-</td></tr><tr><td>DDT-VGG16 [26]</td><td>VGG16</td><td>138.36M</td><td>15.42G</td><td>62.30</td><td>78.15</td><td>47.31</td><td>58.23</td><td>61.41</td></tr><tr><td>PSOL-VGG16-Sep</td><td>VGG16</td><td>274.72M</td><td>30.83G</td><td>66.30</td><td>84.05</td><td>50.89</td><td>60.90</td><td>64.03</td></tr><tr><td>PSOL-VGG16-Joint</td><td>VGG16</td><td>140.46M</td><td>15.42G</td><td>60.07</td><td>75.35</td><td>48.83</td><td>59.00</td><td>62.1</td></tr><tr><td>PSOL-VGG-GAP-Sep</td><td>VGG-GAP</td><td>29.64M</td><td>30.70G</td><td>59.29</td><td>74.88</td><td>48.36</td><td>58.75</td><td>63.72</td></tr><tr><td>PSOL-VGG-GAP-Joint</td><td>VGG-GAP</td><td>15.08M</td><td>15.35G</td><td>58.39</td><td>72.64</td><td>47.37</td><td>58.41</td><td>62.25</td></tr><tr><td>SPG [29]</td><td>InceptionV3</td><td>38.45M</td><td>66.59G</td><td>46.64</td><td>57.72</td><td>48.60</td><td>60.00</td><td>64.69</td></tr><tr><td>ADL [2]</td><td>InceptionV3</td><td>38.45M</td><td>66.59G</td><td>53.04</td><td>-</td><td>48.71</td><td>-</td><td>-</td></tr><tr><td>PSOL-InceptionV3-Sep</td><td>InceptionV3</td><td>53.32M</td><td>11.42G</td><td>65.51</td><td>83.44</td><td>54.82</td><td>63.25</td><td>65.21</td></tr><tr><td>PSOL-InceptionV3-Joint</td><td>InceptionV3</td><td>29.21M</td><td>5.71G</td><td>60.32</td><td>78.98</td><td>52.76</td><td>61.10</td><td>62.83</td></tr><tr><td>ResNet50-CAM [30]</td><td>ResNet50</td><td>25.56M</td><td>4.10G</td><td>29.58</td><td>37.25</td><td>38.99</td><td>49.47</td><td>51.86</td></tr><tr><td>ADL [2]</td><td>ResNet50-SE</td><td>28.09M</td><td>6.10G</td><td>62.29</td><td>-</td><td>48.53</td><td>-</td><td>-</td></tr><tr><td>CutMix [27]</td><td>ResNet50</td><td>26.61M</td><td>4.10G</td><td>54.81</td><td>-</td><td>47.25</td><td>-</td><td>-</td></tr><tr><td>PSOL-ResNet50-Sep</td><td>ResNet50</td><td>50.12M</td><td>8.18G</td><td>70.68</td><td>86.64</td><td>53.98</td><td>63.08</td><td>65.44</td></tr><tr><td>PSOL-ResNet50-Joint</td><td>ResNet50</td><td>26.61M</td><td>4.10G</td><td>68.17</td><td>83.69</td><td>52.82</td><td>62.00</td><td>64.30</td></tr><tr><td>DenseNet161-CAM</td><td>DenseNet161</td><td>29.81M</td><td>7.80G</td><td>29.81</td><td>39.85</td><td>39.61</td><td>50.40</td><td>52.54</td></tr><tr><td>PSOL-DenseNet161-Sep</td><td>DenseNet161</td><td>56.29M</td><td>15.46G</td><td>74.97</td><td>89.12</td><td>55.31</td><td>64.18</td><td>66.28</td></tr><tr><td>PSOL-DenseNet161-Joint</td><td>DenseNet161</td><td>29.81M</td><td>7.80G</td><td>74.24</td><td>87.03</td><td>54.48</td><td>63.41</td><td>65.39</td></tr></table>
|
| 166 |
+
|
| 167 |
+
get the final bounding boxes. Compared to these methods, DDT has little computation requirements and achieves comparable results. For the base model choice of DDT, though DDT-DenseNet161 has higher accuracy than DDT-VGG16 on ImageNet-1k, it runs much slower due to the dense connections and has lower accuracy than DDT-VGG16 on CUB-200. Based on these observations, we choose DDT with VGG16 to generate our bounding boxes on training images in PSOL.
|
| 168 |
+
|
| 169 |
+
# 5.2. Comparison with State-of-the-art Methods
|
| 170 |
+
|
| 171 |
+
In this section, we will compare our PSOL models with state-of-the-art WSOL methods: CAM [30], HaS [19], ACoL [28], SPG [29] and ADL [2] on CUB-200 and ImageNet-1k.
|
| 172 |
+
|
| 173 |
+
We list experimental results in Table 2. Furthermore, we visualize bounding boxes generated by CAM [30], DDT [26] and our methods in Fig. 2. According to these results, we have the following findings.
|
| 174 |
+
|
| 175 |
+
- Without any training, DDT already performs well on both CUB-200 and ImageNet. DDT-VGG16 achieves $47.31\%$ Top-1 Loc accuracy, which has a $2\sim 3\%$ edge over WSOL models based on VGG16. Since DDT is a class-agnostic method, it suggests that WSOL should be divided into two independent sub-tasks: class-agnostic object localization and object classification.
|
| 176 |
+
- All PSOL models with separate training perform better than PSOL models with joint training. In all five baseline models, -Sep models consistently perform better than -Joint models by large margins. These results indicate that learning with joint classification and localization is not suitable.
|
| 177 |
+
- All our PSOL models enjoy a large edge (mostly $>5\%$ ) on CUB-200 compared with state-of-the-art WSOL methods, including the DDT-VGG16 method. CUB-200 is a fine-grained dataset which contains many categories of birds. The within-class varia
|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
CANN
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
|
| 186 |
+

|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
(a) CUB-200-2011
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
Figure 2: Comparison of our methods with CAM and DDT. Please note that in CAM figures, yellow boxes are CAM predicted boxes and red boxes are groundtruth boxes. In figures of our methods, blue boxes are DDT generated boxes, green boxes are predicted boxes by our regression model and red boxes are groundtruth boxes. We use the DenseNet161-Sep model to output DDT and predict boxes. This figure is best viewed in color and zoomed in.
|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
|
| 200 |
+

|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
|
| 204 |
+

|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
(b) ImageNet-1k
|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
|
| 215 |
+
tion is much larger than the between-class variation in most fine-grained datasets [25]. The exact label may not help the process of localization. Hence, the colocalization method DDT will perform better than previous WSOL methods.
|
| 216 |
+
|
| 217 |
+
- CNN has the ability to tolerate some incorrect annotations, and retain high accuracy on validation sets. For all separate localization models, the GT-Known Loc is higher than DDT-VGG16. This phenomenon indicates that CNN can tolerate some annotation errors and learn robust patterns from noisy data.
|
| 218 |
+
- Some restrictions and rules-of-thumb in WSOL do not carry over to PSOL. In previous WSOL papers, only one final fully connected layer is allowed, and large spatial size of the output feature map is recommended. Many methods try to remove the stride of the last downsample convolution layer, which will result in large FLOPs (such as SPG and VGG16-ACoL). Besides this, three fully connected layers in VGG16 are all removed, which will directly affect the accuracy. However, in our experiments, VGG-Full performs significantly better than VGG-GAP. Since CAM requires GAP and only one FC layer, when this restriction is removed, VGG16 can get better performance. Another restriction is the inference path of the network. WSOL needs the output of the last convolutional layer in the model, and often uses simple forward networks (VGG16, GoogLeNet, and InceptionV3). Complex network structures like DenseNet are not recommended and do not perform well in the WSOL problem [30]. As we show in Table 2, CAM achieves poor performance with DenseNet161. DenseNet will use features of every block, not just the last feature to conduct classification. Thus, the semantic meaning of the last feature may not as clear as the last feature of
|
| 219 |
+
|
| 220 |
+
sequential networks like ResNet and VGG. However, PSOL-DenseNet models are directly trained on noisy bounding boxes, which can avoid this problem. Moreover, DenseNet161 achieves the best performance.
|
| 221 |
+
|
| 222 |
+
# 5.3. Transfer Ability on Localization
|
| 223 |
+
|
| 224 |
+
In this section, we will discuss the transferability of different localization models.
|
| 225 |
+
|
| 226 |
+
Previous weakly supervised localization models need the exact label to generate bounding boxes, regardless of the correctness of the label. However, our proposed method does not need the label and directly generate the bounding box. So we are interested in that: Is single object localization task transferable? Does the model trained directly on object localization tasks like trained on image recognition tasks, have good generalization ability?
|
| 227 |
+
|
| 228 |
+
We perform the following experiment. We take object localization models trained on ImageNet-1k, then predict on CUB-200 test images directly, i.e., without any training or fine-tuning process. We add previous WSOL methods for a fair comparison. Since they need exact labels, we fine-tune all these models. For all models marked with *, they are only fine-tuned with classification parts (the last fully connected layer), i.e., features learned on ImageNet-1k are directly transferred to CUB-200. For models marked without *, they are fine-tuned on CUB-200 with all layers. We take our VGG-GAP-Sep model for fair comparison and DenseNet161-Sep model for better results. Results are in Table 3.
|
| 229 |
+
|
| 230 |
+
It is surprising that without any supervision, PSOL object localization models can transfer well from ImageNet-1k to CUB-200, which performs significantly better than previous WSOL methods, including models which only fine-tune the classification weight (models marked with $*$ ), and models which fine-tune the whole weights. It further indicates that objection localization is not dependent on classifica
|
| 231 |
+
|
| 232 |
+
Table 3: Transfer results of our models on CUB-200 and ImageNet-1k. For a fair comparison, we add VGG-GAP with CAM, VGG16-ACoL [28] and SPG [29] for transfer experiments. VGG-GAP is fine-tuned with all layers while VGG-GAP* only fine-tunes the final fully connected layer. Please note that PSOL models trained on ImageNet-1k do not have any training or fine-tuning process on CUB-200.
|
| 233 |
+
|
| 234 |
+
<table><tr><td>Model</td><td>Trained</td><td>Target</td><td>GT-Known Loc</td></tr><tr><td>VGG-GAP + CAM</td><td>CUB-200</td><td>CUB-200</td><td>57.96</td></tr><tr><td>VGG-GAP* + CAM</td><td>ImageNet</td><td>CUB-200</td><td>57.53</td></tr><tr><td>VGG16-ACoL + CAM</td><td>CUB-200</td><td>CUB-200</td><td>59.30</td></tr><tr><td>VGG16-ACoL* + CAM</td><td>ImageNet</td><td>CUB-200</td><td>58.70</td></tr><tr><td>SPG + CAM</td><td>CUB-200</td><td>CUB-200</td><td>60.50</td></tr><tr><td>SPG* + CAM</td><td>ImageNet</td><td>CUB-200</td><td>59.70</td></tr><tr><td>PSOL-VGG-GAP-Sep</td><td>CUB-200</td><td>CUB-200</td><td>80.45</td></tr><tr><td>PSOL-VGG-GAP-Sep</td><td>ImageNet</td><td>CUB-200</td><td>89.11</td></tr><tr><td>PSOL-DenseNet161-Sep</td><td>CUB-200</td><td>CUB-200</td><td>92.54</td></tr><tr><td>PSOL-DenseNet161-Sep</td><td>ImageNet</td><td>CUB-200</td><td>92.07</td></tr></table>
|
| 235 |
+
|
| 236 |
+
Table 4: Top-1 and Top-5 Loc results by combining localization of our models with more state-of-the-art classification models on ImageNet-1k.
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Model</td><td>Top-1</td><td>Top-5</td></tr><tr><td>VGG16-ACoL+DPN131</td><td>53.94</td><td>61.15</td></tr><tr><td>VGG16-ACoL+DPN-ensemble</td><td>54.86</td><td>61.45</td></tr><tr><td>SPG + DPN131</td><td>55.19</td><td>62.76</td></tr><tr><td>SPG + DPN-ensemble</td><td>56.17</td><td>63.22</td></tr><tr><td>PSOL-InceptionV3-Sep + DPN131</td><td>55.72</td><td>63.64</td></tr><tr><td>PSOL-DenseNet161-Sep + DPN131</td><td>56.59</td><td>64.63</td></tr><tr><td>PSOL-InceptionV3-Sep + EfficientNet-B7</td><td>57.25</td><td>64.04</td></tr><tr><td>PSOL-DenseNet161-Sep + EfficientNet-B7</td><td>58.00</td><td>65.02</td></tr></table>
|
| 239 |
+
|
| 240 |
+
tion, and it is inessential to perform object localization with the class label. Furthermore, it proves the advantage of our PSOL method.
|
| 241 |
+
|
| 242 |
+
# 5.4. Combining with State-of-the-art Classification
|
| 243 |
+
|
| 244 |
+
Previous methods try to combine localization outputs with state-of-the-art classification outputs to achieve better localization results. SPG [29] and ACoL [28] combine with DPN networks including DPN-98, DPN-131 and DPN-ensemble [1]. For a fair comparison, we also combine other models' (InceptionV3 and DenseNet161) results with DPN-131. Moreover, EfficientNet [22] achieves better results on ImageNet-1k recently. We combine our localization outputs with EfficientNet-B7's classification outputs. Results are in Table 4.
|
| 245 |
+
|
| 246 |
+
From the table we can see that our model achieves better localization accuracy on ImageNet-1k compared with SPG [29] and ACoL [28] when combining the same classification results from DPN131 [1]. Furthermore, when combining with EfficientNet-B7 [22], we can achieve $58.00\%$
|
| 247 |
+
|
| 248 |
+
Table 5: Compare our method with state-of-the-art fully supervised methods on ImageNet-1k validation datasets.
|
| 249 |
+
|
| 250 |
+
<table><tr><td>Model</td><td>supervision</td><td>Top-5 Loc</td></tr><tr><td>GoogLeNet-GAP [30]</td><td>weak</td><td>57.1</td></tr><tr><td>GoogLeNet-GAP (heuristics) [30]</td><td>weak</td><td>62.9</td></tr><tr><td>VGG16-Sep</td><td>weak</td><td>60.9</td></tr><tr><td>DenseNet161-Sep</td><td>weak</td><td>64.2</td></tr><tr><td>GoogLeNet [20]</td><td>full</td><td>73.3</td></tr><tr><td>OverFeat [17]</td><td>full</td><td>70.1</td></tr><tr><td>AlexNet [8]</td><td>full</td><td>65.8</td></tr><tr><td>VGG16 [18]</td><td>full</td><td>70.5</td></tr><tr><td>VGGNet-ensemble [18]</td><td>full</td><td>73.1</td></tr><tr><td>ResNet + Faster-RCNN-ensemble [14]</td><td>full</td><td>90.0</td></tr></table>
|
| 251 |
+
|
| 252 |
+
Top-1 localization accuracy.
|
| 253 |
+
|
| 254 |
+
# 5.5. Comparison with fully supervised methods
|
| 255 |
+
|
| 256 |
+
We also compare our PSOL with fully supervised localization methods on ImageNet-1k. Fully supervised methods use training images with accurate bounding box annotations in ImageNet-1k to train their models. Results are in Table 5.
|
| 257 |
+
|
| 258 |
+
With the bounding box regression sub-network, our DenseNet161-Sep model can roughly match fully supervised AlexNet with Top-5 Loc accuracy. However, our performances are still worse than fully supervised OverFeat, GoogLeNet and VGGNet. It is noticeable that ResNet + Faster-RCNN-ensemble [14] achieves the best Top-5 Loc accuracy. They transfer region proposal networks trained on ILSVRC detection track, which has 200 classes of fully labeled images, to the 1000-class localization tasks directly. The region proposal network shows good generalization ability among different classes without fine-tuning, which indicates that localization is separated with classification.
|
| 259 |
+
|
| 260 |
+
# 6. Discussions and Conclusions
|
| 261 |
+
|
| 262 |
+
In this paper, we proposed the pseudo supervised object localization (PSOL) to solve the drawbacks in previous weakly supervised object localization methods. Various experiments show that our methods obtain a significant edge over previous methods. Furthermore, our PSOL methods have good transfer ability across different datasets without any training or fine-tuning.
|
| 263 |
+
|
| 264 |
+
For future works, we will try to dive deep into the joint classification and localization problem: We will try to integrate both tasks into a single CNN model with less localization accuracy drop. Another direction is trying to improve the quality of generating bounding boxes with class-agnostic methods. Finally, novel network structures or algorithms on localization problems should be found, which should prevent the high input resolution and computational resources in the current detection framework to apply to large-scale datasets.
|
| 265 |
+
|
| 266 |
+
# References
|
| 267 |
+
|
| 268 |
+
[1] Yunpeng Chen, Jianan Li, Huaxin Xiao, Xiaojie Jin, Shuicheng Yan, and Jiashi Feng. Dual path networks. In NIPS, pages 4467-4475, 2017. 8
|
| 269 |
+
[2] Junsuk Choe and Hyunjung Shim. Attention-based dropout layer for weakly supervised object localization. In CVPR, pages 2219-2228, 2019. 1, 3, 4, 5, 6
|
| 270 |
+
[3] Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The Cityscapes dataset for semantic urban scene understanding. In CVPR, pages 3213-3223, 2016. 1
|
| 271 |
+
[4] Ross Girshick. Fast R-CNN. In ICCV, pages 1440-1448, 2015. 2
|
| 272 |
+
[5] Ross Girshick, Jeff Donahue, Trevor Darrell, and Jitendra Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In CVPR, pages 580-587, 2014. 2
|
| 273 |
+
[6] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770-778, 2016. 4
|
| 274 |
+
[7] Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, pages 4700-4708, 2017. 4
|
| 275 |
+
[8] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, pages 1097-1105, 2012. 2, 8
|
| 276 |
+
[9] Hei Law and Jia Deng. CornerNet: Detecting objects as paired keypoints. In ECCV, volume 11218 of LNCS, pages 734-750, 2018. 2
|
| 277 |
+
[10] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dólar, and C Lawrence Zitnick. Microsoft COCO: Common objects in context. In ECCV, volume 8693 of LNCS, pages 740-755, 2014. 1, 3
|
| 278 |
+
[11] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. SSD: Single shot multibox detector. In ECCV, volume 9905 of LNCS, pages 21-37, 2016. 2
|
| 279 |
+
[12] Karl Pearson. On lines and planes of closest fit to systems of points in space. The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 2(11):559-572, 1901. 4
|
| 280 |
+
[13] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, pages 779-788, 2016. 2
|
| 281 |
+
[14] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards real-time object detection with region proposal networks. In NIPS, pages 91-99, 2015. 2, 3, 8
|
| 282 |
+
[15] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet large scale visual recognition challenge. IJCV, 115(3):211-252, 2015. 1, 4
|
| 283 |
+
[16] Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra.
|
| 284 |
+
|
| 285 |
+
Grad-CAM: Visual explanations from deep networks via gradient-based localization. In ICCV, pages 618-626, 2017. 2, 6
|
| 286 |
+
[17] Pierre Sermanet, David Eigen, Xiang Zhang, Michael Mathieu, Rob Fergus, and Yann LeCun. OverFeat: Integrated recognition, localization and detection using convolutional networks. In ICLR, pages 1-15, 2014. 2, 4, 8
|
| 287 |
+
[18] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, pages 1-14, 2015. 2, 4, 8
|
| 288 |
+
[19] Krishna Kumar Singh and Yong Jae Lee. Hide-and-seek: Forcing a network to be meticulous for weakly-supervised object and action localization. In ICCV, pages 3544-3553, 2017. 1, 3, 6
|
| 289 |
+
[20] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, pages 1-9, 2015. 8
|
| 290 |
+
[21] Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the Inception architecture for computer vision. In CVPR, pages 2818-2826, 2016. 4
|
| 291 |
+
[22] Mingxing Tan and Quoc Le. EfficientNet: Rethinking model scaling for convolutional neural networks. In ICML, pages 6105-6114, 2019. 1, 8
|
| 292 |
+
[23] Daiki Tanaka, Daiki Ikami, Toshihiko Yamasaki, and Kiyoharu Aizawa. Joint optimization framework for learning with noisy labels. In CVPR, pages 5552-5560, 2018. 5
|
| 293 |
+
[24] Jasper RR Uijlings, Koen EA Van De Sande, Theo Gevers, and Arnold WM Smeulders. Selective search for object recognition. IJCV, 104(2):154-171, 2013. 2, 3
|
| 294 |
+
[25] C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. The Caltech-UCSD birds-200-2011 dataset. Technical Report CNS-TR-2011-001, California Institute of Technology, 2011. 1, 4, 7
|
| 295 |
+
[26] Xiu-Shen Wei, Chen-Lin Zhang, Jianxin Wu, Chunhua Shen, and Zhi-Hua Zhou. Unsupervised object discovery and co-localization by deep descriptor transformation. Pattern Recognition, 88:113-126, 2019. 1, 4, 5, 6
|
| 296 |
+
[27] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. CutMix: Regularization strategy to train strong classifiers with localizable features. In ICCV, page in press, 2019. 1, 5, 6
|
| 297 |
+
[28] Xiaolin Zhang, Yunchao Wei, Jiashi Feng, Yi Yang, and Thomas S Huang. Adversarial complementary learning for weakly supervised object localization. In CVPR, pages 1325-1334, 2018. 1, 3, 4, 5, 6, 8
|
| 298 |
+
[29] Xiaolin Zhang, Yunchao Wei, Guoliang Kang, Yi Yang, and Thomas Huang. Self-produced guidance for weakly-supervised object localization. In ECCV, volume 11216 of LNCS, pages 610-625, 2018. 1, 3, 4, 5, 6, 8
|
| 299 |
+
[30] Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning deep features for discriminative localization. In CVPR, pages 2921-2929, 2016. 1, 2, 3, 4, 5, 6, 7, 8
|
| 300 |
+
[31] Xingyi Zhou, Dequan Wang, and Philipp Krahenbuhl. Objects as points. arXiv preprint arXiv:1904.07850, 2019. 2
|
| 301 |
+
|
| 302 |
+
[32] C Lawrence Zitnick and Piotr Dólar. Edge boxes: Locating object proposals from edges. In ECCV, volume 8693 of LNCS, pages 391-405, 2014. 3
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8868000de04bd04cab4383044c7e31d9562430714b7fa0cd5439b2ba7f2214e7
|
| 3 |
+
size 575436
|
rethinkingtheroutetowardsweaklysupervisedobjectlocalization/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fede1265902256c53f4a11699ec39a9737e50cbe063877b79670c817d241f326
|
| 3 |
+
size 351773
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1324c5ffd3f5211020c89113d3832d847f7312b12fdfe58f8776fa7a705d8e81
|
| 3 |
+
size 80171
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a35577749fff34726b1ee18ebda58e91066ae6c047ab42e9421bc8e4bebe01c
|
| 3 |
+
size 103107
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/3aee7e3b-fcbe-42a5-8f3f-f20164799dd7_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e027038d3e9395336999e6a282b681c3b022925c20a055a363d5085c15c70caa
|
| 3 |
+
size 896264
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/full.md
ADDED
|
@@ -0,0 +1,360 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Rethinking Zero-shot Video Classification: End-to-end Training for Realistic Applications
|
| 2 |
+
|
| 3 |
+
Biagio Brattoli*
|
| 4 |
+
Heidelberg University
|
| 5 |
+
|
| 6 |
+
biagio.brattoli@iwr.uni-heidelberg.de
|
| 7 |
+
|
| 8 |
+
Pietro Perona Amazon
|
| 9 |
+
|
| 10 |
+
perona@caltech.edu
|
| 11 |
+
|
| 12 |
+
Joseph Tighe Amazon
|
| 13 |
+
|
| 14 |
+
tighe@amazon.com
|
| 15 |
+
|
| 16 |
+
Fedor Zhdanov
|
| 17 |
+
Amazon
|
| 18 |
+
|
| 19 |
+
fedor@amazon.com
|
| 20 |
+
|
| 21 |
+
Krzysztof Chalupka
|
| 22 |
+
Amazon
|
| 23 |
+
|
| 24 |
+
chalupkk@amazon.com
|
| 25 |
+
|
| 26 |
+
# Abstract
|
| 27 |
+
|
| 28 |
+
Trained on large datasets, deep learning (DL) can accurately classify videos into hundreds of diverse classes. However, video data is expensive to annotate. Zero-shot learning (ZSL) proposes one solution to this problem. ZSL trains a model once, and generalizes to new tasks whose classes are not present in the training dataset. We propose the first end-to-end algorithm for ZSL in video classification. Our training procedure builds on insights from recent video classification literature and uses a trainable 3D CNN to learn the visual features. This is in contrast to previous video ZSL methods, which use pretrained feature extractors. We also extend the current benchmarking paradigm: Previous techniques aim to make the test task unknown at training time but fall short of this goal. We encourage domain shift across training and test data and disallow tailoring a ZSL model to a specific test dataset. We outperform the state-of-the-art by a wide margin. Our code, evaluation procedure and model weights are available at github.com/bbrattoli/ZeroShotVideoClassification.
|
| 29 |
+
|
| 30 |
+
# 1. Introduction
|
| 31 |
+
|
| 32 |
+
Training image and video classification algorithms requires large training datasets [21, 27, 51, 52, 53]. With no task-specific training data available one may still attempt to train a model using related information and transfer the learned knowledge to classify previously unseen categories. This approach is called zero-shot learning (ZSL) [29, 34] and it is quite successful in the image domain [41, 42, 44, 45, 47, 56].
|
| 33 |
+
|
| 34 |
+
We focus on ZSL for video action recognition, where data sourcing and annotation is particularly expensive.
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
Figure 1: (Top) Our model is state-of-the-art (error computed on the UCF test dataset.) (Bottom) Our e2e model is simple but powerful. URL [64], Action2Vec [18] and TARN [4] are state-of-the-art approaches. Gray blocks represent modules fixed during training. Colors (blue, red, orange, yellow) indicate modules trained in separate stages.
|
| 38 |
+
|
| 39 |
+
Since the set of possible human actions is huge, action recognition is a great ZSL testbed. Trained on large-scale academic datasets [11, 17, 24, 25, 28, 50], supervised 3D convolutional neural networks (CNNs) proved successful in this domain [12, 51, 52]. How well modern deep networks can recognize human actions in the ZSL setting is, however, an open question.
|
| 40 |
+
|
| 41 |
+
To our knowledge, all current ZSL methods for video
|
| 42 |
+
|
| 43 |
+
recognition use pretrained visual embeddings [1, 4, 18, 33, 35, 54, 55, 58, 59, 60, 61, 64]. This provides a good tradeoff between training efficiency and using prior knowledge. Shallow trainable models then convert the pretrained representations to ZSL embeddings, as shown in Fig. 1 (Bottom). Low training space complexity of shallow models allows them to benefit from long video sequences [51] and large feature extractors [21].
|
| 44 |
+
|
| 45 |
+
In contrast, state-of-the-art algorithms in the fundamental CV domains of image classification [21], object detection [36, 38, 49] and segmentation [8, 20, 63] all rely on end-to-end (e2e) training. Representation learning is at the core of deep networks' success across machine learning domains [3], and deeper models can better utilize information available in large datasets [2, 21]. This poses a question: How can an e2e ZSL compete with current methods?
|
| 46 |
+
|
| 47 |
+
Our contributions involve multiple aspects of ZSL video classification:
|
| 48 |
+
|
| 49 |
+
Novel Modeling: We propose the first e2e-trained model for zero-shot action recognition. The training procedure is inspired by modern supervised video classification practices. Fig. 1 shows that our method is simple, yet outperforms previous work. Moreover, we devise a novel easy pretraining technique that targets the ZSL scenario for video recognition.
|
| 50 |
+
|
| 51 |
+
Evaluation Protocol: We propose a novel ZSL training and evaluation protocol that enforces a realistic ZSL setting. Extending the work of Roitberg et al. [40], we test a single trained model on multiple test datasets, where sets of training and test classes are disjoint. In addition, we argue that training and test domains should not be identical.
|
| 52 |
+
|
| 53 |
+
In-depth Analysis: We perform an in-depth analysis of the e2e model and a pretrained baseline. In a series of guided experiments we explore the characteristics of good ZSL datasets.
|
| 54 |
+
|
| 55 |
+
Our model, training and evaluation code, are available at github.com/bbrattoli/ZeroShotVideoClassification.
|
| 56 |
+
|
| 57 |
+
# 2. Related work
|
| 58 |
+
|
| 59 |
+
We focus on inductive ZSL in which test data is fully unknown at training time. There exists a body of literature on transductive ZSL [1, 33, 54, 55, 59, 58, 60], where test images or videos are available during training but test labels are not. We do not discuss the transductive approach in this work.
|
| 60 |
+
|
| 61 |
+
Video classification: Modern, DL-based video classification methods fall largely into two categories: 2D networks [48, 53] that operate on 1-5 frame snippets and 3D networks [5, 6, 7, 12, 19, 31, 46, 51, 52] that operate on 16-128 frames. One of the earliest works of this type, Simonyan and Zisserman [48], trained with only 1-5 frames sampled randomly from the video. At inference many more
|
| 62 |
+
|
| 63 |
+

|
| 64 |
+
Figure 2: Training and test classes, t-SNE [30] visualization of Word2Vec embeddings. Red dots represent training classes we used, and gray dots training classes we removed in order to separate training and test data. Crosses represent test classes. Pictures are actual dataset videoframes.
|
| 65 |
+
|
| 66 |
+
frames were sampled and the classifier outputs were averaged across all samples taken for a video clip. This implied that looking at a large chunk of the video was important during inference but wasn't strictly required during training. Wang et al. [53] showed that sampling multiple frames throughout the video during training could improve performance, opening the question whether training also requires a large temporal context. However, a body of later work based on more powerful 3D networks [7, 12, 51] showed that for most datasets sampling 16 frames during training is sufficient. Increasing training frame count from 16 to 128 improved performance only marginally.
|
| 67 |
+
|
| 68 |
+
In this work, we adapt the training-time sampling philosophy of state-of-the-art video classification to the ZSL setup. This allows us to train the visual embedding e2e. As a consequence, the overall architecture and inference procedure are very simple compared to previous work, and the results are state-of-the-art - as shown in Fig. 1.
|
| 69 |
+
|
| 70 |
+
Zero shot video classification: The common practice in zero-shot video classification is to first extract visual features from video frames using a pretrained network such as C3D [51] or ResNet [21], then trains a temporal model that maps the visual embedding to a semantic embedding space [4, 13, 14, 15, 16, 18, 35, 61, 64]. Good generalization on semantic embeddings of class names means that the model can be applied to new videos where the possible
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 3: Removing overlapping training and test classes. The y-axis shows Kinetics classes closest to the test sets UCF and HMDB. x-axis shows the distance (see Eq. 4) of the corresponding closest test class. In our experiments, we removed training classes closer than $\tau = 0.05$ to the test set - to the left of the red line in the figure.
|
| 74 |
+
|
| 75 |
+
output classes are not present in training data. Inference reduces to finding the test class whose embedding is the nearest-neighbor of the model's output. Word2Vec [32] is commonly used to produce the ground-truth word embeddings. An alternative approach is to use manually crafted class attributes [23]. We decided not to pursue the manual approach as it harder to apply in general scenarios.
|
| 76 |
+
|
| 77 |
+
Two effective recent methods, Hahn et al. [18] and Bishay et al. [4], extract C3D features from 52 clips of 16 frames from each video. They then learn a recurrent neural network [10, 22] to encode the result as a single vector. Finally, a fully connected layer maps the encoded video into Word2Vec embedding. Fig. 1 illustrates this approach. Both [18] and [4] use the same dataset for training and testing, after splitting the available dataset classes into two sets. Using a pretrained deep network is convenient because preextracted visual features easily fit in GPU memory, even for a large number of video frames. Alternative approaches use generative models to compensate for the gap between semantic and visual distributions [33, 62]. Unfortunately, performance is limited by the inability to fine-tune the visual embedding. We show fine-tuning is crucial to generalize
|
| 78 |
+
|
| 79 |
+
across datasets.
|
| 80 |
+
|
| 81 |
+
Our work is similar to Zhu et al. [64] in that both methods learn a universal action representation that generalizes across datasets. However, their proposed model does not leverage the potential of 3D CNNs. Instead, they utilize the very deep ResNet200 [21], pretrained on ImageNet [9, 43], which cannot utilize temporal information.
|
| 82 |
+
|
| 83 |
+
As pointed out by Roitberg et al. [40], previous works train their models on actions overlapping with those of the target dataset, violating ZSL assumptions. For example, Zhu et al. [64] train on the full ActivityNet [11] dataset. This makes their results difficult to fairly compare with ours. Under our definition of ZSL (Sec. 3.3), Zhu et al. have 23 classes in their training datasets that overlap with the test dataset. The situation is similar for all other methods to varying degrees.
|
| 84 |
+
|
| 85 |
+
# 3. Zero-shot action classification
|
| 86 |
+
|
| 87 |
+
We first carefully define ZSL in the context of video classification. This will allow us to propose not only a new ZSL algorithm, but also a clear evaluation protocol that we hope will direct future research towards practical ZSL solutions. We stay within the inductive setting, as described in Sec. 2.
|
| 88 |
+
|
| 89 |
+
# 3.1. Problem setting
|
| 90 |
+
|
| 91 |
+
A video classification task is defined by a training set (source) $D_{s} = \{(x_{1},c_{1}),\dots ,(x_{N_{s}},c_{N_{s}})\}$ consisting of pairs of videos $x$ and their class labels $c$ , and a video-label test set $D_{t}$ . In addition, previous work often uses pretraining datasets $D_{p}$ as explained in Sec. 2.
|
| 92 |
+
|
| 93 |
+
Intuitively, ZSL is any procedure for training a classification model on $D_{s}$ (and possibly $D_{p}$ ) and then testing on $D_{t}$ where $D_{t}$ does not overlap with $D_{s} \cup D_{p}$ . How this overlap is defined varies. Sec. 3.3 proposes a definition that is more restrictive than those used by previous work, and forces the algorithms into a more realistic ZSL setting.
|
| 94 |
+
|
| 95 |
+
ZSL classifiers need to generalize to unseen test classes. One way to achieve this is using nearest-neighbor search in a semantic class embedding space.
|
| 96 |
+
|
| 97 |
+
Formally, given a video $x$ , we infer the corresponding semantic embedding $z = g(x)$ and classify $x$ as the nearest-neighbor of $z$ in the set of embeddings of the test classes. Then, a trained classification model $M(\cdot)$ outputs
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
M (x) = \underset {c \in D _ {t}} {\operatorname {a r g m i n}} \cos (g (x), \mathrm {W} 2 \mathrm {V} (c)). \tag {1}
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
where $\cos$ is the cosine distance and the semantic embedding is computed using the Word2Vec function [32] W2V: $\mathcal{C}\to \mathbb{R}^{300}$
|
| 104 |
+
|
| 105 |
+
The function $g = f_s \circ f_v$ is a composition of a visual encoder $f_v \colon x \mapsto y$ and a semantic encoder $f_s \colon y \mapsto z \in \mathbb{R}^{300}$ .
|
| 106 |
+
|
| 107 |
+
# 3.2. End-to-end training
|
| 108 |
+
|
| 109 |
+
In previous work, the visual embedding function $f_{v}$ is either hand-crafted [60, 64] or computed by a pretrained deep network [4, 18, 55, 64]. It is fixed during optimization, forcing model development to focus on improving $f_{s}$ . Resulting models need to learn to transform fixed visual embeddings into meaningful semantic features and can be very complex, as shown in Fig. 1 (Bottom).
|
| 110 |
+
|
| 111 |
+
Instead, we propose to optimize both $f_{v}$ and $f_{s}$ at the same time. Such e2e training offers multiple advantages:
|
| 112 |
+
|
| 113 |
+
1. Since $f_{v}$ provides a complex computation engine, $f_{s}$ can be a simple linear layer (see Fig. 1).
|
| 114 |
+
2. We can implement the full model using standard 3D CNNs.
|
| 115 |
+
3. Pretraining the visual embedding on a classification task is not necessary.
|
| 116 |
+
|
| 117 |
+
End-to-end optimization using the full video is unfeasible due to GPU memory limitations. Our implementation is based on standard video classification methods which are effective even when only a small snippet is used during training, as discussed in detail in Sec 2. Formally, given a training video/class pair $(x,c)\in D_s$ we extract a snippet $x^t$ of 16 frames at a random time $t\leq (\mathrm{len}(x) - 16)$ . The network is optimized by minimizing the loss
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
L = \sum_ {(x, c) \in D _ {s}} \| \mathrm {W} 2 V (c) - \left(f _ {s} \circ f _ {v}\right) \left(x ^ {t}\right) \| ^ {2}. \tag {2}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Inference procedure is similar but pools information from multiple snippets following Wang et al. [53]. Sec. 4.4 details both our training and inference procedures.
|
| 124 |
+
|
| 125 |
+
To better understand our method's performance under various experimental conditions, we implemented a baseline model that uses identical $f_{s}$ , $f_{v}$ and training data, but fixes $f_{v}$ 's weights to values pretrained on the classification task (available out-of-the-box in the most recent PyTorch implementation, see Sec. 4.4). This was necessary since we were not able to access implementations of any of the state-of-the-art methods ([4, 18, 64]). Unfortunately, our own re-implementations achieved results far below numbers reported by their authors, even with their assistance.
|
| 126 |
+
|
| 127 |
+
# 3.3. Towards realistic ZSL
|
| 128 |
+
|
| 129 |
+
To ensure that our ZSL setting is realistic, we extend the methods of [40] that carefully separates training and test data. This is cumbersome to achieve in practice, and has not been attempted by most previous work. We hope that our clear formulation of the training and evaluation protocols will make it easy for future researchers to understand the performance of their models in true ZSL scenarios.
|
| 130 |
+
|
| 131 |
+
Non-overlapping training and test classes: Our first goal is to make sure that $D_{s} \cup D_{p}$ and $D_{t}$ have "non-overlapping classes". The simple solution - to remove
|
| 132 |
+
|
| 133 |
+
source class names from target classes or vice-versa - does not work, because two classes with slightly different names can easily refer to the same concept, as shown in Fig. 3. A distance between class names is needed. Equipped with such a metric, we can make sure training and test classes are not too similar. Formally, let $d \colon \mathcal{C} \to \mathcal{C}$ denote a distance metric on the space of all possible class names $\mathcal{C}$ , and let $\tau \in \mathbb{R}$ denote a similarity threshold. A video classification task fully respects the zero-shot constraint if
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\forall c _ {s} \in D _ {s} \cup D _ {p}, \min _ {c _ {t} \in D _ {t}} d \left(c _ {s}, c _ {t}\right) > \tau . \tag {3}
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
A straightforward way to define $d$ is using semantic embeddings of class names. We define the distance between two classes to be simply
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
d \left(c _ {1}, c _ {2}\right) = \cos \left(\mathrm {W} 2 \mathrm {V} \left(c _ {1}\right), \mathrm {W} 2 \mathrm {V} \left(c _ {2}\right)\right) \tag {4}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
where $\cos$ indicates cosine distance. This is consistent with the use of the cosine distance in the ZSL setting as we do in Eq. 1. Fig. 2 shows an embedding of training and test classes after we removed from Kinetics classes overlapping with test data using the procedure outlined above. Fig. 3 shows the distribution of distances between training and test classes in our datasets. There is a cliff between distances very close to 0 and larger than 0.1. In our experiments we use $\tau = 0.05$ as a natural, unbiased threshold.
|
| 146 |
+
|
| 147 |
+
Different training and test video domains: We argue that video domains of $D_{s} \cup D_{p}$ and $D_{t}$ should differ. In previous work, the standard evaluation protocol is to use one dataset for training and testing, using 10 random splits. This does not account for domain shifts that happen in real world scenarios due to data compression, camera artefacts, and so on. For this reason ZSL training and test datasets should ideally have disjoint video sources.
|
| 148 |
+
|
| 149 |
+
Multiple test datasets: A single ZSL model should perform well on multiple test datasets. As outlined above, previous works train and test anew for each available dataset (typically UCF and HMDB). In our experiments, training happens only once on the Kinetics dataset [25], and testing on all of UCF [50], HMDB [28] and ActivityNet [11].
|
| 150 |
+
|
| 151 |
+
# 3.4. Easy pretraining for video ZSL
|
| 152 |
+
|
| 153 |
+
In a real-world scenario a model is trained once and then deployed on diverse unseen test datasets. A large and diverse training dataset is crucial to achieve good performance. Ideally, the training dataset would be tailored to the general domain of inference – for example, a strong ZSL surveillance model to be deployed at multiple unknown locations would require a large surveillance and action recognition dataset.
|
| 154 |
+
|
| 155 |
+
Sourcing and labeling domain-specific video datasets is, however, very expensive. On the other hand, annotating images is considerably faster. Therefore, we designed a simple
|
| 156 |
+
|
| 157 |
+
<table><tr><td>Dataset</td><td>VisualFeat</td><td>UCF</td><td>HMDB</td><td>Activity</td></tr><tr><td>URL [64]</td><td>ResNet200</td><td>42.5</td><td>51.8</td><td>-</td></tr><tr><td>DataAug [60]</td><td>-</td><td>18.3</td><td>19.7</td><td>-</td></tr><tr><td>InfDem [39]</td><td>I3D</td><td>17.8</td><td>21.3</td><td>-</td></tr><tr><td>Bidirectional [55]</td><td>IDT</td><td>21.4</td><td>18.9</td><td>-</td></tr><tr><td>FairZSL [40]</td><td>-</td><td>-</td><td>23.1</td><td>-</td></tr><tr><td>TARN [4]</td><td>C3D</td><td>19</td><td>19.5</td><td>-</td></tr><tr><td>Action2Vec [18]</td><td>C3D</td><td>22.1</td><td>23.5</td><td>-</td></tr><tr><td>Ours(605classes)</td><td>C3D</td><td>41.5</td><td>25.0</td><td>24.8</td></tr><tr><td>Ours(664classes)</td><td>C3D</td><td>43.8</td><td>24.7</td><td>-</td></tr><tr><td>Ours(605classes)</td><td>R(2+1)D_18</td><td>44.1</td><td>29.8</td><td>26.6</td></tr><tr><td>Ours(664classes)</td><td>R(2+1)D_18</td><td>48</td><td>32.7</td><td>-</td></tr></table>
|
| 158 |
+
|
| 159 |
+
Table 1: Comparison with the state-of-the-art on standard benchmarks. We evaluate on half test classes following Evaluation Protocol 1 (Sec. 4.3). Ours(605classes) indicates we removed all training classes that overlap with UCF, HMDB, or ActivityNet. Ours(664classes) indicates we removed only training classes overlapping with UCF and HMDB. We outperform previous work in both scenarios. Sec. 2 argues that URL's results are not compatible with other works as their training and test sets overlap and their VisualFeat is an order of magnitude deeper.
|
| 160 |
+
|
| 161 |
+
dataset augmentation scheme which creates synthetic training videos from still images. Sec. 5 shows that pretraining our model using this dataset boosts performance, especially if available training data is small.
|
| 162 |
+
|
| 163 |
+
We convert images to videos using the Ken Burns effect: a sequence of crops moving around the image simulates video-like motion. Sec. 4.1 provides more details.
|
| 164 |
+
|
| 165 |
+
Our experiments focus on the action recognition domain. In action recognition (as well as in many other classification tasks), location and scenery of the video is strongly predictive of action category. Because of this we choose SUN [57], a standard scene recognition dataset. Fig. 2 shows the complete class embedding of our the scene dataset's class names.
|
| 166 |
+
|
| 167 |
+
# 4. Experimental setup
|
| 168 |
+
|
| 169 |
+
To facilitate reproducibility, we describe our training and evaluation protocols in detail. The protocols propose one way of training and evaluating ZSL models that is consistent with our definitions in Sec. 3.3.
|
| 170 |
+
|
| 171 |
+
# 4.1. Datasets
|
| 172 |
+
|
| 173 |
+
UCF101 [50] has 101 action classes primarily focused around sports, with 13320 videos sourced from YouTube. HMDB51 [28] is divided into 51 human actions focused around sports and daily activities and contains 6767 videos
|
| 174 |
+
|
| 175 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">UCF</td><td colspan="2">HMDB</td><td colspan="2">Activity</td></tr><tr><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td>URL [64]</td><td>34.2</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>664classes</td><td>37.6</td><td>62.5</td><td>26.9</td><td>49.8</td><td>-</td><td>-</td></tr><tr><td>605classes</td><td>35.3</td><td>60.6</td><td>24.8</td><td>44.0</td><td>20.0</td><td>42.7</td></tr></table>
|
| 176 |
+
|
| 177 |
+
Table 2: Evaluation on all test classes. In contrast to Table 1, here we report results of our method applied to all three test datasets using Evaluation Protocol 2 (Sec. 4.3). We applied a single model trained on classes dissimilar from all of UCF, HMDB and ActivityNet. Nevertheless, we outperform URL [64] on UCF101. URL authors do not report results on full HMDB51. Remaining previous work do not report results on neither full UCF101 nor full HMDB51.
|
| 178 |
+
|
| 179 |
+
sourced from commercial videos and YouTube. ActivityNet [11] contains 27,801 untrimmed videos divided in 200 classes focusing on daily activities with videos sourced using web search. We extracted only the labeled frames from each video. Kinetics [25] is the largest currently available action recognition dataset, covering a wide range of human activity. The first version of the dataset contains over 200K videos divided in 400 categories. The newest version has 700 classes for a total of 541624 videos sourced from YouTube. SUN397 [57] (see Sec. 3.4) is a scene understanding image dataset. It contains 397 scene categories for a total of over 100K high-resolution images. We converted it to a simulated video dataset using the Ken Burns effect: To create a 16-frame video from an image, we randomly choose "start" and "end" crop locations (and crop sizes) in the image, and linearly interpolate to obtain 16 crops. Each of them are then resized to $112 \times 112$ .
|
| 180 |
+
|
| 181 |
+
# 4.2. Training protocol
|
| 182 |
+
|
| 183 |
+
Our experiments in Sec. 5 use two training methods:
|
| 184 |
+
|
| 185 |
+
Training Protocol 1: Remove from Kinetics 700 all the classes whose distance to any class in UCF $\cup$ HMDB is smaller than $\tau$ (see Eq. 4). This results in a subset of Kinetics with 664 classes, which we call Kinetics 664. As explained in Sec. 3.3, this setting is already more restrictive than that of the previous methods, which train new models for each test dataset.
|
| 186 |
+
|
| 187 |
+
Training Protocol 2: Remove from Kinetics 700 all the classes whose distance to any class in UCF $\cup$ HMDB $\cup$ ActivityNet is smaller than $\tau$ (see Eq. 4). This results in a subset of Kinetics with 605 classes which we call Kinetics 605. This setting is even more restrictive, but is closer to true ZSL. Our goal is to show that it is possible to train a single ZSL model that applies to multiple diverse test datasets.
|
| 188 |
+
|
| 189 |
+
Figure 2 shows a t-SNE projection of the semantic embeddings of all Kinetics 700 classes, as well as the 101 UCF
|
| 190 |
+
|
| 191 |
+
classes and the classes we removed to obtain Kinetics 664.
|
| 192 |
+
|
| 193 |
+
# 4.3. Evaluation protocol
|
| 194 |
+
|
| 195 |
+
We tested our model using two protocols: the first follows Sec. 3.3 to emulate a true ZSL setting, the second is compatible with previous work. Both Evaluation Protocols apply the same model to multiple test datasets.
|
| 196 |
+
|
| 197 |
+
Evaluation Protocol 1: In order to make our results comparable with previous work, we use the following procedure: Randomly choose half of the test dataset's classes, 50 for UCF and 25 for HMDB. Evaluate the classifier on that test set. Repeat ten times and average the results for each test dataset.
|
| 198 |
+
|
| 199 |
+
Evaluation Protocol 2: Previous work uses random training/test splits of UCF [50] and HMDB [28] to evaluate their algorithms. However, we train on a separate dataset Kinetics 664 / 605 and can test on full UCF and HMDB. This allows us to return more realistic accuracy scores. The evaluation protocol is simple: evaluate the classifier on all 101 UCF classes and all 51 HMDB classes.
|
| 200 |
+
|
| 201 |
+
# 4.4. Implementation details
|
| 202 |
+
|
| 203 |
+
In our experiments, $f_{v}$ (see Sec. 3.1) is the PyTorch implementation of R(2+1)D_18 [52] or C3D[51]. In the pretrained setting, we use the out-of-the-box R(2+1)D_18 pretrained on Kinetics 400[25], while C3D is pretrained on Sports-1M[24]. In the e2e setting, we initialize the model with the pretrained=True argument. The visual embedding $f_{v}(x)$ is BxTx512 where B is the batch size and T is the number of clips per video. We use $T = 1$ for training, and $T = 25$ for evaluation in Tables 1 and 2. The clips are 16 frames long and we choose them following standard protocols established by Wang et al. [53]. We average $f_{v}(x)$ across time (video snippets) similarly to previous approaches [51, 64]. $f_{s}$ is a linear classifier with 512x300 weights. The output of $f_{s} \circ f_{v}$ is of shape Bx300.
|
| 204 |
+
|
| 205 |
+
We follow standard protocol in computing semantic embeddings of class names [4, 58, 64]. Word2Vec [32] - in particular, the gesim [37] Python implementation - encodes each word. We average multi-word class names. In rare cases of words not available in the pretrained W2V model (for example, 'rubiks' or 'photobombing') we manually change the words (see the code for more details). Formally, for a class name consisting of N words $c = [c^1,\dots ,c^N ]$ we embed it as $\mathrm{W}2V(c) = \sum_{i = 1}^{N}\mathrm{W}2V(c^i)\in \mathbb{R}^{300}$ . We set $\tau$ to 0.05 following the analysis in Sec. 3.3 based on Fig. 3.
|
| 206 |
+
|
| 207 |
+
To minimize the loss of Eq. 2 we use the Adam optimizer [26], starting with a learning rate of $1e - 3$ . Batch size is 22 snippets, with 16 frames each. The model trained for 150 epochs, with a tenfold learning rate decrease at epochs 60 and 120. All experiments are performed on the Nvidia Tesla V100 GPU.
|
| 208 |
+
|
| 209 |
+
Following [51], we reshaped each frame's shortest side
|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
Figure 4: Number of training classes matters in ZSL. Orange curves show performance on subsets of Kinetics 664, as we keep all the training classes and increase the subset size. The blue curves, whose markers become progressively brighter, indicate a separate experiment where we increased the number of training classes starting from 2, all the way up to 664 (Sec. 5.2). For any given training dataset size, performance on test data is much better with more training classes. In addition, when few training classes are available the e2e model is not able to outperform the baseline.
|
| 213 |
+
|
| 214 |
+
to 128 pixels, and cropped a random $112 \times 112$ patch on training and the center patch on inference.
|
| 215 |
+
|
| 216 |
+
# 5. Results
|
| 217 |
+
|
| 218 |
+
Our experiments have two goals: compare our method to previous work and investigate our method's performance vs the baseline (see Sec. 3.2.) The first is necessary to validate that e2e ZSL on videos can outperform more complex approaches that use pretrained features. The latter will allow us to understand under what conditions e2e training can be particularly beneficial.
|
| 219 |
+
|
| 220 |
+
# 5.1. Comparison to the state of the art
|
| 221 |
+
|
| 222 |
+
Table 1 compares our method to existing approaches. We followed our Training and Evaluation Protocol 1, as described in Sections 4.2 and 4.3. Our protocols are more restrictive than that of previous methods: we removed training classes that overlap with test classes, introduced domain shift, and applied one model to multiple test datasets. Despite this, we outperform previous video-based methods by a large margin. Furthermore, when testing on UCF we outperform URL [64] which uses a network an order of mag-
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
1 cluster. Error 0.84
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
3 clusters. Error 0.89
|
| 229 |
+
Figure 5: Diverse training classes are good for ZSL. Here we trained our algorithm on subsets of 50 Kinetics 664 classes. (Top left) Training classes picked uniformly at random. (Top right) We clustered Word2Vec embeddings of classes into two clusters, then trained and evaluated separately using each cluster, and averaged the results. (Bottom) Here we averaged the results of training using three and six clusters. The figure shows that the more clusters, the less diverse the training classes were semantically. At the same time, less diversity caused higher errors.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
2 clusters. Error 0.87
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
6 clusters. Error 0.91
|
| 236 |
+
|
| 237 |
+
nitude deeper than ours - 18 vs 200 layers - and 23 classes overlap between training and testing (see Sec. 2).
|
| 238 |
+
|
| 239 |
+
# 5.2. Comparison to a baseline method
|
| 240 |
+
|
| 241 |
+
Our baseline method described in Sec. 3.2 uses a fixed, pretrained visual feature extractor but is otherwise identical to our e2e method. This allows us to study the benefits of e2e training under Evaluation Protocol 2, (see Sections 4.2 and 4.3). Using all test classes provides a more direct evaluation of the method.
|
| 242 |
+
|
| 243 |
+
Training dataset size: To investigate the effect of training set size on performance we subsampled Kinetics 664 uniformly at random, then re-trained and re-evaluated the model. Fig. 4 shows that the e2e algorithm consistently outperforms the baseline on both datasets. Both algorithms' performance is worse with smaller training data. However, the baseline flattens out at about 100K training datapoints, whereas our method's error keeps decreasing. This is expected, as the e2e model has more capacity.
|
| 244 |
+
|
| 245 |
+
Number of training classes: In many video domains diverse data is difficult to obtain. Small datasets might not
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Figure 6: Augmented pretraining with videos-from-images. We trained our algorithm on progressively smaller subsets of Kinetics 664 classes (Sec. 5.2). We compared the results to training on the same dataset, after pretraining the model on our synthetic SUN video dataset (Sec. 5.3). The pretraining procedure boosts performance up to $10\%$ points.
|
| 249 |
+
|
| 250 |
+
only have few datapoints, but also contain only a few training classes. We show that the number of training classes can impact ZSL results as much as training dataset size.
|
| 251 |
+
|
| 252 |
+
To obtain Fig. 4 we subsampled Kinetics 664 class-wise. We first picked 2 Kinetics 664 classes at random, and trained the algorithm on those classes only. We repeated the procedure using 4, 10, 25, 50, 100, 200, 400 and all 664 classes. Naturally, the fewer classes the fewer datapoints the training set contained. This results are compared in Fig. 4 with the procedure described above, where we removed Kinetics datapoints at random - independent of their classes.
|
| 253 |
+
|
| 254 |
+
The figure shows that it is better to have few training samples from a large number of classes rather than many from a very small number of classes. This effect is more pronounced for the e2e model rather than the baseline.
|
| 255 |
+
|
| 256 |
+
Training dataset class diversity: We showed that ZSL works better with more training classes. If we have a limited budget for collecting classes and datapoints, how should we choose them? We investigated whether the set of training classes should emphasize fine differences (e.g. "shooting basketball" vs "passing basketball" vs "shooting soccerball" and so on) or diversity.
|
| 257 |
+
|
| 258 |
+
In Fig. 5 we selected 50 training classes in four ways: (Top Left) We randomly choose 50 classes from the whole Kinetics 664 dataset, trained the algorithm on these classes, and ran inference on the test set. We repeated this process ten times and averaged inference error. (Top Right) We clustered the 664 classes into 2 clusters in the Word2Vec embedding space, and chose 50 classes at random within one of the clusters, trained and ran inference. We then repeated the procedure ten times and averaged the result.
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 7: Error as test classes move away from training. For each UCF101 test class, we computed its distance to 10 nearest neighbors in the training dataset. We arranged all such distance thresholds on the x-axis. For each threshold, we computed the accuracy of the algorithms on test classes whose distance from training data is larger than the threshold. In other words, as x-axis moves to the right, the model is evaluated on cumulatively smaller, but harder test sets.
|
| 262 |
+
|
| 263 |
+
(Bottom) Here we chose 50 classes in one of 3 clusters (Left) and one of 6 clusters (Right), trained, and averaged inference results of 10 runs. The figure shows that test error for our method increases as class diversity decreases. This result is not obvious, since the task becomes harder with increasing class diversity.
|
| 264 |
+
|
| 265 |
+
# 5.3. Easy pretraining with images
|
| 266 |
+
|
| 267 |
+
Previous section showed that class count and diversity are important drivers of ZSL performance. This inspired us to develop the pretraining method described in Sec. 3.4: we pretrain our model on a synthetic video dataset created from still images from the SUN dataset. Fig. 6 shows that this simple procedure consistently decreases test errors by up to $10\%$ . In addition, Fig. 7 shows that this initialization scheme makes the model more robust to large domain shift between train and test classes. The following section describes the latter finding in more detail.
|
| 268 |
+
|
| 269 |
+
# 5.4. Generalization and domain shift
|
| 270 |
+
|
| 271 |
+
A good ZSL model generalizes well to classes that differ significantly from training classes. To investigate the performance of our models under heavy domain shift, we computed the accuracy on subsets of test data with a growing distance from the training dataset. We first trained our model on Kinetics 664. Then, for a given distance threshold $\tau$ (see Sec. 3.3), we computed accuracy on the set of UCF classes whose mean distance from the closest 10 Kinetics 664 classes is larger than $\tau$ . Fig. 7 shows that the baseline model's (not trained e2e) performance drops to zero at around $\tau \sim 0.57$ . Our method performs much better, never dropping to zero accuracy for high thresholds. Finally, using the SUN pretraining further increases performance.
|
| 272 |
+
|
| 273 |
+
<table><tr><td colspan="3">UCF101 accuracy</td><td colspan="2">50 classes</td><td colspan="2">101 classes</td></tr><tr><td>e2e</td><td>Augment</td><td>Multi</td><td>Top-1</td><td>Top-5</td><td>Top-1</td><td>Top-5</td></tr><tr><td></td><td></td><td></td><td>26.8</td><td>55.5</td><td>19.8</td><td>40.5</td></tr><tr><td>✓</td><td></td><td></td><td>43.0</td><td>68.2</td><td>35.1</td><td>56.4</td></tr><tr><td>✓</td><td>✓</td><td></td><td>45.6</td><td>73.1</td><td>36.8</td><td>61.7</td></tr><tr><td>✓</td><td></td><td>✓</td><td>48.0</td><td>74.2</td><td>37.6</td><td>62.5</td></tr><tr><td>✓</td><td>✓</td><td>✓</td><td>49.2</td><td>77.0</td><td>39.8</td><td>65.6</td></tr></table>
|
| 274 |
+
|
| 275 |
+
Table 3: Ablation study. Numbers represent classification accuracy. "50 classes" uses Evaluation Protocol 1 (Sec. 4.3.) "101 classes" uses Evaluation Protocol 2. e2e: training the visual embedding as opposed to fixed, pretrained baseline (Sec. 3.2). Augment: pretrain using the SUN augmentation scheme (Sec. 5.3). Multi: At test time, extract multiple snippets from each video and average the visual embeddings (Sec. 4.4).
|
| 276 |
+
|
| 277 |
+
# 5.5. Ablation study
|
| 278 |
+
|
| 279 |
+
Table 3 studies contributions of different elements of our model to its performance. The performance is low when the visual embedding is fixed. The e2e approach improves the performance by a large margin. Our class augmentation method further boosts performance. Finally it helps to extract linearly spaced snippets from a video on testing, and average their visual embeddings. Using 25 snippets improves considerably the performances without influencing the training time of the model.
|
| 280 |
+
|
| 281 |
+
# 6. Conclusion
|
| 282 |
+
|
| 283 |
+
We followed practices from recent video classification literature to train the first e2e system for video recognition ZSL. Our evaluation protocol is stricter than that of existing work, and measures more realistic zero-shot classification accuracy. Even under this stricter protocol, our method outperforms previous works whose performance was measured with training and test sets overlapping and sharing domains. Through a series of directed experiments, we showed that a good ZSL dataset should have many diverse classes. Guided by this insight, we formulated a simple pretraining technique that boosts ZSL performance.
|
| 284 |
+
|
| 285 |
+
Our model is easy to understand and extend. Our training and evaluation protocols are easy to use with alternative approaches. We made our code available at github.com/bbrattoli/ZeroShotVideoClassification to encourage the community to build on our insights and create a strong foundation for future video ZSL research.
|
| 286 |
+
|
| 287 |
+
Acknowledgement. We thank Amazon for generously supporting the project, and Alina Roitberg for a productive discussion on the evaluation protocol.
|
| 288 |
+
|
| 289 |
+
# References
|
| 290 |
+
|
| 291 |
+
[1] Ioannis Alexiou, Tao Xiang, and Shaogang Gong. Exploring synonyms as context in zero-shot action recognition. In 2016 IEEE International Conference on Image Processing (ICIP), pages 4190-4194. IEEE, 2016.
|
| 292 |
+
[2] Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 293 |
+
[3] Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798-1828, 2013.
|
| 294 |
+
[4] Mina Bishay, Georgios Zoumpourlis, and Ioannis Pa-tras. Tarn: Temporal attentive relation network for few-shot and zero-shot action recognition. arXiv preprint arXiv:1907.09021, 2019.
|
| 295 |
+
[5] Biagio Brattoli, Uta Buchler, Anna-Sophia Wahl, Martin E. Schwab, and Björn Ommer. Lstm self-supervision for detailed behavior analysis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
|
| 296 |
+
[6] Uta Buchler, Biaggio Brattoli, and Björn Ommer. Improving spatiotemporal self-supervisionby deep reinforcement learning. In IEEE Conference on European Conference on Computer Vision (ECCV), 2018.
|
| 297 |
+
[7] Joao Carreira and Andrew Zisserman. Quo vadis, action recognition? a new model and the kinetics dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6299-6308, 2017.
|
| 298 |
+
[8] Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, and Hartwig Adam. Encoder-decoder with atrous separable convolution for semantic image segmentation. In Proceedings of the European conference on computer vision (ECCV), pages 801-818, 2018.
|
| 299 |
+
[9] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pages 248-255. IEEE, 2009.
|
| 300 |
+
[10] Rahul Dey and Fathi M Salemt. Gate-variants of gated recurrent unit (gru) neural networks. In 2017 IEEE 60th international midwest symposium on circuits and systems (MWS-CAS), pages 1597–1600. IEEE, 2017.
|
| 301 |
+
[11] Bernard Ghanem Fabian Caba Heilbron, Victor Escorcia and Juan Carlos Niebles. Activitynet: A large-scale video benchmark for human activity understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 961-970, 2015.
|
| 302 |
+
[12] Christoph Feichtenhofer, Haoqi Fan, Jitendra Malik, and Kaiming He. Slowfast networks for video recognition. arXiv preprint arXiv:1812.03982, 2018.
|
| 303 |
+
[13] Chuang Gan, Ming Lin, Yi Yang, Gerard De Melo, and Alexander G Hauptmann. Concepts not alone: Exploring pairwise relationships for zero-shot video activity recognition. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
|
| 304 |
+
[14] Chuang Gan, Ming Lin, Y. Yang, Y. Zhuang, and Alexander Hauptmann. Exploring semantic inter-class relationships (sir) for zero-shot action recognition. Proceedings of
|
| 305 |
+
|
| 306 |
+
the Twenty-Ninth AAAI Conference on Artificial Intelligence, pages 3769-3775, 01 2015.
|
| 307 |
+
[15] Chuang Gan, Tianbao Yang, and Boqing Gong. Learning attributes equals multi-source domain generalization. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 87-97, 2016.
|
| 308 |
+
[16] Chuang Gan, Yi Yang, Linchao Zhu, Deli Zhao, and Yueting Zhuang. Recognizing an action using its name: A knowledge-based approach. International Journal of Computer Vision, 120, 03 2016.
|
| 309 |
+
[17] Raghav Goyal, Samira Ebrahimi Kahou, Vincent Michalski, Joanna Materzynska, Susanne Westphal, Heuna Kim, Valentin Haenel, Ingo Fruend, Peter Yianilos, Moritz Mueller-Freitag, et al. The” something something” video database for learning and evaluating visual common sense. In ICCV, volume 1, page 3, 2017.
|
| 310 |
+
[18] Meera Hahn, Andrew Silva, and James M Rehg. Action2vec: A crossmodal embedding approach to action learning. arXiv preprint arXiv:1901.00484, 2019.
|
| 311 |
+
[19] Kensho Hara, Hirokatsu Kataoka, and Yutaka Satoh. Can spatiotemporal 3d cnns retrace the history of 2d cnns and imageNet? In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 6546-6555, 2018.
|
| 312 |
+
[20] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In Proceedings of the IEEE international conference on computer vision, pages 2961-2969, 2017.
|
| 313 |
+
[21] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 770-778, 2016.
|
| 314 |
+
[22] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
|
| 315 |
+
[23] Haroon Idrees, Amir R Zamir, Yu-Gang Jiang, Alex Gorban, Ivan Laptev, Rahul Sukthankar, and Mubarak Shah. The thumos challenge on action recognition for videos "in the wild". Computer Vision and Image Understanding, 155:1-23, 2017.
|
| 316 |
+
[24] Andrej Karpathy, George Toderici, Sanketh Shetty, Thomas Leung, Rahul Sukthankar, and Li Fei-Fei. Large-scale video classification with convolutional neural networks. In CVPR, 2014.
|
| 317 |
+
[25] Will Kay, Joao Carreira, Karen Simonyan, Brian Zhang, Chloe Hillier, Sudheendra Vijayanarasimhan, Fabio Viola, Tim Green, Trevor Back, Paul Natsev, et al. The kinetics human action video dataset. arXiv preprint arXiv:1705.06950, 2017.
|
| 318 |
+
[26] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 319 |
+
[27] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097-1105, 2012.
|
| 320 |
+
[28] Hildegard Kuehne, Hueihan Jhuang, Estfbaliz Garrote, Tomaso Poggio, and Thomas Serre. Hmdb: a large video database for human motion recognition. In 2011 International Conference on Computer Vision, pages 2556-2563. IEEE, 2011.
|
| 321 |
+
|
| 322 |
+
[29] Hugo Larochelle, Dumitru Erhan, and Yoshua Bengio. Zero-data learning of new tasks. In AAAI, volume 1, page 3, 2008.
|
| 323 |
+
[30] Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(Nov):2579-2605, 2008.
|
| 324 |
+
[31] Brais Martinez, Davide Modolo, Yuanjun Xiong, and Joseph Tighe. Action recognition with spatial-temporal discriminative filter banks. In The IEEE International Conference on Computer Vision (ICCV), October 2019.
|
| 325 |
+
[32] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013.
|
| 326 |
+
[33] Ashish Mishra, Vinay Kumar Verma, M Shiva Krishna Reddy, S Arulkumar, Piyush Rai, and Anurag Mittal. A generative approach to zero-shot and few-shot action recognition. In 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 372-380. IEEE, 2018.
|
| 327 |
+
[34] Mark Palatucci, Dean Pomerleau, Geoffrey E Hinton, and Tom M Mitchell. Zero-shot learning with semantic output codes. In Advances in neural information processing systems, pages 1410-1418, 2009.
|
| 328 |
+
[35] AJ Piergiovanni and Michael S Ryoo. Learning shared multimodal embeddings with unpaired data. CoRR, 2018.
|
| 329 |
+
[36] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 779-788, 2016.
|
| 330 |
+
[37] Radim ōhůrek and Petr Sojka. Software Framework for Topic Modelling with Large Corpora. In Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks, pages 45-50, Valletta, Malta, May 2010. ELRA. http://is.muni.cz/publication/884893/en.
|
| 331 |
+
[38] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015.
|
| 332 |
+
[39] Alina Roitberg, Ziad Al-Halah, and Rainer Stiefelhagen. Informed democracy: voting-based novelty detection for action recognition. arXiv preprint arXiv:1810.12819, 2018.
|
| 333 |
+
[40] Alina Roitberg, Manuel Martinez, Monica Haurilet, and Rainer Stiefelhagen. Towards a fair evaluation of zero-shot action recognition using external data. In Proceedings of the European Conference on Computer Vision (ECCV), pages 0-0, 2018.
|
| 334 |
+
[41] Karsten Roth, Biagio Brattoli, and Bjorn Ommer. Mic: Mining interclass characteristics for improved metric learning. In Proceedings of the IEEE International Conference on Computer Vision, pages 8000-8009, 2019.
|
| 335 |
+
[42] Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Bjoern Ommer, and Joseph Paul Cohen. Revisiting training strategies and generalization performance in deep metric learning. arXiv preprint arXiv:2002.08473, 2020.
|
| 336 |
+
[43] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211-252, 2015.
|
| 337 |
+
|
| 338 |
+
[44] Artsiom Sanakoyeu, Vasil Khalidov, Maureen S. McCarthy, Andrea Vedaldi, and Natalia Neverova. Transferring dense pose to proximal animal classes. In CVPR, 2020.
|
| 339 |
+
[45] Artsiom Sanakoyeu, Vadim Tschernezki, Uta Buchler, and Björn Ommer. Divide and conquer the embedding space for metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2019.
|
| 340 |
+
[46] Nawid Sayed, Biagio Brattoli, and Björn Ommer. Cross and learn: Cross-modal self-supervision. In German Conference on Pattern Recognition (GCR), 2018.
|
| 341 |
+
[47] Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 815-823, 2015.
|
| 342 |
+
[48] Karen Simonyan and Andrew Zisserman. Two-stream convolutional networks for action recognition in videos. In Advances in neural information processing systems, pages 568-576, 2014.
|
| 343 |
+
[49] Bharat Singh, Mahyar Najibi, and Larry S Davis. Sniper: Efficient multi-scale training. In Advances in Neural Information Processing Systems, pages 9310-9320, 2018.
|
| 344 |
+
[50] Khurram Soomro, Amir Roshan Zamir, and Mubarak Shah. Ucf101: A dataset of 101 human actions classes from videos in the wild. arXiv preprint arXiv:1212.0402, 2012.
|
| 345 |
+
[51] Du Tran, Lubomir Bourdev, Rob Fergus, Lorenzo Torresani, and Manohar Paluri. Learning spatiotemporal features with 3d convolutional networks. In Proceedings of the IEEE international conference on computer vision, pages 4489-4497, 2015.
|
| 346 |
+
[52] Du Tran, Heng Wang, Lorenzo Torresani, Jamie Ray, Yann LeCun, and Manohar Paluri. A closer look at spatiotemporal convolutions for action recognition. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 6450-6459, 2018.
|
| 347 |
+
[53] Limin Wang, Yuanjun Xiong, Zhe Wang, Yu Qiao, Dahua Lin, Xiaou Tang, and Luc Van Gool. Temporal segment networks: Towards good practices for deep action recognition. In European conference on computer vision, pages 20-36. Springer, 2016.
|
| 348 |
+
[54] Qian Wang and Ke Chen. Alternative semantic representations for zero-shot human action recognition. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pages 87-102. Springer, 2017.
|
| 349 |
+
[55] Qian Wang and Ke Chen. Zero-shot visual recognition via bidirectional latent embedding. International Journal of Computer Vision, 124(3):356-383, 2017.
|
| 350 |
+
[56] Yongqin Xian, Bernt Schiele, and Zeynep Akata. Zero-shot learning-the good, the bad and the ugly. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4582-4591, 2017.
|
| 351 |
+
[57] Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pages 3485-3492. IEEE, 2010.
|
| 352 |
+
[58] Xun Xu, Timothy Hospedales, and Shaogang Gong. Semantic embedding space for zero-shot action recognition. In
|
| 353 |
+
|
| 354 |
+
2015 IEEE International Conference on Image Processing (ICIP), pages 63-67. IEEE, 2015.
|
| 355 |
+
[59] Xun Xu, Timothy Hospedales, and Shaogang Gong. Transductive zero-shot action recognition by word-vector embedding. International Journal of Computer Vision, 123(3):309-333, 2017.
|
| 356 |
+
[60] Xun Xu, Timothy M Hospedales, and Shaogang Gong. Multi-task zero-shot action recognition with prioritised data augmentation. In European Conference on Computer Vision, pages 343-359. Springer, 2016.
|
| 357 |
+
[61] Bowen Zhang, Hexiang Hu, and Fei Sha. Cross-modal and hierarchical modeling of video and text. In Proceedings of the European Conference on Computer Vision (ECCV), pages 374-390, 2018.
|
| 358 |
+
[62] Chenrui Zhang and Yuxin Peng. Visual data synthesis via gan for zero-shot video classification. arXiv preprint arXiv:1804.10073, 2018.
|
| 359 |
+
[63] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2881-2890, 2017.
|
| 360 |
+
[64] Yi Zhu, Yang Long, Yu Guan, Shawn Newsam, and Ling Shao. Towards universal representation for unseen action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9436-9445, 2018.
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a521b53f00c89d9388a9c9bf6913392a1fc20590033441c5ad484c78463b82f0
|
| 3 |
+
size 449664
|
rethinkingzeroshotvideoclassificationendtoendtrainingforrealisticapplications/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28a2ea7484b666ba464e5cb84966e2e3887d7987cf3ecf90620afef01ae68613
|
| 3 |
+
size 398955
|
retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af1c2e54c37be6e7696a168a9a24d59bc66627aefef0ac50cf6106f976e7bdb1
|
| 3 |
+
size 81675
|
retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c118b1278caee71c0b83db7abc167beb96dfc7a50c032747de855154138d1adf
|
| 3 |
+
size 105118
|
retinafacesingleshotmultilevelfacelocalisationinthewild/4f7b959c-5667-4c2c-bccb-c5f3615567cf_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35f5ab3667f14c3c6fec2b4b30b8a74f08884ff33622cdc7db99492f1a19d0f5
|
| 3 |
+
size 8617450
|
retinafacesingleshotmultilevelfacelocalisationinthewild/full.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RetinaFace: Single-shot Multi-level Face Localisation in the Wild
|
| 2 |
+
|
| 3 |
+
Jiankang Deng * 1,2,3 Jia Guo * 2 Evangelos Ververas<sup>1,3</sup>
|
| 4 |
+
|
| 5 |
+
Irene Kotsia $^{4}$ Stefanos Zafeiriou $^{1,3}$
|
| 6 |
+
|
| 7 |
+
$^{1}$ Imperial College $^{2}$ InsightFace $^{3}$ FaceSoft $^{4}$ Middlesex University London
|
| 8 |
+
|
| 9 |
+
{j.deng16, e.ervereras16, s.zafeiriou}@imperial.ac.uk
|
| 10 |
+
|
| 11 |
+
guojia@gmail.com, i.kotsia@mdx.ac.uk
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Though tremendous strides have been made in uncontrolled face detection, accurate and efficient 2D face alignment and 3D face reconstruction in-the-wild remain an open challenge. In this paper, we present a novel single-shot, multi-level face localisation method, named RetinaFace, which unifies face box prediction, 2D facial landmark localisation and 3D vertices regression under one common target: point regression on the image plane. To fill the data gap, we manually annotated five facial landmarks on the WIDER FACE dataset and employed a semiautomatic annotation pipeline to generate 3D vertices for face images from the WIDER FACE, AFLW and FDB datasets. Based on extra annotations, we propose a mutually beneficial regression target for 3D face reconstruction, that is predicting 3D vertices projected on the image plane constrained by a common 3D topology. The proposed 3D face reconstruction branch can be easily incorporated, without any optimisation difficulty, in parallel with the existing box and 2D landmark regression branches during joint training. Extensive experimental results show that RetinaFace can simultaneously achieve stable face detection, accurate 2D face alignment and robust 3D face reconstruction while being efficient through single-shot inference.
|
| 16 |
+
|
| 17 |
+
# 1. Introduction
|
| 18 |
+
|
| 19 |
+
Automatic face localisation is a prerequisite for facial image analysis in many applications such as facial attribute analysis(e.g. expression [64] and age [41, 39]) and facial identity recognition [18, 12, 56]. A narrow definition of face localisation may refer to traditional face detection [54, 62], which aims at estimating the face bounding boxes without possessing any scale and position prior. Nevertheless, in this paper we refer to a broader definition of face locali
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
68 Landmarks: 136 scalars
|
| 31 |
+
|
| 32 |
+

|
| 33 |
+
Mask: H x W matrix
|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
3D mesh(Ours) $3 \times 1k$ vertices
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+

|
| 41 |
+
Figure 1. Face localisation tasks from coarse to fine. Face detection only predicts one center point and scales. Face pose estimation calculates the scale, 3D rotation and translation parameters. Sparse face alignment localises more semantic points. Face segmentation computes pixel-wise label maps for different semantic components (e.g. mouth, eyes). 3D face reconstruction can establish dense 3D correspondence for every pixel of a face, which is the most informative and demanding face localisation technique.
|
| 42 |
+
|
| 43 |
+
# More Informative
|
| 44 |
+
|
| 45 |
+
sation which includes face detection [43], face pose estimation [48, 60, 31, 5], face alignment [14, 57, 17, 16, 15, 58, 23], face segmentation [50, 34] and 3D face reconstruction [72, 1, 19, 70]. In Fig. 1, we show face localisation tasks with multiple levels of detail, from coarse to fine.
|
| 46 |
+
|
| 47 |
+
Typically, face pose estimation, face alignment, face segmentation and 3D face reconstruction are steps subsequent to face detection. These fine-grind face localisation tasks are performed on individual face crops and the computational complexity increases linearly with the number of faces in the input image. Since all face localisation tasks from face detection to 3D face reconstruction aim at establishing the semantic correspondence between different face images, with their main difference being only in the information level, the question that arises is if can we combine them into a united framework by jointly training and make
|
| 48 |
+
|
| 49 |
+
different tasks benefit from each other.
|
| 50 |
+
|
| 51 |
+
The training process for face detection usually contains classification and box regression losses [21]. Chen et al. [8] proposed to combine face detection and alignment in a joint cascade framework based on the observation that aligned face shapes can provide better features for face classification. Inspired by [8], MTCNN [66] and STN [7] simultaneously detected faces and five facial landmarks. Due to training data limitation, JDA [8], MTCNN [66] and STN [7] have not verified whether detection of tiny faces can benefit from the extra supervision of five facial landmarks.
|
| 52 |
+
|
| 53 |
+
In Mask R-CNN [25], the detection performance is significantly improved by adding a branch for predicting an object mask in parallel with the existing branch for bounding box classification and regression. This confirms that dense pixel-wise annotations are also beneficial for improving detection. In FAN [55], an anchor-level attention map is proposed to improve the occluded face detection. Nevertheless, the proposed attention map is quite coarse and does not contain semantic information. In MFN [6], a single end-to-end network is presented to jointly predict the bounding box locations and 3DMM parameters for multiple faces. This contributes to more precise face detection in the-wild by leveraging both 2D information from bounding boxes and 3D information from 3DMM parameters. However, 3DMM parameter prediction constitutes an indirect regression target when compared to semantic point prediction (e.g. box center) on the image plane. In this paper, we explore joint learning for different face localisation tasks (face detection, 2D face alignment and 3D face reconstruction) based on the single-shot [40, 69, 51] framework. To overcome the limitation of training data [6], we have manually annotated five facial landmarks for $84.6k$ faces from the WIDER FACE training dataset [59]. In addition, we set up a semi-automatic annotation pipeline to generate 1k 3D vertices for $22k$ faces from the WIDER FACE dataset [59], $27.1k$ faces from the AFLW dataset [30], and $39.3k$ faces from the FDDB full image set [28]. Based on these training data, we propose an innovative, straightforward and effective 3D mesh regression method. More specifically, we directly regress $x$ , $y$ and $z$ coordinates in the image space and add a regularization term to control the edge distance of triangles in the mesh for more accurate prediction of $z$ coordinates.
|
| 54 |
+
|
| 55 |
+
Joint learning of face bounding box locations, five facial landmarks and 1k 3D vertices forces the network to learn exclusive facial features that characterize face pose, shape, and expression, in addition to differentiating face regions from the background. As five facial landmarks localisation and 3D vertices regression both target on predicting semantic points on the image plane, face box prediction benefits from joint learning and becomes more accurate and stable, producing less false positives. Also, as the anno
|
| 56 |
+
|
| 57 |
+
tated but challenging face detection data [59] are employed in the joint training of face detection and the rest fine-grind face localisation tasks (for which usually less challenging datasets are employed, e.g. [30]), they directly contribute to robust 3D mesh regression.
|
| 58 |
+
|
| 59 |
+
To summarise, our key contributions are:
|
| 60 |
+
|
| 61 |
+
- We integrate face bounding box prediction, 2D facial landmark localisation and 3D vertices regression under a unified multi-level face localisation task with a common goal: point regression on the image plane.
|
| 62 |
+
- Based on a single-shot inference, we propose a mutually beneficial learning strategy to train a unified multilevel face localisation method that simultaneously predicts face bounding boxes, five 2D facial landmarks, and 1k 3D vertices.
|
| 63 |
+
- Our method achieves state-of-the-art performance in face detection and 2D face alignment, as well as robust 3D face reconstruction with single-shot inference.
|
| 64 |
+
|
| 65 |
+
# 2. Related Work
|
| 66 |
+
|
| 67 |
+
Face Detection. Inspired by generic object detection methods [21, 46, 38, 44, 45, 35, 36], face detection has recently achieved remarkable progress [27, 40, 69, 10, 51]. Different from generic object detection, face detection features smaller ratio variations (from 1:1 to 1:1.5) but much larger scale variations (from several pixels to thousands of pixels). The most recent state-of-the-art methods [40, 69, 51] focus on single-shot design [38, 36] which densely samples face locations and scales on feature pyramids [35], demonstrating promising performance and yielding faster inference compared to two-stage methods [46, 63, 10]. Following this route, we improve the performance of single-shot face detection by exploiting extra-supervisions from multi-level face localisation tasks.
|
| 68 |
+
|
| 69 |
+
3D Face Reconstruction. Building dense pixel-to-pixel correspondence is one of the most fundamental problems in 3D face reconstruction from 2D images. Recently, a lot of works follow the approach of regressing 3DMM parameters from 2D images using CNNs [29, 72, 53, 47, 24, 52]. Jourabloo et al. [29] employs a cascade of CNNs to alternately regress the shape and pose parameters. 3DDFA [72] utilizes cascade iterations on a single CNN to jointly regress the shape and pose parameters. However, as pose and 3DMM parameters are indirect information for a 2D face image, the variations from network prediction can exert huge visual error. Most recently, model parameter regression methods have changed into dense correspondence regression approaches [1, 19]. By using the intermediate UV representation, DenseReg [1] predicts the UV coordinates and PRN [19] forecasts 3D coordinates rearranged in the UV space. However, UV transformation is still an indirect representation for a 2D image. In this paper, we resort the most straightforward 3D representation: 3D vertices pro
|
| 70 |
+
|
| 71 |
+
jected on the image plane. This representation is consistent with the regression targets of face detection and 2D facial landmark localisation, and easy to optimise in a single-shot, multi-level face localisation framework. Due to the parallel training with face detection and 2D face alignment, our 3D face reconstruction branch is very robust under in-the-wild scenarios.
|
| 72 |
+
|
| 73 |
+
# 3. Proposed Approach
|
| 74 |
+
|
| 75 |
+
# 3.1. 3D Face Reconstruction
|
| 76 |
+
|
| 77 |
+
In Fig. 3, we show a fixed number of $N$ vertices $(\mathbf{V} = [x_{1},y_{1},z_{1};x_{2},y_{2},z_{2};\dots ;x_{N},y_{N},z_{N}])$ on a predefined topological triangle context. These corresponding vertices share the same semantic meaning across different faces. With the fixed triangle topology, every pixel on the face can be indexed by the barycentric coordinates and the triangle index, thus there exists a pixel-wise correspondence with the 3D face. Comparing Mesh68 and Mesh1k in Fig. 3, it becomes obvious that more vertices make the mesh more informative and smooth. As the parameters of the last layer increase linearly with the size of the regression output, we choose to regress $1\mathrm{k} + 68$ vertices, which is a subset of 53, 215 vertices [42], carefully sampled to sufficiently retain the 3D faces structure.
|
| 78 |
+
|
| 79 |
+
In this paper, we directly regress 3D vertices on the 2D image plane. As each densely aligned 3D face is represented by concatenating its $N$ vertex coordinates, we employ the following vertex loss to constrain the location of vertices:
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathcal {L} _ {v e r t} = \frac {1}{N} \sum_ {i = 1} ^ {N} | | \mathbf {V} _ {i} (x, y, z) - \mathbf {V} _ {i} ^ {*} (x, y, z) | | _ {1}, \tag {1}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $N = 1103$ is the number of vertices, $\mathbf{V}$ is the prediction of our model and $\mathbf{V}^*$ is the ground-truth.
|
| 86 |
+
|
| 87 |
+
The $x$ and $y$ coordinates of visible vertices in the image space can be directly learned from input face images. However, predicting the $z$ coordinates and the $x$ and $y$ coordinates of invisible vertices is challenging due to the information loss occurring when projecting a face from 3D to 2D. By taking advantage of the 3D triangulation topology, we consider the edge length loss [37]:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathcal {L} _ {\text {e d g e}} = \frac {1}{3 M} \sum_ {i = 1} ^ {M} | | \mathbf {E} _ {i} - \mathbf {E} _ {i} ^ {*} | | _ {1}, \tag {2}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $M = 2110$ is the number of triangles, $\mathbf{E}$ is the edge length calculated from the prediction and $\mathbf{E}^*$ is the edge length calculated from the ground truth. The edge graph is a fixed topology as shown in Fig. 3.
|
| 94 |
+
|
| 95 |
+
By combining the vertex loss and the edge loss, we define the mesh regression loss as: $\mathcal{L}_{mesh} = \mathcal{L}_{vert} + \lambda_0\mathcal{L}_{edge}$ where $\lambda_0$ is set to 1 according to our experimental experience.
|
| 96 |
+
|
| 97 |
+
# 3.2. Multi-level Face Localisation
|
| 98 |
+
|
| 99 |
+
For any training anchor $i$ , we minimise the following multi-task loss:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\begin{array}{l} \mathcal {L} = \mathcal {L} _ {c l s} \left(p _ {i}, p _ {i} ^ {*}\right) + \lambda_ {1} p _ {i} ^ {*} \mathcal {L} _ {b o x} \left(t _ {i}, t _ {i} ^ {*}\right) \\ + \lambda_ {2} p _ {i} ^ {*} \mathcal {L} _ {\text {p t s}} \left(l _ {i}, l _ {i} ^ {*}\right) + \lambda_ {3} p _ {i} ^ {*} \mathcal {L} _ {\text {m e s h}} \left(v _ {i}, v _ {i} ^ {*}\right). \tag {3} \\ \end{array}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where $t_i, l_i, v_i$ are box, five landmarks and 1k vertices predictions, $t_i^*, l_i^*, v_i^*$ is the corresponding ground-truth, $p_i$ is the predicted probability of anchor $i$ being a face, and $p_i^*$ is 1 for the positive anchor and 0 for the negative anchor. The classification loss $\mathcal{L}_{cls}$ is the softmax loss for binary classes (face/not face).
|
| 106 |
+
|
| 107 |
+
For a positive anchor with center coordinates $x_{center}^{a}, y_{center}^{a}$ and scale $s^a$ , we have the box size regression targets: $\log (w^{*} / s^{a})$ and $\log (h^{*} / s^{a})$ [21], where $w^{*}$ and $h^{*}$ are the width and height of the ground-truth face box. In addition, we have the following unified point regression targets for multi-level face localisation tasks:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\begin{array}{l} \left(x _ {j} ^ {*} - x _ {\text {c e n t e r}} ^ {a}\right) / s ^ {a}, \\ (y _ {j} ^ {*} - y _ {\text {c e n t e r}} ^ {a}) / s ^ {a}, \\ \left(z _ {j} ^ {*} - z _ {\text {n o s e - t i p}} ^ {*}\right) / s ^ {a}, \tag {4} \\ \end{array}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $x_{j}^{*}$ and $y_{j}^{*}$ are the ground-truth coordinates of the two box corners, five facial landmarks and 1k 3D vertices in the image space, and $z_{j}^{*}$ is the ground-truth $z$ coordinates of the 1k 3D vertices. As we use orthographic projection to generate the ground-truth 3D meshes, we translate all vertices so that the $z$ coordinate of the nose tip is 0. Afterwards, we normalise the $z$ coordinates by the anchor scale. We follow [21] and use the smooth- $\mathrm{L}_1$ loss for all the above regression targets. As these three localisation tasks are homogeneous, the loss-balancing parameters $\lambda_{1} - \lambda_{3}$ are all set to 1.
|
| 114 |
+
|
| 115 |
+
As illustrated in Fig. 4, face detection, five 2D facial landmark localisation and 3D face reconstruction are three face localisation tasks aiming at different levels of localisation detail which however, share the same target: accurate point regression on the image plane. Integrating direct regression of 3D vertices in the single-shot face detection design, induces no optimisation difficulty as it is compatible with box center regression and five facial landmark regression. Each task can benefit from other tasks such that: (1) localisation of more semantic points contributes to more accurate box prediction, and (2) more challenging training scenarios in the face detection dataset result in more robust point prediction.
|
| 116 |
+
|
| 117 |
+
# 3.3. Single-shot Multi-level Face Localisation
|
| 118 |
+
|
| 119 |
+
In Fig. 2, we present the framework of the proposed single-shot, multi-level face localisation approach. As can be seen, our model consists of three main components: the
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
(a) Network Structure
|
| 123 |
+
(b) Multi-task Loss
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 2. (a) An overview of the proposed single-shot multi-level face localisation approach. (b) Detailed illustration of our loss design. RetinaFace is designed based on the feature pyramids with five scales. For each scale of the feature maps, there is a deformable context module. Following the context modules, we calculate a joint loss (face classification, face box regression, five facial landmarks regression and 1k 3D vertices regression) for each positive anchor. To minimise the residual of localisation, we employ cascade regression.
|
| 127 |
+
Figure 3. A mesh consists of vertices plus triangles. Mesh68 is a coarse version used for quantitative evaluation and Mesh1k is a more elaborate version which includes facial details. In this paper, we regress Mesh68 and Mesh1k simultaneously.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 4. Three face localisation tasks have different levels of detail but share the same target: accurate point prediction on the image plane. Each task can benefit from other tasks.
|
| 131 |
+
|
| 132 |
+
feature pyramid network, the context head module and the cascade multi-task loss. First, the feature pyramid network gets the input face images and outputs five feature maps of different scale. Then, the context head module gets a feature map of a particular scale and calculates the multi-task loss (Eq. 3). In more detail, the first context head module predicts the bounding box from the regular anchor, while subsequently, the second context head module predicts a more accurate bounding box using the regressed anchor, which is generated by the first context head module. The proposed RetinaFace employs fully convolutional neural net
|
| 133 |
+
|
| 134 |
+
works, thus it can be easily trained in an end-to-end way.
|
| 135 |
+
|
| 136 |
+
Feature Pyramid RetinaFace employs feature pyramid levels from $P_{2}$ to $P_{6}$ , where $P_{2}$ to $P_{5}$ are computed from the output of the corresponding ResNet residual stage ( $C_{2}$ through $C_{5}$ ) using top-down and lateral connections as in [35, 36]. $P_{6}$ is calculated through a $3 \times 3$ convolution with stride=2 on $C_{5}$ . $C_{1}$ to $C_{5}$ is a pre-trained classification network on the ImageNet-11k dataset while $P_{6}$ are randomly initialised using the "Xavier" method [22].
|
| 137 |
+
|
| 138 |
+
Context Module Inspired by SSH [40] and Pyramid-Box [51], we also apply independent context modules on five feature pyramid levels to increase the receptive field and enhance the rigid context modelling power. We replace all $3 \times 3$ convolution layers within the lateral connections and context modules with the deformable convolution network (DCN) [11, 71], which further strengthens the non-rigid context modelling capacity.
|
| 139 |
+
|
| 140 |
+
Cascade Multi-task Loss To further improve the performance of face localisation, we employ cascade regression [4, 65] with multi-task loss (Sec. 3.2). The loss head is a $1 \times 1$ convolution across different feature maps of dimension $H_{n} \times W_{n} \times 256$ , $n \in \{2, \ldots, 6\}$ . The first context head module predicts the bounding box from the regular anchor. Subsequently, the second context head module predicts a more accurate bounding box from the regressed anchor.
|
| 141 |
+
|
| 142 |
+
Anchor Settings and Matching Strategy We employ scale-specific anchors on the feature pyramid levels from $P_{2}$ to $P_{6}$ similarly to [55]. Here, $P_{2}$ is designed to capture tiny faces by tiling small anchors at the cost of more computational time and with risk of more false positives. We set the scale step at $2^{1/3}$ and the aspect ratio at 1:1. With the input image size at $640 \times 640$ , the anchors can cover scales from $16 \times 16$ to $406 \times 406$ across the feature pyramid levels. In total, there are 102,300 anchors, and $75\%$ of these anchors are from $P_{2}$ . For the first head module, anchors are matched to a ground-truth box when Intersection over Union (IoU) is larger than 0.7, and to the background when IoU is less than 0.3. For the second head module, anchors are matched
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
(a) Five Landmarks Annotation
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
(b) 1k 3D Vertices Annotation
|
| 149 |
+
Figure 5. We annotate (a) five facial landmarks and (b) 1k 3D vertices on faces that can be annotated from the WIDER FACE dataset.
|
| 150 |
+
|
| 151 |
+
to a ground-truth box when IoU is larger than 0.5, and to the background when IoU is less than 0.4. Unmatched anchors are ignored during training. We employ OHEM [49, 69] to balance the positive and negative training examples.
|
| 152 |
+
|
| 153 |
+
# 4. Experiments
|
| 154 |
+
|
| 155 |
+
# 4.1. Dataset
|
| 156 |
+
|
| 157 |
+
The WIDER FACE dataset [59] consists of 32,203 images and 393,703 face bounding boxes with a high degree of variability in scale, pose, expression, occlusion and illumination. As illustrated in Fig. 5, we define five levels of face image quality [13] according to how difficult it is to annotate landmarks on the face. We have manually annotated five facial landmarks (i.e. eye centres, nose tip and mouth corners) for $84.6k$ faces on the training set and $18.5k$ faces on the validation set. To obtain accurate ground-truth 3D vertices from 2D faces, we employ a semi-automatic annotation pipeline. That is, for each face we automatically recover 68 3D landmarks [15] and employ them to drive a 3DMM fitting algorithm [3] in order to reconstruct a dense 3D face with 53K vertices, projected on the image plane. To ensure high quality in the 3DMM fitting results, we recover UV texture maps from the fitted faces and ask annotators to inspect them for artifacts. If the fitting is not accurate, the annotator manually updates the 68 landmarks and gets another automatic 3DMM fitting. If the fitting is still not accurate, the face is discarded. Finally, we get $22k$ accurate 3D face annotations from the training set.
|
| 158 |
+
|
| 159 |
+
Following [6], we also completed $27.1k$ and $39.3k$ 3D face annotations from the AFLW dataset [30] and the full FDDB image set [28] using our semi-automatic annotation method. For the face detection task, only the training data of the WIDER FACE dataset were used. For the rest of the tasks, face annotations from both the AFLW and FDDB datasets were employed, except for the subset of faces that overlaps with faces of the AFLW2000-3D dataset [72].
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Method</td><td>Easy</td><td>Medium</td><td>Hard</td><td>average AP</td></tr><tr><td>Baseline</td><td>95.832</td><td>95.243</td><td>89.875</td><td>52.65</td></tr><tr><td>+DCN</td><td>96.149</td><td>95.568</td><td>90.286</td><td>53.36</td></tr><tr><td>+Cascade</td><td>96.233</td><td>95.679</td><td>90.642</td><td>54.20</td></tr><tr><td>Lpts</td><td>96.570</td><td>95.913</td><td>91.161</td><td>54.73</td></tr><tr><td>Lvert</td><td>96.512</td><td>95.805</td><td>90.983</td><td>54.55</td></tr><tr><td>Lmesh</td><td>96.528</td><td>95.829</td><td>90.991</td><td>54.62</td></tr><tr><td>L5pts+mesh</td><td>96.713</td><td>96.082</td><td>91.447</td><td>55.02</td></tr></table>
|
| 162 |
+
|
| 163 |
+
Table 1. Ablation experiments of RetinaFace (ResNet-50) on the WIDER FACE validation subset and the Hard test subset.
|
| 164 |
+
|
| 165 |
+
# 4.2. Implementation Details
|
| 166 |
+
|
| 167 |
+
Data Augmentation As there are around $20\%$ tiny faces in the WIDER FACE training set, we follow [69, 51] to randomly crop square patches from the original images and resize them to $640 \times 640$ resolution during training. Besides random crops, we also augment the training dataset by applying random horizontal flip and photo-metric colour distortion [69].
|
| 168 |
+
|
| 169 |
+
Training and testing Details We train our method using a SGD optimizer (momentum at 0.9, weight decay at 0.0005, and batch size of $8 \times 4$ ) on four NVIDIA Tesla P40 (24GB) GPUs. The learning rate starts from $10^{-3}$ , rising to $10^{-2}$ after 5 epochs, then divided by 10 at 55 and 68 epochs. The training process is terminated at 80 epochs. Our implementation is on MXNet [9]. For the evaluation on WIDER FACE, we follow the standard practices of [40, 69] and employ flipping as well as multi-scale (the shorter image size at [500, 800, 1100, 1400, 1700]) strategies. Box voting [20] is applied on the union set of predicted facial boxes using an IoU threshold of 0.4. For the evaluation of other tasks, RetinaFace employs single-scale inference using the ResNet-50 backbone (model size: 155MB, speed: 22.3ms on the P40 GPU).
|
| 170 |
+
|
| 171 |
+
# 4.3. Face Detection
|
| 172 |
+
|
| 173 |
+
Besides the standard evaluation metric of Average Precision (AP), we also employ a more strict evaluation metric of average AP for IoU=0.5: 0.05: 0.95, rewarding more accurate face detectors. As illustrated in Tab. 1, we evaluate the performance of several different settings on the WIDER FACE validation set and report the average AP on the Hard test subset. Here, we use Resnet-50 [26] as the backbone and focus on the metric of average AP. By applying the Deformable Context Module (DCM) and cascade regression, we improve the average AP of the baseline to $54.20\%$ .
|
| 174 |
+
|
| 175 |
+
Five facial landmarks regression $(\mathcal{L}_{pts})$ and 1k 3D vertices regression $(\mathcal{L}_{vert})$ improve the average AP by $0.53\%$ and $0.35\%$ , respectively. The difference in improvement percentage is due to the annotation of five facial landmarks being much easier than annotating 3D vertices, and thus more training data with 5 facial points annotations can be
|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
(a) False Positive Suppression
|
| 179 |
+
|
| 180 |
+

|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
|
| 184 |
+

|
| 185 |
+
(b) False Positive Examples
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 6. Joint five facial landmarks regression and 1k 3D vertices regression can (a) significantly decrease the scores of false positives, and (b) effectively suppress high-score false positives.
|
| 191 |
+
|
| 192 |
+

|
| 193 |
+
|
| 194 |
+

|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
|
| 200 |
+
included, aiding to achieve a higher performance. Adding topology constraints into 1k 3D vertices regression only slightly improves face detection. However, they are beneficial for predicting $z$ coordinates and pose (Sec. 4.5). We therefore employ the mesh loss $(\mathcal{L}_{mesh})$ . Combining five facial landmark regression and mesh regression significantly improves the performance by $0.82\%$ .
|
| 201 |
+
|
| 202 |
+
Besides improving the accuracy of facial boxes, joint five facial landmark regression and 1k 3D vertices regression can effectively suppress the scores of false positives as illustrated in Fig. 6(a). In Fig. 6(b), we show some high-score false positives $(>0.9)$ produced from the baseline. RetinaFace assigns much lower scores $(<0.3)$ to these crops. Moreover, for the baseline the class information for a face is only a binary label and no information exists about the image quality. In contrast, we annotate 1k 3D vertices for easy-to-medium level faces, and five facial landmarks for faces that can be annotated. These annotations implicitly indicate the information level of faces, which can be learned by our model. Therefore, RetinaFace only gives high confidence scores for very informative faces and low scores for less informative faces.
|
| 203 |
+
|
| 204 |
+
To obtain the evaluation results from the WIDER FACE leader-board, we submitted the detection results of RetinaFace (ResNet-152) to the organisers. As shown in Fig. 7, we compared RetinaFace with other 29 state-of-the-art face detection algorithms (e.g. SSH [40], SFD [69], PyramidBox [51], DSFD [33], SFDet [68], RefineFace [67] etc.). Our approach sets up a new impressive record in terms of AP $(91.7\%)$ and outperforms these state-of-the-art methods on the Hard subset which contains a large number of tiny faces.
|
| 205 |
+
|
| 206 |
+
# 4.4. Five Facial Landmark Localisation
|
| 207 |
+
|
| 208 |
+
Face detection datasets are more challenging [59] than the face alignment datasets, which are usually collected by a pre-trained face detector with a high threshold. In the following experiments, we explore the benefits of training for point regression and face detection simultaneously.
|
| 209 |
+
|
| 210 |
+
To evaluate the accuracy of five facial landmark localisation, we compare RetinaFace with MTCNN [66] and
|
| 211 |
+
|
| 212 |
+

|
| 213 |
+
Figure 7. Precision-recall curves of RetinaFace (ResNet-152) on the WIDER FACE test Hard subsets.
|
| 214 |
+
|
| 215 |
+
<table><tr><td>Method</td><td>AUC (%)</td><td>Failure Rate (%)</td></tr><tr><td>MTCNN [66]</td><td>36.63</td><td>26.31</td></tr><tr><td>STN [7]</td><td>42.63</td><td>24.23</td></tr><tr><td>RetinaFace-MobileNet0.5</td><td>47.12</td><td>19.72</td></tr><tr><td>RetinaFace-R50</td><td>58.54</td><td>9.82</td></tr><tr><td>RetinaFace(w/o 3D)-R50</td><td>55.66</td><td>10.25</td></tr><tr><td>AFLW-R50-gtbox</td><td>44.91</td><td>25.40</td></tr><tr><td>Wider-R50-gtbox</td><td>61.55</td><td>8.78</td></tr></table>
|
| 216 |
+
|
| 217 |
+
Table 2. Summary of five facial landmark localisation results on the WIDER FACE dataset. Accuracy is reported as the Area Under The Curve (AUC) and the Failure Rate (threshold at $10\%$ ). “-gtbox” refers to crop-based face alignment based on ground-truth facial boxes.
|
| 218 |
+
|
| 219 |
+
STN [7] on the WIDER FACE validation set (18.5k faces). Here, we employ the face box size $(\sqrt{W\times H})$ as the normalisation distance. In Fig. 8(a), we show the Cumulative Error Distribution (CED) curves on the WIDER FACE validation set. As shown in Tab. 2, RetinaFace-MobileNet0.5 outperforms the baselines and decrease the failure rate to $19.72\%$ . By employing a deeper backbone (ResNet-50), RetinaFace-R50 further reduces the failure rate to $9.82\%$ . After removing the 3D mesh regression branch from RetinaFace, the AUC obviously decreases from $58.54\%$ to $55.66\%$ . This is because 3D mesh regression is pose-invariant and a joint training framework can improve the accuracy of 2D five facial landmarks. In Fig. 8(b), we test RetinaFace on the AFLW2000-3D profile subset (232 faces) [72], and we confirm that 3D mesh regression can significantly improve five facial landmark localisation under the large-pose scenario.
|
| 220 |
+
|
| 221 |
+
We further train two crop-based five facial landmark regression networks (ResNet-50) on the AFLW dataset (24,386 faces) [30] and the WIDER FACE dataset, separately. Even with the ground-truth facial boxes, the model trained on AFLW still has a high failure rate $(25.40\%)$ , which indicates the difference in the difficulty level between the face alignment dataset (AFLW) and the face detection dataset (WIDER FACE). Even though the model trained on WIDER FACE achieves the highest performance, the computational complexity increases linearly with the number of faces in the input image. However, RetinaFace achieves
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
(a) CED on WIDER FACE
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
(b) NME on AFLW Profile
|
| 228 |
+
Figure 8. Qualitative comparison between baselines and RetinaFace on five facial landmark localisation. (a) CED on the WIDER FACE validation set (18k faces) (b) NME on the AFLW2000-3D profile subset [72].
|
| 229 |
+
|
| 230 |
+
<table><tr><td>Method</td><td>[0°,30°]</td><td>[30°,60°]</td><td>[60°,90°]</td><td>Mean</td></tr><tr><td>SDM [72]</td><td>3.67</td><td>4.94</td><td>9.67</td><td>6.12</td></tr><tr><td>3DDFA [72]</td><td>3.43</td><td>4.24</td><td>7.17</td><td>4.94</td></tr><tr><td>Yu et al. [61]</td><td>3.62</td><td>6.06</td><td>9.56</td><td>6.41</td></tr><tr><td>3DSTN [2]</td><td>3.15</td><td>4.33</td><td>5.98</td><td>4.49</td></tr><tr><td>PRN [19]</td><td>2.75</td><td>3.51</td><td>4.61</td><td>3.62</td></tr><tr><td>FAME [5]</td><td>3.11</td><td>3.84</td><td>6.60</td><td>4.52</td></tr><tr><td>SS-SFN [6]</td><td>3.09</td><td>4.27</td><td>5.59</td><td>4.31</td></tr><tr><td>MS-SFN [6]</td><td>2.91</td><td>3.83</td><td>4.94</td><td>3.89</td></tr><tr><td>Lvert</td><td>2.77</td><td>3.70</td><td>4.95</td><td>3.81</td></tr><tr><td>Lmesh</td><td>2.72</td><td>3.65</td><td>4.81</td><td>3.72</td></tr><tr><td>L5pts+mesh</td><td>2.57</td><td>3.32</td><td>4.56</td><td>3.48</td></tr></table>
|
| 231 |
+
|
| 232 |
+
only slightly lower performance while its computational complexity remains fixed independently of the number of faces in each image.
|
| 233 |
+
|
| 234 |
+
# 4.5.3D Vertex Regression
|
| 235 |
+
|
| 236 |
+
Following [19], we evaluate the accuracy of 3D vertex regression on the AFLW2000-3D dataset [72] considering 68 points with the 2D projected coordinates. The mean error is normalised by the bounding box size [72]. In addition, our 3D vertex prediction can be used for (1) pose-invariant facial component segmentation [1], and (2) 3D pose estimation by utilizing a least squares solution [19] instead of solving a PnP problem.
|
| 237 |
+
|
| 238 |
+
In Tab. 3, we compare the proposed RetinaFace (ResNet-50) with other state-of-the-art dense regression algorithms (e.g. PRN [19] and MS-SFN [6] etc.) for 68 landmark localisation under yaw angle variations. The proposed direct 3D vertex regression is more than able to handle 68 facial landmark localisation under pose-variations, achieving an impressive NME of $3.81\%$ . 3D topology constraints help to slightly decrease the NME to $3.72\%$ . After training the 2D landmark regression and 3D mesh regression jointly with the face detector, we achieve better performance than state-of-the-art methods. PRN [19] employs UV position map regression and MS-SFN [6] uses 3DMM parameter regression, both of which are indirect regression methods. In contrast, our method directly regresses the projected 3D ver
|
| 239 |
+
|
| 240 |
+
Table 3. Comparison of NME(%) for 68 points on the AFLW2000-3D dataset.
|
| 241 |
+
|
| 242 |
+
<table><tr><td>Method</td><td>Eyebrow</td><td>Eye</td><td>Nose</td><td>Lip</td></tr><tr><td>DenseReg [1]</td><td>47.62</td><td>74.29</td><td>87.71</td><td>72.35</td></tr><tr><td>\( \mathcal{L}_{5pts+vert} \)</td><td>71.3</td><td>76.85</td><td>90.90</td><td>75.43</td></tr><tr><td>\( \mathcal{L}_{5pts+mesh} \)</td><td>72.23</td><td>78.51</td><td>92.21</td><td>77.55</td></tr></table>
|
| 243 |
+
|
| 244 |
+
Table 4. Semantic segmentation accuracy on the Helen test set [32] measured using IoU ratio.
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Method</td><td>[0°,30°]</td><td>[30°,60°]</td><td>[60°,90°]</td></tr><tr><td>DenseReg [1]</td><td>4.14 ± 3.93</td><td>5.96 ± 4.74</td><td>6.38 ± 4.90</td></tr><tr><td>PRN [19]</td><td>3.96 ± 3.43</td><td>5.75 ± 4.42</td><td>6.08 ± 4.41</td></tr><tr><td>L5pts+vert</td><td>3.79 ± 3.08</td><td>5.28 ± 3.83</td><td>5.60 ± 3.81</td></tr><tr><td>L5pts+mesh</td><td>3.69 ± 2.99</td><td>5.11 ± 3.73</td><td>5.41 ± 3.57</td></tr></table>
|
| 247 |
+
|
| 248 |
+
Table 5. Yaw angle estimation on the AFLW2000-3D dataset.
|
| 249 |
+
|
| 250 |
+
tices on the image plane, which can benefit from challenging training scenarios of face detection and large-scale five facial landmark annotations.
|
| 251 |
+
|
| 252 |
+
Besides the evaluation on facial landmark localisation, we can also transfer our 3D vertex predictions into pixelwised segmentation maps for different semantic components [1]. After an additional linear regression from 1k vertices to 53k vertices, we directly employ the segmentation mask (right/left eyebrow, right/left eye, nose, and upper/ lower lip) defined in [1]. Tab. 4 reports evaluation results on the Helen test set [32] using the IoU ratio. Note that the ground-truth here is generated by deformation-free coordinates [1]. The results indicate that the proposed RetinaFace (ResNet-50) outperforms DenseReg (ResNet-101), which is based on indirect UV coordinate regression. In contrast, RetinaFace employs direct vertex regression on the image plane, which is beneficial for more accurate localisation on the image, e.g. the substantial improvement for eyebrows. Given that RetinaFace is not optimized for the segmentation task, we believe that the pose-invariant facial component segmentation results in Fig. 9 are impressive.
|
| 253 |
+
|
| 254 |
+
As we can directly predict 3D vertices, the pose estimation is only the estimation of a rotation matrix obtained as the least squares solution between the regressed landmarks and the landmarks of a template face in frontal pose. In Tab. 5, we compare RetinaFace (ResNet-50) with DenseReg [1] and PRN [19] on the yaw angle estimation. Both DenseReg [1] and PRN [19] use an intermediate UV representation, while RetinaFace employs direct vertex regression on the image plane. As we can see from Tab. 5, RetinaFace can predict more accurate yaw angles with low variance, while topology constraints can further improve pose estimation. Both $z$ coordinates regression and pose estimation try to predict indirect 3D information from 2D images, thus the inclusion of topology constraints can boost both tasks by building the connections between direct image clues and indirect information estimation. In Fig. 9, we present the pose estimation results at the nose tip. RetinaFace is robust on pose estimation under expression variations, illumination changes and occlusions.
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
Figure 9. Example results of RetinaFace on the AFLW2000-3D dataset. First row: 1k 3D vertices predicted by RetinaFace (ResNet-50, $\mathcal{L}_{\text{pts} + \text{mesh}}$ ). Second row: 3D pose estimation and mesh render by the Vulkan toolkit. Third row: pose-invariant facial component segmentation.
|
| 260 |
+
Figure 10. Testing results of RetinaFace (ResNet-50, $\mathcal{L}_{5pts + mesh}$ ) compared to MFN [6] (first row). We show both the predicted 1k 3D vertices (Second row) and the 3D meshes rendered by the Vulkan toolkit (Third row). Please zoom in to check the missing faces (Column 2-4) and obvious mis-alignment (Column 5-6) by MFN.
|
| 261 |
+
|
| 262 |
+
# 4.6. Multi-Face Reconstruction
|
| 263 |
+
|
| 264 |
+
In Fig. 10, we compare RetinaFace with MFN [6] on multi-face images. MFN employs a single end-to-end network to jointly predict the bounding box locations and 3DMM parameters for multiple faces. However, 3DMM parameter regression is not as straightforward as our vertex regression on the image plane. In Columns 5 and 6, a misalignment problem in MFN can be observed. Even tiny variations in the predicted 3DMM parameters can significantly affect the reconstruction results. Nevertheless, RetinaFace can exactly fit the face boundary. In Columns 2, 3 and 4, it can be seen that several faces are missed by MFN. In contrast, our RetinaFace achieves state-of-the-art performance on WIDER FACE and can easily detect the tiny faces even under low illumination conditions. In the last row of Fig. 10, we render the 3D 1k vertices predicted by RetinaFace.
|
| 265 |
+
|
| 266 |
+
# 5. Conclusion
|
| 267 |
+
|
| 268 |
+
In this paper, we innovatively unify multi-level face localisation tasks under one common target: point regression on the image plane. We directly regress 3D vertices in the
|
| 269 |
+
|
| 270 |
+
image space while constrained by the 3D topology of the employed 3D face template. Also, the proposed 3D mesh regression branch can be easily incorporated in parallel with the existing box and 2D landmark regression branches without any optimisation difficulty during joint training. Finally, extensive experimental results showed that the proposed mutually beneficial design can simultaneously achieve accurate face detection, 2D face alignment and 3D face reconstruction with efficient single-shot inference.
|
| 271 |
+
|
| 272 |
+
Acknowledgements. We are thankful to Nvidia for the GPU donations and Amazon for the cloud credits. Jiankang Deng acknowledges financial support from the Imperial President's PhD Scholarship. Stefanos Zafeiriou acknowledges support from the EPSRC Fellowship DEFORM (EP/S010203/1), FACER2VM (EP/N007743/1) and a Google Faculty Fellowship. An early version of RetinaFace can be found in [13], where Yuxiang Zhou has contributed to the coloured mesh decoder by graph convolution and Jinke Yu has contributed to the face detection experiments on mobile devices.
|
| 273 |
+
|
| 274 |
+
# References
|
| 275 |
+
|
| 276 |
+
[1] Riza Alp Guler, George Trigeorgis, Epameinondas Antonakos, Patrick Snape, Stefanos Zafeiriou, and Iasonas Kokkinos. Densereg: Fully convolutional dense shape regression in-the-wild. In CVPR, 2017. 1, 2, 7
|
| 277 |
+
[2] Chandrasekhar Bhagavatula, Chenchen Zhu, Khoa Luu, and Marios Savvides. Faster than real-time facial alignment: A 3d spatial transformer network approach in unconstrained poses. In ICCV, 2017. 7
|
| 278 |
+
[3] James Booth, Anastasios Roussos, Evangelos Ververas, Epameinondas Antonakos, Stylianos Ploumpis, Yannis Panagakis, and Stefanos Zafeiriou. 3d reconstruction of "inthe-wild" faces in images and videos. TPAMI, 2018. 5
|
| 279 |
+
[4] Zhaowei Cai and Nuno Vasconcelos. Cascade r-cnn: Delving into high quality object detection. In CVPR, 2018. 4
|
| 280 |
+
[5] Feng-Ju Chang, Anh Tuan Tran, Tal Hassner, Iacopo Masi, Ram Nevatia, and Gerard Medioni. Deep, landmark-free fame: Face alignment, modeling, and expression estimation. IJCV, 2019. 1, 7
|
| 281 |
+
[6] Bindita Chaudhuri, Noranart Vesdapunt, and Baoyuan Wang. Joint face detection and facial motion retargeting for multiple faces. In CVPR, 2019. 2, 5, 7, 8
|
| 282 |
+
[7] Dong Chen, Gang Hua, Fang Wen, and Jian Sun. Supervised transformer network for efficient face detection. In ECCV, 2016. 2, 6
|
| 283 |
+
[8] Dong Chen, Shaoqing Ren, Yichen Wei, Xudong Cao, and Jian Sun. Joint cascade face detection and alignment. In ECCV, 2014. 2
|
| 284 |
+
[9] Tianqi Chen, Mu Li, Yutian Li, Min Lin, Naiyan Wang, Minjie Wang, Tianjun Xiao, Bing Xu, Chiyuan Zhang, and Zheng Zhang. Mxnet: A flexible and efficient machine learning library for heterogeneous distributed systems. arXiv:1512.01274, 2015. 5
|
| 285 |
+
[10] Cheng Chi, Shifeng Zhang, Junliang Xing, Zhen Lei, Stan Z Li, and Xudong Zou. Selective refinement network for high performance face detection. AAAI, 2019. 2
|
| 286 |
+
[11] Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. In ICCV, 2017. 4
|
| 287 |
+
[12] Jiankang Deng, Jia Guo, Niannan Xue, and Stefanos Zafeiriou. Arcface: Additive angular margin loss for deep face recognition. In CVPR, 2019. 1
|
| 288 |
+
[13] Jiankang Deng, Jia Guo, Yuxiang Zhou, Jinke Yu, Irene Kotsia, and Stefanos Zafeiriou. Retinaface: Single-stage dense face localisation in the wild. In arXiv:1905.00641, 2019. 5, 8
|
| 289 |
+
[14] Jiankang Deng, Qingshan Liu, Jing Yang, and Dacheng Tao. M3 csv: Multi-view, multi-scale and multi-component cascade shape regression. IVC, 2016. 1
|
| 290 |
+
[15] Jiankang Deng, Anastasios Roussos, Grigorios Chrysos, Evangelos Ververas, Irene Kotsia, Jie Shen, and Stefanos Zafeiriou. The menpo benchmark for multi-pose 2d and 3d facial landmark localisation and tracking. *IJCV*, 2019. 1, 5
|
| 291 |
+
[16] Jiankang Deng, George Trigeorgis, Yuxiang Zhou, and Stefanos Zafeiriou. Joint multi-view face alignment in the wild. TIP, 2019. 1
|
| 292 |
+
|
| 293 |
+
[17] Jiankang Deng, Yuxiang Zhou, Shiyang Cheng, and Stefanos Zaferiou. Cascade multi-view hourglass model for robust 3d face alignment. In FG, 2018. 1
|
| 294 |
+
[18] Jiankang Deng, Yuxiang Zhou, and Stefanos Zafeiriou. Marginal loss for deep face recognition. In CVPR Workshops, 2017. 1
|
| 295 |
+
[19] Yao Feng, Fan Wu, Xiaohu Shao, Yanfeng Wang, and Xi Zhou. Joint 3d face reconstruction and dense alignment with position map regression network. In ECCV, 2018. 1, 2, 7
|
| 296 |
+
[20] Spyros Gidaris and Nikos Komodakis. Object detection via a multi-region and semantic segmentation-aware cnn model. In ICCV, 2015. 5
|
| 297 |
+
[21] Ross Girshick. Fast r-cnn. In ICCV, 2015. 2, 3
|
| 298 |
+
[22] Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In AISTATS, 2010. 4
|
| 299 |
+
[23] Jia Guo, Jiankang Deng, Niannan Xue, and Stefanos Zafeiriou. Stacked dense u-nets with dual transformers for robust face alignment. In BMVC, 2018. 1
|
| 300 |
+
[24] Yudong Guo, Jianfei Cai, Boyi Jiang, Jianmin Zheng, et al. CNN-based real-time dense face reconstruction with inverse-rendered photo-realistic face images. TPAMI, 2018. 2
|
| 301 |
+
[25] Kaiming He, Georgia Gkioxari, Piotr Dólar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 2
|
| 302 |
+
[26] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
|
| 303 |
+
[27] Peiyun Hu and Deva Ramanan. Finding tiny faces. In CVPR, 2017. 2
|
| 304 |
+
[28] Vidit Jain and Erik Learned-Miller. Fddb: A benchmark for face detection in unconstrained settings. Technical report, UMass Amherst Technical Report, 2010. 2, 5
|
| 305 |
+
[29] Amin Jourabloo and Xiaoming Liu. Large-pose face alignment via cnn-based dense 3d model fitting. In CVPR, 2016. 2
|
| 306 |
+
[30] Martin Koestinger, Paul Wohlhart, Peter M Roth, and Horst Bischof. Annotated facial landmarks in the wild: A large-scale, real-world database for facial landmark localization. In ICCV workshops, 2011. 2, 5, 6
|
| 307 |
+
[31] Felix Kuhnke and Jorn Ostermann. Deep head pose estimation using synthetic images and partial adversarial domain adaption for continuous label spaces. In ICCV, 2019. 1
|
| 308 |
+
[32] Vuong Le, Jonathan Brandt, Zhe Lin, Lubomir Bourdev, and Thomas S Huang. Interactive facial feature localization. In ECCV, 2012. 7
|
| 309 |
+
[33] Jian Li, Yabiao Wang, Changan Wang, Ying Tai, Jianjun Qian, Jian Yang, Chengjie Wang, Jilin Li, and Feiyue Huang. Dsfd: dual shot face detector. arXiv:1810.10220, 2018. 6
|
| 310 |
+
[34] Jinpeng Lin, Hao Yang, Dong Chen, Ming Zeng, Fang Wen, and Lu Yuan. Face parsing with roi tanh-warping. In CVPR, 2019. 1
|
| 311 |
+
[35] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In CVPR, 2017. 2, 4
|
| 312 |
+
[36] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and Piotr Dólár. Focal loss for dense object detection. In ICCV, 2017. 2, 4
|
| 313 |
+
|
| 314 |
+
[37] Feng Liu, Luan Tran, and Xiaoming Liu. 3d face modeling from diverse raw scan data. In ICCV, 2019. 3
|
| 315 |
+
[38] Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, and Alexander C Berg. Ssd: Single shot multibox detector. In ECCV, 2016. 2
|
| 316 |
+
[39] Stylianos Moschoglou, Athanasios Papaioannou, Christos Sagonas, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Agedb: The first manually collected in-the-wild age database. In CVPR Workshops, 2017. 1
|
| 317 |
+
[40] Mahyar Najibi, Pouya Samangouei, Rama Chellappa, and Larry S Davis. Ssh: Single stage headless face detector. In ICCV, 2017. 2, 4, 5, 6
|
| 318 |
+
[41] Hongyu Pan, Hu Han, Shiguang Shan, and Xilin Chen. Mean-variance loss for deep age estimation from a face. In CVPR, 2018. 1
|
| 319 |
+
[42] Pascal Paysan, Reinhard Knothe, Brian Amberg, Sami Romdhani, and Thomas Vetter. A 3d face model for pose and illumination invariant face recognition. In Advanced Video and Signal Based Surveillance, 2009. 3
|
| 320 |
+
[43] Deva Ramanan and Xiangxin Zhu. Face detection, pose estimation, and landmark localization in the wild. In CVPR, 2012. 1
|
| 321 |
+
[44] Joseph Redmon, Santosh Divvala, Ross Girshick, and Ali Farhadi. You only look once: Unified, real-time object detection. In CVPR, 2016. 2
|
| 322 |
+
[45] Joseph Redmon and Ali Farhadi. Yolo9000: better, faster, stronger. In CVPR, 2017. 2
|
| 323 |
+
[46] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In NeurIPS, 2015. 2
|
| 324 |
+
[47] Elad Richardson, Matan Sela, and Ron Kimmel. 3d face reconstruction by learning from synthetic data. In 3DV, 2016. 2
|
| 325 |
+
[48] Nataniel Ruiz, Eunji Chong, and James M Rehg. Fine-grained head pose estimation without keypoints. In CVPR Workshops, 2018. 1
|
| 326 |
+
[49] Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In CVPR, 2016. 5
|
| 327 |
+
[50] Brandon M Smith, Li Zhang, Jonathan Brandt, Zhe Lin, and Jianchao Yang. Exemplar-based face parsing. In CVPR, 2013. 1
|
| 328 |
+
[51] Xu Tang, Daniel K Du, Zeqiang He, and Jingtuo Liu. Pyramidbox: A context-assisted single shot face detector. In ECCV, 2018. 2, 4, 5, 6
|
| 329 |
+
[52] Ayush Tewari, Michael Zollhofer, Hyeongwoo Kim, Pablo Garrido, Florian Bernard, Patrick Perez, and Christian Theobalt. Mofa: Model-based deep convolutional face autoencoder for unsupervised monocular reconstruction. In ICCV, 2017. 2
|
| 330 |
+
[53] Anh Tuan Tran, Tal Hassner, Iacopo Masi, and Gerard Medioni. Regressing robust and discriminative 3d morphable models with a very deep neural network. In CVPR, 2017. 2
|
| 331 |
+
[54] Paul Viola and Michael J Jones. Robust real-time face detection. IJCV, 2004. 1
|
| 332 |
+
|
| 333 |
+
[55] Jianfeng Wang, Ye Yuan, and Gang Yu. Face attention network: an effective face detector for the occluded faces. arXiv:1711.07246, 2017. 2, 4
|
| 334 |
+
[56] Jing Yang, Adrian Bulat, and Georgios Tzimiropoulos. Fanface: a simple orthogonal improvement to deep face recognition. In AAAI, 2020. 1
|
| 335 |
+
[57] Jing Yang, Jiankang Deng, Kaihua Zhang, and Qingshan Liu. Facial shape tracking via spatio-temporal cascade shape regression. In ICCV Workshops, 2015. 1
|
| 336 |
+
[58] Jing Yang, Qingshan Liu, and Kaihua Zhang. Stacked hourglass network for robust facial landmark localisation. In CVPR Workshops, 2017. 1
|
| 337 |
+
[59] Shuo Yang, Ping Luo, Chen-Change Loy, and Xiaou Tang. Wider face: A face detection benchmark. In CVPR, 2016. 2, 5, 6
|
| 338 |
+
[60] Tsun-Yi Yang, Yi-Ting Chen, Yen-Yu Lin, and Yung-Yu Chuang. Fsa-net: Learning fine-grained structure aggregation for head pose estimation from a single image. In CVPR, 2019. 1
|
| 339 |
+
[61] Ronald Yu, Shunsuke Saito, Haoxiang Li, Duygu Ceylan, and Hao Li. Learning dense facial correspondences in unconstrained images. In ICCV, 2017. 7
|
| 340 |
+
[62] Stefanos Zafeiriou, Cha Zhang, and Zhengyou Zhang. A survey on face detection in the wild: past, present and future. CVIU, 2015. 1
|
| 341 |
+
[63] Changzheng Zhang, Xiang Xu, and Dandan Tu. Face detection using improved faster rcnn. arXiv:1802.02142, 2018. 2
|
| 342 |
+
[64] Feifei Zhang, Tianzhu Zhang, Qirong Mao, and Changsheng Xu. Joint pose and expression modeling for facial expression recognition. In CVPR, 2018. 1
|
| 343 |
+
[65] Hongkai Zhang, Hong Chang, Bingpeng Ma, Shiguang Shan, and Xin Chen. Cascade retina: Maintaining consistency for single-stage object detection. In BMVC, 2019. 4
|
| 344 |
+
[66] Kaipeng Zhang, Zhanpeng Zhang, Zhifeng Li, and Yu Qiao. Joint face detection and alignment using multitask cascaded convolutional networks. SPL, 2016. 2, 6
|
| 345 |
+
[67] Shifeng Zhang, Cheng Chi, Zhen Lei, and Stan Z Li. Refine-face: Refinement neural network for high performance face detection. In arXiv:1909.04376, 2019. 6
|
| 346 |
+
[68] Shifeng Zhang, Longyin Wen, Hailin Shi, Zhen Lei, Siwei Lyu, and Stan Z Li. Single-shot scale-aware network for real-time face detection. IJCV, 2019. 6
|
| 347 |
+
[69] Shifeng Zhang, Xiangyu Zhu, Zhen Lei, Hailin Shi, Xiaobo Wang, and Stan Z Li. S3fd: Single shot scale-invariant face detector. In ICCV, 2017. 2, 5, 6
|
| 348 |
+
[70] Yuxiang Zhou, Jiankang Deng, Irene Kotsia, and Stefanos Zafeiriou. Dense 3d face decoding over 2500fps: Joint texture & shape convolutional mesh decoders. In CVPR, 2019. 1
|
| 349 |
+
[71] Xizhou Zhu, Han Hu, Stephen Lin, and Jifeng Dai. Deformable convnets v2: More deformable, better results. arXiv:1811.11168, 2018. 4
|
| 350 |
+
[72] Xiangyu Zhu, Zhen Lei, Xiaoming Liu, Hailin Shi, and Stan Z Li. Face alignment across large poses: A 3d solution. In CVPR, 2016. 1, 2, 5, 6, 7
|
retinafacesingleshotmultilevelfacelocalisationinthewild/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f091a920c9027bed079e50a292883285d7a13fc7e6e8d0cc7879c5023a3eec9
|
| 3 |
+
size 685130
|
retinafacesingleshotmultilevelfacelocalisationinthewild/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ae9e9f6ce69562abdcf1e2b40292857b093f8b8d82dd8e00ec5a42ca4a44fa3
|
| 3 |
+
size 464710
|
retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:057025b85f83aea43883af4591f4047f3c8efc15f0361e28f2e4ebcbb4196e09
|
| 3 |
+
size 68003
|
retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36fa749cf43906d1d946773453f9d8b944ab897e18a030dbae0801600b184557
|
| 3 |
+
size 80975
|
retinalikevisualimagereconstructionviaspikingneuralmodel/2214f7fc-cc44-4c58-9c57-7e4441c323bb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d4f494b57386dd6bac0e4eaf83e3c07314e20ad6e9dcb8604694f32f5a1baaa
|
| 3 |
+
size 2851063
|
retinalikevisualimagereconstructionviaspikingneuralmodel/full.md
ADDED
|
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Retina-like Visual Image Reconstruction via Spiking Neural Model
|
| 2 |
+
|
| 3 |
+
Lin Zhu $^{1,2}$ Siwei Dong $^{1}$ JianingLi $^{1,2}$ Tiejun Huang $^{1}$ Yonghong Tian $^{1,2,*}$ Peking University $^{1}$ Pengcheng Laboratory $^{2}$
|
| 4 |
+
|
| 5 |
+
{linzhu,swdong,lijianing,tjhuang,yhtian}@pku.edu.cn
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
The high-sensitivity vision of primates, including humans, is mediated by a small retinal region called the fovea. As a novel bio-inspired vision sensor, spike camera mimics the fovea to record the nature scenes by continuous-time spikes instead of frame-based manner. However, reconstructing visual images from the spikes remains to be a challenge. In this paper, we design a retina-like visual image reconstruction framework, which is flexible in reconstructing full texture of natural scenes from the totally new spike data. Specifically, the proposed architecture consists of motion local excitation layer, spike refining layer and visual reconstruction layer motivated by bio-realistic leaky integrate and fire (LIF) neurons and synapse connection with spiketiming-dependent plasticity (STDP) rules. This approach may represent a major shift from conventional frame-based vision to the continuous-time retina-like vision, owing to the advantages of high temporal resolution and low power consumption. To test the performance, a spike dataset is constructed which is recorded by the spike camera. The experimental results show that the proposed approach is extremely effective in reconstructing the visual image in both normal and high speed scenes, while achieving high dynamic range and high image quality.
|
| 10 |
+
|
| 11 |
+
# 1. Introduction
|
| 12 |
+
|
| 13 |
+
Autonomous driving, wearable computing, unmanned aerial vehicles, are typical emerging real-time applications which require rapid reaction in vision processing [19]. Conventional cameras compress the video data in the exposure time into one frame, and the temporal changes in that time will be lost [11]. When performing image analysis tasks such as detecting or tracking an object, these consecutive frames have to be compared to recover temporal changes, which is computationally expensive and is difficult to achieve satisfactory results [21].
|
| 14 |
+
|
| 15 |
+
If we turn attention to the human vision, the visual sam
|
| 16 |
+
|
| 17 |
+
pling is quite different from that of a digital camera. There is no concept of frames or pictures in human vision. Although the mechanism of human vision is too complicated to be fully understood, the physical structures and the signal processing in human retina give us some hints and inspirations. Among them, the dynamic vision sensor (DVS) is the most well-recognized [8, 1]. In DVS, each pixel responds independently to the changes of luminance intensity by generating asynchronous spikes. This mechanism is similar to the periphery of the retina, which is sensitive only to moving objects. The temporal redundancy of the output spikes is natively reduced, however, it is not able to reconstruct the visual images as the conventional camera does. Although there are some hybrid sensors combing DVS and conventional image sensor (DAVIS) [5], or adding an extra photo-measurement circuit (ATIS [23], CeleX [13]), there exists motion mismatch since the difference of the sampling time resolution.
|
| 18 |
+
|
| 19 |
+
To solve the problem of capturing visual texture while maintaining the continuous-time signal, researchers designed a class of time-based sensors to make each pixel mimics the behaviour of an integrate-and-fire neuron and works asynchronously [2, 6, 16]. Instead of choosing a fixed integration time for all pixels like a conventional camera, the time-based sensor ensures that each pixel selects its own optimal integration time to achieve a high dynamic range and an improved signal-to-noise ratio. This kind of sensor enables the reconstruction of visual textures in a frame-free manner. Using a time window or the inter-spike interval, the image texture can be reconstructed [6].
|
| 20 |
+
|
| 21 |
+
Recently, [28] proposed a fovea-like sampling method (FSM) which falls into the category of time-based sensors. Compared to previous time-based sensors, this sensor namely spike camera is with high spatial $(250 \times 400)$ and temporal resolutions $(40000\mathrm{Hz})$ , which is suitable to deal with high-speed vision tasks [28]. However, the previous reconstruction algorithms [6, 28] will suffer the problem of low contrast or blur in complex environments. Therefore, how to flexibly use the time-continuous spike information is a key problem of high-quality image reconstruction.
|
| 22 |
+
|
| 23 |
+
In this paper, we propose a new retina-like visual im
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1. The spike camera based on fovea-like sampling and visual image reconstruction.
|
| 27 |
+
|
| 28 |
+
age reconstruction framework, as shown in Fig 1. The main contributions of this paper include: 1) We propose a three-layer spiking neural model which relies on a combination of biologically plausible mechanisms. Using time-continuous spike data, our method can reconstruct images at any sampling moment, and retain the details of high-speed motion and static background simultaneously. 2) We propose a dynamic neuron extraction model to distinguish the neuron states (dynamic or static) in an incremental way, which is useful for reconstructing high quality high-speed motion scenes. 3) We construct a new spike dataset for evaluating the reconstruction method, and make these available to the research community.
|
| 29 |
+
|
| 30 |
+
# 2. Spike Data Analysis
|
| 31 |
+
|
| 32 |
+
# 2.1. Spike Data Representation
|
| 33 |
+
|
| 34 |
+
In FSM, the intensity of light is converted into voltage by the photoreceptor [28]. Once the voltage reaches a predefined threshold, a one-bit spike is outputted and a signal to reset the integrator is dispatched at the same time. This process is quite similar to the integrate-and-fire neuron. Different luminance stimuli $I$ leads to a different spike firing rate, the output and the reset are triggered asynchronously among various pixels. Typically, the brighter the light, the faster the firing speed:
|
| 35 |
+
|
| 36 |
+
$$
|
| 37 |
+
\int I d t \geq \phi \tag {1}
|
| 38 |
+
$$
|
| 39 |
+
|
| 40 |
+
The raw data from the spike camera is a three-dimensional spike array $D$ . The spike camera only cares about the integration of the luminance intensity and fires spikes in an ultra high frequency. At each sampling moment, if a spike is just fired, a digital signal "1" (i.e. a spike) is outputted, otherwise "0" is generated. We define $S_{i,j}(t) \in \{0,1\}$ to represent the spike firing status of pixel $(i,j)$ at the moment $t$ . For simplicity, we use spike plane to represent the spike signal outputted by all pixel at a certain moment, while the time-continuous spike signals generated by a certain pixel is called a spike train (see Fig 5 (a)).
|
| 41 |
+
|
| 42 |
+
# 2.2. Spike Data Distribution
|
| 43 |
+
|
| 44 |
+
The integrator has a predefined capacity which is also known as the spike firing threshold $\phi$ . If the integrator is
|
| 45 |
+
|
| 46 |
+
filled, it will be reset and fires a spike. Due to the variation of the light, the duration of filling the integrator from empty to fulfilled is not constant. Microscopically, a spike is generated means a fixed number of photons have been recorded. We define $N(t,\delta)$ as the number of photons arrived at the photoreceptor within the time interval $[t,t + \delta)$ , and $R(t,\delta)$ as the number of photons recorded actually in the same period. However, the dead time $\tau$ between two consecutive photon arrivals makes $N(t,\delta)$ and $R(t,\delta)$ are not equal. If the former arrival is recorded at time $t$ , any latter photon arrivals during $(t,t + \tau]$ will not be recorded.
|
| 47 |
+
|
| 48 |
+
In fact, the photon record process $R(t,\delta)$ can be seemed as a renewal process, which involves recurrent patterns after each of which the process starts from scratch. The photon arrival process is usually assumed to be a homogeneous Poisson process. It is parameterized by a single scalar $\lambda$ which gives the mean rate of the photon arrivals. If the waiting time between one renewal and the next has ensemble mean and variance, the photo recording process with dead time $\tau$ is asymptotically Gaussian distributed [7]:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
E \sim \frac {\lambda \delta}{1 + \lambda \tau}, V a r \sim \frac {\lambda \delta}{(1 + \lambda \tau) ^ {3}} \tag {2}
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
To validate the model, we record several spike sequences using the spike camera under various light conditions. We assume that the record of $n$ photons will reach the dispatch threshold $\phi$ and generate a spike. If the spike firing time is denoted as $t_i$ , the inter-spike interval is $t_{isi} = t_i - t_{i-1}$ . As shown in Fig 2, the blocks with different grayscale values represent the luminance intensities, which indicates that larger intensities lead to higher spike firing rates and shorter inter-spike intervals (ISIs). The RMSE shows that the interspike interval distribution histogram can be well fitted by the approximate Gaussian distribution.
|
| 55 |
+
|
| 56 |
+
Based on the above, we are able to model the ISI distribution of a certain intensity by a Gaussian distribution. In Sec 3.2, a dynamic neuron extraction model is proposed to extract the spike signal representing moving object according to the ISI distribution.
|
| 57 |
+
|
| 58 |
+
# 3. Spiking Neural Model
|
| 59 |
+
|
| 60 |
+
To address the challenge of visual image reconstruction from the spike data, we propose a novel spike neural mod
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
Figure 2. The spike data distribution under different intensities. Left: The spike train generated by different light intensity. Larger intensities lead to higher spike firing rates and shorter inter-spike intervals. Right: the exact ISI distribution histogram, approximate Gaussian distribution and their Root Mean Squard Error (RMSE). The RMSE shows that the approximate Gaussian distribution can well fit the real ISI distribution.
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
|
| 67 |
+
el based on the inspiration from the biological neural dynamics and the adaptation. In biological neural systems, a neuron receiving the stimuli and firing a spike can be abstracted as a leaky integrate-and-fire (LIF) model [14]. In LIF model, the membrane potential $V(t)$ is governed by the following differential equation:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\tau_ {m} \frac {d V}{d t} = - (V (t) - V _ {\text {r e s t}}) + R I (t) \tag {3}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
where $V_{\text{rest}}$ is the rest potential, $I(t)$ is the total synaptic current, $R$ is the membrane resistance and $\tau_m$ is the membrane time constant. In the absence of input, the membrane potential decays exponentially to its resting. With the input spikes, each input yields the input potential onto the membrane potential $V(t)$ . Each time the membrane potential hits the threshold, the membrane potential $V(t)$ is reset to $V_{\text{rest}}$ and a spike is fired [14]. The refractory period in a neuron occurs after one output spike, which is quite different in various neurons.
|
| 74 |
+
|
| 75 |
+
In addition, there exists multiple adaptation mechanisms in biological neuron. The neuron is adaptively adjusted according to the input spike characteristics. For instance, the synapse plasticity [3, 4] modulates the efficiency of neural connections by its weight, while the membrane potential thresholds (spike firing thresholds) of various neurons are different to adapt to different stimuli. The dynamic threshold [9] allows that more frequent stimuli may lead to greater thresholds, and vice versa.
|
| 76 |
+
|
| 77 |
+
Based on the inspiration from biological neurons, we propose a spiking neural model to solve the problem of image reconstruction. The model shown in Fig 3 includes motion local excitation layer, spike refining layer and visual reconstruction layer. The motion local excitation layer receives spikes input and marks the motion state of neurons (static or dynamic). Then the spike refining layer adjusts the refractory period of each neuron according to its motion state, which acts as a temporal filter. The last visual reconstruction layer adopts the adaptation mechanism widely existed in biological neurons, and maps the dynamic threshold of each neuron into a grayscale image as the output.
|
| 78 |
+
|
| 79 |
+
The overall architecture of the spiking neural model is illustrated in Fig 3 and in more detail in Fig 5. The architecture of the spiking neural model is described in Sec 3.1. The dynamic neuron extraction based on graph cuts is shown in Sec 3.2. Sec 3.3 presents the synapse connection, while the visual image reconstruction is introduced in Sec 3.4.
|
| 80 |
+
|
| 81 |
+
# 3.1. Model Architecture
|
| 82 |
+
|
| 83 |
+
Motion Local Excitation Layer The motion local excitation layer operates on the input spike data and outputs spike train with binary marks (dynamic or static). The purpose is to distinguish the neuron state according to the input spike data. Each neuron in this layer is connected to the input spike data in one-to-one connections. In this layer, the input spike data is modelled as a motion confidence matrix according to the historical firing distribution. Then, for current moment, the neuron states can be abstracted into the first-order Markov Random Field with binary labels [12], and a motion local extractor based on the graph cuts is performed. In this way, each output spike has a dynamic or static mark to distinguish the state of the neuron. The detail will be described in Sec 3.2.
|
| 84 |
+
|
| 85 |
+
Spike Refining Layer To model neuronal dynamics, the LIF model is introduced in spike refine layer. In this layer, the input spikes are filtered to keep the fast response to the motion while removing the noise. The size of this layer is the same as the motion local excitation layer, each input is fed to one neuron in this layer. In order to rapidly respond to the motion, we set the threshold voltage to a very small value. To eliminate the noise, according to the mark given by the motion local excitation layer, a relatively long refractory period should be set if the current input spike is marked static; otherwise, if the spike comes from a dynamic neuron, a relatively short refractory period should be set. By the above mechanism, the spike refining layer can significantly eliminate the noise, and mitigate the over-exposure by reducing the firing rate. Meanwhile, this layer retains as much detail as possible to maintain the fidelity of dynamic spike while preserved high dynamic range.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
Figure 3. The overall architecture of spiking neural model.
|
| 89 |
+
|
| 90 |
+
Visual Reconstruction Layer As in the previous layer, the neurons in this layer are LIF neurons. Each neuron receives the spike train from the spike refining layer, and the neuron and the synaptic connection make various adaptive adjustments. The visual image is reconstructed according to the state of the neuron. The neurons of this layer are connected in a one-to-many fashion to that of spike refining layer. These neurons have no refractory period. STDP learning rule [4] is performed between these two layers to learn to adjust the spike firing rate (see Sec 3.3). In addition, to achieve the homeostasis of the system, threshold adaptation [9] is introduced in this layer. According to the statistics of the neuron state and dynamic threshold, high quality visual images including dynamic and static scenes can be reconstructed simultaneously (see Sec 3.4).
|
| 91 |
+
|
| 92 |
+
# 3.2. Dynamic Neuron Extraction
|
| 93 |
+
|
| 94 |
+
In this section, we propose a dynamic neuron extraction model to mark input spikes as dynamic or static. As analyzed in Sec 2.2, the ISI is equal to the time of a fixed number of photons have been recorded, which is proportional to the firing threshold $\phi$ of the integrator. For a constant photon arrival rate $\lambda$ , the ISI distribution has an unimodal and symmetric distribution which approaches a Gaussian distribution. The region visited by a moving object has a dissimilar ISI distribution from that driven by static region. Therefore, we associate the ISI of each neuron with a Gaussian probability model with mean $\mu$ and covariance $\sigma$ :
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
\operatorname {I S I} \sim \mathcal {N} (\mu , \sigma) \tag {4}
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
Assuming that each neuron corresponds to a coordinate $(i,j), i \in [1,m], j \in [1,n]$ , where $m$ and $n$ are the resolution of spike camera. The $ij$ -th neuron is denoted as $ij$ , we evaluate all the moments against their corresponding ISI distribution models and obtain the confidence map $C_{ij}(t) \in \mathbb{R}^{T \times 1}$ , which corresponds to the confidence of the location belong to static region. Therefore, the motion confidence of each neuron at different moment is:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
O = \left[ \begin{array}{c c c} C _ {1 1} & \dots & C _ {1 n} \\ \vdots & \ddots & \vdots \\ C _ {m 1} & \dots & C _ {m n} \end{array} \right] \in \mathbb {R} ^ {m \times n \times T} \tag {5}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
Figure 4. The illustration of dynamic neuron extraction. This operation is performed in motion local excitation layer. The dynamic neurons corresponding to digital and turntable center are extracted. Top: the visualized result of the motion confidence matrix $O$ . Bottom: the dynamic neuron extraction results.
|
| 108 |
+
|
| 109 |
+
At the moment $t$ , the mark matrix $M^t \in \{0,1\}^{m \times n}$ is a binary matrix denoting the states of the neurons:
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
M _ {i j} ^ {t} = \left\{ \begin{array}{l l} 1 & \text {i f i j b e l o n g s t o m o t i o n r e g i o n a t m o m e n t} t \\ 0 & \text {o t h e r w i s e} \end{array} \right. \tag {6}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
We use $\mathcal{P}_{M^t}(X)$ to represent the orthogonal projection of a matrix $X$ onto the linear space of matrices supported by $M^t$ ,
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\mathcal {P} _ {M ^ {t}} (X) (i, j) = \left\{ \begin{array}{l l} 0 & \text {i f} M _ {i j} ^ {t} = 0 \\ X _ {i j} & \text {i f} M _ {i j} ^ {t} = 1 \end{array} \right. \tag {7}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
and $\mathcal{P}_{M^{t\perp}}(X)$ to be its complementary projection, i.e., $\mathcal{P}_{M^t}(X) + \mathcal{P}_{M^{t\perp}}(X) = X$
|
| 122 |
+
|
| 123 |
+
The binary matrix $M^t$ can be naturally modeled by a Markov Random Field (MRF) [12]. Consider a graph $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , where $\mathcal{V}$ is the set of vertices denoting all $m \times n$ neurons and $\mathcal{E}$ is the set of edges connecting spatially neighboring neurons. According to the Ising model [17], the energy of $M$ can be represented as:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\sum_ {i j \in \mathcal {V}} u _ {i j} \left(M _ {i j}\right) + \sum_ {(i j, k l) \in \mathcal {E}} \lambda_ {i j, k l} \left| M _ {i j} - M _ {k l} \right| \tag {8}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
u _ {i j} \left(M _ {i j}\right) = \left\{ \begin{array}{l l} \lambda_ {i j} & \text {i f} M _ {i j} = 1 \\ 0 & \text {i f} M _ {i j} = 0 \end{array} \right. \tag {9}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
where $\lambda_{ij,kl}$ controls the strength of dependency between $M_{ij}$ and $M_{kl}$ , and $\lambda_{ij}$ controls the sparsity of $M_{ij} = 1$ .
|
| 136 |
+
|
| 137 |
+
Since $O^t$ denotes the motion confidence, we assume that $O^t = M^t + N^t$ , where $N^t$ denotes the noise. For the static neurons of $M_{ij}^t = 0$ , the noise $N^t = \mathcal{P}_{M^{t\perp}}(O^t)$ should be minimized. Combining the above motion model and noise model, we propose the following optimization:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
\begin{array}{l} \min _ {M _ {i j} ^ {t} \in 0, 1} \frac {1}{2} \sum_ {i j} \mathcal {P} _ {M ^ {t \perp}} \left(O _ {i j} ^ {t}\right) ^ {2} + \sum_ {i j \in \mathcal {V}} u _ {i j} \left(M _ {i j} ^ {t}\right) \tag {10} \\ + \sum_ {(i j, k l) \in \mathcal {E}} \\ \end{array}
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
For simplicity, we set $\lambda_{ij} = \alpha$ and $\lambda_{ij,kl} = \beta$ . Eq. 10 can be rewritten as follows:
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\min _ {M _ {i j} ^ {t} \in 0, 1} \sum_ {i j} \left(\alpha - \frac {1}{2} \left(O _ {i j} ^ {t}\right) ^ {2}\right) M _ {i j} ^ {t} + \beta \| E \operatorname {v e c} \left(M ^ {t}\right) \| _ {1} + c \tag {11}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $c = \frac{1}{2}\sum_{ij}(O_{ij}^t)^2$ , $E$ is the node-edge incidence matrix of $\mathcal{G}$ . Eq. 11 is the standard form of the first-order MRFs with binary labels, which can be solved exactly by graph cuts [15].
|
| 150 |
+
|
| 151 |
+
The illustration of dynamic neuron extraction is shown in Fig 4. The proposed model is sufficient to distinguish the neuron state. When a new set of spikes arrives, the confidence matrix is updated incrementally, and the graph cuts can be operated for each moment separately.
|
| 152 |
+
|
| 153 |
+
# 3.3. Synapse Connection
|
| 154 |
+
|
| 155 |
+
Synapse is a structure that permits a neuron to pass a voltage signal to another neuron according to their weights. In applications of spiking neural network (SNN), the weights can be trained following a learning rule or set to constant values. Synaptic plasticity is the basic mechanism of underlying learning in biological networks [3]. It is defined as the ability to modulate the efficiency (also known as weight) of neural connections. In the biological vision system, information coding is established in an unsupervised way. Among the SNN learning rules, spike timing dependent plasticity (STDP) [3] is the most popular one. With STDP, if the presynaptic spike to a neuron tends to shortly before it fires, then the synaptic weight is made stronger (Long-Term Potentiation, LTP); whereas if an input spike tends to occur immediately after an output spike, then that particular input is made somewhat weaker (Long-Term Depression, LTD). In this work, biological STDP [4] is used to learn the rule of spike firing of static neurons, which is defined as:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
\Delta \omega = \sum_ {t _ {p r e}} \sum_ {t _ {p o s t}} W \left(t _ {p o s t} - t _ {p r e}\right) \tag {12}
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
where $\Delta \omega$ is the weight variation, $t_{pre}$ and $t_{post}$ denote the firing time of the input neuron (presynaptic spike time) and
|
| 162 |
+
|
| 163 |
+
output neuron (postsynaptic spike time), respectively. The function $W$ is defined as:
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
W (\Delta t) = \left\{ \begin{array}{l l} A _ {p r e} \exp (- \Delta t / \tau_ {p r e}) & \text {i f} \Delta t > 0 \\ A _ {p o s t} \exp (\Delta t / \tau_ {p o s t}) & \text {i f} \Delta t < 0 \end{array} \right. \tag {13}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
where the parameters $A_{pre}$ and $A_{post}$ depend on the current value of the synaptic weight $\omega$ .
|
| 170 |
+
|
| 171 |
+
The neurons between two adjacent layers can be connected in different ways. As mentioned above, between the second and third layers, we use a one-to-many manner to connect their neurons. We assume that neurons are distributed in a regular grid and that the distance between adjacent neurons is a constant. A presynaptic neuron will connect to multiple postsynaptic neurons if the following conditions are met:
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\sqrt {\left(x _ {p r e} - x _ {p o s t}\right) ^ {2} + \left(y _ {p r e} - y _ {p o s t}\right) ^ {2}} < R \tag {14}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where $x$ and $y$ are the coordinates of neurons, $R$ is the connection range. And the initial weights for each synapse are obtained as following:
|
| 178 |
+
|
| 179 |
+
$$
|
| 180 |
+
\omega = \exp \left(- k \sqrt {\left(x _ {p r e} - x _ {p o s t}\right) ^ {2} + \left(y _ {p r e} - y _ {p o s t}\right) ^ {2}} / R\right) \tag {15}
|
| 181 |
+
$$
|
| 182 |
+
|
| 183 |
+
where $k$ controls the weight distribution. The initial weights are adaptively updated at the arrival of each spike according to STDP learning rules.
|
| 184 |
+
|
| 185 |
+
# 3.4. Visual Image Reconstruction
|
| 186 |
+
|
| 187 |
+
In this section, we reconstruct visual information suitable for human viewing according to the state of neuron. The inhomogeneity of the input leads to different firing rates of the excitatory neuron. In order to ensure that the neurons adapt to input spike train, we hope that all neurons will have approximately equal firing rates. To this end, a common method to adapt thresholds is to use leaky adaptive thresholds [9]: when a neuron fires a spike, a dynamic adjusting is performed for threshold to adapt the firing rate to prevent it from firing too often. The more frequently a neuron fires spikes, the higher will be its threshold. In turn, the neuron needs more inputs to fire a spike in the near future. Similar to [10], we define the model of the dynamic threshold as:
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
\vartheta_ {i j} (t) = \vartheta_ {0} + \int_ {0} ^ {\infty} \theta_ {i j} (s) S _ {i j} ^ {\prime} (t - s) d s \tag {16}
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
where $\vartheta_0$ is the initial threshold of neuron in the absence of spiking, and $S_{ij}^{\prime}$ denotes the fired spikes of this layer. The firing threshold of the neuron is increased by an amount $\theta_{ij}$ and is exponentially decaying after firing a spike. The increase amount $\theta_{ij}$ is defined as:
|
| 194 |
+
|
| 195 |
+
$$
|
| 196 |
+
\theta_ {i j} (t) = \left\{ \begin{array}{l l} \eta_ {0} \exp \left(\frac {- (t - t _ {f})}{\tau}\right) & \text {i f} M _ {i j} ^ {t} = 0 \\ \eta_ {0} \exp \left(\frac {- (t - t _ {w})}{\tau \int_ {t _ {w}} ^ {t} S _ {i j} (x) d x}\right) & \text {i f} M _ {i j} ^ {t} = 1 \end{array} \right. \tag {17}
|
| 197 |
+
$$
|
| 198 |
+
|
| 199 |
+

|
| 200 |
+
Figure 5. The microscopic analysis of spiking neural model. (a) The input spike data is converted to spike plane (black dashed box) and spike train (red dashed box). The spike plane connects to the motion local excitation layer, and the dynamic neurons at this moment are marked, while the spike train with the mark information input to the next layer. (b) The noise spikes are eliminated by the mechanism of the refractory period while the static and dynamic spikes are preserved. (c) Each input spikes yield a potential according to STDP, and if the accumulated membrane potential reaches the threshold, the model is adaptively adjusted to fit the input spikes. According to Eq. 18 and 19, the pixel intensity at each moment can be reconstructed (i.e. $t_1$ : dynamic spikes, $t_2$ : static spikes), as shown in (d).
|
| 201 |
+
|
| 202 |
+
where $S_{i,j}(t)$ is the spike train input to this layer, $t_f$ denotes the most recent firing time, $t_w$ is a moment before $t$ that can be set as a constant, and $\tau$ is the time constant. In practice, we can set $t_w$ to a small value so as to avoid threshold instability due to dynamic spike.
|
| 203 |
+
|
| 204 |
+
Finally, the grayscale value of the visual image can be estimated from the neuron state and firing threshold: if the neuron $(i,j)$ belongs to a static neuron at moment $t$ , in other words, $M_{i,j}^{t} = 0$ , then the grayscale value is
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
G _ {i, j, t} = \vartheta_ {i j} (t) \tag {18}
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+
Otherwise
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
G _ {i, j, t} = \vartheta_ {i j} \left(t ^ {-}\right) * \kappa (t) ^ {\gamma} \tag {19}
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
where $\vartheta_{ij}(t^{-})$ denotes the convergence value of $\vartheta_{ij}$ before time $t$ , $\kappa(t) = t^{-} / (t_{isi} \int_0^t S_{ij}(x) dx)$ is an adjustment parameter to reconstruct the accurate gray value of dynamic
|
| 217 |
+
|
| 218 |
+
region, $t_{isi}$ denotes the inter-spike interval corresponding to time $t$ , and $\gamma$ controls the contrast of reconstructed dynamic region.
|
| 219 |
+
|
| 220 |
+
# 4. Experiment
|
| 221 |
+
|
| 222 |
+
# 4.1. Spike Dataset
|
| 223 |
+
|
| 224 |
+
To test the proposed spiking neural model, we build a dataset including spike sequences captured by the spike camera<sup>1</sup>. This dataset contains eight sequences including two categories of normal speed (Class A) and high speed (Class B) scenarios. Each sequence is captured by the spike camera with $40,000\mathrm{Hz}$ sampling rate. Class A contains four sequences, of which "Office" is an indoor scene, and "Gallery", "Lake" and "Flower" are outdoor scenes. Class
|
| 225 |
+
|
| 226 |
+

|
| 227 |
+
Class A (Normal speed)
|
| 228 |
+
Figure 6. The reconstruction results on Class A and B. We compared our method with TFW, TFI and TFA [28] on Class A. Since TFP and TFA have no ability to reconstruct dynamic scenes, we only compare our methods with TFI on Class B.
|
| 229 |
+
|
| 230 |
+
Table 1. The quantitative metrics on Class A and B. (a higher value means better image quality)
|
| 231 |
+
|
| 232 |
+
<table><tr><td rowspan="2">Metric</td><td rowspan="2">Method</td><td colspan="4">Class A (Normal speed)</td><td colspan="4">Class B (High speed)</td><td></td></tr><tr><td>Office</td><td>Gallery</td><td>Lake</td><td>Flower</td><td>Car</td><td>Train</td><td>Ro1</td><td>Ro2</td><td>Mean</td></tr><tr><td rowspan="4">2-D entropy</td><td>TFW</td><td>9.12</td><td>8.68</td><td>9.45</td><td>9.22</td><td>-</td><td>-</td><td>-</td><td>-</td><td>9.12</td></tr><tr><td>TFA</td><td>7.38</td><td>12.41</td><td>12.69</td><td>11.88</td><td>-</td><td>-</td><td>-</td><td>-</td><td>11.09</td></tr><tr><td>TFI</td><td>10.01</td><td>9.85</td><td>10.51</td><td>10.01</td><td>10.71</td><td>11.01</td><td>10.23</td><td>9.81</td><td>10.27</td></tr><tr><td>Ours</td><td>10.38</td><td>12.38</td><td>12.83</td><td>12.63</td><td>10.76</td><td>10.85</td><td>11.72</td><td>11.69</td><td>11.66</td></tr><tr><td rowspan="4">OG-IQA [20]</td><td>TFW</td><td>0.5729</td><td>0.4445</td><td>0.7575</td><td>0.8959</td><td>-</td><td>-</td><td>-</td><td>-</td><td>0.6677</td></tr><tr><td>TFA</td><td>0.2737</td><td>0.6707</td><td>0.8369</td><td>0.8660</td><td>-</td><td>-</td><td>-</td><td>-</td><td>0.6618</td></tr><tr><td>TFI</td><td>0.5738</td><td>0.4134</td><td>0.5110</td><td>0.8523</td><td>0.8637</td><td>0.7829</td><td>0.5602</td><td>0.5305</td><td>0.6359</td></tr><tr><td>Ours</td><td>0.5921</td><td>0.6879</td><td>0.8379</td><td>0.8727</td><td>0.8720</td><td>0.7897</td><td>0.6009</td><td>0.8105</td><td>0.7579</td></tr></table>
|
| 233 |
+
|
| 234 |
+
B includes "Car", "Train", "Rotation1 (Ro1)" and "Rotation2 (Ro2)". Among them, "Car" describes a car traveling at a speed of $100\mathrm{km/h}$ (kilometers per hour), while "Train" records a train with $350\mathrm{km/h}$ speed. The sequence "Rotation1" describes a disk with $2000\mathrm{rpm}$ (revolutions per minute), and the sequence "Rotation2" depicts an electric fan with $2600\mathrm{rpm}$ .
|
| 235 |
+
|
| 236 |
+
# 4.2. Visual Texture Reconstruction
|
| 237 |
+
|
| 238 |
+
# 4.2.1 Qualitative Analysis
|
| 239 |
+
|
| 240 |
+
The spiking neural model is implemented using the Brian2 neural simulator [27]. All neurons are modeled as LIF neurons. The dimension of the network is designed to fit the camera resolution of $250 \times 400$ , in other words, each layer using 100,000 neurons.
|
| 241 |
+
|
| 242 |
+
To evaluate the performance of our method, we compared three methods proposed in [28], namely TFW (texture from window), TFI (texture from inter-spike interval) and TFA (adaptive texture reconstruction). The parameters of the three methods are set according to the default parameters given in original paper. Fig 6 shows the experimental results. The results of TFW and TFI have low contrasts, which makes it difficult to distinguish the details of the image. TFA improves contrast, but some regions in the image are too bright, which affects the overall visual effect of the image. Our method solves the above problems. Subjectively, the reconstructed image quality is better than the other three methods.
|
| 243 |
+
|
| 244 |
+
Class B contains four high-speed motion scenes. Since TFP and TFA have no ability to reconstruct dynamic scenes, we only compare our method to TFI on Class B. TFI is a method of image reconstruction based on instantaneous intensity, it has the ability to reconstruct high-speed motion because it conforms to the sampling principle of the camera. However, TFI only uses the information of the current moment, the historical information in temporal domain is not used. Benefit from the three-layer spiking neural model, our approach makes full use of both historical and current information. The results show that the contrast of static region is improved, while the saliency and clarity of dynamic region are enhanced.
|
| 245 |
+
|
| 246 |
+
# 4.2.2 Quantitative Analysis
|
| 247 |
+
|
| 248 |
+
In Table 1, we give a quantitative evaluation on the proposed dataset. Two no-reference image quality assessment metrics, two-dimensional (2-D) entropy [18] and OG-IQA [20], are employed into our experiment. 2-D entropy uses both the gray value of a pixel and its local average gray value, it measures the amount of information in the image. OG-IQA uses perceptual image features for image quality assessment and gives a score (the range is 0-1, 1 is the best). As shown in Table 1, our method achieves better than other methods in both 2-D entropy and OG-IQA metrics, this is consistent with the results of subjective observation in Fig 6.
|
| 249 |
+
|
| 250 |
+
Quantitatively, for further evaluate the high-speed scenes in Class B, we employ standard deviation (STD) and a no-reference image blur metric called CPBD [22]. The result
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 7. The effect of STDP. The blue line denotes the noise level estimated by [24], while the red line represents the signal-to-noise ratio. The experiment was performed on Class A. Intuitively, when the STDP strength is 0.2, the result is the best.
|
| 254 |
+
|
| 255 |
+
Table 2. The STD and CPBD metrics on Class B.
|
| 256 |
+
|
| 257 |
+
<table><tr><td>Metric</td><td>Method</td><td>Car</td><td>Train</td><td>Ro1</td><td>Ro2</td><td>Mean</td></tr><tr><td rowspan="2">STD</td><td>TFI</td><td>53.82</td><td>60.57</td><td>22.79</td><td>31.55</td><td>42.18</td></tr><tr><td>Ours</td><td>58.43</td><td>66.91</td><td>37.57</td><td>47.11</td><td>52.51</td></tr><tr><td>CPBD</td><td>TFI</td><td>0.7797</td><td>0.9009</td><td>0.8461</td><td>0.6516</td><td>0.7946</td></tr><tr><td>[22]</td><td>Ours</td><td>0.7960</td><td>0.9072</td><td>0.8482</td><td>0.7958</td><td>0.8368</td></tr></table>
|
| 258 |
+
|
| 259 |
+
is shown in Table 2. The STD is related to the contrast of the image. Generally speaking, larger standard deviation (STD) means higher contrast. CPBD is used to measure the motion blur. Lower CPBD values mean more blur and vice versa. In summary, our method maintains sharpness while maintaining a higher contrast.
|
| 260 |
+
|
| 261 |
+
To better understand the effect of STDP, we performed an experiment on our dataset. STDP learning rule can adjust synaptic weight adaptively according to the input spike. If an irregular spike is input, which is usually caused by noise, the STDP mechanism can make its influence smaller and achieve the purpose of denoising. In the experiment, an image noise estimation method [24] is used, and signal-to-noise ratio (SNR) is obtained by standard deviation and noise. We adjust the STDP strength from 0 to 0.50, and compare the noise and SNR of the results. As shown in Fig 7, with appropriate STDP strength (0.20 gets the highest SNR), the windows and buildings are clearer, and most of the noise is eliminated.
|
| 262 |
+
|
| 263 |
+
# 4.3. Comparisons with other vision sensors
|
| 264 |
+
|
| 265 |
+
Fig 8 shows the comparison of spike camera, CeleX, DAVIS240B and Huawei P30. Spike camera with the proposed reconstruction method can clearly show the detail of movement process. DVS only records the change of luminance intensity, it is very difficult to reconstruct the texture. We use two recently published DVS reconstruction methods [26] and [25] to generate visual image, but the results are unsatisfactory; while CeleX can roughly see the process of falling pages, but the shadow is serious, the edges of front and back pages can not be clearly distinguished; Huawei P30 rear camera can record videos with 60 FPS in default mode, the pages and electric fan are blurred. The video results can be found in our supplementary material.
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
Figure 8. The reconstruction results of different vision sensors.
|
| 269 |
+
|
| 270 |
+
There are also some limitations in our method: some mechanisms in our model (e.g. motion confidence matrix and STDP) need a short period of previous spike data (about 15ms) to calculate the current state. If the camera itself moves too fast, the spike train received by the neuron may comes from different objects thus causing blur. Despite of this, we think it does not affect the application.
|
| 271 |
+
|
| 272 |
+
# 5. Conclusion
|
| 273 |
+
|
| 274 |
+
In this paper, we have proposed a novel three-layer spiking neural model to reconstruct visual images for spike camera. We comprehensively discuss the spike distribution and construct a probability model to describe it. Additionally, a dynamic neuron extraction model is proposed to distinguish the dynamic and static neurons. A combination of biologically plausible mechanisms in introduced to process the continuous-time spikes. Finally, the visual image can be reconstructed according to the state of the neuron and the firing threshold. To test our method, we build a dataset including normal-speed and high-speed scenes. The results show that our method can reconstruct high quality visual images in both high-speed motion and static scenes.
|
| 275 |
+
|
| 276 |
+
Acknowledgments. This work is partially supported by grants from the National Natural Science Foundation of China under contract No. 61825101 and No. U1611461.
|
| 277 |
+
|
| 278 |
+
# References
|
| 279 |
+
|
| 280 |
+
[1] Patrick Lichtsteiner an Christoph Posch and Tobi Delbruck. A $128 \times 128$ 120 db 15 μs latency asynchronous temporal contrast vision sensor. IEEE Journal of Solid-State Circuits, 43(2):566-576, 2008. 1
|
| 281 |
+
[2] Juan Antonio Lenero Bardallo, Jose-Maria Guerrero-Rodriguez, Ricardo Carmona-Galan, and Angel Rodriguez-Vazquez. On the analysis and detection of flames with an asynchronous spiking image sensor. IEEE Sensors Journal, 18(16):6588-6595, Aug 2018. 1
|
| 282 |
+
[3] Michel Baudry. Synaptic plasticity and learning and memory: 15 years of progress. Neurobiology of learning and memory, 70(1-2):113-118, 1998. 3, 5
|
| 283 |
+
[4] Guo-qiang Bi and Mu-ming Poo. Synaptic modifications in cultured hippocampal neurons: dependence on spike timing, synaptic strength, and postsynaptic cell type. Journal of Neuroscience, 18(24):10464-10472, 1998. 3, 4, 5
|
| 284 |
+
[5] Christian Brandli, Raphael Berner, Minhao Yang, Shih-Chii Liu, and Tobi Delbruck. A $240 \times 180$ 130 db 3 $\mu$ s latency global shutter spatiotemporal vision sensor. IEEE Journal of Solid-State Circuits, 49(10):2333-2341, 2014. 1
|
| 285 |
+
[6] Eugenio Culurciello, Ralph Etienne-Cummings, and Kwabena A Boahen. A biomorphic digital image sensor. IEEE Journal of Solid-State Circuits, 38(2):281-294, 2003. 1
|
| 286 |
+
[7] F Yu Daniel and Jeffrey A Fessler. Mean and variance of single photon counting with deadtime. Physics in Medicine & Biology, 45(7):2043, 2000. 2
|
| 287 |
+
[8] Tobi Delbrück, Bernabe Linares-Barranco, Eugenio Culurciello, and Christoph Posch. Activity-driven, event-based vision sensors. In IEEE International Symposium on Circuits and Systems, pages 2426-2429, 2010. 1
|
| 288 |
+
[9] Peter U Diehl and Matthew Cook. Unsupervised learning of digit recognition using spike-timing-dependent plasticity. Frontiers in Computational Neuroscience, 9:99, 2015. 3, 4, 5
|
| 289 |
+
[10] Pierre Falez, Pierre Tirilly, Joan Marius Bilasco, Philippe Devienne, and Pierre Boulet. Mastering the output frequency in spiking neural networks. In 2018 International Joint Conference on Neural Networks (IJCNN), pages 1-8. IEEE, 2018. 5
|
| 290 |
+
[11] Daniel Gehrig, Henri Rebecq, Guillermo Gallego, and Davide Scaramuzza. Asynchronous, photometric feature tracking using events and frames. In 2018 European Conference on Computer Vision (ECCV), pages 750-765, 2018. 1
|
| 291 |
+
[12] Stuart Geman and Donald Geman. Stochastic relaxation, gibbs distributions, and the bayesian restoration of images. IEEE Transactions on Pattern Analysis and Machine Intelligence, (6):721-741, 1984. 3, 4
|
| 292 |
+
[13] Menghan Guo, Jing Huang, and Shoushun Chen. Live demonstration: A $768 \times 640$ pixels 200meps dynamic vision sensor. In 2017 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1-1. IEEE, 2017. 1
|
| 293 |
+
[14] Christof Koch and Idan Segev. Methods in neuronal modeling: from ions to networks. MIT press, 1998. 3
|
| 294 |
+
[15] Vladimir Kolmogorov and Ramin Zabih. What energy functions can be minimized via graph cuts? IEEE Transactions
|
| 295 |
+
|
| 296 |
+
on Pattern Analysis and Machine Intelligence, (2):147-159, 2004. 5
|
| 297 |
+
[16] Juan Antonio Leero-Bardallo, D. H. Bryn, and Philipp Hfliger. Bio-inspired asynchronous pixel event tricolor vision sensor. IEEE Transactions on Biomedical Circuits and Systems, 8(3):345-357, June 2014. 1
|
| 298 |
+
[17] Stan Z Li. Markov random field modeling in image analysis. Springer Science & Business Media, 2009. 4
|
| 299 |
+
[18] Li Xi, Liu Guosui, and Jinlin Ni. Autofocusing of isar images based on entropy minimization. IEEE Transactions on Aerospace and Electronic Systems, 35(4):1240-1252, Oct 1999. 7
|
| 300 |
+
[19] Martin Litzenberger, Christoph Posch, D Bauer, Ahmed Nabil Belbachir, P Schon, B Kohn, and H Garn. Embedded vision system for real-time object tracking using an asynchronous transient vision sensor. In Digital Signal Processing Workshop-signal Processing Education Workshop, pages 173-178, 2006. 1
|
| 301 |
+
[20] Lixiong Liu, Yi Hua, Qingjie Zhao, Hua Huang, and Alan Conrad Bovik. Blind image quality assessment by relative gradient statistics and adaboosting neural network. Signal Processing: Image Communication, 40:1-15, 2016. 7
|
| 302 |
+
[21] Ana I Maqueda, Antonio Loquercio, Guillermo Gallego, Narciso García, and Davide Scaramuzza. Event-based vision meets deep learning on steering prediction for self-driving cars. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 5419-5427, 2018. 1
|
| 303 |
+
[22] Niranjan D Narvekar and Lina J Karam. A no-reference image blur metric based on the cumulative probability of blur detection (cpbd). IEEE Transactions on Image Processing, 20(9):2678-2683, 2011. 7, 8
|
| 304 |
+
[23] Christoph Posch, Daniel Matolin, and Rainer Wohlgenan-nt. An asynchronous time-based image sensor. IEEE International Symposium on Circuits and Systems, pages 2130-2133, 2008. 1
|
| 305 |
+
[24] Stanislav Pyatykh, Jürgen Hesser, and Lei Zheng. Image noise level estimation by principal component analysis. IEEE Transactions on Image Processing, 22(2):687-699, 2012. 8
|
| 306 |
+
[25] Henri Rebecq, René Ranftl, Vladlen Koltun, and Davide S-caramuzza. Events-to-video: Bringing modern computer vision to event cameras. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3857-3866, 2019. 8
|
| 307 |
+
[26] Cedric Scheerlinck, Nick Barnes, and Robert Mahony. Continuous-time intensity estimation using event cameras. In 2018 Asian Conference on Computer Vision (ACCV), pages 308-324. Springer, 2018. 8
|
| 308 |
+
[27] Marcel Stimberg, Romain Brette, and Dan Goodman. Brian 2: an intuitive and efficient neural simulator. BioRxiv, page 595710, 2019. 7
|
| 309 |
+
[28] Lin Zhu, Siwei Dong, Tiejun Huang, and Yonghong Tian. A retina-inspired sampling method for visual texture reconstruction. In 2019 IEEE International Conference on Multimedia and Expo (ICME), pages 1432-1437, 2019. 1, 2, 7
|
retinalikevisualimagereconstructionviaspikingneuralmodel/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97a18a7c6e20f4b7c1ed686593d7eedaa2c586885267ea0d45dc1608ff377452
|
| 3 |
+
size 587620
|
retinalikevisualimagereconstructionviaspikingneuralmodel/layout.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d7d8a436f5f602776bda3818e9fb77472fe72574f90a353e8e6192d68b92f9b
|
| 3 |
+
size 359334
|
retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_content_list.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c611b0e2a98e04349767b1ac0638fc1477cf516db2cc05955431f16383998f4e
|
| 3 |
+
size 89343
|
retinatrackonlinesinglestagejointdetectionandtracking/13e0fd3f-63f7-42b5-8086-9cc83697681e_model.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5de17dfcb490989381909f0ecbb3e37483c31d27e7c777d57b62487141f1f92
|
| 3 |
+
size 111269
|