---
title: "FP8 Formats for Deep Learning — Micikevicius 2022"
description: "How FP8 Formats for Deep Learning combines two floating-point encodings, tensor scaling, and mixed precision to preserve training quality."
canonical: "https://research.elamur.ai/free/en/papers/micikevicius-2022-fp8-formats-deep-learning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/micikevicius-2022-fp8-formats-deep-learning/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / FP8 Formats for Deep Learning

# FP8 Formats for Deep Learning

Paper · 2022 · Paulius Micikevicius, Dusan Stosic, Neil Burgess et al.

**Authors:** [Paulius Micikevicius](https://md.research.elamur.ai/free/en/authors/paulius-micikevicius/), [Dusan Stosic](https://md.research.elamur.ai/free/en/authors/dusan-stosic/), Neil Burgess, [Marius Cornea](https://md.research.elamur.ai/free/en/authors/marius-cornea/), Pradeep Dubey, Richard Grisenthwaite, Sangwon Ha, Alexander Heinecke, [Patrick Judd](https://md.research.elamur.ai/free/en/authors/patrick-judd/), [John Kamalu](https://md.research.elamur.ai/free/en/authors/john-kamalu/), Naveen Mellempudi, Stuart Oberman, [Mohammad Shoeybi](https://md.research.elamur.ai/free/en/authors/mohammad-shoeybi/), Michael Siu and [Hao Wu](https://md.research.elamur.ai/free/en/authors/hao-wu/) · **Year:** 2022 · **Venue:** arXiv:2209.05433 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[**49** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4297812065) · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2209.05433)
- [arXiv 2209.05433](https://arxiv.org/abs/2209.05433)
- [OpenAlex](https://openalex.org/W4297812065)

## Deep dive: FP8 Formats for Deep Learning

How FP8 Formats for Deep Learning combines two floating-point encodings, tensor scaling, and mixed precision to preserve training quality. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Reducing the space used to represent numbers can make neural-network computation less demanding, but only if the resulting numerical errors leave learning and prediction sufficiently intact. FP8 Formats for Deep Learning addresses that tradeoff by proposing a floating-point representation with two encodings, E4M3 and E5M2. Both use 8 bits, but they divide those bits differently between the exponent, which controls numerical range, and the mantissa, which controls the spacing between nearby representable values. The proposal belongs to the broader problem of [efficient models and compression](https://md.research.elamur.ai/free/en/topics/efficient-models/): how to reduce the resources required by a neural network while preserving the behavior that makes it useful.

The authors recommend E4M3 for weights and activations, and E5M2 for gradients. Weights are the learned numerical parameters; activations are the intermediate values produced as a network processes an input; gradients describe how training should change the parameters. These quantities need not have the same numerical requirements. E4M3 assigns more bits to the mantissa, while E5M2 assigns more to the exponent. The design also treats special values differently. E5M2 keeps IEEE 754 conventions for zeros, infinities, and NaNs, the special markers for invalid numerical results. E4M3 gives up infinity representations and reserves only one mantissa pattern for NaNs, reclaiming space for finite values. Its largest representable magnitude becomes 448, rather than the 240 available without that modification.

The encoding alone is not the method. Before converting a tensor into FP8, the implementation multiplies its values by a scaling factor so that important magnitudes fit the available range. A tensor is an array of numerical values, such as a layer’s weights or incoming activations. The paper argues that some networks need different scales for different tensors, instead of one shared adjustment for every tensor of a given kind. It leaves scale selection to software and retains fixed exponent biases in the formats. Computation then follows a mixed-precision arrangement: selected inputs use FP8, while arithmetic and many outputs remain in a wider representation. The experiments simulate FP8 representability within such wider-precision computation; they do not establish the performance of a particular native FP8 arithmetic implementation.

Across image classification, translation, and language training, the authors report results generally consistent with the variation between ordinary higher-precision training runs, without changing architecture, initialization, or optimizer settings. Their language experiments extend to 175B parameters, although the comparison at that size is reported at 75% of training because the bfloat16 reference run was unfinished. MobileNet v2 is a stated exception to the broad training result. The paper also studies converting already trained networks to FP8 for inference, finding better preservation of quality than with the tested int8 conversions. Its clearest numerical lesson concerns scaling: for a GPT network evaluated on wikitext103, quantizing both matrix-operation inputs and residual connections with a shared exponent bias gives perplexity of 12.59, compared with 10.19 for the bfloat16 reference. Calibrating separate scales brings the corresponding FP8 result to 10.44. The central finding is therefore conditional but substantial: FP8 can preserve useful numerical behavior across diverse workloads when the encoding, scaling, and precision boundaries are chosen together.

### Ideas worth borrowing

Separate numerical roles. The paper’s most reusable idea is to stop treating every tensor as though it needed the same compromise between range and precision. A forward computation’s weights and activations can benefit from the extra mantissa capacity of E4M3, while gradients can use the wider exponent field of E5M2. This does not require a different representation for every operation. It requires recognizing a meaningful distinction between classes of values. The same reasoning applies whenever an implementation compresses heterogeneous numerical data: first identify what each kind of value needs to preserve, then decide whether a shared representation is appropriate.

Adapt values without changing the encoding. A scaling factor moves a tensor’s numerical distribution into a useful part of a fixed format. Keeping that adjustment in software lets the binary representation remain stable while different layers or workloads receive different treatment. The authors prefer this arrangement to relying on a programmable exponent bias, which restricts adjustment to powers of 2. This is a useful design principle for numerical interfaces more broadly. A stable storage format can coexist with adaptable interpretation, provided the associated metadata is explicit and the operations that consume it handle it correctly.

Spend exceptional cases where they matter. E4M3 reuses most of the patterns conventionally reserved for special values, but it does not discard every inherited convention. The authors preserve signed representations of zero and NaN because numerical software may depend on sign symmetry. The useful idea is selective simplification. A representation can trade away capabilities that contribute little to its intended workload while retaining properties that support existing algorithms. Elsewhere, that means evaluating the practical value of an exceptional case before either preserving it automatically or removing it for a small gain.

Compress the expensive boundaries first. The main experiments put FP8 on inputs to convolutions and matrix multiplications, while leaving many outputs and other operations in wider precision. That choice targets the values entering arithmetic-intensive work without requiring every stage of training to tolerate the same restrictions. It also makes the experimental question clearer: can these particular precision boundaries be moved safely? Engineers can borrow this staged approach when introducing compression into a complex pipeline. Start with a well-defined boundary, measure the resulting behavior, and expand the scope only when the additional change has been evaluated.

Keep the reference procedure fixed. The authors retain the baseline architecture, initialization, and optimizer hyper-parameters when testing FP8 training. This makes their evidence more informative than a comparison in which the reduced-precision system also receives a different training recipe. A successful result then supports a narrower and more useful claim: the numerical change fits an existing procedure. The principle extends to any systems experiment with interacting components. Holding the surrounding procedure steady helps reveal whether an apparent improvement or regression comes from the intervention being studied.

Test the limit by widening the intervention. The residual-connection analysis asks what happens when FP8 reaches beyond the matrix-operation inputs used in the main setup. A shared exponent adjustment that can work for the narrower setup no longer preserves sufficient quality. Separate calibration substantially improves the broader setup. This is a valuable experimental pattern: after showing that a method works within a chosen boundary, deliberately move that boundary. The failure reveals which supporting mechanism is essential. Here, tensor-specific scaling becomes more important as a larger portion of the computation uses FP8.

Distinguish numerical evidence from systems evidence. Simulating representable FP8 values inside wider arithmetic allows the authors to investigate large training workloads without implementing every possible low-precision instruction. That is an effective way to study a format, provided the conclusion stays at the level the experiment supports. The reusable lesson is to isolate an interface’s numerical consequences before attributing hardware benefits to it. Storage format, accumulation behavior, execution speed, and energy use are connected, but a test of one does not automatically measure the others.

### How Mova uses it

For Mova, the small transparent language system written in Rust, this paper is most useful as a numerical design reference and an experimental discipline. There is no established FP8 implementation described for Mova, so the applications here are possibilities rather than claims about an existing component. The immediate lesson is also broader than adding a new datatype. A compact representation becomes meaningful only when the system can explain which values use it, how they are scaled, what happens at conversion boundaries, and which calculations retain wider precision.

A possible first use would be an explicit representation of the two encodings together with their scale information. Rather than treating a stored FP8 value as a complete description of a quantity, Mova could treat the encoding and the tensor’s scaling factor as related pieces of state. That would make the interpretation inspectable. A reader of the implementation could follow how a higher-precision value becomes a compact value and how a later calculation recovers its intended magnitude. This would fit a transparent system better than an implicit conversion policy whose numerical assumptions are scattered across operations.

The paper also suggests how Mova could investigate a compact representation before depending on specialized arithmetic. Its experiments restrict values to FP8-representable levels and then perform the surrounding calculation in a wider type. Mova could use the same distinction in an exploratory implementation: study the consequences of quantization separately from the consequences of a particular execution backend. Such an experiment would answer whether a proposed storage boundary damages the system’s behavior. It would not, by itself, demonstrate faster execution or lower energy use.

If Mova introduces tensor-based numerical components, scaling should be treated as part of their interface. The residual-connection analysis warns against assuming that one global setting will remain adequate as more intermediate values become compressed. A local experiment could therefore distinguish weights, intermediate activations, and any values carried through additive paths. The appropriate grouping would depend on Mova’s actual architecture. The paper supports testing that grouping; it does not establish that Mova needs the same tensor categories or the same encoding assignment as the networks evaluated by the authors.

Special-value handling offers another concrete implementation lesson. E4M3 lacks infinity encodings, and converting an infinity from a wider format produces a NaN. An implementation must make that behavior visible rather than allow a programmer to assume ordinary floating-point semantics apply everywhere. Similarly, saturating a finite value that exceeds the representable range is a deliberate conversion policy. Mova could expose such decisions clearly in its numerical code and diagnostics, so that a compact value’s history remains understandable.

Finally, the paper gives Mova a useful standard for evaluation. A proposed compact path should be compared with a fixed wider-precision reference before changing unrelated settings to recover quality. The comparison should state which intermediate values were restricted and which remained wider. If later experiments expand the use of FP8, they should treat that expansion as a new claim requiring evidence. What Mova can borrow now is this combination of explicit numerical contracts and controlled comparison. Actual accuracy, speed, and resource benefits would remain outcomes to measure within Mova itself.

### The problem and its context

#### Why fewer bits are attractive

The paper begins from a practical pressure: improvements in deep learning have been accompanied by increasing network size and computational demand. Large [language models](https://md.research.elamur.ai/free/en/concepts/language-model/) are a prominent example. The authors point to GPT-3, Turing-Megatron, PaLM, and OPT as systems whose training requires substantial processor resources over extended periods. The relevant earlier works include [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/) and [PaLM](https://md.research.elamur.ai/free/en/papers/chowdhery-2022-palm-scaling-language-modeling-pathways/). Their role in this argument is to establish the scale of the computational problem, rather than to provide evidence about the proposed FP8 encoding.

Reducing numerical precision addresses several parts of that problem at once. Smaller representations place less pressure on storage and memory movement. They also make smaller arithmetic pipelines possible. The paper presents these as reasons to pursue FP8 beyond the wider formats already used in training. Its focus is not a new learning objective, a new architecture, or a different optimizer. It asks how much numerical representation can be reduced while retaining the result quality of an established training procedure.

The difficulty is that fewer bits remove distinctions between real values. Some magnitudes cease to be representable, and nearby quantities may collapse onto the same stored value. A format must therefore decide where to spend its limited capacity. A floating-point exponent makes the spacing depend on magnitude, whereas fixed-point int8 uses a different distribution of representable values. The authors identify this nonlinear sampling as a reason FP8 can be useful for inference as well as training.

This distinction matters because the largest value is not the only concern. A representation may cover a broad range but represent nearby values too coarsely for a particular calculation. Alternatively, it may offer useful local resolution while failing to cover important small or large magnitudes. E4M3 and E5M2 embody different compromises within the same storage width. The paper’s proposal is to make both available rather than insist that every tensor accept one compromise.

#### What earlier precision work had established

The authors situate FP8 after successful reductions from single precision to formats such as FP16 and bfloat16. They also mention TF32 as a mode used with single-precision values. These earlier formats make reduced precision a practical starting point instead of an entirely speculative direction. The FP8 question is whether the reduction can be pushed further without requiring changes to the network or its training settings.

The paper distinguishes this aim from research on extremely small representations, including binary networks. It cites [BinaryConnect](https://md.research.elamur.ai/free/en/papers/courbariaux-2015-binaryconnect-training-deep-neural-networks/), [XNOR-Net](https://md.research.elamur.ai/free/en/papers/rastegari-2016-xnor-net-imagenet-classification-using/), and [DoReFa-Net](https://md.research.elamur.ai/free/en/papers/zhou-2016-dorefa-net-training-low-bitwidth/). In the authors’ account, such aggressive reductions had not preserved the quality needed across many practical applications. That is a statement about the motivation for their chosen tradeoff. It is not an experimental comparison between FP8 and those methods within this paper.

Other numerical representations had also been proposed. The introduction discusses logarithmic formats, posits, and a combination involving logarithmic representation and posit-style exponents. [Convolutional Neural Networks using Logarithmic Data Representation](https://md.research.elamur.ai/free/en/papers/miyashita-2016-convolutional-neural-networks-logarithmic-data/) is one cited example. The authors argue that the demonstrated benefits of these alternatives had not justified adopting new arithmetic hardware in practice. Their own design therefore places considerable weight on compatibility with familiar floating-point conventions.

That compatibility is selective. Keeping an IEEE-like structure can simplify conversion and preserve assumptions used by numerical software. Yet the authors are willing to change special-value allocation when they expect a meaningful benefit for deep learning. Their proposal can be understood as an attempt to gain more useful range without making the representation unnecessarily unfamiliar.

#### FP8 already had a research history

The paper does not claim to originate training with floating-point values of this width. It describes earlier work by Wang and colleagues using an exponent field of 5 bits for convolutional image classification. It also discusses Mellempudi and colleagues’ experiments with larger convolutional networks and translation systems using recurrent and Transformer components. Those studies considered issues including wider weight updates and stochastic rounding.

Another earlier study introduced a combination of formats with exponent fields of different widths. In the account given here, that work evaluated a broader set of image, speech, and translation tasks. It also considered inference after higher-precision training. The present paper’s use of separate forward and gradient encodings therefore continues an existing direction instead of appearing without precedent.

The introduction also describes work by Noune and colleagues that increased range by reducing the encodings reserved for exceptional values. That work examined the effect of exponent bias in detail. A further cited study focused on inference with different compact formats after wider-precision training. These connections clarify what the present paper contributes: a particular binary interchange proposal, its design rationale, and evidence across a substantial variety of tasks and network sizes.

The authors emphasize size diversity because earlier experiments had found different numerical behavior in different-sized convolutional networks. A result on a smaller network could therefore be insufficient evidence for a much larger one. This motivates the language-training experiments reaching 175B parameters and the inclusion of several architectural families.

#### Why training and inference belong together

Fixed-point int8 was already a common inference option in the setting described by the paper. However, deploying it after floating-point training could require calibration, and sometimes additional training designed to account for quantization. The authors also cite cases where the wider-precision result could not be fully recovered.

FP8 offers a different possibility: use compatible compact datatypes during training and deployment. This could reduce the gap between the numerical conditions under which parameters are learned and those under which predictions are made. It does not eliminate every deployment decision. Scaling, conversion behavior, and precision boundaries still matter. But it makes the representation itself a potential bridge between the stages.

The paper consequently asks related but distinct questions. Can training tolerate FP8 inputs at important computational boundaries? Can an already trained network be converted to FP8 with limited loss? And does a fixed encoding remain useful when software adjusts each tensor separately? The experiments are organized around these questions rather than around a single headline compression result.

### The method, step by step

#### Begin with a representation contract

The first step is to distinguish the format from the arithmetic that uses it. A binary interchange format specifies how stored bits map to numerical values and exceptional cases. It does not, on its own, specify every detail of accumulation, rounding, or processor instructions. The authors deliberately keep these layers separate because different processors may implement vector and matrix operations differently.

The two proposed encodings share a common field structure:

```
S.E.M
```

S denotes the sign field. E denotes the exponent field, which stores a biased exponent. M denotes the mantissa field, meaning the trailing significand bits. The dots separate fields; they are not arithmetic operations or a decimal point. For ordinary normalized values, the leading significand bit is implied rather than stored in M.

E4M3 uses an exponent field of 4 bits and a mantissa field of 3 bits. E5M2 uses an exponent field of 5 bits and a mantissa field of 2 bits. The encoding names make that allocation explicit. Increasing the exponent allocation provides more range, while increasing the mantissa allocation provides more representable distinctions within the covered scale.

The recommended assignment is E4M3 for weights and forward activations, with E5M2 for gradient tensors. The authors acknowledge that some networks can use one encoding alone. Other networks need both unless substantially fewer tensors are kept in FP8. The proposal therefore supplies a pair of related tools instead of presenting either encoding as universally sufficient.

Using FP8 within a wider-precision computation The steps in order.

#### Allocate E4M3’s scarce range carefully

E4M3 has a relatively narrow exponent field, so reserving many bit patterns for special values carries a substantial cost. The authors recover some of that capacity by removing infinity representations and retaining only one mantissa pattern for NaNs. The recovered patterns extend the range of finite values.

The paper describes this extension in binades. A binade groups magnitudes within a power-of-2 interval. With the special-value modification, E4M3 covers 18 binades instead of 17. The change adds the finite magnitudes 256, 288, 320, and 352, followed by 384, 416, and 448. These are numerical representation levels, not measured accuracy results.

The largest magnitude without the modification would be 240. Reaching 448 is therefore a property of the encoding itself. It gives scaled tensors additional space before large finite values must be clipped. That extra room is the benefit against which the loss of infinity representations is judged.

The authors consider, but reject, a further change that could make 480 representable. To achieve it, zero and NaN would each need a single representation rather than distinct positive and negative forms. Their argument is that the additional numerical coverage would not justify breaking sign symmetry inherited from IEEE formats.

That symmetry matters beyond mathematical aesthetics. The paper points to implementations that use integer operations to compare or sort floating-point values. Altering representation properties can complicate or invalidate software that assumes them. E4M3 therefore reflects a constrained optimization: reclaim enough special-value space to improve practical range, while preserving conventions judged valuable to existing numerical algorithms.

#### Keep E5M2 closer to familiar floating point

E5M2 retains the usual IEEE treatment of zeros, infinities, and NaNs. Its exponent allocation already provides the range the authors found adequate for individual tensors in their studies. Including subnormal values, the paper describes that coverage as 32 binades.

The authors give two reasons not to repeat E4M3’s special-value modification here. First, an additional binade contributes less when the existing coverage is broader. Second, the smaller mantissa means reclaiming exceptional patterns would add only 3 finite magnitude levels. The expected gain is therefore weaker than in E4M3.

E5M2 can also be viewed as FP16 with fewer mantissa bits. That structural relationship makes conversion between the formats straightforward. The paper values this compatibility because FP8 is expected to coexist with wider types rather than replace them throughout an entire training system.

This is an important part of the method’s precision. The formats are not symmetrical merely because their names are paired. They are designed for different numerical needs, and the authors accept different treatment of exceptional values where the practical tradeoff differs.

#### Retain fixed biases and move adaptation into software

An exponent bias determines how stored exponent patterns map onto numerical scale. The proposal keeps the bias at 7 for E4M3 and 15 for E5M2. These are format parameters, not settings selected independently for every tensor.

The authors argue that changing the bias is insufficient as the general adaptation mechanism. Some networks need different adjustments for different tensors, including tensors belonging to the same broad category. A single shared placement of the representable range cannot necessarily cover all their important values.

Software scaling addresses that problem while leaving the encoding fixed. Before conversion, the implementation multiplies the wider-precision values by a factor chosen for the tensor. The broad aim is to bring its largest magnitude near the largest value supported by the selected FP8 encoding.

The paper does not prescribe a complete training-time algorithm for choosing or updating these factors. It supplies the purpose and general placement of scaling, while leaving the detailed heuristic outside its scope. That distinction is essential for understanding what can be reproduced directly from the format proposal and what requires additional implementation decisions.

Software factors also offer more flexibility than a programmable exponent bias. Adjusting an exponent corresponds to scaling by powers of 2. A software factor represented in a wider type can take other values. The authors see little reason to complicate the format’s bias when a more flexible adaptation mechanism is already needed.

#### Convert values and handle overflow deliberately

After scaling, values are converted to the selected FP8 representation. This conversion removes distinctions that the smaller format cannot retain. If a finite value exceeds the supported range under the saturating policy described by the authors, it is clipped to the largest representable magnitude.

This differs from the overflow response used in the FP16 automatic mixed-precision procedure discussed in the paper. In that setting, overflow can lead to a skipped parameter update and a reduced loss-scaling factor. Applying the same response directly to FP8 would skip too many updates, according to the authors, because its narrower range makes overflow more likely.

The paper’s treatment is therefore not simply to take a successful FP16 procedure and reduce its storage width. Some parts of the surrounding numerical policy must change. Saturation allows the training process to continue while acknowledging that extreme values cannot all be preserved exactly.

Special values follow their own conversion rules. A wider-precision NaN becomes a NaN in FP8. Because E4M3 has no infinity representation, a wider-precision infinity also becomes a NaN when converted to E4M3. This preserves an exceptional marker rather than silently treating that input as an ordinary finite quantity.

The authors connect this behavior to systems combining FP8 and FP16, where automatic loss-scale adjustment may depend on detecting exceptional results. They also allow for a nonsaturating conversion mode where an application needs stricter overflow behavior. The format is intended to support such implementation choices rather than dictate a single conversion mode for every use.

Rounding is similarly separated from the interchange definition. The paper mentions nearest-even and stochastic rounding as possibilities, while leaving the choice to software or hardware. Accordingly, using E4M3 does not uniquely determine the rounding procedure of a training implementation.

#### Compute in a wider representation

The intended computational arrangement resembles established mixed-precision practice. Compact tensors supply inputs to arithmetic, while results are produced in a wider representation. A later conversion may place those results into FP8 before storage, but that is a separate decision.

For matrix multiplication, wider outputs allow many products to contribute without forcing every intermediate result into the small input format. For less arithmetic-intensive operations, the paper describes converting inputs to a wider type before computation. Normalization, nonlinear functions, and optimizer updates therefore need not share the precision restrictions of matrix-operation inputs.

Scaling must also be undone. A value recovered from FP8 can be multiplied by the inverse of its scaling factor. For a linear operation, the appropriate scale correction can instead be applied after the operation produces its wider-precision output.

The authors argue that this extra arithmetic is modest. In a matrix operation, scale restoration can be applied at the dot-product output rather than separately to every multiply-accumulate contribution. Its cost is spread over the larger amount of arithmetic used to produce that output.

For operations limited mainly by memory movement, the authors expect an additional arithmetic instruction per value to be comparatively unimportant. This is an implementation rationale instead of a benchmark result in the reported experiments. It explains why explicit scaling can be practical despite introducing work absent from an unscaled datatype.

#### Define exactly where the experiments impose FP8

The training experiments use simulated FP8. Before an affected operation, the tensor values are scaled, restricted to FP8-representable values, and converted back to the wider type used for computation. The surrounding arithmetic then runs in FP16 or bfloat16.

This procedure lets the authors study the effect of the interchange representation without emulating every low-precision instruction. They give two reasons for that choice. Different processors may use different arithmetic implementations, and a complete software emulation would be too slow for the large training experiments they consider necessary.

The main precision boundary is the input to a convolution or matrix multiplication. The paper groups these dot-product-intensive calculations under GEMM operations. Unless a separate experiment says otherwise, the affected inputs are weights, activations, and activation gradients entering those operations.

Outputs generally remain wider. They often feed normalization or nonlinear processing, and some of that processing can be fused with the preceding matrix operation. The principal experiment thus asks whether these input tensors can be restricted safely, not whether the whole computational graph can operate in FP8.

The training comparison also keeps the architecture, parameter initialization, and optimizer hyper-parameters aligned with the higher-precision reference. These controls matter because changing the training recipe could hide a numerical problem or introduce a separate explanation for success.

#### Calibrate already trained networks for inference

The post-training inference procedure begins with networks trained in a wider floating-point format. Both the int8 comparison and the E4M3 conversion use a scale for each weight channel and a scale for each activation tensor. This makes the scaling granularity part of the controlled setup.

For weights, the authors use maximum-based calibration: the factor is chosen so the observed largest magnitude is representable. For activations, they select the best result among maximum-based, percentile-based, and mean-squared-error calibration. These alternatives are ways to choose how the available range should fit the activation values.

The quantized inputs include those entering the attention-related batched matrix multiplications, not only matrix operations involving learned weights. This matters for [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) computations because activation-only matrix products are also part of the numerical workload.

Finally, the authors extend the inference experiment to residual connections, the additive paths carrying intermediate values through the network. This is a deliberate expansion beyond the main GEMM-input boundary. It tests whether the same scaling assumptions remain adequate when more intermediate tensors use FP8.

### Experiments and results

#### What the training comparisons hold constant

The principal references are training runs using FP16 or bfloat16. The authors treat those formats as established higher-precision training options, citing earlier evidence that they can match single-precision outcomes. FP8 is therefore evaluated against a practical reduced-precision reference, rather than only against a fully single-precision system.

The architecture, initialization, and optimizer hyper-parameters are retained. The experiments consequently investigate whether restricting selected values to FP8 can fit the existing training procedure. They do not depend on redesigning a network specifically to make the small format successful.

The reported training outcomes use task-appropriate measures. Image classification is assessed through validation top-1 accuracy. Translation uses sacreBLEU. Language training uses perplexity, where lower values indicate a better result under the reported evaluation. These metrics should not be collapsed into a single universal notion of accuracy: they test different tasks and different aspects of prediction.

The authors interpret many comparisons through ordinary variation between runs. Training initialized with different random seeds can finish at slightly different quality levels even without changing precision. Their claim is generally that FP8 falls within that existing variation, instead of that it reproduces every reference value exactly.

#### Image classification

All image-classification networks are trained using ImageNet ILSVRC12, with top-1 accuracy measured on its validation data. Top-1 accuracy asks whether the highest-ranked predicted class is the correct one. The metric is appropriate for comparing how numerical restrictions affect the final classification decision.

The evaluated group contains convolutional architectures and DeiT, which uses a Transformer architecture. The latter connects the experiment to [Training data-efficient image transformers & distillation through attention](https://md.research.elamur.ai/free/en/papers/touvron-2020-training-data-efficient-image-transformers/). This architectural variety matters because a format that works only for convolution would support a narrower conclusion.

The authors restrict every GEMM operation’s inputs, including the initial convolution and final fully connected layer. They emphasize these boundaries because earlier studies had left them at wider precision. Their result therefore supports a broader scope of input quantization than a setup that protects the beginning and end of the network.

Most image experiments reach quality within the variation of the corresponding higher-precision runs. MobileNet v2 is the exception identified in the discussion. The authors state that recovering its remaining accuracy is ongoing work. That exception prevents the image result from being read as a guarantee for every architecture, even within the evaluated task.

#### Translation across architectural families

The translation experiments use WMT 2016 English-to-German training data. Evaluation is performed on newstest2014 using sacreBLEU, an implementation of the [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/). Higher scores are better under this measure.

The authors include Transformer translation systems and the recurrent GNMT system based on LSTM components. Their reason for retaining GNMT is coverage: even though Transformer systems had displaced recurrent ones in translation practice, recurrent computation remained relevant to other tasks.

This makes the experiment more than another test of scale. It asks whether the numerical proposal survives a different organization of computation. Recurrent and attention-based systems need not produce the same distributions of intermediate values or gradients.

The discussion reports FP8 translation outcomes within the normal variation of the reference runs. It does not establish that FP8 improves translation quality. The useful result is that the selected precision restrictions can be introduced without an apparent task-quality penalty beyond the variation already present in training.

#### Language training and the largest comparison

For the language-training experiments, the paper distinguishes its data sources. Transformer language systems use Wikipedia. The GPT runs use a modified version of The Pile, supplemented with Common Crawl material and datasets derived from it.

The GPT data procedure follows the account in [Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B](https://md.research.elamur.ai/free/en/papers/smith-2022-using-deepspeed-megatron-train-megatron/). This reference specifies the origin of the training setup; it should not be confused with a new dataset contribution by the FP8 paper.

The authors again report outcomes consistent with ordinary variation from wider-precision training. Their inclusion of very large GPT systems addresses a concern raised earlier in the paper: numerical behavior can change with network size, so small-network success is not enough.

The largest comparison involves 175B parameters. Its reported checkpoint is at 75% of training because the bfloat16 run had not finished. The FP8 run was complete, and its loss trajectory was described as consistent with successful training. These facts support feasibility at substantial scale, while leaving the final matched comparison incomplete.

The distinction between training loss and downstream behavior also matters. The language-training result concerns perplexity. It does not, on its own, demonstrate that every use of the resulting system would behave identically under the different numerical conditions.

#### Post-training conversion

The inference experiments ask a separate question: can a network learned in a wider format be converted to a compact representation afterward? The comparison uses int8 and E4M3 with matching scaling granularity. Inputs to all matrix multiplications are included, including the batched operations used in attention.

For BERT evaluated on the Stanford Question Answering Dataset, the discussion reports that E4M3 preserves quality while int8 loses substantial quality. The table’s stated measure for this kind of evaluation is F1, for which higher is better. The result concerns the tested post-training conversion procedure, instead of every possible int8 implementation.

GPT inference is evaluated on wikitext103 using perplexity. Here too, the authors report better quality retention with FP8 than with the tested int8 conversion. The format’s nonlinear distribution of representable values is part of the motivation, while calibration remains an essential part of the actual procedure.

An additional unscaled-casting test yields perplexity of 11.0. The surrounding discussion uses it to show that simply choosing FP8 is insufficient. Because the description does not fully identify every condition attached to that observation, it should be treated as supporting evidence about scaling rather than merged into a more specific comparison.

#### The numerical comparison that exposes scaling

The most explicit controlled numerical comparison in the discussion uses a bfloat16-trained GPT system and wikitext103 perplexity. It contrasts a fixed exponent adjustment with calibrated scales and distinguishes quantizing GEMM inputs from also quantizing residual connections.

GPT inference on wikitext103, perplexity by scaling and tensor coverage Separate calibration preserves quality much better when residual connections also use FP8.

**The numbers**

| System or setting | perplexity |
| --- | --- |
| bfloat16 reference | 10.19 |
| FP8 GEMM and residuals, shared bias 7 | 12.59 |
| FP8 GEMM inputs, calibrated scales (this paper) | 10.29 |
| FP8 GEMM and residuals, calibrated scales | 10.44 |

The best FP8 result shown uses calibrated scales and restricts quantization to GEMM inputs. The broader calibrated setup also remains close to the reference in the authors’ interpretation. In contrast, a shared bias performs poorly when residual tensors are included.

These results should not be read as a speed comparison. They measure language-prediction quality under different numerical settings. Their value is diagnostic: they show that scaling granularity and the set of quantized tensors can materially change the outcome even when the nominal FP8 encoding stays the same.

### What the ablations show

#### A shared adjustment can work within a narrower boundary

The exponent-bias analysis starts with post-training conversion of a bfloat16-trained GPT network. Weights and activations are cast into E4M3 without tensor-specific calibration, while the authors vary the exponent bias.

When only the GEMM inputs are converted, several choices in the range from 7 to 10 match the reference quality in the authors’ account. This means the narrower setup does not necessarily require a distinct activation scale everywhere to achieve an acceptable result.

That finding helps delimit the scaling claim. The paper is not arguing that every tensor in every network always requires an independently tuned scale. Some workloads and precision boundaries can tolerate a shared placement of the FP8 range. The important question is whether that remains true after the scope changes.

The analysis also separates format adequacy from one particular default setting. If moving the representable range changes the outcome, a poor result at one bias need not mean the mantissa and exponent allocation are intrinsically unusable. It may mean the tensor values are poorly aligned with the available numerical range.

#### Residual connections change the requirement

The next comparison also quantizes the inputs to residual addition. This moves FP8 into intermediate paths that were outside the principal GEMM-input setup. It is relevant to reducing storage and memory traffic more broadly.

Under this expanded restriction, the authors find no shared exponent bias that provides sufficient quality. The result at bias 7 is the one illustrated in the chart. It shows that a setting acceptable for one subset of tensors cannot automatically be carried over to a larger subset.

This is a controlled warning against interpreting success too broadly. The nominal format has not changed, but the numerical demands placed on it have. The added tensors create a more difficult combined range problem.

The analysis does not establish that residual connections must always remain in wider precision. Instead, it establishes that their conversion makes the shared-adjustment strategy inadequate in this experiment. The next comparison tests whether a more local adaptation can address that problem.

#### Calibration recovers much of the lost quality

The authors then calibrate scales using a weight factor per channel and an activation factor per tensor. Both the GEMM-only setup and the setup including residual connections improve relative to the unsuccessful shared-bias alternative.

The chart shows the result for each scope. The broader calibrated setting is slightly worse than the narrower one, while both are much closer to the reference than the shared-bias residual setting. No computed difference is needed to understand the main pattern: local calibration makes the expanded use of FP8 viable under the authors’ quality criterion.

This supports the proposal to leave scaling in software. The format can retain its fixed exponent bias while a deployment adjusts the interpretation of different arrays. The binary representation and the calibration policy solve different parts of the problem.

The result is strongest as evidence for the usefulness of scaling granularity. It is less decisive about the exact reason every individual tensor needs its particular factor. The paper does not provide a layer-by-layer causal analysis of which distributions create the failure.

#### Holding the training recipe steady is another control

Across the training experiments, retaining the reference architecture and optimizer settings acts as a broad control. It rules out an explanation in which FP8 works only because the authors also introduce a specially adapted network or a different optimization recipe.

The evidence is therefore relevant to compatibility. A user of an existing wider-precision procedure could plausibly investigate FP8 without assuming that every surrounding choice must be redesigned first. This is one reason the authors emphasize unchanged hyper-parameters.

However, this control is not an ablation of every design decision. The paper does not establish the independent contribution of E4M3’s special-value policy through a complete matched training study in which only that policy changes. Nor does it supply a comprehensive comparison of rounding modes or scale-update rules.

#### The format rationale is not itself an empirical ablation

Several design arguments are analytical. E4M3 gains finite range by reclaiming special-value patterns. E5M2 keeps conventional handling because the potential gain is smaller and the existing range is considered sufficient in the evaluated cases.

Those arguments explain why the proposal has its particular shape. They should not be mistaken for evidence that every alternative encoding was experimentally eliminated. The authors provide a reasoned design supported by broad task results, together with a more focused scaling analysis.

Similarly, the MobileNet v2 exception identifies a remaining problem but does not diagnose it through a detailed controlled experiment. The paper’s analyses tell a clear story about scaling and tensor coverage. They leave other questions, including the exact source of architecture-specific sensitivity, less resolved.

### Limitations

#### Limits the authors state: arithmetic is simulated

The authors explicitly study simulated FP8 values while computing in a wider format. This is an appropriate way to examine representability, but it is a boundary on what the experiments establish.

The results do not specify how every native FP8 matrix instruction should accumulate products, round intermediate quantities, or expose exceptional behavior. Processor implementations may make different choices. The paper intentionally leaves room for that variation.

As a consequence, successful training under the simulated setup is not a complete validation of every hardware implementation carrying the same datatype name. A native implementation still needs to preserve the relevant numerical behavior of the tested arrangement.

The same distinction limits performance claims. Smaller storage and arithmetic pipelines motivate the proposal, and reduced memory pressure is a plausible benefit described by the authors. The training-quality experiments do not provide a direct measured comparison of execution time, energy consumption, or hardware area.

#### Limits the authors state: the main setup leaves many values wider

Most experiments restrict the inputs to GEMM operations. Outputs and many other intermediate values remain in a wider representation. Normalization, nonlinear processing, and optimizer updates therefore are not demonstrated as universally suitable for FP8.

The authors identify moving more tensors into FP8 as future work. That is not a minor qualification. The potential resource benefit depends in part on how much of the actual computation and storage can use the compact representation.

The residual experiment shows why this boundary must be stated. Expanding the set of quantized tensors introduces a scaling problem absent from the narrower setup. Further expansion could expose additional requirements, and the paper does not establish those requirements in advance.

#### Limits the authors state: scale selection is incompletely specified

The paper gives the general goal of training-time scaling but leaves the detailed heuristic outside its scope. A complete training implementation must still decide how factors are initialized, updated, and associated with changing tensor values.

The inference experiments are more explicit about calibration choices. Even there, selecting the best activation calibration among several methods is part of the procedure. The good results therefore should not be attributed to the binary format alone.

This limitation does not weaken the rationale for software scaling. It clarifies the level of the contribution. The proposal defines a useful numerical interface and demonstrates successful use, while leaving some operational policy to implementations.

#### Limits the authors state: not every training result matches

MobileNet v2 falls outside the general image-classification conclusion. The authors acknowledge remaining accuracy loss and describe recovery as ongoing work.

This exception matters because the paper’s architectural breadth could otherwise encourage an overly universal reading. Success across convolutional, recurrent, and attention-based systems does not mean that every network within those families behaves similarly.

The largest language-training comparison also remains incomplete at the final checkpoint. The bfloat16 reference had reached only the reported portion of training, although the FP8 run was complete. A successful FP8 trajectory and an intermediate comparison provide evidence of feasibility, but they do not substitute for a completed paired endpoint.

#### A careful reader’s limit: variation is not a universal equivalence test

The authors repeatedly interpret results as lying within ordinary run-to-run variation. That is a sensible practical standard for stochastic training, where identical procedures can finish at somewhat different values.

Even so, being within observed variation is not the same as proving that the numerical procedures are interchangeable under every seed or setting. A reader should preserve the scope of the comparison: the evaluated tasks, training recipes, precision boundaries, and reported runs.

The discussion does not establish a universal tolerance threshold for all future applications. An application with a strict quality requirement may need a more targeted evaluation than the broad architecture-level evidence given here.

This is especially relevant when the final use differs from the reported measure. Matching training perplexity does not guarantee identical behavior on every downstream language task. Matching classification accuracy does not show that every individual prediction or confidence value is preserved.

#### A careful reader’s limit: the inference comparison is procedure-specific

The reported int8 outcomes arise from the particular post-training conversion setup used by the authors. The comparison controls scaling granularity and considers several activation-calibration choices, which makes it informative.

It does not cover all possible integer quantization schemes, alternative grouping rules, or additional recovery procedures. The paper itself discusses quantization-aware training as a separate possibility. Its experiments do not justify a claim that floating point always outperforms every integer approach.

Likewise, the success of E4M3 after calibration is not evidence that uncalibrated casting is generally safe. The unscaled observation and the shared-bias residual failure show the opposite: representation choice and preparation procedure must be assessed together.

#### A careful reader’s limit: more range does not explain every success

The E4M3 design gains a useful extension of finite range, and the scaling analysis makes range alignment visibly important. Yet the paper does not isolate every source of numerical error.

A tensor can suffer from values outside the representable range, from coarse spacing within that range, or from interaction with later operations. The broad results do not assign a separate causal contribution to each mechanism.

The recommendation to use E4M3 for forward values and E5M2 for gradients is supported by the authors’ empirical experience and prior work they discuss. It is not presented as a mathematical guarantee that these assignments are optimal for every possible tensor distribution.

#### A careful reader’s limit: deployment is simplified, not fully specified

Sharing datatypes between training and inference can remove an important source of mismatch. It does not automatically determine the whole deployment system.

An implementation still needs scale metadata, conversion policies, supported operations, and decisions about which values remain wider. The paper’s own post-training experiments show that attention operations and residual paths deserve explicit treatment.

The most defensible practical conclusion is therefore bounded. The proposed encodings can support useful training and inference across the evaluated settings, with scaling and mixed precision as essential companions. A complete deployment claim needs additional evidence about the actual implementation and the application’s required behavior.

### What came after

The later works connected to FP8 Formats for Deep Learning span attention kernels, inference serving, quantization, architectural efficiency, and sensitivity analysis. Their citation of the paper establishes a connection to its numerical-design context. The information available about these works is much narrower than the account of FP8 itself, so their titles support a map of subsequent questions rather than a detailed reconstruction of their methods or results.

[FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision](https://md.research.elamur.ai/free/en/papers/shah-2024-flashattention-3-fast-accurate-attention/) places low precision alongside execution scheduling in the attention computation. This is a natural continuation of the distinction the FP8 paper makes between a numerical format and the arithmetic implementation that consumes it. The earlier paper asks whether compact input values preserve useful behavior; the later title foregrounds the joint problem of speed, numerical quality, and execution structure. Its citation does not by itself establish which proposed encoding or scaling policy is used in every part of the method.

[FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving](https://md.research.elamur.ai/free/en/papers/ye-2025-flashinfer-efficient-customizable-attention-engine/) moves the surrounding discussion towards an inference-serving engine. That setting makes attention operations and implementation flexibility central concerns. FP8’s potential value here lies in the interface between compact numerical inputs and efficient execution, but the title alone does not specify the engine’s datatype choices. The connection should therefore be read as evidence that format design belongs within a larger serving problem, rather than as proof that the complete FP8 training procedure was adopted.

[Atom: Low-bit Quantization for Efficient and Accurate LLM Serving](https://md.research.elamur.ai/free/en/papers/zhao-2023-atom-low-bit-quantization-efficient/) addresses the same broad tension between compact representations and retained quality, now explicitly framed around serving. The FP8 paper provides one example of how that tension can be managed through format choice and scaling. Atom’s title identifies a related deployment objective, but it does not establish that its quantization scheme is equivalent to E4M3 or E5M2. A citation can carry forward the problem and its evidence without carrying forward the exact representation.

[The case for 4-bit precision: k-bit Inference Scaling Laws](https://md.research.elamur.ai/free/en/papers/dettmers-2022-case-4-bit-precision-k/) broadens the precision question towards a smaller representation and an inference-scaling perspective. The useful connection is conceptual: once compact numerical formats are plausible, the question becomes which precision best serves a particular resource constraint. The FP8 results do not answer that later question, and the later title does not justify importing its conclusions backward. Together, the works indicate that preserving quality at one width is part of a larger investigation into numerical allocation.

[LLM Inference Unveiled: Survey and Roofline Model Insights](https://md.research.elamur.ai/free/en/papers/yuan-2024-llm-inference-unveiled-survey-roofline/) places inference within a systems-analysis frame. The FP8 paper’s discussion of arithmetic intensity and memory pressure supplies a relevant distinction: compact values may help different operations for different reasons. A survey organized around roofline analysis is concerned with that broader relationship between computation and data movement. The available description does not establish any particular quantitative conclusion, so the connection is best understood as one of analytical scope.

[Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models](https://md.research.elamur.ai/free/en/papers/blakeman-2025-nemotron-h-family-accurate-efficient/) introduces another architectural setting into the citation trail. Its title joins accuracy and efficiency in a hybrid family, whereas the FP8 paper studies numerical representation across several architectural types. The connection highlights a continuing need to test precision choices as architectures change. It does not establish that the original recommendations transfer unchanged to every component of the later family.

[Lost in Quantization: Activation Outliers Explain Language-Specific FP8 Sensitivity in Llama-3](https://md.research.elamur.ai/free/en/papers/silva-2026-lost-quantization-activation-outliers-explain/) is the most directly focused continuation of a limitation visible in the earlier paper. Its title identifies activation outliers as an explanation for language-specific sensitivity to FP8. That subject narrows the question from broad feasibility to uneven numerical behavior across conditions. The original scaling analysis already shows that tensor distributions matter; the later work’s stated focus asks how unusual activation values can make that dependence more specific.

These connections preserve the central distinction of the original contribution. A compact floating-point encoding can be a useful foundation without settling kernel design, serving strategy, architectural choice, or every source of sensitivity. What travels most clearly across the later work is the need to evaluate numerical representation together with the values being represented and the system that uses them.

## Cite

Cite as Paulius Micikevicius, Dusan Stosic, Neil Burgess, Marius Cornea, Pradeep Dubey, Richard Grisenthwaite, Sangwon Ha, Alexander Heinecke, Patrick Judd, John Kamalu, Naveen Mellempudi, Stuart Oberman, Mohammad Shoeybi, Michael Siu and Hao Wu. 2022. FP8 Formats for Deep Learning. arXiv:2209.05433.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2209.05433](https://doi.org/10.48550/arxiv.2209.05433) · [arXiv 2209.05433](https://arxiv.org/abs/2209.05433)

```bibtex
@misc{micikevicius2022fp8,
  title = {{FP8 Formats for Deep Learning}},
  author = {Paulius Micikevicius, Dusan Stosic, Neil Burgess, Marius Cornea, Pradeep Dubey, Richard Grisenthwaite, Sangwon Ha, Alexander Heinecke, Patrick Judd, John Kamalu, Naveen Mellempudi, Stuart Oberman, Mohammad Shoeybi, Michael Siu and Hao Wu},
  year = {2022},
  doi = {10.48550/arxiv.2209.05433},
  eprint = {2209.05433},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2209.05433}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
