# US 2026/0278351 A1 · Accelerating SoftMax with Mixed Precision Operations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0278351 A1
- Document ID: US20260278351A1
- Status: Published application
- Kind: A1
- Application number: 19/557,409
- Filed: 2026-03-05
- Published: 2026-09-17
- Earliest claimed: 2025-03-17
- Assignees: NVIDIA Corporation
- Applicants: Nvidia Corporation
- Inventors: Robert Ohannessian, Jr.; Matthew Ashcraft; Brent Boswell; Ilyas Elkin; Jian Liu; Ming Yiu Siu; Cherin Joseph; Ajay Sudarshan Tirumala; Chao Zhou; Elliot Liu
- Web page: https://patentgrep.com/patent/US20260278351A1

## CPC

- G06N 3/048: Activation functions
- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06F 7/485: Adding; Subtracting {(G06F7/4833, G06F7/4836 take precedence)}
- G06F 7/4873: {Dividing}
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Hardware-accelerated fused mixed precision floating point instructions include built-in precision conversion capabilities to eliminate overhead associated with switching between precisions. Such mixed precision operations that can be used to accelerate probability distribution function operations like SoftMax and Flash Attention, and/or for accelerated conversion to MX microscaling formats in other contexts. Using the new mixed precision instructions reduces the instruction count in half in example SoftMax/Flash Attention implementations.

## Claims

### Claim 1

A neural network processor comprising:
a hardware calculator that receives a vector of logits; exponentiates each element of the vector; sums exponentiated values to provide a sum; and divides each exponentiated element by the sum to produce a probability distribution of results each of which are between 0 and 1 and all of which together sum to 1,
wherein the hardware calculator includes a hardware instruction decoder configured to decode a single instruction call controlling hardware to (a) compute a value in first precision floating point and (b) convert the computed first precision floating point value to a second precision floating point value having a second floating point precision different than the first precision floating point.

### Claim 2 (depends on 1)

The neural network processor of claim 1 wherein the hardware instruction decoder is configured to decode one of (a) a mixed precision addition/subtraction operation code, or (b) a mixed precision multiply operation code, or (c) a mixed precision multiply-add operation code, configured to compute a single precision floating point value and convert the single precision floating point value to a half precision floating point value.

### Claim 3

A hardware microinstruction decoder configured to decode a single instruction that performs an operation on results of a first math instruction at a first floating point fixed precision and converts the results to a second floating point fixed precision less than the first floating point fixed precision.

### Claim 4

A processing circuit comprising:
an arithmetic logic circuit configured to produce a floating point difference by performing a subtraction based on a first floating point operand at a first floating point precision;
a floating point precision converting circuit connected to the arithmetic logic circuit and configured to convert the floating point difference to a second floating point precision difference having a second floating point precision different from the first floating point precision; and
a storage connected to the floating point precision converting circuit and configured to pack the second floating point precision difference with at least one other floating point value in a packed storage format,
wherein the processing circuit is configured to perform both the subtraction and the floating point precision conversion in response to a single instruction.

### Claim 5 (depends on 4)

The processing circuit of claim 4 wherein the second floating point precision is fp16 or bf16 or fp8 or fp6 or fp4.

### Claim 6 (depends on 4)

The processing circuit of claim 4 wherein the second floating point precision is no more than half of the first floating point precision.

### Claim 7 (depends on 4)

The processing circuit of claim 4 further comprising:
a scaling circuit connected to the floating point precision converting circuit and/or the storage and configured to scale the packed precision-converted differences;
an exponentiation circuit connected to the scaling circuit and/or the storage and configured to apply an exponential operation to the scaled precision-converted differences to produce results at the first floating point precision; and
a summer connected to the exponentiation circuit and/or the storage and configured to sum results the exponentiation circuit produces to generate a sum at the first floating point precision.

### Claim 8 (depends on 5)

The processing circuit of claim 5 further comprising:
a divider circuit connected to receive the sum and to calculate exponent reciprocals of the sum at the second floating point precision.

### Claim 9 (depends on 7)

The processing circuit of claim 7 further comprising:
a quantizing circuit configured to quantize pairs of calculated exponent reciprocals to provide reduced floating point precision results.

### Claim 10 (depends on 9)

The processing circuit of claim 9 further comprising:
a further scaling circuit configured to reduce precision of the calculated exponent reciprocals to a third floating point precision less than the first floating point precision and less than the second floating point precision.

### Claim 11 (depends on 4)

The processing circuit of claim 4 wherein the arithmetic logic circuit is configured to flush output subnormals to 0.

### Claim 12

An instruction decoder configuring arithmetic logic circuitry to calculate probability distribution function parameters, the instruction decoder configured to perform operations comprising:
decode a first fused floating point instruction commanding (a) computation of a delta between each floating point value of a probability distribution function input data block at a first floating point precision and a maximum value of the input data block at the first floating point precision, (b) conversion of computed deltas to a second floating point precision different from the first floating point precision, and (c) packing converted computed deltas pairwise; and
decode a second fused floating point instruction commanding scaling by a specified exponential-only scaling factor to produce floating point values divided by the specified exponential-only scaling factor and further converted to a reduced precision.

### Claim 13 (depends on 12)

The instruction decoder of claim 12 wherein the probability distribution function comprises SoftMax and/or Flash Attention.

### Claim 14 (depends on 12)

The instruction decoder of claim 12 wherein the second floating point precision comprises fp16 or bf16 or fp8 or fp6 or fp4.

### Claim 15 (depends on 12)

The instruction decoder of claim 12 wherein the instruction decoder is further configured to decode an instruction that sums two parallel accumulators with two exponentials of the second floating point precision.

### Claim 16

Computing circuitry comprising:
an input circuit configured to accept first and second input values and an input scale factor in exponent format; and
a scaling/dividing circuit that divides the first and second input values by the input scale factor in exponent format and then converts scaled outputs into a narrower format,
wherein the input circuit and the scaling/dividing circuit both operate in response to the same single instruction call.

### Claim 17 (depends on 16)

The computing circuitry of claim 16 wherein the scaling/dividing circuit is configured to flush input subnormals.

### Claim 18 (depends on 16)

The computing circuitry of claim 16 wherein the scaling/dividing circuit is configured to selectively perform block quantization to a selected one of microscaling FP4/FP6/FP8 formats based on parameters of the same instruction.

### Claim 19 (depends on 16)

The computing circuitry of claim 16 wherein the exponent format is E8.

### Claim 20 (depends on 16)

The computing circuit of claim 16 further comprising a matrix multiplication circuit configured to perform a matrix-multiply-accumulate operation on the converted quotients.

### Claim 21 (depends on 16)

The computing circuit of claim 16 wherein the input scale factor is factored out as a common scaling factor from a set of operands.

### Claim 22 (depends on 16)

The computing circuit of claim 16 further comprising an output circuit that packs the converted quotients such that the computing circuit fuses the division by the input scaling factor with conversion to the narrower format(s) in the single instruction.

### Claim 23 (depends on 16)

The computing circuit of claim 16 wherein the scaling/divider circuit generates outputs with different exponents.

### Claim 24

Method performed by at least one processor accelerated by hardware circuits, comprising:
commanding, with a first fused mixed precision floating point instruction call, computing deltas between each value of an input data block and a maximum value of the input data block, converting resulting differences into a reduced precision, and storing the resulting differences in a packed format;
commanding, with a second instruction call, exponentiation by scaling the stored resulting differences;
commanding, with a third instruction call, applying two to the power of x function to produce exponentials;
commanding, with a fourth, fused mixed precision instruction call, summing the exponentials to produce a sum;
commanding, with a fifth instruction call, reciprocating the summed exponentials to form a denominator; and
commanding, with a sixth instruction call, multiplying each exponential by the denominator to produce results.

### Claim 25 (depends on 24)

The method of claim 24 further including:
commanding, with a seventh, fused mixed precision floating point instruction call, scaling of the results; and
commanding, with an eighth fused mixed precision floating point instruction call, further scaling of the scaled results by an inputted common scale factor.

### Claim 26 (depends on 24)

The method of claim 24 further including flushing output subnormals to 0.

### Claim 27

An instruction set architecture (ISA) supported by instruction decoding circuitry capable of decoding:
a first mixed precision fused addition/subtraction and fixed floating point precision conversion instruction,
a second mixed precision fused multiply and fixed floating point precision conversion instruction,
a third mixed precision half-precision fused multiply-add and fixed floating point precision conversion instruction,
a fourth mixed precision single precision fused multiply-add instruction providing single to half fixed floating point precision conversion,
a fifth mixed precision fused half-precision floating-point multiplication and fixed floating point precision conversion instruction, and
a sixth mixed precision fused scaling and fixed floating point precision conversion instruction.

### Claim 28

A non-transitory memory device storing code that when executed performs computations, the stored code comprising:
a first mixed precision fused addition/subtraction and fixed floating point precision conversion instruction,
a second mixed precision fused multiply and fixed floating point precision conversion instruction,
a third mixed precision half-precision fused multiply-add and fixed floating point precision conversion instruction,
a fourth mixed precision fused multiply-add instruction providing single to half fixed floating point precision conversion,
a fifth mixed precision fused half-precision floating-point multiplication and fixed floating point precision conversion instruction, and
a sixth mixed precision fused scaling and fixed floating point precision conversion instruction.
