Neural network, calculation method and program

A neural network with residual blocks and connection blocks effectively reduces model size and calculation requirements, enabling efficient deployment on resource-limited hardware.

JP7542199B2Active Publication Date: 2024-08-30PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2021553678
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-10-31
Filing Date
2020-10-29
Publication Date
2024-08-30
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

Deep learning models with deep layers, such as ResNet, require a large number of parameters and calculations, making them unsuitable for hardware platforms with limited resources like mobile terminals, home appliances, or industrial equipment.

Method used

A neural network configuration that includes input layers, residual blocks with skip connections, and connection blocks that average outputs of convolutional layers, reducing model size and calculation amount while maintaining accuracy.

Benefits of technology

The proposed neural network achieves reduced model size and calculation load without compromising performance, suitable for implementation on resource-constrained devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542199000018
    Figure 0007542199000018
  • Figure 0007542199000011
    Figure 0007542199000011
  • Figure 0007542199000007
    Figure 0007542199000007
Patent Text Reader

Abstract

A neural network according to the present disclosure is provided with an input layer (10) into which input information is input, a plurality of blocks (111) for extracting feature quantities of the input information, and an output layer (12) which outputs the extracted feature quantities, wherein each of the plurality of blocks (111) includes: a residual block configured by means of a combination of one or more first convolution layers, and skip connections, which are connections straddling the one or more first convolution layers; and a connecting block which includes at least a second convolution layer, and which averages the outputs from the one or more first convolution layers and the outputs from the skip connections.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a neural network, a computation method, and a program. [Background technology]

[0002] In recent years, deep learning (DL) models using convolutional neural networks (CNNs) have demonstrated excellent performance in many vision tasks, including image classification, object detection, and object recognition.

[0003] On the other hand, it is known that the performance can be improved by deepening the hierarchy of DL models. However, DL models that simply deepen the hierarchy have the problem of gradient vanishing or gradient exploding.

[0004] To solve this problem, for example, a CNN model called ResNet (Residual Network) incorporating residual learning has been proposed (see, for example, Non-Patent Document 1). ResNet solves the above problem by learning the residual F(x)=H(x)-x obtained by subtracting the input x from the output H(x), thereby realizing a network structure with a depth of 152 layers. In addition, ResNet disclosed in Non-Patent Document 1 has a network structure in which residual blocks consisting of a combination of skip connections that bypass an input to a certain layer and input the input to a layer beyond that layer and convolutional layers are stacked. The skip connections used in ResNet are sometimes called local residual skip connections. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] He, K., Zhang, X., Ren, S. and Sun, J., 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 770-778). Summary of the Invention [Problem to be solved by the invention]

[0006] However, a model (network model) having the network structure of ResNet disclosed in Non-Patent Document 1 is composed of deep layers and requires a huge amount of parameters and calculations (FLOPs). In addition, hardware platforms such as mobile terminals such as smartphones or tablets, home appliances such as televisions, and industrial equipment have limited resources, and there are restrictions on the amount of calculations and model sizes that can be implemented. In other words, it is difficult to implement and use ResNet disclosed in Non-Patent Document 1 on a hardware platform with limited resources such as a mobile terminal.

[0007] The present disclosure has been made in consideration of the above-mentioned circumstances, and aims to provide a neural network, a calculation method, and a program that can further reduce model size and amount of calculations while maintaining accuracy. [Means for solving the problem]

[0008] In order to solve the above problem, a neural network according to one embodiment of the present disclosure includes an input layer to which input information is input, a plurality of blocks for extracting features of the input information, and an output layer for outputting the extracted features, each of the plurality of blocks including a residual block formed by a combination of one or more first convolutional layers and a skip connection that is a connection across the one or more first convolutional layers, and a connection block having at least a second convolutional layer, the connection block averaging the outputs of the one or more first convolutional layers and the outputs of the skip connections.

[0009] These general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of the system, the method, the integrated circuit, the computer program, and the recording medium. Effect of the Invention

