# US 2025/0165805 A1 · Meta learning method of deep learning model and meta learning system of deep learning model

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165805 A1
- Document ID: US20250165805A1
- Status: Published application
- Kind: A1
- Application number: 18/920,400
- Filed: 2024-10-18
- Published: 2025-05-22
- Earliest claimed: 2023-10-20
- Assignees: Alipay (Hangzhou) Information Technology Co., Ltd.
- Applicants: Alipay (Hangzhou) Information Technology Co., Ltd.
- Inventors: Youshao XIAO; Shangchun ZHAO; Zhenglei ZHOU; Zhaoxin HUAN; Lin JU; Xiaolu ZHANG; Lin WANG; Jun ZHOU
- Web page: https://patentgrep.com/patent/US20250165805A1

## CPC

- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

This specification provides a meta learning method of a deep learning model and a meta learning system of a deep learning model, and relates to the field of deep learning technologies. The meta learning method of a deep learning model is applied to a cluster including N processing nodes, and the method includes: obtaining a training dataset, where the training dataset includes training samples corresponding to a plurality of tasks; and performing a plurality of times of iterative training on the deep learning model based on the training dataset in parallel by using the N processing nodes in the cluster, to obtain a meta learning parameter of the deep learning model, In each time of iterative training, each of the N processing nodes learns some parameters of the deep learning model by using some training samples in the training dataset, and the some training samples correspond to a same task.

## Claims

### Claim 1

A meta learning method of a deep learning model, wherein the method is applied to a cluster comprising N processing nodes, N is an integer greater than 1, and the method comprises:
obtaining a training dataset, wherein the training dataset comprises training samples corresponding to a plurality of tasks; and
performing a plurality of times of iterative training on the deep learning model based on the training dataset in parallel by using the N processing nodes, to obtain a parameter of the deep learning model, wherein in each time of iterative training, each of the N processing nodes learns some parameters of the deep learning model by using some training samples in the training dataset, and the some training samples correspond to a same task in the plurality of tasks.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the parameter of the deep learning model comprises an embedding layer parameter and a dense layer parameter; and
each processing node learns some parameters in the embedding layer parameter and all parameters in the dense layer parameter by using the some training samples.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the training dataset comprises a plurality of data batches, and a process of each time of iterative training comprises: performing the following operations by using the ith processing node:
determining a target data batch, and dividing the target data batch into a support set and a query set, wherein the target data batch comprises the some training samples, and the target data batch is one of the plurality of data batches;
performing an inner loop training process, wherein the inner loop training process comprises: determining a first embedding layer parameter, determining an inner-loop loss function based on the support set, the first embedding layer parameter, and a current dense layer parameter, and updating the first embedding layer parameter and the current dense layer parameter by optimizing the inner-loop loss function, wherein the current dense layer parameter is updated to an intermediate dense layer parameter; and
performing an outer loop training process, wherein the outer loop training process comprises: determining a second embedding layer parameter, determining an outer-loop loss function based on the query set, the second embedding layer parameter, and the intermediate dense layer parameter, and updating the second embedding layer parameter and the intermediate dense layer parameter by optimizing the outer-loop loss function, wherein
a value of i is a positive integer less than or equal to N, and the first embedding layer parameter and the second embedding layer parameter each correspond to at least some parameters in the embedding layer parameter.

### Claim 4 (depends on 3)

The method according to claim 3, wherein before performing an inner loop training process, the method further comprises: interacting with another processing node in the cluster, to obtain a current embedding layer parameter corresponding to the support set, and obtain a current embedding layer parameter corresponding to the query set;
determining a first embedding layer parameter comprises: determining that the current embedding layer parameter corresponding to the support set is the first embedding layer parameter, wherein the first embedding layer parameter is updated to a third embedding layer parameter after the inner loop training process; and
determining a second embedding layer parameter comprises: determining the second embedding layer parameter based on the current embedding layer parameter corresponding to the query set or the third embedding layer parameter.

### Claim 5 (depends on 4)

