Compass: Dissecting Communication and Computation Operators for Efficient LLM Training

Guangyu Xiang, Lin Zhang, Haoxuan Yu, Xinglin Pan, Shaohuai Shi, Xiaowen ChuarXiv 2026

TL;DR

Compass is an intelligent optimization framework that accelerates Large Language Model (LLM) training by efficiently overlapping communication and computation. By introducing topology-aware operator fusion and a mathematically rigorous predictor for operator decomposition, Compass dynamically selects the best execution strategy for any hardware configuration, delivering up to a 1.42x end-to-end speedup over Megatron-LM.

What Problem Does This Paper Address?

In distributed LLM training, Tensor Parallelism (TP) is essential for splitting massive model layers across multiple GPUs. However, TP demands frequent, fine-grained collective communications (like AllGather and ReduceScatter) to synchronize results between layers. This creates a massive bottleneck, often consuming 40% to 75% of total training time.

To hide this latency, engineers typically try to overlap communication with computation using two main strategies:

  1. Intra-Operator Fusion (IntraFusion): Packing communication and matrix multiplication (GEMM) into a single, custom GPU kernel.
  2. Inter-Operator Decomposition (InterDecom): Slicing tensors into $d$ smaller chunks and pipelining them using standard libraries.
Fig. 2: Execution timeline of the AllGather+GEMM pattern for three strategies: (a) Sequential execution with no overlap, (b) IntraFusion, and (c) InterDecom.

Unfortunately, current implementations are flawed. State-of-the-art fusion frameworks (like ByteDance's Flux) assume a perfectly uniform, fully connected NVLink topology. When run on common, asymmetric hybrid systems (mix of NVLink and PCIe), their communication patterns cause severe interconnect congestion. Meanwhile, decomposition approaches lack analytical models to determine the optimal chunking factor ($d$), frequently leading to resource contention and suboptimal performance.

Methods

The authors introduce Compass, a unified framework built on three core pillars:

  • Topology-Aware IntraFusion (TA-IntraFusion): Instead of using a rigid AlltoAll communication pattern that chokes hybrid networks, Compass implements custom single-ring and double-ring communication algorithms. These algorithms map directly to the physical hardware layout (PCIe, NVLink, and cross-NUMA links), maximizing available bandwidth.
  • Optimal Decomposition Predictor (ODP-InterDecom): Compass replaces empirical tuning with an overhead-aware mathematical model. It accurately predicts the performance of different decomposition degrees ($d$) by explicitly accounting for real-world resource contention on the GPU.
  • Compass Strategy Selector: Because neither fusion nor decomposition is universally superior, Compass uses a lightweight, $O(1)$ runtime selection algorithm. It evaluates the workload and hardware topology online, dynamically choosing the fastest strategy.
Fig. 5: Single Ring (a) and Double Ring (b) communication algorithms on hybrid interconnects. (a) An 8-GPU single ring with cross-NUMA. (b) A 4-GPU double ring with concurrent forward (blue) and backward (red) rings.

Datasets

Rather than traditional machine learning datasets, the framework was evaluated using a comprehensive benchmark suite of 288 distinct test cases. These configurations varied key architectural parameters typical of modern LLMs:

  • Hidden Dimensions ($K$): 4,096 to 16,384
  • Intermediate Dimensions ($N$): 2,048 to 16,384
  • Sequence Lengths ($M$): 2,048 to 32,768
  • GPU Cluster Scales: 4 and 8 NVIDIA RTX A6000 GPUs

End-to-end validation was performed on representative GPT (400M and 1B parameters) and Llama3 (1B and 8B parameters) models.

Key Insights and Ideas

  • No Single Strategy Wins Everywhere: Across 144 diverse workloads, IntraFusion was superior in 54% of cases, while InterDecom won in 46%. This highlights the futility of static, one-size-fits-all optimization frameworks.
  • Topology Blindness is Costly: State-of-the-art fusion methods can actually perform worse than naive sequential execution on hybrid topologies. Flux achieved as little as 25% of standard NCCL bandwidth on a 4-GPU setup because it forced simultaneous cross-node traffic over slow links.
  • More Splitting $\neq$ Better Pipelining: In operator decomposition, increasing the chunk size ($d$) theoretically improves overlap but practically triggers severe GPU resource contention. Compass proves that an overhead-aware model can reduce prediction error by over 4× compared to traditional overhead-agnostic models.

Key Results

  • Operator-Level Speedups: TA-IntraFusion achieved 1.5x to 2.5x speedups over sequential baselines for AllGather+GEMM patterns, outperforming topology-agnostic alternatives.
  • Decomposition Gains: ODP-InterDecom improved performance by up to 1.3x compared to standard heuristics (like the common default of $d=4$).
  • Decision Accuracy: The Compass Strategy Selector achieved an overall accuracy of 92.67% in identifying the absolute best execution strategy across all test cases.
  • End-to-End Performance: In real-world training simulations, Compass delivered up to a 1.42x speedup on GPT models and a 1.17x speedup on Llama3 models compared to the highly optimized Megatron-LM baseline.

Limitations and Future Work

The authors noted that the optimal strategy patterns differ noticeably between AllGather (forward pass) and ReduceScatter (backward pass) workloads. While Compass successfully navigates these differences dynamically, a deeper theoretical understanding of why these patterns diverge remains an open question. The authors plan to investigate this asymmetry in future work to further refine their performance models.

Summary updated

BibTeX
@misc{xiang2026compass,
  author = {Guangyu Xiang and Lin Zhang and Haoxuan Yu and Xinglin Pan and Shaohuai Shi and Xiaowen Chu},
  title = {{Compass: Dissecting Communication and Computation Operators for Efficient LLM Training}},
  year = {2026},
  eprint = {2609.10549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.10549},
}
Figure