TECHNOLOGY

FOCUS FP4: learned scales, model quality and calibration cost

In this article
THE QUICK TAKE

FOCUS changes offline FP4 code selection while retaining hardware-compatible scales; its quality gains and high calibration-memory figures do not establish deployed inference speed or memory.

In August 2026, researchers from Shanghai Jiao Tong University and Tencent presented the FOCUS preprint, a post-training language-model quantization method for MXFP4 and NVFP4. It optimizes quantizer scales while preserving a standard-format output. In author experiments, this reduced quality loss compared with several other FP4 approaches. These remain developer measurements, rather than an independently confirmed advantage in every condition.

Quantization replaces high-precision numbers with more compact representations. This can reduce weight storage and accelerate suitable hardware, but rounding and limited numerical range introduce errors. W4A4 converts both linear-layer weights and activations to four-bit formats. Post-training methods operate on an already-trained model: FOCUS freezes original weights and uses calibration data to optimize scale parameters. The authors’ paper describes this procedure, rather than complete model retraining.

Why scales matter

Both formats encode weights as FP4 E2M1, but share a scale across block elements. MXFP4 assigns one E8M0 scale, representing powers of two, to 32 values. NVFP4 uses blocks of 16 values, an E4M3 scale and an additional global FP32 scale. The scale chooses which part of the numerical grid represents the original values: excessively large scales lose small-value detail, while excessively small scales increase large-value clipping. The paper supplies format descriptions and equations.

Ordinarily, weight-to-FP4 conversion and reconstruction use the same scale. The authors observe that the scale selecting FP4 codes is needed only during model preparation. Deployment retains the codes and dequantization scale, so the code-selection scale need not have the same precision and granularity as the stored scale.

FOCUS’s first component, Coupled-Relaxation Scaling (CRS), multiplies a dequantization scale by a learnable coefficient and uses the product to choose FP4 codes. Reconstruction uses the retained hardware-compatible scale. The coefficient changes rounding boundaries and weight-code assignments without being added to the final model. Its second component, Dual-Granularity Scaling (DGS), assigns coefficients to smaller portions of a block: the experiments use eight-element sub-blocks, four per MXFP4 block and two per NVFP4 block. The dequantization scale remains shared across the hardware block. Method equations and diagram show the coefficients being discarded after optimization.

Training uses gradient optimization for scales and coefficients, while activation quantization remains dynamic. The authors say the result requires no additional FOCUS operations at inference: auxiliary coefficients are discarded and no special transformations are inserted. This is a representation property, rather than a universal published latency measurement across devices and runtimes. AngelSlim documentation describes Qwen3-4B configurations, checkpoint packing and loading through vLLM.

What the experiments showed

The authors studied Qwen3-4B and 8B plus three LLaMA models from 1B to 8B. Calibration used 1 248 WikiText2 training examples for one epoch, global batch size 32 and sequence length 2 048. WikiText2 and C4 perplexity used the same sequence length; mean zero-shot accuracy combines ARC-Challenge, ARC-Easy, HellaSwag, PIQA and WinoGrande. Experiments used one NVIDIA H20 with PyTorch and Transformers. These are the publication’s own conditions, rather than an independent replication.

For Qwen3-4B, the authors report the following. Higher accuracy and lower perplexity are better:

Format and methodMean accuracy, %WikiText2 perplexityC4 perplexity
FP1668.2513.6616.63
MXFP4, RTN62.3518.6020.62
MXFP4, GPTQ63.6516.8519.37
MXFP4, FOCUS65.6512.8517.77
NVFP4, RTN65.5813.8817.29
NVFP4, GPTQ66.1513.9117.30
NVFP4, FOCUS67.0512.5716.97

The table comes from the authors’ results; RTN means rounding to the nearest representable value. For example, NVFP4 FOCUS exceeds GPTQ here by 0.90 percentage points but remains 1.20 points below FP16. The metrics do not collapse into one ranking: FOCUS has lower WikiText2 perplexity than FP16 but higher C4 perplexity, while average accuracy in both formats remains below FP16. Calibration used WikiText2’s training split; transfer needs evaluation on other data too. Lower perplexity on one corpus does not establish quantized-model superiority across tasks.

An ablation separately evaluates method components. For MXFP4 Qwen3-4B, mean accuracy rises from 64.69% with baseline scale learning to 64.81% with CRS and 65.65% with CRS plus DGS. NVFP4 values are 65.92%, 66.91% and 67.05% respectively. Gains consequently involve both scale learning generally and the proposed additions, with contributions varying by format. The ablation table does not mean every component improves every metric equally.

Preparation cost and deployment checks

Preparation also has a cost. On one H20, the authors report Qwen3-4B quantization taking 19 minutes and 77 GB peak GPU memory for FOCUS versus 29 minutes and 45 GB for MR-GPTQ. This measures the quantization stage, rather than deployed-model inference memory or speed. Qwen3-8B takes 29 minutes and 85 GB versus 40 minutes and 62 GB respectively. The cost table matters for calibration planning: faster preparation in these experiments required more memory.

FOCUS may interest teams fitting a model into supported FP4 formats while retaining quality without additional execution-time transforms. AngelSlim’s Qwen3-4B configurations provide a starting point, followed by quality evaluation on application-specific prompts and actual target-hardware latency and memory measurements. Five studied models and selected benchmarks cannot guarantee results for other architectures, context lengths or tasks. A search did not identify independent confirmation of the cited Qwen3-4B figures; reproducibility and deployed-system characteristics remain open questions.

Related explanations cover quantized-model quality checks and weight, context and working-buffer memory. Peak scale-optimization memory cannot substitute for deployed FP4 inference memory.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles