arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1902.10640cs.CV
收藏

使用较少帧的高效视频分类

Efficient Video Classification Using Fewer Frames

Indian Institute of Technology Madras(印度理工学院马德拉斯分校);Robert Bosch Centre for Data Science and AI(罗伯特·博世数据科学与人工智能中心);NVIDIA Bangalore(英伟达班加罗尔分部)

Shweta Bhardwaj, Mukundhan Srinivasan, Mitesh M. Khapra

摘要:

最近,人们对构建用于视频分类的紧凑模型非常感兴趣,这些模型具有小的内存占用(<1 GB)。虽然这些模型是紧凑的,但它们通常通过将小权重矩阵重复应用于视频中的所有帧来操作。例如,基于递归神经网络的方法使用递归权重矩阵来计算视频的每个帧的隐藏状态。类似地,基于聚类和聚合的方法(诸如NetVLAD)具有可学习的聚类矩阵,其用于将软聚类分配给视频中的每一帧。由于这些模型查看视频中的每一帧,因此即使内存占用很小,浮点运算(FLOP)的数量仍然很大。我们专注于构建计算效率高的视频分类模型,处理较少的帧,因此具有较少的FLOP。类似于内存高效模型,我们使用蒸馏的想法,尽管是在不同的环境中。具体地说,在我们的例子中,一个看视频中所有帧的计算量很大的老师被用来训练一个只看视频中一小部分帧的计算效率高的学生。这与典型的存储器高效的教师-学生设置形成对比,其中教师和学生都查看视频中的所有帧,但是学生具有较少的参数。因此,我们的工作补充了内存有效的视频分类的研究。我们做了广泛的评估与三种类型的视频分类模型,即。(i)递归模型(ii)集群和聚合模型以及(iii)存储器高效的集群和聚合模型,并且示出在这些情况中的每一种中,可以使用全看教师来训练计算高效的看得很少的学生。我们表明,建议的学生网络可以减少30%的推理时间和大约90%的FLOP的数量,在性能上可以忽略不计的下降。

英文摘要:

Recently,there has been a lot of interest in building compact models for video classification which have a small memory footprint (<1 GB). While these models are compact, they typically operate by repeated application of a small weight matrix to all the frames in a video. E.g. recurrent neural network based methods compute a hidden state for every frame of the video using a recurrent weight matrix. Similarly, cluster-and-aggregate based methods such as NetVLAD, have a learnable clustering matrix which is used to assign soft-clusters to every frame in the video. Since these models look at every frame in the video, the number of floating point operations (FLOPs) is still large even though the memory footprint is small. We focus on building compute-efficient video classification models which process fewer frames and hence have less number of FLOPs. Similar to memory efficient models, we use the idea of distillation albeit in a different setting. Specifically, in our case, a compute-heavy teacher which looks at all the frames in the video is used to train a compute-efficient student which looks at only a small fraction of frames in the video. This is in contrast to a typical memory efficient Teacher-Student setting, wherein both the teacher and the student look at all the frames in the video but the student has fewer parameters. Our work thus complements the research on memory efficient video classification. We do an extensive evaluation with three types of models for video classification,viz.(i) recurrent models (ii) cluster-and-aggregate models and (iii) memory-efficient cluster-and-aggregate models and show that in each of these cases, a see-it-all teacher can be used to train a compute efficient see-very-little student. We show that the proposed student network can reduce the inference time by 30% and the number of FLOPs by approximately 90% with a negligible drop in the performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