[0010] According to the present disclosure, it is possible to realize a neural network or the like that can further reduce the model size and the amount of calculation while maintaining accuracy. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a block diagram illustrating an example of a configuration of a calculation device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a computer that realizes the functions of the arithmetic device according to the embodiment by software. [Diagram 3] FIG. 3 is a diagram illustrating a configuration of a neural network according to the embodiment. [Figure 4A] FIG. 4A is a conceptual diagram for explaining a network structure of the blocks shown in FIG. [Figure 4B] FIG. 4B conceptually illustrates the operations performed in the convolution layer shown in FIG. 4A. [Figure 4C]FIG. 4C is a diagram conceptually showing a specific configuration of the connection block shown in FIG. 4A. [Diagram 5] FIG. 5 is a diagram showing a specific embodiment of a network structure of the blocks shown in FIG. 4A. [Figure 6] FIG. 6 is a diagram showing another specific embodiment of the network structure of the blocks shown in FIG. 4A. [Figure 7] FIG. 7 is a conceptual diagram illustrating an example of an implementation of a network structure equivalent to ResNet10. [Figure 8] FIG. 8 is a diagram conceptually illustrating an implementation example of a neural network according to an embodiment. [Figure 9A] FIG. 9A is a conceptual diagram illustrating an example implementation of the network structure of ResNet34. [Figure 9B] FIG. 9B is a diagram conceptually illustrating an implementation example of a network structure equivalent to ResNet18. [Figure 10] FIG. 10 is a flowchart showing an outline of the operation of the arithmetic device according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an outline of a database according to an embodiment. [Figure 12] FIG. 12 is a diagram showing the experimental results according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] A neural network according to one embodiment of the present disclosure includes an input layer to which input information is input, a plurality of blocks for extracting features of the input information, and an output layer for outputting the extracted features, each of which includes a residual block formed by a combination of one or more first convolutional layers and a skip connection that is a connection spanning the one or more first convolutional layers, and a connection block having at least a second convolutional layer, the connection block averaging the outputs of the one or more first convolutional layers and the outputs of the skip connections.

[0013] This configuration makes it possible to realize a neural network that can reduce the model size and amount of calculations while maintaining accuracy.

[0014] Here, for example, the connection block may include a second convolutional layer to which outputs of the one or more first convolutional layers and an output of the skip connection are input, a first output layer to which the output of the second convolutional layer is input, a weighting layer that assigns a pre-stored weight to the output of the first output layer, and a third convolutional layer to which the output of the weighting layer is input.

[0015] This configuration reduces the number of blocks required to maintain accuracy, thereby reducing model size and the amount of calculations.

[0016] Furthermore, for example, each of the multiple blocks may further output an output of the skip connection in addition to the output of the connection block, and the connection block may include a second convolutional layer to which outputs of the one or more first convolutional layers and the output of the skip connection are input, a first output layer to which the output of the second convolutional layer is input, a weighting layer that assigns a pre-stored weight to the output of the first output layer, a shortcut connection that shortcuts the first output layer and the weighting layer, and a third convolutional layer to which the output of the weighting layer and the output of the shortcut connection are input.

[0017] This configuration not only reduces the number of blocks required to maintain accuracy, but also prevents the output of the connection blocks from experiencing gradient explosion or gradient divergence due to shortcut connections, thereby further reducing the model size and amount of calculations while maintaining accuracy.

[0018] Here, for example, the first output layer outputs a value obtained by applying a softmax function to the input output of the second convolutional layer.

[0019] Moreover, a calculation method according to one embodiment of the present disclosure is a calculation method for a plurality of blocks in a neural network including an input layer to which input information is input, a plurality of blocks for extracting features of the input information, and an output layer for outputting the extracted features, the calculation method including the steps of: inputting first information into a residual block constituting the block, the residual block being constituted by a combination of one or more first convolutional layers and a skip connection which is a connection across the one or more first convolutional layers; and inputting the features of the first information extracted by the one or more first convolutional layers and the first information output by the skip connection into a connection block constituting the block and having at least a second convolutional layer, and averaging the features of the first information and the first information.

[0020] The embodiments described below each show a specific example of the present disclosure. Therefore, the numerical values, shapes, materials, components, arrangements and connection forms of the components shown in the following embodiments are merely examples and are not intended to limit the present disclosure. In addition, among the components in the following embodiments, components that are not described in the independent claims showing the realization of one embodiment of the present disclosure are described as optional components. The realization of the present disclosure is not limited to the current independent claims, and may also be expressed by other independent claims.

[0021] (Embodiment) Hereinafter, an embodiment will be described with reference to the drawings.

