Manuscript Offprint

arXiv:2610.26178

GeoTrain: Energy-Aware Automatic Parallelism for Foundation Model Training on Heterogeneous Geo-Distributed Resources

Bui-Khanh Hoang, TianZhang He, Mohammad Goudarzi

Abstract

Training foundation models at the frontier typically requires large-scale dedicated and centralized clusters with fast interconnects - infrastructure that is prohibitively expensive and generally accessible only to well-resourced organizations. Decentralized training over pooled, geographically distributed GPUs offers an alternative, but introduces substantial heterogeneity in compute, memory, power, and network performance. Existing distributed training systems are primarily designed for clusters with fast, low-latency interconnects and typically use all available GPUs when configuring parallel training. In geo-distributed environments, however, slower devices and weak network links can become bottlenecks, while optimizing solely for throughput overlooks significant energy cost. Efficiently selecting and configuring a subset of heterogeneous GPUs therefore requires jointly reasoning about resource characteristics, model partitioning, and pipeline placement.

We present GEOTRAIN, an automatic parallelism system that jointly optimizes training performance and energy consumption for heterogeneous geo-distributed GPU environments. GEOTRAIN simultaneously selects GPUs, partitions model layers, and determines pipeline configurations while accounting for heterogeneous compute, memory, power, and network constraints. To efficiently explore this large combinatorial search space, GEOTRAIN employs an optimized memetic algorithm with specialized genetic operators and local search. Experiments with decoder-only Transformer models on real-world and simulated heterogeneous topologies demonstrate that GEOTRAIN reduces iteration time and energy consumption by up to 61.4% and 11.7%, respectively, over the existing state-of-the-art approaches. It also finds the exact optimum on verifiable instances and scales beyond exact methods as the number of GPUs increases, while exposing favorable energy-time trade-offs, including cases where its time-optimal distributed training plan is both faster and more energy-efficient than the baselines.

CCS Concepts: • Computer systems organization → Distributed architectures; Distributed architectures; •

Computing methodologies → Parallel computing methodologies; Machine learning; Parallel computing methodologies; Machine learning.

Keywords: decentralized training, distributed training, foundation models, pipeline parallelism, model partitioning, heterogeneous systems, communication-aware optimization, memetic algorithm

1 Introduction

Training foundation models, such as GPT-3 and LLaMA, requires distributing computation across hundreds or thousands of GPUs [2, 29]. As models continue to scale, organisations are increasingly pooling all available GPU resources, including heterogeneous hardware spanning multiple generations and geographically distributed clusters linked by wide-area networks with diverse bandwidth and latency characteristics. Making efficient use of such infrastructure is essential to reducing both training time and the considerable energy expenditure of large-scale model training.

Systems such as Alpa [35] and AMP [9] have advanced the automation of parallelism planning for distributed training. Also, a separate line of work, DTFM [34], SWARM [22], Sailor [25], Metis [30], and CocktailSGD [32], has begun to address training over heterogeneous or geo-distributed resources directly. However, across these efforts, three major assumptions persist that limit their applicability to the heterogeneous and geo-distributed paradigm:

Full-GPUs participation. Existing systems assume full-cluster participation, where all available GPUs are always used for training. This reduces the problem to optimizing configurations over a fixed set of devices, avoiding the combinatorial complexity of GPU subset selection. However, this assumption becomes inefficient in heterogeneous, geodistributed settings: slow GPUs and weak interconnects can dominate iteration time and negate the benefit of additional parallelism. As shown in Fig. 2a, selecting an optimal subset of k=4k = 4 GPUs from 7 heterogeneous devices reduces iteration time by 75% compared to using the full cluster. This demonstrates that carefully chosen subsets can outperform full-cluster execution in heterogeneous environments.

Uniform stage partitioning. Prior systems partition model layers uniformly across pipeline stages, implicitly assuming homogeneous compute capacity across GPUs. This assumption breaks under heterogeneity, where uniform assignment

∗^{*}Corresponding author.

Emails: khanh.hoang@monash.edu, tianzhang.he@monash.edu, mohammad.goudarzi@monash.edu.

Figure

Figure 1. A high-level comparison between GEOTRAIN and a standard uniform planer using all available GPUs.

Figure

