MACHINE LEARNING DEVICE, MACHINE LEARNING PROCEDURES AND MACHINE LEARNING PROGRAM

DE602021047968T2Active Publication Date: 2026-02-11JVC KENWOOD CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602021047968
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-01-13
Filing Date
2021-12-09
Publication Date
2026-02-11
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

Catastrophic forgetting occurs in convolutional neural networks (CNNs) due to the saturation of filters when learning new tasks, limiting the number of tasks that can be learned.

Method used

The method involves extracting overlap filters with high similarity in weight as shared filters and initializing the weights of other filters to 0, allowing new tasks to be learned while maintaining performance on previous tasks by using shared filters efficiently.

Benefits of technology

This approach mitigates the speed of filter saturation, enabling the learning of more tasks without degrading performance on previous tasks by optimizing filter usage.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

[TECHNICAL FIELD]

[0001] The present invention relates to machine learning technologies.[BACKGROUND ART]

[0002] Human beings can learn new knowledge through experiences over a long period of time and can maintain old knowledge without forgetting it. Meanwhile, the knowledge of a convolutional neutral network (CNN) depends on the dataset used in learning. To adapt to a change in data distribution, it is necessary to re-train CNN parameters in response to the entirety of the dataset. In CNN, the precision estimation for old tasks will be decreased as new tasks are learned. Thus, catastrophic forgetting cannot be avoided in CNN. Namely, the result of learning old tasks is forgotten as new tasks are being learned in successive learning.

[0003] Incremental learning or continual learning is proposed as a scheme to avoid catastrophic forgetting. One scheme for continual learning is PackNet.

[0004] Patent document 1 discloses a learning device configured to cause two or more learning modules to share model parameters updated by multiple learning modules.

[0005] [Patent Literature 1] JP2010-20446 Attention is drawn to ARUN MALLYA ET AL: "PAckNet: Adding Multiple Tasks to a Single Network by iterative Pruning", ARXIV.ORG, CORNELL UNIVERSTIY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSTIY ITHACA, NY 14853, XP081316404, relating to a method for adding multiple tasks to a single deep neural network avoiding catastrophic forgetting. Iterative pruning and network-retraining leads to sequentially packing multiple tasks into a single network.[SUMMARY OF INVENTION]

[0006] The problem of catastrophic forgetting can be avoided in PackNet, which is one scheme for continual learning. In PackNet, however, the number of filters in a model is limited, and there is a problem in that filters will be saturated as new tasks are learned so that the number of tasks that can be learned is limited.

[0007] The present invention addresses the issue, and a purpose thereof is to provide a machine learning technology capable of mitigating saturation of filters.

[0008] The invention is defined by the appended independent claims. Further embodiments are defined by the appended dependent claims.[BRIEF DESCRIPTION OF DRAWINGS]

[0009] Figs. 1A-1E show continual learning, which is defined as a base technology; Fig. 2 shows a configuration of a machine learning device according to the embodiment; Figs. 3A-3E show continual learning performed by the machine learning device of Fig. 2; Fig. 4 shows an operation of the comparison unit of the machine learning device of Fig. 2; and Fig. 5 is a flowchart showing a sequence of steps of continual learning performed by the machine learning device of Fig. 2. [DESCRIPTION OF EMBODIMENTS]

[0010] Figs. 1A-1E show continual learning by PackNet, which is defined as a base technology. In PackNet, the weights of multiple filters in a model are trained in response to a given task. The figures show multiple filters in each layer of a convolutional neural network arranged in a lattice.

[0011] The learning process in PackNet proceeds in the following steps (A)-(E). (A) The model learns task 1. Fig. 1A shows an initial state of the filters that have learned task 1. All filters have learned task 1 and are shown in black. (B) The filters are arranged in the descending order of weight value of the filter. The values of 60% of the entire filters are initialized in the ascending order of weight value. Fig. 1B shows a final state of the filters that have learned task 1. The initialized filters are shown in white. (C) Task 2 is then learned. In this step, the weight values of the black filters of Fig. 1B are locked. The weight values of only the white filters can be changed. Fig. 1C shows an initial state of the filters that have learned task 2. All filters shown in white in Fig. 1B have learned task 2 and are shown in hatched lines in Fig. 1C. (D) As in step (B), the hatched filters that have learned task 2 are arranged in the descending order of weight value of the filter. The values of 60% of the entire filters are initialized in the ascending order weight value. Fig. 1D shows a final state of the filters that have learned task 2. The initialized filters are shown in white. (E) Further, task 3 is learned. In this step, the weight values of the black and hatched filters of Fig. 1D are locked. The weight values of only the white filters can be changed. Fig. 1E shows an initial state of the filters that have learned task 3. All filters shown in white in Fig. 1D have learned task 3 and are shown in horizontal stripes in Fig. 1E.

