Federated Meta-Learning with Fast Convergence and Efficient Communication

Fei Chen, Mi Luo, Zhenhua Dong, Zhenguo Li, Xiuqiang He

Introduction

The success of deep learning has relied heavily on large amounts of labeled data. In many scenarios, the data is distributed among various clients and is privacy-sensitive, making it unrealistic to collect raw data onto central servers for model training. Meanwhile, as the storage and computational power of mobile devices grow, it is increasingly attractive to move computation, such as the training of machine-learning models, from the cloud to the edge devices. These issues motivate federated learning , which aims to collaboratively train models by maintaining a shared model on a central server and utilizing all clients’ data in a distributed fashion. This setting preserves user privacy without collecting any raw data, while the statistical challenges and systematic challenges become important problems for algorithm design. For statistical challenges, the decentralized data is non-IID, highly personalized and heterogeneous, which leads to a significant reduction in model accuracy . For systematic challenges, the number of devices is typically order of magnitudes larger than that in the traditional distributed settings. Besides, each device may have significant constraints in terms of storage, computation, and communication capacities. To tackle the two challenges, proposed the Federated Averaging (FedAvg) algorithm, which can flexibly determine the number of epochs and batch size for local training with SGD, so as to achieve high accuracy as well as trade-off between computation and communication cost.

Initialization based meta-learning algorithms like MAML are well known for rapid adaptation and good generalization to new tasks, which makes it particularly well-suited for federated setting where the decentralized training data is non-IID and highly personalized. Inspired by this, we propose a federated meta-learning framework which differs significantly from prior work in federated learning. Our work bridges the meta-learning methodology and federated learning. In meta-learning, a parameterized algorithm (or meta-learner) is slowly learned from a large number of tasks through a meta-training process, where a specific model is fast trained by the algorithm in each task. A task typically consists of a support set and a query set that are disjoint from each other. A task-specific model is trained on the support set and then tested on the query set, and the test results are used to update the algorithm. By contrast, in federated meta-learning, an algorithm is maintained on the server, and is distributed to the clients for model training. In each episode of meta-training, a batch of sampled clients receives the parameters of the algorithm and performs model training. Test results on the query set are then uploaded to the server for algorithm update. The workflow of our framework is illustrated in Figure 1.

Comparing federated meta-learning with federated learning. The federated meta-learning framework may seem similar to federated learning, except that the information transmitted between the server and clients is (parameters of) an algorithm instead of a global model. However, we note that meta-learning is conceptually different from distributed model training, and a shared algorithm in federated meta-learning can be applied in a more flexible way than a shared model as in federated learning. For example, in image classification, images of nn categories may be distributed non-uniformly among clients, where each client possesses at most kk categories with k≪nk\ll n. Federated learning would need to train a large nn-way classifier to utilize data from all clients, while a kk-way classifier suffices since it makes predictions for one client each time. The large model increases communication and computation costs. It is possible to send a client only a portion of the model to update the relevant parameters, but this would require knowledge of the client’s private data beforehand to decide the portion. In meta-learning, on the other hand, the algorithm can train tasks containing different categories. For instance, the Model-Agnostic Meta-Learning (MAML) algorithm , to be described in details in the Federated Meta-Learning Section, could provide the initialization for a kk-way classifier by meta-training on kk-way tasks, regardless of the specific categories. Therefore in the federated meta-learning framework, we can use MAML to meta-train a kk-way classifier initialization with all the nn categories. In this way, federated meta-learning has considerably lower communication and computation costs.

Contributions. We focus on the algorithm design aspect of federated setting, for which we present a new framework alongside extensive experimental results. Our contributions are threefold. First, we show that meta-learning is a natural choice for federated setting and propose a novel federated meta-learning framework named FedMeta that incorporates the meta-learning algorithms with federated learning. The framework allows sharing parameterized algorithm in a more flexible manner, while preserving client privacy with no data collected onto servers. We integrate gradient based meta-learning algorithms MAML and Meta-SGD into the framework for illustration. Second, we run experiments on LEAF datasets to compare the running examples contained in our FedMeta framework with the baseline FedAvg in terms of accuracy, computation cost and communication cost. The results show that FedMeta achieves higher accuracies with less or comparable system overhead. Third, we apply FedMeta to an industrial recommendation task where each client has highly personalized records, and experimentally show that meta-learning algorithms achieve higher accuracies for recommendation tasks than federated or stand-alone recommendation approaches.

Related Work

Initialization Based Meta-Learning. In meta-learning, the goal is to learn a model on a collection of tasks, such that it can solve new tasks with only a small number of samples . As one promising direction to meta-learning, initialization based methods has recently demonstrated effectiveness by “learning to fine-tune”. Among the various methods, some are focused on learning an optimizer such as the LSTM-based meta-learner and the Meta Networks with an external memory . Another approach aims to learn a good model initialization , such that the model has maximal performance on a new task with limited samples after a small number of gradient descents. All of the work mentioned above only explore the setting where the tasks have a unified form (e.g., 5-way 5-shot for image classification). In this work, we fill this gap by studying meta-learning algorithms on real-world federated datasets. We focus our attention on model initialization methods where the algorithms are model- and task-agnostic and can be deployed out of the box, as the tasks and models in the federated setting vary. To the best of our knowledge, our proposed framework is the first to explore the federated setting from the meta-learning perspective.

Federated Learning. To handle the statistical and systematic challenges in the ferderated setting, many optimization methods have been proposed , which have significantly improve the convergence performance and system overhead. For example, adds more computation to each client and incorporates a proximal term into local objective function which penalizes large changes from the current global model. However, all works mentioned above aim to learn a large global model across decentralized data, which increases communication and computation cost, and limits their ability to deal with non-IID data as well as heterogeneous structure among clients. In contrast, considers multi-task learning in the federated setting and proposes a communication-efficient primal-dual optimization method, which learns separate but related models for each client. However, this approach does not apply to non-convex deep learning models, where strong duality is no longer guaranteed.

Similar to , the federated meta-learning framework proposed by us treats each client as a task. Instead of training a global model that ingests all tasks, we aim to train a well-initialized model that can achieve rapid adaptation to new tasks. The intuition behind meta-learning algorithms is to extract and propagate internal transferable representations of prior tasks. As a result, they can prevent overfitting and improve generalization on new tasks, which shows the potential in handling the statistical and systematic challenges of federated setting. Besides, we consider model-agnostic meta-learning algorithms including MAML, first-order MAML (FOMAMAL) and Meta-SGD, so our framework could handle the non-convex problems well.

Federated Meta-Learning

In this section, we elaborate the proposed federated meta-learning framework. We first discuss the meta-learning approach and present Model-Agnostic Meta-Learning (MAML) and Meta-SGD algorithms as running examples. Then we describe how meta-learning algorithms are implemented in the federated setting.

The goal of meta-learning is to meta-train an algorithm A\mathcal{A} that can quickly train the model, e.g. a deep neural network, for new tasks. The algorithm Aφ\mathcal{A}_{\varphi} is in general parameterized, where its parameter φ\varphi is updated in the meta-training process using a collection of tasks. A task TT in meta-training consists of a support set DST={(xi,yi)}i=1∣DST∣D_{S}^{T}=\{(x_{i},y_{i})\}_{i=1}^{|D_{S}^{T}|} and a query set DQT={(xi′,yi′)}i=1∣DQT∣D_{Q}^{T}=\{(x^{\prime}_{i},y^{\prime}_{i})\}_{i=1}^{|D_{Q}^{T}|}, both of which contain labeled data points. The algorithm A\mathcal{A} trains a model ff on the support set DSTD_{S}^{T} and outputs parameter θT\theta_{T}, which we call inner update. The model fθTf_{\theta_{T}} is then evaluated on the query set DQTD_{Q}^{T}, and some test loss LDQT(θT)\mathcal{L}_{D_{Q}^{T}}(\theta_{T}) is computed to reflect the training ability of Aφ\mathcal{A}_{\varphi}. Finally, Aφ\mathcal{A}_{\varphi} is updated to minimize the test loss, which we call outer update. Note that the support and query sets are disjoint to maximize the generalization ability of Aφ\mathcal{A}_{\varphi}. Meta-training proceeds in an episodic manner, where in each episode a batch of tasks are sampled from a task distribution T\mathcal{T} over a meta-training set. Therefore, the algorithm Aφ\mathcal{A}_{\varphi} is optimized with the following objective:

where α\alpha is the learning rate for the inner gradient update.

Based on MAML, Meta-SGD takes a step further to learn the initialization θ\theta and inner learning rate α\alpha at the same time. Note that the test loss LDQT(θT)\mathcal{L}_{D_{Q}^{T}}(\theta_{T}) can be treated as a function of θ\theta and α\alpha, both of which can be updated in the outer loop using SGD by taking gradients on LDQT(θT)\mathcal{L}_{D_{Q}^{T}}(\theta_{T}). Moreover, the learning rate α\alpha is a vector of the same dimension as θ\theta, such that α\alpha corresponds to θ\theta coordinate-wise. The optimization objective of Meta-SGD can be written as

