IP Library Granted Patent US 12,387,107
Granted Patent B2
US 12,387,107 · App. 18/431,680 · Granted Aug 12, 2025

Training multi-task neural network while minimizing catastrophic forgetting

Inventors: Romain Cosentino (Palo Alto, CA); Adam Earle (Palo Alto, CA)
Assignee: Salesforce, Inc.
G06N3/0985
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,387,107
App. No.
18/431,680
Granted
Aug 12, 2025
Kind
B2
Abstract

Techniques are described herein for a method of determining a similarity of each neuron in a layer of neurons of a neural network model to each other neuron in the layer of neurons. The method further includes determining a redundant set of neurons and a non-redundant set of neurons based on the similarity of each neuron in the layer. The method further includes fine tuning the set of non-redundant neurons using a first set of training data. The method further includes training the set of redundant neurons using a second set of training data.

Claims (38)

1. A method comprising:

determining, for a layer of a neural network model trained to perform a first task, a similarity value between neurons in the layer by comparing each neuron's weight vector in the layer to each other neuron's weight vector in the layer, wherein the neural network model comprises a structure including an arrangement of one or more neurons in one or more layers;

grouping the neurons in the layer into a first subset of neurons or a second subset of neurons based on their similarity values, wherein the first subset of neurons comprises a first subnetwork of the neural network model trained to perform the first task; and

training the neural network model to perform a second task, wherein training the neural network model to perform the second task includes training a second subnetwork of the neural network model comprising the second subset of neurons, wherein a gradient is backpropagated to each neuron in the second subset of neurons and wherein the neural network model trained to perform the second task comprises the structure including the arrangement of the one or more neurons in the one or more layers.

2. The method of claim 1 , wherein clustering the neurons in the layer into the first subset of neurons or the second subset of neurons based on their similarity values further comprises:

clustering neurons into the second subset of neurons responsive to determining that the similarity value of two or more neurons in the layer satisfy a threshold similarity score; and

clustering neurons into the first subset of neurons responsive to determining that the similarity value does not satisfy the threshold similarity score.

3. The method of claim 2 , wherein clustering the neurons in the layer into the first subset of neurons further comprises:

selecting a neuron from the second subset of neurons for inclusion in the first subset of neurons.

4. The method of claim 1 , further comprising:

determining a second similarity value between neurons in the second subset of neurons and neurons in the second subset of neurons by comparing each neuron's weight vector in the second subset of neurons in the layer to each other neuron's weight vector in the second subset of neurons in the layer; and

clustering each neuron of the second subset of neurons into a third subset of neurons or a fourth subset of neurons based on the second similarity value.

5. The method of claim 4 , further comprising:

training the neural network model to perform a third task using the third subset of neurons, wherein a second gradient is backpropagated to each neuron in the third subset of neurons and wherein the neural network model trained to perform the third task comprises the structure including the arrangement of the one or more neurons in the one or more layers.

6. The method of claim 4 , wherein clustering each of the second subset of neurons into a third subset of neurons or a fourth subset of neurons based on the second similarity value further comprises:

clustering neurons into the third subset of neurons responsive to determining that the second similarity value of two or more neurons in the second subset of neurons satisfy a threshold similarity score; and

clustering neurons into the first subset of neurons responsive to determining that the second similarity value does not satisfy the threshold similarity score.

7. The method of claim 1 , further comprising:

fine tuning the first subset of neurons using a gradient of a neuron of the first subset of neurons determined using a first set of training data, wherein the first set of training data is used to train the neural network model to perform the first task.

8. A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:

determining, for a layer of a neural network model trained to perform a first task, a similarity value between neurons in the layer by comparing each neuron's weight vector in the layer to each other neuron's weight vector in the layer, wherein the neural network model comprises a structure including an arrangement of one or more neurons in one or more layers;

grouping the neurons in the layer into a first subset of neurons or a second subset of neurons based on their similarity values, wherein the first subset of neurons comprises a first subnetwork of the neural network model trained to perform the first task; and

training the neural network model to perform a second task, wherein training the neural network model to perform the second task includes training a second subnetwork of the neural network model comprising the second subset of neurons, wherein a gradient is backpropagated to each neuron in the second subset of neurons and wherein the neural network model trained to perform the second task comprises the structure including the arrangement of the one or more neurons in the one or more layers.

9. The non-transitory computer-readable medium of claim 8 , wherein clustering the neurons in the layer into the first subset of neurons or the second subset of neurons based on their similarity values further comprises instructions that cause the processing device to perform operations comprising:

clustering neurons into the second subset of neurons responsive to determining that the similarity value of two or more neurons in the layer satisfy a threshold similarity score; and

clustering neurons into the first subset of neurons responsive to determining that the similarity value does not satisfy the threshold similarity score.

10. The non-transitory computer-readable medium of claim 9 , wherein clustering the neurons in the layer into the first subset of neurons further comprises instructions that cause the processing device to perform operations comprising:

selecting a neuron from the second subset of neurons for inclusion in the first subset of neurons.

11. The non-transitory computer-readable medium of claim 8 , storing instructions that further cause the processing device to perform operations comprising:

determining a second similarity value between neurons in the second subset of neurons and neurons in the second subset of neurons by comparing each neuron's weight vector in the second subset of neurons in the layer to each other neuron's weight vector in the second subset of neurons in the layer; and

clustering each neuron of the second subset of neurons into a third subset of neurons or a fourth subset of neurons based on the second similarity value.

12. The non-transitory computer-readable medium of claim 11 , storing instructions that further cause the processing device to perform operations comprising:

training the neural network model to perform a third task using the third subset of neurons, wherein a second gradient is backpropagated to each neuron in the third subset of neurons and wherein the neural network model trained to perform the third task comprises the structure including the arrangement of the one or more neurons in the one or more layers.

13. The non-transitory computer-readable medium of claim 11 , wherein clustering each of the second subset of neurons into a third subset of neurons or a fourth subset of neurons based on the second similarity value further comprises instructions that cause the processing device to perform operations comprising:

clustering neurons into the third subset of neurons responsive to determining that the second similarity value of two or more neurons in the second subset of neurons satisfy a threshold similarity score; and

clustering neurons into the first subset of neurons responsive to determining that the second similarity value does not satisfy the threshold similarity score.

14. The non-transitory computer-readable medium of claim 8 , storing instructions that further cause the processing device to perform operations comprising:

fine tuning the first subset of neurons using a gradient of a neuron of the first subset of neurons determined using a first set of training data, wherein the first set of training data is used to train the neural network model to perform the first task.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 24, 2025
From: TENYX, INC.
To: SALESFORCE, INC.
Reel/Frame 070003/0174 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 20, 2024
From: COSENTINO, ROMAIN; EARLE, ADAM
To: TENYX, INC.
Reel/Frame 066495/0872 →
Continuity (2)
Continuation 18318302 · May 16, 2023
Related Publication 20240386284A1 · Nov 21, 2024
References Cited (7)
US 20170024661A1 · Hunsberger et al. · 2017 [cited by applicant]
US 20200234128A1 · Lin et al. · 2020 [cited by applicant]
Wang et al., “Compressing Deep Networks by Neuron Agglomerative Clustering”, Oct., 23, 2020, Smart Sensing and Advanced Machine Learning Based Emerging Intelligent Systems (Smiles), pp. 1-16. (Year: 2020). [cited by examiner]
Goodrich et al., “Neuron Clustering for Mitigating Catastrophic Forgetting in Feedforward Neural Networks”, Jan., 15, 2015, 2014 IEEE Symposium on Computational Intelligence in Dynamic and Uncertain Environments (CIDUE)… [cited by applicant]
Non-Final Office Action, U.S. Appl. No. 18/318,302, Jul. 20, 2023, 34 pages. [cited by applicant]
Notice of Allowance, U.S. Appl. No. 18/318,302, Nov. 15, 2023, 18 pages. [cited by applicant]
Teng et al., “Overcoming Catastrophic Forgetting via Direction-Constrained Optimization”, Jul. 1, 2022, arXiv:2011.12581v3, pp. 1-20. (Year: 2022). [cited by applicant]