What Extreme Operator Optimization Means for Domestic AI Compute
This article explains what it means when core operators on domestic AI accelerators approach theoretical peak utilization, and why this shift matters more than raw hardware specifications. It covers four key operator families—dense matrix multiplication, low-precision compute, sparse attention, and expert-parallel communication—and the distinct bottlenecks each faces. It also argues that full-stack coordination, not isolated operator tuning, is the real barrier, and offers practical guidance for engineering teams on profiling, precision strategy, communication optimization, and building reproducible performance baselines. Readers will learn how to interpret peak utilization data rationally and validate results with real business metrics rather than headline numbers.
1. Behind the Numbers: From “It Runs” to “It Runs Full”
Over the past few years, discussions about domestic AI compute have mostly focused on whether models could run at all. Once a chip’s software stack matures, the evaluation bar naturally rises: on the same silicon, if one team extracts 80% of theoretical compute and another only 30%, the gap is not in the hardware spec sheet but in software stack maturity.
A recent set of industry figures is representative: on a certain domestic AI accelerator, several core operators were pushed to near the theoretical ceiling in peak utilization under specific test conditions. The real significance is not that “a chip suddenly got stronger,” but that “the capability this chip was wasting is now being systematically recovered.”
Understanding this requires a basic frame of reference: a chip’s rated compute is the ceiling, operator implementation determines how close you get to that ceiling, and end-to-end performance is what the business actually feels.
2. Four Core Operator Families: Where Each One Gets Stuck
2.1 Dense Matrix Multiplication: Utilization Is Capped by Data Movement
Matrix multiplication is the absolute hotspot in both training and inference. It is mathematically regular and theoretically the easiest to saturate, but the engineering challenge is that on-chip cache capacity is limited, so large matrices must be tiled to maximize on-chip data reuse. Tiles that are too small leave compute units starved; tiles that are too large cause frequent data swapping, and performance gets dragged down by memory bandwidth.
So when a class of hardware reaches near-peak general matrix compute utilization, it means the tiling strategy, data layout, instruction pipeline, and synchronization mechanisms have been refined considerably. This is the “health check” indicator of overall software stack maturity.
Illustrative tiling pseudocode to clarify the core tuning variables:
# Illustrates tiling and reuse only; not a specific platform APIfor m_blk in range(0, M, BM):for n_blk in range(0, N, BN):acc = zeros((BM, BN), dtype=accum_dtype)for k_blk in range(0, K, BK):a = load(A[m_blk:m_blk+BM, k_blk:k_blk+BK]) # keep on-chip as much as possibleb = load(B[k_blk:k_blk+BK, n_blk:n_blk+BN])acc = mma(acc, a, b) # accumulate in high precisionstore(C[m_blk:m_blk+BM, n_blk:n_blk+BN], acc)
Tuning is essentially solving a constrained optimization problem among BM/BN/BK, on-chip storage capacity, bandwidth, and compute unit throughput.
2.2 Low-Precision Compute: Each Drop in Precision Raises Engineering Complexity
Lower bit widths mean higher theoretical throughput and lower bandwidth pressure, making them the main lever for reducing inference cost. But dropping bit width brings two kinds of cost: first, a narrower numerical range requires suitable scaling strategies and block quantization to suppress overflow and precision loss; second, accumulator bit width, outlier handling, and the timing of dequantization all affect final accuracy.
It is normal for low-precision operator utilization to be slightly lower than high-precision operators: the more aggressive the data format, the more extra instruction overhead is needed for numerical stability. The correct engineering stance is to apply precision by layer sensitivity, not to force one setting across the whole model.
2.3 Sparse Attention: The Two Phases Have Completely Different Bottlenecks
Long context is a rigid requirement today, and attention’s compute and memory-access characteristics differ greatly between its two phases:
- Prefill phase: matrix sizes along the sequence dimension are large and compute-intensive, so the bottleneck leans toward compute and tiling efficiency;
- Decode phase: only one position is generated per step, matrices degenerate into tall, thin shapes, and the bottleneck leans toward memory access and scheduling overhead.
This explains a common puzzle: why the same sparse attention scheme can show high utilization in prefill but noticeably lower utilization in decode. Decode-phase optimization is not about compute but about operator fusion, memory-access compression, batch aggregation, and reducing scheduling overhead. Sparsification itself also introduces irregular memory access, and the cost of handling indices and masks must be counted in the total.
2.4 Expert-Parallel Communication: The Hidden Tax of Mixture-of-Experts Models
The mixture-of-experts architecture decouples total parameter count from per-token compute, but introduces routing and cross-device dispatch problems. Utilization in the dispatch and aggregation phases is usually lower than in pure compute operators because it is affected simultaneously by network bandwidth, load-balancing quality, and the long tail of routing distribution. Over-selected hot experts cause local congestion, and overall throughput gets held back by the slowest link.
Common mitigation approaches include capacity-factor control, load-balancing auxiliary loss, overlapping communication with computation, and hierarchical aggregation by group. To judge whether such optimizations work, look at end-to-end throughput and tail latency, not the peak number of a single communication operator.
3. The Real Barrier Is Full-Stack Coordination, Not a Single Operator
Pushing a single operator to its limit is only the entry ticket. To carry the gains through to the business side, at least four layers must work together:
- Model structure layer: attention sparsification, expert granularity, and sequence-parallel partitioning determine the shape distribution of operators;
- Operator layer: tiling, fusion, layout, and precision strategy;
- Compiler and runtime layer: graph optimization, memory reuse, pipeline orchestration, and auto-tuning;
- Distributed communication layer: parallel strategy and topology-aware communication scheduling.
A typical misconception is that “if the operator is optimized, end-to-end performance should improve proportionally.” Actual gains are compressed by Amdahl’s law: if an operator accounts for only 20% of end-to-end time, then even reducing its time to zero caps the overall improvement at 20%. So the first action in optimization is always profiling and attribution, not directly rewriting the kernel.
4. How to Interpret These Peak Numbers Rationally
- Peak utilization is a result under specific shapes and specific test conditions and cannot be extrapolated to whole-model end-to-end performance;
- End-to-end also includes data loading, preprocessing, sampling, scheduling, and framework overhead;
- Different precisions, sequence lengths, and parallel configurations cannot be compared directly;
- Single-card metrics and cluster linearity are two different problems, and at scale, communication and fault recovery are often the decisive factors.
It is advisable for teams to build their own baseline: fix the model, fix the input distribution, fix the parallel strategy, and record throughput, time-to-first-token, per-token latency, and memory usage under a unified standard, forming an internal dashboard that supports sustainable comparison, rather than making decisions based on external single-point numbers.
5. Practical Recommendations for Engineering Teams
- Start with operator-level profiling to locate the three to five operators with the highest time share;
- Roll out precision strategy in tiers, using a small evaluation set to verify whether precision regression is acceptable;
- Advance communication optimization and compute optimization in parallel to avoid the weakest-link effect;
- Bring auto-tuning into continuous integration to prevent performance regressions from framework upgrades;
- Handle resource isolation and quota management at the container platform and job scheduling layer, and build a performance regression baseline with logging services and monitoring alerts;
- Use general capabilities such as object storage and message queues to decouple the model and data sides, reducing I/O contention for compute.
6. Conclusion
Core operators approaching hardware limits signals that the focus of competition in domestic AI compute is shifting from hardware availability and basic adaptation to software stack depth and full-stack coordination efficiency. This is a key step from “able to run” toward “running efficiently,” but it neither means end-to-end performance has fully caught up nor that ecosystem gaps have been closed. For developers, the pragmatic stance is: build a reproducible measurement system, prioritize optimization by time share, and validate results with real business metrics rather than peak numbers.
