Title: DYNCNN: AN EFFECTIVE DYNAMIC ARCHITEC-TURE ON CONVOLUTIONAL NEURAL NETWORK FOR SURVEILLANCE VIDEOS Anonymous

Abstract: The large-scale surveillance video analysis becomes important as the development of intelligent city. The heavy computation resources neccessary for state-of-theart deep learning model makes the real-time processing hard to be implemented. This paper exploits the characteristic of high scene similarity generally existing in surveillance videos and proposes dynamic convolution reusing the previous feature map to reduce the computation amount. We tested the proposed method on 45 surveillance videos with various scenes. The experimental results show that dynamic convolution can reduce up to 75.7% of FLOPs while preserving the precision within 0.7% mAP. Furthermore, the dynamic convolution can enhance the processing time up to 2.2 times.

1. INTRODUCTION:

Nowadays, with the development of deep learning technologies, large-scale surveillance video analysis for intelligent city draws more and more attention in the real world applications, for instance, in person re-identification (Ahmed et al. (2015) ), vehicle re-identification (Liu et al. (2016) ) (Shen et al. (2017) ), pedestrian detection (Tian et al. (2014) ) and crowd segmentation (Kang & Wang (2014) ), etc. However, these deep learning methods are extremely computationally expensive-state-of-theart methods for object detection performed on a state-of-the-art NVIDIA P100 GPU run at 10-80 frames per second. Although processing on one video can be done by utilizing one to several topperforming hardware equipments, it still a challenge for large-scale actual deployment-it would cost over 5 billion USD in hardware to analyze over 4 million CCTVs in real time in the UK alone when considering these computational overheads in context (News (2015) ).

Those real world applications for intelligent city employed the state-of-the-art network architectures from the ILSVRC competition, e.g. VGG (Simonyan & Zisserman (2014) ), GoogLeNet (Szegedy et al. (2014) ), and ResNet (He et al. (2015) ) as their feature extraction architecture. However, these powerful networks tend to be resource-hungry models with high computational demands at inference time to win the competition-processing an one-minute surveillance video through VGG16 network costs 23 TFLOPs. To make the feature extraction architectures more effective in terms of surveillance video, this paper aims to explore ways to reduce the calculation on feature extraction.

Figure 1 shows two frame clips of a surveillance video with its corresponding feature map through 3×3 kernel. It is observed that most of the scene between two adjacent frames in the surveillance video are almost the same with merely about 2% to 15% difference. Due to the linear characteristic of convolution, the derived feature maps preserve the similarity of input video frames-it can reduce significant amount of calculation if the previous feature map can be reused for the current feature map. Suppose that the frame size is 512×512 while the amount of the changing pixels in feature map is 52k, the calculation can be reduced from 7 MFLOPs to 1.4 MFLOPs, that is 5 times saving ratio.

In this paper, we exploit the key characteristic of surveillance video-high scene similarity-and propose a new architecture dynamic convolution which can be directly applied to off-the-shelf model without retraining the weights. Dynamic convolution can inspect the inter-frame variation and thus predict the changing pixels in each corresponding feature map. Accordingly, convolution performs only on those predicted parts to achieve less computation while not affecting the accuracy. Finally, Figure 1 : The subtle difference in the feature map.

we apply dynamic convolution to one of the state-of-the-art object detector Single Shot MultiBox Detection (Liu et al. (2015) ) and test on several surveillance video datasets including overall 45 videos. In addition, we conduct a further analysis in the FLOP computation and execution time of each convolutional layer to improve the understanding of dynamic convolution in practice.

2. PRIOR WORKS:

For the last several years, tuning deep learning neural architectures to strike an optimal balance between precision and processing time has been an area of active research. Many methods have been proposed to reduce storage space and computing resources and also made great progress from theoretical research to platform implementation. Basically, they can be divided into three major techniques, effective model design, pruning, and quantization.

Effective model design MobileNets (Howard et al. (2017) ) is a lightweight network architecture proposed by Google for mobile deployment. The main idea is to disassemble the original convolution calculation into two parts: depthwise convolutions and pointwise convolutions. Although the calculation amount on convolution can greatly be reduced, the precision would be decreased. In addition, the feature map accordingly increases. The increasing data transfer followed by feature map makes MobileNets hard to perform on GPU. To improve the precision, ShuffleNet (Zhang et al. ( 2017)) proposed two new strategies channel shuffle and pointwise group convolutions based on the concept that helps the information flowing across feature channels. On the other hand, Inception (Szegedy et al. (2016) ) introduces bottleneck structure to approximate sparse structures into several dense sub-matrices to achieve more efficient use of computing resources. In the ultra-lightweight neural network SqueezeNet (Iandola et al. (2016) ), the 1x1 and 3x3 convolution kernels are extensively used compared with Inception to achieve more compression on calculation amount.

Pruning Besides of the model design, pruning is another efficient way to reduce storage space and computing resources by removing redundant parts of model. Li et al. (2016) proposed a method for cropping filters of convolutional layer. This method determines the importance of filter by the magnitude of the absolute sum of weights on the filter. After that, the model needs to be trained again. Without lossing greately precision, such method can effectively reduce the complexity of the model. However, heavy analysis on each convolution layer costs lots of time and may occur the concern of one-case model. Liu et al. (2017) used another factor, the scaling coefficient γ in batch normalization, to determine the importance of the filter.

