Bine Trees: Enhancing Collective Operations by Optimizing Communication Locality

Daniele De Sensi, Saverio Pasqualoni, Lorenzo Piarulli, Tommaso Bonato, Seydou Ba, Matteo Turisini, Jens Domke, Torsten Hoefler · DOI

Abstract

Communication locality plays a key role in the performance of collective operations on large HPC systems, especially on oversubscribed networks where groups of nodes are fully connected internally but sparsely linked through global connections. We present Bine (binomial negabinary) trees, a family of collective algorithms that improve communication locality. Bine trees maintain the generality of binomial trees and butterflies while cutting global-link traffic by up to 33%. We implement eight Bine-based collectives and evaluate them on four large-scale supercomputers with Dragonfly, Dragonfly+, oversubscribed fat-tree, and torus topologies, achieving up to 5x speedups and consistent reductions in global-link traffic across different vector sizes and node counts.

Introduction

Modern High-Performance Computing (HPC) systems rely on collective communication operations, such as allreduce, broadcast, and allgather, to coordinate thousands of processors. As these systems scale, the network often becomes a bottleneck. Most contemporary supercomputers utilize oversubscribed network topologies (e.g., Dragonfly, Fat-Tree) where nodes are clustered into tightly connected groups, but the global links connecting these groups have limited bandwidth.

Standard collective algorithms, like the classic binomial tree, are typically "topology-blind." They often pair processors that are physically distant, leading to excessive traffic across congested global links. While topology-aware alternatives exist, they frequently require specific hardware knowledge and lack flexibility. This paper introduces Bine (binomial negabinary) trees, a topology-agnostic approach that naturally prioritizes local communication.

Methodology: The Negabinary Advantage

The fundamental innovation of Bine trees lies in the use of negabinary (base -2) arithmetic to represent processor ranks. In standard binary (base 2), the distance between communicating partners in a tree structure often spans the entire network. By expressing ranks as sums of powers of $-2$, Bine trees minimize the "modular distance" between communicating nodes.

For instance, the rank 2 in negabinary is represented as $110_{-2}$ (because $1 \cdot (-2)^2 + 1 \cdot (-2)^1 + 0 \cdot (-2)^0 = 4 - 2 + 0 = 2$). This mathematical shift ensures that at each step of the collective operation, a processor is statistically more likely to communicate with a nearby neighbor rather than a node on the opposite side of the network.

Negabinary representation and Bine tree construction showing reduced modular distance between roots.

The authors developed eight MPI collectives using two primary Bine variants: distance-doubling, where communication distance increases in each step, and distance-halving, where it decreases.

Communication steps in distance-doubling and distance-halving tree variants.

To handle non-contiguous data blocks that can arise from negabinary scheduling, a "Permute" technique was introduced to reorder data at the start or end of an operation, maintaining high-speed contiguous network transfers.

Experimental Evaluation

The Bine tree algorithms were evaluated using real-world job allocation traces from the Leonardo and LUMI supercomputers. Performance was benchmarked on four of the world's top supercomputers, representing diverse network topologies:

  • LUMI: Dragonfly topology.
  • Leonardo: Dragonfly+ topology.
  • MareNostrum 5: 2:1 oversubscribed Fat-Tree.
  • Fugaku: 6D Torus.

Results and Key Insights

Theoretical analysis and empirical testing confirmed that Bine trees reduce average global-link traffic by 33% compared to standard binomial trees. This reduction translates directly into significant performance gains:

  • Fugaku: Achieved up to 5× speedup for reduce-scatter operations.
  • LUMI & MareNostrum 5: Improved performance by up to 80%.
  • Leonardo: Improved performance by up to 50%.

A key insight is that Bine trees are "topology-agnostic." By simply sorting nodes by hostname, they achieve locality benefits without requiring deep hardware-specific tuning. Furthermore, the benefits of Bine trees scale with the system size, as larger jobs are more susceptible to global link congestion.

Conclusion and Future Work

Bine trees offer a robust, drop-in replacement for standard collective algorithms in MPI libraries. While they perform best with linear rank-to-node mapping and power-of-two job sizes, their ability to consistently reduce network traffic makes them highly valuable for next-generation HPC systems. Future work includes integrating these algorithms into widely used communication libraries like NCCL and Open MPI to provide automatic performance benefits to the broader scientific community.

Summary updated

BibTeX
@inproceedings{sensi2025bine,
  author = {Daniele De Sensi and Saverio Pasqualoni and Lorenzo Piarulli and Tommaso Bonato and Seydou Ba and Matteo Turisini and Jens Domke and Torsten Hoefler},
  title = {{Bine Trees: Enhancing Collective Operations by Optimizing Communication Locality}},
  booktitle = {SC},
  year = {2025},
  doi = {10.1145/3712285.3759835},
}
Figure