Binary Neural Network Circuitry for Hardware-Efficient Processing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Binary neural networks (BNNs) face challenges in achieving optimal predictive accuracy due to poor encoding methods that destroy critical information and are costly to implement in hardware, as they require excessive processing elements for practical implementation with full precision features.

Innovation Solution

The implementation of a BNN circuitry that uses one-hot n-bit data values with trained one-bit weight values, where the hidden layer generates output signals based on selective inversion operations and threshold comparisons, reducing the need for processing elements by recognizing independent outcomes for groups of weight values and simplifying circuitry.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If full precision floating point or fixed-point features are used for encoding, then predictive accuracy is improved, but hardware cost and device complexity increase prohibitively

Engineering Contradiction:
Improvepredictive accuracyVSAvoidhardware cost
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments the weight values into discrete levels (e.g., 3 levels: -1, 0, +1) rather than using continuous full-precision values. This segmentation allows the hardware to use simple logic gates (AND, OR, NOT) instead of complex floating-point units, dramatically reducing hardware complexity while maintaining acceptable predictive accuracy through the preserved sign and magnitude information.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter representation from full-precision floating point to discrete quantized levels. By transforming the weight values into a simplified format with defined levels and signs, the system achieves hardware-efficient implementation using basic logic operations while retaining sufficient information for accurate predictions.

Inventive Principle:
Principle #35Parameter changes

2Device complexity

If poor encoding is used to reduce hardware cost, then device complexity is reduced, but predictive accuracy deteriorates due to loss of critical information

Engineering Contradiction:
Improvehardware costVSAvoidpredictive accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The patent transforms the encoding parameters into a format that preserves critical information (sign and magnitude levels) while simplifying hardware requirements. By using discrete levels with defined signs and applying logical operations, the system maintains predictive accuracy without requiring complex hardware structures.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent replaces complex mechanical/computational systems (floating-point arithmetic units) with simpler logical operations (AND, OR, NOT gates). This substitution achieves hardware cost reduction while preserving predictive accuracy by using boolean logic to compute weighted sums and activation functions.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

3Loss of information

If one-hot n-bit encoding is used, then information preservation is improved, but quantity of processing elements increases excessively

Engineering Contradiction:
Improveinformation preservationVSAvoidnumber of processing elements
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The patent segments the one-hot encoded input into groups corresponding to discrete weight levels. By processing these segmented groups through separate logic circuits that compute contributions at different levels, the system preserves information from all input bits while avoiding the need for excessive processing elements through efficient logical computation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent merges the processing of multiple weight levels by using logical operations to combine contributions from different levels. Instead of treating each one-hot bit independently with separate processing elements, the system combines their effects through logical AND, OR, and NOT operations, reducing the total number of processing elements required.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS20220318611A1Data processing
Publication Date: 2022.10.06 ARM LTD
  • US20220318611A1 patent drawing
  • US20220318611A1 patent drawing
  • US20220318611A1 patent drawing

AI summary

Data processing apparatus having a binary neural network, BNN, circuitry to implement a BNN; the BNN circuitry having at least one instance of hidden layer circuitry responsive to trained one-bit weight values and input data values to generate a hidden layer output signal; each input data value has a one-hot n-bit data value, where n is an integer greater than one; the hidden layer circuitry is configured to generate the hidden layer output signal dependent upon an intermediate result of a selective inversion operation applied to each bit of a given input data value; the hidden layer circuitry has circuitry to generate a respective intermediate result as a first predetermined result value for the given input data value; and, for a group of trained one-bit weight values, circuitry to generate a respective intermediate result as a second predetermined result value for the given input data value.