Adaptive Gradient-Based Meta-Learning Methods
Mikhail Khodak, Maria-Florina Balcan, Ameet Talwalkar
Introduction
Meta-learning, or learning-to-learn (LTL) , has recently re-emerged as an important direction for developing algorithms for multi-task learning, dynamic environments, and federated settings. By using the data of numerous training tasks, meta-learning methods seek to perform well on new, potentially related test tasks without using many samples. Successful modern approaches have also focused on exploiting the capabilities of deep neural networks, whether by learning multi-task embeddings passed to simple classifiers or by neural control of optimization algorithms .
Because of its simplicity and flexibility, a common approach is parameter-transfer, where all tasks use the same class of -parameterized functions ; often a shared model is learned that is used to train within-task models. In gradient-based meta-learning (GBML) , is a meta-initialization for a gradient descent method over samples from a new task. GBML is used in a variety of LTL domains such as vision , federated learning , and robotics . Its simplicity also raises many practical and theoretical questions about the task-relations it can exploit and the settings in which it can succeed. Addressing these issues has naturally led several authors to online convex optimization (OCO) , either directly or from online-to-batch conversion . These efforts study how to find a meta-initialization, either by proving algorithmic learnability or giving meta-test-time performance guarantees .
However, this recent line of work has so far considered a very restricted, if natural, notion of task-similarity – closeness to a single fixed point in the parameter space. We introduce a new theoretical framework, Average Regret-Upper-Bound Analysis (ARUBA), that enables the derivation of meta-learning algorithms that can provably take advantage of much more sophisticated structure. ARUBA treats meta-learning as the online learning of a sequence of losses that each upper bounds the regret on a single task. These bounds often have convenient functional forms that are (a) sufficiently nice, so that we can draw upon the existing OCO literature, and (b) strongly dependent on both the task-data and the meta-initialization, thus encoding task-similarity in a mathematically accessible way. Using ARUBA we introduce or dramatically improve upon GBML results in the following settings:
Adapting to the Task-Similarity: A major drawback of previous work is a reliance on knowing the task-similarity beforehand to set the learning rate or regularization , or the use of a sub-optimal guess-and-tune approach using the doubling trick . ARUBA yields a simple gradient-based algorithm that eliminates the need to guess the similarity by learning it on-the-fly.
Adapting to Dynamic Environments: While previous theoretical work has largely considered a fixed initialization , in many practical applications of GBML the optimal initialization varies over time due to a changing environment . We show how ARUBA reduces the problem of meta-learning in dynamic environments to a dynamic regret-minimization problem, for which there exists a vast array of online algorithms with provable guarantees that can be directly applied.
Adapting to the Inter-Task Geometry: A recurring notion in LTL is that certain model weights, such as feature extractors, are shared, whereas others, such as classification layers, vary between tasks. By only learning a fixed initialization we must re-learn this structure on every task. Using ARUBA we provide a method that adapts to this structure and determines which directions in need to be updated by learning a Mahalanobis-norm regularizer for online mirror descent (OMD). We show how a variant of this can be used to meta-learn a per-coordinate learning-rate for certain GBML methods, such as MAML and Reptile , as well as for FedAvg, a popular federated learning algorithm . This leads to improved meta-test-time performance on few-shot learning and a simple, tuning-free approach to effectively add user-personalization to FedAvg.
Statistical Learning-to-Learn: ARUBA allows us to leverage powerful results in online-to-batch conversion to derive new bounds on the transfer risk when using GBML for statistical LTL , including fast rates in the number of tasks when the task-similarity is known and high-probability guarantees for a class of losses that includes linear regression. This improves upon the guarantees of Khodak et al. and Denevi et al. for similar or identical GBML methods.
Theoretical LTL: The statistical analysis of LTL was formalized by Baxter . Several works have built upon this theory for modern LTL, such as via a PAC-Bayesian perspective or by learning the kernel for the ridge regression . However, much effort has also been devoted to the online setting, often through the framework of lifelong learning . Alquier et al. consider a many-task notion of regret similar to the one we study in order to learn a shared data representation, although our algorithms are much more practical. Recently, Bullins et al. developed an efficient online approach to learning a linear data embedding, but such a setting is distinct from GBML and more closely related to popular shared-representation methods such as ProtoNets . Nevertheless, our approach does strongly rely on online learning through the study of data-dependent regret-upper-bounds, which has a long history of use in deriving adaptive single-task methods ; however, in meta-learning there is typically not enough data to adapt to without considering multi-task data. Analyzing regret-upper-bounds was done implicitly by Khodak et al. , but their approach is largely restricted to using Follow-the-Leader (FTL) as the meta-algorithm. Similarly, Finn et al. use FTL to show learnability of the MAML meta-initialization. In contrast, the ARUBA framework can handle general classes of meta-algorithms, which leads not only to new and improved results in static, dynamic, and statistical settings but also to significantly more practical LTL methods.
GBML: GBML stems from the Model-Agnostic Meta-Learning (MAML) algorithm and has been widely used in practice . An expressivity result was shown for MAML by Finn and Levine , proving that the meta-learner can approximate any permutation-invariant learner given enough data and a specific neural architecture. Under strong-convexity and smoothness assumptions and using a fixed learning rate, Finn et al. show that the MAML meta-initialization is learnable, albeit via an impractical FTL method. In contrast to these efforts, Khodak et al. and Denevi et al. focus on providing finite-sample meta-test-time performance guarantees in the convex setting, the former for the SGD-based Reptile algorithm of Nichol et al. and the latter for a regularized variant. Our work improves upon these analyses by considering the case when the learning rate, a proxy for the task-similarity, is not known beforehand as in Finn et al. and Denevi et al. but must be learned online; Khodak et al. do consider an unknown task-similarity but use a doubling-trick-based approach that considers the absolute deviation of the task-parameters from the meta-initialization and is thus average-case suboptimal and sensitive to outliers. Furthermore, ARUBA can handle more sophisticated and dynamic notions of task-similarity and in certain settings can provide better statistical guarantees than those of Khodak et al. and Denevi et al. .
Average Regret-Upper-Bound Analysis
Generality: Many algorithms of interest in meta-learning have regret guarantees with nice, e.g. smooth and convex, functional forms that depend strongly on both their parameterizations and the task-data. This data-dependence lets us adaptively set the parameterization .
Consequences: By definition of we have that bounds the task-averaged regret (TAR) . Thus if the average regret-upper-bound is small then the meta-learner will perform well on-average across tasks. In Section 5 we further show that a low average regret-upper-bound will also lead to strong statistical guarantees in the batch setting.
ARUBA’s applicability depends only on finding a low-regret algorithm over the functions ; then by observation 2 we get a task-averaged regret bound where the first term vanishes as while by observation 1 the second term can be made small due to the data-dependent task-similarity:
Adapting to Similar Tasks and Dynamic Environments
Putting these together, we seek to define variants of Algorithm 1 for which as the average regret scales with , where , without knowing this quantity in advance. Note for fixed this measures the empirical standard deviation of the optimal task-actions . Thus achieving our goal implies that average performance improves with task-similarity.
On each task Algorithm 1 runs online mirror descent with regularizer for initialization and learning rate . It is well-known that OMD and the related Follow-the-Regularized-Leader (FTRL), for which our results also hold, generalize many important online methods, e.g. OGD and multiplicative weights . For convex losses with mean squared Lipschitz constant they also share a convenient, data-dependent regret-upper-bound for any [48, Theorem 2.15]:
All that remains is to come up with update rules for the meta-initialization and the learning rate in Algorithm 1 so that the average over of these upper-bounds is small. While this can be viewed as a single online learning problem to determine actions , it is easier to decouple and by first defining two function sequences and :
We show in Theorem 3.1 that to get an adaptive algorithm it suffices to specify two OCO algorithms, and , such that the actions achieve good (dynamic) regret over and the actions achieve low (static) regret over ; these actions then determine the update rules of and . We will specialize Theorem 3.1 to derive algorithms that provably adapt to task similarity (Theorem 3.2) and to dynamic environments (Theorem 3.3).
To understand the formulation of and , first note that , so the online algorithm over corresponds to an online algorithm over the regret-upper-bounds when the sequence of initializations is chosen adversarially. Once we have shown that is low-regret we can compare its losses to those of an arbitrary fixed ; this is the first line in the proof of Theorem 3.1 (below). For fixed , each is an affine transformation of , so the algorithm with low dynamic regret over corresponds to an algorithm with low dynamic regret over the regret-upper-bounds when . Thus once we have shown a dynamic regret guarantee for we can compare its losses to those of an arbitrary comparator sequence ; this is the second line in the proof of Theorem 3.1.
Let be an algorithm whose dynamic regret over functions w.r.t. any reference sequence is upper-bounded by .
Let be an algorithm whose static regret over functions w.r.t. any is upper-bounded by a non-increasing function of .
If Algorithm 1 sets and then for it will achieve average regret
For we have by the regret bound on OMD/FTRL (2) that
where the last line follows by substituting . ∎
By Theorem 3.1, if we can specify algorithms and with sublinear regret over and (3), respectively, then the average regret will converge to as desired. We first show an approach in the case when the optimal actions are close to a fixed point in , i.e. for fixed . Henceforth we assume the Lipschitz constant and number of rounds are the same across tasks; detailed statements are in the supplement.
Under the assumptions of Theorem 3.1 and boundedness of over , if plays and uses -EWOO (4) with then Algorithm 1 achieves average regret
Related Tasks in Changing Environments:
In many settings we have a changing environment and so it is natural to study dynamic regret. This has been widely analyzed by the online learning community , often by showing a dynamic regret bound consisting of a sublinear term plus a bound on the variation in the action or function space. Using Theorem 3.1 we can show dynamic guarantees for GBML via reduction to such bounds. We provide an example in the Euclidean geometry using the popular path-length-bound for reference actions . We use a result showing that OGD with learning rate over -strongly-convex, -strongly-smooth, and -Lipschitz functions has a bound of on its dynamic regret [42, Corollary 1]. Observe that in the case of the sequence in Theorem 3.1 consists of -Lipschitz quadratic functions. Thus using Theorem 3.1 we achieve the following:
Under Theorem 3.1 assumptions, bounded , and , if is OGD with learning rate and uses -EWOO (4) with then by using OGD within-task Algorithm 1 will achieve for any fixed comparator sequence the average regret
for and .
This bound controls the average regret across tasks using the deviation of the optimal task parameters from some reference sequence , which is assumed to vary slowly or sparsely so that the path length is small. Figure 2 illustrates when such a guarantee improves over Theorem 3.2. Note also that Theorem 3.3 specifies OGD as the meta-update algorithm , so under the approximation that each task ’s last iterate is close to this suggests that simple GBML methods such as Reptile or FedAvg are adaptive. The generality of ARUBA also allows for the incorporation of other dynamic regret bounds and other non-static notions of regret .
Adapting to the Inter-Task Geometry
Observe the similarity between this update AdaGrad , which is also inversely related to the sum of the element-wise squares of all gradients seen so far. Our method adds multi-task information by setting the numerator to depend on the sum of squared distances between the initializations set by the algorithm and that task’s optimal action . This algorithm has the following guarantee:
As the average regret converges to the minimum over of the last two terms, which corresponds to running OMD with the optimal initialization and per-coordinate learning rate on every task. The rate of convergence of is slightly slower than the usual achieved in the previous section; this is due to the algorithm’s adaptivity to within-task gradients, whereas previously we simply assumed a known Lipschitz bound when setting . This adaptivity makes the algorithm much more practical, leading to a method for adaptively learning a within-task learning rate using multi-task information; this is outlined in Algorithm 2 and shown to significantly improve GBML performance in Section 6. Note also the per-coordinate separation of the left term, which shows that the algorithm converges more quickly on non-degenerate coordinates. The per-coordinate specification of (9) can be further generalized to learning a full-matrix adaptive regularizer, for which we show guarantees in Theorem 4.2. However, the rate is much slower, and without further assumptions such methods will have computation and memory requirements.
for and . Then for corresponding to the th largest eigenvalue we have
Fast Rates and High Probability Bounds for Statistical Learning-to-Learn
In the general case, Theorem 5.1 provides bounds on the excess transfer risk decreasing with and . Thus if improves with task-similarity so will the transfer risk as . Note that the second term is rather than as in most-analyses ; this is because regret is -bounded but the OMD regret-upper-bound is -bounded. The results also demonstrate ARUBA’s ability to utilize specialized results from the online-to-batch conversion literature. This is witnessed by the guarantee for self-bounded losses, a class which Zhang shows includes linear regression; we use a result by the same author to obtain high-probability bounds, whereas previous GBML bounds are in-expectation . We also apply a result due to Kakade and Tewari for the case of strongly-convex regret-upper-bounds, enabling fast rates in the number of tasks . The strongly-convex case is especially relevant for GBML since it holds for OGD with fixed learning rate.
In the setting of Theorems 3.2 & 5.1, if and Algorithm 1 uses within-task OGD with initialization and step-size for as above, then w.p.
If is set adaptively using -EWOO as in Theorem 3.2 for then w.p.
Empirical Results: Adaptive Methods for Few-Shot & Federated Learning
ARUBA++: starting with and , adaptively reset the learning rate by setting for some and then updating . Isotropic: and are scalars tracking the sum of squared distances and sum of squared gradient norms, respectively.
We first examine if Algorithm 2 can improve performance on Omniglot and Mini-ImageNet , two standard few-shot learning benchmarks, when used to modify Reptile, a simple meta-learning method . In its serial form Reptile is roughly the algorithm we study in Section 3 when OGD is used within-task and is fixed. Thus we can set Reptile+ARUBA to be Algorithm 2 with the last iterate of OGD and the meta-update a weighted sum of and . In practice, however, Reptile uses Adam to exploit multi-task gradient information. As shown in Table 1, ARUBA matches or exceeds this baseline on Mini-ImageNet, although on Omniglot it requires the additional within-task updating of ARUBA++ to show improvement.
It is less clear how ARUBA can be applied to MAML , as by only taking one step the distance traveled will be proportional to the gradient, so will stay fixed. We also do not find that ARUBA improves multi-step MAML – perhaps not surprising as it is further removed from our theory due to its use of held-out data. In Table 1 we compare to Meta-SGD , which does learn a per-coordinate learning rate for MAML by automatic differentiation. This requires more computation but does lead to consistent improvement. As with the original Reptile, our modification performs better on Mini-ImageNet but worse on Omniglot compared to MAML and its modification Meta-SGD.
Federated Learning:
A main goal in this setting is to use data on heterogeneous nodes to learn a global model without much communication; leveraging this to get a personalized model is an auxiliary goal , with a common application being next-character prediction on mobile devices. A popular method is FedAvg , where at each communication round the server sends a global model to a batch of nodes, which then run local OGD; the server then sets to the average of the returned models. This can be seen as a GBML method with each node a task, making it easy to apply ARUBA: each node simply sends its accumulated squared gradients to the server together with its model. The server can use this information and the squared difference between and to compute a learning rate via Algorithm 2 and send it to each node in the next round. We use FedAvg with ARUBA to train a character LSTM on the Shakespeare dataset, a standard benchmark of a thousand users with varying amounts of non-i.i.d. data . Figure 3 shows that ARUBA significantly improves over non-tuned FedAvg and matches the performance of FedAvg with a tuned learning rate schedule. Unlike both baselines we also do not require step-size tuning when refining the global model for personalization. This reduced need for hyperparameter optimization is crucial in federated settings, where the number of user-data accesses are extremely limited.
Conclusion
In this paper we introduced ARUBA, a framework for analyzing GBML that is both flexible and consequential, yielding new guarantees for adaptive, dynamic, and statistical LTL via online learning. As a result we devised a novel per-coordinate learning rate applicable to generic GBML procedures, improving their training and meta-test-time performance on few-shot and federated learning. We see great potential for applying ARUBA to derive many other new LTL methods in a similar manner.
Acknowledgments
We thank Jeremy Cohen, Travis Dick, Nikunj Saunshi, Dravyansh Sharma, Ellen Vitercik, and our three anonymous reviewers for helpful feedback. This work was supported in part by DARPA FA875017C0141, National Science Foundation grants CCF-1535967, CCF-1910321, IIS-1618714, IIS-1705121, IIS-1838017, and IIS-1901403, a Microsoft Research Faculty Fellowship, a Bloomberg Data Science research grant, an Amazon Research Award, an Amazon Web Services Award, an Okawa Grant, a Google Faculty Award, a JP Morgan AI Research Faculty Award, and a Carnegie Bosch Institute Research Award. Any opinions, findings and conclusions, or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of DARPA, the National Science Foundation, or any other funding agency.
References
Appendix A Background and Results for Online Convex Optimization
We first state the related definitions of strong convexity and strong smoothness:
Finally, we will also consider functions that are exp-concave :
We now turn to the Bregman divergence and a discussion of several useful properties :
The definition directly implies that preserves the (strong or strict) convexity of for any fixed . Strict convexity further implies , with equality iff . Finally, if is -strongly-convex, or -strongly-smooth, w.r.t. then Definitions A.1 and A.2 imply or , respectively.
By Definition A.4 the last expression has a unique minimum at . ∎
A.2 Online Algorithms
Here we provide a review of the online algorithms we use. Recall that in this setting our goal is minimizing regret:
Within-task our focus is on two closely related meta-algorithms, Follow-the-Regularized-Leader (FTRL) and (linearized lazy) Online Mirror Descent (OMD).
for all and .
We next review the online algorithms we use for the meta-update. The main requirement here is logarithmic regret guarantees for the case of strongly convex loss functions, which is satisfied by two well-known algorithms:
Kakade and Shalev-Shwartz [32, Theorem 2] and Bartlett et al. [7, Theorem 2.1] provide for FTL and AOGD, respectively, the following regret bound:
Finally, we state the EWOO algorithm due to Hazan et al. . While difficult to run in high-dimensions, we will be running this method in single dimensions, when computing it requires only one integral.
Hazan et al. [28, Theorem 7] provide the following guarantee for EWOO, which is notable for its lack of explicit dependence on the Lipschitz constant.
A.3 Online-to-Batch Conversion
Finally, as we are also interested in distributional meta-learning, we discuss some techniques for converting regret guarantees into generalization bounds, which are usually named online-to-batch conversions. We first state some standard results.
for and any .
For nonnegative bounded losses we have the following fact [14, Proposition 1]:
Note that Cesa-Bianchi et al. only prove the first inequality; the second follows via the same argument but applying the symmetric version of the Azuma-Hoeffding inequality . The inequalities above can be easily used to derive the following competitive bounds:
for any . If the losses are also convex then for we have
Apply linearity of expectations to get the first inequality and Jensen’s inequality to get the second. ∎
We now discuss some stronger guarantees for certain classes of loss functions. The first, due to Kakade and Tewari [33, Theorem 2], yields faster rates for strongly convex losses:
We can also obtain a data-dependent bound using a result of Zhang under a self-bounding property. Cesa-Bianchi and Gentile [13, Proposition 2] show a similar but less general result.
Apply Jensen’s inequality and Zhang [54, Theorem 4]. ∎
Note that nonnegative 1-bounded convex losses satisfy the conditions of Theorem A.5 with . However, we are interested in a different result that can yield a data-dependent competitive bound:
Zhang [54, Lemma 7] shows that the conditions are satisfied for by least-squares regression.
A.4 Dynamic Regret Guarantees
Here we review several results for optimizing dynamic regret. We first define this quantity:
Mokhtari et al. [42, Corollary 1] show the following guarantee for OGD over strongly convex functions:
Appendix B Strongly Convex Coupling
Our first result is a simple trick that we believe may be of independent interest. It allows us to bound the regret of FTL on any (possibly non-convex) sequence of Lipschitz functions so long as the actions played are identical to those played on a different strongly-convex sequence of Lipschitz functions. The result is formalized in Theorem B.1.
We start with some standard facts about convex functions.
Next we state some technical results, starting with the well-known be-the-leader lemma [48, Lemma 2.1].
The final result depends on a stability argument for FTL on strongly-convex functions adapted from Saha et al. :
Adding these two inequalities and applying Claim B.1 yields
Dividing by yields the result. ∎
In the convex case we instead apply Claim B.1 and Lemma B.2 to get
B.2 Applications
We now show two applications of strongly convex coupling. The first shows logarithmic regret for FTL run on a sequence of Bregman regularizers. Note that these functions are nonconvex in general.
Note that is -Lipschitz w.r.t. . Let , so . The function is thus -strongly-convex and -Lipschitz w.r.t. . Now by Claim A.1 FTL run on this new sequence plays the same actions as FTL run on the original sequence. Applying Theorem B.1 yields the result. ∎
Appendix C Adaptive and Dynamic Guarantees
: a method that has dynamic regret w.r.t. reference actions over the sequence .
: a method that has (static) regret decreasing in over the sequence of functions .
Then if Algorithm 1 sets and it will achieve
for .
Letting be the output of at time , defining and , and substituting into the regret-upper-bound of OMD/FTRL (2), we have that
where the last line follows by substituting . ∎
Under the assumptions of Theorem C.1 and boundedness of over , if uses FTL, or AOGD in the case of , and uses -FTL as defined in Proposition B.2, then Algorithm 1 achieves
for and constant the product of the constant from Proposition B.1 and the bound on the gradient of the Bregman divergence. Assuming and substituting yields
Substitute Propositions B.1 and B.2 into Theorem C.1. ∎
Under the assumptions of Theorem C.1 and boundedness of over , if uses FTL, or AOGD in the case of , and uses -EWOO as defined in Proposition C.2, then Algorithm 1 achieves
for and constant the product of the constant from Proposition B.1 and the bound on the gradient of the Bregman divergence. Assuming and substituting yields
Substitute Proposition B.1 and Corollary C.2 into Theorem C.1. ∎
Under the assumptions of Theorem 3.1 and boundedness of , if is OGD with learning rate and uses -EWOO as defined in Proposition C.2 then Algorithm 1 achieves
for . Assuming and substituting yields
Substitute Theorem 3.3 and Corollary C.2 into Theorem C.1. ∎
Appendix D Adapting to the Inter-Task Geometry
for and .
We will denote the spectral norm by and the Frobenius norm by .
[43, Theorem 3.1] The function is -strongly-convex w.r.t. over the set of symmetric positive-definite matrices with spectral norm bounded by .
By the Löwner-Heinz theorem , and are operator convex. The result follows by applying Claim D.5. ∎
for any and some constant depending only on .
Taking the summation over the coordinates yields
for and . Thus we have
Separating again per-coordinate we have that
Define and . Then applying Proposition D.1 yields
Substituting for the optimum and the values of completes the proof. ∎
for constant depending only on .
Since by Claim D.4 is -strongly-convex we have by Theorem B.1 that
for some depending on . Therefore
for and . Then we achieve
Let and be the diameter of and Lipschitz bound on the losses, respectively. Then applying Proposition D.2 yields
Appendix E Online-to-Batch Conversion for Task-Averaged Regret
where is generated by randomly sampling , running the online algorithm with state , and averaging the actions . If on each task the meta-learning algorithm runs an online algorithm with regret upper bound a convex, nonnegative, and -bounded function of the state , where is a convex Euclidean subset, and the total regret upper bound is , then we also have the bound
where is generated by running the online algorithm with state and averaging the actions .
For the second inequality, applying Proposition A.1, Jensen’s inequality, and Proposition A.2 yields
The first inequality follows similarly except using instead of , linearity of expectation instead of Jensen’s inequality, 1 instead of , and instead of . ∎
Note that since regret-upper-bounds are nonnegative one can easily replace 8 by 2 in the second inequality by simply multiplying and dividing by in the third line of the above proof.
Under the assumptions of Theorems 3.2 and 5.1, if the loss functions are Lipschitz and we use Algorithm 1 with also learned, using -EWOO as in Theorem 3.2 for , and set the initialization using , then w.p. we have
Substitute Corollary C.3 into Theorem E.1 using the fact the the regret-upper-bounds are -bounded. Conclude by applying Claim E.1. ∎
where is generated by randomly sampling , running the online algorithm with state , and averaging the actions . If on each task the meta-learning algorithm runs an online algorithm with regret upper bound a convex, nonnegative, and -bounded function of the state , where is a convex Euclidean subset, and the total regret upper bound is , then we also have the bound
where is generated by running the online algorithm with state and averaging the actions .
By Corollary A.2 and Jensen’s inequality we have w.p. that
As in the proof of Theorem E.1, by Proposition A.2 we further have w.p. that
Substituting the second inequality into the first yields the second bound. The first bound follows similarly except using instead of , linearity of expectation instead of Jensen’s inequality, 1 instead of , and instead of . ∎
Applying Proposition A.1 and Theorem A.4 we have w.p. that
This yields the first bound since. The second bound follows similarly except for the application of Corollary A.2 in the second step w.p. . ∎
Appendix F Adapting to Task-Similarity under Parameter Growth
In this appendix we cast the problem of adaptively learning the task-similarity in the framework of Khodak et al. . We do this specifically to show that our basic results extend to approximate meta-updates under quadratic growth. We first provide a generalized version of their Ephemeral method in Algorithm 3. We then state the relevant approximation assumptions and proceed to prove guarantees on the average regret-upper-bound for the case of a fixed task-similarity in Theorem F.1 and for adaptively learning it in Theorem F.2. Then the quadratic-growth results of Khodak et al. , specifically Propositions B.1, B.2, and B.3, can be applied directly to show average regret-upper-bound guarantees of the same order as those in the main paper but with additional terms inside the parentheses. Note that our results, especially in the batch-within-online setting, will in general be stronger because we do not incur the -error term that is needed to account for the doubling trick in Khodak et al. .
Assume the data given to Algorithm 3 and define the following quantities:
convenience coefficients
sequence of update parameters with average update
a sequence of reference parameters with average reference parameter
a sequence of optimal parameters in hindsight
we will say we are in the “Exact" case if and the “Approx" case otherwise
s.t. for some
s.t.
average deviation of the reference parameters
action diameter in the Exact case or in the Approx case
effective action space if is FTL or if is AOGD
upper bound on the Lipschitz constants of the functions over
we will say we are in the “Nice" case if is 1-strongly-convex and -strongly-smooth w.r.t.
in the general case is FTL; in the Nice case may instead be AOGD
convenience indicator
or
at the update algorithm plays satisfying
in the Approx case is -strongly-smooth for some
The following theorem does not appear in the main paper but is used in discussion. It shows guarantees for the case when the task-similarity is known in advance and so always returns a constant.
Make Assumption F.1 and suppose always plays . Then Algorithm 3 has a regret upper-bound of
for in the Nice case or otherwise .
F.2 Average Regret when Learning Task Similarity
for in the Nice case or otherwise .
F.3 Statistical Task-Similarity under Quadratic Growth
In this section we relate our task-similarity measure to that of Denevi et al. under -QG.
Following the argument of Shalev-Shwartz et al. [49, Theorem 2] but applying -QG instead of strong-convexity in Equation 8, which holds by definition of -QG, we obtain
Appendix G Experimental Details
Code is available at https://github.com/mkhodak/ARUBA.
For our Reptile experiments we use the code and default settings provided by Nichol et al. , except we tune the learning rate, which for ARUBA corresponds to , and the coefficient in ARUBA++. In addition to the the parameters listed in the above tables, we set for all experiments. All evaluations are averages of three runs.
G.2 FedAvg
For FedAvg we train a 2-layer stacked LSTM model with 256 hidden units, 8-dimensional trained character embeddings, with a maximum input string size of 80 characters; these settings are used to match those of McMahan et al. . Similarly, we take their approach of only removing those actors from the Shakespeare dataset with fewer than two lines and split each user temporally into train/test sets with a training fraction of 0.8. Unlike McMahan et al. , we also split the users into meta-training and meta-testing sets, also with a fraction of 0.8, in order to evaluate meta-test performance. We run both algorithms for 500 rounds with a batch of 10 users per round and a within-task batch-size of 10, as in Caldas et al. . For unmodified FedAvg we found that an initial learning rate of worked well – this is similar to those reported in McMahan et al. and Caldas et al. – and for the tuned variant we found that a multiplicative decay of . At meta-test-time we tuned the refinement learning rate over . For ARUBA and its isotropic variant we set and , so that in our setting as well.