CHARM+: Cross-Hardware Attention with Re-Merge Multistream Mechanism
Xinhang Zhang, boning zhang, Chengchun Liu, Chunpu Li, Lei Sun, Weifeng Zhang, Limin Xiao
NeurIPS page · Open on the map
Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: cross-hardware attention, communication overlap, sequence parallelism, GPU utilization, large language models
Areas: Model Architectures & Sequence Modeling › Language Model Architectures › Sparse Attention
Summary
CHARM+ introduces a cross-hardware attention mechanism that reorganizes sequential communications into multiple hierarchical levels and decouples cross-hardware from intra-hardware communication, achieving significant speedups over Ring-Attention on NUMA and NVLink systems.
Explained to a 5-year-old
When a computer reads a very long story, it needs to pay attention to every word. It splits the work across many computers, but the computers have to talk to each other a lot. This talking slows everything down because they have to wait for each other. CHARM+ helps by organizing the talking into different levels and separating the talks between different groups of computers. This lets the computers work faster together, so the story is processed more quickly.
Explained to a 5-year-old, longer
When a computer reads a long text, it looks at each word to understand it. It can split the work so many computers each handle part of the text. These computers need to talk to each other to share what they learned. The talking takes time, and if they all have to wait for each other, the whole process slows down. Some computers are on the same piece of hardware, while others are on different machines connected by a network. The network connections can be slower or faster, which makes the talking uneven. To fix this, the new idea organizes the talking into several levels, like steps. At each level, computers can work in parallel, doing their part without waiting for the whole group. It also separates the talks that happen within the same hardware from those that happen between different hardware. This way, the slower connections do not block the faster ones. As a result, the computers can keep working and finish the job much quicker. The overall process becomes more efficient, allowing longer texts to be processed faster.
For a technical reader
CHARM+ is a new attention optimization for large language models that reduces communication overhead. It splits the sequential communication of attention into multiple hierarchical levels, allowing parallel computation within each level. By separating cross-hardware communication (between different machines) from intra-hardware communication (within a single machine), it eliminates synchronization delays caused by bandwidth imbalances. Evaluations on dual-NUMA PCIe and dual-node NVLink systems show speedups of 1.3-3.9× over existing Ring-Attention implementations. This makes scaling attention more efficient on modern multi-GPU clusters.
Problem
Distributed attention methods such as Ring-Attention suffer from communication dependencies that limit computation-communication overlap and reduce GPU utilization, especially on cross-hardware architectures where imbalanced bandwidth causes synchronization overhead.
Method
The approach reorganizes sequential communications into multiple hierarchical levels to enable intra-level parallelism and overlap computation with communication, and it separates cross-hardware communication from intra-hardware communication to eliminate bandwidth-imbalance synchronization overhead.
Results
The approach achieves average speedups of 1.3× and 1.7× on a dual-NUMA PCIe architecture and 2.8× and 3.9× on a dual-node NVLink architecture for forward and backward passes compared to Ring-Attention.
Contributions
It introduces a hierarchical communication reorganization and decoupling of cross-hardware and intra-hardware communication to improve computation-communication overlap, resulting in substantial performance gains on heterogeneous hardware.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction