GiPH: Generalizable Placement Learning for Adaptive Heterogeneous Computing

Yi Hu, Chaoran Zhang, Edward Andert, Harshul Singh, Aviral Shrivastava, James Laudon, Yanqi Zhou, Bob Iannucci, Carlee Joe-Wong

Abstract

Efficient task placement—the assignment of computational tasks to specific hardware devices—is critical for optimizing performance in distributed and heterogeneous computing environments. Traditional reinforcement learning (RL) approaches to this NP-hard problem often fail when hardware configurations change, requiring expensive retraining. This paper introduces GiPH (Generalizable Placement Learning), a novel RL framework that utilizes a unified graph representation called gpNet to achieve zero-shot generalization across dynamic and heterogeneous device clusters. By treating placement as an iterative relocation process, GiPH outperforms existing search-based and RL-based methods in both speed and makespan reduction.

Introduction

In the era of edge computing and mobile distributed systems, applications are increasingly composed of complex task graphs, such as deep learning inference pipelines or multi-sensor fusion systems. Assigning these tasks to a diverse set of hardware (CPUs, GPUs, and specialized accelerators) is a fundamental challenge. A poor placement strategy leads to communication bottlenecks and underutilized resources, significantly increasing the total completion time, or makespan.

While reinforcement learning has shown promise in automating placement, most existing models are "overfit" to a specific hardware topology. If a node leaves the network or a new server is added, these models typically require retraining. GiPH addresses this limitation by focusing on the underlying relationships between software requirements and hardware capabilities, enabling a "learn once, place anywhere" capability.

Methodology

GiPH introduces three primary innovations to enable generalizable task placement:

1. gpNet: A Unified Graph Representation

Traditional methods often process the task graph (Directed Acyclic Graph or DAG) and the device network graph separately. GiPH merges these into gpNet, a single heterogeneous graph. Within gpNet, "pivots" represent the current task-to-device assignments, while "non-pivots" represent potential alternative placements. This unified view allows the model to perceive the state of the entire system—both the software dependencies and the hardware constraints—simultaneously.

Rather than attempting to predict a complete placement for all tasks in a single pass, GiPH adopts an iterative approach. At each step, the RL agent identifies a single task to move to a different device to minimize the makespan. This sequential improvement strategy allows the model to escape local optima and refine placements as the environment evolves.

3. Scalable Graph Neural Networks (GNNs)

To process the gpNet, GiPH employs a Graph Neural Network. Because GNNs rely on local message-passing between nodes rather than global fixed-size inputs, they are inherently scalable. This allows a model trained on a small set of tasks and devices to be applied directly to much larger or differently structured networks without modification.

Experimental Evaluation

The researchers evaluated GiPH across three diverse scenarios to test its robustness and generalization:

  • Synthetic Workloads: Randomly generated task graphs and device networks were used to test the model under varying levels of heterogeneity and communication noise.
  • Deep Learning Architectures: 300 computation graphs from Efficient Neural Architecture Search (ENAS) provided realistic software structures.
  • Real-World Case Study: A cooperative sensor fusion application for traffic simulation (SUMO) in Tempe, Arizona. This involved a heterogeneous mix of NVIDIA Jetson Nanos, TX2s, and high-end i7 servers.

Key Results and Discussion

Performance and Efficiency

GiPH demonstrated a significant performance advantage, achieving up to a 30.5% improvement in makespan compared to standard search-based baselines. Furthermore, it reached these high-quality solutions up to 3x faster than competing RL-based search policies like Placeto.

Zero-Shot Generalization

A core strength of GiPH is its ability to handle dynamic environments. In tests where devices were randomly added or removed—simulating the volatility of edge computing—GiPH maintained stable performance. In contrast, prior state-of-the-art models saw their performance degrade significantly, often performing worse than random sampling when faced with unfamiliar hardware configurations.

Robustness to Noise

In real-world networks, execution times often fluctuate. When 20% "noise" was introduced to task execution times, GiPH remained resilient. The GNN-based architecture effectively decoupled transient noise from the underlying structural relationships of the network, whereas previous models often collapsed under the same conditions.

Conclusion and Future Work

GiPH represents a significant step toward autonomous, adaptive resource management in heterogeneous computing. By encoding placement state directly into a unified graph, it achieves a level of generalization previously unseen in RL-based schedulers.

Future research will focus on refining the stopping criteria for the iterative search to improve efficiency further. Additionally, the authors plan to integrate migration costs (the time and energy required to move data between devices) directly into the RL reward function to better support live, millisecond-sensitive deployments in real-world hardware clusters.

Summary updated

BibTeX
@inproceedings{hu2023giph,
  author = {Yi Hu and Chaoran Zhang and Edward Andert and Harshul Singh and Aviral Shrivastava and James Laudon and Yanqi Zhou and Bob Iannucci and Carlee Joe-Wong},
  title = {{GiPH: Generalizable Placement Learning for Adaptive Heterogeneous Computing}},
  booktitle = {MLSys},
  year = {2023},
  doi = {10.48550/arxiv.2305.14562},
}
Figure