[0022] [1. Arithmetic device 1] FIG. 1 is a block diagram showing an example of the configuration of a calculation device 1 according to the present embodiment.

[0023] The arithmetic device 1 is realized by a computer using trained Neural Networks (NN), and is composed of an input unit 2, a processing unit 3, and an output unit 4, as shown in Fig. 1. When input information is input, the arithmetic device 1 outputs a feature amount extracted from the input information as a calculation result. Note that the input information is information used for a visual task, such as an image or a video.

[0024] The input unit 2 acquires input information, and inputs the acquired input information to the processing unit 3. In this embodiment, the input unit 2 inputs the acquired input information to the processing unit 3.

[0025] The processing unit 3 extracts features from input information using the neural network according to this embodiment. In this embodiment, the processing unit 3 extracts features from input information using a trained neural network 3a. The trained neural network 3a is stored in a storage unit (not shown) included in the processing unit 3. The trained neural network 3a may be stored on a cloud, or may be used by the processing unit 3 via a communication network such as the Internet. The configuration of the neural network 3a will be described later.

[0026] The output unit 4 outputs the feature amount extracted by the processing unit 3 as a calculation result.

[0027] [1-1. Hardware configuration] FIG. 2 is a diagram showing an example of a hardware configuration of a computer 1000 that realizes the functions of the arithmetic device 1 according to the present embodiment by software.

[0028] 2, the computer 1000 is a computer including an input device 1001, an output device 1002, a CPU 1003, an internal storage 1004, a RAM 1005, a reading device 1007, a transmission / reception device 1008, and a bus 1009. The input device 1001, the output device 1002, the CPU 1003, the internal storage 1004, the RAM 1005, the reading device 1007, and the transmission / reception device 1008 are connected by the bus 1009.

[0029] The input device 1001 is a user interface device such as an input button, a touch pad, a touch panel display, etc., and accepts user operations. The input device 1001 may be configured to accept voice operations and remote operations using a remote control or the like in addition to accepting touch operations by the user.

[0030] The built-in storage 1004 is a flash memory or the like. The built-in storage 1004 may also store in advance at least one of a program for implementing the functions of the arithmetic device 1 and an application that utilizes the functional configuration of the arithmetic device 1. The built-in storage 1004 may also store a trained neural network 3a.

[0031] The RAM 1005 is a random access memory, and is used to store data and the like when a program or application is executed.

[0032] The reading device 1007 reads information from a recording medium such as a USB (Universal Serial Bus) memory. The reading device 1007 reads the above-mentioned programs, the neural network 3a, and the applications from the recording medium on which the programs and applications are recorded, and stores them in the built-in storage 1004.

[0033] The transmitting / receiving device 1008 is a communication circuit for performing wireless or wired communication. The transmitting / receiving device 1008 may communicate with, for example, a server device connected to a network, and download the above-mentioned programs, neural network 3a, and applications from the server device and store them in the built-in storage 1004.

[0034] The CPU 1003 is a central processing unit that copies programs and applications stored in the internal storage 1004 to the RAM 1005, and sequentially reads out instructions included in the programs and applications from the RAM 1005 and executes them.

[0035] [1-2.Neural Network 3a] FIG. 3 is a diagram showing the configuration of a neural network 3a according to this embodiment.

[0036] As shown in Fig. 3, the neural network 3a according to this embodiment includes an input layer 10 to which input information is input, an intermediate layer 11 consisting of a plurality of blocks 111 for extracting features of the input information, and an output layer 12 for outputting the extracted features. Note that, hereinafter, the neural network 3a according to this embodiment may also be referred to as LVNet. A model having a network structure of blocks 111 will be described below.

[0037] [1-2-1. Block 111] FIG. 4A is a conceptual diagram for explaining the network structure of block 111 shown in FIG.

[0038] The blocks 111 are stacked to form the neural network 3a. As shown in FIG. 4A, the blocks 111 are connected to a connection block 112 and a i-1 The block 111 is composed of a fundamental unit represented by and a skip connection. Note that the block 111 is also called a building block in ResNet.

[0039] A basic unit layer is composed of one or more first convolutional layers. In the example shown in FIG. 4A, H i-1 The basic unit layer denoted by Conv (i-1) The convolutional layer 1111 is denoted by Conv iThe convolutional layer 1111 and the convolutional layer 1112 are configured as shown in FIG. 4A when implemented, a layer that performs batch normalization (BN in the figure), an activation function such as relu (ACT in the figure), and a convolutional layer (Weight in the figure). Note that the order of calculation is not limited to the order shown in FIG. 4A.