Quantization Network weight sharing quantization is also an important type of network compression method which focuses on the weight representation. The nature of this technique is to find the center value which can represent the original weight distribution by clustering method. Deep Compression proposed by Han et al. (2015) clusters the weights and replaces them by the center value of each cluster. The transformation between the weights and center values is stored in a codebook. Such transformation greatly compresses the weight representation from a 32-bit floating point number to a short bit number.

3. DYNAMIC CONVOLUTION:

Dynamic convolution is an architecture which applies to each layer of convolutional neural network. Figure 2 illustrates a convolution neural network with our dynamic convolution, called dynamic convolutional neural network (DynCNN). The work flow of dynamic convolution consists of three main parts: 1) frame differencing; 2) prediction; 3) dyn-convolution. Let IDM t denote the input difference map of t-th frame (F rame t ) derived by frame differencing and iDM t denote the inner difference map derived from the previous inner difference map or input difference map by prediction. Dyn-convolution preserves the feature map (FM) from the previous layer and selectively do convolution according to the position which the inner difference map indicates in order to update the feature map. The frame differencing method (Liu & Hou (2012) ) is often used in the moving object detection and segmentation methods. In this work, we employ it to inspect the inter-frame variation between two adjacent frames. The basic concept of frame differencing is to subtract two frames to calculate the difference of each pixel. However, in most surveillance video sequences there exist speckle noise which severely affects the difference value. Accordingly, the difference map, as referred to input difference map (IDM), is derived by thresholding the result of frame differencing with the following statement:

EQUATION

where Θ IDM denotes the threshold of the statement. The pixel at (i,j) is denoted as a changed pixel when D is determined as 1 and we called it changing point. ∆I(i, j) in (1) represents the result of frame differencing as the following expression:

EQUATION

where I Curr (i, j) and I P rev (i, j) in (2) denote the pixel intensity at position (i, j) of the current and previous frame respectively.

The value of the threshold Θ IDM is an important factor which determines the amount of convolution calculation. Therefore, the effect of the threshold on the speed and accuracy during the inference phase will be well analyzed in Section 4.

3.2. PREDICTION:

In the convolution process, there exists a diffusion effect in the result if the input is changed. Suppose that the kernel size of convolution is 3×3, each pixel of the result is determined by the corresponding 9 pixels from the input-the pixel at the same position and its 8 peripheral pixels. On the contrary, when a certain pixel in the input is changed, 9 pixels in the output which the pixel involves will be affected simultaneously and are denoted as impacted pixels. Based on the characteristic of diffusion effect in convolution process, the position of impacted pixels in each feature map can be predicted by using dilation operation and recorded on the inner difference map.

3.3. DYN-CONVOLUTION:

The iDM records the position of the impacted pixel of the FM and also implicates which pixel value of the FM needs to be updated. To update the value, the pixels of the previous FM which contributes to it will be re-convoluted and are denoted as needed pixels while this process is called dyn-convolution. In this work, we employ the lastest cuDNN library developed by Nvidia to optimize the performance on calculation speed. However, the convolution calculation provided by the library is only allowed for contiguous blocks instead of discrete blocks with given position. Therefore, we create another memory space, denoted as new array, in GPU to store those needed pixels for the requirement of library.

3.4. PRACTICAL CONCERN AND IMPLEMENTATION:

In real surveillance video application, although the calculation reduction on convolution is the main concern of speeding up the overall processing time, the data transfer is another important factor which contributes to the time. Dyn-convolution is intuitive but rude and also not efficient in GPU. Accordingly, we apply two strategies to improve the overall processing time, cell-based partition and continuous convolution.

Cell-based Partition Compared with pixel-based map iDM, each FM is divided into several block cells. If any impacted pixel exists in the cell, the cell will be noted as "impacted" and recorded on cell difference map (CDM). The dyn-convolution thus performs according to the cell difference map rather than the pixel difference map-the new array stores the needed pixels of impacted cells. Figure 3 illustrates the difference between the naive method and the improved method.

Figure 3 : The diagram of data transfer. In the pixel-based method, the amount of needed pixels for one cell (e.g. 2 × 2 pixels) is 4 × 9 while the cell-based method requires 4 × 4 needed pixels, which greatly reduces the amount of data transfer.

In this strategy, the data in new array may contains "non-needed" pixels when the cell involves nonimpacted pixels. In addition, new array performs unnecessary convolution on the boundary of two needed pixel blocks, where generates don't-care feature value x. Nevertheless, the needed pixels are reused to reduce the amount of data transfer and the characteristic of cuDNN library-convolution costs less processing time when stride is 1-is contemplated to speed up the convolution process, which indicates that less sacrification on computation while greatly improving the processing time.

Continuous Convolution Another part which costs processing time is the layer number. It multiplies the data transfer on a new array. We partition whole convolution layer by pooling process and group the convolution layers up, called convolution group. For each convolution group, the convolution structure is modified from "once padding before once convolution" to "continuous padding first then continuous convolution". Continuous convolution aims at directly updating the last layer of the convolution group rather than updating each layer to further reduce the amount of data transfer on new array. Although the updated value may be blemished by the don't-care value x in continuous convolution, it causes insignificant effect on the overall precision while significantly saving the processing time.

4. EXPERIMENTS:

