Homomorphic Encrypted Neural Network Approximation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current homomorphic encryption methods for neural networks require high-degree polynomials as activation functions, leading to increased computational time and resource usage, especially when bootstrapping is necessary, and retraining is required, which limits performance and efficiency.

Innovation Solution

The use of weighted least squares to generate an approximate polynomial for neural network operations, based on input data mean, standard deviation, and correction constants, allowing for homomorphic encrypted data operations without the need for high-degree polynomials, thereby reducing computational overhead and resource requirements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If high-degree polynomials are used as activation functions in homomorphic encryption neural networks, then the neural network can perform operations on encrypted data, but the computational time and resource usage increase significantly

Engineering Contradiction:
Improveneural network operation capability on encrypted dataVSAvoidcomputational time and resource usage
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent changes the parameter of polynomial degree from high-degree to low-degree approximations. By using low-degree polynomials that approximate activation functions like ReLU, the system maintains the ability to perform neural network operations on encrypted data while significantly reducing computational complexity and resource requirements.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent employs temporary approximation polynomials that are computationally inexpensive to evaluate. These low-degree polynomial approximations serve as disposable computational building blocks that enable encrypted neural network operations without requiring expensive high-degree polynomial calculations, thus improving processing efficiency.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

2Reliability

If high-degree polynomials are used for neural network operations, then encryption can be maintained, but bootstrapping and retraining are required which limits performance

Engineering Contradiction:
Improveencryption maintenanceVSAvoidbootstrapping and retraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent performs preliminary approximation of activation functions using low-degree polynomials before actual neural network inference. By pre-computing these approximations and avoiding the need for runtime bootstrapping, the system eliminates time-consuming operations while maintaining encryption integrity throughout the computation process.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system uses temporary low-degree polynomial approximations that replace the need for expensive bootstrapping operations. These approximation polynomials are computationally lightweight and do not require the time-consuming bootstrapping process, thereby reducing overall computation time while maintaining security.

Inventive Principle:
Principle #27Cheap short-living objects (Disposable)

3Reliability

If conventional homomorphic encryption methods are used, then encrypted data operations are possible, but computational overhead and resource requirements are high

Engineering Contradiction:
Improveencrypted data operation capabilityVSAvoidcomputational overhead and resource requirements
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent fundamentally changes the computational parameters by replacing high-degree polynomial operations with low-degree polynomial approximations. This parameter change reduces the computational overhead and resource requirements for encrypted data operations while maintaining the essential capability to perform neural network inference on encrypted data.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent substitutes complex high-degree polynomial mechanical computations with simpler low-degree polynomial approximations. This substitution replaces the heavy computational machinery of conventional homomorphic encryption with lighter, more efficient polynomial evaluations that require fewer computational resources and less energy.

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

Data Source

PatentUS20240211737A1Apparatus and method with encrypted data neural network operation
Publication Date: 2024.06.27 SAMSUNG ELECTRONICS CO LTD
  • US20240211737A1 patent drawing
  • US20240211737A1 patent drawing
  • US20240211737A1 patent drawing

AI summary

An apparatus includes one or more processors configured to execute instructions; and one or more memories storing the instructions; wherein the execution of the instructions by the one or more processors configures the one or more processors to generate an approximate polynomial, approximating a neural network operation, of a portion of a deep neural network model that is configured to receive input data, by using weighted least squares based on parameters corresponding to the generation of the approximate polynomial, a mean of the input data, and a standard deviation of the input data; and generate a homomorphic encrypted data operation result based on the input data and the approximate polynomial that approximates the neural network operation.