[0012] As learning continues through task N in the learning process according to PackNet in this way, the number of initialized white filters will be increasingly smaller, resulting in saturation. When the filters are saturated, it will no longer be possible to learn a new task.

[0013] Saturation of the PackNet filters at some point of time cannot be avoided. However, the speed of saturation of the filters can be mitigated. The embodiment addresses the issue by extracting, every time a new task is learned, overlap filters having a high similarity in weight as shared filters shared by tasks. Of the overlap filters, one filter is left as a shared filter, and the weight of the filters other than the shared filter is initialized to 0. This makes it possible to increase filters that can be learn a new task, mitigate the speed of saturation of the filters, and increase the number of filters that can learn a task.

[0014] Fig. 2 shows a configuration of a machine learning device 100 according to the embodiment. The machine learning device 100 includes an input unit 10, a continual learning unit 20, a filter processing unit 30, a comparison unit 40, a weight storage unit 50, an inference unit 60, and an output unit 70.

[0015] The input unit 10 supplies a supervised task to the continual learning unit 20 and supplies an unknown task to the inference unit 60. By way of one example, the task is image recognition. The task is set to recognize a particular object. For example, task 1 is recognition of a cat, task 2 is recognition of a dog, etc.

[0016] The weight storage unit 50 stores the weights of multiple filters used to detect a feature of the task. By running an image through multiple filters, the feature of the image can be captured.

[0017] The continual learning unit 20 continually trains the weights of the multiple filters in the weight storage unit 50 in response to the input supervised task and saves the updated filter weights in the weight storage unit 50.

[0018] The filter processing unit 30 locks, of the multiple filters that have learned one task, the weights of a predetermined proportion of the filters to prevent them from being used to learn a further task and initializes the weights of the rest of the filters to use them to learn a further task. For example, the filters are arranged in the descending order of filter weight. The weights of 40% of the filters are locked in the descending order of weight value, and the weights of the remaining 60% of the filters are initialized to use them to learn a further task.

[0019] When the initialization by the filter processing unit 30 is completed, the comparison unit 40 compares the weights of multiples filters that have learned two or more tasks and extracts overlap filters for which a similarity in weight is equal to or greater than a threshold value as shared filters shared by tasks. The model is a multi-layer convolutional neural network so that a similarly between the weights of multiple filters are calculated in each layer. Of the overlap filters, the comparison unit 40 leaves one filter as a shared filter, initializes the weights of the filters other than the shared filter, and saves the weights in the weight storage unit 50.

[0020] The continual learning unit 20 continually trains the initialized weights of the filters other than the shared filter in response to a new task.

[0021] The inference unit 60 uses the filter weight saved in the weight storage unit 50 to infer from an input unknown task. The output unit 70 outputs a result of inference by the inference unit 60.

[0022] Figs. 3A-3E show continual learning performed by the machine learning device 100 of Fig. 2. Multiple filters in each layer of a convolutional neural network are shown arranged in a lattice, where (i,j) denote a filter in the i-th row and the j-th column.

[0023] The learning process in the machine learning device 100 proceeds in the following steps (A)-(E). (A) The model learns task 1. Fig. 3A shows an initial state of the filters that have learned task 1. All filters have learned task 1 and are shown in black. (B) The filters are arranged in the descending order of weight value of the filter. The values of 60% of the entire filters are initialized in the ascending order of weight value. Fig. 3B shows a final state of the filters that have learned task 1. The initialized filters are shown in white. (C) Task 2 is then learned. In this step, the weight values of the black filters of Fig. 3B are locked. The weight values of only the white filters can be changed. Fig. 3C shows an initial state of the filters that have learned task 2. All filters shown in white in Fig. 3B have learned task 2 and are shown in hatched lines in Fig. 3C. (D) As in step (B), the hatched filters that have learned task 2 are arranged in the descending order of weight value of the filter. The values of 60% of the entire filters are initialized in the ascending order of weight value. Fig. 3D shows an intermediate state of the filters that have learned task 2. The initialized filters are shown in white. (E) The weights are compared between the black filters that have learned task 1 and the hatched filters that have learned task 2. Those filters for which the similarity exceeds a predetermined threshold value are extracted as overlap filters. Referring to Fig. 3D, for example, the hatched filter (1,3) is similar to the black filter (1,2) so that these filters are determined to be overlap filters. Similarly, the hatched filter (3,1) and the black filter (3,2) are similar overlap filters, and the hatched filter (3,5) and the black filter (4,5) are similar overlap filters.