This section will evaluate the performance of the dynamic convolution by employing the Single Shot MultiBox Detector 512 × 512 model1 (SSD512) on GTX1080 GPU with cuDNN v5.1.

Ground Truth. The existing benchmarks with ground truth for multi-object detection are designed to evaluate the performance of CNN model on still image evaluation, such as Microsoft COCO (Lin et al. (2014) ) and PASCAL VOC datasets (Everingham et al. (2010) ). However, such benchmarks tested on the surveillance video are not given the ground truth. To well evaluate our proposed dynamic convolution, the ground truth is defined as the detection result of SSD512 model on surveillance video. We choose VOC712Plus SSD 512x512 iter 240000-trained on VOC2007, VOC2012 and COCO, 240000 step iterations, 83.2% mAP on VOC2007 test-as the weight parameters.

Baseline. Dynamic convolution is a mechanism aimed at reducing the computation of original CNN model on surveillance video without affecting the performance. In the experiments, we choose the weight parameters VOC0712 SSD 512x512 iter 120000-trained on VOC2007 and VOC2012, 120000 step iterations, 79.8% mAP on VOC2007 test-as our baseline to evaluate our proposed method. The performance critiria is how close the precision is compared to the baseline.

Dataset. The dynamic convolution is tested on four surveillance video datasets: PETS2009 (Ferryman & Ellis ( 2014)), AVSS2007 (AVS ( 2007)), VIRAT (Oh et al. (2011) ) and some videos from Youtube. In the surveillance video, person and car are the main objects which appear in the scene and are the most significant targets for surveillance application. Therefore, the performance in the experiments focuses on the objects of person and car. Table 1 lists the charascteristics of four surveillance video datasets, where the scene similarity ratio is defined as the ratio of the number of non-changing points to frame size. 

4.1. ON PETS 2009:

The PETS 2009 dataset is a benchmark which focuses on several challenges for crowd analysis in public area including the estimation of crowd person count and density, tracking of individual(s) within a crowd, and detection of flow and crowd events. In this dataset, we choose 20 difference scene videos totally involving 4,884 photos as test data. Table 2 presents the result of the performance on objects person and car with the threshold of frame differencing setting at 20. It is clear to see that the proposed dynamic convolution can preserve the precision with respect to baseline, where the difference is only 0.06% and 0.21% on person and car respectively. 

4.2. ON AVSS 2007:

AVSS2007 is a data set for evaluating the algorithm on event detection and tracking. In this dataset, we choose six videos, which contains public surveillance scene for train station and road located in the UK, as our test data including 35,000 images. Table 3 presents the result of the performance on objects person and car with the threshold of frame differencing setting at 20. It is clear to see that the proposed dynamic convolution can preserve the precision with respect to baseline where difference is only 0.16% and 0.42% on person and car respectively. 

4.3. ON VIRAT:

VIRAT dataset collects broad surveillance videos in terms of various realism scenes including ground camera videos and aerial videos. In this dataset, 10 different scene videos on parking lot, lane and plaza totally involving 63,947 photos are selected as test data. Table 4 presents the result of the performance on objects person and car with the threshold of frame differencing setting at 20. It is clear to see that the proposed dynamic convolution can preserve the precision with respect to baseline, where the difference is only 0.54% and 0.1% on person and car respectively. 

4.4. ON YOUTUBE:

The collected surveillance videos on Youtube contain 9 scene videos with different viewing angles on the zoo, MRT station, campus and street involving 115,652 images. Table 5 presents the result of the performance on objects person and car with the threshold of frame differencing setting at 20. It is clear to see that the proposed dynamic convolution can preserve the precision with respect to baseline, where the difference is only 0.7% and 0.7% on person and car respectively. 

4.5. CONTINUOUS CONVOLUTION:

Table 6 shows the average calculation process in each layer over all test videos of PETS 2009 dataset including the DynCNN with and without continuous convolution. The fifth and eighth column represents the new array size of dyn-convolution and the horizontal lines represent the pooling process which is used to delimit the convolution groups. As the layer more deeper, the pruned ratio generally decreases due to the increasing size of needed pixels. Note that the increasing behavior of pruned ratio in each convolution group under DynCNN (w/). In continuous convolution, the inner difference map of the first layer of convolution group directly predicts the impacted pixels of the last layer in advance, which results in that the needed pixels on the new array is more than DynCNN (w/o) and decreases gradually as layer deeper. This phenomenon can also be found in other datasets as shown in Appendix 7.4. Table 7 summarizes the average calculation amount and processing time per frame on each dataset. From this table, although DynCNN (w/o) can prune more calculation amount than DynCNN (w/), DynCNN (w/o) needs to cost more processing time on data transfer. The improvement of the overall processing time is not significant and even invalid in dataset AVSS2007 with respect to baseline. Therefore, the strategy of continuous convolution is demonstrated that can make DynCNN more valuable at the practical application as mentioned in Subsection 3.4. 

5. DISCUSSION:



5.1. THRESHOLD OF FRAME DIFFERENCING:

