A general method for constructing a deep and wide network combined framework

Through the deep-width network combination framework, deep learning is used to extract features and optimize parameters, and the problems of large amount of parameters in the deep learning model and shallow structure limitations of width learning model are solved, achieving efficient and effective model performance.

CN114372557BActive Publication Date: 2024-11-05SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111612510.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2024-11-05
Estimated Expiration
2041-12-27

Smart Images

  • Figure CN114372557B_ABST
    Figure CN114372557B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for constructing a general deep-wide network combined framework, comprising the following steps: S1, initializing width learning parameters, including the number of mapping feature groups, the number of features within a group, and the number of enhanced nodes; S2, using input data, using a deep network or its components with random values ​​to initialize the mapping feature node group in width learning; S3, using the obtained mapping features to construct an enhanced feature node group using a deep network or its components; S4, merging the two groups of extracted features and connecting them together to the final output layer; S5, using an optimization algorithm to optimize the deep-wide network parameters, including the last layer of connection weights and the parameters of the deep network in the feature layer, until the stop condition is reached. The present invention integrates the ability of deep learning or its components to extract features into width learning, realizes a deep-wide combined model, and effectively solves the problems of large number of parameters and long time consumption in deep learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of neural network, and in particular relates to a method for constructing a universal deep and wide network combined framework. Background Art

[0002] Cyberspace information is in various forms (such as text, images, audio, video, etc.), and the amount of data is growing explosively. In data processing, it presents characteristics such as high complexity, high real-time and high concurrency. These complex characteristics have brought new challenges to the intelligent processing of cyberspace information. Computational intelligence methods have become the basic core methods for intelligent processing of cyberspace information.

[0003] As an effective method of computational intelligence, neural networks have two popular schools of thought: deep learning and wide learning. Both models have their own unique advantages and disadvantages, and can obtain information from different angles in the data. The features extracted by deep learning are more detailed, but the time cost is high; while the single-layer design of wide learning makes it extremely fast, but the shallow structure affects the classification effect of the model on actual high-dimensional data to a certain extent. How to combine the two models to achieve an efficient and effective model is of great significance to solving the processing and pattern recognition of high-dimensional data in the current large-scale context. Summary of the invention

[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and propose a general method for constructing a deep and wide network combined framework, which integrates the ability of deep learning or its components to extract features into wide learning, and realizes a deep and wide combined model. This effectively solves the problems of large number of parameters and long time consumption in deep learning, and breaks through the shallow limitations of wide learning, so that it has stronger feature extraction capabilities, thereby improving model performance.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A general method for constructing a deep and wide network combined framework includes the following steps:

[0007] S1, initialize width learning parameters, including the number of mapping feature groups, the number of features within a group, and the number of enhanced nodes;

[0008] S2, using the input data, using a deep network or its components with random values ​​to initialize the mapping feature node group in width learning;

[0009] S3, constructing an enhanced feature node group using a deep network or its components based on the obtained mapping features;

[0010] S4, merge the two sets of extracted features and connect them to the final output layer;

[0011] S5. Use the optimization algorithm to optimize the parameters of the deep and wide network, including the connection weights of the last layer and the parameters of the deep network in the feature layer, until the stopping condition is reached.

[0012] Furthermore, in step S2, the mapping feature node is the entire deep learning model or a component in the model, and its parameter value is variable during the optimization process.

[0013] Furthermore, in step S3, the enhanced node is the entire deep learning model or a component in the model, and its parameters are variable during the optimization process.

[0014] Furthermore, step S2 specifically includes:

[0015] Using input data X, using deep network f k (θ 1 ) Calculate feature map node Z n ≡[Z 1 ,Z 2 ,…,Z n ], where the i-th group of mapping features Z i The calculation of is as shown in formula (1), each set of features contains k mapping features;

[0016] Z i =X*f k (θ 1 ),i=1,2,…,n (1).

[0017] Furthermore, step S3 specifically includes:

[0018] By mapping node Z n Use a randomly initialized deep network f m (θ 2 ) Calculate the enhanced node H m ≡[H 1 ,H 2 ,…,H m ], where the enhanced feature H j The calculation of is as follows:

[0019] H j ≡Z n *f m (θ 2 ),j=1,2,…,m (2).

[0020] Furthermore, step S4 specifically includes:

[0021] The mapping features and enhanced node features are combined into a feature layer A = α[Z|H], which is connected to the model output layer Y. The connection weight between the feature layer and the output layer is W; where α is a vector, and the sum of all elements is 1; the relationship between the output Y and the feature layer A is as shown in formula (3):

[0022] Y=WA(3).

[0023] Furthermore, in step S5, the parameters in the deep-wide model, including the deep network parameter θ 1 ,θ 2 And the width learning output layer weight W is optimized by the optimization algorithm.

[0024] Furthermore, in step S5, the central idea of ​​the optimization algorithm is to achieve parameter optimization by minimizing the loss function, such as formula (4):

[0025]

[0026] Among them, N represents the number of data, z i is the predicted output corresponding to the i-th data.

[0027] Furthermore, in step S5, the optimization by the optimization algorithm specifically includes the following steps:

[0028] Sa, randomly initialize model parameters;

[0029] Sb, calculate the loss value according to the current parameters;

[0030] Sc, determine whether the termination condition is reached or the iteration reaches the maximum number of generations; if so, terminate the optimization and output the best parameters as the optimal solution; if not, continue iterating;

[0031] Sd, update parameters according to the loss value;

[0032] Se, number of iterations + 1; go to step Sb.

[0033] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0034] 1. The present invention enables width learning to fully utilize the features extracted by the deep network and its components, and strengthen the features through the enhancement layer. Moreover, due to the characteristics of width learning itself, the framework can achieve higher test accuracy using relatively few modules.