2 The Federated Meta-Learning Framework

Under the setting of federated learning , the training data is distributed among a set of clients, and one aims to collaboratively train a model without collecting data onto the server. The model is distributed and trained on the clients, and the server maintains a shared model by averaging the updated models collected from the clients. In many practical applications, such as making recommendations for mobile phone users, the model is in turn used to make predictions for the same set of clients.

We incorporate meta-learning into the federated learning framework. The goal is to collaboratively meta-train an algorithm using data distributed among clients. Taking MAML as a running example, we aim to train an initialization for the model by using all clients’ data together. Recall that MAML contains two levels of optimization: the inner loop to train task-specific models using the maintained initialization, and the outer loop to update the initialization with the tasks’ test loss. In the federated setting, each client uu retrieves the initialization θ\theta from the server, trains the model using a support set DSuD_{S}^{u} of data on device, and sends test loss LDQu(θ)\mathcal{L}_{D_{Q}^{u}}(\theta) on a separate query set DQuD_{Q}^{u} to the server. The server maintains the initialization, and updates it by collecting test losses from a mini batch of clients.

The transmitted information in this process consists of the model parameter initialization (from server to clients) and test loss (from clients to server), and no data is required to be collected to the server. For Meta-SGD, the vector α\alpha is also transmitted as part of the algorithm parameters and used for inner loop model training.

Algorithm 1 illustrates the federated meta-learning framework FedMeta with MAML and Meta-SGD, where communication round corresponds to episode in meta-learning terminology. The algorithm is maintained in the AlgorithmUpdate procedure. In each round of update, the server calls ModelTrainingMAML or ModelTrainingMeta-SGD on a set of sampled clients to gather test losses. To deploy the model on client uu after meta-training, the initialization θ\theta is updated using the training set of uu, and the obtained θu\theta_{u} is used to make predictions.

Experiments

In this section, we evaluate the empirical performance of FedMeta on different tasks, models, and real-world federated datasets. First, we conduct experiments on LEAF datasets — a benchmark for federated settings and show that FedMeta can provide faster convergence, higher accuracy and lower system overhead compared with traditional federated learning approach. Second, we evaluate FedMeta in a more realistic scenario — an industrial recommendation task, and demonstrate that FedMeta can keep the algorithm and the model at a smaller scale while maintaining higher capacities. The statistics of the selected datasets are summarized in Table 1.

In all experiments, we randomly select 80% of clients as training clients, 10% clients as validation clients, and the remaining as testing clients, as we consider the ability to generalize to new clients as a crucial property of federated learning. For each client, the local data is divided into the support set and query set. We vary the fraction pp of data used as support set for each client to study how efficiently could FedMeta adapt to new users with limited data. We denote this setting by “pp Support” in the rest of this section.

As for traditional federated learning, we consider the Federated Averaging algorithm (FedAvg) , which is a heuristic optimization method based on averaging local Stochastic Gradient Descent (SGD) updates, and has been shown to work well empirically in the non-convex setting. For fair comparison, we also implement a meta-learning version of FedAvg, denonted by FedAvg(Meta). Different from the intuitive FedAvg, FedAvg(Meta) uses the support set of the testing clients to fine-tune the model initialization received from the server before testing it, which embodies the essence of meta-learning — “learning to fine-tune”. During training process, both FedAvg and FedAvg(Meta) use all the data on the training clients.

As for federated meta-learning, we include three optimization oriented algorithms: MAML, the first-order approximation of MAML (denoted by FOMAML) and Meta-SGD , all of which are model-agnostic methods and can be readily implemented within our FedMeta framework. FOMAML is a simplified version of MAML where the second derivatives are omitted and is reported to have the similar performance to MAML while leading to roughly 33% speed-up in computation cost . So we additionally consider FOMAML when comparing the system overhead. More details about the implementation are provided in Appendix.

2 LEAF Datasets

We first explore LEAF which is a benchmark for federated settings. LEAF consists of three datasets: (1) FEMNIST for 62-class image classification, which serves as a more complex version of the popular MNIST dataset . The data is partitioned based on the writer of the digit/character. (2) Shakespeare for next character prediction, which is built from The Complete Works of William Shakespeare . Each speaking role in each play is considered as a different client. (3) Sentiment140 for 2-class sentiment classification, which is automatically generated by annotating tweets based on the emoticons presented in them. Each twitter user is considered as a client. We use a CNN model for FEMNIST, a stacked character-level LSTM model for Shakespeare and an LSTM classifier for Sent140. We filter inactive clients with fewer than kk records, which is set to be 10, 20, 25 for FEMNIST, Shakespeare, and Sent140 respectively. Full details about the datasets and the models we adopted are provided in Appendix.

Accuracy and Convergence Comparsion. We study the performance of FedAvg and FedMeta framework on LEAF datasets. Considering the limited computation capacity on edge devices, we set the number of local epochs to be 1 for all methods.

As shown in Figure 2, all methods within FedMeta framework achieve an increase in the final accuracy with faster and more stable convergence. We can see that MAML and Meta-SGD lead to similar convergence speed and final precision on FEMNIST and Shakespeare, while Meta-SGD performs significantly better than MAML on Sent140.

Table 2 shows the final accuracies of four methods after several rounds of communication. First, comparing different methods, we notice that FedAvg performs significantly worse than FedMeta, especially on the image classification task. In contrast, MAML and Meta-SGD achieve the highest accuracies in different cases, increasing the final accuracies by 3.23%-14.84%. We also obeserve that FedAvg(Meta) achieves higher accuracies compared to FedAvg in most cases. However, two special cases are Shakespeare and Sent140 where the support fraction is 20%. Unexpectedly, FedAvg(Meta) leads to a slight accuracy reduction. This may be because the model suffers an excessive deviation from the global optimal after fine-tuning on a small amount of data. Second, when we increase the support fraction pp, the accuracies of FedAvg(Meta) and FedMeta rise in almost all cases. However, the growth rate of FedAvg(Meta) is larger than FedMeta. For example, on Shakespeare, the accuracy of FedAvg(Meta) increases by 4.77% when the support fraction varies from 20% to 90%, while the accuracy of MAML increases by only 0.43%. This shows FedMeta framework has better generalization ability and can efficiently adapt to new clients with limited data.

System Overhead. We characterize the system budget in terms of total number of FLOPS across all devices, and total number of bytes uploaded to and downloaded from the server. Figure 3 shows the necessary system overhead to achieve a target test-set accuracy for different methods. Comparing communication costs, we observe that FedMeta achieves a reduction in required communication cost by 2.82-4.33 times in all cases. In terms of computation cost, FOMAML provides the lowest cost for FEMNIST and Sent140 due to the significant fast convergence. For shakespeare, FedAvg achieves the lowest cost, which is about 5 times less than MAML and Meta-SGD. This is because meta-learning methods produce significant computational expense by using second derivatives when back-propagating the meta-gradient. Comparing MAML and FOMAML, as expected, FOMAML reduces the computation cost for all datasets. For two language modeling tasks, FOMAML decreases the communication cost compared to MAML. But for image classification task, FOMAML increases the communication cost, which shows that the dropping of the backward pass in FOMAML has a greater effect on the convolutional network than LSTM. In general, we can flexibly choose different methods to tradeoff between communication and computation cost in the practical application.

Fairness Comparison. Following recent work , we study the fairness of FedAvg and FedMeta framework by comparing the final accuracy distribution averaged over multiple runs. In the last row of Figure 2, we show the kernel density estimation of different methods. For FEMNIST, we observe that MAML and Meta-SGD not only lead to higher mean accuracies, but also achieve more centered accuracy distribution with lower variance. For Shakespeare, although FedMeta results in higher variance, the mean accuracy is also higher. For Sent140, the accuracy distributions around the highest peaks are almost the same for all methods. However, we see that MAML and Meta-SGD lead to more clients whose accuracies are around 100%. Overall, FedMeta encourages a more fair accuracy distribution across devices for image classification task. While for language modeling tasks, FedMeta remains comparable fairness or sacrifices fairness for higher mean accuracy.

3 Real Industrial Recommendation Task

In order to demonstrate the effectiveness of our FedMeta framework on real-world application with natural partitioning of data over clients, we also evaluate FedMeta on a large production dataset from an industrial recommendation task. Our goal is to recommend the top-kk mobile services for each client based on her past records. As shown in Table 1, there are 2400 distinct services, 9,369 clients and about 6.4 million usage records in this dataset. Besides, each client has 100 to over 5,000 records and 2 to 36 services.