[0040] Skip connection is H i-1 Bypass the basic unit layer indicated by H 0 An input indicated by is input to the connection block 112.

[0041] The connection block 112 is shown in FIG. i-1 (connection block), and H i-1 The output of the basic unit layer denoted by and the output of the skip connection are averaged.

[0042] In addition, H i-1 The basic unit layer denoted by and the skip connections constitute a residual block.

[0043] FIG. 4B is a diagram conceptually illustrating the operations performed in the convolution layer shown in FIG. 4A. i-1 The basic unit layer Conv (i-1) The operations performed in are shown diagrammatically.

[0044] As shown in Figure 4B, Conv (i-1) The input features input to are

number

number

number

number

number

[0045] FIG. 4C is a diagram conceptually illustrating an example of the configuration of connection block 112 shown in FIG. 4A.

[0046] The connection block 112 is a Conv (i-1) (CB) , softmax function, weights W n CB , and Conv (i) (CB) It consists of the following:

[0047] [1-2-2. Specific embodiment of network structure of block 111] A specific embodiment of the network structure of block 111 shown in FIG. 4A will be described below with reference to FIG.

[0048] FIG. 5 is a diagram showing a specific embodiment of the network structure of block 111 shown in FIG. 4A.

[0049] 5 includes a residual block, a connection block 112A, and an adder 113. It is to be noted that the block 111 does not necessarily need to include the adder 113.

[0050] The residual block is composed of one or more first convolution layers and a combination of skip connections that are connections across one or more first convolution layers. In the example shown in Fig. 5, the residual block is composed of a combination of a convolution layer 1111, a convolution layer 1112, and a skip connection that is a connection across the convolution layer 1111 and the convolution layer 1112. The convolution layer 1111 and the convolution layer 1112 constitute the basic unit layer described in Figs. 4A and 4C.

[0051] The connection block 112A is a connection block having at least a second convolution layer, and averages the outputs of one or more first convolution layers and the outputs of the skip connections. In the example shown in FIG. 5, the connection block 112A is composed of a convolution layer 1121, an output layer 1122, a weight 1123, a weighting layer 1124, an adder 1125, and a convolution layer 1121. In the example shown in FIG. 5, the adder 1125 is not functioned, so the connection block 112A does not need to include the adder 1125.

[0052] The convolutional layer 1121 is an example of a second convolutional layer, and receives one or more outputs of the first convolutional layer and an output of the skip connection. The convolutional layer 1121 convolves the input one or more outputs of the first convolutional layer and the output of the skip connection, and outputs the result. In this embodiment, the convolutional layer 1121 is, for example, a conv (CB) It is expressed as 、 The output of the convolutional layer 1112 and the output of the skip connection are input. The convolutional layer 1121 outputs a feature map obtained by convolving the input output of the convolutional layer 1112 and the output of the skip connection to the output layer 1122. Note that the convolutional layer 1121 is, for example, a convolutional layer of Conv (i-1) (CB) It is expressed as 、 H i-1 The output of the basic unit layer is denoted by H 0 The inputs indicated by are stacked and input.

[0053] The output layer 1122 is an example of a first output layer, and receives the output of the second convolution layer. More specifically, the output layer 1122 outputs a value obtained by using a softmax function for the input output of the second convolution layer. In this embodiment, the output layer 1122 obtains the occurrence probability of the output from the feature map output from the convolution layer 1112, for example, using a softmax function, and outputs the output to the weighting layer 1124. The output layer 1122 is expressed as Softmax in FIG. 5, for example, and is expressed as a graph of the occurrence probability obtained by using the softmax function in FIG. 4C, for example.

[0054] The weights 1123 store weights (a set of weights) in advance. The weights stored in the weights 1123 can be obtained by training the connection block 112A using training data. The weights 1123 are, for example, Weights (CB) For example, in Figure 4C, Weights W n CB It is expressed as follows.

[0055] The weighting layer 1124 assigns a pre-stored weight to the output of the output layer 1122. In this embodiment, the weighting layer 1124 assigns a weight by multiplying the output of the output layer 1122 by a weight pre-stored in the weight 1123. This allows distributed weighting to be performed on the output of the residual block, thereby improving the nonlinearity between the input and output of the residual block.

[0056] The convolutional layer 1126 is an example of a third convolutional layer, and receives the output of the weighting layer 1124. In this embodiment, the convolutional layer 1126 outputs a feature map obtained by convolving the output of the weighting layer 1124. The convolutional layer 1126 can downsample the output of the weighting layer 1124 by convolving the output of the weighting layer 1124. Note that the convolutional layer 1126 is, for example, a convolutional layer of Conv i (CB) It is expressed as follows.

[0057] Fig. 6 is a diagram showing another specific example of the network structure of block 111 shown in Fig. 4A. The same elements as those in Fig. 4A, Fig. 4C, Fig. 5, etc. are given the same reference numerals, and detailed description thereof will be omitted.

[0058] Block 111B shown in Fig. 6 differs from block 111 shown in Fig. 5 in the configuration of connection block 112B and in that the number of connection destinations for skip connections has been increased. The following description will focus on the differences.

[0059] The block 111B further outputs the output of the skip connection in addition to the output of the connection block 112B. More specifically, in the block 111B, the skip connection is not only connected to the convolution layer 1121 of the connection block 112 across the convolution layer 1111 and the convolution layer 1112, but also connected to the adder unit 113, which is the output destination of the connection block 112B, across the connection block 112B. As a result, the input to the skip connection is output to the block 111B next to the block 111B in addition to the convolution layer 1121 of the connection block 112. Therefore, the block 111B also has the function of a residual block, which improves the nonlinearity between the input and output of the block 111 and avoids gradient loss, thereby further improving accuracy.

[0060] The connection block 112B further includes a shortcut connection compared to the connection block 112A shown in Fig. 5. Like the connection block 112A, the connection block 112B is a connection block having at least a second convolutional layer, and averages the output of one or more first convolutional layers and the output of a skip connection.

[0061] The shortcut connection shortcuts the first output layer and the weighting layer. In this embodiment, the shortcut connection shortcuts the output of the convolutional layer 1121, the output layer 1122, and the weighting layer 1124, and connects the output of the convolutional layer 1121 and the adder 1125.

[0062] The adder 1125 adds the output of the convolutional layer 1121 output via the shortcut connection to the output of the weighting layer 1124. This makes it possible to avoid gradient explosion or divergence even in cases where the output of the convolutional layer 1121 is forcibly made nonlinear by the weighting layer 1124 and would be output as is to the convolutional layer 1126, resulting in instability and causing gradient explosion or divergence.

[0063] The convolutional layer 1126 is an example of a third convolutional layer, and receives the output of the weighting layer 1124 and the output of the shortcut connection. In this embodiment, the convolutional layer 1126 outputs a feature map obtained by convolving the output of the addition unit 1125. The convolutional layer 1126 can downsample the output of the addition unit 1125 by convolving the output of the addition unit 1125.

[0064] [1-3. Implementation example of neural network 3a] Next, an implementation example of the neural network 3a will be described.

[0065] As described above, the neural network 3a includes a residual block in each of the stacked blocks 111. Therefore, the neural network 3a can be implemented by using a network structure of ResNet that has a residual block. In addition, since the neural network 3a includes a connection block 112A or 112B in each of the stacked blocks 111, even if the neural network 3a is implemented by using a network structure in which ResNet is configured with shallower layers, it can maintain the same accuracy as ResNet.

[0066] 7 is a diagram conceptually illustrating an implementation example of a network structure equivalent to ResNet10. As shown in FIG. 7, ResNet10-equivalent has four building blocks indicated as Building Block 1 to Building Block 4 stacked. Each building block is configured by a combination of two convolution layers and skip connections. Therefore, ResNet10-equivalent has a network structure in which ResNet disclosed in the above Non-Patent Document 1 is configured with shallower layers, and has a network structure configured using 10 convolution layers.

[0067] Fig. 8 is a conceptual diagram showing an example of implementation of a neural network 3a according to the present embodiment. Note that the neural network 3a shown in Fig. 8 is an example of the network structure referred to above as LVNet.

[0068] More specifically, the neural network 3a shown in FIG. 8 has a network structure in which the above-mentioned connection block 112B is added to each of Building Blocks 1 to 4 in the equivalent of ResNet 10 shown in FIG.

[0069] Note that the implementation example of the neural network 3a according to the present embodiment is not limited to the case shown in Fig. 8. The neural network 3a may have a network structure in which the above-mentioned connection block 112B is added to each of the building blocks of ResNet34 or each of the building blocks equivalent to ResNet18.

[0070] Here, we will explain network structures equivalent to ResNet34 and ResNet18.

[0071] FIG. 9A is a diagram conceptually illustrating an implementation example of a network structure of ResNet34. As illustrated in FIG. 9A, ResNet34 has four building blocks, Building Block 1 to Building Block 4, stacked together. Each building block is configured with a combination of multiple convolutional layers and multiple skip connections. Building Block 1 has 6 convolutional layers, Building Block 2 has 8 convolutional layers, Building Block 3 has 12 convolutional layers, and Building Block 4 has 6 convolutional layers. The skip connections are configured to span two convolutional layers. Thus, ResNet34 has a network structure configured using 34 convolutional layers.

[0072] FIG. 9B is a diagram conceptually illustrating an implementation example of a network structure equivalent to ResNet18. As shown in FIG. 9B, ResNet18 is composed of four building blocks indicated by Building Block 1 to Building Block 4. Each building block is composed of a combination of four convolution layers and skip connections across two convolution layers. In other words, ResNet18 is a network structure in which ResNet disclosed in the above Non-Patent Document 1 is composed of shallower layers, and has a network structure composed of 18 convolution layers.

[0073] [2. Operation of Calculation Device 1] An example of the operation of the arithmetic device 1 configured as above will be described below.

[0074] Fig. 10 is a flowchart showing an outline of the operation of the arithmetic device 1 in this embodiment. Fig. 10 shows a calculation process performed by one block 111 of the multiple blocks 111 that make up the neural network 3a.

[0075] First, the arithmetic device 1 inputs first information as input information to a residual block constituting a block 111 of the neural network 3a (S10). More specifically, the arithmetic device 1 inputs the first information to a residual block constituted by a combination of one or more first convolutional layers and skip connections that are connections across one or more first convolutional layers. Note that the first information is input information when the block 111 corresponds to Building Block 1. When the block 111 does not correspond to Building Block 1, the first information is an output of a building block immediately before the building block that includes the block 111.

[0076] Next, the calculation device 1 inputs the features of the first information extracted by one or more first convolutional layers of the residual block and the first information output by the skip connection of the residual block to a connection block, and averages the features of the first information and the first information (S11).

[0077] [3. Effects, etc.] According to this embodiment, by adding a connection block to the residual block known as ResNet, the output of the residual block can be averaged by distributing weighting to the output of the residual block, and the nonlinearity between the input and output of the residual block can be improved. Therefore, the number of blocks required to maintain accuracy can be reduced, and a neural network can be realized that can further reduce the model size and the amount of calculation while maintaining accuracy.

[0078] In addition, according to this embodiment, the connection block further includes a shortcut connection, which improves the nonlinearity between the input and output of the block and avoids gradient loss. Therefore, not only can the number of blocks required to maintain accuracy be reduced, but the shortcut connection can also prevent the output of the connection block from exploding or diverging, so that the model size and the amount of calculation can be further reduced while maintaining accuracy.

[0079] In addition, by being able to reduce the model size and amount of calculations while maintaining accuracy, it has the effect of facilitating use in so-called edge AI, in which the model is implemented in an integrated circuit and installed in the device itself.

[0080] For example, when receiving and processing a broadcast wave such as a television broadcast, it is necessary to perform a process that requires a large amount of calculation, such as image recognition. Therefore, when using a conventional neural network such as ResNet, the conventional neural network is implemented on the cloud (so-called cloud AI), and communication is required via a network such as the Internet. When the conventional neural network is implemented on the cloud, the communication volume or delay in broadcasting due to the communication occurs. On the other hand, when using the neural network according to the present embodiment such as LVNet, the neural network according to the present embodiment can reduce the model size and the amount of calculation while maintaining accuracy, and is therefore suitable for implementation in an integrated circuit, and can be provided in the main body of a device such as a television. Therefore, the neural network according to the present embodiment can reduce the communication volume even when communication is required via a network such as the Internet, and therefore the communication volume or delay due to the communication can be suppressed.

