FP8 Square Root Instructions for Lower Memory Bandwidth

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing machine learning and artificial intelligence applications face challenges with high computational intensity and memory bandwidth issues due to the use of classical IEEE-754 32-bit and 64-bit arithmetic, which can be addressed by employing lower-precision arithmetic such as 8-bit floating point formats like BF8 and HF8 for improved performance and reduced memory utilization.

Innovation Solution

The implementation of instructions for calculating square roots and reciprocal square roots of FP8 data elements, which include operations for packed data elements using variable exponential bias and support for stochastic rounding, enabling efficient execution on vector registers and reducing the need for memory conversions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If classical IEEE-754 32-bit and 64-bit arithmetic is used, then numerical accuracy is maintained, but computational intensity and memory bandwidth requirements increase

Engineering Contradiction:
Improvenumerical accuracyVSAvoidcomputational intensity
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent changes the precision parameter of floating-point arithmetic from classical 32-bit/64-bit to 8-bit format, fundamentally altering the data representation parameters (1 sign bit, 4 exponent bits, 3 fraction bits) to reduce computational intensity while maintaining adequate numerical accuracy for machine learning applications

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If classical IEEE-754 32-bit and 64-bit arithmetic is used, then numerical accuracy is maintained, but memory bandwidth utilization increases

Engineering Contradiction:
Improvenumerical accuracyVSAvoidmemory bandwidth
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent changes the data width parameter from 32-bit/64-bit to 8-bit floating-point format, reducing the quantity of data that needs to be transferred between memory and processing units, thereby decreasing memory bandwidth requirements while maintaining sufficient numerical accuracy

Inventive Principle:
Principle #35Parameter changes

3Productivity

If 8-bit floating point format is used, then computational speed and memory utilization are improved, but support for standard arithmetic operations is reduced

Engineering Contradiction:
Improvecomputational speedVSAvoidarithmetic operation support
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal 8-bit floating-point instruction set that provides multi-functional support for various arithmetic operations including multiplication, addition, subtraction, division, square root, and reciprocal square root, enabling the format to handle diverse machine learning workloads while maintaining computational speed

Inventive Principle:
Principle #6Universality (Multi-functionality)

4Quantity of substance

If 8-bit floating point format is used, then memory bandwidth requirements are reduced, but complexity of handling variable exponential bias increases

Engineering Contradiction:
Improvememory bandwidthVSAvoidvariable exponential bias handling
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent implements self-service mechanisms where the execution circuitry automatically handles variable exponential bias adjustment during arithmetic operations without requiring external intervention or complex control logic, thereby reducing the perceived complexity for software developers while maintaining memory bandwidth efficiency

Inventive Principle:
Principle #25Self-service

Data Source

PatentEP4318227B18-bit floating point square root and/or reciprocal square root instructions
Publication Date: 2025.09.24 INTEL CORP
  • EP4318227B1 patent drawingFigure 1
  • EP4318227B1 patent drawingFigure 2
  • EP4318227B1 patent drawingFigure 3

AI summary

Techniques for performing square root or reciprocal square root calculations on FP8 data elements in response to an instruction are described. An example of an instruction is one that includes fields for an opcode, an identification of a location of a packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operand, a calculation of a square root value of a FP8 data element in that position and store a result of each square root into a corresponding data element position of the packed data destination operand.