(a) Selecting an optimal GPU subset (k=4) yields lower iteration time than using all GPUs.

Figure

(b) Non-uniform layer assignment eliminates the bottleneck stage under uniform one.

Figure 2. Motivating observations on a real-world heterogeneous geo-distributed configuration with 7 GPUs

creates straggler stages on weaker or bandwidth-constrained devices that stall the entire pipeline. Capacity-aware non-uniform partitioning that matches layer allocation to GPU compute and memory constraints yields a more balanced pipeline and significantly lower iteration time (Fig. 2b).

Energy-unaware optimization. Existing automatic parallelism systems optimize solely for training throughput or iteration time, ignoring energy consumption. However, as the environmental and financial costs of large-scale training continue to rise [20, 26], energy efficiency has become a critical objective. Importantly, equivalent training speeds can exhibit substantially different energy profiles across pipeline configurations due to variations in GPU selection, layer placement, and micro-batch sizing, especially in heterogeneous environments with diverse power characteristics.

In this paper, we present GEOTRAIN, a system that automatically discovers efficient pipeline parallelism plans for training on heterogeneous, geo-distributed GPUs. To address limitations of prior work, it employs an optimized Memetic Algorithm (MA) with domain-specific operators to co-optimize three coupled decisions: which GPUs to use, how to partition model layers, and where to place each partition.

GEOTRAIN encodes a plan as an integer chromosome, capturing all three decisions in one encoding. A key design is its fitness function: an analytical model that scores each candidate by both iteration time and energy under the heterogeneous, geo-distributed setting, so the entire search is driven toward configurations that jointly minimize iteration time and energy. The MA evolves chromosomes using specialized genetic operators (i.e., crossover, mutation, and local search). The crossover cuts at training stage boundaries so offspring inherit whole stages from each parent, greedily keeps the fittest cut, and occasionally allows a random mid-stage cut for diversity. The mutations employ different strategies at varying granularity to refine solutions gradually, escape local optima, and broaden exploration. A local search then finds the training pipeline's bottleneck and rebalances the workload to relieve it. Figure 1 illustrates the resulting scheduling effect by comparing GEOTRAIN with standard uniform planning using all available GPUs. Together, these components let GEOTRAIN explore the plan space efficiently and converge quickly toward balanced, low-cost pipelines.

In designing GEOTRAIN, we make following contributions:

• Heterogeneity-aware Pipeline Planning Unlike prior systems that typically assume all available GPUs must be used, GEOTRAIN jointly selects a subset of GPUs and determines a non-uniform layer partition across pipeline stages. It accounts for heterogeneous compute capacities and asymmetric network links to avoid slow devices and poorly connected links, while balancing per-stage cost to eliminate stragglers. This enables GEOTRAIN to construct balanced pipelines that achieve lower iteration time than full-cluster or uniform partitioning.

• Time-Energy-aware optimization. We formulate parallelism planning as an optimization that jointly minimizes iteration time and energy consumption. An analytical energy cost model captures GPU-specific power profiles under the 1F1B pipeline schedule [14, 15], while a user-tunable weighting parameter allows operators to navigate the time-energy trade-off. By varying the parameter, GEOTRAIN can produce energy-saving, balanced, or time-optimal training configurations, enabling operators to select operating points along the Pareto frontier according to their performance and energy requirements.

GEOTRAIN : Energy-Aware Automatic Parallelism for Foundation Model Training on Heterogeneous Geo-Distributed Resources

  • Domain-specific Memetic Algorithm. We design a domain-specific Memetic Algorithm tailored to the combinatorial planning space of heterogeneous, geo-distributed pipeline training. It combines stage-aware crossover, multi-granularity mutation, and bottleneck-driven local search to efficiently explore candidate configurations and refine promising solutions.

  • Extensive real-world experiments. We evaluate GEO-TRAIN using both real-world experiments and simulation on heterogeneous geo-distributed GPU configurations with Transformer models examining scalability, optimality, network sensitivity, and energy-time trade-offs.

The remainder of this paper is organized as follows. We analyze distributed model training (Sect. 2) and related work (Sect. 3). Section 4 formalizes the problem. Section 5 presents GEOTRAIN design. Section 6 analyzes the system and the results. Section 7 concludes and discusses future work.

References (15)