Neural Processor Encoding with Fixed Exponents and Variable Mantissas

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing deep learning quantization methods using floating point representation face slow computation speeds due to the need for separate arithmetic units, while fixed point representation lacks flexibility in expressing a wide range of numbers.

Innovation Solution

A neural processor apparatus and method that converts parameter values to a format with a fixed-length exponent and variable-length mantissa using a mapping table based on parameter distribution, enabling efficient computation through a shifter and comparator.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If floating point representation is used, then a larger range of numbers can be expressed, but computation speed decreases requiring separate floating point arithmetic units

Engineering Contradiction:
Improverange of numbersVSAvoidcomputation speed
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent segments the floating-point number representation into two distinct parts: a fixed-length exponent field and a variable-length mantissa field. This segmentation allows the exponent to remain fixed for faster processing while the mantissa can vary in length to represent different ranges, thus maintaining versatility without sacrificing computation speed.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter structure by fixing the exponent length while allowing the mantissa length to vary. This parameter change enables the system to express a large range of numbers (through variable mantissa) while maintaining computation speed (through fixed exponent that can be processed efficiently by standard arithmetic units).

Inventive Principle:
Principle #35Parameter changes

2Productivity

If fixed point representation is used, then computation speed improves, but flexibility in expressing a wide range of numbers decreases

Engineering Contradiction:
Improvecomputation speedVSAvoidflexibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent introduces asymmetry into the number representation by making the mantissa length variable while keeping the exponent length fixed. This asymmetric structure provides flexibility (variable mantissa can adapt to different precision needs) while maintaining the computational efficiency of fixed-point operations (fixed exponent).

Inventive Principle:
Principle #4Asymmetry

Solution Approach 2:

The patent makes the mantissa length dynamic rather than fixed. The variable-length mantissa can be adjusted based on the specific computational requirements, providing flexibility while the fixed exponent maintains computation speed. This dynamic structure allows the system to adapt between precision and range needs.

Inventive Principle:
Principle #15Dynamics

3Quantity of substance

If variable-length mantissa is used, then memory usage is reduced, but complexity of number format increases

Engineering Contradiction:
Improvememory usageVSAvoidnumber format complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent extracts the length information of the mantissa as a separate metadata element. By storing the mantissa length separately from the actual mantissa data, the system can efficiently represent variable-length mantissas without increasing the core computational complexity. This extraction allows memory optimization while keeping the number format manageable.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS20250216885A1Method and appratus with variable parameter expression
Publication Date: 2025.07.03 SAMSUNG ELECTRONICS CO LTD
  • US20250216885A1 patent drawing
  • US20250216885A1 patent drawing
  • US20250216885A1 patent drawing

AI summary

Disclosed are a method of expressing a parameter variably and an apparatus for the same. A neural processor apparatus includes: a comparator configured to read a value of a fixed-length exponent of a previously-converted parameter value and obtain mantissa-length information of a mantissa, wherein the mantissa-length information is obtained from a mapping table based on being mapped to the value of the exponent; a shifter configured to read the mantissa of the previously-converted parameter value and use the mantissa-length information to convert a structure of the previously-converted parameter value; and the mapping table, in which the mantissa-length information of the mantissa is mapped to the value of the exponent.