[0081] (Example) The effectiveness of the neural network 3a according to this embodiment used in the arithmetic device 1 has been verified, and the experimental results will be described as examples.

[0082] In this embodiment, the performance of the neural network 3a used in the arithmetic device 1 was evaluated using two sets of collected experimental data, Test A and Test B.

[0083] <Experimental Data> FIG. 11 is a diagram showing an outline of the database according to this embodiment.

[0084] In the database according to this embodiment, images collected in four categories, namely, animation, sports, music, and others, are stored as shown in Fig. 11. The other categories include categories such as weather, scenery, and talk.

[0085] The images stored in the database were generated from over 1 million high-resolution images collected using various resources, such as YouTube® and Google®. The images stored in the database are divided into 96K images as training data and 7K images as validation data.

[0086] In addition, test A was composed of a set of images with low intra-class variance, and test B was composed of a set of images with low inter-class variance.

[0087] <Experimental conditions> In this experiment, the target neural network was trained for 8 hours using a GPU (Graphics Processing Unit). Training in this experiment was performed with the following parameters: the learning rate was set to 0.025 and was set to be halved every 10 epochs. Training in this experiment was also performed with batch gradient descent using momentum optimization algorithm set to 0.9.

[0088] <Experimental Results> FIG. 12 is a diagram showing an experimental result according to the embodiment. More specifically, FIG. 12 is a diagram showing an experimental result in which the accuracy of the neural network 3a according to the present embodiment and the accuracy of the neural network of the comparative example are evaluated using Test A and Test B according to the embodiment. In FIG. 12, the model size, the amount of calculation (model complexity), the parameters, and the memory access of the neural networks of the present embodiment and the comparative example are also shown. The neural networks of the comparative example are ResNet34 and ResNet18. The ResNet34 corresponds to the ResNet34 shown in FIG. 9A, and the ResNet18 corresponds to the ResNet18 shown in FIG. 9B. The neural network 3a according to the present embodiment is shown as LR10_CB128 and LR10_CB128_SH. The LR10_CB128_SH corresponds to the LVNet, that is, the model having the network structure shown in FIG. 8. LR10_CB128 corresponds to a model having a network structure in which the LVNet connection block 112B shown in FIG. 8 is changed to the connection block 112A shown in FIG.

[0089] As shown in FIG. 12, it can be seen that the accuracy is equivalent between the neural networks ResNet34 and ResNet18 according to the comparative example and the neural network LR10_CB128 and LR10_CB128_SH according to the present embodiment.

[0090] Also, as shown in FIG. 12, it can be seen that the memory size and the amount of calculation (complexity of calculation) of the neural network 3a according to the present embodiment are significantly reduced compared to the memory size and the amount of calculation (complexity of calculation) of the neural network according to the comparative example. Furthermore, it can be seen that LR10_CB128_SH, that is, LVNet, which is a model having the network structure shown in FIG. 8, exhibits relatively the best performance compared to all other neural networks. For example, the model size and the amount of calculation (FLOPs) of LR10_CB128_SH are 8.2% of the model size and 6.3% of the amount of calculation of ResNet18. In other words, it can be seen that the model size of LR10_CB128_SH is reduced by 91.8% and the amount of calculation (FLOPs) is reduced by 92.2% compared to ResNet18.

[0091] As described above, according to this embodiment, it is possible to realize a neural network 3a that can reduce the model size and the amount of calculation while maintaining the same accuracy as ResNet.

[0092] (Possibility of other embodiments) The neural network, the computing device, and the computing method according to one aspect of the present disclosure have been described above based on the embodiments, but the present disclosure is not limited to these embodiments. As long as it does not deviate from the gist of the present disclosure, various modifications conceived by a person skilled in the art to the present embodiment, or forms constructed by combining components in different embodiments, are also included in the scope of the present disclosure. For example, the following cases are also included in the present disclosure.

[0093] (1) Some or all of the components constituting the above-mentioned arithmetic device may be a computer system specifically composed of a microprocessor, ROM, RAM, a hard disk unit, a display unit, a keyboard, a mouse, etc. A computer program is stored in the RAM or hard disk unit. Each device achieves its function by the microprocessor operating according to the computer program. Here, the computer program is composed of a combination of multiple instruction codes that indicate commands for a computer to achieve a specified function.