The threshold of IDM is used to filter the speckle noise in video. In addition, it can greatly speed up the processing time due to the high scene similarity of video-most difference values derived from frame differencing are introduced by noise. For various surveillance videos, the threshold of IDM should be different, resulting in a single threshold is difficult to be applicable to all surveillance images. To find the best threshold, we conduct a research on the relationship between the precision and calculation amount over different thresholds. Figure 4 shows the test result on 4 datasets. It is observed from Fig. 4a that the calculation amount exists a significant drop in the threshold interval of 5 to 15 over 4 datasets, which indicates the threshold greater or equal to 15 can filter the speckle noise efficiently in four datasets. However, the precision will be affected as the threshold is greater or equal to 25 as shown in Fig. 4b . Therefore, by trading the calculation amount off against precision, 20 is the best choice of threshold applicable to various surveillance videos and is selected as the default in experiments. In Fig. 5 , we reveal the distribution of each test surveillance videos on calculation amount and FPS with respect to the average scene similarity. The triangle mark denotes the average of videos in the same dataset while the purple line represents the value of baseline. It is obvious that the higher the average scene similarity the more the calulation amount decreases. In addition, the FPS also tends to increase as the average scene similarity is higher, especially in the dataset VIRAT. In dataset VIRAT, the most scene of surveillance videos is parking lot where most of time are the still scene, resulting in 99% average scene similarity. The high scene similarity prunes the calculation amount of baseline model up to 75.7% (90.5 GFLOPs to 22.0 GFLOPs) and improves 2.2 times (32.5 to 71.7) of FPS. From the distribution map shown in Fig. 5 , it is implied that the surveillance videos generally exist high scene similarity. Furthermore, the proposed dynamic convolution is applicable to all the videos. Therefore, it is believed that dynamic convolution can be applied to the practical applications on surveillance videos.

6. CONCLUSION:

This paper exploits the high scene similarity generally existing in surveillance videos and proposes a dynamic convolution to reduce the calculation amount efficiently for heavy-computational surveillance analyses. The dynamic convolution only updates the feature value for the position which is predicted as changed to achieve the reuse of previous feature map. Besides the calculation amount, dynamic convolution also considers the importance of the processing time on pratical applications and employs two strategies to optimize the processing time by sacrificing a few calculation amounts.

Compared with the existing technology, the it can directly be applied to the existing convolution neural network architecture without retraining and analyzing weights. Experimental results on four famous and authoritative datasets of surveillance videos provides a powerful evident that the proposed method is applicable to most of surveillance videos. The reduction on the calculation amount can be up to 75.7% while the precision preserves within 0.7% mAP. Furthermore, the processing time can be enhanced up to 2.2 times with respect to baseline. Finally, the aspect of design in the proposed method is completely different from the existing relevant methods. In the future work, we will complement our work with the existing relevent methods to verify the possibility of further acceleration.

Xiangyu Zhang, Xinyu Zhou, Mengxiao Lin, and Jian Sun. Shufflenet: An extremely efficient convolutional neural network for mobile devices. CoRR, abs/1707.01083, 2017. URL http: //arxiv.org/abs/1707.01083.

7. APPENDIX:



7.1. DYNAMIC CONVOLUTION MODEL:

The proposed dynamic convolution is implemented on SSD512 model by caffe framework. Figure 6 and 7 illustrate the first convolution group (gp1) of SSD512 model and that with dynamic convolution (DynSDD512) respectively. In the implementation of dynamic convolution, the original model is combined with three additional layers: 1) Comparison Layer; 2) Position Layer; 3) Recovery Layer. Comparison layer is used to store the current frame and output input difference map (IDM) by comparing with the previous frame. After recieving the IDM, position layer will output the cell index table (CIT), for the position indication, the inner difference table (iDM) and the new array (NA) to next stage. Position layer generates the iDM by directly predicting the impacted pixels of the last layer in gp1 for the continuous convoltion as mentioned in subsection 3.4. Accordingly, the NA is generated according to the iDM through cell-based partition. Finally, recovery layer recieves the feature value from convolution and transfer those value where they locates on feature map through CIT. 

:

available at https://github.com/weiliu89/caffe/tree/ssd

Figures and Tables:

Figure 2: DynCNN Architecture

Figure 4: The average precision and calculation amount on 4 dataset over different threshold of input difference map

Figure 5: The distribution of each test surveillance videos

Figure 6: SSD512 model

Comparison of characteristics of datasets

Table content: <table><tr><td/><td colspan="2">PEST2009 AVSS2007</td><td>VIRAT</td><td>Youtube</td></tr><tr><td>Resolution</td><td>768x576</td><td>720x576</td><td colspan="2">1920x1080 1280x720</td></tr><tr><td>Avg. Person Height in Pixels</td><td>75</td><td>193</td><td>139</td><td>149</td></tr><tr><td>Avg. Person to video height ratio</td><td>13%</td><td>34%</td><td>13%</td><td>21%</td></tr><tr><td>Avg. Car Height in Pixels</td><td>49</td><td>66</td><td>104</td><td>98</td></tr><tr><td>Avg. Car to video height ratio</td><td>20%</td><td>6%</td><td>10%</td><td>14%</td></tr><tr><td>Avg. Scene Similarity Ratio (Θ IDM = 20)</td><td>96.6%</td><td>97.4%</td><td>99.9%</td><td>97.4%</td></tr></table>

Average precision results on PETS2009

Table content: <table><tr><td colspan="6">Class-Person TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>40720</td><td>39357</td><td>35202</td><td>4155</td><td>80.54%</td></tr><tr><td>DynCNN</td><td>40720</td><td>39227</td><td>35047</td><td>4180</td><td>80.48%</td></tr><tr><td>Class-Car</td><td colspan="5">TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>4845</td><td>5592</td><td>4661</td><td>931</td><td>90.22%</td></tr><tr><td>DynCNN</td><td>4845</td><td>5540</td><td>4642</td><td>898</td><td>90.01%</td></tr></table>

