← Latest papers
🤖 AI

UBEP: Re-architecting Expert Parallelism Communication Library for Production Superpods

UBEP is a production-ready communication library that re-architects Mixture-of-Experts (MoE) All-to-All primitives for high-bandwidth superpods by overcoming serialization, synchronization, and load imbalance bottlenecks, thereby reducing All-to-All latency by up to 52.4% and inference TPOT by up to 11.1%.

Original authors: Yipeng Liu, Chang Liu, Si Shen, Jiaqi Zheng, Mingfan Li, Yuyang Yang, Guanhua Li, Yuquan Zhang, Yimeng Xu, Zhongzhe Hu, Zhiyuan Huang, Qihang Duan, Junsong Wang, Wenkai Ling, Baochuan Yang, Xianzhi Yu
Published 2026-07-08
📖 5 min read🧠 Deep dive

Original authors: Yipeng Liu, Chang Liu, Si Shen, Jiaqi Zheng, Mingfan Li, Yuyang Yang, Guanhua Li, Yuquan Zhang, Yimeng Xu, Zhongzhe Hu, Zhiyuan Huang, Qihang Duan, Junsong Wang, Wenkai Ling, Baochuan Yang, Xianzhi Yu, Han Bao, Yijie Chen, Guihai Chen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: A Super-Express Delivery System

Imagine you are running a massive, high-tech pizza factory (a Superpod) where hundreds of chefs (AI Chips) work together to make millions of pizzas (AI Model Tokens).

In this factory, there is a special rule: every pizza order doesn't go to just one chef. Instead, the order is split up, and specific toppings are sent to different "Expert" chefs who specialize in that ingredient. This is called a Mixture-of-Experts (MoE) model.

The problem? The current way these chefs talk to each other is like a slow, bureaucratic assembly line. Even though the factory has the world's fastest conveyor belts (high-speed connections), the chefs are stuck waiting for each other, checking off lists, and standing around doing nothing.

UBEP is a new management system designed to fix this. It turns the slow assembly line into a chaotic, high-speed, perfectly coordinated dance, making the factory run much faster.


The Three Big Problems (The Bottlenecks)

The authors found three main reasons why the current system is slow, even on the fastest hardware:

1. The "Stop-and-Wait" Traffic Jam (BSP Serialization)

The Old Way: Imagine a school bus where the driver won't let anyone get off until every single student has stood up and raised their hand. Even if one student is ready in 1 second, they have to wait for the slowest student who takes 10 seconds.
The Reality: In AI factories, the system uses a "Bulk Synchronous Parallel" (BSP) model. It forces all chips to stop and wait for a global "All Clear" signal before moving to the next step. Because the new super-factories are so fast, the time spent waiting for this signal is now the biggest bottleneck, not the time spent moving data.

2. The "Flag-Waving" Tax (Synchronization Overhead)

The Old Way: Imagine a relay race where, before every runner can pass the baton, they have to stop, wave a flag, wait for the next runner to wave back, and then run.
The Reality: The chips spend a huge amount of time just sending "I'm ready" signals (flags) and checking "Are you done?" messages. On these new super-fast machines, the time spent waving these digital flags is actually longer than the time spent doing the actual work.

3. The "One-Size-Fits-All" Map (Topology-Agnostic Scheduling)

The Old Way: Imagine a delivery driver who treats every house in the city as being the same distance away. They don't realize that some houses are next door (1-hop) while others are across town (2-hop). They send a package to the far-away house using the same route logic as the neighbor, causing delays.
The Reality: The new factories have a complex layout. Some chips are right next to each other (fast), while others are separated by a few switches (slower). The old software treats them all the same, sending heavy traffic to the slow paths and creating "stragglers" (slow runners) that hold up the whole team.


The UBEP Solution: How They Fixed It

The authors built UBEP (Unified-Bus Expert Parallelism) to solve these three problems with three clever tricks:

1. Breaking the Assembly Line (Kernel Decomposition)

Instead of waiting for everyone to finish Step A before starting Step B, UBEP breaks the work into tiny pieces.

  • The Analogy: Instead of one bus waiting for everyone, imagine a fleet of taxis. As soon as one passenger is ready, a taxi takes them immediately. While some chefs are still chopping onions, others are already putting cheese on the pizza.
  • The Result: The system overlaps tasks. While one group of chips is sending data, another group is already calculating where the next batch of data should go. No one stands idle.

2. Hiding the Flag (Data-as-Flag)

UBEP stops using separate "I'm ready" flags.

  • The Analogy: Instead of waving a separate flag to say "I'm done," the chef writes "I'm done" directly on the pizza box itself. The next person just looks at the box to know it's ready.
  • The Result: Because the hardware can write a whole box of data (512 bytes) in one instant, the "flag" and the "data" arrive together. This eliminates the time wasted on waving separate flags.

3. The Smart GPS (Hierarchical Token Scheduling)

UBEP uses a smart map that knows exactly how far every chip is from every other chip.

  • The Analogy: The delivery driver now has a GPS that knows which houses are "next door" and which are "across town." They assign the "next door" deliveries to the fast runners and the "across town" deliveries to the slow runners, balancing the load so everyone finishes at roughly the same time.
  • The Result: No more stragglers. The system balances the work so that the slowest path isn't overloaded, keeping the whole factory moving smoothly.

The Results: How Much Faster?

The authors tested this new system on a massive real-world factory (Huawei's CM384 superpod) with 256 AI chips.

  • Speed Boost: They reduced the time it takes to move data between chips (All-to-All latency) by up to 52.4%. That's more than cutting the wait time in half.
  • Real-World Impact: For the final AI model (like a chatbot), this made the time it takes to generate each word (Time Per Output Token) go down by 11.1%.

Summary

The paper argues that to get the most out of these new, incredibly fast AI super-factories, we can't just use old software designed for slower, simpler machines. We need to stop making the chips wait for each other, stop waving unnecessary flags, and start using smart maps to balance the work. UBEP is the new software that does exactly that.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →