Skip to main content
QUICK REVIEW

[Paper Review] Auto-MAP: A DQN Framework for Exploring Distributed Execution Plans for DNN Workloads

Siyu Wang, Yi Rong|arXiv (Cornell University)|Jul 8, 2020
Parallel Computing and Optimization TechniquesComputer Science31 references5 citations
TL;DR

Auto-MAP proposes a DQN-based reinforcement learning framework that automatically discovers optimal distributed execution plans for DNN workloads by operating on HLO IR, enabling unified exploration of data, model, and pipeline parallelism. It achieves optimal throughput within two hours on NLP and CNN models, outperforming manual and heuristic approaches.

ABSTRACT

The last decade has witnessed growth in the computational requirements for training deep neural networks. Current approaches (e.g., data/model parallelism, pipeline parallelism) parallelize training tasks onto multiple devices. However, these approaches always rely on specific deep learning frameworks and requires elaborate manual design, which make it difficult to maintain and share between different type of models. In this paper, we propose Auto-MAP, a framework for exploring distributed execution plans for DNN workloads, which can automatically discovering fast parallelization strategies through reinforcement learning on IR level of deep learning models. Efficient exploration remains a major challenge for reinforcement learning. We leverage DQN with task-specific pruning strategies to help efficiently explore the search space including optimized strategies. Our evaluation shows that Auto-MAP can find the optimal solution in two hours, while achieving better throughput on several NLP and convolution models.

Motivation & Objective

  • To address the challenge of manually designing efficient distributed training strategies for diverse DNN workloads.
  • To unify the exploration of data, model, and pipeline parallelism within a single framework, avoiding framework-specific or model-specific solutions.
  • To reduce user burden by eliminating low-level distributed system configuration and enabling framework-agnostic, workload-neutral parallelism planning.
  • To improve search efficiency in large, complex parallelism spaces through task-specific pruning and DQN-based reinforcement learning.
  • To enable automatic, high-throughput, and generalizable parallelization strategies across diverse models like BERT, T5, and ResNet.

Proposed method

  • Auto-MAP operates on HLO IR, a low-level, hardware-agnostic intermediate representation generated by XLA, enabling finer-grained and more expressive model analysis than operator- or layer-level representations.
  • It employs Deep Q-Network (DQN) with task-specific pruning strategies to efficiently explore the vast search space of distributed execution plans, including data, model, and pipeline parallelism.
  • The framework uses a reward function based on training throughput to guide the DQN agent toward optimal or near-optimal parallelization strategies.
  • It leverages the XLA compiler stack to enable compatibility with multiple front-ends (e.g., TensorFlow, JAX, Trax), ensuring no code intrusion into user models.
  • The DQN agent is trained on synthetic environments with random distributions before being fine-tuned on real model distributions for inference.
  • For NLP models, the agent generalizes well after pre-training; for CNNs, it requires fine-tuning on model-specific distributions to achieve accurate pipeline partitioning.

Experimental results

Research questions

  • RQ1Can a reinforcement learning framework automatically discover optimal distributed training strategies across diverse DNN models without manual design?
  • RQ2Can a unified framework explore data, model, and pipeline parallelism strategies simultaneously within a single, extensible search space?
  • RQ3Does operating on HLO IR enable better performance and generalization than layer- or operator-level abstraction in distributed training planning?
  • RQ4Can task-specific pruning in DQN significantly reduce the search space and accelerate convergence to optimal solutions?
  • RQ5To what extent can a pre-trained DQN agent generalize across different model architectures, and when is fine-tuning necessary?

Key findings

  • Auto-MAP discovers the optimal distributed execution plan within two hours for both NLP and convolutional models, significantly reducing manual tuning time.
  • For BERT and T5 models, the DQN agent successfully infers optimal pipeline partitioning strategies after pre-training on synthetic data, without fine-tuning.
  • For larger models like T5-11B, fine-tuning the agent on model-specific distributions for 10,000 episodes enables accurate inference of optimal pipeline boundaries.
  • The framework achieves better training throughput compared to baseline heuristic and manual approaches on multiple NLP and CNN models.
  • The use of HLO IR enables framework-agnostic, low-intrusion parallelism planning that works across TensorFlow, JAX, and Trax.
  • The integration of task-specific pruning with DQN improves search efficiency and convergence speed in the complex space of hybrid parallelism strategies.

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.