CIM Floating-Point MAC Circuit for Exponent-Difference Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing compute-in-memory (CIM) circuits for performing MAC operations on floating point numbers in machine learning suffer from accuracy issues due to the truncation of mantissa products with normal exponent differences when processing exponent differences of varying magnitudes, leading to compromised final sum accuracy.

Innovation Solution

A CIM circuit that separates the processing of mantissa products based on their exponent differences, handling those equal to or less than a difference threshold in parallel with those greater than the threshold, using dynamically configured thresholds to improve accuracy by preventing contamination of normal exponent differences by small exponent differences.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If mantissa products with varying exponent differences are processed together in a single pipeline, then processing speed is improved, but accuracy deteriorates due to truncation of normal exponent differences by small exponent differences

Engineering Contradiction:
Improveprocessing speedVSAvoidaccuracy of final sum
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent divides the processing pipeline into two separate parallel pipelines: a first pipeline for handling mantissa products with exponent differences greater than a threshold, and a second pipeline for handling mantissa products with exponent differences less than or equal to the threshold. This segmentation prevents the truncation of normal exponent differences by small exponent differences, thereby maintaining accuracy while still achieving high processing speed through parallel operation of both pipelines.

Inventive Principle:
Principle #1Segmentation

2Device complexity

If a single processing pipeline is used for all mantissa products, then device complexity is reduced, but manufacturing precision deteriorates due to inability to handle different exponent distributions

Engineering Contradiction:
Improvecircuit structureVSAvoidcomputation precision
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The patent implements segmentation by creating two distinct processing pipelines with different configurations optimized for specific exponent difference ranges. The first pipeline is designed for normal exponent differences while the second pipeline handles small exponent differences, ensuring that each pipeline's processing characteristics match its intended input range, thereby achieving high computation precision without excessive complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces dynamic threshold configuration that allows the system to adapt to different distribution characteristics of exponent differences. The threshold between the two pipelines can be dynamically adjusted based on the input data characteristics, enabling the system to optimize its processing strategy for different computational scenarios while maintaining accurate results.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250348279A1Systems and methods for performing mac operations on floating point numbers
Publication Date: 2025.11.13 TAIWAN SEMICONDUCTOR MANUFACTURING CO LTD
  • US20250348279A1 patent drawing
  • US20250348279A1 patent drawing
  • US20250348279A1 patent drawing

AI summary

A computing-in-memory circuit includes an input circuit to receive a number (N) of input pairs, each of the N input pairs comprising a first one and a second one of N exponents, and a first one and a second one of N mantissas; a first adder circuit to generate N exponent sums based on the first and second exponents of the N input pairs; a subtractor circuit configured to calculate N exponent differences, each of the N exponent differences being equal to a difference between a corresponding one of the N exponent sums and a largest one of the N exponent sums; and a comparator circuit to compare each of the N exponent differences with a threshold to generate N control signals. N mantissa products of the first and second mantissas of the N input pairs, respectively, are to be selectively combined based on the N control signals.