MARS: Exploiting Multi-Level Parallelism for DNN Workloads on Adaptive Multi-Accelerator Systems

Guan Shen, Jieru Zhao, Zeke Wang, Zhe Lin, Wenchao Ding, Chentao Wu, Quan Chen, Minyi Guo · DOI

Abstract

As Deep Neural Network (DNN) workloads grow in complexity, the industry is shifting from monolithic chips toward multi-accelerator systems. However, optimizing these systems requires solving a complex mapping problem involving hardware configuration and workload partitioning. This paper introduces MARS, a novel framework that optimizes DNN inference on clusters of adaptive accelerators (such as FPGAs). By employing a two-level genetic algorithm to jointly optimize hardware architectures and multi-level parallelism strategies, MARS achieves an average latency reduction of 32.2% compared to standard baselines and outperforms state-of-the-art mapping tools by up to 59.4% on heterogeneous models.

1. Introduction

The slowdown of Moore’s Law has made the development of massive, single-chip processors prohibitively expensive. In response, data centers and System-on-Chip (SoC) designers are increasingly utilizing clusters of smaller, specialized accelerators. While these systems offer scalability, they introduce a significant "mapping" challenge. Developers must simultaneously decide which hardware architecture to deploy on programmable chips, how to allocate specific neural network layers across those chips, and how to partition data to minimize communication overhead.

Existing mapping tools often fail to account for the "communication tax"—the latency incurred when moving data between chips—or they overlook "intra-layer" parallelism, where a single layer is distributed across multiple accelerators. MARS addresses these gaps by treating hardware selection and software mapping as a unified optimization problem.

2. The MARS Framework

MARS introduces a holistic approach to mapping by focusing on three critical dimensions: accelerator selection, workload allocation, and parallelism strategy.

2.1 Multi-Level Parallelism Strategies

To maximize throughput and minimize latency, MARS utilizes two distinct data-sharding techniques:

  • Exclusive Shards (ES): This follows traditional partitioning where each accelerator processes a unique portion of the data. It is effective for standard data or model parallelism.
  • Shared Shards (SS): A sophisticated "ring-style" approach where accelerators hold a portion of the data and rotate it among neighbors during computation. This strategy is vital for overcoming the "memory wall," allowing the system to process layers that exceed the local memory capacity of a single chip by treating the cluster's memory as a collective pool.

2.2 Two-Level Genetic Algorithm (GA)

Navigating the massive search space of hardware and software configurations requires an efficient optimization strategy. MARS employs a "divide and conquer" evolutionary approach:

  • Outer Loop (Level 1): Searches for the optimal combination of accelerator designs and determines the high-level grouping of layers to specific sets of chips.
  • Inner Loop (Level 2): For a fixed hardware configuration, this loop optimizes the specific parallelism strategies (ES vs. SS) for every individual layer within the network.

2.3 Communication-Aware Simulation

To ensure accuracy, MARS integrates with ASTRA-Sim, a high-fidelity simulator. This allows the framework to model communication bottlenecks and collective operations (such as All-Reduce) across various network topologies, ensuring that the discovered mappings are performant in real-world hardware environments.

3. Evaluation and Results

The researchers evaluated MARS using a variety of Convolutional Neural Network (CNN) workloads, ranging from standard benchmarks like ResNet101 and WideResNet-50-2 to complex, multi-modal models like CASIA-SURF and FaceBag used in face anti-spoofing.

3.1 Performance Improvements

MARS demonstrated significant performance gains across all tested scenarios:

  • Latency Reduction: Compared to computation-prioritized baselines, MARS reduced average latency by 32.2% across standard CNNs.
  • Comparison to State-of-the-Art: When compared against H2H, a leading mapping tool, MARS achieved a 59.4% reduction in latency for heterogeneous models. This highlights the framework's ability to handle non-uniform architectures that traditional tools struggle to optimize.
  • Scalability: The framework successfully identified efficient mappings for deep networks with massive search spaces, such as ResNet101, by automatically favoring low-latency paths within accelerator groups.

3.2 Key Insights

  • Hardware-Software Co-design: The evaluation confirmed that the optimal parallelism strategy is intrinsically linked to the underlying hardware. Software mapping cannot be effectively optimized in isolation from the FPGA's internal architecture.
  • Handling Layer Heterogeneity: MARS identified that early layers (high resolution, few channels) require different hardware configurations and parallelism dimensions than deeper layers (low resolution, many channels). This granular optimization is a primary driver of its performance gains.

4. Conclusion and Future Work

MARS represents a significant step forward in the automated optimization of multi-accelerator systems. By bridging the gap between hardware configuration and multi-level parallelism, it provides a robust solution for the next generation of AI infrastructure.

Future research will focus on extending the MARS framework to support Transformer architectures and Large Language Models (LLMs), which present different computational patterns than CNNs. Additionally, the authors aim to explore heterogeneous environments that mix fixed ASICs with programmable FPGAs and GPUs, further broadening the applicability of the MARS optimization engine.

Summary updated

BibTeX
@inproceedings{shen2023mars,
  author = {Guan Shen and Jieru Zhao and Zeke Wang and Zhe Lin and Wenchao Ding and Chentao Wu and Quan Chen and Minyi Guo},
  title = {{MARS: Exploiting Multi-Level Parallelism for DNN Workloads on Adaptive Multi-Accelerator Systems}},
  booktitle = {DAC},
  year = {2023},
  doi = {10.1109/dac56929.2023.10247992},
}
Figure