Skip to main content
QUICK REVIEW

[Paper Review] Scheduling Computation Graphs of Deep Learning Models on Manycore CPUs

Linpeng Tang, Yida Wang|arXiv (Cornell University)|Jul 16, 2018
Advanced Neural Network ApplicationsComputer Science50 references13 citations
TL;DR

This paper proposes Graphi, a high-performance execution engine that optimizes deep learning computation graph scheduling on manycore CPUs by minimizing resource interference, using profiling to find optimal parallelism, and applying critical-path-first scheduling. Graphi achieves 2.1× to 9.5× faster training than TensorFlow on a 68-core Intel Xeon Phi processor across four neural networks.

ABSTRACT

For a deep learning model, efficient execution of its computation graph is key to achieving high performance. Previous work has focused on improving the performance for individual nodes of the computation graph, while ignoring the parallelization of the graph as a whole. However, we observe that running multiple operations simultaneously without interference is critical to efficiently perform parallelizable small operations. The attempt of executing the computation graph in parallel in deep learning frameworks usually involves much resource contention among concurrent operations, leading to inferior performance on manycore CPUs. To address these issues, in this paper, we propose Graphi, a generic and high-performance execution engine to efficiently execute a computation graph in parallel on manycore CPUs. Specifically, Graphi minimizes the interference on both software/hardware resources, discovers the best parallel setting with a profiler, and further optimizes graph execution with the critical-path first scheduling. Our experiments show that the parallel execution consistently outperforms the sequential one. The training times on four different neural networks with Graphi are 2.1x to 9.5x faster than those with TensorFlow on a 68-core Intel Xeon Phi processor.

Motivation & Objective

  • Address the underutilization of manycore CPUs in deep learning workloads due to suboptimal scheduling and thread interference.
  • Overcome the limitations of sequential and naive parallel execution in existing frameworks like TensorFlow on manycore CPUs.
  • Design a generic execution engine that dynamically optimizes parallelism and scheduling for diverse deep learning computation graphs.
  • Minimize software and hardware resource contention across concurrent operations to maximize CPU utilization.
  • Demonstrate that intelligent scheduling and profiling lead to significant performance gains on modern manycore architectures.

Proposed method

  • Profile computation graphs to determine optimal parallelism settings and resource allocation for schedulers and executors.
  • Implement a centralized scheduler that applies critical-path-first scheduling to prioritize high-dependency operations and reduce idle time.
  • Use resource isolation techniques to minimize interference between threads by assigning disjoint CPU and memory resources.
  • Apply a multi-agent architecture with dedicated executors and a central scheduler to coordinate execution and reduce contention.
  • Leverage hardware-specific characteristics of the Intel Xeon Phi (68-core, MIC architecture) to tune performance through profiling and scheduling.
  • Integrate with existing deep learning frameworks by designing a generic interface that supports various neural network structures without specialization.

Experimental results

Research questions

  • RQ1How can computation graph scheduling on manycore CPUs be optimized to reduce thread interference and resource contention?
  • RQ2What is the optimal level of parallelism for small, independent operations in deep learning computation graphs on manycore CPUs?
  • RQ3Can a centralized, intelligent scheduler outperform naive or sequential execution in terms of throughput and latency?
  • RQ4To what extent can profiling and dynamic configuration improve performance across diverse deep learning models?
  • RQ5Can a generic execution engine achieve high performance across different neural network architectures without model-specific tuning?

Key findings

  • Graphi achieves 2.1× to 9.5× faster training than TensorFlow on a 68-core Intel Xeon Phi processor across four different neural networks.
  • Parallel execution without interference improves performance by up to 3.4× compared to sequential execution on the same hardware.
  • The critical-path-first scheduling strategy boosts performance by 8% to 19% compared to simpler scheduling approaches.
  • Operations like matrix multiplication and element-wise computation saturate at 8 or 16 cores on the Xeon Phi, indicating a performance plateau beyond which contention outweighs gains.
  • Graphi automatically recovers and matches the performance of handcrafted parallelization schemes, such as those in cuDNN for LSTM networks.
  • The framework generalizes well, achieving favorable speedups on modern multicore CPUs like Intel Xeon Platinum 8180, confirming its broad applicability beyond the Xeon Phi.

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.