Neural network optimization method and related equipment

A neural network and optimization method technology, applied in the field of neural network optimization, can solve problems such as large quantization error, and achieve the effect of reducing quantization error, training and use efficiently

Pending Publication Date: 2020-11-17
HUAWEI TECH CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, the binarization method of the neural network is to binarize the weight matrix of a certain layer alone, that is to say,

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Neural network optimization method and related equipment
  • Neural network optimization method and related equipment
  • Neural network optimization method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0070] The embodiment of the present application provides a neural network optimization and related equipment, which is used to adjust the value of each weight in the weight matrix of each layer of the neural network to +1 or -1, and the adjusted weight matrix of each layer (eg, The value of the weight matrix of the mth layer) is related to the value of the weight matrix before the adjustment of the previous layers (such as the 1st layer to the m-1th layer). This optimization method makes each layer in the weight matrix The value of the weight is not only related to itself, but also related to the weight matrix of other layers, which reduces the quantization error and makes the training and use of the neural network more efficient.

[0071] The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It shoul...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a neural network optimization method and related equipment, which can be applied to the field of computer vision (such as image super-resolution reconstruction) and the like in the field of artificial intelligence, and comprises the following steps: binarizing a weight matrix/feature representation (or called a feature map and an activation value) of a neural network through a new quantization model, wherein the first quantization model is used for obtaining a second weight matrix of the mth layer of the neural network according to the m first weight matrixes of the first layer to the mth layer of the neural network, and the second quantization model is used for obtaining a second feature representation of the mth layer of the neural network according to the m first feature representations of the first layer to the mth layer, according to the optimization mode, the value of the weight matrix/feature representation of each layer is not only related to itself, but also related to the weight matrix/feature representation of other layers, the quantization error is reduced, the training and use of the neural network are more efficient, and meanwhile, compared with the existing binary neural network, the image information processing precision is improved.

Description

technical field [0001] The present application relates to the field of machine learning, in particular to a neural network optimization method and related equipment. Background technique [0002] Neural network is a neural network that simulates the human brain in order to achieve artificial intelligence-like machine learning technology. It is the basis of deep learning. Current neural networks generally use floating-point calculations, which require a large amount of storage space and calculations, which seriously hinders Applications on edge devices (such as cameras) and end-side devices (such as mobile phones). Due to its potential advantages of high model compression rate and fast calculation speed, binary neural network has become a popular research direction of deep learning in recent years. [0003] The binary neural network (BNN) is based on the neural network, and binarizes each weight in the weight matrix of the neural network to 1 or -1. Through the binarization...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06N3/04G06K9/62G06T3/40
CPCG06T3/4076G06N3/045G06F18/214
Inventor 辛经纬王楠楠姜馨蕊宋德华韩凯王云鹤
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products