Skip to main content

Huawei's Pangu Optimization Reveals the Real Competitive Frontier in AI

At AICon Shenzhen, Huawei's engineers detail how they cut AllToAll and KV cache bottlenecks on Ascend hardware—and why portability is a trade-off. A window into the new competition.

Beyond Model Quality: Where the AI Race Is Heading

For a while, the AI conversation was all about model size and benchmark scores. But that's shifting. The next phase of competition is about making AI actually work in production—building reliable agents, solid engineering stacks, and systems that don't fall apart under real-world load. That's the backdrop for AICon Shenzhen, held August 21-22, where engineers from the trenches shared what they're actually doing to move AI from capability to system.

One talk in particular stood out: Li Baichao from Huawei's 2012 Lab, who walked through the communication optimizations behind Pangu models on Ascend hardware. His session, titled "Pangu Training and Inference Communication Optimization: Performance Exploration on Ascend," was a deep dive into the kind of engineering that's becoming the real differentiator.

The Hidden Bottleneck: Communication Overhead

Everyone talks about FLOPs and parameter counts. But in practice, communication often eats the schedule. In Mixture-of-Experts (MoE) models, the AllToAll communication pattern alone can take up 30% or more of end-to-end time. That's not a footnote; that's a fundamental constraint on how fast you can train or serve.

And with the rise of million-token context windows, a new bottleneck has emerged: the Host-to-Device (H2D) transfer of KV cache. This delay is now a primary driver of time-to-first-token (TTFT) in long-context inference. If you're not thinking about communication, you're not thinking about performance.

Huawei's Approach: Deep Hardware Affinity

Huawei's strategy is to go deep on their own hardware. The idea is simple: if you control the silicon, you can optimize for it in ways that generic software can't. For the MoE AllToAll problem, they adapted to the Ascend 950's network topology and used the dedicated CCU communication accelerator. The result: a 10% performance boost on the EP communication domain AllToAll for Pangu models.

For the long-context KV cache issue, they built Omni Cache, a software layer that makes H2D and D2H transfers more efficient. That delivered a 10% improvement in TTFT. These aren't incremental tweaks; they're the kind of gains that translate directly to user experience and cost per query.

The Trade-Off: Performance vs. Portability

Here's the catch. These optimizations are deeply tied to Ascend 950. They sacrifice universality for performance. The same techniques that work on Ascend 950 don't necessarily transfer to other platforms—like the Ascend 910A2/A3 or NVIDIA H20. In fact, they can even hurt performance there.

This is a critical point for anyone making infrastructure decisions. If you're betting on a specific vendor's hardware, you can get significant wins by customizing your stack. But you're also locking yourself in. The competitive edge is real, but it comes with a cost.

Three Kinds of Affinity: Topology, Compute, and Model

Li Baichao broke down their optimization strategy into three categories:

  • Topology affinity: They found that DeepEP—a popular open-source solution—didn't work well on Ascend 910A3. So they adapted the communication patterns to match the Ascend 950's network layout.
  • Compute affinity: The Ascend 950 has a dedicated communication acceleration engine called CCU. They figured out how to use it to its full potential, rather than leaving it idle.
  • Model affinity: They wrote custom communication operators to implement new collective communication semantics that fit Pangu's specific needs.

This layered approach—hardware, software, and model-specific tweaks—is a blueprint for anyone trying to squeeze performance out of a bespoke AI infrastructure.

Hardware and Software: A Tag Team for H2D

For the H2D problem, they went after it from both ends. On the hardware side, the Ascend 950 provides a dedicated H2D path for each NPU. That's a physical fix for a bandwidth bottleneck. On the software side, Omni Cache handles KV cache offloading efficiently, so you're not wasting cycles moving data back and forth.

These two prongs together cut down the time-to-first-token, which is a metric users actually feel. If you've ever waited for a long-context AI to start responding, you know how much this matters.

What This Means for Competitive Analysis

From a competitive standpoint, this talk is a goldmine. Huawei is clearly investing in making their Ascend platform a serious contender for AI workloads. The optimizations they're doing are not just about Pangu; they're about building an ecosystem where their hardware is the best choice for training and inference at scale.

But the portability issue is a warning sign. If you're a company evaluating AI infrastructure, you need to think about lock-in. The performance gains on Ascend 950 are impressive, but they may not generalize. That's a strategic consideration, not just a technical one.

For competitors like NVIDIA, this is a signal. Huawei is not just catching up; they're finding ways to differentiate. The CCU accelerator and the dedicated H2D paths are hardware features designed to solve specific pain points. That's a direct challenge to the status quo.

Practical Takeaways for Engineers and Strategists

If you're building or deploying large models, here's what to take away:

  • Communication is a first-class citizen. Don't treat it as an afterthought.
  • Hardware affinity can yield big wins, but consider the portability cost.
  • Look for opportunities to offload or accelerate data movement, not just compute.
  • Measure TTFT and AllToAll time; they're proxies for user experience and system efficiency.

The session also hinted at future work: fusing operators and using multi-stream parallelism to hide communication entirely. That's the ultimate goal—make communication invisible so it doesn't become the bottleneck in end-to-end latency.

The Bigger Picture: AI Infrastructure as a Competitive Weapon

This talk is a reminder that the AI race isn't just about algorithms. It's about systems. The companies that can build efficient, reliable infrastructure will have a massive advantage. Huawei's focus on Ascend is a bet that hardware-software co-design will pay off. And so far, the numbers suggest it's working.

For anyone doing competitive analysis, this is the kind of detail that matters. It's not just about who has the best model; it's about who can deploy it fastest, serve it cheapest, and scale it most reliably. Huawei is making a play on all three fronts.

As the AI industry matures, expect to see more of these deep-dive technical talks that reveal where the real battles are being fought. It's not on the leaderboard—it's in the data center.

Share this article:

Comments (0)

No comments yet. Be the first to comment!