The method according to claim 4, wherein determining the second embedding layer parameter based on the current embedding layer parameter corresponding to the query set or the third embedding layer parameter comprises:
when the query set and the support set have an overlapping element, for an embedding layer parameter corresponding to the overlapping element in a training sample of the query set, determining that the third embedding layer parameter is the second embedding layer parameter; and for an embedding layer parameter corresponding to an element other than the overlapping element in the training sample of the query set, determining that the current embedding layer parameter corresponding to the query set is the second embedding layer parameter; or
when the query set and the support set have no overlapping element, determining that the current embedding layer parameter corresponding to the query set is the second embedding layer parameter.

### Claim 6 (depends on 3)

The method according to claim 3, wherein determining an inner-loop loss function based on the support set, the first embedding layer parameter, and a current dense layer parameter comprises:
performing forward computation based on the support set, the first embedding layer parameter, and the current dense layer parameter, to determine the inner-loop loss function; and
updating the first embedding layer parameter and the current dense layer parameter by optimizing the inner-loop loss function comprises:
performing local gradient backward propagation on the inner-loop loss function, to update the first embedding layer parameter and the current dense layer parameter.

### Claim 7 (depends on 3)

The method according to claim 3, wherein updating the second embedding layer parameter by optimizing the outer-loop loss function comprises:
determining a gradient of the outer-loop loss function with respect to the embedding layer parameter, to obtain a sub-embedding layer gradient corresponding to the ith processing node;
interacting with another processing node in the cluster, to obtain a sub-embedding layer gradient corresponding to the another processing node in the cluster;
performing aggregation computation on sub-embedding layer gradients corresponding to the N processing nodes, to obtain a target embedding layer gradient; and
updating the second embedding layer parameter based on the target embedding layer gradient.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the processing node is a graphics processing unit (GPU) node; and
interacting with another processing node in the cluster, to obtain a sub-embedding layer gradient corresponding to the another processing node in the cluster comprises:
interacting with the another processing node in the cluster by using a first collective communication primitive AlltoAll, to obtain the sub-embedding layer gradient corresponding to the another processing node in the cluster.

### Claim 9 (depends on 3)

The method according to claim 3, wherein updating the intermediate dense layer parameter by optimizing the outer-loop loss function comprises:
determining a gradient of the outer-loop loss function with respect to the dense layer parameter, to obtain a sub-dense layer gradient corresponding to the ith processing node;
interacting with another processing node in the cluster, to obtain a sub-dense layer gradient corresponding to the another processing node in the cluster;
performing aggregation computation on sub-dense layer gradients corresponding to the N processing nodes, to obtain a target dense layer gradient; and
updating the intermediate dense layer parameter based on the target dense layer gradient.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the processing node is a graphics processing unit (GPU) node; and
interacting with another processing node in the cluster, to obtain a sub-dense layer gradient corresponding to the another processing node in the cluster comprises:
interacting with the another processing node in the cluster by using a second collective communication primitive AllReduce, to obtain the sub-dense layer gradient corresponding to the another processing node in the cluster.

### Claim 11 (depends on 2)

The method according to claim 2, wherein before performing a plurality of times of iterative training on the deep learning model based on the training dataset in parallel by using the N processing nodes, the method further comprises:
dividing the embedding layer parameter, to obtain N subsets; and
storing a parameter in the ith subset and the dense layer parameter in the ith processing node, wherein a value of i is a positive integer less than or equal to N.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the training dataset comprises a plurality of data batches, and obtaining a training dataset comprises:
determining training samples respectively corresponding to P tasks, wherein each training sample comprises a task identifier of a task to which the training sample belongs, and P is an integer greater than 1; and
splitting the training samples respectively corresponding to the P tasks into Q data batches based on a predetermined batch size, to obtain the training dataset, wherein task identifiers of training samples belonging to a same data batch are consistent, and Q is an integer greater than P.

### Claim 13 (depends on 1)

The method according to claim 1, wherein the processing node is a graphics processing unit (GPU) node, the N processing nodes are deployed on a plurality of physical devices, and in a process of the plurality of times of iterative training, different processing nodes within a same physical device communicate through a high-speed connection channel NVLink, and different physical devices communicate through remote direct memory access (RDMA).

### Claim 14 (depends on 1)

The method according to claim 1, wherein the deep learning model is a deep learning recommendation model (DLRM).

### Claim 15

(canceled)