[0024] As shown in Fig. 3E, the hatched filter (1,3) can be substituted for by the similar black filter (1,2) for use so that the weight of the hatched filter (1,3) is initialized to turn it into a white filter, and the black filter (1,2) is defined as a shared filter shared by task 1 and task 2. Similarly, the hatched filter (3,1) is substituted for by the similar black filter (3,2) for use. The weight of the hatched filter (3,1) is initialized to turn it into a white filter. The black filter (3,2) is defined as a shared filter shared by task 1 and task 2. Further, the hatched filter (3,5) is substituted for by the similar black filter (4,5) for use. The weight of the hatched filter (3,5) is initialized to turn it into a white filter. The black filter (4,5) is defined as a shared filter shared by task 1 and task 2.

[0025] Fig. 3E shows a final state of the filters that have learned task 2. The initialized white filters are used to learn task 3, and the weights thereof are changed accordingly. Similarly, filters having a small weight value are initialized in the initial state of the filters that have learned task 3. The weights are compared between the filters that have learned task 3, the filters that have learned task 1, and the filters that have learned task 2. When there are overlap filters that have similarity, the filters for task 3 are initialized. This is repeated through task N.

[0026] Fig. 4 shows an operation of the comparison unit 40 of the machine learning device 100 of Fig. 2.

[0027] In the intermediate state, shown in Fig. 3D, of the filters that have learned task 2, the weights of the filters that have learned task 1 and the weights of the filters that have learned task 2 are compared. Filters having a high similarity in weight are extracted and are defined as targets of initialization.

[0028] Since the model includes multiple layers, comparison is made in each layer. For example, one layer includes 128 filters. Given that there are 51 filters that have learned task 1 and 30 filters that have learned task 2, and the remaining filters are initialized, a similarity between the 51 filters for task 1 and the 30 filters for task 2 are calculated.

[0029] A similarity is calculated by comparing the absolute values of the filter weight values. In the case of 3×3 filters, for example, the absolute values of the nine weights are compared. A threshold value is defined. When the similarity exceeds the threshold value, it is determined that two filters overlap, and the weight of the filter for task 2 is initialized to 0.

[0030] Given that each component of filter A is defined by a ij and each component of filter B is defined by b ij , a difference in absolute value between the values at the same position in the two filters A, B is calculated as given by d 1 (A, B), d 2 (A, B), d ∞ (A,B), and d m (A, B) . d 1 A B = ∑ i = 1 n ∑ j = 1 n a ij − b ij d 2 A B = ∑ i = 1 n ∑ j = 1 n a ij − b ij 2 d ∞ A B = max 1 ≤ i ≤ n max 1 ≤ j ≤ n a ij − b ij d m A B = max A − B x : x ∈ ℝ n , x = 1

[0031] In the above description, a similarly between filters is calculated by calculating a difference in absolute value between the values at the same position in the two filters. A similarly may be calculated by a method other than this. For example, a filter sum of absolute difference is defined for each filter as a sum of a horizontal sum of absolute difference SAD_H and a vertical sum of absolute difference SAD_V such that SAD=SAD_H+SAD_V. When a difference between the filter sum of absolute difference SAD_A of filter A and the filter sum of absolute difference SAD_B of filter B is smaller than a threshold value, it may be determined that filter A and filter B overlap. Given here that components of a 3×3 filter in the first row are a1, a2, a3, the components in the second row are a4, a5, a6, and the components in the third row are a7, a8, a9, the horizontal sum of absolute difference SAD_H and the vertical sum of absolute difference SAD_V are given by the following expression. SAD_H = a 1 − a 2 + a 2 − a 3 + a 4 − a 5 + a 5 − a 6 + a 7 − a 8 + a 8 − a 9 SAD_V = a 1 − a 4 + a 2 − a 5 + a 3 − a 6 + a 4 − a 7 + a 5 − a 8 + a 6 − a 9

[0032] As an alternative method of calculating a similarity, comparison of a Euclid distance or a cosine distance may be used.

[0033] When filters have a high similarity in weight, the filters are determined to have identical of hardly different characteristics across tasks so that there is no need to maintain a filter that overlaps. Accordingly, one of such filters is initialized and used to learn a further task. The weight is defined as that of one component in a filter. In the case of the 3×3 filter of Fig. 4, the weight is defined as that of one cell in the matrix. Alternatively, the weight may be defined in units of filters, i.e., in units of matrices.

