Core Operator Optimization on Homegrown AI Compute: Fusion Strategies and Ecosystem Feedback

    Scaling large language models has made hardware utilization a critical cost bottleneck for both training and inference. This article examines a recent engineering effort by a leading large-model team to optimize core operators on a specific homegrown AI compute platform to near the hardware’s theoretical limit, raising MFU from 95% to 98.5%. It explains why conventional vendor operator libraries and on-site tuning have inherent limits, then describes microarchitecture-aware kernel rewrites and the fusion of non-standard, memory-bound operators during inference. It also covers the team’s open-sourcing of the optimized operators and how that can reduce adaptation and trial-and-error costs, break technical silos, and provide practical guidance for developers working on LLM inference, kernel optimization, and homegrown AI compute ecosystems.

    As large-model parameter counts continue to grow, hardware utilization has become a key bottleneck limiting both inference and training costs. Recently, a leading large-model team optimized its core operators on a specific homegrown AI compute platform to a level close to the hardware’s theoretical limit, drawing broad attention. The work reflects extreme low-level engineering and challenges conventional boundaries between software and hardware, offering a useful reference for the development of the homegrown AI compute ecosystem.

    1. Approaching the Hardware Limit: Squeezing MFU

    During LLM training and inference, MFU is a core metric for measuring system optimization. Raising it from 95% to 98.5% may look like only a few percentage points, but at a large compute base, it can mean substantial cost savings and performance improvement.

    Traditionally, application developers rely on the standard operator libraries provided by compute platform vendors. When performance bottlenecks appear, a common approach is customized tuning supported by on-site engineering teams. This model has inherent limitations. On one hand, on-site teams may not understand the structure of upper-layer business models deeply enough, making it difficult to optimize in reverse from the model design level. On the other hand, due to commercial confidentiality and barriers, such custom optimizations often cannot be contributed back to the open-source community.

    By contrast, the large-model team chose to work directly with the hardware internals and rewrote core computation logic for the hardware’s microarchitecture. This “opening the black box” approach aligns software operators with hardware execution units to an unusual degree. It requires a deep understanding of the memory-access and compute characteristics of large models, as well as expertise in the low-level instruction set and memory hierarchy. This is the fundamental reason MFU can approach the hardware limit.

    2. Non-Standard Operator Fusion: The Overlooked “Low-Hanging Fruit”

    In model inference deployment, GEMM and attention account for most of the computation, and the industry has optimized them very deeply. However, the marginal return from squeezing already well-optimized standard operators is declining quickly.

    Recent engineering practice shows that in addition to these visible compute-intensive operations, models also contain many seemingly minor memory-bound operations. By designing non-standard fused operators and expanding the scope of fusion, teams can often achieve unexpectedly large gains.

    2.1 Memory Bottlenecks and the Principle of Operator Fusion

    During LLM inference, especially in the decode stage, computation is often limited by memory bandwidth. Under traditional single-operator sequential execution, data must be moved frequently between high-bandwidth memory (HBM) on the GPU or accelerator and the compute units.

    1. # Traditional separate execution (pseudocode)
    2. def forward_traditional(x, w, bias):
    3. h = matmul(x, w) # Core matrix multiplication, produces intermediate result h
    4. h = add_bias(h, bias) # Add bias, reads and writes h again
    5. h = gelu(h) # Activation function, reads and writes h again
    6. return h
    7. # Fused operator execution (pseudocode)
    8. def forward_fused(x, w, bias):
    9. # Fuse matmul, add_bias, and gelu into one kernel
    10. return fused_gemm_bias_gelu(x, w, bias)

    As shown above, a fused operator completes matrix multiplication, bias addition, activation, and other operations within a single kernel. Intermediate results remain in on-chip cache or registers, greatly reducing HBM accesses.

    2.2 Removing Inefficiencies in Inference Deployment

    In real inference deployments, especially with complex attention mechanisms and their variants, such as multi-token prediction and multi-level caching, there are many low-hanging fusion opportunities. If these operations are executed separately, kernel launch overhead and memory latency become system drags. By analyzing the computation graph in depth and deeply fusing non-standard, fine-grained operators, teams can further remove performance inefficiencies in inference deployment. This optimization approach is important for improving per-card concurrency and reducing user-facing time to first token.

    3. Open Source and Ecosystem Feedback

    The greater value of a technical breakthrough lies in broad access and sharing. In the current commercial environment, high-performance operators accumulated by leading companies are often treated as core competitiveness and are rarely made public. However, this team chose to fully open-source the optimized operators and their implementations, creating a far-reaching positive impact on the homegrown AI compute ecosystem.

    3.1 Breaking Technical Islands

    Ecosystem development for homegrown AI compute hardware has long faced a “chicken-and-egg” dilemma: application developers complain that operator libraries are incomplete and slow, while hardware vendors complain that the application layer is not actively adapting to their platforms. A high-quality open-source operator library gives the community a standard reference point. Hardware vendors can use it to align and optimize their compute platforms, while application developers can directly reuse it or learn from its optimization strategies. This effectively breaks the technical islands between software and hardware.

    3.2 Lowering Adaptation and Trial-and-Error Costs

    For many developers, achieving extreme MFU on homegrown AI compute hardware involves very high trial-and-error costs. Open-source non-standard fused operators not only provide an “answer,” but also demonstrate a “way to solve the problem.” Developers can quickly launch environments through cloud-based container platforms and use logging services and monitoring and alerting systems to compare performance metrics before and after optimization in real time, accelerating the process of adapting models to homegrown hardware.

    4. Conclusion and Engineering Outlook

    The MFU improvement from 95% to 98.5% is not only a challenge to the hardware limit, but also a refresh of the methodology for large-model system optimization. It sends three important signals to the industry:

    1. The value of hands-on work: In AI infrastructure, relying only on black-box invocation can no longer reach the performance ceiling. Deep software-hardware co-design is necessary.
    2. The potential of fusion strategies: Do not blindly focus on standard large operators. Deep fusion of non-standard operators is a highly cost-effective optimization direction for inference deployment.
    3. The power of the open-source ecosystem: Selfless open-source sharing can maximize the social value of technical achievements and encourage more developers to contribute to broad access to compute.

    In the future, as model structures continue to evolve, operator optimization will remain in dynamic development. As developers, we should actively learn from advanced experience in the open-source community, combine it with our own business scenarios, continue to explore the boundaries of compute utilization under cloud-native architectures, and jointly help the homegrown AI compute ecosystem mature.