Average precision results on AVSS2007

Table content: <table><tr><td colspan="6">Class-Person TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>227232</td><td>226448</td><td>198876</td><td>27538</td><td>80.57%</td></tr><tr><td>DynCNN</td><td>227232</td><td>222102</td><td>191999</td><td>30067</td><td>79.89%</td></tr><tr><td>Class-Car</td><td colspan="5">TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>44275</td><td>44682</td><td>40485</td><td>4195</td><td>89.39%</td></tr><tr><td>DynCNN</td><td>44275</td><td>44116</td><td>39984</td><td>4130</td><td>89.23%</td></tr></table>

Average precision results on VIRAT

Table content: <table><tr><td colspan="6">Class-Person TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>48514</td><td>42154</td><td>36895</td><td>5110</td><td>70.50%</td></tr><tr><td>DynCNN</td><td>48514</td><td>39716</td><td>34733</td><td>4843</td><td>69.96%</td></tr><tr><td>Class-Car</td><td colspan="5">TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>192489</td><td>189550</td><td>173042</td><td>16491</td><td>80.94%</td></tr><tr><td>DynCNN</td><td>192489</td><td>186340</td><td>169027</td><td>17313</td><td>80.84%</td></tr></table>

Average precision results on Youtube

Table content: <table><tr><td colspan="6">Class-Person TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>465470</td><td>458898</td><td>383821</td><td>75077</td><td>78.90%</td></tr><tr><td>DynCNN</td><td>465470</td><td>449537</td><td>372898</td><td>76639</td><td>78.20%</td></tr><tr><td>Class-Car</td><td colspan="5">TotalGT TotalPred TruePositives FalsePositives AvgPrecision</td></tr><tr><td>Baseline</td><td>59867</td><td>61832</td><td>47447</td><td>14385</td><td>70.92%</td></tr><tr><td>DynCNN</td><td>59867</td><td>61304</td><td>46402</td><td>14905</td><td>70.22%</td></tr></table>

Average FLOPs result on PETS2009

Table content: <table><tr><td colspan="2">Layer-type Maps</td><td colspan="2">Baseline wxh FLOPs</td><td>wxh</td><td colspan="2">DynCNN (w/o) FLOPs %Pruned</td><td>wxh</td><td>DynCNN (w/) FLOPs</td><td>%Pruned</td></tr><tr><td>Conv1-1</td><td>64</td><td colspan="4">512 x 512 4.5E+08 1456x16 4.0E+07</td><td>91.1%</td><td colspan="2">1704x18 5.3E+07</td><td>88.2%</td></tr><tr><td>Conv1-2</td><td>64</td><td colspan="4">512 x 512 9.6E+09 1572x16 9.2E+08</td><td>90.4%</td><td colspan="2">1702x16 1.0E+09</td><td>89.4%</td></tr><tr><td>Conv2-1</td><td>128</td><td colspan="2">256 x 256 4.8E+09</td><td>978x8</td><td>5.9E+08</td><td>87.7%</td><td colspan="2">1085x10 8.0E+08</td><td>83.2%</td></tr><tr><td>Conv2-2</td><td>128</td><td colspan="2">256 x 256 9.6E+09</td><td colspan="2">1044x8 1.23E+09</td><td>87.2%</td><td>1083x8</td><td>1.3E+09</td><td>86.5%</td></tr><tr><td>Conv3-1</td><td>256</td><td colspan="2">128 x 128 4.8E+09</td><td>389x8</td><td>9.1E+08</td><td>81.0%</td><td>536x12</td><td>1.9E+09</td><td>59.8%</td></tr><tr><td>Conv3-2</td><td>256</td><td colspan="2">128 x 128 9.6E+09</td><td>421x8</td><td>1.97E+09</td><td>79.5%</td><td>534x10</td><td>3.2E+09</td><td>66.5%</td></tr><tr><td>Conv3-3</td><td>256</td><td colspan="2">128 x 128 9.6E+09</td><td>453x8</td><td>2.13E+09</td><td>77.8%</td><td>532x8</td><td>2.5E+09</td><td>73.3%</td></tr><tr><td>Conv4-1</td><td>512</td><td>64 x 64</td><td>4.8E+09</td><td>181x8</td><td>1.69E+09</td><td>64.8%</td><td>264x12</td><td>3.7E+09</td><td>22.3%</td></tr><tr><td>Conv4-2</td><td>512</td><td>64 x 64</td><td>9.6E+09</td><td>196x8</td><td>3.66E+09</td><td>61.9%</td><td>262x10</td><td>6.1E+09</td><td>35.6%</td></tr><tr><td>Conv4-3</td><td>512</td><td>64 x 64</td><td>9.6E+09</td><td>212x8</td><td>3.96E+09</td><td>58.8%</td><td>260x8</td><td>4.9E+09</td><td>48.9%</td></tr><tr><td>Conv5-1</td><td>512</td><td>32 x 32</td><td>2.4E+09</td><td>84x8</td><td>1.54E+09</td><td>35.8%</td><td>118x12</td><td>3.3E+09</td><td>-39.1%</td></tr><tr><td>Conv5-2</td><td>512</td><td>32 x 32</td><td>2.4E+09</td><td>89x8</td><td>1.64E+09</td><td>31.7%</td><td>116x10</td><td>2.7E+09</td><td>-13.7%</td></tr><tr><td>Conv5-3</td><td>512</td><td>32 x 32</td><td>2.4E+09</td><td>95x8</td><td>1.75E+09</td><td>27.1%</td><td>114x8</td><td>2.1E+09</td><td>10.4%</td></tr><tr><td>FC6 FC7</td><td>1024</td><td>1</td><td>1.3E+08</td><td>1024</td><td>1.3E+08</td><td>0%</td><td>1024</td><td>1.3E+08</td><td>0%</td></tr><tr><td>Other</td><td/><td/><td>1.07E+10</td><td/><td>1.07E+10</td><td>0%</td><td/><td>1.07E+10</td><td>0%</td></tr><tr><td>Total</td><td/><td/><td>9.05e+10</td><td/><td>3.29e+10</td><td>63.7%</td><td/><td>4.47e+10</td><td>50.5%</td></tr></table>