[0034] More generally speaking, when there is a filter that overlaps across task N and task N+1, the weight of the filter for task N+1 is initialized to 0 in order to maintain the performance at task N at the maximum level. This makes it possible to utilize limited filter resources maximally.

[0035] Fig. 5 is a flowchart showing a sequence of steps of continual learning performed by the machine learning device 100 of Fig. 2.

[0036] The input unit 10 inputs a current supervised task to the continual learning unit 20 (S10).

[0037] The continual learning unit 20 continually trains the weight of multiple filters in response a current task (S20).

[0038] The filter processing unit 30 initializes a predetermined proportion of the multiple filters that have learned the current task in the ascending order of weight value (S30).

[0039] The comparison unit 40 compares the filters that have learned the current task and the filters that have learned the past task and calculates a similarity in weight (S40).

[0040] The comparison unit 40 initializes the filter for the current task having a high similarity with the filter for the past task (S50).

[0041] When a task remains, control is returned to step S10, and the next task is input (N in S60). When the tasks have been completed, continual learning is terminated (Y in S60).

[0042] The above-described various processes in the machine learning device 100 can of course be implemented by hardware-based devices such as a CPU and a memory and can also be implemented by firmware stored in a read-only memory (ROM), a flash memory, etc., or by software on a computer, etc. The firmware program or the software program may be made available on, for example, a computer readable recording medium. Alternatively, the program may be transmitted and received to and from a server via a wired or wireless network. Still alternatively, the program may be transmitted and received in the form of data broadcast over terrestrial or satellite digital broadcast systems.

[0043] As described above, the machine learning device 100 according to the embodiment makes it possible to mitigate the speed of saturation of filters in a continual learning model and to learn more tasks by using filters efficiently.[INDUSTRIAL APPLICABILITY]

[0044] The present invention is applicable to machine learning technologies.[REFERENCE SIGNS LIST]

[0045] 10 input unit, 20 continual learning unit, 30 filter processing unit, 40 comparison unit, 50 weight storage unit, 60 inference unit, 70 output unit, 100 machine learning device

Claims

1. A machine learning device (100) comprising: a weight storage unit (50) that stores weights of a plurality of filters in each layer of a multi-layer convolutional neural network that receives an input image for an image recognition task to recognize a particular object and extracts a feature of the input image; a continual learning unit (20) that trains the weights of the plurality of filters in response to the image recognition task to receive the input image and recognize an object in the input image in continual learning; a filter processing unit (30) that, of a plurality of filters that have learned one task, locks the weights of a predetermined proportion of the filters to prevent the predetermined proportion of the filters from being used to learn a further task and initializes the weights of other filters to use the other filters to learn a further task; and a comparison unit (40) that compares in each layer the weights of a plurality of filters that have learned two or more tasks and extracts overlap filters having a similarity in weight equal to or greater than a predetermined threshold value as shared filters shared by tasks.

2. The machine learning device (100) according to claim 1, wherein the comparison unit (40) leaves one of the overlap filters as the shared filter and initializes the weights of filters other than the shared filter.

3. The machine learning device (100) according to claim 2, wherein the continual learning unit (20) trains initialized weights of filters other than the shared filter in response to a further task in continual learning.

4. A computer-implemented machine learning method comprising: training weights of a plurality of filters in each layer of a multi-layer convolutional neural network that receives an input image for an image recognition task to recognize a particular object and extracts a feature of the input image in response to the image recognition task to receive the input image and recognize an object in the input image in continual learning; of a plurality of filters that have learned one task, locking the weights of a predetermined proportion of the filters to prevent the predetermined proportion of the filters from being used to learn a further task and initializing the weights of other filters to use the other filters to learn a further task; and comparing in each layer the weights of a plurality of filters that have learned two or more tasks, leaving one of overlap filters having a similarity in weight equal to or higher than a predetermined threshold value, and initializing the weights of other filters to use the other filters to learn a further task.

5. A machine learning program comprising computer-implemented modules including: a module that trains weights of a plurality of filters in each layer of a multi-layer convolutional neural network that receives an input image for an image recognition task to recognize a particular object and extracts a feature of the input image in response to the image recognition task to receive the input image and recognize an object in the input image in continual learning; a module that, of a plurality of filters that have learned one task, locks the weights of a predetermined proportion of the filters to prevent the predetermined proportion of the filters from being used to learn a further task and initializes the weights of other filters to use the other filters to learn a further task; and a module that compares in each layer the weights of a plurality of filters that have learned two or more tasks, leaves one of overlap filters having a similarity in weight equal to or higher than a predetermined threshold value, and initializes the weights of other filters to use the other filters to learn a further task.