Setting. We cast this recommendation task as a classification problem and consider three settings: META\mathsf{META}, MIXED\mathsf{MIXED} and SELF\mathsf{SELF}. The latter two are regarded as baselines, because we want to include some classical stand-alone recommendation algorithms for fair comparison. (1) The META\mathsf{META} setting corresponds to federated meta-learning approach, where we adopt a 40-class classifier instead of a 2420-class classifier adopted in the MIXED\mathsf{MIXED} setting. Meta-learning allows for training small local models, as explained when federated meta-learning is compared with federated learning in Introduction. Two architectures are considered for this classifier: logistic regression and neural network, denoted by LR and NN respectively. (2) The MIXED\mathsf{MIXED} type represents the federated learning approach, where a unified 2420-class classifier is first trained on the training clients and then fine-tuned to each testing client with the corresponding support set. As for the classifier, we consider a neural network with one hidden layer of 64 neurons, of which the output layer consists of 2420 neurons. We denote it by NN-unified. We avoid using deep neural networks, since we focus on studying the advantage that meta-learning algorithms could bring to training recommendation models, instead of searching for an optimal model. Moreover, in practice the model would be trained on user devices that have limited computation resources where simple models are preferable. (3) The SELF\mathsf{SELF} setting represents the stand-alone approach where a distinct model is trained for each client with its local data. We choose the following methods for classification: most frequently used (MFU), most recently used (MRU), naive Bayes (NB) and the two architectures (LR and NN) adopted in the META\mathsf{META} setting. Full details about the input feature vector construction and the implementation can be found in Appendix.

Accuracy Comparison. From Table 3, we observe the following: (1) Comparing meta-learning algorithms in the META\mathsf{META} setting, with other modules and settings being the same, Meta-SGD outperforms MAML and NN outperforms LR. The simplest combination MAML + LR performs worst, implying that either the algorithm or the model should have certain complexity to guarantee performance of the FedMeta framework. (2) Comparing MIXED\mathsf{MIXED}, SELF\mathsf{SELF} and META\mathsf{META}, the meta-learning methods MAML + NN and Meta-SGD + NN generally outperform all baselines, though both of which has been trained with only 100 gradient steps. Another interesting observation is that MRU has the highest Top 4 accuracy in the “5% Support” case. This may be because the users use a small number of services in a short period of time, and MRU is not affected by the low support fraction. However, as the support set expands, which is often the case in practice, MRU would be outperformed by meta-learning methods.

Convergence Comparison. We further study the convergence performance for META\mathsf{META} and SELF\mathsf{SELF} setting. The models trained in meta-learning approach achieve faster convergence compared with models trained from scratch by using (non-parametric) optimization methods, implying that training of personalized models benefit from good initialization. Full experiment results can be found in Appendix.

Conclusion and Future Work

In this work, we show that meta-learning is a natural choice to handle the statistical and systematic challenges in federated learning, and propose a novel federated meta-learning framework FedMeta. Our empirical evaluation across a suite of federated datasets demonstrates that FedMeta framework achieves significant improvements in terms of accuracy, convergence speed and communication cost. We further validate the effectiveness of FedMeta in an industrial recommendation scenario, where FedMeta outperforms both stand-alone models and unified models trained by the federated learning approach.

In the future, we will explore the following directions: (1) We want to study whether the FedMeta framework has additional advantages in preserving user privacy from the model attack perspective , as the global model shared in the current federated learning approaches still includes all users’ privacy implicitly, while in FedMeta a meta-learner is shared. (2) We will deploy our FedMeta framework online for APP recommendation to evaluate its online performance, involving much engineering work yet to be done.

References

Appendix A Experimental Details

FEMNIST: We study an 62-class image classification task on FEMNIST, which is a more complex version of the popular MNIST dataset. The data is partitioned based on the writer of the digit/character. We consider a CNN with two 5x5 convolution layers (the first one has 32 channels, the second one has 64 channels, each of them followed with 2×22\times 2 max pooling), a fully connected layer with 2048 units and ReLU activation, and a final softmax output layer. The input of the CNN model is a flattened 28×2828\times 28 image, and the output is a number between 0 and 61.

Shakespeare: We study a next character prediction task on Shakespeare, which is built from The Complete Works of William Shakespeare . In the dataset, each speaking role in each play is considered a different client. This language modeling task can be modeled as a 53-class classification problem. We use a two layer LSTM classifier containing 256 hidden units with a 8D embedding layer. The embedding layer takes a sequence of 80 characters as input, and the output is a class label between 0 and 52.

