Activation Function Circuit Using Ramp Comparison and Pulse Encoding

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing neuromorphic computing systems face challenges in efficiently implementing and calibrating hardware activation functions, which are crucial for accurate information processing and inference tasks, due to inaccuracies and inefficiencies in hardware-based activation function implementations.

Innovation Solution

The implementation of activation function circuitry comprising a comparator circuit, a capacitor, and a ramp voltage generator circuit, which encodes activation outputs through pulse duration, enabling precise calibration and efficient hardware-based activation functions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If hardware-based activation functions are implemented in neuromorphic computing systems, then processing speed and efficiency are improved, but accuracy and precision deteriorate due to hardware inaccuracies

Engineering Contradiction:
Improveprocessing speedVSAvoidactivation function accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The system performs preliminary calibration of the hardware activation function before actual computation. A calibration process is executed that measures the actual transfer function of the hardware and stores calibration parameters. During operation, these pre-computed calibration parameters are used to correct hardware inaccuracies, allowing the system to maintain high speed while achieving software-level accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements a feedback mechanism where the actual output of the hardware activation function is compared against expected values from a reference implementation. Correction factors are computed based on this comparison and applied to subsequent computations, continuously compensating for hardware variations and drift over time.

Inventive Principle:
Principle #23Feedback

2Productivity

If hardware activation function circuitry is added to neuromorphic systems, then processing efficiency is improved, but device complexity increases

Engineering Contradiction:
Improveprocessing efficiencyVSAvoidcircuit complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The activation function circuitry is designed to be universal and configurable, capable of implementing multiple different activation functions (ReLU, sigmoid, tanh, etc.) through software configuration rather than requiring separate dedicated hardware for each function. This multi-functionality reduces overall system complexity while maintaining processing efficiency.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent introduces a calibration layer as an intermediary between the hardware activation function and the computational workflow. This calibration layer handles the complexity of hardware inaccuracies through pre-computed correction parameters, allowing the core activation function hardware to remain simple while achieving high accuracy through the intermediary calibration process.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If calibration processes are implemented for hardware activation functions, then accuracy is improved, but processing time is increased

Engineering Contradiction:
Improveactivation function accuracyVSAvoidcalibration time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The calibration process is performed in advance during system initialization or manufacturing, and the resulting calibration parameters are stored for reuse during actual computation. This preliminary calibration approach ensures high accuracy during operation without requiring repeated calibration overhead, as the correction parameters are pre-computed and cached for efficient retrieval during processing.

Inventive Principle:
Principle #10Preliminary action

Applied Scientific Principles

This section explains which scientific principles are used to turn an abstract innovation direction into a practical engineering solution.

Function Achieved in This Case

This approach allows for accurate and efficient implementation of non-linear activation functions such as ReLU, clamped ReLU, hard sigmoid, and hard tanh, enhancing the performance of neuromorphic computing systems in tasks like object recognition and natural language processing.

Implementation Method 1

The capacitor is configured to receive and store an input voltage which corresponds to an input value to the non-linear activation function

Methodology Applied
Scientific EffectCapacitance: Capacitance

Implementation Method 2

The comparator circuit is configured to compare, during a conversion period, the input voltage stored in the capacitor to the ramp voltage, and generate a voltage pulse on the output terminal based on a result of the comparing during the conversion period

Methodology Applied
Scientific EffectVoltage comparison:

Implementation Method 3

The ramp voltage generator circuit is configured to generate a ramp voltage which is applied to the second input terminal of the comparator circuit

Methodology Applied
Scientific EffectRamp voltage generation:

Data Source

PatentUS12547884B2Hardware implementation of activation functions
Publication Date: 2026.02.10 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12547884B2 patent drawing
  • US12547884B2 patent drawing
  • US12547884B2 patent drawing

AI summary

A device comprises activation function circuitry configured to implement a non-linear activation function. The activation function circuitry comprises a comparator circuit, a capacitor, and a ramp voltage generator circuit. The capacitor comprises a terminal coupled to a first input terminal of the comparator circuit, and is configured to receive and store an input voltage which corresponds to an input value to the non-linear activation function. The ramp voltage generator circuit is configured to generate a ramp voltage which is applied to a second input terminal of the comparator circuit. The comparator circuit is configured to compare, during a conversion period, the stored input voltage to the ramp voltage, and generate a voltage pulse based on a result of the comparing. The voltage pulse comprises a pulse duration which encodes an activation output value of the non-linear activation function based on the input value to the non-linear activation function.