Skip to main content
QUICK REVIEW

[Paper Review] IOS: Inter-Operator Scheduler for CNN Acceleration

Yaoyao Ding, Ligeng Zhu|arXiv (Cornell University)|Nov 2, 2020
Advanced Neural Network ApplicationsComputer Science23 references5 citations
TL;DR

IOS proposes an inter-operator scheduler that uses dynamic programming to optimize parallel execution of CNN operators across multiple stages, significantly improving GPU utilization and inference performance. It achieves 1.1x to 1.5x speedup over state-of-the-art libraries like TensorRT by jointly leveraging intra- and inter-operator parallelism across diverse hardware and batch sizes.

ABSTRACT

To accelerate CNN inference, existing deep learning frameworks focus on optimizing intra-operator parallelization. However, a single operator can no longer fully utilize the available parallelism given the rapid advances in high-performance hardware, resulting in a large gap between the peak performance and the real performance. This performance gap is more severe under smaller batch sizes. In this work, we extensively study the parallelism between operators and propose Inter-Operator Scheduler (IOS) to automatically schedule multiple operators' parallel execution through a novel dynamic programming algorithm. IOS consistently outperforms state-of-the-art libraries (e.g., TensorRT) by 1.1 to 1.5x on modern CNN benchmarks. The code to reproduce each experiment is available at: https://github.com/mit-han-lab/inter-operator-scheduler.

Motivation & Objective

  • To address the growing performance gap between peak hardware performance and real-world CNN inference efficiency, especially under small batch sizes.
  • To overcome the limitations of existing intra-operator parallelism optimization, which fails to fully utilize modern high-performance hardware.
  • To develop a globally optimal scheduling strategy that coordinates inter-operator parallelism across CNN layers, avoiding suboptimal greedy or heuristic-based approaches.
  • To create a hardware-aware scheduler that adapts to varying batch sizes and device capabilities, ensuring consistent performance improvements.
  • To reduce optimization cost while achieving superior throughput compared to existing auto-tuning frameworks like TVM.

Proposed method

  • IOS formulates the inter-operator scheduling problem as a dynamic programming task to find an optimal execution order that maximizes GPU utilization across multiple stages.
  • It models the computation graph as a directed acyclic graph (DAG), where operators are nodes and data dependencies are edges, and uses a state transition function to explore feasible schedules.
  • The scheduler computes the optimal schedule by recursively evaluating sub-schedules and selecting the one that minimizes latency or maximizes utilization under hardware constraints.
  • It integrates with existing deep learning libraries like cuDNN for intra-operator parallelism, focusing solely on inter-operator coordination to reduce optimization overhead.
  • The algorithm accounts for hardware-specific bottlenecks such as memory bandwidth and shared resource contention (e.g., L3 cache) by profiling execution stages.
  • It supports dynamic adaptation to different batch sizes by generating separate optimal schedules for each setting, ensuring consistent performance across inference workloads.

Experimental results

Research questions

  • RQ1Can a dynamic programming-based scheduler achieve better GPU utilization than heuristic or greedy scheduling in CNN inference?
  • RQ2How does inter-operator scheduling impact performance across varying batch sizes, especially when intra-operator parallelism is insufficient?
  • RQ3To what extent can inter-operator scheduling improve throughput compared to state-of-the-art libraries like TensorRT and TVM?
  • RQ4What is the trade-off between computational cost of optimization and the resulting performance gain in inter-operator scheduling?
  • RQ5How does the scheduler handle resource contention and memory access bottlenecks in high-concurrency execution scenarios?

Key findings

  • IOS achieves 1.1x to 1.5x speedup over state-of-the-art libraries like TensorRT across multiple modern CNN benchmarks, including Inception V3, SqueezeNet, and NASNet.
  • The scheduler consistently outperforms baselines across all batch sizes from 1 to 128, with the largest gains observed at low batch sizes where inter-operator parallelism is most critical.
  • For batch size 1, the IOS-optimized schedule is 28% faster than a schedule optimized for batch size 32, demonstrating the importance of batch-aware scheduling.
  • IOS reduces optimization cost to just 3 GPU hours, compared to 208 GPU hours for TVM, while still outperforming TVM on Inception V3 and SqueezeNet.
  • The combination of intra- and inter-operator parallelism is orthogonal and complementary, with IOS focusing on inter-operator scheduling while TVM optimizes intra-operator kernels, suggesting further gains from joint optimization.
  • Merging operators like f and g in the schedule reduces memory access by eliminating intermediate activations, even at the cost of increased computation, which is beneficial at large batch sizes due to memory bottlenecks.

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.