Skip to main content
QUICK REVIEW

[Paper Review] CASSINI: Network-Aware Job Scheduling in Machine Learning Clusters

Sudarsanan Rajasekaran, Manya Ghobadi|arXiv (Cornell University)|Aug 1, 2023
Cloud Computing and Resource ManagementComputer Science6 citations
TL;DR

Cassini is a network-aware job scheduler for machine learning clusters that uses a geometric abstraction and an affinity graph to interleave communication phases of co-located jobs across network links, reducing congestion and improving training efficiency. It improves tail completion time by up to 2.5× and reduces ECN-marked packets by up to 33× without modifying congestion control or requiring network infrastructure changes.

ABSTRACT

We present CASSINI, a network-aware job scheduler for machine learning (ML) clusters. CASSINI introduces a novel geometric abstraction to consider the communication pattern of different jobs while placing them on network links. To do so, CASSINI uses an affinity graph that finds a series of time-shift values to adjust the communication phases of a subset of jobs, such that the communication patterns of jobs sharing the same network link are interleaved with each other. Experiments with 13 common ML models on a 24-server testbed demonstrate that compared to the state-of-the-art ML schedulers, CASSINI improves the average and tail completion time of jobs by up to 1.6x and 2.5x, respectively. Moreover, we show that CASSINI reduces the number of ECN marked packets in the cluster by up to 33x.

Motivation & Objective

  • Address the growing network congestion in GPU clusters caused by increasing model and data sizes in deep learning workloads.
  • Overcome the limitation of existing ML schedulers that ignore communication patterns when placing jobs on network links.
  • Enable efficient co-location of multiple ML jobs on shared network links by minimizing interference between their communication phases.
  • Design a scalable, pluggable scheduler extension that works with existing schedulers like Themis and Pollux without requiring changes to network hardware or congestion control protocols.
  • Achieve significant performance gains in both average and tail job completion times while reducing network congestion metrics like ECN-marked packets.

Proposed method

  • Introduce a geometric abstraction that models each job's periodic communication pattern as a circle, where time is wrapped around the circumference proportional to the training iteration time.
  • Use rotation of these circles to find optimal time-shifts that maximize interleaving of communication phases across jobs sharing the same network link.
  • Define a compatibility score between jobs based on the degree of overlap in their communication phases after optimal rotation, enabling informed scheduling decisions.
  • Construct a bipartite Affinity graph where nodes represent jobs and network links, and edges indicate job-link traversal, enabling cluster-wide scheduling coordination.
  • Develop a novel graph traversal algorithm to compute unique time-shifts for all jobs that maintain compatibility across all shared links simultaneously.
  • Integrate Cassini as a lightweight module (~1000 lines of code) into existing schedulers like Themis and Pollux, preserving their scheduling logic while adding network-aware placement decisions.
Figure 1: The traffic pattern of different parallelization strategies when training GPT-1, GPT-2, and GPT-3 models.
Figure 1: The traffic pattern of different parallelization strategies when training GPT-1, GPT-2, and GPT-3 models.

Experimental results

Research questions

  • RQ1Can a geometric abstraction effectively model and optimize the interleaving of communication phases across multiple ML jobs on shared network links?
  • RQ2How can a compatibility metric be defined and computed to guide job placement decisions that minimize network contention?
  • RQ3Can the proposed approach reduce tail completion times and ECN-marked packets without modifying congestion control or network infrastructure?
  • RQ4To what extent does the method generalize across different parallelization strategies (e.g., data, model, pipeline parallelism) and diverse DNN architectures?
  • RQ5How does the integration of Cassini with existing schedulers affect end-to-end training performance in real-world cluster workloads?

Key findings

  • Cassini improves the tail completion time of ML jobs by up to 2.5× compared to Pollux and 2.2× compared to Themis on a 24-server testbed.
  • The average job completion time is improved by up to 1.6× compared to state-of-the-art schedulers.
  • Cassini reduces the number of ECN-marked packets in the cluster by up to 33×, indicating significant reduction in network congestion.
  • The geometric abstraction and compatibility scoring mechanism successfully enable communication phase interleaving even when jobs do not share the same GPUs, overcoming limitations of prior work like Muri.
  • The approach is orthogonal to existing communication-optimization techniques and can be integrated with existing schedulers without changes to congestion control or network hardware.
  • The method generalizes across diverse DNN models—including VGG, ResNet, BERT, GPT-1/2/3, and DLRM—demonstrating broad applicability across common ML workloads.
Figure 2: Impact of interleaving the Up-Down phases of two VGG19 jobs sharing link $l_{1}$ .
Figure 2: Impact of interleaving the Up-Down phases of two VGG19 jobs sharing link $l_{1}$ .

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.