Neural Network Model Simplification via Layer Merging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

As neural network models increase in complexity and size, the inference time and power consumption also increase, necessitating a method to simplify these models without hardware upgrades to maintain performance.

Innovation Solution

A simplification method that reduces multiple linear operation layers to at most two layers by calculating new weights and biases from the original model, allowing for equivalent inference performance with reduced computational requirements.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If the number of linear operation layers in the neural network model is increased to improve model accuracy, then the model accuracy is improved, but the inference time increases

Engineering Contradiction:
Improvemodel accuracyVSAvoidinference time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent merges multiple linear operation layers into a single equivalent linear operation layer by calculating new weight and bias parameters that preserve the functional behavior of the original multi-layer structure. This consolidation reduces the number of sequential operations during inference while maintaining model accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent performs preliminary calculations during the simplification phase to pre-compute the equivalent weight and bias parameters for the consolidated layer. This preliminary action eliminates the need for multiple sequential linear operations during inference, thereby reducing inference time without sacrificing accuracy.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If the number of linear operation layers in the neural network model is increased to improve model accuracy, then the model accuracy is improved, but the power consumption increases

Engineering Contradiction:
Improvemodel accuracyVSAvoidpower consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent merges multiple linear operation layers into a single equivalent linear operation layer by calculating new weight and bias parameters that preserve the functional behavior of the original multi-layer structure. This consolidation reduces the number of sequential operations during inference while maintaining model accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent performs preliminary calculations during the simplification phase to pre-compute the equivalent weight and bias parameters for the consolidated layer. This preliminary action eliminates the need for multiple sequential linear operations during inference, thereby reducing inference time without sacrificing accuracy.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If the number of linear operation layers in the neural network model is increased to improve model complexity, then the model capacity is improved, but the device complexity increases

Engineering Contradiction:
Improvemodel capacityVSAvoidnumber of layers
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent merges multiple linear operation layers into a single equivalent linear operation layer by calculating new weight and bias parameters that preserve the functional behavior of the original multi-layer structure. This consolidation reduces the number of sequential operations during inference while maintaining model accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent transforms the structural complexity of multiple layers into parameter complexity by computing equivalent weight and bias parameters. The simplified model has fewer layers but uses pre-calculated parameters that encapsulate the transformation logic, effectively trading structural complexity for parameter complexity.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20240005159A1Simplification device and simplification method for neural network model
Publication Date: 2024.01.04 NEUCHIPS CORP
  • US20240005159A1 patent drawing
  • US20240005159A1 patent drawing
  • US20240005159A1 patent drawing

AI summary

A simplification device and a simplification method for neural network model are provided. The simplification method may simplify an original trained neural network model to a simplified trained neural network model, wherein the simplified trained neural network model includes at most two linear operation layers. The simplification method includes: converting the original trained neural network model into an original mathematical function; performing an iterative analysis operation on the original mathematical function to simplify the original mathematical function to a simplified mathematical function, wherein the simplified mathematical function has a new weight; computing the new weight by using multiple original weights of the original trained neural network model; and converting the simplified mathematical function to the simplified trained neural network model.