NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NestedFP: High-Performance, Memory-Efficient Dual-Precision Floating Point Support for LLMs

Haeun Lee, Omin Kwon, Yeonhong Park, Jae W. Lee

Abstract

Serving Large Language Models (LLMs) at scale requires balancing model quality with operational efficiency. While FP16 precision is the standard for maintaining high accuracy, it often struggles to meet Service Level Objectives (SLOs) during peak traffic. FP8 inference offers a high-throughput alternative but typically requires either a significant memory overhead to store dual weights or a performance penalty for on-the-fly quantization. NestedFP introduces a novel framework that "nests" FP8 parameters within the FP16 memory footprint, enabling seamless, zero-overhead switching between precision modes to handle traffic spikes without sacrificing long-term accuracy.

Introduction

In the production environment of LLM serving, providers must adhere to strict Service Level Objectives (SLOs), such as ensuring that 90% of requests are completed within a specific time window. Most state-of-the-art models utilize 16-bit floating point (FP16) weights to preserve reasoning and mathematical capabilities. However, when user demand surges, the memory bandwidth requirements of FP16 can lead to bottlenecks, causing response times to exceed SLO thresholds.

While 8-bit floating point (FP8) inference can double throughput, it introduces a slight degradation in model quality. Ideally, a serving system would dynamically switch to FP8 during high-load periods and revert to FP16 during normal operations. Traditionally, this is impossible without either increasing memory usage by 50% (to store both versions) or incurring a heavy latency penalty for real-time quantization. NestedFP addresses this challenge by refactoring weight storage to support both formats within the same memory footprint.

Methodology: The Nested Format

The core innovation of NestedFP is the decomposition of weights into a "nested" structure that allows for dual-mode execution without redundant storage.

1. Weight Decomposition and the Exponent Exploit

NestedFP splits each 16-bit weight into two 8-bit components: an "Upper" part and a "Lower" part. The researchers observed that the distribution of LLM weights is remarkably narrow, with the vast majority of magnitudes staying below 1.75. In the standard FP16 format, this means the most significant bit of the exponent is almost always zero.

NestedFP exploits this redundancy by mapping the FP16 value into a high-quality FP8 (E4M3) format for the "Upper" 8 bits. The remaining bits are stored in the "Lower" 8-bit component. This mapping ensures that the "Upper" tensor is a valid, high-fidelity FP8 representation of the original weight.

2. Dual-Mode Execution

NestedFP enables two distinct execution paths:

  • FP8 Mode: During traffic surges, the system loads only the "Upper" 8-bit tensor from memory. This provides the full bandwidth and throughput benefits of native FP8 math, effectively doubling the system's capacity.
  • FP16 Mode: During normal loads, the system loads both the Upper and Lower 8-bit tensors. A custom General Matrix Multiplication (GEMM) kernel, built on the CUTLASS library, reconstructs the original 16-bit values on-the-fly using efficient bitwise operations (such as NVIDIA-specific __byte_perm instructions) before performing calculations.

3. Exception Handling

For rare layers where weight magnitudes exceed the representable range of the nesting scheme (e.g., specific layers in the Phi-4 model), NestedFP maintains those specific weights in standard FP16 to ensure no loss of precision.

Experimental Evaluation

The researchers evaluated NestedFP across a suite of modern LLMs, including Llama 3.1 (8B, 70B), Mistral Nemo (12B), Phi-4 (14B), and DeepSeek-R1-Distill-Llama-70B. Accuracy was measured using standard benchmarks such as Minerva Math, MMLU Pro, and Big-Bench Hard (BBH). To simulate real-world conditions, the team utilized production request traces from Microsoft Azure’s LLM inference service.

Key Results

  • Quality Preservation: The FP8 models extracted via NestedFP demonstrated accuracy virtually identical to standard FP8 quantization methods across all tested benchmarks.
  • Computational Overhead: In FP16 mode, the custom reconstruction kernel introduced a negligible overhead of only 5-6% compared to industry-standard, highly optimized kernels.
  • SLO Attainment: The most significant impact was observed in high-load scenarios. In a simulation using Llama-3.1-70B at a rate of 7.47 requests per second, a standard FP16 system met tight SLOs only 0.7% of the time. By dynamically switching to FP8 during surges, NestedFP increased SLO attainment to 72.4%.

Discussion and Limitations

NestedFP demonstrates that the inherent bit-level redundancies in LLM weights can be leveraged to create more flexible serving infrastructures. However, several areas for future development remain:

  • Hardware Constraints: The current implementation is highly optimized for NVIDIA Hopper (H100) architectures. Porting the custom bitwise reconstruction kernels to other hardware, such as AMD GPUs or TPUs, would require significant engineering effort.
  • Switching Policies: The current study utilizes a static threshold (switching to FP8 when batch sizes exceed 1024). Future iterations could benefit from predictive load-balancing policies that anticipate spikes before they impact latency.
  • Outlier Sensitivity: While rare, models with a high frequency of large weight outliers may see diminished benefits if a significant portion of the model must remain in standard FP16.

Conclusion

NestedFP provides a practical solution for the high-density serving of LLMs. By nesting FP8 weights within an FP16 footprint, it allows providers to maintain high model quality while gaining the agility to handle massive traffic spikes, all without the prohibitive cost of additional GPU memory.

Summary updated

BibTeX
@inproceedings{lee2025nestedfp,
  author = {Haeun Lee and Omin Kwon and Yeonhong Park and Jae W. Lee},
  title = {{NestedFP: High-Performance, Memory-Efficient Dual-Precision Floating Point Support for LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=WDAKFpWftI},
}
Figure