# AMD optimizes MXFP4 MoE performance for Instinct MI300X using FlyDSL and LUTs

> **Key takeaway:** AMD researchers implemented a bit-exact lookup table (LUT) to accelerate MXFP4 weight decoding on MI300X GPUs, bypassing the lack of native hardware support found in the newer MI350 series.

**Published:** 2026-11-26T20:02:15.564759+00:00 
**Source:** AMD ROCm Official Blog 
**Category:** ai-local-edge 
**Canonical URL:** https://fosswire.org/news/amd-optimizes-mxfp4-moe-performance-for-instinct-mi300x-usin.html 

## Summary
AMD has introduced a performance optimization for Mixture-of-Experts (MoE) models running on Instinct MI300X (gfx942) GPUs. While the newer CDNA 4 architecture (MI350 series) includes dedicated hardware instructions to convert MXFP4 weights to bf16, the CDNA 3 architecture lacks this capability, requiring software-based decoding.

By utilizing FlyDSL, a Python domain-specific language for ROCm GPU kernels, and implementing a bit-exact v_perm_b32 byte lookup table (LUT), AMD has significantly reduced the computational overhead of this decoding process. This optimization targets the AITER (AMD AI Tensor Engine for ROCm) framework to enable efficient execution of models using the OCP Microscaling (MX) formats.

## Technical implementation and performance gains
- **Decoding Optimization:** The implementation replaces a high-overhead software E2M1-to-bf16 decoding process with a bit-exact v_perm_b32 byte lookup table (LUT), which eliminates VALU-heavy instruction cycles.
- **Performance Scaling:** The LUT-based approach improves GEMM1 performance by 2.2×–2.4× and GEMM2 performance by 1.7×–2.5× on MI300X hardware compared to reference software decoding across token counts from 1 to 8192.
- **Kernel Architecture:** The optimization targets the moe_2stage_a16wmix kernels within the AITER framework, which handle two-stage MoE GEMM operations (gate/up and down) using bf16 activations and MXFP4 weights.
- **Profiling Insights:** Using rocprofv3 and Advanced Thread Trace (ATT), researchers identified that the software-only decoding path was limited by VALU issue rates rather than memory bandwidth, with VALU share of issue exceeding 93% in some workloads.

## Why it matters
This development allows developers to deploy highly efficient, quantized MoE models on existing MI300X hardware without waiting for a hardware generational leap. It demonstrates how software-defined kernel languages like FlyDSL can bridge the gap between evolving AI data formats and current-generation silicon.