Skip to main content
QUICK REVIEW

[Paper Review] Training Kinetics in 15 Minutes: Large-scale Distributed Training on Videos

Ji Lin, Chuang Gan|arXiv (Cornell University)|Oct 1, 2019
Human Pose and Action RecognitionComputer Science23 references9 citations
TL;DR

This paper proposes a hardware-aware video model design using the Temporal Shift Module (TSM) to enable scalable, high-throughput distributed training on videos. By minimizing FLOPs, reducing input frames, and shrinking model size, TSM achieves 1.6× and 2.9× faster training than I3D models on 1,536 GPUs, completing Kinetics training in 14 minutes 13 seconds with 74.0% top-1 accuracy.

ABSTRACT

Deep video recognition is more computationally expensive than image recognition, especially on large-scale datasets like Kinetics [1]. Therefore, training scalability is essential to handle a large amount of videos. In this paper, we study the factors that impact the training scalability of video networks. We recognize three bottlenecks, including data loading (data movement from disk to GPU), communication (data movement over networking), and computation FLOPs. We propose three design guidelines to improve the scalability: (1) fewer FLOPs and hardware-friendly operator to increase the computation efficiency; (2) fewer input frames to reduce the data movement and increase the data loading efficiency; (3) smaller model size to reduce the networking traffic and increase the networking efficiency. With these guidelines, we designed a new operator Temporal Shift Module (TSM) that is efficient and scalable for distributed training. TSM model can achieve 1.8x higher throughput compared to previous I3D models. We scale up the training of the TSM model to 1,536 GPUs, with a mini-batch of 12,288 video clips/98,304 images, without losing the accuracy. With such hardware-aware model design, we are able to scale up the training on Summit supercomputer and reduce the training time on Kinetics dataset from 49 hours 55 minutes to 14 minutes 13 seconds, achieving a top-1 accuracy of 74.0%, which is 1.6x and 2.9x faster than previous 3D video models with higher accuracy. The code and more details can be found here: http://tsm-hanlab.mit.edu.

Motivation & Objective

  • Address the challenge of scaling video recognition training due to high computational, I/O, and communication demands.
  • Identify three key bottlenecks in distributed video training: computation FLOPs, data loading I/O, and communication bandwidth.
  • Develop hardware-aware model design guidelines to improve scalability across computation, data loading, and networking efficiency.
  • Enable end-to-end training of large-scale video models like Kinetics on supercomputers within minutes, not days.
  • Demonstrate that model architecture choices can drastically reduce training time without sacrificing accuracy.

Proposed method

  • Propose three design guidelines: reduce FLOPs via hardware-friendly operators, minimize input frames to reduce I/O, and reduce model size to lower communication overhead.
  • Introduce the Temporal Shift Module (TSM), a zero-FLOP, zero-parameter operator that enables temporal modeling by shifting channels across time in 2D CNNs.
  • Use a straight-up backbone design with 8 input frames to reduce I/O load compared to pooled-up designs requiring many frames.
  • Implement distributed synchronous SGD training on the Summit supercomputer with up to 1,536 GPUs and a mini-batch size of 12,288 video clips (98,304 images).
  • Apply gradient accumulation to simulate training at 3,072 and 6,144 GPUs due to hardware quotas, maintaining accuracy evaluation.
  • Optimize training efficiency by leveraging highly optimized 2D convolutions instead of less-efficient 3D convolutions, improving hardware utilization.

Experimental results

Research questions

  • RQ1How do computation, data loading, and communication bottlenecks impact the scalability of large-scale video training?
  • RQ2Can model architecture design significantly improve training throughput and scalability on video datasets?
  • RQ3To what extent can reducing FLOPs, input frames, and model size enhance training efficiency in distributed video training?
  • RQ4Can a video model maintain high accuracy while achieving sub-15-minute training time on the Kinetics dataset using 1,536 GPUs?
  • RQ5How does the TSM module enable effective temporal modeling with zero FLOPs and zero parameters in a 2D CNN framework?

Key findings

  • TSM-based training on 1,536 GPUs completes Kinetics training in 14 minutes and 13 seconds, reducing training time from 49 hours 55 minutes to under 15 minutes.
  • The TSM model achieves a top-1 accuracy of 74.0% on Kinetics, matching or exceeding previous I3D models despite significantly faster training.
  • TSM training reaches 80% scaling efficiency on 1,536 GPUs, demonstrating strong linear scalability across hardware resources.
  • The model maintains accuracy up to a batch size of 12,288 video clips (98,304 images), with no degradation in performance.
  • TSM achieves 1.6× and 2.9× higher training throughput than I3D 3×3×3 and I3D 3×1×1 models, respectively, on the same hardware.
  • Gradient accumulation simulations show accuracy degradation at 3,072 and 6,144 GPUs, indicating a practical upper bound for stable training at scale.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.