Overview results on all datasets

Table content: <table><tr><td>Dataset</td><td colspan="2">Baseline FLOPs Time(ms)</td><td>FLOPs</td><td colspan="3">DynCNN (w/o) %Pruned Time(ms)</td><td>FLOPs</td><td colspan="2">DynCNN (w/) %Pruned Time(ms)</td></tr><tr><td colspan="2">PETS2009 9.05E+10</td><td>30.7</td><td colspan="2">3.29E+10</td><td>63.7%</td><td>28.3</td><td>4.47E+10</td><td>50.5%</td><td>19.2</td></tr><tr><td colspan="2">AVSS2007 9.05E+10</td><td>30.7</td><td colspan="2">3.91E+10</td><td>56.8%</td><td>32.1</td><td>5.36E+10</td><td>40.8%</td><td>22.9</td></tr><tr><td>VIRAT</td><td>9.05E+10</td><td>30.7</td><td>1.5E+10</td><td/><td>83.3%</td><td>20.3</td><td>2.2E+10</td><td>75.7%</td><td>13.9</td></tr><tr><td>Youtube</td><td>9.05E+10</td><td>30.7</td><td colspan="2">2.46E+10</td><td>72.8%</td><td>27.5</td><td>4.47E+10</td><td>50.6%</td><td>20</td></tr></table>

Average FLOPs result on AVSS2007

Table content: <table><tr><td>Layer-type</td><td>Maps</td><td colspan="2">Baseline wxh FLOPs</td><td>wxh</td><td>DynCNN (w/o) FLOPs</td><td>%Pruned</td><td>wxh</td><td>DynCNN (w/) FLOPs</td><td>%Pruned</td></tr><tr><td>Conv1-1</td><td>512 x 512</td><td>64</td><td colspan="3">4.5E+08 1704 x 16 4.7E+07</td><td>89.6%</td><td colspan="2">1931 x 18 6.3E+07</td><td>85.9%</td></tr><tr><td>Conv1-2</td><td>512 x 512</td><td>64</td><td colspan="3">9.6E+09 1916 x 16 1.1E+09</td><td>88.2%</td><td colspan="2">1929 x 16 1.2E+09</td><td>87.5%</td></tr><tr><td>Conv2-1</td><td colspan="2">256 x 256 128</td><td>4.8E+09</td><td>1276 x 8</td><td>7.5E+08</td><td>84.4%</td><td colspan="2">1507 x 10 1.1E+09</td><td>77.1%</td></tr><tr><td>Conv2-2</td><td colspan="2">256 x 256 128</td><td>9.6E+09</td><td>1385 x 8</td><td>1.6E+09</td><td>83.0%</td><td>1505 x 8</td><td>2.2E+09</td><td>77.0%</td></tr><tr><td>Conv3-1</td><td colspan="2">128 x 128 256</td><td>4.8E+09</td><td>532 x 8</td><td>1.2E+09</td><td>74.0%</td><td>753 x 12</td><td>2.6E+09</td><td>44.6%</td></tr><tr><td>Conv3-2</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>578 x 8</td><td>2.7E+09</td><td>71.7%</td><td>751 x 10</td><td>4.4E+09</td><td>53.9%</td></tr><tr><td>Conv3-3</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>619 x 8</td><td>2.9E+09</td><td>69.7%</td><td>749 x 8</td><td>3.5E+09</td><td>63.2%</td></tr><tr><td>Conv4-1</td><td>64 x 64</td><td>512</td><td>4.8E+09</td><td>236 x 8</td><td>2.2E+09</td><td>54.2%</td><td>377 x 12</td><td>4.7E+09</td><td>1.7%</td></tr><tr><td>Conv4-2</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>254 x 8</td><td>4.7E+09</td><td>50.5%</td><td>375 x 10</td><td>7.8E+09</td><td>18.5%</td></tr><tr><td>Conv4-3</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>273 x 8</td><td>5.1E+09</td><td>46.8%</td><td>373 x 8</td><td>6.2E+09</td><td>35.3%</td></tr><tr><td>Conv5-1</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>99 x 8</td><td>1.8E+09</td><td>23.8%</td><td>129 x 12</td><td>3.5E+09</td><td>-48.7%</td></tr><tr><td>Conv5-2</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>104 x 8</td><td>1.8E+09</td><td>20.0%</td><td>127 x 10</td><td>2.9E+09</td><td>-22.1%</td></tr><tr><td>Conv5-3</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>108 x 8</td><td>2.0E+09</td><td>16.7%</td><td>125 x 8</td><td>2.3E+09</td><td>4.2%</td></tr><tr><td>FC6 FC7</td><td>1</td><td colspan="2">1024 1.3E+08</td><td>1024</td><td>1.3E+08</td><td>0%</td><td>1024</td><td>1.3E+08</td><td>0%</td></tr><tr><td>Other</td><td/><td/><td>1.07E+10</td><td/><td>1.07E+10</td><td>0%</td><td/><td>1.07E+10</td><td>0%</td></tr><tr><td>Total</td><td/><td/><td>9.05e+10</td><td/><td>3.91e+10</td><td>56.8%</td><td/><td>5.36e+10</td><td>40.8%</td></tr></table>

