Quartet: Native FP4 Training Can Be Optimal for Large Language Models

Roberto L. Castro, Andrei Panferov, Soroush Tabesh, Oliver Sieberling, Jiale Chen +3 more
5/20/2025
cs.LG

Official code: IST-DASLab/Quartet (126 stars, MIT, last commit 2026-03-18).

Abstract

Training large language models (LLMs) models directly in low-precision offers a way to address computational costs by improving both throughput and energy efficiency. For those purposes, NVIDIA's recent Blackwell architecture facilitates very low-precision operations using FP4 variants. Yet, current algorithms for training LLMs in FP4 precision face significant accuracy degradation and often rely on mixed-precision fallbacks. In this paper, we investigate hardware-supported FP4 training and introduce a new approach for accurate, end-to-end FP4 training with all the major computations (i.e., linear layers) in low precision. Through extensive evaluations on Llama-type models, we reveal a new low-precision scaling law that quantifies performance trade-offs across bit-widths and training setups. Guided by this investigation, we design an "optimal" technique in terms of accuracy-vs-computation, called Quartet. We implement Quartet using optimized CUDA kernels tailored for Blackwell, demonstrating that fully FP4-based training is a competitive alternative to FP16 half-precision and to FP8 training. Our code is available at https://github.com/IST-DASLab/Quartet.

View on arXivView PDF

Code Implementations(1)

IST-DASLab/QuartetOfficial100%
MIT
12615Shell, PythonMay 20, 20257 months agoMIT

Similar Papers

Cite this paper

@article{castro2025quartet,
  title  = {Quartet: Native FP4 Training Can Be Optimal for Large Language Models},
  author = {Roberto L. Castro and Andrei Panferov and Soroush Tabesh and Oliver Sieberling and Jiale Chen and Mahdi Nikdan and Saleh Ashkboos and Dan Alistarh},
  year   = {2025},
  eprint = {2505.14669},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.14669v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.14669.svg)](https://codeofpaper.com/paper/2505.14669)

Discussion