# HiFloat4 Format for End-To-End Reinforcement Learning Post-Training of Large Language Models

*Hei Yi Mak, Shadan Golestan, Hoang Le, Mehran Taghian Jazi, Yunke Peng, Yaoyuan Wang, Yao Wang, JUNSONG WANG, Tianchi Hu, Fengchen He, Guipeng Hu, Tanzila Rahman, Anandharaju D Raju*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154752) · [OpenReview](https://openreview.net/forum?id=BDwmB9cg99) · [alphaXiv](https://www.alphaxiv.org/abs/2607.26515) · [Open on the map](../papers.html#p154752)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Low-Precision LLM Optimization](../pgroup/584.md) · Type: new method · Keywords: 4-bit quantization, reinforcement learning post-training, activation quantization, outlier mitigation, hardware-friendly format

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Policy Optimization › Stable Policy Optimization

## Summary
HiFloat4 (HiF4) is a 4-bit format with hierarchical scaling that, together with Rollout-ResQ, enables end-to-end FP4 reinforcement learning post-training of large language models while closing the accuracy gap to full precision.

## Explained to a 5-year-old
We want to teach a big computer program using only 4 bits instead of many bits. When we do this, some small numbers disappear because they are too tiny to fit. We add a tiny extra step that fixes the disappearing numbers. This helps the program keep its performance while using much less memory. Now big AI models can run on smaller devices.

## Explained to a 5-year-old, longer
We have a big computer program that can think and answer questions. Usually we store its ideas using many bits of information, which needs a lot of memory. The researchers wanted to make this program work using only four bits, which is super tiny. When they did that, some of the small numbers got lost because they were too tiny to fit. This loss made the program not learn as well as before. They discovered that the problem happened mainly when the program was trying out new actions, not when it was learning. To fix this, they added a very small extra correction only to the part where the program tries out actions. This correction is simple and fits into the tiny memory budget. It helps the lost numbers come back without making the program slower. The new method also uses a special way to spread out the numbers so they stay visible. With these changes, the program can still learn almost as well as before, even though it uses only four bits. This makes it possible to run big AI models on smaller devices like phones or laptops.

## For a technical reader
The paper introduces HiFloat4, a 4-bit floating-point format that uses hierarchical scaling to preserve numerical resolution within the tight 4-bit budget. It shows that in end-to-end reinforcement-learning post-training, the biggest accuracy loss comes from activation quantization during the rollout phase, where outliers cause underflow. To fix this, the authors add a lightweight residual correction-Rollout-ResQ-only to the rollout matrix multiplication, which restores most of the lost precision without increasing compute. Experiments on Qwen2.5-3B and Qwen2.5-Math-7B demonstrate that the combined HiFloat4 + Rollout-ResQ reduces the BF16 accuracy gap from 4.9% to just 1.1%, and on MXFP4 from 13.6% to 5.3%, bringing fully quantized RL close to full-precision performance.

## Problem
Quantizing both rollout and training policies to extremely low precision (e.g., 4-bit) for reinforcement learning often leads to large accuracy drops because activation outliers cause underflow and mismatched precision between rollout and training degrades performance. This creates a barrier to fully quantized end-to-end RL post-training of large language models.

## Method
The approach studies the sources of degradation in 4-bit RL, identifies rollout activation quantization and precision mismatch as key issues, and introduces a lightweight residual correction added to the rollout matmul to mitigate outlier-driven underflow while keeping the format hardware-friendly.

## Results
The approach reduces the accuracy gap to full-precision BF16 from 4.9% to 1.1% on Qwen2.5-3B and Qwen2.5-Math-7B using HiF4, and narrows the gap from 13.6% to 5.3% on MXFP4, bringing fully quantized RL close to full-precision performance.

## Contributions
A systematic analysis of 4-bit RL quantization, identification of rollout-training mismatch as a primary failure mode, a hardware-friendly residual correction mechanism, and a hierarchical 4-bit format that preserves resolution, enabling end-to-end quantized RL post-training.

## Limitations and assumptions
Evaluated on only two model sizes (Qwen2.5-3B and Qwen2.5-Math-7B), which may limit generalizability.

## Practical relevance
Enables efficient, low-memory RL post-training of large language models on commodity hardware, reducing computational and memory costs while maintaining near full-precision performance.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154752)
