Neural Network MAC Array Controller for Elementwise Sum Operations

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for performing elementwise sum operations in neural networks require large weight sizes, leading to worsened operational performance and increased memory consumption.

Innovation Solution

A neural network operation apparatus that includes a receiver for input feature maps, a controller for controlling multiplier-accumulators (MACs) in MAC arrays, and operation engines to perform depthwise convolution and elementwise sum operations efficiently by controlling the operation states of MACs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If elementwise sum operation is performed by concatenating two feature maps in channel direction and performing convolution operation, then the operation can be executed using existing convolution hardware, but large weight size is required which worsens operational performance and increases memory consumption

Engineering Contradiction:
Improvecompatibility with convolution hardwareVSAvoidweight size
Core Design Contradiction:
Adaptability or versatilityVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential computation needed for elementwise sum by setting most MACs to disable state and enabling only one MAC per channel group. This removes unnecessary weight computations while maintaining the elementwise sum functionality, directly reducing weight size requirements.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent changes the operation parameters by controlling MAC enable/disable states dynamically. By setting operation states of MACs to disable except for one MAC that performs the actual addition, the system transforms a full convolution operation into an efficient elementwise sum operation, reducing memory consumption.

Inventive Principle:
Principle #35Parameter changes

2Ease of manufacture

If elementwise sum operation is performed by concatenating two feature maps and performing convolution, then the operation can be implemented using standard convolution units, but memory consumption increases due to large weight size

Engineering Contradiction:
Improveimplementation using standard unitsVSAvoidmemory consumption
Core Design Contradiction:
Ease of manufactureVSLoss of energy

Solution Approach 1:

The patent extracts only the necessary MAC operations for elementwise sum, disabling unnecessary MACs. This extraction approach maintains compatibility with standard convolution hardware while eliminating redundant memory accesses and computations, directly reducing memory consumption.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Instead of enabling all MACs for a full convolution, the patent enables only the necessary portion (one MAC per channel group) to perform elementwise sum. This partial action approach reduces memory consumption by avoiding excessive weight loading and computation while still achieving the desired operation.

Inventive Principle:
Principle #16Partial or excessive action

3Productivity

If all MACs in MAC array are enabled to perform convolution operation, then comprehensive computation is achieved, but operational performance worsens due to large weight size requirements

Engineering Contradiction:
Improvecomputation capabilityVSAvoidweight size
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

The patent extracts only the essential MAC operations needed for elementwise sum by disabling unnecessary MACs. This maintains sufficient computation capability for the specific operation while dramatically reducing weight size requirements compared to enabling all MACs.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent applies different operation states to different MACs based on their specific function. By setting most MACs to disable state and enabling only the necessary one MAC per channel group, the system optimizes local resource allocation, maintaining computation capability where needed while reducing overall weight size.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12271808B2Method and apparatus with neural network operation
Publication Date: 2025.04.08 SAMSUNG ELECTRONICS CO LTD
  • US12271808B2 patent drawing
  • US12271808B2 patent drawing
  • US12271808B2 patent drawing

AI summary

A neural network operation apparatus includes: a receiver configured to receive a first input feature map; a controller configured to control multiplier-accumulators (MACs) included in a first MAC array; and a first operation engine comprising the first MAC array and configured to process the first input feature map based on the MACs of which operation states are controlled.