How Domestic AI Chips Enable Low-Cost LLM Inference: A Trace-Level Breakdown
A recent deep-dive report from a semiconductor research firm goes beyond price-per-million-token comparisons, using trace-level analysis to dissect the full inference pipeline of a top open-source LLM running on domestic high-end AI chips. This article explains what trace-level analysis reveals, why hardware-software co-design matters, how Prefill/Decode-separated chip products map to inference cost structures, and why the recent price reductions are the result of end-to-end systems engineering rather than a single breakthrough.
Why Trace-Level Breakdowns Matter
Most discussions about LLM inference costs stay at the surface level of “price per million tokens.” A recent in-depth report from a semiconductor research firm takes a much more rigorous approach: a trace-level breakdown of the complete inference pipeline of a top open-source LLM running on domestic high-end AI chips.
Trace analysis uses specialized hardware and software tools to record a chip’s internal execution traces—instruction timing, kernel execution durations, and utilization of each hardware unit. Compared with macro-level benchmark scores, trace-level breakdowns answer more fundamental questions:
- Where does the time go? What proportion is spent on compute, memory access, and communication;
- Is the hardware kept busy? Compute unit utilization, and on-chip and inter-chip bandwidth occupancy;
- Is the software stack efficient? Degree of operator fusion, and whether the scheduler introduces idling and pipeline bubbles.
The value of this method is that it moves the discussion from the qualitative question of “can domestic chips run large models?” to the quantitative question of “at what cost and what concurrency can they run?”
From Passive Adaptation to Co-Design: The Report’s Most Important Finding
The report’s most significant conclusion is not a benchmark number but an architectural observation: some of the top LLM’s architectural decisions were co-refined with the inference characteristics of domestic AI chips from an early stage.
This deserves unpacking. Traditionally, the model team completes architecture design and training first, and the chip side then “adapts after the fact”—building operator libraries, tuning the compiler, and integrating with frameworks. This approach has a low ceiling: if the model contains compute patterns the chip handles poorly (e.g., sparse memory access or irregular communication patterns), backend optimization can only mitigate, not fix, the problem.
Co-design inverts the process:
- Joint construction of the inference path: the model’s operator decomposition and memory layout reference the hardware’s execution unit characteristics early on;
- Aligned hardware execution: the chip’s ratio of Cube units, vector units, and scalar units, along with on-chip cache organization, is balanced around the real operator distribution of inference workloads;
- Joint software stack refinement: the compiler’s operator fusion strategy and graph optimization passes converge with the model structure—such as how sparse attention and compressed attention are implemented.
Co-design delivers order-of-magnitude performance gains because it eliminates the gap between “the hardware the model assumes” and “the hardware that actually exists.”
Prefill/Decode Separation: Fine-Grained Chip Product Segmentation for Inference Cost
The report notes that the chip series ships in two versions, one optimized for Prefill and one for Decode. This product split is itself worth analyzing, because it precisely maps to the core cost structure differences in LLM inference.
The Prefill phase is characterized by long inputs, high parallelism, and compute-intensive workloads. Its bottleneck is primarily compute (FLOPs), and tokens within a batch can be processed in parallel in one pass—well suited to high compute density and large matrix compute units.
The Decode phase is the opposite: token-by-token autoregressive generation, memory-bound, with low parallelism. Its bottleneck is bandwidth—generating each token requires reading all model weights and the KV Cache, while compute accounts for only a small fraction.
Using a single chip type for both phases inevitably wastes resources: bandwidth sits idle during Prefill, and compute sits idle during Decode. Splitting the product line by workload characteristics and optimizing each variant’s compute-to-bandwidth ratio is the first hardware-level step toward cheaper inference. This aligns exactly with the industry’s evolution toward disaggregated inference.
New Architectures Impose Reverse Requirements on Chips
Notably, the report mentions a major innovation in the LLM’s attention mechanism—abandoning the traditional Multi-head Latent Attention (MLA) route in favor of a combination of compressed sparse attention and highly compressed attention. This places new demands on the chip side:
- Sparse compute support: in sparse mode, the dynamic variation in the number of active tokens requires the scheduler to support dynamic batching and load balancing, or compute units within a cluster will show significant idle-busy imbalance;
- All-to-All communication in very large MoE models: very large models commonly use Mixture-of-Experts structures where each token activates only a small subset of experts, but experts are spread across chips, making All-to-All communication a core bottleneck. Inter-chip interconnect bandwidth, topology, and communication kernel optimization directly determine MoE inference throughput;
- Low-precision compute: low-precision weight quantization and activation precision management require the chip to natively support multiple low-precision formats in its compute units while maintaining numerical stability.
These requirements explain why the model team needs a “supernode”-scale chip cluster: no matter how strong a single card is, it cannot independently solve the communication-intensive problem of MoE inference.
The Essence of Price Cuts: End-to-End Systems Cost Engineering
Back to the question the public cares about most: why can LLM inference prices drop so dramatically?
The report’s answer is that the price cuts are not a unilateral victory of model architecture, but the result of a full technology chain working in concert. The chain can be broken down into five layers:
┌─────────────────────────────────────────┐│ Model layer: sparse/compressed attention,││ MoE sparse activation │├─────────────────────────────────────────┤│ Chip layer: Prefill/Decode variants, ││ high-bandwidth interconnect │├─────────────────────────────────────────┤│ Compiler layer: operator fusion, ││ instruction scheduling │├─────────────────────────────────────────┤│ Inference framework layer: dynamic ││ batching, KV Cache management │├─────────────────────────────────────────┤│ Cloud service layer: resource ││ orchestration, elastic scaling, ││ multi-tenant sharing │└─────────────────────────────────────────┘
Each layer compresses the marginal cost per token:
- The model layer reduces the theoretical compute and memory access per inference;
- The chip layer increases effective throughput per unit of power;
- The compiler layer reduces memory round-trips between kernels and scheduling gaps;
- The framework layer improves hardware reuse through batching;
- The cloud service layer amortizes fixed costs through resource pooling.
A weakness at any layer becomes a bottleneck for the whole system. This means evaluating the real value of a domestic AI chip requires looking at its end-to-end performance across this chain—not just peak compute specs.
Takeaways for Developers
For technical teams selecting or deploying LLM inference services, the report offers three actionable lessons:
- Profile with traces before choosing hardware. Use Perf-style tools to analyze your workload’s operator distribution, compute-to-memory-access ratio, and communication share; determine whether it is compute-bound or memory-bound, then match the hardware configuration accordingly.
- Focus on the depth of hardware-software co-optimization, not paper specs. Compiler maturity, operator library coverage, and the polish of framework integration often determine real throughput far more than peak compute numbers.
- Consider a disaggregated inference architecture. Deploying Prefill and Decode separately, with independent scaling, can significantly improve overall resource utilization.
From a longer-term perspective, this report marks a narrative shift: the discussion of domestic AI chips has evolved from “can they replace incumbents?” to “can they support low-cost, high-concurrency inference for top-tier models?” And once a model side completes co-design against a specific hardware base and locks in that dependency, the ecosystem binding tends to be long-lasting and hard to reverse. For the entire industry chain, this is a more important signal than any single price cut.