Average FLOPs result on VIRAT

Table content: <table><tr><td>Layer-type</td><td>Maps</td><td colspan="2">Baseline wxh FLOPs</td><td>wxh</td><td colspan="2">DynCNN (w/o)) FLOPs %Pruned</td><td>wxh</td><td colspan="2">DynCNN (w/) FLOPs %Pruned</td></tr><tr><td>Conv1-1</td><td>512 x 512</td><td>64</td><td colspan="3">4.5E+08 120x16 3.2E+06</td><td>99.3%</td><td colspan="2">310x18 9.6E+06</td><td>97.8%</td></tr><tr><td>Conv1-2</td><td>512 x 512</td><td>64</td><td colspan="3">9.6E+09 138x16 8.0E+07</td><td>99.2%</td><td colspan="2">308x16 1.8E+08</td><td>98.1%</td></tr><tr><td>Conv2-1</td><td colspan="2">256 x 256 128</td><td>4.8E+09</td><td>99x8</td><td>5.7E+07</td><td>98.8%</td><td colspan="2">188x10 1.4E+08</td><td>97.1%</td></tr><tr><td>Conv2-2</td><td colspan="2">256 x 256 128</td><td>9.6E+09</td><td>110x8</td><td>1.3E+08</td><td>98.7%</td><td>186x8</td><td>2.2E+08</td><td>97.7%</td></tr><tr><td>Conv3-1</td><td colspan="2">128 x 128 256</td><td>4.8E+09</td><td>54x8</td><td>1.2E+08</td><td>97.5%</td><td colspan="2">129x12 4.5E+08</td><td>90.6%</td></tr><tr><td>Conv3-2</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>60x8</td><td>2.7E+08</td><td>97.2%</td><td colspan="2">127x10 7.4E+08</td><td>92.3%</td></tr><tr><td>Conv3-3</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>67x8</td><td>3.1E+08</td><td>96.8%</td><td>125x8</td><td>5.8E+08</td><td>93.9%</td></tr><tr><td>Conv4-1</td><td>64 x 64</td><td>512</td><td>4.8E+09</td><td>36x8</td><td>3.2E+08</td><td>93.3%</td><td>90x12</td><td>1.2E+09</td><td>74.1%</td></tr><tr><td>Conv4-2</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>40x8</td><td>7.2E+08</td><td>92.5%</td><td>88x10</td><td>2.1E+09</td><td>78.1%</td></tr><tr><td>Conv4-3</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>45x8</td><td>8.1E+08</td><td>91.6%</td><td>86x8</td><td>1.5E+09</td><td>83.7%</td></tr><tr><td>Conv5-1</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>26x8</td><td>4.5E+08</td><td>81.1%</td><td>60x12</td><td>1.6E+09</td><td>32.1%</td></tr><tr><td>Conv5-2</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>28x8</td><td>4.9E+08</td><td>79.6%</td><td>58x10</td><td>1.3E+09</td><td>45.8%</td></tr><tr><td>Conv5-3</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>31x8</td><td>5.4E+08</td><td>77.5%</td><td>56x8</td><td>1.1E+09</td><td>58.3%</td></tr><tr><td>FC6 FC7</td><td>1</td><td colspan="2">1024 1.3E+08</td><td>1024</td><td>1.3E+08</td><td>0%</td><td>1024</td><td>1.3E+08</td><td>0%</td></tr><tr><td>Other</td><td/><td/><td>1.07E+10</td><td/><td>1.07E+10</td><td>0%</td><td/><td>1.07E+10</td><td>0%</td></tr><tr><td>Total</td><td/><td/><td>9.05e+10</td><td/><td>1.5e+10</td><td>83.3%</td><td/><td>2.2e+10</td><td>75.7%</td></tr></table>

Average FLOPs result on YouTube

