M3: Scale-Out Systems

M3: Scale-Out Systems #

This module examines the platforms, communication patterns, and hardware organisation used to train across larger systems. It extends distributed algorithms into coordinated training services and federated settings.

Module coverage:

  • ML Platforms and Frameworks: the Parameter Server model, Spark MLlib, and TensorFlow/PyTorch distributed training.
  • Distributed Deep Learning: decentralised SGD, all-reduce, asynchronous parallelism, and large-scale neural networks.
  • Federated Learning: training that preserves data privacy, communication efficiency, and hardware utilisation.

Learning Objectives #

  • Explain how training platforms organise model state, workers, and updates.
  • Compare centralised parameter services with collective communication.
  • Assess the effects of bandwidth, latency, locality, and stale updates.
  • Relate federated training to data distribution, privacy goals, and communication limits.

Pages and Planned Topics #

ChapterTopicAvailability
8ML Platforms and FrameworksPage available; currently focuses on the Parameter Server model
9Distributed Deep Learning: Synchronisation and CommunicationPage available; synchronisation, staleness examples, Hogwild!, Downpour, compression, and placement
9, continuedDistributed SGD and All-ReducePage available; weighted objectives, decentralised consensus, collective algorithms, topology, and tensor fusion
10Locality and Large-Scale ParallelismExpanded coverage of scaling, attention, MoE, parallelism, and training memory
11GPU Architecture and Federated LearningGPU execution, matrix operations and federated learning overview
11, continuedParallel and Distributed ConvolutionWorked convolution, halo exchange, and scaling

The outline below describes the full module scope. Chapter 9 spans the two linked pages above; Hogwild! and Downpour are covered, while a full treatment of Local SGD remains to be added. Chapter 10 develops large-model compute budgets, attention cost, MoE, parallelism, sharding, mixed precision, checkpointing, and offloading. Chapter 11 includes an overview of GPU architecture and federated learning plus a worked treatment of spatial parallelism in convolution.

Topic Outline #

8. ML Platforms and Frameworks #

  • Implementation issues and the Parameter Server model ☆
  • Stochastic gradient descent
  • TensorFlow architecture: master, worker, and parameter-server roles
  • Graph mode, eager execution, and distributed training strategies
  • Batch and micro-batch sizing
  • Model compression, quantisation, I/O, and shuffling overhead

9. Distributed Deep Learning #

  • Decentralised SGD, all-reduce, and asynchronous parallelism
  • System and program optimisation for neural networks
  • Matrix multiplication
  • Ring-based and tree-based reduction, bandwidth, and latency
  • Hogwild!, parameter staleness, convergence, and variance
  • Local SGD, periodic model averaging, and communication–computation trade-offs

10. Locality and Large-Scale Parallelism #

  • Locality-aware programs, massive multithreading, and GPGPUs
  • Model parallelism: layer slicing, tensor splitting, and cross-device communication
  • Pipeline parallelism: micro-batches, scheduling, and bubble overhead
  • Large-scale neural-network training on GPU clusters
  • Memory-efficient checkpointing

11. GPU Architecture and Federated Learning #

  • GPU architecture and threading models
  • Matrix addition and multithreaded matrix multiplication
  • Parallel convolution: padding, halos, crop and merge, and scaling
  • Federated learning: non-IID data and privacy goals
  • Secure aggregation
  • Decentralised federated learning, gossip, and blockchain-based architectures

How This Module Connects #

Build on M2: Distributed ML Algorithms. For model optimisation and deployment under tighter resource limits, continue to M4: Constrained Systems.

ML System Optimisation overview


Home | ML System Optimisation