Sent140: We study a 2-class sentiment classification task on Sent140, which is automatically generated by annotating tweets based on the emoticons presented in them. We use a two-layer LSTM classifier with 100 hidden units and pre-trained 300D GloVe embeddings . The input is a senquence of 25 words, where each word is subsequently embedded into a 300 dimensional space by looking up GloVe. The output of the last dense-connected layer is a class label of 0 or 1.

Production Dataset: We study an industrial recommendation task on a production dataset. There are 2400 distinct services and 9369 clients, where each client has 100 to over 5000 records and 2 to 36 services. In each usage record, the label is a service that has been used by the user, and the feature contains service features (e.g., service ID and etc), user features (e.g. last used service and etc) and the context features (e.g. battery level, time, and etc). We conduct experiment with three model architectures: NN-unified, NN and LR. The details of these models are provided in the Experiment Section.

A.2 Implementation Details

Libraries: We implement FedAvg, FedAvg(Meta), FedMeta with MAML, FOMAML and Meta-SGD in TensorFlow which allows for automatic differentiation through the gradient update(s) during meta-learning. We use Adam as the local optimizer for all approaches.

Evaluation There are two common ways to define testing accuracy in the federated setting, namely accuracy with respect to all data points and accuracy with respect to all devices. In this work, we choose the former. As for sampling schemes, we uniformly sample clients at each communication round and average the local models with weights proportional to the number of local data points when updating the algorithm on the server. For fair comparison, the division of clients and the division of support/query sets remain the same for all methods.

Hyperparameters: For each LEAF dataset, we tune the numbers of active clients per round. For FEMNIST, Shakepseare and Sent140, the numbers of active clients are 4, 50 and 60 respectively. We also do a grid search on the learning rates, the best ones are provided in Table 4.

A.3 Additional Experiments on LEAF

As shown in Figure 4 and Figure 5, we provide the convergences curves when the support fractions are 50% and 90%. We notice that the gap between FedAvg(Meta) and FedMeta is shrinking when we increase the support fraction. An example is that the convergence curves of FedAvg(Meta) and FedMeta almost coincide when the support fraction is 90%. This is consistent with previous industrial experience that meta-learning methods do have a greater advantage in the low-data regime than in medium- or large- data regime.

A.4 Additional Experiments on Industrial Task

Input Feature Vector Construction: The input feature vectors are constructed differently for different approaches. For both META\mathsf{META} and SELF\mathsf{SELF}, user-specific models are trained, and the feature vector encodes each usage record with dimension 103. For MIXED\mathsf{MIXED}, a unified model is trained across all users. To improve the prediction accuracy, the feature vector further encodes user ID and service ID, which has dimension 11892.

Setting: We randomly sample 7000 users as training users, some of them are used in pre-training (for baselines) or meta-training (for meta-learning methods), and the remaining ones as testing users. For each testing user, the last 20% records in chronological order are used as query set, and for “pp Support” case, the pp fraction of records are used as support set. In each step in MIXED\mathsf{MIXED} setting, a batch of 500 data points (or half of the user records, whichever is smaller) are sampled from a single user. In the SELF\mathsf{SELF} setting, the batch size is 500 or half size of the query set. In the META\mathsf{META} setting, the algorithms are trained with 20000 episodes, each of them consists one task from a single training user during meta-training. In each meta-training task, 500 data points (or half of the user records) are sampled, among which the first 80% are used as support set and the remaining as query set.

Convergence Comparison: We further study the convergence of meta-learning methods in terms of the number of episodes during meta-training. as shown in Figure 6. The performance of MAML + LR surprisingly becomes worse as meta-training proceeds, especially for the Top 4 recommendation. The other three methods converge within 20000 episodes, while Meta-SGD converges faster than MAML. In particular, Meta-SGD + NN already outperforms the best baseline NN after 4000 episodes.

In Table 3, the SELF\mathsf{SELF} baselines — LR and NN perform significantly better when the number of training gradient steps increases from 100 to 10000. It remains to see how many steps are sufficient to train the models. Figure 7 shows that LR and NN indeed converge in 10000 steps, where the accuracy of LR is below or marginally above Meta-SGD + LR, while the accuracy of NN is below Meta-SGD + NN. We stress that Meta-SGD trains the models with only 100 steps, which is much more efficient than training the models from scratch by using (non-parametric) optimization algorithms.