Table content: <table><tr><td>Layer-type</td><td>Maps</td><td colspan="2">Baseline wxh FLOPs</td><td>wxh</td><td colspan="2">DynCNN (w/o) FLOPs %Pruned</td><td>wxh</td><td>DynCNN (w/) FLOPs</td><td>%Pruned</td></tr><tr><td>Conv1-1</td><td>512 x 512</td><td>64</td><td colspan="3">4.5E+08 742x16 2.0E+07</td><td>95.6%</td><td colspan="2">1702x18 5.3E+07</td><td>88.2%</td></tr><tr><td>Conv1-2</td><td>512 x 512</td><td>64</td><td colspan="3">9.6E+09 845x16 5.0E+08</td><td>94.8%</td><td colspan="2">1700x16 1.0E+09</td><td>89.6%</td></tr><tr><td>Conv2-1</td><td colspan="2">256 x 256 128</td><td>4.8E+09</td><td>582x8</td><td>3.4E+08</td><td>92.9%</td><td colspan="2">1205x10 8.8E+08</td><td>81.7%</td></tr><tr><td>Conv2-2</td><td colspan="2">256 x 256 128</td><td>9.6E+09</td><td>637x8</td><td>7.5E+08</td><td>92.2%</td><td>1203x8</td><td>1.6E+09</td><td>82.9%</td></tr><tr><td>Conv3-1</td><td colspan="2">128 x 128 256</td><td>4.8E+09</td><td>251x8</td><td>5.8E+08</td><td>87.9%</td><td>571x12</td><td>2.0E+09</td><td>58.1%</td></tr><tr><td>Conv3-2</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>272x8</td><td>1.3E+09</td><td>86.8%</td><td>569x10</td><td>3.3E+09</td><td>65.2%</td></tr><tr><td>Conv3-3</td><td colspan="2">128 x 128 256</td><td>9.6E+09</td><td>293x8</td><td>1.4E+09</td><td>85.7%</td><td>567x8</td><td>2.6E+09</td><td>72.3%</td></tr><tr><td>Conv4-1</td><td>64 x 64</td><td>512</td><td>4.8E+09</td><td>113x8</td><td>1.0E+09</td><td>78.3%</td><td>265x12</td><td>3.7E+09</td><td>22.5%</td></tr><tr><td>Conv4-2</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>122x8</td><td>2.3E+09</td><td>76.5%</td><td>263x10</td><td>6.1E+09</td><td>35.9%</td></tr><tr><td>Conv4-3</td><td>64 x 64</td><td>512</td><td>9.6E+09</td><td>131x8</td><td>2.4E+09</td><td>74.7%</td><td>261x8</td><td>4.9E+09</td><td>49.1%</td></tr><tr><td>Conv5-1</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>55x8</td><td>1.0E+09</td><td>58.3%</td><td>110x12</td><td>3.0E+09</td><td>-27.9%</td></tr><tr><td>Conv5-2</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>59x8</td><td>1.1E+09</td><td>55.4%</td><td>108x10</td><td>2.5E+09</td><td>-4.6%</td></tr><tr><td>Conv5-3</td><td>32 x 32</td><td>512</td><td>2.4E+09</td><td>62x8</td><td>1.1E+09</td><td>52.9%</td><td>106x8</td><td>1.9E+09</td><td>17.9%</td></tr><tr><td>FC6 FC7</td><td>1</td><td colspan="2">1024 1.3E+08</td><td>1024</td><td>1.3E+08</td><td>0%</td><td>1024</td><td>1.3E+08</td><td>0%</td></tr><tr><td>Other</td><td/><td/><td>1.07E+10</td><td/><td>1.07E+10</td><td>0%</td><td/><td>1.07E+10</td><td>0%</td></tr><tr><td>Total</td><td/><td/><td>9.05e+10</td><td/><td>2.46e+10</td><td>72.8%</td><td/><td>4.47e+10</td><td>50.6%</td></tr></table>

Peer review (iclr2019):
 The paper addresses the problem of computational inefficiency in video surveillance understanding approaches. It suggests an approach called Dynamic Convolution consists of Frame differencing, Prediction, and Dyn-Convolution steps. The idea is to reuse some of the convolutional feature maps, and frame features particularly when there is a significant similarity among the frames. The paper evaluates the results on 4 public datasets. However, it just compares the approach to a baseline, which is indeed applying convnet on all frames. - State of the art is not well-studied in the paper. Video understanding approaches usually are not just applying convnet on all frames. Many of the approaches on video analysis, select a random set of frames (or just a single frame) [5], and extract the features for them. There is another set of work on attention, that try to extracts the most important spatio-temporal [1-4] information to solve a certain task. These approaches are usually computationally less expensive than applying convnet on all video frames. I suggest the authors compare their model with these approaches.  [1] Spatially Adaptive Computation Time for Residual Networks., Figurnov et al.  [2] Recurrent Models of Visual Attention, Mnih et al.  [3] Action recognition using visual attention, Sharma et al.  [4] End-to-end learning of action detection from frame glimpses in videos, Yeung et al.  [5] Two-Stream Convolutional Networks for Action Recognition in Videos, Simonyan et al.  - In addition, car and pedestrian detection performance is part of the evaluation process. In this case, the approach should be also compared to the state-of-the-art tracking approaches (that are cheaper to acquire) in terms of computational efficiency and performance. - The writing of the paper should also improve to make the paper more understandable and easier to follow. Some examples: 1. Unnecessary information can be summarized. For example, many details on the computational costs in abstract and the introduction can just simply be replaced by stating that “these approaches are computationally costly”.  2. Using present tense for the SoTA approaches is more common.“ShuffleNet (Zhang et al. (2017)) proposed two new strategies”.  3. Long sentences are difficult to follow: “In real surveillance video application, although the calculation reduction on convolution is the main concern of speeding up the overall processing time, the data transfer is another important factor which contributes to the time”   + The problem of large-scale video understanding is an important and interesting problem to tackle.