[0035] 2. The present invention can effectively combine depth and width to achieve the purpose of reducing parameters and saving time. Compared with the existing depth and width models, it has the characteristics of high efficiency and good effect.

[0036] 3. The framework constructed by the method of the present invention enables width learning to break through the limitations of shallow structure feature extraction. At the same time, the shallower feature nodes and enhanced nodes can play a role in enriching features by extending in the width direction, making the model more effective. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of the method of the present invention;

[0038] Figure 2a Schematic diagram of the CCFEBLS1 model constructed in the embodiment;

[0039] Figure 2b It is a schematic diagram of the structure of the Building block in the embodiment. DETAILED DESCRIPTION

[0040] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0041] Example

[0042] like Figure 1 As shown, the present invention provides a general method for constructing a deep and wide network combined framework, comprising the following steps:

[0043] S1, initialize width learning parameters, including the number of mapping feature groups n, the number of features within a group k, and the number of enhanced nodes m;

[0044] S2, use the deep network or its components to randomly initialize the mapping feature node group in width learning; use the input data X, use the deep network f k (θ 1 ) Calculate feature map node Z n ≡[Z 1 ,Z 2 ,…,Z n ], where the i-th group of mapping features Z i The calculation of is as shown in formula (1), each set of features contains k mapping features;

[0045] Z i =X*f k (θ 1 ),i=1,2,…,n (1)

[0046] Among them, the mapping feature node is the entire deep learning model or a component in the model, and its parameters are variable during the optimization process.

[0047] S3, by mapping node Z n Use a randomly initialized deep network f m (θ 2 ) Calculate the enhanced node H m≡[H 1 ,H 2 ,…,H m ], where the enhanced feature H j The calculation of is as follows:

[0048] H j ≡Z n *f m (θ 2 ),j=1,2,…,m (2).

[0049] Among them, the enhancement node is the entire deep learning model or a component in the model, and its parameters can be changed during the optimization process.

[0050] S4. Connect the features extracted by the two sets of deep networks to the final output layer; merge the mapping features and enhanced node features into a feature layer A = α [Z | H], and connect it to the model output layer Y. The connection weight between the feature layer and the output layer is W; where α is a vector, and the sum of all elements is 1; the relationship between the output Y and the feature layer A is as shown in formula (3):

[0051] Y=WA(3).

[0052] S5. Use the optimization algorithm to optimize its parameters, including the last layer connection weights and feature layer convolution kernels, until the stopping condition is reached.

[0053] In this embodiment, a batch gradient descent algorithm is used for optimization;

[0054] If the loss function of the deep-wide combined network is formula (4)

[0055]

[0056] Among them, N represents the number of data, z i is the predicted output corresponding to the i-th data;

[0057] The partial derivative of the loss function represented by formula (4) is:

[0058]

[0059] Wherein, j=1, 2, represents the feature layer parameter group;

[0060]

[0061] Each iteration adjusts the parameter θ 1 ,θ 2 , W is updated using formula (7) and formula (8).

[0062]

[0063]

[0064] Among them, α is the learning rate;

[0065] Repeat the above steps until the stopping condition is reached. The stopping condition is that the value of the loss function does not change significantly during 5 iterations.

[0066] In this embodiment, the ResNet building block is used to construct the enhanced node of the convolutional deep and wide model, and form the CCFEBLS1 model, such as Figure 2a and Figure 2b As shown. In order to make a fair comparison between ResNet and the proposed CCFEBLS1 model, the number of convolutions and layers of the CCFEBLS1 model and the ResNet model are kept consistent, and the 18-layer, 34-layer and 50-layer ResNet and CCFEBLS1 models are compared respectively. By comparing the results of BLS based on pseudo-inverse solution, BLS based on Backpropagation algorithm, ResNet and CCFEBLS1 on Cifar100, the classification effects of the above models on complex large-scale images are compared in terms of test accuracy, number of parameters and training time to verify the effectiveness of the CCFEBLS framework.

[0067] The public dataset Cifar100 used has 100 classes. Each class has 600 color images of size 32×32, of which 50,000 are used as training sets and 10,000 are used as test sets. The comparison results in terms of accuracy, number of parameters, and time consumption are shown in Table 1.

[0068] Model Test accuracy Parameter quantity (M) Time (h) BLS(PI) 0.5387 1000 0.69 BLS(BP) 0.5337 100 0.67 Res-18 0.6398 1.22 11.22 Res-34 0.6289 2.11 21.32 Res-50 0.6115 4.37 23.80 CCFEBLS1-18 0.6461 1.22 11.27 CCFEBLS1-34 0.6321 2.11 21.37 CCFEBLS1-50 0.6761 4.37 23.89

[0069] Table 1

[0070] This paper attempts to combine the deep and wide network models and proposes a method for constructing a universal deep and wide network combined framework. The constructed framework can fully utilize the feature extraction function of the depth while taking into account the fast and efficient characteristics of wide learning. The model based on this framework has the advantages of high efficiency and good effect.

[0071] It should also be noted that in this specification, terms such as "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0072] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A general method for constructing a deep and wide network combined framework, characterized in that: The following steps are involved: S1, initialize width learning parameters, including the number of mapping feature groups, the number of features within a group, and the number of enhanced nodes; S2, using the input data, using a deep network or its components with random values ​​to initialize the mapping feature node group in width learning, the input data using the color image of the data set Cifar100; Step S2 specifically includes: Using input data X, using deep network f k (θ1) Calculate feature map node Z n ≡[Z1, Z2, ..., Z n ], where the i-th group of mapping features Z i The calculation of is as shown in formula (1), each set of features contains k mapping features; Z i =X*f k (θ1),i=1,2,...,n (1); S3, constructing an enhanced feature node group using a deep network or its components based on the obtained mapping features; Step S3 specifically includes: By mapping node Z n Use a randomly initialized deep network f m (θ2) Calculate the enhanced node H m ≡[H1, H2, ..., H m ], where the enhanced feature H j The calculation of is as follows: H j ≡Z n *f m (θ2),j=1,2,...,m (2); S4, merge the two sets of extracted features and connect them to the final output layer; Step S4 specifically includes: The mapping features and enhanced features are combined into a feature layer A = α[Z|H], which is connected to the model output layer Y. The connection weight between the feature layer and the output layer is W; where α is a vector, and the sum of all elements is 1; the relationship between the output Y and the feature layer A is as shown in formula (3): Y=WA(3); S5. Use the optimization algorithm to optimize the parameters of the deep and wide network, including the connection weights of the last layer and the parameters of the deep network in the feature layer, until the stopping condition is reached; In step S5, the core idea of ​​the optimization algorithm is to achieve parameter optimization by minimizing the loss function, such as formula (4): Among them, N represents the number of data, z i is the predicted output corresponding to the i-th data; The partial derivative of the loss function represented by formula (4) is: Wherein, j=1, 2, represents the feature layer parameter group; In each iteration, the parameters θ1, θ2, W are updated using formula (7) and formula (8): Among them, α is the learning rate; Repeat the above steps until the stopping condition is reached.

2. A method for constructing a general deep and wide network combined framework according to claim 1, characterized in that: In step S2, the mapping feature node is the entire deep learning model or a component in the model, and its parameter value is variable during the optimization process.

3. The method for constructing a general deep and wide network combined framework according to claim 1, characterized in that: In step S3, the enhanced node is the entire deep learning model or a component in the model, and its parameters are variable during the optimization process.

4. The method for constructing a general deep and wide network combined framework according to claim 1, characterized in that: In step S5, the parameters in the deep-wide model, including the deep network parameters θ1, θ2 and the width learning output layer weight W, are optimized by an optimization algorithm.

5. A method for constructing a general deep and wide network combined framework according to claim 4, characterized in that: In step S5, the optimization by the optimization algorithm specifically includes the following steps: Sa, randomly initialize model parameters; Sb, calculate the loss value according to the current parameters; S c , determine whether the termination condition is reached or the iteration reaches the maximum number of generations; if so, terminate the optimization and output the best parameters as the optimal solution; if not, continue iterating; Sd, update parameters according to the loss value; Se, number of iterations + 1; go to step Sb.