### Claim 16

A computing device comprising a memory and a processor, wherein the memory stores executable instructions that, in response to execution by the processor, cause the computing device to implement a meta learning method of a deep learning model, wherein the method is applied to a cluster comprising N processing nodes, N is an integer greater than 1, and the method comprises:
obtaining a training dataset, wherein the training dataset comprises training samples corresponding to a plurality of tasks; and
performing a plurality of times of iterative training on the deep learning model based on the training dataset in parallel by using the N processing nodes, to obtain a parameter of the deep learning model, wherein in each time of iterative training, each of the N processing nodes learns some parameters of the deep learning model by using some training samples in the training dataset, and the some training samples correspond to a same task in the plurality of tasks.

### Claim 17 (depends on 16)

The computing device according to claim 16, wherein the parameter of the deep learning model comprises an embedding layer parameter and a dense layer parameter; and
each processing node learns some parameters in the embedding layer parameter and all parameters in the dense layer parameter by using the some training samples.

### Claim 18 (depends on 17)

The computing device according to claim 17, wherein the training dataset comprises a plurality of data batches, and a process of each time of iterative training comprises: performing the following operations by using the ith processing node:
determining a target data batch, and dividing the target data batch into a support set and a query set, wherein the target data batch comprises the some training samples, and the target data batch is one of the plurality of data batches;
performing an inner loop training process, wherein the inner loop training process comprises: determining a first embedding layer parameter, determining an inner-loop loss function based on the support set, the first embedding layer parameter, and a current dense layer parameter, and updating the first embedding layer parameter and the current dense layer parameter by optimizing the inner-loop loss function, wherein the current dense layer parameter is updated to an intermediate dense layer parameter; and
performing an outer loop training process, wherein the outer loop training process comprises: determining a second embedding layer parameter, determining an outer-loop loss function based on the query set, the second embedding layer parameter, and the intermediate dense layer parameter, and updating the second embedding layer parameter and the intermediate dense layer parameter by optimizing the outer-loop loss function, wherein
a value of i is a positive integer less than or equal to N, and the first embedding layer parameter and the second embedding layer parameter each correspond to at least some parameters in the embedding layer parameter.

### Claim 19 (depends on 18)

The computing device according to claim 18, wherein before performing an inner loop training process, the method further comprises: interacting with another processing node in the cluster, to obtain a current embedding layer parameter corresponding to the support set, and obtain a current embedding layer parameter corresponding to the query set;
determining a first embedding layer parameter comprises: determining that the current embedding layer parameter corresponding to the support set is the first embedding layer parameter, wherein the first embedding layer parameter is updated to a third embedding layer parameter after the inner loop training process; and
determining a second embedding layer parameter comprises: determining the second embedding layer parameter based on the current embedding layer parameter corresponding to the query set or the third embedding layer parameter.

### Claim 20 (depends on 19)

The computing device according to claim 19, wherein determining the second embedding layer parameter based on the current embedding layer parameter corresponding to the query set or the third embedding layer parameter comprises:
when the query set and the support set have an overlapping element, for an embedding layer parameter corresponding to the overlapping element in a training sample of the query set, determining that the third embedding layer parameter is the second embedding layer parameter; and for an embedding layer parameter corresponding to an element other than the overlapping element in the training sample of the query set, determining that the current embedding layer parameter corresponding to the query set is the second embedding layer parameter; or
when the query set and the support set have no overlapping element, determining that the current embedding layer parameter corresponding to the query set is the second embedding layer parameter.

### Claim 21

A non-transitory computer-readable storage medium comprising instructions stored therein that, when executed by a processor of a computing device, cause the computing device to implement a meta learning method of a deep learning model, wherein the method is applied to a cluster comprising N processing nodes, N is an integer greater than 1, and the method comprises:
obtaining a training dataset, wherein the training dataset comprises training samples corresponding to a plurality of tasks; and
performing a plurality of times of iterative training on the deep learning model based on the training dataset in parallel by using the N processing nodes, to obtain a parameter of the deep learning model, wherein in each time of iterative training, each of the N processing nodes learns some parameters of the deep learning model by using some training samples in the training dataset, and the some training samples correspond to a same task in the plurality of tasks.
