Ji Lin, Chuang Gan, Song Han
The explosive growth in video streaming gives rise to challenges on performing video understanding at high accuracy and low computation cost. Conventional 2D CNNs are computationally cheap but cannot capture temporal relationships; 3D CNN based methods can achieve good performance but are computationally intensive, making it expensive to deploy. In this paper, we propose a generic and effective Temporal Shift Module (TSM) that enjoys both high efficiency and high performance. Specifically, it can achieve the performance of 3D CNN but maintain 2D CNN's complexity. TSM shifts part of the channels along the temporal dimension; thus facilitate information exchanged among neighboring frames. It can be inserted into 2D CNNs to achieve temporal modeling at zero computation and zero parameters. We also extended TSM to online setting, which enables real-time low-latency online video recognition and video object detection. TSM is accurate and efficient: it ranks the first place on the Something-Something leaderboard upon publication; on Jetson Nano and Galaxy Note8, it achieves a low latency of 13ms and 35ms for online video recognition. The code is available at: https://github.com/mit-han-lab/temporal-shift-module.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Video | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Video | Assembly101 | Object Top-1 | 47.45 | TSM |
| Video | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| Video | Kinetics-400 | Acc@1 | 74.7 | TSM |
| Temporal Action Localization | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Temporal Action Localization | Assembly101 | Object Top-1 | 47.45 | TSM |
| Temporal Action Localization | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| Zero-Shot Learning | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Zero-Shot Learning | Assembly101 | Object Top-1 | 47.45 | TSM |
| Zero-Shot Learning | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| Activity Recognition | Something-Something V1 | Top 1 Accuracy | 50.7 | TSM (RGB + Flow) |
| Activity Recognition | Something-Something V1 | Top 1 Accuracy | 49.7 | TSMEn |
| Activity Recognition | Something-Something V1 | Top 5 Accuracy | 78.5 | TSMEn |
| Activity Recognition | Something-Something V1 | Top 1 Accuracy | 47.2 | TSM |
| Activity Recognition | Something-Something V1 | Top 5 Accuracy | 77.1 | TSM |
| Activity Recognition | Something-Something V2 | Top-1 Accuracy | 66.6 | TSM (RGB + Flow) |
| Activity Recognition | Something-Something V2 | Top-5 Accuracy | 91.3 | TSM (RGB + Flow) |
| Activity Recognition | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Activity Recognition | Assembly101 | Object Top-1 | 47.45 | TSM |
| Activity Recognition | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| Action Localization | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Action Localization | Assembly101 | Object Top-1 | 47.45 | TSM |
| Action Localization | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| 3D Action Recognition | Assembly101 | Actions Top-1 | 35.27 | TSM |
| 3D Action Recognition | Assembly101 | Object Top-1 | 47.45 | TSM |
| 3D Action Recognition | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| Object Detection | ImageNet VID | MAP | 76.3 | Online TSM |
| 3D | ImageNet VID | MAP | 76.3 | Online TSM |
| Action Recognition | Something-Something V1 | Top 1 Accuracy | 50.7 | TSM (RGB + Flow) |
| Action Recognition | Something-Something V1 | Top 1 Accuracy | 49.7 | TSMEn |
| Action Recognition | Something-Something V1 | Top 5 Accuracy | 78.5 | TSMEn |
| Action Recognition | Something-Something V1 | Top 1 Accuracy | 47.2 | TSM |
| Action Recognition | Something-Something V1 | Top 5 Accuracy | 77.1 | TSM |
| Action Recognition | Something-Something V2 | Top-1 Accuracy | 66.6 | TSM (RGB + Flow) |
| Action Recognition | Something-Something V2 | Top-5 Accuracy | 91.3 | TSM (RGB + Flow) |
| Action Recognition | Assembly101 | Actions Top-1 | 35.27 | TSM |
| Action Recognition | Assembly101 | Object Top-1 | 47.45 | TSM |
| Action Recognition | Assembly101 | Verbs Top-1 | 58.27 | TSM |
| 2D Classification | ImageNet VID | MAP | 76.3 | Online TSM |
| 2D Object Detection | ImageNet VID | MAP | 76.3 | Online TSM |
| 16k | ImageNet VID | MAP | 76.3 | Online TSM |