[0094] (2) Some or all of the components constituting the above arithmetic device may be composed of one system LSI (Large Scale Integration). The system LSI is an ultra-multifunctional LSI manufactured by integrating multiple components on one chip, and specifically, is a computer system including a microprocessor, ROM, RAM, etc. A computer program is stored in the RAM. The system LSI achieves its functions by the microprocessor operating in accordance with the computer program.

[0095] (3) Some or all of the components constituting the above-mentioned arithmetic device may be composed of an IC card or a standalone module that is detachable from each device. The IC card or the module is a computer system composed of a microprocessor, ROM, RAM, etc. The IC card or the module may include the above-mentioned ultra-multifunction LSI. The microprocessor operates according to a computer program, causing the IC card or the module to achieve its functions. The IC card or the module may be tamper-resistant. [Industrial Applicability]

[0096] The present disclosure can be used for neural networks, computational methods, and programs, and in particular for neural networks, computational methods, and programs that can provide superior performance for visual tasks even when implemented on a hardware platform with limited resources. [Explanation of symbols]

[0097] 1 Computing device 2 Input section 3 Processing section 3a Neural Networks 4 Output section 10 Input Layer 11 Middle Class 12, 1122 Output layer Blocks 111 and 111B 112, 112A, 112B Connection Blocks 113, 1125 Addition section 1111, 1112, 1121, 1126 convolutional layers 1123 Weight 1124 Weighting Layer

Claims

1. an input layer to which input information is input; A plurality of blocks for extracting features of the input information; an output layer that outputs the extracted feature amount; Each of the plurality of blocks comprises: A residual block composed of a combination of one or more first convolutional layers and a skip connection that is a connection across the one or more first convolutional layers; a connection block having at least a second convolutional layer, the connection block averaging outputs of the one or more first convolutional layers and outputs of the skip connections; Computer, inputting first information into the residual block; inputting the feature amount of the first information extracted by the one or more first convolution layers and the first information output by the skip connection to the connection block, and averaging the feature amount of the first information and the first information; To execute, to function Neural networks.

2. The connection block comprises: a second convolution layer to which the outputs of the one or more first convolution layers and the output of the skip connection are input; a first output layer to which the output of the second convolutional layer is input; a weighting layer that assigns pre-stored weights to the outputs of the first output layer; a third convolution layer to which the output of the weighting layer is input; 2. The neural network of claim 1.

3. Each of the plurality of blocks further includes: outputting the output of the skip connection in addition to the output of the connection block; The connection block comprises: a second convolutional layer to which the outputs of the one or more first convolutional layers and the output of the skip connection are input; a first output layer to which the output of the second convolutional layer is input; a weighting layer that assigns pre-stored weights to the outputs of the first output layer; a shortcut connection that shortcuts the first output layer and the weighting layer; a third convolution layer to which the output of the weighting layer and the output of the shortcut connection are input; 2. The neural network of claim 1.

4. The first output layer outputs a value obtained by applying a softmax function to the output of the second convolution layer. A neural network according to claim 2 or 3.

5. 1. A method for computing a plurality of blocks in a neural network including an input layer to which input information is input, a plurality of blocks for extracting features of the input information, and an output layer for outputting the extracted features, comprising: A step of inputting first information into a residual block constituting the block, the residual block being configured by a combination of one or more first convolutional layers and a skip connection which is a connection across the one or more first convolutional layers; inputting the feature amount of the first information extracted by the one or more first convolution layers and the first information output by the skip connection to a connection block constituting the block and having at least a second convolution layer, and averaging the feature amount of the first information and the first information; Calculation method.

6. A program for executing a calculation method for a plurality of blocks in a neural network including an input layer to which input information is input, a plurality of blocks for extracting features of the input information, and an output layer for outputting the extracted features, the program comprising: A step of inputting first information into a residual block constituting the block, the residual block being configured by a combination of one or more first convolutional layers and a skip connection which is a connection across the one or more first convolutional layers; inputting the feature amount of the first information extracted by the one or more first convolution layers and the first information output by the skip connection to a connection block constituting the block and having at least a second convolution layer, and averaging the feature amount of the first information and the first information; A program for a computer to execute.

Citation Information

Patent Citations

  • Learning method

    JP2019105899A

  • Image processing method, image processing apparatus, and computer-readable storage medium

    US20190311249A1