SearcharxivSearch

arXiv subjects

Linghui Kong

Publications and source records attributed to Linghui Kong.

2 recordsLinked to original sources

MXAttention: Data-Free Optimal Scaling and Pre-Normalization Quantization for MXFP4 Attention

The quadratic cost of attention is a major bottleneck in diffusion-based video generation models. MXFP4 attention provides a promising path toward efficient inference, but direct MXFP4 quantization often degrades generation quality due to two numerical issues: the clipping-underflow trade-off from power-of-two scaling and the row-wise normalization error introduced in the softmax loop. We propose MXAttention, a data-free post-training quantization framework for MXFP4 attention. MXAttention introduces two components: Universal Optimal Scaling (UOS), which exploits the periodic structure of power-of-two microscaling to derive a distribution-independent optimal scaling boundary Qmax=7.25 without calibration or search, and Pre-Normalization Quantization (PNQ), which quantizes unnormalized softmax exponentials before row-wise summation to preserve normalization by construction. Experiments on Wan2.2 and HunyuanVideo show that MXAttention closes at least 95% of the VBench Imaging Quality gap between OCP MXFP4 and FP16, substantially improves frame-level similarity, and preserves FP16-level generation quality with less than 0.01 absolute degradation on all reported VBench metrics. MXAttention also achieves performance competitive with strong NVFP4-based baselines with negligible overhead when fused into the attention pipeline. The implementation is publicly available in MindIE-SD.

cs.LG

Asymptotic-preserving conservative semi-Lagrangian discontinuous Galerkin schemes for the Vlasov-Poisson system in the quasi-neutral limit

We discretize the Vlasov-Poisson system using conservative semi-Lagrangian (CSL) discontinuous Galerkin (DG) schemes that are asymptotic preserving (AP) in the quasi-neutral limit. The proposed method (CSLDG) relies on two key ingredients: the CSLDG discretization and a reformulated Poisson equation (RPE). The use of the CSL formulation ensures local mass conservation and circumvents the Courant-Friedrichs-Lewy condition, while the DG method provides high-order accuracy for capturing fine-scale phase space structures of the distribution function. The RPE is derived by the Poisson equation coupled with moments of the Vlasov equation. The synergy between the CSLDG and RPE components makes it possible to obtain reliable numerical solutions, even when the spatial and temporal resolution might not fully resolve the Debye length. We rigorously prove that the proposed method is asymptotically stable, consistent and satisfies AP properties. Moreover, its efficiency is maintained across non-quasi-neutral and quasi-neutral regimes. These properties of our approach are essential for accurate and robust numerical simulation of complex electrostatic plasmas. Several numerical experiments verify the accuracy, stability and efficiency of the proposed CSLDG schemes.

math.NA