Bitwise MAC Accumulation with Skip Logic for ReLU Workloads
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing implementations of multiply accumulate (MAC) operations in artificial neural networks, particularly for ReLU activation functions, are inefficient when executed on general-purpose processors and require inefficient use of binary math in digital logic blocks when implemented in hardware.
Innovation Solution
A skip module is introduced to simplify the computational complexity of MAC operations by evaluating a partial sum accumulation and predicting whether further computations are necessary based on a skip condition, using a bitwise processing approach.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If MAC operations are executed on general-purpose processors, then implementation flexibility is maintained, but computational efficiency and resource utilization deteriorate
Solution Approach 1:
The MAC operation is segmented into multiple partial sum accumulations, each processing a portion of the weight bits. The skip module evaluates each partial sum independently to determine whether to skip remaining computations, enabling fine-grained optimization while maintaining overall computational correctness.
Solution Approach 2:
The skip module performs preliminary evaluation of partial sum accumulations before completing full MAC operations. By assessing intermediate results and predicting whether further computations are necessary, the system avoids unnecessary computational cycles while ensuring accurate outcomes when needed.
2Device complexity
If traditional binary math is used in digital logic blocks, then implementation simplicity is maintained, but resource wastage and computational overhead increase
Solution Approach 1:
The system performs partial MAC operations by processing only necessary portions of weight bits. The skip module determines the exact point at which computations can be terminated, avoiding excessive processing while maintaining result accuracy. This partial action approach reduces resource wastage without requiring complete simplification of the computational logic.
Solution Approach 2:
The skip module enables the system to skip unnecessary computational steps by evaluating partial sum accumulations and predicting when further computations will not affect the final result. This rushing through of redundant operations significantly reduces computational cycles and resource consumption while maintaining implementation feasibility.
3Reliability
If all MAC operations are completed regardless of intermediate results, then computational accuracy is ensured, but computational cycles and time consumption increase
Solution Approach 1:
The skip module implements feedback by continuously monitoring partial sum accumulations during MAC operations. Based on the evaluated intermediate results and predicted outcomes, the system dynamically determines whether to continue or skip remaining computations, ensuring accuracy is maintained only when necessary while reducing unnecessary computational cycles.
Solution Approach 2:
The system performs preliminary evaluation of partial sum accumulations to predict whether complete MAC operations will affect the final result. This preliminary assessment allows the system to skip redundant computations confidently, reducing time consumption while maintaining computational accuracy through predictive analysis.
Data Source
AI summary
A method, device, and system for performing a partial sum accumulation of a product of input vectors and weight vectors in a wordwise-input and bitwise-weight manner results in a partial accumulated product sum. The partial accumulated product sum is compared with a threshold condition after each weight bit, and when the partial accumulated product sum meets the threshold condition, a skip indicator is asserted to indicate that remaining computations of a sum accumulation are skipped.


