FPE2M2: Approaching Lossless and Efficient Quantization with Native Floating Point

Ke Yi, Jianwei Zhang, Zhiying Xu, Xinlong Yang, Yang Zhou, Minmin Sun, Zengke Liu, Tong Zhang, Junyang Lin, Jingren ZhouACL 2025

Abstract

Large Language Model (LLM) inference is increasingly constrained by memory bandwidth during the auto-regressive decoding phase. While weight-only quantization is a standard solution to reduce memory I/O, existing methods often force a trade-off between representational accuracy and hardware efficiency. Integer quantization (e.g., INT4) fails to capture the natural Gaussian distribution of weights, leading to accuracy degradation, while non-uniform formats like NF4 require slow memory-bound lookup tables. This paper introduces FPE2M2, a 5-bit native floating-point quantization scheme. By utilizing a 1-sign, 2-exponent, and 2-mantissa bit split, FPE2M2 matches the statistical distribution of LLM weights while enabling ultra-fast, register-level dequantization. Our results demonstrate near-lossless performance across diverse benchmarks and significant speedups over lookup-table-based methods.

Introduction

The inference pipeline for LLMs consists of two distinct phases: pre-filling and decoding. While pre-filling is compute-bound, the auto-regressive decoding process—generating one token at a time—is fundamentally limited by memory bandwidth. To mitigate this bottleneck, weight-only quantization is employed to shrink the model's memory footprint and reduce data movement.

However, conventional integer quantization (INT4/INT8) assumes a uniform distribution of weights, which contradicts the observed Gaussian (bell-curve) nature of LLM parameters. This mismatch results in significant quantization errors. Conversely, sophisticated non-uniform quantization formats like NormalFloat (NF4) provide better accuracy but necessitate the use of lookup tables (LUTs) during dequantization. Accessing these tables in memory introduces additional latency, potentially negating the throughput gains achieved by reducing weight size.

Methodology: The FPE2M2 Format

To bridge the gap between accuracy and efficiency, we propose FPE2M2. This format uses 5 bits per weight: 1 sign bit, 2 exponent bits, and 2 mantissa bits. It extends the IEEE 754 standard but repurposes special values (NaN, Infinity) into regular numbers to maximize representational capacity.

Optimal Bit Allocation

The choice of an E2M2 split is driven by statistical analysis. Analysis of quantization error across various bit-width configurations shows that for the typical standard deviation (sigma) of LLM weights (ranging from 0.12 to 0.28), the E2M2 configuration consistently minimizes error compared to other splits like E1M3 or E3M1.

Quantization error analysis across different bit-widths and E/M splits. The shaded region represents typical LLM weight distributions.

Register-Level Dequantization

The core innovation of FPE2M2 is its dequantization speed. Unlike NF4, which requires a memory lookup, FPE2M2 values are converted to FP16 using bitwise operations directly in the GPU registers. By aligning bits and adjusting the exponent bias, the conversion is reduced to a simple sequence of shifts and masks: X = ((Q << 8) | 0x0f00) * S. This approach ensures that the dequantization process does not become a new bottleneck.

Efficient Memory Packing

To maintain a compact footprint, we implement a "4+1" packing scheme. We pack 32 5-bit values into five INT32 registers. Specifically, the 4-bit E2M2 components are packed contiguously, while the sign bits are stored separately. This layout facilitates high-speed parallel extraction during matrix-vector multiplications in the decoding phase.

Evaluation and Results

We evaluated FPE2M2 across a wide range of models, including the Qwen2.5 family (3B to 72B), LLaMA3-8B, and DeepSeek-R1 distilled models, as well as multi-modal models like Qwen2-VL and Qwen2-Audio.

Performance Benchmarks

FPE2M2 achieves near-lossless accuracy, typically staying within 0.3% of the FP16 baseline across standard text benchmarks such as MMLU, GSM8K, and ArcChallenge. In contrast, 4-bit integer quantization often results in a 10-20% performance drop on complex reasoning tasks.

Comparison of FPE2M2 (FP5) against various quantization schemas and the FP16 baseline.

Multi-modal and Hardware Efficiency

The format's robustness extends to vision and audio tasks, where it maintains baseline performance while INT4 shows significant degradation. Hardware benchmarks on NVIDIA RTX 4070 Ti and H100 GPUs confirm that FPE2M2 matches the throughput of standard INT5 and outperforms NF5, validating the efficiency of register-level dequantization.

Conclusion

FPE2M2 represents a significant step toward lossless LLM quantization. By aligning the numerical format with the underlying data distribution and prioritizing hardware-native operations over memory-intensive lookups, it provides a high-performance alternative to existing 4-bit and 5-bit schemes. Future work will focus on addressing extreme weight outliers in very large models, which remain a challenge for per-channel quantization methods.

Summary updated

BibTeX
@inproceedings{yi2025fpe,
  author = {Ke Yi and Jianwei Zhang and Zhiying Xu and Xinlong Yang and Yang Zhou and Minmin Sun and Zengke Liu and Tong Zhang and Junyang Lin and Jingren Zhou},
  title = {{FPE2M2: Approaching Lossless and Efficient Quantization with Native Floating Point}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure