ZHANGYUXUAN-zR commited on
Commit
6b32c46
·
verified ·
1 Parent(s): 5245097

Add files using upload-large-folder tool

Browse files
parse/train/04cII6MumYV/04cII6MumYV.md ADDED
@@ -0,0 +1,311 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # A UNIVERSAL REPRESENTATION TRANSFORMER LAYER FOR FEW-SHOT IMAGE CLASSIFICATION
2
+
3
+ Lu $\mathbf { L i u ^ { 1 , 2 * } }$ , William Hamilton $^ { 1 , 3 }$ †, Guodong Long2, Jing Jiang2, Hugo Larochelle1,4† 1 Mila, 2 Australian AI Institute, UTS, 3 McGill University, 4 Google Research, Brain Team Correspondence to lu.liu.cs@icloud.com
4
+
5
+ # ABSTRACT
6
+
7
+ Few-shot classification aims to recognize unseen classes when presented with only a small number of samples. We consider the problem of multi-domain few-shot image classification, where unseen classes and examples come from diverse data sources. This problem has seen growing interest and has inspired the development of benchmarks such as Meta-Dataset. A key challenge in this multi-domain setting is to effectively integrate the feature representations from the diverse set of training domains. Here, we propose a Universal Representation Transformer (URT) layer, that meta-learns to leverage universal features for few-shot classification by dynamically re-weighting and composing the most appropriate domain-specific representations. In experiments, we show that URT sets a new state-of-the-art result on Meta-Dataset. Specifically, it achieves top-performance on the highest number of data sources compared to competing methods. We analyze variants of URT and present a visualization of the attention score heatmaps that sheds light on how the model performs cross-domain generalization. Our code is available at https://github.com/liulu112601/URT.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Learning tasks from small data remains a challenge for machine learning systems, which show a noticeable gap compared to the ability of humans to understand new concepts from few examples. A promising direction to address this challenge is developing methods that are capable of performing transfer learning across the collective data of many tasks. Since machine learning systems generally improve with the availability of more data, a natural assumption is that few-shot learning systems should benefit from leveraging data across many different tasks and domains—even if each individual task has limited training data available.
12
+
13
+ This research direction is well captured by the problem of multi-domain few-shot classification. In this setting, training and test data spans a number of different domains, each represented by a different source dataset. A successful approach in this multi-domain setting must not only address the regular challenge of few-shot classification—i.e., the challenge of having only a handful of examples per class. It must also discover how to leverage (or ignore) what is learned from different domains, achieving generalization and avoiding cross-domain interference.
14
+
15
+ Recently, Triantafillou et al. (2020) proposed a benchmark for multi-domain few-shot classification, Meta-Dataset, and highlighted some of the challenges that current methods face when training data is heterogeneous. Crucially, they found that methods which trained on all available domains would normally obtain improved performance on some domains at the expense of others. Following on their work, progress has been made, which includes the design of adapted hyper-parameter optimization strategies (Saikia et al., 2020) and more flexible meta-learning algorithms (Requeima et al., 2019). Most notable is SUR (Selecting Universal Representation) (Dvornik et al., 2020), a method that relies on a so-called universal representation, extracting from a collection of pre-trained and domain-specific neural network backbones. SUR prescribes a hand-crafted feature-selection procedure to infer how to weight each backbone for each task at hand, and produces an adapted representation for each task. This was shown to lead to some of the best performances on Meta-Dataset.
16
+
17
+ In SUR, the classification procedure for each task is fixed and not learned. Thus, except for the underlying universal representation, there is no transfer learning performed with regards to how classification rules are inferred across tasks and domains. Yet, cross-domain generalization might be beneficial in that area as well, in particular when tasks have only few examples per class.
18
+
19
+ Present work. To explore this question, we propose a Universal Representation Transformer (URT) layer, which can effectively learn to transform a universal representation into task-adapted representations. The URT layer is inspired from Transformer (Vaswani et al., 2017) and uses an attention mechanism to learn to retrieve or blend the appropriate backbones to use for each task. By training this layer across few-shot tasks from many domains, it can support transfer across these tasks.
20
+
21
+ We show that our URT layer on top of a universal representation’s pre-trained backbones sets a new state-of-the-art performance on Meta-Dataset. It succeeds at outperforming SUR on 4 dataset sources without impairing accuracy on the others. This leads to top performance on 7 dataset sources when comparing to a set of competing methods. To interpret the strategy that URT learns to weigh the backbones from different domains, we visualize the attention scores for both seen and unseen domains and find that our model generates meaningful weights for the pre-trained domains. A comprehensive analysis on variants and ablations of the URT layer is provided to show the importance of various components of URT, notably the number of attention heads.
22
+
23
+ # 2 FEW-SHOT CLASSIFICATION
24
+
25
+ # 2.1 PROBLEM SETTING
26
+
27
+ In this section, we will introduce the problem setting for few-shot classification and the formulation of meta-learning for few-shot classification. Few-shot classification aims to classify samples where only few examples are available for each class. We describe a few-shot learning classification task as the pair of examples, comprising of a support set $S$ to define the classification task and the query set $Q$ of samples to be classified.
28
+
29
+ Meta-learning is a technique that aims to model the problem of few-shot classification as learning to learn from instances of few-shot classification tasks. The most popular way to train a meta-learning model is with episodic training. Here, tasks $T = ( Q , S )$ are sampled from a larger dataset by taking subsets of the dataset to build a support set $S$ and a query set $Q$ for the task. A common approach is to sample $N$ -way- $K$ -shot tasks, each time selecting a random subset of $N$ classes from the original dataset and choosing only $K$ examples for each class to add to the support set $S$ .
30
+
31
+ The meta-learning problem can then be formulated by the following optimization:
32
+
33
+ $$
34
+ \operatorname* { m i n } _ { \Theta } \mathbb { E } _ { ( S , Q ) \sim p ( T ) } \left[ \mathcal { L } ( S , Q , \Theta ) \right] , \ \mathcal { L } ( S , Q , \Theta ) = \frac { 1 } { | Q | } \sum _ { { ( x , y ) } \sim Q } - \log p ( y | x , S ; \Theta ) + \lambda \Omega ( \Theta ) ,
35
+ $$
36
+
37
+ where $p ( T )$ is the distribution of tasks, $\Theta$ are the parameters of the model and $p ( \boldsymbol { y } | \boldsymbol { x } , S ; \Theta )$ is the probability assigned by the model to label $y$ of query example $_ { \textbf { \em x } }$ (given the support set $S$ ), and $\Omega ( \Theta )$ is an optional regularization term on the model parameters with factor $\lambda$ .
38
+
39
+ Conventional few-shot classification targets the setting of $N$ -way- $K$ -shot, where the number of classes and examples are fixed in each episode. Popular benchmarks following this approach include Omniglot (Lake et al., 2015) or benchmarks made of subsets of ImageNet, such as miniImageNet (Vinyals et al., 2016) and tieredImageNet (Ren et al., 2018). In such benchmarks, the tasks for training cover a set of classes that is disjoint from the classes in the test set of tasks. However, with the training and test sets tasks coming from a single dataset/domain, the distribution of tasks found in either sets is similar and lacks variability, which may be unrealistic in practice.
40
+
41
+ It is in this context that Triantafillou et al. (2020) proposed Meta-Dataset, as a further step towards large-scale, multi-domain few shot classification. Meta-Dataset includes ten datasets (domains), with eight of them available for training. Additionally, each task sampled in the benchmark varies in the number of classes $N$ , with each class also varying in the number of shots $K$ . As in all few-shot learning benchmarks, the classes used for training and testing do not overlap.
42
+
43
+ # 2.2 BACKGROUND AND RELATED WORK
44
+
45
+ Meta-Learning A promising approach for few-shot classification is to use meta-learning to more directly train a model to learn to perform few-shot classification, in an end-to-end way. The two most popular methods are Prototypical Networks (Snell et al., 2017) and Model Agnostic Meta-Learning (MAML) (Finn et al., 2017). Triantafillou et al. (2020) showed that prototypical networks and MAML could be combined by leveraging prototypes for the initialization of the output weights value in the inner loop. Requeima et al. (2019) also proposed Conditional Neural Adaptive Processes (CNAPs) for few-shot classification, which can be seen as extending prototypical networks with a more sophisticated architecture that allows for improved task adaptation. This architecture was later improved further by Bateni et al. (2020) with Simple CNAPS, leading to one of the current best methods on Meta-Dataset. Another line of work which leverages the idea of “transfer by fine-tuning” can be found in Appendix B.
46
+
47
+ Universal Representations In contrast, our work instead builds on that of Dvornik et al. (2020) and their method SUR (Selecting from Universal Representations). Bilen & Vedaldi (2017) introduced the term universal representation to refer to a representation that supports good performance in multiple domains. One proposal towards such a representation is to train different neural networks backbones separately on the data of each available domain, then simply to concatenate the representation learned by each. Another is to introduce some parameter sharing between the backbones, by having a single network conditioned on the domain of the provenance of each batch of training data (Rebuffi et al., 2018), e.g. using Feature-wise Linear Modulate (FiLM) (Perez et al., 2018). SUR proposes to leverage a universal representation in few-shot learning tasks with a feature selection procedure that assigns different weights to each of the domain-specific subvectors of the universal representation. The objective is to assign high weights only to the domain-specific representations that are specifically useful for each few-shot task at hand. The weights are inferred by optimizing a loss on the support set that encourages high accuracy of a nearest-centroid classifier. As such, the method does not involve any meta-learning—a choice motivated by the concern that meta-learning may struggle in generalizing to domains that are dissimilar to the training domains. SUR achieved some of the best performances on Meta-Dataset. However, a contribution of our work is to provide evidence that meta-learning can actually be used to replace SUR’s hand-designed inference procedure and improve performance further.
48
+
49
+ Task Adaptive Representations Another line of work tries to retrieve task adaptive representations for each task. Task specific representations can be conditioned on a representation of the current task (Oreshkin et al., 2018; Wang et al., 2019), projected to another space (Yoon et al., 2019), or masked based on inter-class commonality and inter-class uniqueness (Li et al., 2019). While the representation extracted from URT is also task adaptive, it is adaptive to a set of pretrained backbones and can be applied to more complicated multi-domain scenarios. Wang & Hebert (2016) proposed to improve a CNN by adding extra layers and train it using unsupervised data while our contribution mainly lies in composing representations instead of an improved CNN. Alet et al. (2018) introduced a modular meta-learning method, which learns a repertoire of modules that serves as nodes to construct a tree structure to solve a new robotic-related task. Comparatively, URT is a one-for-all layer which doesn’t need to construct different module structures for each task.
50
+
51
+ Transformer Networks Our meta-learning approach to leverage universal representations is inspired directly from Transformer networks (Vaswani et al., 2017). Our model structure is inspired by the structure of the dot-product self-attention in the Transformer, which we adapted here to multidomain few-shot learning by designing appropriate parametrizations for queries, keys and values. Self-attention was explored in the single-domain training regime by Ye et al. (2020); Liu et al. (2019b;a; 2020), however for a different purpose, where each representation of individual examples in a task support set is influenced by all other examples. Rather than using self-attention between individual examples in the support set, our model uses self-attention to select between different domain-specific backbones.
52
+
53
+ # 3 UNIVERSAL REPRESENTATION TRANSFORMER LAYER
54
+
55
+ In this section, we describe our proposed URT layer, which uses meta-learning episodic training to learn how to combine the domain-specific backbones of a universal representation for any given fewshot learning classification task. URT layer can be built on top of any set of pretrained backbones without further costly fine-tuning of the backbones. More details on how to train multiple domainspecific backbones can be found in Appendix C.
56
+
57
+ ![](images/b8ec3fe34a1bbf140191b9bf5722ec5773c3834b441b3d9391ea604b4b89789b.jpg)
58
+ Figure 1: Illustration of how a single-head URT layer uses a universal representation to produce a task-specific representation. This example assumes the use of four backbones, with each color illustrating their domain-specific sub-vector representation in the universal representation.
59
+
60
+ Conceptually, the proposed model views the support set $S$ of a task as providing information on how to query and retrieve from the set $\{ r _ { i } \}$ of $m$ pre-trained backbones the most appropriate backbone to build an adapted representation $\phi$ for the task.
61
+
62
+ We would like the model to support a variety of strategies on how to retrieve backbones. For example, it might be beneficial for the model to retrieve a single backbone from the set, especially if the domain of the given task matches perfectly that of a domain found in the training set. Alternatively, if some of the training domains benefit from much more training data than others, a better strategy might be to attempt some cross-domain generalization towards the few-shot learning task by blending many backbones together, even if none matches the domain of the task perfectly.
63
+
64
+ This motivates us to use dot-product self-attention, inspired by layers of Transformer networks (Vaswani et al., 2017). For this reason, we refer to our model as a Universal Representation Transformer (URT) layer. Additionally, since each class of the support set might require a different strategy, we perform attention separately for each class and their support set $S _ { c } = \{ { \pmb x } | ( { \pmb x } , y ) \in S$ and $y = c \}$ .
65
+
66
+ # 3.1 SINGLE-HEAD URT LAYER
67
+
68
+ We start by describing an URT layer consisting of a single attention head. An illustration of a singlehead URT layer is shown in Figure 1. Let $r _ { i } ( { \pmb x } )$ be the output vector of the backbone for domain $i$ . We then write the universal representation as
69
+
70
+ $$
71
+ r ( \mathbf x ) = \mathrm { c o n c a t } ( r _ { 1 } ( \mathbf x ) , \hdots , r _ { m } ( \mathbf x ) ) .
72
+ $$
73
+
74
+ This representation provides a natural starting point to obtain a representation of a support set class. Specifically, we will note
75
+
76
+ $$
77
+ r ( S _ { c } ) = \frac { 1 } { \left| S _ { c } \right| } \sum _ { { \pmb x } \in S _ { c } } r ( { \pmb x } )
78
+ $$
79
+
80
+ as the representation for the set $S _ { c }$ . From this, we can describe the URT layer by defining the queries1, keys, the attention mechanism and output of the layer:
81
+
82
+ Queries $\mathbf { q } _ { c }$ : For each class $c$ , we obtain a query through $\mathbf { q } _ { c } = \mathbf { W } ^ { q } r ( S _ { c } ) + \mathbf { b } ^ { q }$ , where we have a learnable query linear transformation represented by matrix $\mathbf { W } ^ { q }$ and bias $\mathbf { b } ^ { q }$ .
83
+
84
+ Keys $\mathbf { k } _ { i , c }$ : For each domain $i$ and class $c$ , we define keys as $\mathbf { k } _ { i , c } = \mathbf { W } ^ { k } r _ { i } ( S _ { c } ) + \mathbf { b } ^ { k }$ , using a learnable linear transformation $\mathbf { W } ^ { k }$ and $\mathbf { b } ^ { k }$ and where $r _ { i } ( S _ { c } ) = 1 / | S _ { c } | \textstyle \sum _ { { \pmb x } \in S _ { c } } r _ { i } ( { \pmb x } )$ , using a similar notation as for $r ( S _ { c } )$ .
85
+
86
+ # Algorithm 1 Training of URT layer
87
+
88
+ Input: Number of tasks $\tau _ { t o t a l }$ , $m$ pre-trained backbones ;
89
+
90
+ 1: for $\tau \in \{ 1 , \cdots , \tau _ { t o t a l } \}$ do
91
+ 2: Sample a few-shot task $T$ with support set $S$ and query set $Q$ ;
92
+ 3: # Infer adapted representation for task from $S$
93
+ 4: For each class, obtain representation using $m$ pre-trained backbones as in Eq. (3);
94
+ 5: Obtain attention scores using Eq. (4,5) for each head using support set $S$ ;
95
+ 6: # Use adapted representation to predict labels in $Q$ from support set $S$
96
+ 7: Compute adapted representation of examples in $S$ and $Q$ as in Eq. (6,7);
97
+ 8: Compute probabilities of label of examples in $Q$ using Prototypical Network as in Eq. (9);
98
+ 9: Compute loss as in Eq. (1,8) and perform gradient descent step on URT parameters $\Theta$ ;
99
+
100
+ 10: end for
101
+
102
+ Attention scores $\alpha _ { i }$ : as for regular Transformer layers, we use scaled dot-product attention
103
+
104
+ $$
105
+ \alpha _ { i , c } = \frac { \exp ( \beta _ { i , c } ) } { \sum _ { i ^ { \prime } } \exp ( \beta _ { i ^ { \prime } , c } ) } , \beta _ { i , c } = \frac { { \bf q } _ { c } \mathrm { ~ } ^ { \top } { \bf k } _ { i , c } } { \sqrt { l } } ,
106
+ $$
107
+
108
+ where $l$ is the dimensionality of the keys and queries. Then, these per-class scores are aggregated to obtain scores for the full support set by averaging
109
+
110
+ $$
111
+ \alpha _ { i } = \frac { \sum _ { c } \alpha _ { i , c } } { N } .
112
+ $$
113
+
114
+ Equipped with these attention scores, the URT layer can now produce an adapted representation for the task (for the support and query set examples) by computing
115
+
116
+ $$
117
+ \phi ( { \bf x } ) = \sum _ { i } \alpha _ { i } r _ { i } ( { \bf x } ) .
118
+ $$
119
+
120
+ As we can see, this approach has the flexibility of either selecting a single domain-specific backbone (by assigning $\alpha _ { i } = 1$ for a single domain) or blending different domains together (by having $\alpha _ { i } > >$ 0 for multiple backbones).
121
+
122
+ # 3.2 MULTI-HEAD URT LAYER
123
+
124
+ The URT layer described so far can only learn to retrieve a single backbone (or blending of backbones). Yet, it might be beneficial to retrieve multiple different (blended) backbones, especially for a few-shot task that would include many classes of varying complexity.
125
+
126
+ Thus, to achieve such diversity in the adapted representation, we also consider URT layers with multiple heads, i.e. where each head corresponds to the calculation of Equation 6 and each head has its own set of parameters $( \mathbf { W } ^ { q } , \mathbf { b } ^ { q } , \mathbf { W } ^ { k } , \bar { \mathbf { b } ^ { k } } )$ . Denoting each head now as $\phi _ { h }$ , a multi-head URT layer then produces as its output the concatenation of all of its heads:
127
+
128
+ $$
129
+ \phi ( { \bf x } ) = \mathrm { c o n c a t } ( \phi _ { 1 } ( { \bf x } ) , \ldots , \phi _ { \mathrm { H } } ( { \bf x } ) ) .
130
+ $$
131
+
132
+ Empirically we found that the randomness in the initialization of head weights alone did not lead to uniqueness and being complimentary between the heads, so inspired by Lin et al. (2017), we add a regularizer to avoid duplication of the attention scores:
133
+
134
+ $$
135
+ \Omega ( \Theta ) = \| ( \mathbf { A } \mathbf { A } ^ { \top } - \mathbf { I } ) \| _ { F } ^ { 2 } ,
136
+ $$
137
+
138
+ where $\| \cdot \| _ { F }$ is the Frobenius norm of a matrix and $\mathbf { A } \in \mathbb { R } ^ { n \times m }$ is the matrix for attention scores, with $\mathbf { A } _ { h }$ being the vector of all scores $\alpha _ { i }$ for head $h$ . The identity matrix I regularizes each set of attention scores to be more focused so that multiple heads can attend to different domain-specific backbones.
139
+
140
+ # 3.3 TRAINING STRATEGY
141
+
142
+ We train representations produced by the URT layer by following the approach of Prototypical Networks (Snell et al., 2017), where the probability of a label $y$ for a query example $_ { \textbf { \em x } }$ given the
143
+
144
+ Table 1: Test accuracy (mean $\pm \mathrm { C I } \% 9 5 $ ) over 600 few-shot tasks. URT and the most recent methods, which are listed in the first column, are compared on Meta-Dataset (Triantafillou et al., 2020), which are listed in the first row. The numbers in bold have intersecting confidence intervals with the most accurate method.
145
+
146
+ <table><tr><td></td><td>ILSVRC</td><td>Omniglot</td><td>Aircraft</td><td>Birds</td><td>Textures</td><td>QuickDraw</td><td>Fungi</td><td>VGGFlower</td><td>TrafficSigns</td><td></td><td>MSCOCO</td><td>avg.rank</td></tr><tr><td>MAML</td><td></td><td>37.8±1.0 83.9±1.0 76.4±0.7 62.4±1.1(</td><td></td><td></td><td></td><td>64.1±0.8</td><td>59.7±1.1</td><td>33.5±1.1</td><td>79.9±0.8</td><td>42.9±1.3</td><td>29.4±1.1</td><td>6.4</td></tr><tr><td>ProtoNet</td><td></td><td>44.5±1.1 79.6±1.1 71.1±0.9 67.0±1.0 65.2±0.8</td><td></td><td></td><td></td><td></td><td>64.9±0.9</td><td>40.3±1.1</td><td>86.9±0.7</td><td>46.5±1.0</td><td>39.9±1.1</td><td>5.7</td></tr><tr><td>ProtoMAML</td><td></td><td>46.5±1.1 82.7±1.0 75.2±0.8 69.9±1.0 68.3±0.8</td><td></td><td></td><td></td><td></td><td>66.8±0.9</td><td>42.0±1.2</td><td>88.7±0.7</td><td>52.4±1.1</td><td>41.7±1.1</td><td>4.1</td></tr><tr><td>CNAPs</td><td>50.8±1.1</td><td>91.7±0.5 83.7±0.6 73.6±0.9</td><td></td><td></td><td>59.5±0.7</td><td></td><td>74.7±0.8</td><td>50.2±1.1</td><td>88.9±0.5</td><td>56.5±1.1</td><td>39.4±1.1</td><td>3.6</td></tr><tr><td>SUR</td><td>56.1±1.1 </td><td>93.1±0.5 84.6±0.7 70.6±1.0 71.0±0.8</td><td></td><td></td><td></td><td></td><td>81.3±0.6</td><td>64.2±1.0</td><td>82.8±0.7</td><td>53.4±1.0</td><td>50.1±1.0</td><td>2.3</td></tr><tr><td>SimpleCNAPS 56.5±1.1 91.9±0.6 83.8±0.7 76.1±0.870.0±0.8</td><td></td><td></td><td></td><td></td><td></td><td></td><td>78.3±0.7</td><td>49.1±1.2</td><td>91.3±0.6</td><td>59.2±1.0</td><td>42.4±1.1</td><td>2.2</td></tr><tr><td>URT (Ours)</td><td></td><td>55.7±1.0 94.4±0.4 85.8±0.6 76.3±0.871.8±0.7</td><td></td><td></td><td></td><td></td><td>82.5±0.6</td><td>63.5±1.0</td><td>88.2±0.6</td><td>51.1±1.1</td><td>52.2±1.1</td><td>1.5</td></tr></table>
147
+
148
+ support set of a task is modeled as:
149
+
150
+ $$
151
+ p ( y = c | \pmb { x } , S ; \Theta ) = \frac { \exp ( - d ( \phi ( \pmb { x } ) - \pmb { p _ { c } } ) ) } { \sum _ { c ^ { \prime } = 1 } ^ { N } \exp ( - d ( \phi ( \pmb { x } ) - \pmb { p _ { c ^ { \prime } } } ) ) } ,
152
+ $$
153
+
154
+ where $d$ is a distance metric and $\pmb { p } _ { c } = 1 / | S _ { c } | \sum _ { \pmb { x } \in S _ { c } } \phi ( \pmb { x } )$ corresponds to the centroid of class $c _ { \cdot }$ referred to as its prototype. We use (negative) cosine similarity as the distance. The full training algorithm is presented in Algorithm 1.
155
+
156
+ # 4 EXPERIMENTS
157
+
158
+ In this section, we seek to answer three key experimental questions:
159
+
160
+ Q1 How does URT compare with previous state-of-the-art on Meta-Dataset for multi-domain fewshot classification?
161
+ Q2 Do the URT attention heads generate interpretable and meaningful attention scores?
162
+ Q3 Does the URT layer provide consistent benefits, even when pre-trained backbones are trained in different ways?
163
+
164
+ In addition, we investigate architectural choices made, such as our models for keys/queries and their regularization, and study their contribution to achieving strong performance with URT.
165
+
166
+ # 4.1 DATASETS AND SETUP
167
+
168
+ We test our methods on the large-scale few-shot learning benchmark Meta-Dataset (Triantafillou et al., 2020). It consists of ten datasets with various data distributions across different domains, including natural images (Birds, Fungi, VGG Flower), hand-written characters (Omniglot, Quick Draw), and human created objects (Traffic Signs, Aircraft). Among the ten datasets, eight provide data that can be used during either training, validation and testing (with each class assigned to only one of those sets), while two datasets are solely used for testing. Following Bateni et al. (2020); Requeima et al. (2019), we also report results on MNIST (LeCun et al., 1998), CIFAR10 and CIFAR100 (Krizhevsky et al., 2009) as additional unseen test datasets. Following Triantafillou et al. (2020), few-shot tasks are sampled with varying number of classes $N$ , varying number of shots $K$ and class imbalance. The performance is reported as the average accuracy over 600 sampled tasks. More details of Meta-Dataset can be found in Triantafillou et al. (2020).
169
+
170
+ The domain-specific backbones are pre-trained following the setup in (Dvornik et al., 2020). Then, we freeze the backbone and train the URT layer for 10,000 episodes, with an initial learning rate of 0.01 and a cosine learning rate scheduler. Following Chen et al. (2020), the training episodes have $50 \%$ probability coming from the ImageNet data source. Since different pre-trained backbones may produce representations with different vector norms, we normalize the outputs of the backbones as in Dvornik et al. (2020). URT is trained with parameter weight decay of 1e-5 and with a regularization factor $\lambda = 0 . 1$ . The number of heads ( $H$ in Equation 7), is set to 2 and the dimension of the keys and queries (l in Equation 4) is set to 1024. We choose the hyper-parameters based on the performance of the validation set. Details of the hyper-parameter selection and how the performance is influenced by them are outlined in Section 4.5. We find that the bottleneck of training URT is extracting features from CNN. Since we freeze the CNN when training the URT, we find dumping the extracted feature episodes can significantly speed up the training procedure from days to around 2 hours.
171
+
172
+ ![](images/c10077fb200921d3bb6bc7d24d0c40b0a826b01959da838218a14b2d49389f42.jpg)
173
+ Figure 2: Average attention scores generated by URT with two heads. Rows correspond to the domain of the test tasks and the columns correspond to the pre-trained backbones $r _ { i } ( { \pmb x } )$ trained on the eight training domains.
174
+
175
+ # 4.2 COMPARISON WITH PREVIOUS APPROACHES
176
+
177
+ Table 1 presents a comparison of URT with SUR, as well as other baselines based on transfer learning by fine-tuning (Saikia et al., 2020) or meta-learning (Prototypical Networks (Snell et al., 2017), first-order MAML (Finn et al., 2017), ProtoMAML (Triantafillou et al., 2020), CNAPs (Requeima et al., 2019)) and Simple CNAPS(Bateni et al., 2020).
178
+
179
+ We observe in Table 1 that URT establishes a new state-of-the-art on Meta-Dataset, by achieving the top performance on 8 out of the 10 dataset sources. When comparing to its predecessor, URT outperforms SUR on 4 datasets without compromising performance on others, which is challenging to achieve in the multi-domain setting. Of note, the average inference time for URT is 0.04 second per task, compared to 0.43 for SUR, on a single V100. Thus, getting rid of the optimization procedure for every episode with our meta-trained URT layer also significantly increases the latency, by more than $1 0 \times$ . More results on additional datasets can be found in Appendix A.
180
+
181
+ # 4.3 INTERPRETING AND VISUALIZING ATTENTION BY URT
182
+
183
+ To better understand how the URT model of Section 4.2 uses its two heads to build adapted representations, we visualize the attention scores produced on the test tasks of Meta-Dataset in Figure 2.
184
+
185
+ The blue (first head) and orange (second head) heatmaps summarize the values of the attention scores (Equation 5), averaged across several tasks for each test domain. Specifically, the element on row $t$ and column $i$ is the averaged attention scores $\alpha _ { i }$ computed on test set domain $t$ for the backbone from domain $i$ . Note that the last two rows are the two unseen domain datasets. We found that for datasets from the seen domains, i.e. the first eight rows, one head (right, orange) consistently puts most of its weight on the backbone pre-trained on the same domain, while the other head (left, blue) learns relatively smoother weight distributions that blend other related domains. For unseen datasets, the right head puts half of its weight on ImageNet and the left head learned to blend the representations from four backbones.
186
+
187
+ Table 2: Test accuracy (mean $\pm \mathrm { C I } \% 9 5$ ) over 600 few-shot tasks. All methods use parametric network family (pf) backbones.
188
+
189
+ <table><tr><td></td><td> SUR-pf</td><td>URT-pf</td><td>VS.</td></tr><tr><td>ILSVRC</td><td>56.0 ± 1.1</td><td>55.5 ± 1.1</td><td>二</td></tr><tr><td>Omniglot</td><td>90.0 ± 0.8</td><td>90.2 ± 0.6</td><td>二</td></tr><tr><td>Aircraft</td><td>79.7 ± 0.8</td><td>79.8 ± 0.7</td><td>=</td></tr><tr><td>Birds</td><td>75.9 ± 0.9</td><td>77.5 ± 0.8</td><td>三</td></tr><tr><td>Textures</td><td>72.5 ± 0.7</td><td>73.5 ± 0.7</td><td></td></tr><tr><td>Quick Draw</td><td>76.7 ± 0.7</td><td>75.8 ± 0.7</td><td>三 二</td></tr><tr><td>Fungi</td><td>49.8 ± 1.1</td><td>48.1 ± 0.9</td><td>+</td></tr><tr><td>VGG Flower</td><td>90.0 ± 0.6</td><td>91.9 ± 0.5</td><td>二</td></tr><tr><td>Traffic Signs</td><td>52.2 ± 0.8</td><td>52.0 ± 1.4</td><td></td></tr><tr><td>MSCOCO</td><td>50.2 ± 1.1</td><td>52.1 ± 1.0</td><td></td></tr><tr><td>MNIST</td><td>93.2 ± 0.4</td><td>93.9 ± 0.4</td><td>=</td></tr><tr><td>CIFAR10</td><td>66.4 ± 0.8</td><td>66.1 ± 0.8</td><td>三</td></tr><tr><td>CIFAR100</td><td>57.1 ± 1.0</td><td>57.3 ± 1.0</td><td>二</td></tr></table>
190
+
191
+ # 4.4 URT USING FILM MODULATED BACKBONES
192
+
193
+ As additional evidence of the benefit of URT on universal representations, we also present experiments based on a different set of backbone architectures. Following SUR (Dvornik et al., 2020), we consider the backbones from a parametric network family, obtained by training a base backbone on one dataset (ILSVRC) and then learning separate FiLM layers (Perez et al., 2018) for each other dataset, to modulate the backbone so it is adapted to the other domains. These backbones collectively have only $0 . 5 \%$ more parameters than a single backbone. More details of the backbones can be found in Appendix C.
194
+
195
+ A comparison between SUR and URT using these backbones (referred to as SUR-pf and URT-pf) is presented in Table 2. Once again, URT can improve the performance on VGG Flower without sacrificing performance on others.
196
+
197
+ # 4.5 HYPER-PARAMETER AND ABLATION STUDIES
198
+
199
+ We analyze the importance of the various components of URT’s attention mechanism structure and training strategy in Table 3. First we analyze the importance of using the support set to model queries and/or keys. To this end, we consider setting the matrices $\mathbf { W } ^ { q } / \mathbf { W } ^ { k }$ of the query / key linear transformation to 0, which only leaves the bias term. We found that the support set representation is most crucial for building the keys (row w/o $\mathbf { W } ^ { k }$ in the table) and has minor benefits for queries (row $\mathbf { w } / \mathbf { o } \mathbf { W } ^ { q } )$ in the table. This observation is possibly related to the success of attention-based models with learnable constant queries (Liu et al., 2016; Lin et al., 2017). We also found that adding a regularizer $\Omega ( \Theta )$ as in Equation 8 is important for some datasets, specifically VGG Flower and Birds.
200
+
201
+ Table 3: Meta-Dataset performance variation on ablations of elements of the URT layer.
202
+
203
+ <table><tr><td colspan="11">ILSVRC Omniglot Aircraft Birds Textures Draw Fungi Flower Signs MSCOCO</td></tr><tr><td>w/o Wq</td><td>+0.2</td><td>-0.2</td><td>-0.6</td><td>-0.1</td><td>-0.3</td><td>-0.2</td><td>0.0</td><td>-0.2</td><td>-0.8</td><td>-0.1</td></tr><tr><td>w/o Wk</td><td>-14.2</td><td>-2.8</td><td>-10.7</td><td>-18.1</td><td>-7.6</td><td>-9.3</td><td>-22.4</td><td>-3.6</td><td>-0.26</td><td>-10.9</td></tr><tr><td>w/or(Sc)</td><td>-14.2</td><td>-2.8</td><td>-10.7</td><td>-18.1</td><td>-7.6</td><td>-9.2</td><td>-22.4</td><td>-3.6</td><td>-0.26</td><td>-10.9</td></tr><tr><td>w/0 Ω(0)</td><td>0.0</td><td>-0.9</td><td>-0.4</td><td>-3.3</td><td>-1.2</td><td>-0.2</td><td>+0.3</td><td>-9.0</td><td>-2.0</td><td>0.0</td></tr></table>
204
+
205
+ An important hyper-parameter in URT is the number of heads $H$ . We chose this hyper-parameter based on the performance on validation set of tasks in Meta-Dataset. In Table 4, we show the validation performance of URT for varying number of heads. As suggested by Triantafillou et al. (2020), we considered looking at the rank of the performance achieved by each choice of $H$ for each validation domains, and taking the average across domains as a validation metric. However, since the performances when using two to four heads are similar and yield the same average rank, we instead simply consider the average accuracy as the selection criteria.
206
+
207
+ Table 4: Validation performance on Meta-Dataset using different number of heads
208
+
209
+ <table><tr><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td></tr><tr><td>Average Accuracy</td><td>74.605</td><td>77.145</td><td>76.943</td><td>76.984</td><td>76.602</td><td>75.906</td><td>75.454</td><td>74.473</td></tr><tr><td>Average Rank</td><td>2.875</td><td>1.000</td><td>1.000</td><td>1.000</td><td>2.250</td><td>2.250</td><td>2.25</td><td>2.50</td></tr></table>
210
+
211
+ In general, we observe a large jump in performance when using multiple heads instead of just one. However, since the number of heads controls the capacity, predictably we also observe that having too many heads leads to overfitting.
212
+
213
+ # 5 CONCLUSION
214
+
215
+ We proposed the URT layer to effectively integrate representations from multiple domains and demonstrated improved performance in multi-domain few-shot classification. Notably, our URT approach was able to set a new state-of-the-art on Meta-Dataset, and never performs worse than its predecessor (SUR) while also being $1 0 \times$ more efficient at inference. This work suggests that combining meta-learning with pre-trained universal representations is a promising direction for new few-shot learning methods. Specifically, we hope that future work can investigate the design of richer forms of universal representations that go beyond simply pre-training a single backbone for each domain, and developing meta-learners adapted to those settings.
216
+
217
+ # REFERENCES
218
+
219
+ Ferran Alet, Tomas Lozano-P ´ erez, and Leslie P Kaelbling. Modular meta-learning. In ´ Conference on Robot Learning (CoRL), 2018.
220
+
221
+ Peyman Bateni, Raghav Goyal, Vaden Masrani, Frank Wood, and Leonid Sigal. Improved few-shot visual classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
222
+
223
+ Hakan Bilen and Andrea Vedaldi. Universal representations: The missing link between faces, text, planktons, and cat breeds. arXiv preprint arXiv:1701.07275, 2017.
224
+
225
+ Wei-Yu Chen, Yen-Cheng Liu, Zsolt Liu, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In International Conference on Learning Representations (ICLR), 2019.
226
+
227
+ Yinbo Chen, Xiaolong Wang, Zhuang Liu, Huijuan Xu, and Trevor Darrell. A new meta-baseline for few-shot learning. arXiv preprint arXiv:2003.04390, 2020.
228
+
229
+ Guneet Singh Dhillon, Pratik Chaudhari, Avinash Ravichandran, and Stefano Soatto. A baseline for few-shot image classification. In International Conference on Learning Representations (ICLR), 2020.
230
+
231
+ Nikita Dvornik, Cordelia Schmid, and Julien Mairal. Selecting relevant features from a universal representation for few-shot classification. arXiv preprint arXiv:2003.09338, 2020.
232
+
233
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In The International Conference on Machine Learning (ICML), 2017.
234
+
235
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
236
+
237
+ Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
238
+
239
+ Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015.
240
+
241
+ Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
242
+
243
+ Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding taskrelevant features for few-shot learning by category traversal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
244
+
245
+ Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017.
246
+
247
+ Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, Lina Yao, and Chengqi Zhang. Prototype propagation networks (PPN) for weakly-supervised few-shot learning on category graph. In International Joint Conferences on Artificial Intelligence (IJCAI), 2019a.
248
+
249
+ Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, and Chengqi Zhang. Learning to propagate for graph meta-learning. In Neural Information Processing Systems (NeurIPS), 2019b.
250
+
251
+ Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, and Chengqi Zhang. Attribute propagation network for graph zero-shot learning. In AAAI Conference on Artificial Intelligence (AAAI), 2020.
252
+
253
+ Yang Liu, Chengjie Sun, Lei Lin, and Xiaolong Wang. Learning natural language inference using bidirectional lstm model and inner-attention. arXiv preprint arXiv:1605.09090, 2016.
254
+
255
+ Boris Oreshkin, Pau Rodr´ıguez Lopez, and Alexandre Lacoste. Tadam: Task dependent adaptive ´ metric for improved few-shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2018.
256
+
257
+ Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. In AAAI Conference on Artificial Intelligence (AAAI), 2018.
258
+
259
+ Sylvestre-Alvise Rebuffi, Hakan Bilen, and Andrea Vedaldi. Efficient parametrization of multidomain deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
260
+
261
+ Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. In International Conference on Learning Representations (ICLR), 2018.
262
+
263
+ James Requeima, Jonathan Gordon, John Bronskill, Sebastian Nowozin, and Richard E Turner. Fast and flexible multi-task classification using conditional neural adaptive processes. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 7957–7968, 2019.
264
+
265
+ Tonmoy Saikia, Thomas Brox, and Cordelia Schmid. Optimized generic feature learning for fewshot classification across domains. arXiv preprint arXiv:2001.07926, 2020.
266
+
267
+ Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2017.
268
+
269
+ Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, et al. Meta-dataset: A dataset of datasets for learning to learn from few examples. In International Conference on Learning Representations (ICLR), 2020.
270
+
271
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In The Conference on Neural Information Processing Systems (NeurIPS), 2017.
272
+
273
+ Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2016.
274
+
275
+ Xin Wang, Fisher Yu, Ruth Wang, Trevor Darrell, and Joseph E Gonzalez. Tafe-net: Task-aware feature embeddings for low shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
276
+
277
+ Yu-Xiong Wang and Martial Hebert. Learning from small sample sets by combining unsupervised meta-training with cnns. In The Conference on Neural Information Processing Systems (NeurIPS), 2016.
278
+
279
+ Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
280
+
281
+ Sung Whan Yoon, Jun Seo, and Jaekyun Moon. Tapnet: Neural network augmented with taskadaptive projection for few-shot learning. In The International Conference on Machine Learning (ICML), 2019.
282
+
283
+ # A EXPERIMENTS ON MORE DATASETS
284
+
285
+ We also report performances on the MNIST, CIFAR-10 and CIFAR-100 dataset sources in Table 5, and compare with the subset of methods that have reported on these datasets. There, URT neither improves nor gets worse performance than SUR, yeilding top performance on the MNIST domain but not on the CIFAR-10/CIFAR-100 domain, on which Simple CNAPS has the best performance.
286
+
287
+ Table 5: Test performance (mean $1 { + } \mathrm { C I } \% 9 5$ ) over 600 few-shot tasks on additional datasets.
288
+
289
+ <table><tr><td></td><td>MNIST CIFAR10</td><td>CIFAR100</td><td> avg. rank</td></tr><tr><td>CNAPs</td><td>92.7 ± 0.4 61.5 ± 0.7</td><td>50.1 ± 1.0</td><td>4.7</td></tr><tr><td>TaskNorm</td><td>92.3 ± 0.4 69.3 ± 0.8</td><td>54.6 ± 1.1</td><td>3.3</td></tr><tr><td>SUR</td><td>94.3 ± 0.4 66.8 ± 0.9</td><td>56.6 ± 1.0</td><td>2.3</td></tr><tr><td>SimpleCNAPS</td><td>93.9 ± 0.4 74.3± 0.7</td><td>60.5 ± 1.0</td><td>1.7</td></tr><tr><td>URT (Ours)</td><td>94.8 ± 0.4 67.3 ± 0.8</td><td>56.9 ± 1.0</td><td>2.0</td></tr></table>
290
+
291
+ # B MORE RELATED WORKS
292
+
293
+ Transfer by fine-tuning A simple and effective method for few-shot classification is to perform transfer learning by first learning a neural network classifier on all data available for training and using its representation to initialize and then fine-tune neural networks on the few-shot classification tasks found at test time (Chen et al., 2019; Triantafillou et al., 2020; Dhillon et al., 2020; Saikia et al., 2020). Specifically, Saikia et al. (2020) have shown that competitive performance can be reached using a strong hyper-parameter optimization method applied on a carefully designed validation metric appropriate for few-shot learning.
294
+
295
+ # C STRUCTURES AND TRAINING STRATEGY OF BACKBONES
296
+
297
+ Our URT layer can be built on top of a set of pretrained backbones. The structures of the backbones follow the approach in Dvornik et al. (2020). For Table 1, we use the ResNet18 architecture (He et al., 2016) for the backbones, where a separate backbone is pretrained on each domain separately using the corresponding training data in meta-dataset. The training domains include ImageNet, Omniglot, Aircraft, CU-Birds, Textures, Quick Draw, Fungi and VGG-Flower. For the parametric network family in Table 2, a base ResNet18 is first trained on ImageNet. Then a small number of modulating parameters are trained on the other domains, using their domain-specific training data, while the rest of the base backbone’s weights stay fixed. Specifically, FiLM feature modulation (Perez et al., 2018) is used. This type of parametric network family thus allows for a much reduced number of learnable parameters, by reusing the weights from the base network. In experiments, we use the pretrained backbones released by Dvornik et al. (2020) for both cases, without any further finetuning. End-to-end training of a set of backbones and the URT layers requires unaffordable computational cost, so we fix the pretrained backbones and only train the URT layer.
298
+
299
+ Implementation details for training backbones The training details of the backbones come from Dvornik et al. (2020). For optimization, SGD with momentum was used, using cosine learning rate annealing. Since the datasets come from different domains, the starting learning rate, the maximum number of training iterations and annealing frequency are set individually for each dataset. Data augmentation is applied and a constant weight decay of $\mathrm { \dot { 7 } } \times 1 0 ^ { - 4 }$ is set. For each dataset, a grid search over batch size in [8, 16, 32, 64] was run and the one that maximizes accuracy on the validation set was picked. For the parametric network family, the base ResNet18 trained on ImageNet is the same. For other backbones, cosine annealing as learning rate policy is also used, weight decay and data augmentation employed as above. Please refer to Table 4 and Table 5 in the original SUR paper (Dvornik et al., 2020) for the specific values of the hyperparameters for the individual feature networks and the parametric network family, respectively.
300
+
301
+ # D RESULTS ON TRAFFIC SIGNS
302
+
303
+ The shuffle buffer bug described in meta-dataset issue #54 (https://github.com/googleresearch/meta-dataset/issues/54) has been propagated to previous works such as CNAPs (Requeima et al., 2019). The results for the Traffic Signs dataset are considerably worse after fixing this bug. For instance, URT degrades from $6 9 . 4 { \pm } 0 . 8 $ to $5 1 . 1 { \pm } 1 . 1$ . Please visit the official meta-dataset GitHub repo for more details. The main paper shows the corrected results (for URT and competing approaches). For completeness, we also provide the tables as they were in the initial version of this paper for your reference in this Appendix. Both sets of results overall support the advantageous performance of URT over previous work.
304
+
305
+ Table 6: Test accuracy ( $\mathrm { m e a n \pm C I \% 9 5 } ,$ ) over 600 few-shot tasks. URT and the most recent methods, which are listed in the first column, are compared on Meta-Dataset (Triantafillou et al., 2020), which are listed in the first row. The numbers in bold have intersecting confidence intervals with the most accurate method.
306
+
307
+ <table><tr><td></td><td>ILSVRC</td><td>Omniglot</td><td>Aircraft</td><td>Birds</td><td>Textures</td><td>QuickDraw</td><td>Fungi</td><td>VGGFlower</td><td>TrafficSigns</td><td>MSCOCO</td><td>avg.rank</td></tr><tr><td>MAML</td><td>37.8±1.0</td><td>83.9±1.0 76.4±0.7</td><td></td><td>62.4±1.1</td><td>64.1±0.8</td><td>59.7±1.1</td><td>33.5±1.1</td><td>79.9±0.8</td><td>42.9±1.3</td><td>29.4±1.1</td><td>8.0</td></tr><tr><td>ProtoNet</td><td>44.5±1.1</td><td>79.6±1.1</td><td>71.1±0.9 67.0±1.0 65.2±0.8</td><td></td><td></td><td>64.9±0.9</td><td>40.3±1.1</td><td>86.9±0.7</td><td>46.5±1.0</td><td>39.9±1.1</td><td>7.3</td></tr><tr><td>ProtoMAML</td><td>46.5±1.1</td><td>82.7±1.0 75.2±0.8 69.9±1.0 68.3±0.8</td><td></td><td></td><td></td><td>66.8±0.9</td><td>42.0±1.2</td><td>88.7±0.7</td><td>52.4±1.1</td><td>41.7±1.1</td><td>5.4</td></tr><tr><td>CNAPs</td><td>52.3±1.0</td><td>88.4±0.7 80.5±0.6 72.2±0.9 58.3±0.7</td><td></td><td></td><td></td><td>72.5±0.8</td><td>47.4±1.0</td><td>86.0±0.5</td><td>60.2±0.9</td><td>42.6±1.1</td><td>5.1</td></tr><tr><td>BOHB-E</td><td>55.4±1.1</td><td>77.5±1.1</td><td>60.9±0.9</td><td>73.6±0.8</td><td>72.8±0.7</td><td>61.2±0.9</td><td>44.5±1.1</td><td>90.6±0.6</td><td>57.5±1.0</td><td>51.9±1.0</td><td>4.4</td></tr><tr><td>TaskNorm</td><td>50.6±1.1</td><td>90.7±0.6 83.8±0.6</td><td></td><td>574.6±0.8</td><td>62.1±0.7</td><td>74.8±0.7</td><td>48.7±1.0</td><td>89.6±0.6</td><td>67.0±0.7</td><td>43.4±1.0</td><td>3.8</td></tr><tr><td>SUR</td><td>56.3±1.1</td><td>93.1±0.5 85.4±0.7 71.4±1.0 71.5±0.8</td><td></td><td></td><td></td><td>81.3±0.6</td><td>63.1±1.0</td><td>82.8±0.7</td><td>70.4±0.8</td><td>52.4±1.1</td><td>2.5</td></tr><tr><td>SimpleCNAPS 58.6±1.1 9</td><td></td><td>91.7±0.6 82.4±0.7 74.9±0.8 67.8±0.8</td><td></td><td></td><td></td><td>77.7±0.7</td><td>46.9±1.0</td><td>90.7±0.5</td><td>73.5±0.7</td><td>46.2±1.1</td><td>2.4</td></tr><tr><td>URT(Ours)</td><td>55.7±1.0</td><td>94.4±0.4 85.8±0.6 76.3±0.8 71.8±0.7</td><td></td><td></td><td></td><td>82.5±0.6</td><td>63.5±1.0</td><td>88.2±0.6</td><td>69.4±0.8</td><td>52.2±1.1</td><td>1.6</td></tr></table>
308
+
309
+ Table 7: Test accuracy (mean $\pm \mathrm { C I } \% 9 5 $ ) over 600 few-shot tasks. All methods use parametric network family (pf) backbones.
310
+
311
+ <table><tr><td></td><td>SUR-pf</td><td>URT-pf</td><td>VS.</td></tr><tr><td>ILSVRC</td><td>56.4 ± 1.2</td><td>55.5 ± 1.1</td><td>=</td></tr><tr><td>Omniglot</td><td>88.5±0.8</td><td>90.2 ± 0.6</td><td>+</td></tr><tr><td>Aircraft</td><td>79.5 ± 0.8</td><td>79.8 ± 0.7</td><td>=</td></tr><tr><td>Birds</td><td>76.4 ± 0.9</td><td>77.5 ± 0.8</td><td>=</td></tr><tr><td>Textures</td><td>73.1 ± 0.7</td><td>73.5± 0.7</td><td>=</td></tr><tr><td>Quick Draw</td><td>75.7 ± 0.7</td><td>75.8 ± 0.7</td><td>=</td></tr><tr><td>Fungi</td><td>48.2 ± 0.9</td><td>48.1 ± 0.9</td><td>=</td></tr><tr><td>VGG Flower</td><td>90.6 ± 0.5</td><td>91.9 ± 0.5</td><td>+</td></tr><tr><td>Traffic Signs</td><td>65.1 ± 0.8</td><td>67.5 ± 0.8</td><td>+</td></tr><tr><td>MSCOCO</td><td>52.1 ± 1.0</td><td>52.1 ± 1.0</td><td>=</td></tr><tr><td>MNIST</td><td>93.2 ± 0.4</td><td>93.9 ± 0.4</td><td>=</td></tr><tr><td>CIFAR10</td><td>66.4 ± 0.8</td><td>66.1 ± 0.8</td><td>=</td></tr><tr><td>CIFAR100</td><td>57.1 ± 1.0</td><td>57.3 ±1.0</td><td>=</td></tr></table>
parse/train/04cII6MumYV/04cII6MumYV_content_list.json ADDED
@@ -0,0 +1,1604 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "A UNIVERSAL REPRESENTATION TRANSFORMER LAYER FOR FEW-SHOT IMAGE CLASSIFICATION ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 763,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Lu $\\mathbf { L i u ^ { 1 , 2 * } }$ , William Hamilton $^ { 1 , 3 }$ †, Guodong Long2, Jing Jiang2, Hugo Larochelle1,4† 1 Mila, 2 Australian AI Institute, UTS, 3 McGill University, 4 Google Research, Brain Team Correspondence to lu.liu.cs@icloud.com ",
17
+ "bbox": [
18
+ 184,
19
+ 169,
20
+ 785,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 250,
32
+ 544,
33
+ 265
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Few-shot classification aims to recognize unseen classes when presented with only a small number of samples. We consider the problem of multi-domain few-shot image classification, where unseen classes and examples come from diverse data sources. This problem has seen growing interest and has inspired the development of benchmarks such as Meta-Dataset. A key challenge in this multi-domain setting is to effectively integrate the feature representations from the diverse set of training domains. Here, we propose a Universal Representation Transformer (URT) layer, that meta-learns to leverage universal features for few-shot classification by dynamically re-weighting and composing the most appropriate domain-specific representations. In experiments, we show that URT sets a new state-of-the-art result on Meta-Dataset. Specifically, it achieves top-performance on the highest number of data sources compared to competing methods. We analyze variants of URT and present a visualization of the attention score heatmaps that sheds light on how the model performs cross-domain generalization. Our code is available at https://github.com/liulu112601/URT. ",
40
+ "bbox": [
41
+ 233,
42
+ 280,
43
+ 764,
44
+ 486
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 511,
55
+ 336,
56
+ 526
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Learning tasks from small data remains a challenge for machine learning systems, which show a noticeable gap compared to the ability of humans to understand new concepts from few examples. A promising direction to address this challenge is developing methods that are capable of performing transfer learning across the collective data of many tasks. Since machine learning systems generally improve with the availability of more data, a natural assumption is that few-shot learning systems should benefit from leveraging data across many different tasks and domains—even if each individual task has limited training data available. ",
63
+ "bbox": [
64
+ 174,
65
+ 541,
66
+ 825,
67
+ 638
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "This research direction is well captured by the problem of multi-domain few-shot classification. In this setting, training and test data spans a number of different domains, each represented by a different source dataset. A successful approach in this multi-domain setting must not only address the regular challenge of few-shot classification—i.e., the challenge of having only a handful of examples per class. It must also discover how to leverage (or ignore) what is learned from different domains, achieving generalization and avoiding cross-domain interference. ",
74
+ "bbox": [
75
+ 174,
76
+ 646,
77
+ 825,
78
+ 729
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Recently, Triantafillou et al. (2020) proposed a benchmark for multi-domain few-shot classification, Meta-Dataset, and highlighted some of the challenges that current methods face when training data is heterogeneous. Crucially, they found that methods which trained on all available domains would normally obtain improved performance on some domains at the expense of others. Following on their work, progress has been made, which includes the design of adapted hyper-parameter optimization strategies (Saikia et al., 2020) and more flexible meta-learning algorithms (Requeima et al., 2019). Most notable is SUR (Selecting Universal Representation) (Dvornik et al., 2020), a method that relies on a so-called universal representation, extracting from a collection of pre-trained and domain-specific neural network backbones. SUR prescribes a hand-crafted feature-selection procedure to infer how to weight each backbone for each task at hand, and produces an adapted representation for each task. This was shown to lead to some of the best performances on Meta-Dataset. ",
85
+ "bbox": [
86
+ 174,
87
+ 736,
88
+ 825,
89
+ 888
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In SUR, the classification procedure for each task is fixed and not learned. Thus, except for the underlying universal representation, there is no transfer learning performed with regards to how classification rules are inferred across tasks and domains. Yet, cross-domain generalization might be beneficial in that area as well, in particular when tasks have only few examples per class. ",
96
+ "bbox": [
97
+ 174,
98
+ 103,
99
+ 823,
100
+ 159
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Present work. To explore this question, we propose a Universal Representation Transformer (URT) layer, which can effectively learn to transform a universal representation into task-adapted representations. The URT layer is inspired from Transformer (Vaswani et al., 2017) and uses an attention mechanism to learn to retrieve or blend the appropriate backbones to use for each task. By training this layer across few-shot tasks from many domains, it can support transfer across these tasks. ",
107
+ "bbox": [
108
+ 174,
109
+ 166,
110
+ 823,
111
+ 236
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "We show that our URT layer on top of a universal representation’s pre-trained backbones sets a new state-of-the-art performance on Meta-Dataset. It succeeds at outperforming SUR on 4 dataset sources without impairing accuracy on the others. This leads to top performance on 7 dataset sources when comparing to a set of competing methods. To interpret the strategy that URT learns to weigh the backbones from different domains, we visualize the attention scores for both seen and unseen domains and find that our model generates meaningful weights for the pre-trained domains. A comprehensive analysis on variants and ablations of the URT layer is provided to show the importance of various components of URT, notably the number of attention heads. ",
118
+ "bbox": [
119
+ 174,
120
+ 242,
121
+ 825,
122
+ 354
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "2 FEW-SHOT CLASSIFICATION ",
129
+ "text_level": 1,
130
+ "bbox": [
131
+ 176,
132
+ 383,
133
+ 441,
134
+ 400
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "2.1 PROBLEM SETTING ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 176,
144
+ 420,
145
+ 349,
146
+ 434
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "In this section, we will introduce the problem setting for few-shot classification and the formulation of meta-learning for few-shot classification. Few-shot classification aims to classify samples where only few examples are available for each class. We describe a few-shot learning classification task as the pair of examples, comprising of a support set $S$ to define the classification task and the query set $Q$ of samples to be classified. ",
153
+ "bbox": [
154
+ 174,
155
+ 449,
156
+ 825,
157
+ 518
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "Meta-learning is a technique that aims to model the problem of few-shot classification as learning to learn from instances of few-shot classification tasks. The most popular way to train a meta-learning model is with episodic training. Here, tasks $T = ( Q , S )$ are sampled from a larger dataset by taking subsets of the dataset to build a support set $S$ and a query set $Q$ for the task. A common approach is to sample $N$ -way- $K$ -shot tasks, each time selecting a random subset of $N$ classes from the original dataset and choosing only $K$ examples for each class to add to the support set $S$ . ",
164
+ "bbox": [
165
+ 174,
166
+ 526,
167
+ 825,
168
+ 611
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "The meta-learning problem can then be formulated by the following optimization: ",
175
+ "bbox": [
176
+ 176,
177
+ 617,
178
+ 710,
179
+ 632
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "equation",
185
+ "img_path": "images/4cf0074922d261504e06a69f6956545689d9a7e1a60382178e60d7c096702ad3.jpg",
186
+ "text": "$$\n\\operatorname* { m i n } _ { \\Theta } \\mathbb { E } _ { ( S , Q ) \\sim p ( T ) } \\left[ \\mathcal { L } ( S , Q , \\Theta ) \\right] , \\ \\mathcal { L } ( S , Q , \\Theta ) = \\frac { 1 } { | Q | } \\sum _ { { ( x , y ) } \\sim Q } - \\log p ( y | x , S ; \\Theta ) + \\lambda \\Omega ( \\Theta ) ,\n$$",
187
+ "text_format": "latex",
188
+ "bbox": [
189
+ 196,
190
+ 645,
191
+ 781,
192
+ 685
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "where $p ( T )$ is the distribution of tasks, $\\Theta$ are the parameters of the model and $p ( \\boldsymbol { y } | \\boldsymbol { x } , S ; \\Theta )$ is the probability assigned by the model to label $y$ of query example $_ { \\textbf { \\em x } }$ (given the support set $S$ ), and $\\Omega ( \\Theta )$ is an optional regularization term on the model parameters with factor $\\lambda$ . ",
199
+ "bbox": [
200
+ 176,
201
+ 700,
202
+ 823,
203
+ 742
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "Conventional few-shot classification targets the setting of $N$ -way- $K$ -shot, where the number of classes and examples are fixed in each episode. Popular benchmarks following this approach include Omniglot (Lake et al., 2015) or benchmarks made of subsets of ImageNet, such as miniImageNet (Vinyals et al., 2016) and tieredImageNet (Ren et al., 2018). In such benchmarks, the tasks for training cover a set of classes that is disjoint from the classes in the test set of tasks. However, with the training and test sets tasks coming from a single dataset/domain, the distribution of tasks found in either sets is similar and lacks variability, which may be unrealistic in practice. ",
210
+ "bbox": [
211
+ 173,
212
+ 750,
213
+ 825,
214
+ 847
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "It is in this context that Triantafillou et al. (2020) proposed Meta-Dataset, as a further step towards large-scale, multi-domain few shot classification. Meta-Dataset includes ten datasets (domains), with eight of them available for training. Additionally, each task sampled in the benchmark varies in the number of classes $N$ , with each class also varying in the number of shots $K$ . As in all few-shot learning benchmarks, the classes used for training and testing do not overlap. ",
221
+ "bbox": [
222
+ 176,
223
+ 853,
224
+ 823,
225
+ 924
226
+ ],
227
+ "page_idx": 1
228
+ },
229
+ {
230
+ "type": "text",
231
+ "text": "2.2 BACKGROUND AND RELATED WORK ",
232
+ "text_level": 1,
233
+ "bbox": [
234
+ 178,
235
+ 103,
236
+ 467,
237
+ 117
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Meta-Learning A promising approach for few-shot classification is to use meta-learning to more directly train a model to learn to perform few-shot classification, in an end-to-end way. The two most popular methods are Prototypical Networks (Snell et al., 2017) and Model Agnostic Meta-Learning (MAML) (Finn et al., 2017). Triantafillou et al. (2020) showed that prototypical networks and MAML could be combined by leveraging prototypes for the initialization of the output weights value in the inner loop. Requeima et al. (2019) also proposed Conditional Neural Adaptive Processes (CNAPs) for few-shot classification, which can be seen as extending prototypical networks with a more sophisticated architecture that allows for improved task adaptation. This architecture was later improved further by Bateni et al. (2020) with Simple CNAPS, leading to one of the current best methods on Meta-Dataset. Another line of work which leverages the idea of “transfer by fine-tuning” can be found in Appendix B. ",
244
+ "bbox": [
245
+ 174,
246
+ 130,
247
+ 825,
248
+ 281
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Universal Representations In contrast, our work instead builds on that of Dvornik et al. (2020) and their method SUR (Selecting from Universal Representations). Bilen & Vedaldi (2017) introduced the term universal representation to refer to a representation that supports good performance in multiple domains. One proposal towards such a representation is to train different neural networks backbones separately on the data of each available domain, then simply to concatenate the representation learned by each. Another is to introduce some parameter sharing between the backbones, by having a single network conditioned on the domain of the provenance of each batch of training data (Rebuffi et al., 2018), e.g. using Feature-wise Linear Modulate (FiLM) (Perez et al., 2018). SUR proposes to leverage a universal representation in few-shot learning tasks with a feature selection procedure that assigns different weights to each of the domain-specific subvectors of the universal representation. The objective is to assign high weights only to the domain-specific representations that are specifically useful for each few-shot task at hand. The weights are inferred by optimizing a loss on the support set that encourages high accuracy of a nearest-centroid classifier. As such, the method does not involve any meta-learning—a choice motivated by the concern that meta-learning may struggle in generalizing to domains that are dissimilar to the training domains. SUR achieved some of the best performances on Meta-Dataset. However, a contribution of our work is to provide evidence that meta-learning can actually be used to replace SUR’s hand-designed inference procedure and improve performance further. ",
255
+ "bbox": [
256
+ 174,
257
+ 289,
258
+ 825,
259
+ 539
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Task Adaptive Representations Another line of work tries to retrieve task adaptive representations for each task. Task specific representations can be conditioned on a representation of the current task (Oreshkin et al., 2018; Wang et al., 2019), projected to another space (Yoon et al., 2019), or masked based on inter-class commonality and inter-class uniqueness (Li et al., 2019). While the representation extracted from URT is also task adaptive, it is adaptive to a set of pretrained backbones and can be applied to more complicated multi-domain scenarios. Wang & Hebert (2016) proposed to improve a CNN by adding extra layers and train it using unsupervised data while our contribution mainly lies in composing representations instead of an improved CNN. Alet et al. (2018) introduced a modular meta-learning method, which learns a repertoire of modules that serves as nodes to construct a tree structure to solve a new robotic-related task. Comparatively, URT is a one-for-all layer which doesn’t need to construct different module structures for each task. ",
266
+ "bbox": [
267
+ 174,
268
+ 546,
269
+ 825,
270
+ 698
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Transformer Networks Our meta-learning approach to leverage universal representations is inspired directly from Transformer networks (Vaswani et al., 2017). Our model structure is inspired by the structure of the dot-product self-attention in the Transformer, which we adapted here to multidomain few-shot learning by designing appropriate parametrizations for queries, keys and values. Self-attention was explored in the single-domain training regime by Ye et al. (2020); Liu et al. (2019b;a; 2020), however for a different purpose, where each representation of individual examples in a task support set is influenced by all other examples. Rather than using self-attention between individual examples in the support set, our model uses self-attention to select between different domain-specific backbones. ",
277
+ "bbox": [
278
+ 174,
279
+ 705,
280
+ 825,
281
+ 830
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "3 UNIVERSAL REPRESENTATION TRANSFORMER LAYER ",
288
+ "text_level": 1,
289
+ "bbox": [
290
+ 176,
291
+ 851,
292
+ 656,
293
+ 867
294
+ ],
295
+ "page_idx": 2
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "In this section, we describe our proposed URT layer, which uses meta-learning episodic training to learn how to combine the domain-specific backbones of a universal representation for any given fewshot learning classification task. URT layer can be built on top of any set of pretrained backbones without further costly fine-tuning of the backbones. More details on how to train multiple domainspecific backbones can be found in Appendix C. ",
300
+ "bbox": [
301
+ 176,
302
+ 882,
303
+ 823,
304
+ 922
305
+ ],
306
+ "page_idx": 2
307
+ },
308
+ {
309
+ "type": "image",
310
+ "img_path": "images/b8ec3fe34a1bbf140191b9bf5722ec5773c3834b441b3d9391ea604b4b89789b.jpg",
311
+ "image_caption": [
312
+ "Figure 1: Illustration of how a single-head URT layer uses a universal representation to produce a task-specific representation. This example assumes the use of four backbones, with each color illustrating their domain-specific sub-vector representation in the universal representation. "
313
+ ],
314
+ "image_footnote": [],
315
+ "bbox": [
316
+ 174,
317
+ 101,
318
+ 821,
319
+ 258
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "",
326
+ "bbox": [
327
+ 173,
328
+ 343,
329
+ 823,
330
+ 372
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Conceptually, the proposed model views the support set $S$ of a task as providing information on how to query and retrieve from the set $\\{ r _ { i } \\}$ of $m$ pre-trained backbones the most appropriate backbone to build an adapted representation $\\phi$ for the task. ",
337
+ "bbox": [
338
+ 176,
339
+ 378,
340
+ 821,
341
+ 421
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "We would like the model to support a variety of strategies on how to retrieve backbones. For example, it might be beneficial for the model to retrieve a single backbone from the set, especially if the domain of the given task matches perfectly that of a domain found in the training set. Alternatively, if some of the training domains benefit from much more training data than others, a better strategy might be to attempt some cross-domain generalization towards the few-shot learning task by blending many backbones together, even if none matches the domain of the task perfectly. ",
348
+ "bbox": [
349
+ 173,
350
+ 428,
351
+ 825,
352
+ 512
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "This motivates us to use dot-product self-attention, inspired by layers of Transformer networks (Vaswani et al., 2017). For this reason, we refer to our model as a Universal Representation Transformer (URT) layer. Additionally, since each class of the support set might require a different strategy, we perform attention separately for each class and their support set $S _ { c } = \\{ { \\pmb x } | ( { \\pmb x } , y ) \\in S$ and $y = c \\}$ . ",
359
+ "bbox": [
360
+ 174,
361
+ 518,
362
+ 825,
363
+ 589
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "3.1 SINGLE-HEAD URT LAYER",
370
+ "text_level": 1,
371
+ "bbox": [
372
+ 176,
373
+ 604,
374
+ 406,
375
+ 619
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "We start by describing an URT layer consisting of a single attention head. An illustration of a singlehead URT layer is shown in Figure 1. Let $r _ { i } ( { \\pmb x } )$ be the output vector of the backbone for domain $i$ . We then write the universal representation as ",
382
+ "bbox": [
383
+ 173,
384
+ 631,
385
+ 823,
386
+ 672
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "equation",
392
+ "img_path": "images/20cd0cfe3b8789b6c61ebda051b620bcef0b8eb26d523e37e71f43158da5018b.jpg",
393
+ "text": "$$\nr ( \\mathbf x ) = \\mathrm { c o n c a t } ( r _ { 1 } ( \\mathbf x ) , \\hdots , r _ { m } ( \\mathbf x ) ) .\n$$",
394
+ "text_format": "latex",
395
+ "bbox": [
396
+ 380,
397
+ 676,
398
+ 617,
399
+ 694
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "This representation provides a natural starting point to obtain a representation of a support set class. Specifically, we will note ",
406
+ "bbox": [
407
+ 173,
408
+ 698,
409
+ 828,
410
+ 726
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "equation",
416
+ "img_path": "images/cfc05fdbf3c29339a67c56cfba43d5a73aa2af44caeed29ee04f50f303a1b70c.jpg",
417
+ "text": "$$\nr ( S _ { c } ) = \\frac { 1 } { \\left| S _ { c } \\right| } \\sum _ { { \\pmb x } \\in S _ { c } } r ( { \\pmb x } )\n$$",
418
+ "text_format": "latex",
419
+ "bbox": [
420
+ 418,
421
+ 729,
422
+ 580,
423
+ 768
424
+ ],
425
+ "page_idx": 3
426
+ },
427
+ {
428
+ "type": "text",
429
+ "text": "as the representation for the set $S _ { c }$ . From this, we can describe the URT layer by defining the queries1, keys, the attention mechanism and output of the layer: ",
430
+ "bbox": [
431
+ 173,
432
+ 772,
433
+ 825,
434
+ 800
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "Queries $\\mathbf { q } _ { c }$ : For each class $c$ , we obtain a query through $\\mathbf { q } _ { c } = \\mathbf { W } ^ { q } r ( S _ { c } ) + \\mathbf { b } ^ { q }$ , where we have a learnable query linear transformation represented by matrix $\\mathbf { W } ^ { q }$ and bias $\\mathbf { b } ^ { q }$ . ",
441
+ "bbox": [
442
+ 173,
443
+ 806,
444
+ 821,
445
+ 835
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "text",
451
+ "text": "Keys $\\mathbf { k } _ { i , c }$ : For each domain $i$ and class $c$ , we define keys as $\\mathbf { k } _ { i , c } = \\mathbf { W } ^ { k } r _ { i } ( S _ { c } ) + \\mathbf { b } ^ { k }$ , using a learnable linear transformation $\\mathbf { W } ^ { k }$ and $\\mathbf { b } ^ { k }$ and where $r _ { i } ( S _ { c } ) = 1 / | S _ { c } | \\textstyle \\sum _ { { \\pmb x } \\in S _ { c } } r _ { i } ( { \\pmb x } )$ , using a similar notation as for $r ( S _ { c } )$ . ",
452
+ "bbox": [
453
+ 174,
454
+ 842,
455
+ 825,
456
+ 888
457
+ ],
458
+ "page_idx": 3
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Algorithm 1 Training of URT layer ",
463
+ "text_level": 1,
464
+ "bbox": [
465
+ 174,
466
+ 103,
467
+ 411,
468
+ 118
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Input: Number of tasks $\\tau _ { t o t a l }$ , $m$ pre-trained backbones ; ",
475
+ "bbox": [
476
+ 174,
477
+ 123,
478
+ 557,
479
+ 137
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "1: for $\\tau \\in \\{ 1 , \\cdots , \\tau _ { t o t a l } \\}$ do \n2: Sample a few-shot task $T$ with support set $S$ and query set $Q$ ; \n3: # Infer adapted representation for task from $S$ \n4: For each class, obtain representation using $m$ pre-trained backbones as in Eq. (3); \n5: Obtain attention scores using Eq. (4,5) for each head using support set $S$ ; \n6: # Use adapted representation to predict labels in $Q$ from support set $S$ \n7: Compute adapted representation of examples in $S$ and $Q$ as in Eq. (6,7); \n8: Compute probabilities of label of examples in $Q$ using Prototypical Network as in Eq. (9); \n9: Compute loss as in Eq. (1,8) and perform gradient descent step on URT parameters $\\Theta$ ; ",
486
+ "bbox": [
487
+ 179,
488
+ 137,
489
+ 810,
490
+ 263
491
+ ],
492
+ "page_idx": 4
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "10: end for ",
497
+ "bbox": [
498
+ 176,
499
+ 262,
500
+ 253,
501
+ 275
502
+ ],
503
+ "page_idx": 4
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Attention scores $\\alpha _ { i }$ : as for regular Transformer layers, we use scaled dot-product attention ",
508
+ "bbox": [
509
+ 171,
510
+ 303,
511
+ 771,
512
+ 318
513
+ ],
514
+ "page_idx": 4
515
+ },
516
+ {
517
+ "type": "equation",
518
+ "img_path": "images/f80c80697eff8820793887cfcca412325b4c43c2fbce6e2b68dcbdd78749ce86.jpg",
519
+ "text": "$$\n\\alpha _ { i , c } = \\frac { \\exp ( \\beta _ { i , c } ) } { \\sum _ { i ^ { \\prime } } \\exp ( \\beta _ { i ^ { \\prime } , c } ) } , \\beta _ { i , c } = \\frac { { \\bf q } _ { c } \\mathrm { ~ } ^ { \\top } { \\bf k } _ { i , c } } { \\sqrt { l } } ,\n$$",
520
+ "text_format": "latex",
521
+ "bbox": [
522
+ 366,
523
+ 321,
524
+ 630,
525
+ 358
526
+ ],
527
+ "page_idx": 4
528
+ },
529
+ {
530
+ "type": "text",
531
+ "text": "where $l$ is the dimensionality of the keys and queries. Then, these per-class scores are aggregated to obtain scores for the full support set by averaging ",
532
+ "bbox": [
533
+ 173,
534
+ 361,
535
+ 825,
536
+ 390
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "equation",
542
+ "img_path": "images/6b3b04ffee3d3c7737ff3c611447aeddbc0b7d65be875d006a1bbe7804ca2a29.jpg",
543
+ "text": "$$\n\\alpha _ { i } = \\frac { \\sum _ { c } \\alpha _ { i , c } } { N } .\n$$",
544
+ "text_format": "latex",
545
+ "bbox": [
546
+ 447,
547
+ 393,
548
+ 550,
549
+ 426
550
+ ],
551
+ "page_idx": 4
552
+ },
553
+ {
554
+ "type": "text",
555
+ "text": "Equipped with these attention scores, the URT layer can now produce an adapted representation for the task (for the support and query set examples) by computing ",
556
+ "bbox": [
557
+ 173,
558
+ 435,
559
+ 823,
560
+ 465
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "equation",
566
+ "img_path": "images/4b471f4840dafae6714d583b6640d1699e665ab5102cf95e435838ac722fa7ee.jpg",
567
+ "text": "$$\n\\phi ( { \\bf x } ) = \\sum _ { i } \\alpha _ { i } r _ { i } ( { \\bf x } ) .\n$$",
568
+ "text_format": "latex",
569
+ "bbox": [
570
+ 426,
571
+ 469,
572
+ 570,
573
+ 503
574
+ ],
575
+ "page_idx": 4
576
+ },
577
+ {
578
+ "type": "text",
579
+ "text": "As we can see, this approach has the flexibility of either selecting a single domain-specific backbone (by assigning $\\alpha _ { i } = 1$ for a single domain) or blending different domains together (by having $\\alpha _ { i } > >$ 0 for multiple backbones). ",
580
+ "bbox": [
581
+ 174,
582
+ 506,
583
+ 823,
584
+ 549
585
+ ],
586
+ "page_idx": 4
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "3.2 MULTI-HEAD URT LAYER ",
591
+ "text_level": 1,
592
+ "bbox": [
593
+ 176,
594
+ 564,
595
+ 400,
596
+ 580
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "The URT layer described so far can only learn to retrieve a single backbone (or blending of backbones). Yet, it might be beneficial to retrieve multiple different (blended) backbones, especially for a few-shot task that would include many classes of varying complexity. ",
603
+ "bbox": [
604
+ 174,
605
+ 590,
606
+ 823,
607
+ 633
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "Thus, to achieve such diversity in the adapted representation, we also consider URT layers with multiple heads, i.e. where each head corresponds to the calculation of Equation 6 and each head has its own set of parameters $( \\mathbf { W } ^ { q } , \\mathbf { b } ^ { q } , \\mathbf { W } ^ { k } , \\bar { \\mathbf { b } ^ { k } } )$ . Denoting each head now as $\\phi _ { h }$ , a multi-head URT layer then produces as its output the concatenation of all of its heads: ",
614
+ "bbox": [
615
+ 174,
616
+ 640,
617
+ 825,
618
+ 696
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "img_path": "images/51aea894444eb2153de34ba6f12e8f75aa9476e1977cb126028888a229c28be9.jpg",
625
+ "text": "$$\n\\phi ( { \\bf x } ) = \\mathrm { c o n c a t } ( \\phi _ { 1 } ( { \\bf x } ) , \\ldots , \\phi _ { \\mathrm { H } } ( { \\bf x } ) ) .\n$$",
626
+ "text_format": "latex",
627
+ "bbox": [
628
+ 380,
629
+ 700,
630
+ 617,
631
+ 718
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "text",
637
+ "text": "Empirically we found that the randomness in the initialization of head weights alone did not lead to uniqueness and being complimentary between the heads, so inspired by Lin et al. (2017), we add a regularizer to avoid duplication of the attention scores: ",
638
+ "bbox": [
639
+ 173,
640
+ 723,
641
+ 825,
642
+ 765
643
+ ],
644
+ "page_idx": 4
645
+ },
646
+ {
647
+ "type": "equation",
648
+ "img_path": "images/3b7481abfe5e37468fee9ee66f1bf848baad911a832252c6fa1167cff9a59805.jpg",
649
+ "text": "$$\n\\Omega ( \\Theta ) = \\| ( \\mathbf { A } \\mathbf { A } ^ { \\top } - \\mathbf { I } ) \\| _ { F } ^ { 2 } ,\n$$",
650
+ "text_format": "latex",
651
+ "bbox": [
652
+ 408,
653
+ 770,
654
+ 588,
655
+ 791
656
+ ],
657
+ "page_idx": 4
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "where $\\| \\cdot \\| _ { F }$ is the Frobenius norm of a matrix and $\\mathbf { A } \\in \\mathbb { R } ^ { n \\times m }$ is the matrix for attention scores, with $\\mathbf { A } _ { h }$ being the vector of all scores $\\alpha _ { i }$ for head $h$ . The identity matrix I regularizes each set of attention scores to be more focused so that multiple heads can attend to different domain-specific backbones. ",
662
+ "bbox": [
663
+ 173,
664
+ 796,
665
+ 825,
666
+ 853
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "3.3 TRAINING STRATEGY ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 174,
676
+ 869,
677
+ 364,
678
+ 883
679
+ ],
680
+ "page_idx": 4
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "We train representations produced by the URT layer by following the approach of Prototypical Networks (Snell et al., 2017), where the probability of a label $y$ for a query example $_ { \\textbf { \\em x } }$ given the ",
685
+ "bbox": [
686
+ 174,
687
+ 895,
688
+ 823,
689
+ 924
690
+ ],
691
+ "page_idx": 4
692
+ },
693
+ {
694
+ "type": "table",
695
+ "img_path": "images/5fa2ce867a1ab77004f325f1dc712c61a6528c3fc1d8efaa69f9ffd99cd7ff20.jpg",
696
+ "table_caption": [
697
+ "Table 1: Test accuracy (mean $\\pm \\mathrm { C I } \\% 9 5 $ ) over 600 few-shot tasks. URT and the most recent methods, which are listed in the first column, are compared on Meta-Dataset (Triantafillou et al., 2020), which are listed in the first row. The numbers in bold have intersecting confidence intervals with the most accurate method. "
698
+ ],
699
+ "table_footnote": [],
700
+ "table_body": "<table><tr><td></td><td>ILSVRC</td><td>Omniglot</td><td>Aircraft</td><td>Birds</td><td>Textures</td><td>QuickDraw</td><td>Fungi</td><td>VGGFlower</td><td>TrafficSigns</td><td></td><td>MSCOCO</td><td>avg.rank</td></tr><tr><td>MAML</td><td></td><td>37.8±1.0 83.9±1.0 76.4±0.7 62.4±1.1(</td><td></td><td></td><td></td><td>64.1±0.8</td><td>59.7±1.1</td><td>33.5±1.1</td><td>79.9±0.8</td><td>42.9±1.3</td><td>29.4±1.1</td><td>6.4</td></tr><tr><td>ProtoNet</td><td></td><td>44.5±1.1 79.6±1.1 71.1±0.9 67.0±1.0 65.2±0.8</td><td></td><td></td><td></td><td></td><td>64.9±0.9</td><td>40.3±1.1</td><td>86.9±0.7</td><td>46.5±1.0</td><td>39.9±1.1</td><td>5.7</td></tr><tr><td>ProtoMAML</td><td></td><td>46.5±1.1 82.7±1.0 75.2±0.8 69.9±1.0 68.3±0.8</td><td></td><td></td><td></td><td></td><td>66.8±0.9</td><td>42.0±1.2</td><td>88.7±0.7</td><td>52.4±1.1</td><td>41.7±1.1</td><td>4.1</td></tr><tr><td>CNAPs</td><td>50.8±1.1</td><td>91.7±0.5 83.7±0.6 73.6±0.9</td><td></td><td></td><td>59.5±0.7</td><td></td><td>74.7±0.8</td><td>50.2±1.1</td><td>88.9±0.5</td><td>56.5±1.1</td><td>39.4±1.1</td><td>3.6</td></tr><tr><td>SUR</td><td>56.1±1.1 </td><td>93.1±0.5 84.6±0.7 70.6±1.0 71.0±0.8</td><td></td><td></td><td></td><td></td><td>81.3±0.6</td><td>64.2±1.0</td><td>82.8±0.7</td><td>53.4±1.0</td><td>50.1±1.0</td><td>2.3</td></tr><tr><td>SimpleCNAPS 56.5±1.1 91.9±0.6 83.8±0.7 76.1±0.870.0±0.8</td><td></td><td></td><td></td><td></td><td></td><td></td><td>78.3±0.7</td><td>49.1±1.2</td><td>91.3±0.6</td><td>59.2±1.0</td><td>42.4±1.1</td><td>2.2</td></tr><tr><td>URT (Ours)</td><td></td><td>55.7±1.0 94.4±0.4 85.8±0.6 76.3±0.871.8±0.7</td><td></td><td></td><td></td><td></td><td>82.5±0.6</td><td>63.5±1.0</td><td>88.2±0.6</td><td>51.1±1.1</td><td>52.2±1.1</td><td>1.5</td></tr></table>",
701
+ "bbox": [
702
+ 173,
703
+ 167,
704
+ 823,
705
+ 295
706
+ ],
707
+ "page_idx": 5
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "support set of a task is modeled as: ",
712
+ "bbox": [
713
+ 174,
714
+ 323,
715
+ 403,
716
+ 337
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "equation",
722
+ "img_path": "images/f3d5cde7247b3781a24ad56599fc1582b79232feb4132d2997ca4f23f7ac2e95.jpg",
723
+ "text": "$$\np ( y = c | \\pmb { x } , S ; \\Theta ) = \\frac { \\exp ( - d ( \\phi ( \\pmb { x } ) - \\pmb { p _ { c } } ) ) } { \\sum _ { c ^ { \\prime } = 1 } ^ { N } \\exp ( - d ( \\phi ( \\pmb { x } ) - \\pmb { p _ { c ^ { \\prime } } } ) ) } ,\n$$",
724
+ "text_format": "latex",
725
+ "bbox": [
726
+ 328,
727
+ 343,
728
+ 668,
729
+ 382
730
+ ],
731
+ "page_idx": 5
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "where $d$ is a distance metric and $\\pmb { p } _ { c } = 1 / | S _ { c } | \\sum _ { \\pmb { x } \\in S _ { c } } \\phi ( \\pmb { x } )$ corresponds to the centroid of class $c _ { \\cdot }$ referred to as its prototype. We use (negative) cosine similarity as the distance. The full training algorithm is presented in Algorithm 1. ",
736
+ "bbox": [
737
+ 174,
738
+ 387,
739
+ 825,
740
+ 430
741
+ ],
742
+ "page_idx": 5
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "4 EXPERIMENTS ",
747
+ "text_level": 1,
748
+ "bbox": [
749
+ 176,
750
+ 450,
751
+ 326,
752
+ 467
753
+ ],
754
+ "page_idx": 5
755
+ },
756
+ {
757
+ "type": "text",
758
+ "text": "In this section, we seek to answer three key experimental questions: ",
759
+ "bbox": [
760
+ 173,
761
+ 482,
762
+ 617,
763
+ 497
764
+ ],
765
+ "page_idx": 5
766
+ },
767
+ {
768
+ "type": "text",
769
+ "text": "Q1 How does URT compare with previous state-of-the-art on Meta-Dataset for multi-domain fewshot classification? \nQ2 Do the URT attention heads generate interpretable and meaningful attention scores? \nQ3 Does the URT layer provide consistent benefits, even when pre-trained backbones are trained in different ways? ",
770
+ "bbox": [
771
+ 173,
772
+ 505,
773
+ 825,
774
+ 585
775
+ ],
776
+ "page_idx": 5
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "In addition, we investigate architectural choices made, such as our models for keys/queries and their regularization, and study their contribution to achieving strong performance with URT. ",
781
+ "bbox": [
782
+ 174,
783
+ 594,
784
+ 820,
785
+ 623
786
+ ],
787
+ "page_idx": 5
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "4.1 DATASETS AND SETUP ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 174,
795
+ 640,
796
+ 372,
797
+ 655
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "We test our methods on the large-scale few-shot learning benchmark Meta-Dataset (Triantafillou et al., 2020). It consists of ten datasets with various data distributions across different domains, including natural images (Birds, Fungi, VGG Flower), hand-written characters (Omniglot, Quick Draw), and human created objects (Traffic Signs, Aircraft). Among the ten datasets, eight provide data that can be used during either training, validation and testing (with each class assigned to only one of those sets), while two datasets are solely used for testing. Following Bateni et al. (2020); Requeima et al. (2019), we also report results on MNIST (LeCun et al., 1998), CIFAR10 and CIFAR100 (Krizhevsky et al., 2009) as additional unseen test datasets. Following Triantafillou et al. (2020), few-shot tasks are sampled with varying number of classes $N$ , varying number of shots $K$ and class imbalance. The performance is reported as the average accuracy over 600 sampled tasks. More details of Meta-Dataset can be found in Triantafillou et al. (2020). ",
804
+ "bbox": [
805
+ 173,
806
+ 666,
807
+ 825,
808
+ 819
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "The domain-specific backbones are pre-trained following the setup in (Dvornik et al., 2020). Then, we freeze the backbone and train the URT layer for 10,000 episodes, with an initial learning rate of 0.01 and a cosine learning rate scheduler. Following Chen et al. (2020), the training episodes have $50 \\%$ probability coming from the ImageNet data source. Since different pre-trained backbones may produce representations with different vector norms, we normalize the outputs of the backbones as in Dvornik et al. (2020). URT is trained with parameter weight decay of 1e-5 and with a regularization factor $\\lambda = 0 . 1$ . The number of heads ( $H$ in Equation 7), is set to 2 and the dimension of the keys and queries (l in Equation 4) is set to 1024. We choose the hyper-parameters based on the performance of the validation set. Details of the hyper-parameter selection and how the performance is influenced by them are outlined in Section 4.5. We find that the bottleneck of training URT is extracting features from CNN. Since we freeze the CNN when training the URT, we find dumping the extracted feature episodes can significantly speed up the training procedure from days to around 2 hours. ",
815
+ "bbox": [
816
+ 174,
817
+ 825,
818
+ 825,
819
+ 924
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "image",
825
+ "img_path": "images/c10077fb200921d3bb6bc7d24d0c40b0a826b01959da838218a14b2d49389f42.jpg",
826
+ "image_caption": [
827
+ "Figure 2: Average attention scores generated by URT with two heads. Rows correspond to the domain of the test tasks and the columns correspond to the pre-trained backbones $r _ { i } ( { \\pmb x } )$ trained on the eight training domains. "
828
+ ],
829
+ "image_footnote": [],
830
+ "bbox": [
831
+ 169,
832
+ 94,
833
+ 826,
834
+ 309
835
+ ],
836
+ "page_idx": 6
837
+ },
838
+ {
839
+ "type": "text",
840
+ "text": "",
841
+ "bbox": [
842
+ 174,
843
+ 406,
844
+ 825,
845
+ 477
846
+ ],
847
+ "page_idx": 6
848
+ },
849
+ {
850
+ "type": "text",
851
+ "text": "4.2 COMPARISON WITH PREVIOUS APPROACHES",
852
+ "text_level": 1,
853
+ "bbox": [
854
+ 174,
855
+ 508,
856
+ 524,
857
+ 522
858
+ ],
859
+ "page_idx": 6
860
+ },
861
+ {
862
+ "type": "text",
863
+ "text": "Table 1 presents a comparison of URT with SUR, as well as other baselines based on transfer learning by fine-tuning (Saikia et al., 2020) or meta-learning (Prototypical Networks (Snell et al., 2017), first-order MAML (Finn et al., 2017), ProtoMAML (Triantafillou et al., 2020), CNAPs (Requeima et al., 2019)) and Simple CNAPS(Bateni et al., 2020). ",
864
+ "bbox": [
865
+ 174,
866
+ 539,
867
+ 823,
868
+ 595
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "We observe in Table 1 that URT establishes a new state-of-the-art on Meta-Dataset, by achieving the top performance on 8 out of the 10 dataset sources. When comparing to its predecessor, URT outperforms SUR on 4 datasets without compromising performance on others, which is challenging to achieve in the multi-domain setting. Of note, the average inference time for URT is 0.04 second per task, compared to 0.43 for SUR, on a single V100. Thus, getting rid of the optimization procedure for every episode with our meta-trained URT layer also significantly increases the latency, by more than $1 0 \\times$ . More results on additional datasets can be found in Appendix A. ",
875
+ "bbox": [
876
+ 174,
877
+ 602,
878
+ 825,
879
+ 700
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "4.3 INTERPRETING AND VISUALIZING ATTENTION BY URT ",
886
+ "text_level": 1,
887
+ "bbox": [
888
+ 174,
889
+ 732,
890
+ 598,
891
+ 746
892
+ ],
893
+ "page_idx": 6
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "To better understand how the URT model of Section 4.2 uses its two heads to build adapted representations, we visualize the attention scores produced on the test tasks of Meta-Dataset in Figure 2. ",
898
+ "bbox": [
899
+ 176,
900
+ 762,
901
+ 823,
902
+ 791
903
+ ],
904
+ "page_idx": 6
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "The blue (first head) and orange (second head) heatmaps summarize the values of the attention scores (Equation 5), averaged across several tasks for each test domain. Specifically, the element on row $t$ and column $i$ is the averaged attention scores $\\alpha _ { i }$ computed on test set domain $t$ for the backbone from domain $i$ . Note that the last two rows are the two unseen domain datasets. We found that for datasets from the seen domains, i.e. the first eight rows, one head (right, orange) consistently puts most of its weight on the backbone pre-trained on the same domain, while the other head (left, blue) learns relatively smoother weight distributions that blend other related domains. For unseen datasets, the right head puts half of its weight on ImageNet and the left head learned to blend the representations from four backbones. ",
909
+ "bbox": [
910
+ 174,
911
+ 797,
912
+ 823,
913
+ 922
914
+ ],
915
+ "page_idx": 6
916
+ },
917
+ {
918
+ "type": "table",
919
+ "img_path": "images/f01506e1b72bf9bb95aa270a7cf98ba226d36150c671d167afce474318d305bd.jpg",
920
+ "table_caption": [
921
+ "Table 2: Test accuracy (mean $\\pm \\mathrm { C I } \\% 9 5$ ) over 600 few-shot tasks. All methods use parametric network family (pf) backbones. "
922
+ ],
923
+ "table_footnote": [],
924
+ "table_body": "<table><tr><td></td><td> SUR-pf</td><td>URT-pf</td><td>VS.</td></tr><tr><td>ILSVRC</td><td>56.0 ± 1.1</td><td>55.5 ± 1.1</td><td>二</td></tr><tr><td>Omniglot</td><td>90.0 ± 0.8</td><td>90.2 ± 0.6</td><td>二</td></tr><tr><td>Aircraft</td><td>79.7 ± 0.8</td><td>79.8 ± 0.7</td><td>=</td></tr><tr><td>Birds</td><td>75.9 ± 0.9</td><td>77.5 ± 0.8</td><td>三</td></tr><tr><td>Textures</td><td>72.5 ± 0.7</td><td>73.5 ± 0.7</td><td></td></tr><tr><td>Quick Draw</td><td>76.7 ± 0.7</td><td>75.8 ± 0.7</td><td>三 二</td></tr><tr><td>Fungi</td><td>49.8 ± 1.1</td><td>48.1 ± 0.9</td><td>+</td></tr><tr><td>VGG Flower</td><td>90.0 ± 0.6</td><td>91.9 ± 0.5</td><td>二</td></tr><tr><td>Traffic Signs</td><td>52.2 ± 0.8</td><td>52.0 ± 1.4</td><td></td></tr><tr><td>MSCOCO</td><td>50.2 ± 1.1</td><td>52.1 ± 1.0</td><td></td></tr><tr><td>MNIST</td><td>93.2 ± 0.4</td><td>93.9 ± 0.4</td><td>=</td></tr><tr><td>CIFAR10</td><td>66.4 ± 0.8</td><td>66.1 ± 0.8</td><td>三</td></tr><tr><td>CIFAR100</td><td>57.1 ± 1.0</td><td>57.3 ± 1.0</td><td>二</td></tr></table>",
925
+ "bbox": [
926
+ 339,
927
+ 141,
928
+ 658,
929
+ 357
930
+ ],
931
+ "page_idx": 7
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "4.4 URT USING FILM MODULATED BACKBONES ",
936
+ "text_level": 1,
937
+ "bbox": [
938
+ 174,
939
+ 383,
940
+ 529,
941
+ 398
942
+ ],
943
+ "page_idx": 7
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "As additional evidence of the benefit of URT on universal representations, we also present experiments based on a different set of backbone architectures. Following SUR (Dvornik et al., 2020), we consider the backbones from a parametric network family, obtained by training a base backbone on one dataset (ILSVRC) and then learning separate FiLM layers (Perez et al., 2018) for each other dataset, to modulate the backbone so it is adapted to the other domains. These backbones collectively have only $0 . 5 \\%$ more parameters than a single backbone. More details of the backbones can be found in Appendix C. ",
948
+ "bbox": [
949
+ 173,
950
+ 410,
951
+ 825,
952
+ 507
953
+ ],
954
+ "page_idx": 7
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "A comparison between SUR and URT using these backbones (referred to as SUR-pf and URT-pf) is presented in Table 2. Once again, URT can improve the performance on VGG Flower without sacrificing performance on others. ",
959
+ "bbox": [
960
+ 174,
961
+ 513,
962
+ 823,
963
+ 556
964
+ ],
965
+ "page_idx": 7
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "4.5 HYPER-PARAMETER AND ABLATION STUDIES ",
970
+ "text_level": 1,
971
+ "bbox": [
972
+ 174,
973
+ 574,
974
+ 534,
975
+ 588
976
+ ],
977
+ "page_idx": 7
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "We analyze the importance of the various components of URT’s attention mechanism structure and training strategy in Table 3. First we analyze the importance of using the support set to model queries and/or keys. To this end, we consider setting the matrices $\\mathbf { W } ^ { q } / \\mathbf { W } ^ { k }$ of the query / key linear transformation to 0, which only leaves the bias term. We found that the support set representation is most crucial for building the keys (row w/o $\\mathbf { W } ^ { k }$ in the table) and has minor benefits for queries (row $\\mathbf { w } / \\mathbf { o } \\mathbf { W } ^ { q } )$ in the table. This observation is possibly related to the success of attention-based models with learnable constant queries (Liu et al., 2016; Lin et al., 2017). We also found that adding a regularizer $\\Omega ( \\Theta )$ as in Equation 8 is important for some datasets, specifically VGG Flower and Birds. ",
982
+ "bbox": [
983
+ 174,
984
+ 601,
985
+ 825,
986
+ 713
987
+ ],
988
+ "page_idx": 7
989
+ },
990
+ {
991
+ "type": "table",
992
+ "img_path": "images/2090b55d4176e9ae8806b9fc8b8c05ff9aa2f421aea5280c51e4ad19c6101fb1.jpg",
993
+ "table_caption": [
994
+ "Table 3: Meta-Dataset performance variation on ablations of elements of the URT layer. "
995
+ ],
996
+ "table_footnote": [],
997
+ "table_body": "<table><tr><td colspan=\"11\">ILSVRC Omniglot Aircraft Birds Textures Draw Fungi Flower Signs MSCOCO</td></tr><tr><td>w/o Wq</td><td>+0.2</td><td>-0.2</td><td>-0.6</td><td>-0.1</td><td>-0.3</td><td>-0.2</td><td>0.0</td><td>-0.2</td><td>-0.8</td><td>-0.1</td></tr><tr><td>w/o Wk</td><td>-14.2</td><td>-2.8</td><td>-10.7</td><td>-18.1</td><td>-7.6</td><td>-9.3</td><td>-22.4</td><td>-3.6</td><td>-0.26</td><td>-10.9</td></tr><tr><td>w/or(Sc)</td><td>-14.2</td><td>-2.8</td><td>-10.7</td><td>-18.1</td><td>-7.6</td><td>-9.2</td><td>-22.4</td><td>-3.6</td><td>-0.26</td><td>-10.9</td></tr><tr><td>w/0 Ω(0)</td><td>0.0</td><td>-0.9</td><td>-0.4</td><td>-3.3</td><td>-1.2</td><td>-0.2</td><td>+0.3</td><td>-9.0</td><td>-2.0</td><td>0.0</td></tr></table>",
998
+ "bbox": [
999
+ 179,
1000
+ 752,
1001
+ 816,
1002
+ 839
1003
+ ],
1004
+ "page_idx": 7
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "An important hyper-parameter in URT is the number of heads $H$ . We chose this hyper-parameter based on the performance on validation set of tasks in Meta-Dataset. In Table 4, we show the validation performance of URT for varying number of heads. As suggested by Triantafillou et al. (2020), we considered looking at the rank of the performance achieved by each choice of $H$ for each validation domains, and taking the average across domains as a validation metric. However, since the performances when using two to four heads are similar and yield the same average rank, we instead simply consider the average accuracy as the selection criteria. ",
1009
+ "bbox": [
1010
+ 174,
1011
+ 853,
1012
+ 823,
1013
+ 924
1014
+ ],
1015
+ "page_idx": 7
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "",
1020
+ "bbox": [
1021
+ 171,
1022
+ 103,
1023
+ 823,
1024
+ 132
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "table",
1030
+ "img_path": "images/4d8ba408c40e08bd536f77a1c70e98f29f2746946a99fcec59d5d330eba77bb8.jpg",
1031
+ "table_caption": [
1032
+ "Table 4: Validation performance on Meta-Dataset using different number of heads "
1033
+ ],
1034
+ "table_footnote": [],
1035
+ "table_body": "<table><tr><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td></tr><tr><td>Average Accuracy</td><td>74.605</td><td>77.145</td><td>76.943</td><td>76.984</td><td>76.602</td><td>75.906</td><td>75.454</td><td>74.473</td></tr><tr><td>Average Rank</td><td>2.875</td><td>1.000</td><td>1.000</td><td>1.000</td><td>2.250</td><td>2.250</td><td>2.25</td><td>2.50</td></tr></table>",
1036
+ "bbox": [
1037
+ 196,
1038
+ 171,
1039
+ 797,
1040
+ 229
1041
+ ],
1042
+ "page_idx": 8
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "In general, we observe a large jump in performance when using multiple heads instead of just one. However, since the number of heads controls the capacity, predictably we also observe that having too many heads leads to overfitting. ",
1047
+ "bbox": [
1048
+ 176,
1049
+ 244,
1050
+ 823,
1051
+ 286
1052
+ ],
1053
+ "page_idx": 8
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "5 CONCLUSION ",
1058
+ "text_level": 1,
1059
+ "bbox": [
1060
+ 176,
1061
+ 306,
1062
+ 318,
1063
+ 323
1064
+ ],
1065
+ "page_idx": 8
1066
+ },
1067
+ {
1068
+ "type": "text",
1069
+ "text": "We proposed the URT layer to effectively integrate representations from multiple domains and demonstrated improved performance in multi-domain few-shot classification. Notably, our URT approach was able to set a new state-of-the-art on Meta-Dataset, and never performs worse than its predecessor (SUR) while also being $1 0 \\times$ more efficient at inference. This work suggests that combining meta-learning with pre-trained universal representations is a promising direction for new few-shot learning methods. Specifically, we hope that future work can investigate the design of richer forms of universal representations that go beyond simply pre-training a single backbone for each domain, and developing meta-learners adapted to those settings. ",
1070
+ "bbox": [
1071
+ 174,
1072
+ 338,
1073
+ 825,
1074
+ 450
1075
+ ],
1076
+ "page_idx": 8
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "REFERENCES ",
1081
+ "text_level": 1,
1082
+ "bbox": [
1083
+ 176,
1084
+ 472,
1085
+ 285,
1086
+ 486
1087
+ ],
1088
+ "page_idx": 8
1089
+ },
1090
+ {
1091
+ "type": "text",
1092
+ "text": "Ferran Alet, Tomas Lozano-P ´ erez, and Leslie P Kaelbling. Modular meta-learning. In ´ Conference on Robot Learning (CoRL), 2018. ",
1093
+ "bbox": [
1094
+ 173,
1095
+ 494,
1096
+ 823,
1097
+ 523
1098
+ ],
1099
+ "page_idx": 8
1100
+ },
1101
+ {
1102
+ "type": "text",
1103
+ "text": "Peyman Bateni, Raghav Goyal, Vaden Masrani, Frank Wood, and Leonid Sigal. Improved few-shot visual classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
1104
+ "bbox": [
1105
+ 174,
1106
+ 532,
1107
+ 821,
1108
+ 575
1109
+ ],
1110
+ "page_idx": 8
1111
+ },
1112
+ {
1113
+ "type": "text",
1114
+ "text": "Hakan Bilen and Andrea Vedaldi. Universal representations: The missing link between faces, text, planktons, and cat breeds. arXiv preprint arXiv:1701.07275, 2017. ",
1115
+ "bbox": [
1116
+ 173,
1117
+ 584,
1118
+ 821,
1119
+ 614
1120
+ ],
1121
+ "page_idx": 8
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "Wei-Yu Chen, Yen-Cheng Liu, Zsolt Liu, Yu-Chiang Frank Wang, and Jia-Bin Huang. A closer look at few-shot classification. In International Conference on Learning Representations (ICLR), 2019. ",
1126
+ "bbox": [
1127
+ 174,
1128
+ 622,
1129
+ 821,
1130
+ 665
1131
+ ],
1132
+ "page_idx": 8
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Yinbo Chen, Xiaolong Wang, Zhuang Liu, Huijuan Xu, and Trevor Darrell. A new meta-baseline for few-shot learning. arXiv preprint arXiv:2003.04390, 2020. ",
1137
+ "bbox": [
1138
+ 173,
1139
+ 675,
1140
+ 823,
1141
+ 705
1142
+ ],
1143
+ "page_idx": 8
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Guneet Singh Dhillon, Pratik Chaudhari, Avinash Ravichandran, and Stefano Soatto. A baseline for few-shot image classification. In International Conference on Learning Representations (ICLR), 2020. ",
1148
+ "bbox": [
1149
+ 174,
1150
+ 713,
1151
+ 823,
1152
+ 756
1153
+ ],
1154
+ "page_idx": 8
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Nikita Dvornik, Cordelia Schmid, and Julien Mairal. Selecting relevant features from a universal representation for few-shot classification. arXiv preprint arXiv:2003.09338, 2020. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 765,
1162
+ 821,
1163
+ 795
1164
+ ],
1165
+ "page_idx": 8
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In The International Conference on Machine Learning (ICML), 2017. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 804,
1173
+ 821,
1174
+ 833
1175
+ ],
1176
+ "page_idx": 8
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
1181
+ "bbox": [
1182
+ 174,
1183
+ 843,
1184
+ 823,
1185
+ 886
1186
+ ],
1187
+ "page_idx": 8
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. ",
1192
+ "bbox": [
1193
+ 176,
1194
+ 895,
1195
+ 821,
1196
+ 924
1197
+ ],
1198
+ "page_idx": 8
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "Brenden M Lake, Ruslan Salakhutdinov, and Joshua B Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015. ",
1203
+ "bbox": [
1204
+ 173,
1205
+ 103,
1206
+ 823,
1207
+ 132
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
1214
+ "bbox": [
1215
+ 173,
1216
+ 140,
1217
+ 823,
1218
+ 170
1219
+ ],
1220
+ "page_idx": 9
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "Hongyang Li, David Eigen, Samuel Dodge, Matthew Zeiler, and Xiaogang Wang. Finding taskrelevant features for few-shot learning by category traversal. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
1225
+ "bbox": [
1226
+ 174,
1227
+ 178,
1228
+ 821,
1229
+ 222
1230
+ ],
1231
+ "page_idx": 9
1232
+ },
1233
+ {
1234
+ "type": "text",
1235
+ "text": "Zhouhan Lin, Minwei Feng, Cicero Nogueira dos Santos, Mo Yu, Bing Xiang, Bowen Zhou, and Yoshua Bengio. A structured self-attentive sentence embedding. arXiv preprint arXiv:1703.03130, 2017. ",
1236
+ "bbox": [
1237
+ 174,
1238
+ 229,
1239
+ 823,
1240
+ 272
1241
+ ],
1242
+ "page_idx": 9
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, Lina Yao, and Chengqi Zhang. Prototype propagation networks (PPN) for weakly-supervised few-shot learning on category graph. In International Joint Conferences on Artificial Intelligence (IJCAI), 2019a. ",
1247
+ "bbox": [
1248
+ 173,
1249
+ 281,
1250
+ 823,
1251
+ 325
1252
+ ],
1253
+ "page_idx": 9
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, and Chengqi Zhang. Learning to propagate for graph meta-learning. In Neural Information Processing Systems (NeurIPS), 2019b. ",
1258
+ "bbox": [
1259
+ 174,
1260
+ 332,
1261
+ 821,
1262
+ 363
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "Lu Liu, Tianyi Zhou, Guodong Long, Jing Jiang, and Chengqi Zhang. Attribute propagation network for graph zero-shot learning. In AAAI Conference on Artificial Intelligence (AAAI), 2020. ",
1269
+ "bbox": [
1270
+ 173,
1271
+ 369,
1272
+ 823,
1273
+ 400
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "Yang Liu, Chengjie Sun, Lei Lin, and Xiaolong Wang. Learning natural language inference using bidirectional lstm model and inner-attention. arXiv preprint arXiv:1605.09090, 2016. ",
1280
+ "bbox": [
1281
+ 173,
1282
+ 407,
1283
+ 823,
1284
+ 438
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "Boris Oreshkin, Pau Rodr´ıguez Lopez, and Alexandre Lacoste. Tadam: Task dependent adaptive ´ metric for improved few-shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2018. ",
1291
+ "bbox": [
1292
+ 174,
1293
+ 445,
1294
+ 825,
1295
+ 488
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "Ethan Perez, Florian Strub, Harm de Vries, Vincent Dumoulin, and Aaron C. Courville. Film: Visual reasoning with a general conditioning layer. In AAAI Conference on Artificial Intelligence (AAAI), 2018. ",
1302
+ "bbox": [
1303
+ 173,
1304
+ 497,
1305
+ 823,
1306
+ 540
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "text": "Sylvestre-Alvise Rebuffi, Hakan Bilen, and Andrea Vedaldi. Efficient parametrization of multidomain deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. ",
1313
+ "bbox": [
1314
+ 171,
1315
+ 547,
1316
+ 823,
1317
+ 592
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, Kevin Swersky, Joshua B Tenenbaum, Hugo Larochelle, and Richard S Zemel. Meta-learning for semi-supervised few-shot classification. In International Conference on Learning Representations (ICLR), 2018. ",
1324
+ "bbox": [
1325
+ 173,
1326
+ 599,
1327
+ 821,
1328
+ 643
1329
+ ],
1330
+ "page_idx": 9
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "James Requeima, Jonathan Gordon, John Bronskill, Sebastian Nowozin, and Richard E Turner. Fast and flexible multi-task classification using conditional neural adaptive processes. In The Conference on Neural Information Processing Systems (NeurIPS), pp. 7957–7968, 2019. ",
1335
+ "bbox": [
1336
+ 176,
1337
+ 651,
1338
+ 823,
1339
+ 695
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "Tonmoy Saikia, Thomas Brox, and Cordelia Schmid. Optimized generic feature learning for fewshot classification across domains. arXiv preprint arXiv:2001.07926, 2020. ",
1346
+ "bbox": [
1347
+ 171,
1348
+ 703,
1349
+ 821,
1350
+ 733
1351
+ ],
1352
+ "page_idx": 9
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "text": "Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2017. ",
1357
+ "bbox": [
1358
+ 171,
1359
+ 739,
1360
+ 823,
1361
+ 770
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "Eleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin, Utku Evci, Kelvin Xu, Ross Goroshin, Carles Gelada, Kevin Swersky, Pierre-Antoine Manzagol, et al. Meta-dataset: A dataset of datasets for learning to learn from few examples. In International Conference on Learning Representations (ICLR), 2020. ",
1368
+ "bbox": [
1369
+ 173,
1370
+ 779,
1371
+ 825,
1372
+ 835
1373
+ ],
1374
+ "page_idx": 9
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In The Conference on Neural Information Processing Systems (NeurIPS), 2017. ",
1379
+ "bbox": [
1380
+ 174,
1381
+ 843,
1382
+ 821,
1383
+ 887
1384
+ ],
1385
+ "page_idx": 9
1386
+ },
1387
+ {
1388
+ "type": "text",
1389
+ "text": "Oriol Vinyals, Charles Blundell, Tim Lillicrap, Daan Wierstra, et al. Matching networks for one shot learning. In The Conference on Neural Information Processing Systems (NeurIPS), 2016. ",
1390
+ "bbox": [
1391
+ 173,
1392
+ 895,
1393
+ 821,
1394
+ 924
1395
+ ],
1396
+ "page_idx": 9
1397
+ },
1398
+ {
1399
+ "type": "text",
1400
+ "text": "Xin Wang, Fisher Yu, Ruth Wang, Trevor Darrell, and Joseph E Gonzalez. Tafe-net: Task-aware feature embeddings for low shot learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
1401
+ "bbox": [
1402
+ 176,
1403
+ 103,
1404
+ 823,
1405
+ 146
1406
+ ],
1407
+ "page_idx": 10
1408
+ },
1409
+ {
1410
+ "type": "text",
1411
+ "text": "Yu-Xiong Wang and Martial Hebert. Learning from small sample sets by combining unsupervised meta-training with cnns. In The Conference on Neural Information Processing Systems (NeurIPS), 2016. ",
1412
+ "bbox": [
1413
+ 176,
1414
+ 155,
1415
+ 823,
1416
+ 196
1417
+ ],
1418
+ "page_idx": 10
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "Han-Jia Ye, Hexiang Hu, De-Chuan Zhan, and Fei Sha. Few-shot learning via embedding adaptation with set-to-set functions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. ",
1423
+ "bbox": [
1424
+ 173,
1425
+ 207,
1426
+ 825,
1427
+ 250
1428
+ ],
1429
+ "page_idx": 10
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "Sung Whan Yoon, Jun Seo, and Jaekyun Moon. Tapnet: Neural network augmented with taskadaptive projection for few-shot learning. In The International Conference on Machine Learning (ICML), 2019. ",
1434
+ "bbox": [
1435
+ 174,
1436
+ 258,
1437
+ 825,
1438
+ 301
1439
+ ],
1440
+ "page_idx": 10
1441
+ },
1442
+ {
1443
+ "type": "text",
1444
+ "text": "A EXPERIMENTS ON MORE DATASETS ",
1445
+ "text_level": 1,
1446
+ "bbox": [
1447
+ 176,
1448
+ 329,
1449
+ 503,
1450
+ 344
1451
+ ],
1452
+ "page_idx": 10
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "We also report performances on the MNIST, CIFAR-10 and CIFAR-100 dataset sources in Table 5, and compare with the subset of methods that have reported on these datasets. There, URT neither improves nor gets worse performance than SUR, yeilding top performance on the MNIST domain but not on the CIFAR-10/CIFAR-100 domain, on which Simple CNAPS has the best performance. ",
1457
+ "bbox": [
1458
+ 174,
1459
+ 359,
1460
+ 825,
1461
+ 416
1462
+ ],
1463
+ "page_idx": 10
1464
+ },
1465
+ {
1466
+ "type": "table",
1467
+ "img_path": "images/f864a6d9019eee14fa98fbebc1ff5f990d48ca424245b876b9c9c75238f69d0b.jpg",
1468
+ "table_caption": [
1469
+ "Table 5: Test performance (mean $1 { + } \\mathrm { C I } \\% 9 5$ ) over 600 few-shot tasks on additional datasets. "
1470
+ ],
1471
+ "table_footnote": [],
1472
+ "table_body": "<table><tr><td></td><td>MNIST CIFAR10</td><td>CIFAR100</td><td> avg. rank</td></tr><tr><td>CNAPs</td><td>92.7 ± 0.4 61.5 ± 0.7</td><td>50.1 ± 1.0</td><td>4.7</td></tr><tr><td>TaskNorm</td><td>92.3 ± 0.4 69.3 ± 0.8</td><td>54.6 ± 1.1</td><td>3.3</td></tr><tr><td>SUR</td><td>94.3 ± 0.4 66.8 ± 0.9</td><td>56.6 ± 1.0</td><td>2.3</td></tr><tr><td>SimpleCNAPS</td><td>93.9 ± 0.4 74.3± 0.7</td><td>60.5 ± 1.0</td><td>1.7</td></tr><tr><td>URT (Ours)</td><td>94.8 ± 0.4 67.3 ± 0.8</td><td>56.9 ± 1.0</td><td>2.0</td></tr></table>",
1473
+ "bbox": [
1474
+ 284,
1475
+ 455,
1476
+ 710,
1477
+ 563
1478
+ ],
1479
+ "page_idx": 10
1480
+ },
1481
+ {
1482
+ "type": "text",
1483
+ "text": "B MORE RELATED WORKS ",
1484
+ "text_level": 1,
1485
+ "bbox": [
1486
+ 176,
1487
+ 589,
1488
+ 411,
1489
+ 606
1490
+ ],
1491
+ "page_idx": 10
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "text": "Transfer by fine-tuning A simple and effective method for few-shot classification is to perform transfer learning by first learning a neural network classifier on all data available for training and using its representation to initialize and then fine-tune neural networks on the few-shot classification tasks found at test time (Chen et al., 2019; Triantafillou et al., 2020; Dhillon et al., 2020; Saikia et al., 2020). Specifically, Saikia et al. (2020) have shown that competitive performance can be reached using a strong hyper-parameter optimization method applied on a carefully designed validation metric appropriate for few-shot learning. ",
1496
+ "bbox": [
1497
+ 174,
1498
+ 621,
1499
+ 825,
1500
+ 719
1501
+ ],
1502
+ "page_idx": 10
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "text": "C STRUCTURES AND TRAINING STRATEGY OF BACKBONES ",
1507
+ "text_level": 1,
1508
+ "bbox": [
1509
+ 176,
1510
+ 739,
1511
+ 681,
1512
+ 756
1513
+ ],
1514
+ "page_idx": 10
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "Our URT layer can be built on top of a set of pretrained backbones. The structures of the backbones follow the approach in Dvornik et al. (2020). For Table 1, we use the ResNet18 architecture (He et al., 2016) for the backbones, where a separate backbone is pretrained on each domain separately using the corresponding training data in meta-dataset. The training domains include ImageNet, Omniglot, Aircraft, CU-Birds, Textures, Quick Draw, Fungi and VGG-Flower. For the parametric network family in Table 2, a base ResNet18 is first trained on ImageNet. Then a small number of modulating parameters are trained on the other domains, using their domain-specific training data, while the rest of the base backbone’s weights stay fixed. Specifically, FiLM feature modulation (Perez et al., 2018) is used. This type of parametric network family thus allows for a much reduced number of learnable parameters, by reusing the weights from the base network. In experiments, we use the pretrained backbones released by Dvornik et al. (2020) for both cases, without any further finetuning. End-to-end training of a set of backbones and the URT layers requires unaffordable computational cost, so we fix the pretrained backbones and only train the URT layer. ",
1519
+ "bbox": [
1520
+ 173,
1521
+ 770,
1522
+ 825,
1523
+ 924
1524
+ ],
1525
+ "page_idx": 10
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "",
1530
+ "bbox": [
1531
+ 173,
1532
+ 103,
1533
+ 821,
1534
+ 132
1535
+ ],
1536
+ "page_idx": 11
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "Implementation details for training backbones The training details of the backbones come from Dvornik et al. (2020). For optimization, SGD with momentum was used, using cosine learning rate annealing. Since the datasets come from different domains, the starting learning rate, the maximum number of training iterations and annealing frequency are set individually for each dataset. Data augmentation is applied and a constant weight decay of $\\mathrm { \\dot { 7 } } \\times 1 0 ^ { - 4 }$ is set. For each dataset, a grid search over batch size in [8, 16, 32, 64] was run and the one that maximizes accuracy on the validation set was picked. For the parametric network family, the base ResNet18 trained on ImageNet is the same. For other backbones, cosine annealing as learning rate policy is also used, weight decay and data augmentation employed as above. Please refer to Table 4 and Table 5 in the original SUR paper (Dvornik et al., 2020) for the specific values of the hyperparameters for the individual feature networks and the parametric network family, respectively. ",
1541
+ "bbox": [
1542
+ 174,
1543
+ 138,
1544
+ 825,
1545
+ 291
1546
+ ],
1547
+ "page_idx": 11
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "D RESULTS ON TRAFFIC SIGNS ",
1552
+ "text_level": 1,
1553
+ "bbox": [
1554
+ 176,
1555
+ 313,
1556
+ 442,
1557
+ 327
1558
+ ],
1559
+ "page_idx": 11
1560
+ },
1561
+ {
1562
+ "type": "text",
1563
+ "text": "The shuffle buffer bug described in meta-dataset issue #54 (https://github.com/googleresearch/meta-dataset/issues/54) has been propagated to previous works such as CNAPs (Requeima et al., 2019). The results for the Traffic Signs dataset are considerably worse after fixing this bug. For instance, URT degrades from $6 9 . 4 { \\pm } 0 . 8 $ to $5 1 . 1 { \\pm } 1 . 1$ . Please visit the official meta-dataset GitHub repo for more details. The main paper shows the corrected results (for URT and competing approaches). For completeness, we also provide the tables as they were in the initial version of this paper for your reference in this Appendix. Both sets of results overall support the advantageous performance of URT over previous work. ",
1564
+ "bbox": [
1565
+ 174,
1566
+ 343,
1567
+ 825,
1568
+ 455
1569
+ ],
1570
+ "page_idx": 11
1571
+ },
1572
+ {
1573
+ "type": "table",
1574
+ "img_path": "images/21a17eab8e4c44baa2686bff8cddf7e972c790331fe2f93b79cf117289fa1d6d.jpg",
1575
+ "table_caption": [
1576
+ "Table 6: Test accuracy ( $\\mathrm { m e a n \\pm C I \\% 9 5 } ,$ ) over 600 few-shot tasks. URT and the most recent methods, which are listed in the first column, are compared on Meta-Dataset (Triantafillou et al., 2020), which are listed in the first row. The numbers in bold have intersecting confidence intervals with the most accurate method. "
1577
+ ],
1578
+ "table_footnote": [],
1579
+ "table_body": "<table><tr><td></td><td>ILSVRC</td><td>Omniglot</td><td>Aircraft</td><td>Birds</td><td>Textures</td><td>QuickDraw</td><td>Fungi</td><td>VGGFlower</td><td>TrafficSigns</td><td>MSCOCO</td><td>avg.rank</td></tr><tr><td>MAML</td><td>37.8±1.0</td><td>83.9±1.0 76.4±0.7</td><td></td><td>62.4±1.1</td><td>64.1±0.8</td><td>59.7±1.1</td><td>33.5±1.1</td><td>79.9±0.8</td><td>42.9±1.3</td><td>29.4±1.1</td><td>8.0</td></tr><tr><td>ProtoNet</td><td>44.5±1.1</td><td>79.6±1.1</td><td>71.1±0.9 67.0±1.0 65.2±0.8</td><td></td><td></td><td>64.9±0.9</td><td>40.3±1.1</td><td>86.9±0.7</td><td>46.5±1.0</td><td>39.9±1.1</td><td>7.3</td></tr><tr><td>ProtoMAML</td><td>46.5±1.1</td><td>82.7±1.0 75.2±0.8 69.9±1.0 68.3±0.8</td><td></td><td></td><td></td><td>66.8±0.9</td><td>42.0±1.2</td><td>88.7±0.7</td><td>52.4±1.1</td><td>41.7±1.1</td><td>5.4</td></tr><tr><td>CNAPs</td><td>52.3±1.0</td><td>88.4±0.7 80.5±0.6 72.2±0.9 58.3±0.7</td><td></td><td></td><td></td><td>72.5±0.8</td><td>47.4±1.0</td><td>86.0±0.5</td><td>60.2±0.9</td><td>42.6±1.1</td><td>5.1</td></tr><tr><td>BOHB-E</td><td>55.4±1.1</td><td>77.5±1.1</td><td>60.9±0.9</td><td>73.6±0.8</td><td>72.8±0.7</td><td>61.2±0.9</td><td>44.5±1.1</td><td>90.6±0.6</td><td>57.5±1.0</td><td>51.9±1.0</td><td>4.4</td></tr><tr><td>TaskNorm</td><td>50.6±1.1</td><td>90.7±0.6 83.8±0.6</td><td></td><td>574.6±0.8</td><td>62.1±0.7</td><td>74.8±0.7</td><td>48.7±1.0</td><td>89.6±0.6</td><td>67.0±0.7</td><td>43.4±1.0</td><td>3.8</td></tr><tr><td>SUR</td><td>56.3±1.1</td><td>93.1±0.5 85.4±0.7 71.4±1.0 71.5±0.8</td><td></td><td></td><td></td><td>81.3±0.6</td><td>63.1±1.0</td><td>82.8±0.7</td><td>70.4±0.8</td><td>52.4±1.1</td><td>2.5</td></tr><tr><td>SimpleCNAPS 58.6±1.1 9</td><td></td><td>91.7±0.6 82.4±0.7 74.9±0.8 67.8±0.8</td><td></td><td></td><td></td><td>77.7±0.7</td><td>46.9±1.0</td><td>90.7±0.5</td><td>73.5±0.7</td><td>46.2±1.1</td><td>2.4</td></tr><tr><td>URT(Ours)</td><td>55.7±1.0</td><td>94.4±0.4 85.8±0.6 76.3±0.8 71.8±0.7</td><td></td><td></td><td></td><td>82.5±0.6</td><td>63.5±1.0</td><td>88.2±0.6</td><td>69.4±0.8</td><td>52.2±1.1</td><td>1.6</td></tr></table>",
1580
+ "bbox": [
1581
+ 173,
1582
+ 536,
1583
+ 823,
1584
+ 683
1585
+ ],
1586
+ "page_idx": 11
1587
+ },
1588
+ {
1589
+ "type": "table",
1590
+ "img_path": "images/f7ad129999878812ce8ff86a91bf5be271f0274521d82cf801a02d27060ef6b1.jpg",
1591
+ "table_caption": [
1592
+ "Table 7: Test accuracy (mean $\\pm \\mathrm { C I } \\% 9 5 $ ) over 600 few-shot tasks. All methods use parametric network family (pf) backbones. "
1593
+ ],
1594
+ "table_footnote": [],
1595
+ "table_body": "<table><tr><td></td><td>SUR-pf</td><td>URT-pf</td><td>VS.</td></tr><tr><td>ILSVRC</td><td>56.4 ± 1.2</td><td>55.5 ± 1.1</td><td>=</td></tr><tr><td>Omniglot</td><td>88.5±0.8</td><td>90.2 ± 0.6</td><td>+</td></tr><tr><td>Aircraft</td><td>79.5 ± 0.8</td><td>79.8 ± 0.7</td><td>=</td></tr><tr><td>Birds</td><td>76.4 ± 0.9</td><td>77.5 ± 0.8</td><td>=</td></tr><tr><td>Textures</td><td>73.1 ± 0.7</td><td>73.5± 0.7</td><td>=</td></tr><tr><td>Quick Draw</td><td>75.7 ± 0.7</td><td>75.8 ± 0.7</td><td>=</td></tr><tr><td>Fungi</td><td>48.2 ± 0.9</td><td>48.1 ± 0.9</td><td>=</td></tr><tr><td>VGG Flower</td><td>90.6 ± 0.5</td><td>91.9 ± 0.5</td><td>+</td></tr><tr><td>Traffic Signs</td><td>65.1 ± 0.8</td><td>67.5 ± 0.8</td><td>+</td></tr><tr><td>MSCOCO</td><td>52.1 ± 1.0</td><td>52.1 ± 1.0</td><td>=</td></tr><tr><td>MNIST</td><td>93.2 ± 0.4</td><td>93.9 ± 0.4</td><td>=</td></tr><tr><td>CIFAR10</td><td>66.4 ± 0.8</td><td>66.1 ± 0.8</td><td>=</td></tr><tr><td>CIFAR100</td><td>57.1 ± 1.0</td><td>57.3 ±1.0</td><td>=</td></tr></table>",
1596
+ "bbox": [
1597
+ 372,
1598
+ 732,
1599
+ 627,
1600
+ 905
1601
+ ],
1602
+ "page_idx": 11
1603
+ }
1604
+ ]
parse/train/04cII6MumYV/04cII6MumYV_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/04cII6MumYV/04cII6MumYV_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1FvkSpWosOl/1FvkSpWosOl_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/1FvkSpWosOl/1FvkSpWosOl_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkGmDsR9YQ/HkGmDsR9YQ_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkGmDsR9YQ/HkGmDsR9YQ_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lEX04tPr/S1lEX04tPr.md ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lEX04tPr/S1lEX04tPr_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lEX04tPr/S1lEX04tPr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1lEX04tPr/S1lEX04tPr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/YCqx6zhEzRp/YCqx6zhEzRp.md ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Federated Multi-Task Learning under a Mixture of Distributions
2
+
3
+ Othmane Marfoq1,3, Giovanni Neglia1, Aurélien Bellet2, Laetitia Kameni3, and Richard Vidal3
4
+
5
+ 1Inria, Université Côte d’Azur, France, {othmane.marfoq, giovanni.neglia} $@$ inria.fr 2Inria, Université de Lille, France, aurelien.bellet $@$ inria.fr 3Accenture Labs, France, {richard.vidal, laetitia.kameni} $@$ accenture.com
6
+
7
+ # Abstract
8
+
9
+ The increasing size of data generated by smartphones and IoT devices motivated the development of Federated Learning (FL), a framework for on-device collaborative training of machine learning models. First efforts in FL focused on learning a single global model with good average performance across clients, but the global model may be arbitrarily bad for a given client, due to the inherent heterogeneity of local data distributions. Federated multi-task learning (MTL) approaches can learn personalized models by formulating an opportune penalized optimization problem. The penalization term can capture complex relations among personalized models, but eschews clear statistical assumptions about local data distributions.
10
+
11
+ In this work, we propose to study federated MTL under the flexible assumption that each local data distribution is a mixture of unknown underlying distributions. This assumption encompasses most of the existing personalized FL approaches and leads to federated EM-like algorithms for both client-server and fully decentralized settings. Moreover, it provides a principled way to serve personalized models to clients not seen at training time. The algorithms’ convergence is analyzed through a novel federated surrogate optimization framework, which can be of general interest. Experimental results on FL benchmarks show that our approach provides models with higher accuracy and fairness than state-of-the-art methods.
12
+
13
+ # 1 Introduction
14
+
15
+ Federated Learning (FL) [28] allows a set of clients to collaboratively train models without sharing their local data. Standard FL approaches train a unique model for all clients [47, 32, 38, 29, 48]. However, as discussed in [56], the existence of such a global model suited for all clients is at odds with the statistical heterogeneity observed across different clients [37, 28]. Indeed, clients can have non-iid data and varying preferences. Consider for example a language modeling task: given the sequence of tokens $^ { 6 6 } I$ love eating,” the next word can be arbitrarily different from one client to another. Thus, having personalized models for each client is a necessity in many FL applications.
16
+
17
+ Previous work on personalized FL. A naive approach for FL personalization consists in learning first a global model and then fine-tuning its parameters at each client via a few iterations of stochastic gradient descent [58]. In this case, the global model plays the role of a meta-model to be used as initialization for few-shot adaptation at each client. In particular, the connection between FL and Model Agnostic Meta Learning (MAML) [27] has been studied in [19, 30, 1] in order to build a more suitable meta-model for local personalization. Unfortunately, these methods can fail to build a model with low generalization error (as exemplified by LEAF synthetic dataset [7, App. 1]). An alternative approach is to jointly train a global model and one local model per client and then let each client build a personalized model by interpolating them [14, 9, 44]. However, if local distributions are far from the average distribution, a relevant global model does not exist and this approach boils down to every client learning only on its own local data. This issue is formally captured by the generalization bound in [14, Theorem 1].
18
+
19
+ Clustered FL [56, 20, 44] addresses the potential lack of a global model by assuming that clients can be partitioned into several clusters. Clients belonging to the same cluster share the same optimal model, but those models can be arbitrarily different across clusters (see [56, Assumption 2] for a rigorous formulation). During training, clients learn the cluster to which they belong as well as the cluster model. The Clustered FL assumption is also quite limiting, as no knowledge transfer is possible across clusters. In the extreme case where each client has its own optimal local model (recall the example on language modeling), the number of clusters coincides with the number of clients and no federated learning is possible.
20
+
21
+ Multi-Task Learning (MTL) has recently emerged as an alternative approach to learn personalized models in the federated setting and allows for more nuanced relations among clients’ models [59, 63, 67, 24, 16]. The authors of [59, 63] were the first to frame FL personalization as a MTL problem. In particular, they defined federated MTL as a penalized optimization problem, where the penalization term models relationships among tasks (clients). The work [59] proposed the MOCHA algorithm for the client-server scenario, while [63, 67] presented decentralized algorithms for the same problem. Unfortunately, these algorithms can only learn simple models (linear models or linear combination of pre-trained models), because of the complex penalization term. Other MTL-based approaches [24, 23, 16, 26, 36] are able to train more general models at the cost of considering simpler penalization terms (e.g., the distance to the average model), thereby losing the capability to capture complex relations among tasks. Moreover, a general limitation of this line of work is that the penalization term is justified qualitatively and not on the basis of clear statistical assumptions on local data distributions.
22
+
23
+ More recently, [57] proposed pFedHN. pFedHN feeds local clients’ representations to a global (across clients) hypernetwork, which can output personalized heterogeneous models. Unfortunately, the hypernetwork has a large memory footprint already for small clients’ models (e.g., the hypernetwork in the experiments in [57] has 100 more parameters than the output model). Hence, it is not clear if pFedHN can scale to more complex models. Moreover, pFedHN requires each client to communicate multiple times for the server to learn meaningful representations. Therefore, its performance is likely to deteriorate when clients participate only once (or few times) to training, as it is the case for large-scale cross-device FL training. Furthermore, even once the hypernetwork parameters have been learned, training personalized models for new clients still requires multiple client-server communication rounds. More similar to our approach, FedFOMO [68] lets each client interpolate other clients’ local models with opportune weights learned during training. However, this method lacks both theoretical justifications for such linear combinations and convergence guarantees. Moreover, FedFOMO requires the presence of a powerful server able to 1) store all individual local models and 2) learn for each client—through repeated interactions—which other clients’ local models may be useful. Therefore, FedFOMO is not suited for cross-device FL where the number of clients may be very large (e.g., $\mathrm { 1 0 ^ { 5 } - 1 0 ^ { 7 } }$ participating clients [28, Table 2]) and a given client may only participate in a single training round.
24
+
25
+ Overall, although current personalization approaches can lead to superior empirical performance in comparison to a shared global model or individually trained local models, it is still not well understood whether and under which conditions clients are guaranteed to benefit from collaboration.
26
+
27
+ Our contributions. In this work, we first show that federated learning is impossible without assumptions on local data distributions. Motivated by this negative result, we formulate a general and flexible assumption: the data distribution of each client is a mixture of $M$ underlying distributions. The proposed formulation has the advantage that each client can benefit from knowledge distilled from all other clients’ datasets (even if any two clients can be arbitrarily different from each other). We also show that this assumption encompasses most of the personalized FL approaches previously proposed in the literature.
28
+
29
+ In our framework, a personalized model is a linear combination of $M$ shared component models. All clients jointly learn the $M$ components, while each client learns its personalized mixture weights. We show that federated EM-like algorithms can be used for training. In particular, we propose FedEM and D-FedEM for the client-server and the fully decentralized settings, respectively, and we prove convergence guarantees. Our approach also provides a principled and efficient way to infer personalized models for clients unseen at training time. Our algorithms can easily be adapted to solve more general problems in a novel framework, which can be seen as a federated extension of the centralized surrogate optimization approach in [43]. To the best of our knowledge, our paper is the first work to propose federated surrogate optimization algorithms with convergence guarantees.
30
+
31
+ Through extensive experiments on FL benchmark datasets, we show that our approach generally yields models that 1) are on average more accurate, 2) are fairer across clients, and 3) generalize better to unseen clients than state-of-the-art personalized and non-personalized FL approaches.
32
+
33
+ Paper outline. The rest of the paper is organized as follows. In Section 2 we provide our impossibility result, introduce our main assumptions, and show that several popular personalization approaches can be obtained as special cases of our framework. Section 3 describes our algorithms, states their convergence results, and presents our general federated surrogate optimization framework. Finally, we provide experimental results in Section 4 before concluding in Section 5.
34
+
35
+ # 2 Problem Formulation
36
+
37
+ We consider a (countable) set $\tau$ of classification (or regression) tasks which represent the set of possible clients. We will use the terms task and client interchangeably. Data at client $t \in \mathcal { T }$ is generated according to a local distribution $\mathcal { D } _ { t }$ over $\mathcal { X } \times \mathcal { V }$ . Local data distributions $\{ \mathcal { D } _ { t } \} _ { t \in \mathcal { T } }$ are in general different, thus it is natural to fit a separate model (hypothesis) $h _ { t } \in { \mathcal { H } }$ to each data distribution $\mathcal { D } _ { t }$ . The goal is then to solve (in parallel) the following optimization problems
38
+
39
+ $$
40
+ \forall t \in { \mathcal { T } } , \quad \operatorname* { m i n i m i z e } _ { h _ { t } \in { \mathcal { H } } } { \mathcal { L } } _ { { \mathcal { D } } _ { t } } ( h _ { t } ) ,
41
+ $$
42
+
43
+ where $h _ { t } : \mathcal { X } \mapsto \Delta ^ { | \mathcal { V } | }$ $\Delta ^ { D }$ denoting the unitary simplex of dimension $D$ ), $l : \Delta ^ { | y | } \times \mathcal { Y } \mapsto \mathbb { R } ^ { + }$ is a loss function,1 and $\mathcal { L } _ { \mathcal { D } _ { t } } ( h _ { t } ) = \mathbb { E } _ { ( \mathbf { x } , y ) \sim \mathcal { D } _ { t } } ^ { - } \left[ l ( \bar { h } _ { t } ( \mathbf { x } ) , \bar { y } ) \right]$ is the true risk of a model $h _ { t }$ under data distribution $\mathcal { D } _ { t }$ . For $( \mathbf { x } , y ) \in \mathcal { X } \times \mathcal { Y }$ , we will denote the joint distribution density associated to $\mathcal { D } _ { t }$ by $p _ { t } ( \mathbf { x } , y )$ , and the marginal densities by $p _ { t } ( \mathbf { x } )$ and $p _ { t } ( y )$ .
44
+
45
+ A set of $T$ clients $[ T ] \triangleq \{ 1 , 2 , . . . T \} \subseteq \mathcal { T }$ participate to the initial training phase; other clients may e system in a late drawn i.i.d. from age. We, and by $S _ { t } = \{ s _ { t } ^ { ( i ) } = ( \mathbf { x } _ { t } ^ { ( i ) } , \ y _ { t } ^ { ( i ) } ) \} _ { i = 1 } ^ { n _ { t } }$ the dataset at client $t \in [ T ]$ $\mathcal { D } _ { t }$ $\begin{array} { r } { n = \sum _ { t = 1 } ^ { T } n _ { t } } \end{array}$
46
+
47
+ The idea of federated learning is to enable each client to benefit from data samples available at other clients in order to get a better estimation of $\mathcal { L } _ { \mathcal { D } _ { t } }$ , and therefore get a model with a better generalization ability to unseen examples.
48
+
49
+ # 2.1 An Impossibility Result
50
+
51
+ We start by showing that some assumptions on the local distributions $p _ { t } ( \mathbf x , y ) , t \in \mathcal T$ are needed for federated learning to be possible, i.e., for each client to be able to take advantage of the data at other clients. This holds even if all clients participate to the initial training phase (i.e., $\mathcal { T } = [ T ] )$ .
52
+
53
+ We consider the classic PAC learning framework where we fix a class of models $\mathcal { H }$ and seek a learning algorithm which is guaranteed, for all possible data distributions over $\mathcal { X } \times \mathcal { V }$ , to return with high probability a model with expected error $\epsilon$ -close to the best possible error in the class $\mathcal { H }$ . The worst-case sample complexity then refers to the minimum amount of labeled data required by any algorithm to reach a given $\epsilon$ -approximation.
54
+
55
+ Our impossibility result for FL is based on a reduction to an impossibility result for Semi-Supervised Learning (SSL), which is the problem of learning from a training set with only a small amount of labeled data. The authors of [4] conjectured that, when the quantity of unlabeled data goes to infinity, the worst-case sample complexity of SSL improves over supervised learning at most by a constant factor that only depends on the hypothesis class [4, Conjecture 4]. This conjecture was later proved for the realizable case and hypothesis classes of finite VC dimension [13, Theorem 1], even when the marginal distribution over the domain set $\mathcal { X }$ is known [21, Theorem 2]. 2
56
+
57
+ In the context of $\mathrm { F L }$ , if the marginal distributions $p _ { t } \left( \mathbf { x } \right)$ are identical, but the conditional distributions $p _ { t } \left( y | \mathbf { x } \right)$ can be arbitrarily different, then each client $t$ can learn using: 1) its own local labeled dataset, and 2) the other clients’ datasets, but only as unlabeled ones (because their labels have no relevance for $t$ ). The FL problem, with $T$ clients, then reduces to $T$ parallel SSL problems, or more precisely, it is at least as difficult as $T$ parallel SSL problems (because client $t$ has no direct access to the other local datasets but can only learn through the communication exchanges allowed by the FL algorithm). The SSL impossibility result implies that, without any additional assumption on the local distributions $p _ { t } \left( \mathbf { x } , y \right)$ , $t \in [ T ]$ , any FL algorithm can reduce the sample complexity of client- $\mathbf { \nabla } \cdot t$ ’s problem in (1) only by a constant in comparison to local learning, independently of how many other clients participate to training and how large their datasets’ sizes are.
58
+
59
+ # 2.2 Learning under a Mixture Model
60
+
61
+ Motivated by the above impossibility result, in this work we propose to consider that each local data distribution $\mathcal { D } _ { t }$ is a mixture of $M$ underlying distributions $\tilde { \mathcal { D } } _ { m }$ , $1 \leq m \leq M$ , as formalized below.
62
+
63
+ Assumption 1. There exist $M$ underlying (independent) distributions $\tilde { \mathcal { D } } _ { m }$ , $1 \leq m \leq M$ , such that for $t \in \tau$ , $\mathcal { D } _ { t }$ is mixture of the distributions $\{ \tilde { \mathcal { D } } _ { m } \} _ { m = 1 } ^ { M }$ with weights $\pi _ { t } ^ { * } = [ \pi _ { t 1 } ^ { * } , \ldots , \pi _ { t M } ^ { * } ] \in \Delta ^ { M }$ , i.e.
64
+
65
+ $$
66
+ z _ { t } \sim \mathcal { M } ( \pi _ { t } ^ { * } ) , \quad ( ( \mathbf { x } _ { t } , y _ { t } ) | z _ { t } = m ) \sim \tilde { \mathcal { D } } _ { m } , \quad \forall t \in \mathcal { T } ,
67
+ $$
68
+
69
+ where $\mathcal { M } ( \pi )$ is a multinomial (categorical) distribution with parameters $\pi$ .
70
+
71
+ Similarly to what was done above, we use $p _ { m } ( \mathbf { x } , y )$ , $p _ { m } ( \mathbf { x } )$ , and $p _ { m } ( y )$ to denote the probability distribution densities associated to $\tilde { \mathcal { D } } _ { m }$ . We further assume that marginals over $\mathcal { X }$ are identical.
72
+
73
+ Assumption 2. For all $m \in [ M ]$ , we have $p _ { m } ( \mathbf { x } ) = p ( \mathbf { x } )$ .
74
+
75
+ Assumption 2 is not strictly required for our analysis to hold, but, in the most general case, solving Problem (1) requires to learn generative models. Instead, under Assumption 2 we can restrict our attention to discriminative models (e.g., neural networks). 3 More specifically, we consider a parameterized set of models $\tilde { \mathcal { H } }$ with the following properties.
76
+
77
+ Assumption 3. $\tilde { \mathcal { H } } = \{ h _ { \theta } \} _ { \theta \in \mathbb { R } ^ { d } }$ is a set of hypotheses parameterized by $\theta \in \mathbb { R } ^ { d }$ , whose convex hull is in $\mathcal { H }$ . For each distribution $\tilde { \mathcal { D } } _ { m }$ with $m \in [ M ]$ , there exists a hypothesis $h _ { \theta _ { m } ^ { * } }$ , such that
78
+
79
+ $$
80
+ \begin{array} { r } { l \left( h _ { \theta _ { m } ^ { * } } ( \mathbf { x } ) , y \right) = - \log p _ { m } ( y | \mathbf { x } ) + c , } \end{array}
81
+ $$
82
+
83
+ where $c \in \mathbb { R }$ is a normalization constant. The function $l ( \cdot , \cdot )$ is then the log-loss associated to $p _ { m } ( y | \mathbf { x } )$ .
84
+
85
+ We refer to the hypotheses in $\tilde { \mathcal { H } }$ as component models or simply components. We denote by $\Theta ^ { * } \in \mathbb { R } ^ { M \times d }$ the matrix whose $m$ -th row is $\theta _ { m } ^ { * }$ , and by $\Pi ^ { * } \in \Delta ^ { T \times } { \bar { M } }$ the matrix whose $t$ -th row is $\pi _ { t } ^ { * } \in \Delta ^ { M }$ . Similarly, we will use $\Theta$ and $\Pi$ to denote arbitrary parameters.
86
+
87
+ Remark 1. Assumptions 2–3 are mainly technical and are not required for our approach to work in practice. Experiments in Section 4 show that our algorithms perform well on standard $F L$ benchmark datasets, for which these assumptions do not hold in general.
88
+
89
+ Note that, under the above assumptions, $p _ { t } ( \mathbf { x } , y )$ depends on $\Theta ^ { * }$ and $\pi _ { t } ^ { * }$ . Moreover, we can prove (see App. A) that the optimal local model $h _ { t } ^ { * } \in \mathcal { H }$ for client $t$ is a weighted average of models in $\tilde { \mathcal { H } }$ . Proposition 2.1. Let $l ( \cdot , \cdot )$ be the mean squared error loss, the logistic loss or the cross-entropy loss, and $\breve { \Theta }$ and $\breve { \Pi }$ be a solution of the following optimization problem:
90
+
91
+ $$
92
+ \underset { \Theta , \Pi } { \mathrm { m i n i m i z e } } \underset { t \sim D _ { T } } { \mathbb { E } } \underset { ( \mathbf { x } , y ) \sim D _ { t } } { \mathbb { E } } \left[ - \log p _ { t } ( \mathbf { x } , y | \Theta , \pi _ { t } ) \right] ,
93
+ $$
94
+
95
+ where $D _ { \mathcal { T } }$ is any distribution with support $\tau$ . Under Assumptions $^ { l }$ , 2, and $^ 3$ , the predictors
96
+
97
+ $$
98
+ h _ { t } ^ { * } = \sum _ { m = 1 } ^ { M } \breve { \pi } _ { t m } h _ { { \breve { \theta } } _ { m } } \left( \mathbf { x } \right) , \quad \forall t \in \mathcal { T }
99
+ $$
100
+
101
+ minimize $\mathbb { E } _ { ( \mathbf { x } , y ) \sim \mathcal { D } _ { t } } \left[ l ( h _ { t } ( \mathbf { x } ) , y ) \right]$ and thus solve Problem (1).
102
+
103
+ Proposition 2.1 suggests the following approach to solve Problem (1). First, we estimate the parameters $\breve { \Theta }$ and $\breve { \pi } _ { t }$ , $1 \leq t \leq T$ , by minimizing the empirical version of Problem (4) on the training data, i.e., minimizing:
104
+
105
+ $$
106
+ f ( \Theta , \Pi ) \triangleq - \frac { \log p ( \mathcal { S } _ { 1 : T } | \Theta , \Pi ) } { n } \triangleq - \frac { 1 } { n } \sum _ { t = 1 } ^ { T } \sum _ { i = 1 } ^ { n _ { t } } \log p ( s _ { t } ^ { ( i ) } | \Theta , \pi _ { t } ) ,
107
+ $$
108
+
109
+ which is the (negative) likelihood of the probabilistic model (2). 4 Second, we use (5) to get the client predictor for the $T$ clients present at training time. Finally, to deal with a client $t _ { \mathrm { n e w } } \notin [ T ]$ not seen during training, we keep the mixture component models fixed and simply choose the weights $\pi _ { t _ { \mathrm { n e w } } }$ that maximize the likelihood of the client data and get the client predictor via (5).
110
+
111
+ # 2.3 Generalizing Existing Frameworks
112
+
113
+ Before presenting our federated learning algorithms in Section 3, we show that the generative model in Assumption 1 extends some popular multi-task/personalized FL formulations in the literature.
114
+
115
+ Clustered Federated Learning [56, 20] assumes that each client belongs to one among $C$ clusters and proposes that all clients in the same cluster learn the same model. Our framework recovers this scenario considering $M = C$ and $\pi _ { t c } ^ { * } = 1$ if task (client) $t$ is in cluster $c$ and $\pi _ { t c } ^ { * } = 0$ otherwise.
116
+
117
+ Personalization via model interpolation [44, 14] relies on learning a global model $h _ { \mathrm { g l o b } }$ and $T$ local models $h _ { \mathrm { l o c } , t }$ , and then using at each client the linear interpolation $h _ { t } = \alpha _ { t } h _ { \mathrm { l o c } , t } + ( 1 - \alpha _ { t } ) h _ { \mathrm { g l o b } }$ . Each client model can thus be seen as a linear combination of $M = T + 1$ models $h _ { m } = h _ { { \mathrm { l o c } } , m }$ for $m \in [ T ]$ and $h _ { 0 } = h _ { \mathrm { g l o b } }$ with specific weights $\pi _ { t t } ^ { * } = \alpha _ { t }$ , $\pi _ { t 0 } ^ { * } = 1 - \alpha _ { t }$ , and $\pi _ { t t ^ { \prime } } ^ { * } = 0$ for $t ^ { \prime } \in [ T ] \backslash \{ t \}$ .
118
+
119
+ Federated MTL via task relationships. The authors of [59] proposed to learn personalized models by solving the following optimization problem inspired from classic MTL formulations:
120
+
121
+ $$
122
+ \operatorname* { m i n } _ { W , \Omega } \ \sum _ { t = 1 } ^ { T } \sum _ { i = 1 } ^ { n _ { t } } l ( h _ { w _ { t } } ( \mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } ) + \lambda \mathrm { t r } \left( W \Omega W ^ { \intercal } \right) ,
123
+ $$
124
+
125
+ where $h _ { w _ { t } }$ are linear predictors parameterized by the rows of matrix $W$ and the matrix $\Omega$ captures task relationships (similarity). This formulation is motivated by the alternating structure optimization method (ASO) [2, 70]. In App. B, we show that, when predictors $h _ { \theta _ { m } ^ { * } }$ are linear and have bounded norm, our framework leads to the same ASO formulation that motivated Problem (7). Problem (7) can also be justified by probabilistic priors [69] or graphical models [35] (see [59, App. B.1]). Similar considerations hold for our framework (see again App. B). Reference [67] extends the approach in [59] by letting each client learn a personalized model as a weighted combination of $M$ known hypotheses. Our approach is more general and flexible as clients learn both the weights and the hypotheses. Finally, other personalized FL algorithms, like pFedMe [16], FedU [17], and those studied in [24] and in [23], can be framed as special cases of formulation (7). Their assumptions can thus also be seen as a particular case of our framework.
126
+
127
+ # 3 Federated Expectation-Maximization
128
+
129
+ # 3.1 Centralized Expectation-Maximization
130
+
131
+ Our goal is to estimate the optimal components’ parameters $\Theta ^ { * } \ = \ ( \theta _ { m } ^ { * } ) _ { 1 \leq m \leq M }$ and mixture weights $\Pi ^ { * } = ( \pi _ { t } ^ { * } ) _ { 1 \leq t \leq T }$ by minimizing the negative log-likelihood $f ( \Theta , \bar { \Pi } )$ in (6). A natural approach to solve such non-convex problems is the Expectation-Maximization algorithm (EM), which alternates between two steps. Expectation steps update the distribution (denoted by $q _ { t }$ ) over the latent variables $\boldsymbol { z } _ { t } ^ { ( i ) }$ for every data point $s _ { t } ^ { ( i ) } = ( \mathbf { x } _ { t } ^ { ( i ) } , y _ { t } ^ { ( i ) } )$ given the current estimates of the parameters $\{ \Theta , \Pi \}$ . Maximization steps update the parameters $\{ \Theta , \Pi \}$ by maximizing the expected log-likelihood, where the expectation is computed according to the current latent variables’ distributions.
132
+
133
+ The following proposition provides the EM updates for our problem (proof in App. C).
134
+
135
+ Proposition 3.1. Under Assumptions $I$ and 2, at the $k$ -th iteration the EM algorithm updates parameter estimates through the following steps:
136
+
137
+ $$
138
+ \begin{array} { r l r } { { q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) \propto \pi _ { t m } ^ { k } \cdot \exp ( - l ( h _ { \theta _ { m } ^ { k } } ( \mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } ) ) , } } & { t \in [ T ] , m \in [ M ] , i \in [ n _ { t } ] } \\ & { } & \\ & { \pi _ { t m } ^ { k + 1 } = \frac { \sum _ { i = 1 } ^ { n _ { t } } q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) } { n _ { t } } , } & { t \in [ T ] , m \in [ M ] } \\ & { } & \\ & { \theta _ { m } ^ { k + 1 } \in \arg \operatorname* { m i n } _ { \theta \in \mathbb { R } ^ { d } } \sum _ { t = 1 } ^ { T } \sum _ { i = 1 } ^ { n _ { t } } q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) l \big ( h _ { \theta } ( \mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } \big ) , } & { m \in [ M ] } \end{array}
139
+ $$
140
+
141
+ The EM updates in Proposition 3.1 have a natural interpretation. In the $\mathrm { E }$ -step, given current component models $\Theta ^ { k }$ and mixture weights $\Pi ^ { k }$ , (8) updates the a-posteriori probability $q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } =$ $m$ ) that point $s _ { t } ^ { ( i ) }$ of client $t$ was drawn from the $m$ -th distribution based on the current mixture weight $\pi _ { t m } ^ { k }$ and on how well the corresponding component $\theta _ { m } ^ { k }$ classifies $s _ { t } ^ { ( i ) }$ . The M-step consists of two updates under fixed probabilities $q _ { t } ^ { k + 1 }$ . First, (9) updates the mixture weights $\pi _ { t } ^ { k + 1 }$ to reflect the prominence of each distribution $\tilde { \mathcal { D } } _ { m }$ in $S _ { t }$ as given by $q _ { t } ^ { k + 1 }$ . Finally, (10) updates the components’ parameters $\Theta ^ { k + 1 }$ by solving $M$ independent, weighted empirical risk minimization problems with weights given by $q _ { t } ^ { k + 1 }$ . These weights aim to construct an unbiased estimate of the true risk over each underlying distribution $\tilde { \mathcal { D } } _ { m }$ using only points sampled from the client mixtures, similarly to importance sampling strategies used to learn from data with sample selection bias [61, 11, 10, 64].
142
+
143
+ # 3.2 Client-Server Algorithm
144
+
145
+ Federated learning aims to train machine learning models directly on the clients, without exchanging raw data, and thus we should run EM while assuming that only client $t$ has access to dataset $S _ { t }$ . The E-step (8) and the $\Pi$ update (9) in the M-step operate separately on each local dataset $S _ { t }$ and can thus be performed locally at each client $t$ . On the contrary, the $\Theta$ update (10) requires interaction with other clients, since the computation spans all data samples $\mathcal { S } _ { 1 : T }$ .
146
+
147
+ In this section, we consider a client-server setting, in which each client $t$ can communicate only with a centralized server (the orchestrator) and wants to learn components’ parameters $\Theta ^ { * } = \left( \theta _ { m } ^ { * } \right) _ { 1 \leq m \leq M }$ and its own mixture weights $\pi _ { t } ^ { * }$ .
148
+
149
+ We propose the algorithm FedEM for Federated Expectation-Maximization (Alg. 1). FedEM proceeds through communication rounds similarly to most FL algorithms including FedAvg [47], FedProx [38], SCAFFOLD [29], and pFedMe [16]. At each round, 1) the central server broadcasts the (shared) component models to the clients, 2) each client locally updates components and its personalized mixture weights, and 3) sends the updated components back to the server, 4) the server aggregates the updates. The local update performed at client $t$ consists in performing the steps in (8) and (9) and updating the local estimates of $\theta _ { m }$ through a solver which approximates the exact minimization in (10) using only the local dataset $S _ { t }$ (see line 7). FedEM can operate with different local solvers—even different across clients—as far as they satisfy some local improvement guarantees (see the discussion in App. H). In what follows, we restrict our focus on the practically important case where the local solver performs multiple stochastic gradient descent updates (local SGD [60]). Under the following standard assumptions (see e.g., [66]), FedEM converges to a stationary point of $f$ . Below, we use the more compact notation $l ( \boldsymbol { \theta } ; s _ { t } ^ { ( i ) } ) \triangleq l ( h _ { \boldsymbol { \theta } } ( \mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } )$ .
150
+
151
+ Assumption 4. The negative log-likelihood $f$ is bounded below by $f ^ { * } \in \mathbb { R }$ .
152
+
153
+ Assumption 5. (Smoothness) For all $t \in [ T ]$ and $i \in [ n _ { t } ]$ , the function $\theta \mapsto l ( \theta ; s _ { t } ^ { ( i ) } )$ is $L$ -smooth and twice continuously differentiable.
154
+
155
+ Assumption 6. (Unbiased gradients and bounded variance) Each client $t \in [ T ]$ can sample a random batch $\xi$ from $S _ { t }$ and compute an unbiased estimator $g _ { t } ( \theta , \xi )$ of the local gradient with bounded variance, i.e., $\begin{array} { r } { \mathbb { E } _ { \xi } [ g _ { t } ( \theta , \xi ) ] = \frac { 1 } { n _ { t } } \sum _ { i = 1 } ^ { n _ { t } } \nabla _ { \theta } l ( \theta ; s _ { t } ^ { ( i ) } ) } \end{array}$ and $\begin{array} { r } { \mathbb { E } _ { \xi } \| g _ { t } ( \theta , \xi ) - \frac { 1 } { n _ { t } } \sum _ { i = 1 } ^ { n _ { t } } \nabla _ { \theta } l ( \theta ; s _ { t } ^ { ( i ) } ) \| ^ { 2 } \leq \sigma ^ { 2 } } \end{array}$
156
+
157
+ Assumption 7. (Bounded dissimilarity) There exist $\beta$ and $G$ such that for any set of weights $\alpha \in \Delta ^ { M }$ :
158
+
159
+ $$
160
+ \sum _ { t = 1 } ^ { T } \frac { n _ { t } } { n } \Big \| \frac { 1 } { n _ { t } } \sum _ { i = 1 } ^ { n _ { t } } \sum _ { m = 1 } ^ { M } \alpha _ { m } \cdot l ( \theta ; s _ { t } ^ { ( i ) } ) \Big \| ^ { 2 } \leq G ^ { 2 } + \beta ^ { 2 } \Big \| \frac { 1 } { n } \sum _ { t = 1 } ^ { T } \sum _ { i = 1 } ^ { n _ { t } } \sum _ { m = 1 } ^ { M } \alpha _ { m } \cdot l ( \theta ; s _ { t } ^ { ( i ) } ) \Big \| ^ { 2 } .
161
+ $$
162
+
163
+ Input : Data $\overline { { S _ { 1 : T } } }$ ; number of mixture distributions $M$ ; number of communication rounds $K$
164
+ Output : $\theta _ { m } ^ { K }$ , $m \in [ M ]$
165
+ 1 for iterations $k = 1 , \ldots , K$ do
166
+ 2 server broadcasts $\theta _ { m } ^ { k - 1 }$ , $1 \leq m \leq M$ , to the $T$ clients;
167
+ 3 for tasks $t = 1 , \dots , T$ in parallel over $T$ clients do
168
+ 4 for component $m = 1 , \ldots , M$ do
169
+ 5 update $q _ { t } ^ { k } ( z _ { t } ^ { ( i ) } = m )$ as in (8), $\forall i \in \left\{ 1 , \ldots , n _ { t } \right\}$ ;
170
+ 6 update $\pi _ { t m } ^ { k }$ as in (9);
171
+ 7 $\theta _ { m , t } ^ { k } \gets \mathtt { L o c a l S o l v e r } ( m , \theta _ { m } ^ { k - 1 } , q _ { t } ^ { k } , S _ { t } )$ ;
172
+ 8 client $t$ sends $\theta _ { m , t } ^ { k }$ , $1 \leq m \leq M$ , to the server;
173
+ 9 for component $m = 1 , \ldots , M$ do
174
+ 10 $\begin{array} { r } { \theta _ { m } ^ { k } \sum _ { t = 1 } ^ { T } \frac { n _ { t } } { n } \times \theta _ { m , t } ^ { k } } \end{array}$ ;
175
+
176
+ Assumption 7 limits the level of dissimilarity of the different tasks, similarly to what is done in [66].
177
+
178
+ Theorem 3.2. Under Assumptions $^ { 1 - 7 , }$ , when clients use $S G D$ as local solver with learning rate $\begin{array} { r } { \eta = \frac { a _ { 0 } } { \sqrt { K } } } \end{array}$ , after a large enough number of communication rounds $K$ , FedEM’s iterates satisfy:
179
+
180
+ $$
181
+ \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \mathbb { E } \left\| \nabla _ { \Theta } f \left( \Theta ^ { k } , \Pi ^ { k } \right) \right\| _ { F } ^ { 2 } \leq \mathcal { O } \bigg ( \frac { 1 } { \sqrt { K } } \bigg ) , \qquad \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \Delta _ { \Pi } f ( \Theta ^ { k } , \Pi ^ { k } ) \leq \mathcal { O } \bigg ( \frac { 1 } { K ^ { 3 / 4 } } \bigg ) ,
182
+ $$
183
+
184
+ where the expectation is over the random batches samples, and $\Delta _ { \Pi } f ( \Theta ^ { k } , \Pi ^ { k } ) \triangleq f \left( \Theta ^ { k } , \Pi ^ { k } \right) -$ $f \left( \Theta ^ { k } , \Pi ^ { k + 1 } \right) \ge 0$ .
185
+
186
+ Theorem 3.2 (proof in App. G.1) expresses the convergence of both sets of parameters $\Theta$ and $\Pi$ ) to a stationary point of $f$ . Indeed, the gradient of $f$ with respect to $\Theta$ becomes arbitrarily small (left inequality in (11)) and the update in Eq. (9) leads to arbitrarily small improvements of $f$ (right inequality in (11)).
187
+
188
+ We conclude this section observing that FedEM allows an unseen client, i.e., a client $t _ { \mathrm { n e w } } \notin [ T ]$ arriving after the distributed training procedure, to learn its personalized model. The client simply retrieves the learned components’ parameters $\Theta ^ { K }$ and computes its personalized weights $\pi _ { t _ { \mathrm { n e w } } }$ (starting for example from a uniform initialization) through one $\mathrm { E }$ -step (8) and the first update in the M-step (9).
189
+
190
+ # 3.3 Fully Decentralized Algorithm
191
+
192
+ In some cases, clients may want to communicate directly in a peer-to-peer fashion instead of relying on the central server mediation [see 28, Section 2.1]. In fact, fully decentralized schemes may provide stronger privacy guarantees [12] and speed-up training as they better use communication resources [41, 46] and reduce the effect of stragglers [50]. For these reasons, they have attracted significant interest recently in the machine learning community [41, 63, 42, 62, 3, 51, 46, 31]. We refer to [49] for a comprehensive survey of fully decentralized optimization (also known as consensus-based optimization), and to [31] for a unified theoretical analysis of decentralized SGD.
193
+
194
+ We propose D-FedEM (Alg. 4 in App. D.2), a fully decentralized version of our federated expectation maximization algorithm. As in FedEM, the M-step for $\Theta$ update is replaced by an approximate maximization step consisting of local updates. The global aggregation step in FedEM (Alg. 1, line 10) is replaced by a partial aggregation step, where each client computes a weighted average of its current components and those of a subset of clients (its neighborhood), which may vary over time. The convergence of decentralized optimization schemes requires certain assumptions to guarantee that each client can influence the estimates of other clients over time. In our paper, we consider the general assumption in [31, Assumption 4] (restated as Assumption 8 in App. E for completeness). For instance, this assumption is satisfied if the graph of clients’ communications is strongly connected every $\tau$ rounds.
195
+
196
+ D-FedEM converges to a stationary point of $f$ (formal statement in App. E and proof in App. G.2).
197
+
198
+ Theorem 3.3 (Informal). In the same setting of Theorem 3.2 and under the additional Assumption 8, D-FedEM’s individual estimates $( \Theta _ { t } ^ { k } ) _ { 1 \leq t \leq T }$ converge to a common value $\bar { \Theta } ^ { k }$ . Moreover, $\bar { \Theta } ^ { k }$ and $\Pi ^ { k }$ converge to a stationary point of $f$ .
199
+
200
+ # 3.4 Federated Surrogate Optimization
201
+
202
+ FedEM and D-FedEM can be seen as particular instances of a more general framework—of potential interest for other applications—that we call federated surrogate optimization.
203
+
204
+ The standard majorization-minimization principle [34] iteratively minimizes, at each iteration $k$ , a surrogate function $g ^ { k }$ majorizing the objective function $f$ . The work [43] studied this approach when each $\mathbf { \bar { \boldsymbol { g } } ^ { k } }$ is a first-order surrogate of $f$ (the formal definition from [43] is given in App. F.1).
205
+
206
+ Our novel federated surrogate optimization framework considers that the objective function $f$ is a weighted sum $\begin{array} { r } { f = \sum _ { t = 1 } ^ { T } \hat { \omega } _ { t } f _ { t } } \end{array}$ of $T$ functions and iteratively minimizes $f$ in a distributed fashion using partial first-order surrogates $g _ { t } ^ { k }$ for each function $f _ { t }$ . “Partial” refers to the fact that $g _ { t } ^ { k }$ is not required to be a first order surrogate wrt the whole set of parameters, as defined formally below.
207
+
208
+ Definition 1 (Partial first-order surrogate). A function $g ( \mathbf { u } , \mathbf { v } ) : \mathbb { R } ^ { d _ { u } } \times \mathcal { V } \mathbb { R }$ is a partial-first-order surrogate of $f ( { \bf u } , { \bf v } )$ wrt u near $( { \bf u } _ { 0 } , { \bf v } _ { 0 } ) \in R ^ { d _ { u } } \times \mathcal { V }$ when the following conditions are satisfied:
209
+
210
+ 1. $g ( \mathbf { u } , \mathbf { v } ) \geq f ( \mathbf { u } , \mathbf { v } ) .$ for all $\mathbf { u } \in \mathbb { R } ^ { d _ { u } }$ and $\mathbf { v } \in \mathcal { V }$ ;
211
+ 2. $r ( \mathbf { u } , \mathbf { v } ) \triangleq g ( \mathbf { u } , \mathbf { v } ) - f ( \mathbf { u } , \mathbf { v } )$ is differentiable and $L$ -smooth with respect to u. Moreover, we have $r ( { \bf u } _ { 0 } , { \bf v } _ { 0 } ) = 0$ and $\begin{array} { r } { \nabla _ { \mathbf { u } } r ( \mathbf { u } _ { 0 } , \mathbf { v } _ { 0 } ) = 0 . } \end{array}$ .
212
+ 3. $g ( \mathbf { u } , \mathbf { v } _ { 0 } ) - g ( \mathbf { u } , \mathbf { v } ) = d _ { \mathcal { V } } ( \mathbf { v } _ { 0 } , \mathbf { v } ) .$ for all $\mathbf { u } \in \mathbb { R } ^ { d _ { u } }$ and $\begin{array} { r } { \mathbf { v } \in \arg \operatorname* { m i n } _ { \mathbf { v } ^ { \prime } \in \mathcal { V } } g ( \mathbf { u } , \mathbf { v } ^ { \prime } ) } \end{array}$ , where $d _ { \nu }$ is non-negative and $d _ { \mathcal { V } } ( \mathbf { v } , \mathbf { v } ^ { \prime } ) = 0 \iff \mathbf { v } = \mathbf { v } ^ { \prime }$ .
213
+
214
+ Under the assumption that each client $t$ can compute a partial first-order surrogate of $f _ { t }$ , we propose algorithms for federated surrogate optimization in both the client-server setting (Alg. 3) and the fully decentralized one (Alg. 5) and prove their convergence under mild conditions (App. G.1 and G.2). FedEM and D-FedEM can be seen as particular instances of these algorithms and Theorem. 3.2 and Theorem. 3.3 follow from the more general convergence results for federated surrogate optimization. We can also use our framework to analyze the convergence of other FL algorithms such as pFedMe [16], as we illustrate in App. F.3.
215
+
216
+ # 4 Experiments
217
+
218
+ Datasets and models. We evaluated our method on five federated benchmark datasets spanning a wide range of machine learning tasks: image classification (CIFAR10 and CIFAR100 [33]), handwritten character recognition (EMNIST [8] and FEMNIST [7]),5 and language modeling (Shakespeare [7, 47]). Shakespeare dataset (resp. FEMNIST) was naturally partitioned by assigning all lines from the same characters (resp. all images from the same writer) to the same client. We created federated versions of CIFAR10 and EMNIST by distributing samples with the same label across the clients according to a symmetric Dirichlet distribution with parameter 0.4, as in [65]. For CIFAR100, we exploited the availability of “coarse” and “fine” labels, using a two-stage Pachinko allocation method [39] to assign 600 sample to each of the 100 clients, as in [54]. We also evaluated our method on a synthetic dataset verifying Assumptions 1–3. For all tasks, we randomly split each local dataset into training $( 6 0 \% )$ , validation $( 2 0 \% )$ and test $( 2 0 \% )$ sets. Table 1 summarizes datasets, models, and number of clients (more details can be found in App. I.1). Code is available at https://github.com/omarfoq/FedEM.
219
+
220
+ Other FL approaches. We compared our algorithms with global models trained with FedAvg [47] and FedProx [38] as well as different personalization approaches: a personalized model trained only on the local dataset, FedAvg with local tuning $( \mathtt { F e d A v g } + )$ [27], Clustered FL [56] and pFedMe [16]. For each method and each task, the learning rate and the other hyperparameters were tuned via grid search (details in App. I.2). FedAvg+ updated the local model through a single pass on the local dataset. Unless otherwise stated, the number of components considered by FedEM was $M = 3$ , training occurred over 80 communication rounds for Shakespeare and 200 rounds for all other datasets.
221
+
222
+ Table 1: Datasets and models (details in App. I.1).
223
+
224
+ <table><tr><td>Dataset</td><td>Task</td><td>Clients</td><td>Total samples</td><td>Model</td></tr><tr><td>FEMNIST[7]</td><td>Handwriten character recognition</td><td>539</td><td>120,772</td><td>2-layer CNN + 2-layer FFN</td></tr><tr><td>EMNIST[8]</td><td>Handwritten character recognition</td><td>100</td><td>81,425</td><td>2-layer CNN + 2-layer FFN</td></tr><tr><td>CIFAR10 [33]</td><td>Image classification</td><td>80</td><td>60,000</td><td>MobileNet-v2 [55]</td></tr><tr><td>CIFAR100 [33]</td><td>Image classification</td><td>100</td><td>60,000</td><td>MobileNet-v2 [55]</td></tr><tr><td>Shakespeare [7,47]</td><td>Next-Character Prediction</td><td>778</td><td>4,226,158</td><td>Stacked-LSTM[25]</td></tr><tr><td>Synthetic</td><td>Binary Classification</td><td>300</td><td>1,570,507</td><td>Linear model</td></tr></table>
225
+
226
+ Table 2: Test accuracy: average across clients / bottom decile.
227
+
228
+ <table><tr><td>Dataset</td><td>Local</td><td>FedAvg[47]</td><td>FedProx [38]</td><td>FedAvg+ [27]</td><td>Clustered FL [56]</td><td>pFedMe [16]</td><td>FedEM (Ours)</td></tr><tr><td>FEMNIST</td><td>71.0/57.5</td><td>78.6/63.9</td><td>78.9 /64.0</td><td>75.3/53.0</td><td>73.5/55.1</td><td>74.9/57.6</td><td>79.9/64.8</td></tr><tr><td>EMNIST</td><td>71.9/64.3</td><td>82.6/75.0</td><td>83.0/75.4</td><td>83.1/75.8</td><td>82.7/75.0</td><td>83.3/76.4</td><td>83.5/76.6</td></tr><tr><td>CIFAR10</td><td>70.2/48.7</td><td>78.2/72.4</td><td>78.0/70.8</td><td>82.3/70.6</td><td>78.6/71.2</td><td>81.7/73.6</td><td>84.3 /78.1</td></tr><tr><td>CIFAR100</td><td>31.5/19.9</td><td>40.9/33.2</td><td>41.0/33.2</td><td>39.0/28.3</td><td>41.5/34.1</td><td>41.8/32.5</td><td>44.1/35.0</td></tr><tr><td>Shakespeare</td><td>32.0/16.6</td><td>46.7/42.8</td><td>45.7/41.9</td><td>40.0/25.5</td><td>46.6/42.7</td><td>41.2/36.8</td><td>46.7/43.0</td></tr><tr><td>Synthetic</td><td>65.7/58.4</td><td>68.2/58.9</td><td>68.2/59.0</td><td>68.9/60.2</td><td>69.1/59.0</td><td>69.2/61.2</td><td>74.7/66.7</td></tr></table>
229
+
230
+ At each round, clients train for one epoch. Results for D-FedEM are in App. J.1. A comparison with MOCHA [59], which can only train linear models, is presented in App. J.2.
231
+
232
+ Average performance of personalized models. The performance of each personalized model (which is the same for all clients in the case of FedAvg and FedProx) is evaluated on the local test dataset (unseen at training). Table 2 shows the average weighted accuracy with weights proportional to local dataset sizes. We observe that FedEM obtains the best performance across all datasets.
233
+
234
+ Fairness across clients. FedEM’s improvement in terms of average accuracy could be the result of learning particularly good models for some clients at the expense of bad models for other clients. Table 2 shows the bottom decile of the accuracy of local models, i.e., the $( T / 1 0 )$ -th worst accuracy (the minimum accuracy is particularly noisy, notably because some local test datasets are very small). Even clients with the worst personalized models are still better off when FedEM is used for training.
235
+
236
+ Clients sampling. In cross-device federated learning, only a subset of clients may be available at each round. We ran CIFAR10 experiments with different levels of participation: at each round a given fraction of all clients were sampled uniformly without replacement. We restrict the comparison to FedEM and ${ \mathrm { F e d A v g } } +$ , as 1) ${ \mathrm { F e d A v g } } +$ performed better than FedProx and FedAvg in the previous CIFAR10 experiments, 2) it is not clear how to extend pFedMe and Clustered FL to handle client sampling. Results in Fig. 1 (left) show that FedEM is more robust to low clients’ participation levels. We provide additional results on client sampling, including a comparison with APFL [14], in App. J.6.
237
+
238
+ Generalization to unseen clients. As discussed in Section 3.2, FedEM allows new clients arriving after the distributed training to easily learn their personalized models. With the exception of ${ \mathrm { F e d A v g } } +$ , it is not clear how the other personalized FL algorithms should be extended to tackle the same goal (see discussion in App. J.3). In order to evaluate the quality of new clients’ personalized models, we performed an experiment where only $80 \%$ of the clients (“old” clients) participate to the training. The remaining $20 \%$ join the system in a second phase and use their local training datasets to learn their personalized weights. Table 3 shows that FedEM allows new clients to learn a personalized model at least as good as FedAvg’s global one and always better than FedAvg+’s one. Unexpectedly, new clients achieve sometimes a significantly higher test accuracy than old clients (e.g., $4 7 . 5 \%$ against $4 4 . 1 \%$ on CIFAR100). Our investigation in App. J.3 suggests that, by selecting their mixture weights on local datasets that were not used to train the components, new clients can compensate for potential overfitting in the initial training phase. We also investigate in App. J.3 the effect of the local dataset size on the accuracy achieved by unseen clients, showing that personalization is effective even when unseen clients have small datasets.
239
+
240
+ Effect of $M$ . A limitation of FedEM is that each client needs to update and transmit $M$ components at each round, requiring roughly $M$ times more computation and $M$ times larger messages. Nevertheless, the number of components to consider in practice is quite limited. We used $M = 3$ in our previous experiments, and Fig. 1 (right) shows that larger values do not yield much improvement and $M = 2$ already provides a significant level of personalization. In all experiments above, the number of communication rounds allowed all approaches to converge. As a consequence, even if other methods trained over $M = 3$ times more rounds—in order to have as much computation and communication as FedEM—the conclusions would not change. As a final experiment, we considered a time-constrained setting, where FedEM is limited to run one third $( = 1 / M )$ ) of the rounds (Table 7 in App. J.5). Even if FedEM does not reach its maximum accuracy, it still outperforms the other methods on 3 datasets.
241
+
242
+ Table 3: Average test accuracy across clients unseen at training (train accuracy in parenthesis).
243
+
244
+ <table><tr><td>Dataset</td><td>FedAvg [47]</td><td>FedAvg+[27]</td><td>FedEM (Ours)</td></tr><tr><td>FEMNIST</td><td>78.3(80.9)</td><td>74.2 (84.2)</td><td>79.1 (81.5)</td></tr><tr><td>EMNIST</td><td>83.4(82.7)</td><td>83.7(92.9)</td><td>84.0(83.3)</td></tr><tr><td>CIFAR10</td><td>77.3(77.5)</td><td>80.4 (80.5)</td><td>85.9 (90.7)</td></tr><tr><td>CIFAR100</td><td>41.1 (42.1)</td><td>36.5 (55.3)</td><td>47.5 (46.6)</td></tr><tr><td>Shakespeare</td><td>46.7 (47.1)</td><td>40.2 (93.0)</td><td>46.7 (46.6)</td></tr><tr><td>Synthetic</td><td>68.6(70.0)</td><td>69.1(72.1)</td><td>73.0 (74.1)</td></tr></table>
245
+
246
+ ![](images/eeb1beb065cef85e985d5f9666ab0cf36430081c9d877b100da90cd7e8b773ff.jpg)
247
+ Figure 1: Effect of client sampling rate (left) and FedEM number of mixture components $M$ (right) on the test accuracy for CIFAR10 [33].
248
+
249
+ # 5 Conclusion
250
+
251
+ In this paper, we proposed a novel federated MTL approach based on the flexible assumption that local data distributions are mixtures of underlying distributions. Our EM-like algorithms allow clients to jointly learn shared component models and personalized mixture weights in client-server and fully decentralized settings. We proved convergence guarantees for our algorithms through a general federated surrogate optimization framework which can be used to analyze other FL formulations. Extensive empirical evaluation shows that our approach learns models with higher accuracy and fairness than state-of-the-art FL algorithms, even for clients not present at training time.
252
+
253
+ In future work, we aim to reduce the local computation and communication of our algorithms. Aside from standard compression schemes [22], a promising direction is to limit the number of component models that a client updates/transmits at each step. This could be done in an adaptive manner based on the client’s current mixture weights. A simultaneously published work [15] proposes a federated EM algorithm (also called FedEM), which does not address personalization but reduces communication requirements by compressing appropriately defined complete data sufficient statistics.
254
+
255
+ A second interesting research direction is to study personalized FL approaches under privacy constraints (quite unexplored until now with the notable exception of [3]). Some features of our algorithms may be beneficial for privacy (e.g., the fact that personalized weights are kept locally and that all users contribute to all shared models). We hope to design differentially private versions of our algorithms and characterize their privacy-utility trade-offs.
256
+
257
+ # 6 Acknowledgements
258
+
259
+ This work has been supported by the French government, through the 3IA Côte d’Azur Investments in the Future project managed by the National Research Agency (ANR) with the reference number ANR-19-P3IA-0002, and through grants ANR-16-CE23-0016 (Project PAMELA) and ANR-20- CE23-0015 (Project PRIDE). The authors are grateful to the OPAL infrastructure from Université Côte d’Azur for providing computational resources and technical support.
260
+
261
+ # References
262
+
263
+ Training”. In: Proceedings of the 38th International Conference on Machine Learning. Ed. by Marina Meila and Tong Zhang. Vol. 139. Proceedings of Machine Learning Research. PMLR, July 2021, pp. 21–31. URL: https://proceedings.mlr.press/v139/acar21a.html.
264
+ [2] Rie Kubota Ando and Tong Zhang. “A Framework for Learning Predictive Structures from Multiple Tasks and Unlabeled Data”. In: Journal of Machine Learning Research 6.61 (2005), pp. 1817–1853.
265
+ [3] Aurélien Bellet, Rachid Guerraoui, Mahsa Taziki, and Marc Tommasi. “Personalized and Private Peer-to-Peer Machine Learning”. In: AISTATS. 2018.
266
+ [4] Shai Ben-David, Tyler Lu, and D. Pál. “Does Unlabeled Data Provably Help? Worst-case Analysis of the Sample Complexity of Semi-Supervised Learning”. In: COLT. 2008.
267
+ [5] Stephen Boyd, Persi Diaconis, and Lin Xiao. “Fastest Mixing Markov Chain on A Graph”. In: SIAM REVIEW 46 (2003), pp. 667–689.
268
+ [6] Sébastien Bubeck. Convex Optimization: Algorithms and Complexity. 2015. arXiv: 1405.4980 [math.OC].
269
+ [7] Sebastian Caldas et al. “Leaf: A benchmark for federated settings”. In: arXiv preprint arXiv:1812.01097 (2018). Presented at the 2nd International Workshop on Federated Learning for Data Privacy and Confidentiality (in conjunction with NeurIPS 2019).
270
+ [8] Gregory Cohen, Saeed Afshar, Jonathan Tapson, and Andre Van Schaik. “EMNIST: Extending MNIST to handwritten letters”. In: 2017 International Joint Conference on Neural Networks (IJCNN). IEEE. 2017, pp. 2921–2926.
271
+ [9] Luca Corinzia and Joachim M. Buhmann. Variational Federated Multi-Task Learning. 2019. arXiv: 1906.06268 [cs.LG].
272
+ [10] Corinna Cortes, Yishay Mansour, and Mehryar Mohri. “Learning Bounds for Importance Weighting”. In: Advances in Neural Information Processing Systems. Ed. by J. Lafferty, C. Williams, J. Shawe-Taylor, R. Zemel, and A. Culotta. Vol. 23. Curran Associates, Inc., 2010. URL: https : / / proceedings . neurips . cc / paper / 2010 / file / 59c33016884a62116be975a9bb8257e3-Paper.pdf.
273
+ [11] Corinna Cortes, Mehryar Mohri, Michael Riley, and Afshin Rostamizadeh. “Sample Selection Bias Correction Theory”. In: ALT. 2008.
274
+ [12] Edwige Cyffers and Aurélien Bellet. Privacy Amplification by Decentralization. Presented at the Privacy Preserving Machine Learning workshop (in conjunction with NeurIPS 2020). 2021. arXiv: 2012.05326 [cs.LG].
275
+ [13] Malte Darnstädt, H. U. Simon, and Balázs Szörényi. “Unlabeled Data Does Provably Help”. In: STACS. 2013.
276
+ [14] Yuyang Deng, Mohammad Mahdi Kamani, and Mehrdad Mahdavi. “Adaptive Personalized Federated Learning”. In: arXiv preprint arXiv:2003.13461 (2020).
277
+ [15] Aymeric Dieuleveut, Gersende Fort, Eric Moulines, and Geneviève Robin. “Federated Expectation Maximization with heterogeneity mitigation and variance reduction”. In: Advances in Neural Information Processing Systems. Vol. 34. 2021.
278
+ [16] Canh T Dinh, Nguyen H Tran, and Tuan Dung Nguyen. “Personalized Federated Learning with Moreau Envelopes”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020.
279
+ [17] Canh T Dinh, Tung T Vu, Nguyen H Tran, Minh N Dao, and Hongyu Zhang. “FedU: A Unified Framework for Federated Multi-Task Learning with Laplacian Regularization”. In: arXiv preprint arXiv:2102.07148 (2021).
280
+ [18] P. Erdös and A. Rényi. “On Random Graphs I”. In: Publicationes Mathematicae Debrecen 6 (1959), p. 290.
281
+ [19] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. “Personalized federated learning: A meta-learning approach”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020.
282
+ [20] Avishek Ghosh, Jichan Chung, Dong Yin, and Kannan Ramchandran. “An Efficient Framework for Clustered Federated Learning”. In: NeurIPS. 2020.
283
+ [21] Christina Göpfert, Shai Ben-David, Olivier Bousquet, Sylvain Gelly, Ilya Tolstikhin, and Ruth Urner. “When can unlabeled data improve the learning rate?” In: Conference on Learning Theory. PMLR. 2019, pp. 1500–1518.
284
+ [22] Farzin Haddadpour, Mohammad Mahdi Kamani, Aryan Mokhtari, and Mehrdad Mahdavi. “Federated Learning with Compression: Unified Analysis and Sharp Guarantees”. In: ICML. 2021.
285
+ [23] Filip Hanzely, Slavomıér Hanzely, Samuel Horváth, and Peter Richtárik. “Lower bounds and optimal algorithms for personalized federated learning”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020.
286
+ [24] Filip Hanzely and Peter Richtárik. “Federated Learning of a Mixture of Global and Local Models”. In: (2020). arXiv: 2002.05516 [cs.LG].
287
+ [25] Sepp Hochreiter and Jürgen Schmidhuber. “Long Short-Term Memory”. In: Neural Computation 9.8 (1997), pp. 1735–1780.
288
+ [26] Yutao Huang et al. “Personalized cross-silo federated learning on non-iid data”. In: Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 35. 9. 2021, pp. 7865–7873.
289
+ [27] Yihan Jiang, Jakub Konecný, Keith Rush, and Sreeram Kannan. “Improving federated learning ˇ personalization via model agnostic meta learning”. In: arXiv preprint arXiv:1909.12488 (2019). Presented at NeurIPS FL workshop 2019.
290
+ [28] Peter Kairouz et al. “Advances and Open Problems in Federated Learning”. In: Foundations and Trends® in Machine Learning 14.1–2 (2021), pp. 1–210. ISSN: 1935-8237. DOI: 10. 1561/2200000083. URL: http://dx.doi.org/10.1561/2200000083.
291
+ [29] Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. “SCAFFOLD: Stochastic controlled averaging for federated learning”. In: International Conference on Machine Learning. PMLR. 2020, pp. 5132–5143.
292
+ [30] Mikhail Khodak, Maria-Florina F Balcan, and Ameet S Talwalkar. “Adaptive gradient-based meta-learning methods”. In: Advances in Neural Information Processing Systems. 2019, pp. 5917–5928.
293
+ [31] Anastasia Koloskova, N. Loizou, Sadra Boreiri, M. Jaggi, and S. Stich. “A Unified Theory of Decentralized SGD with Changing Topology and Local Updates”. In: ICML. 2020.
294
+ [32] Jakub Konecný, H Brendan McMahan, Felix X Yu, Peter Richtárik, Ananda Theertha Suresh, ˇ and Dave Bacon. “Federated learning: Strategies for improving communication efficiency”. In: arXiv preprint arXiv:1610.05492 (2016). Presented at NIPS 2016 Workshop on Private Multi-Party Machine Learning.
295
+ [33] Alex Krizhevsky. “Learning multiple layers of features from tiny images”. MSc thesis. 2009.
296
+ [34] Kenneth Lange, David R. Hunter, and Ilsoon Yang. “Optimization Transfer Using Surrogate Objective Functions”. In: Journal of Computational and Graphical Statistics 9.1 (2000), pp. 1– 20. ISSN: 10618600. URL: http://www.jstor.org/stable/1390605.
297
+ [35] Steffen L. Lauritzen. Graphical models. English. Oxford Statistical Science Series 17. Clarendon Press, 1996. ISBN: 0198522193.
298
+ [36] Tian Li, Shengyuan Hu, Ahmad Beirami, and Virginia Smith. “Ditto: Fair and robust federated learning through personalization”. In: International Conference on Machine Learning. PMLR. 2021, pp. 6357–6368.
299
+ [37] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. “Federated learning: Challenges, methods, and future directions”. In: IEEE Signal Processing Magazine 37.3 (2020), pp. 50–60.
300
+ [38] Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. “Federated Optimization in Heterogeneous Networks”. In: Third MLSys Conference. 2020.
301
+ [39] Wei Li and Andrew McCallum. “Pachinko Allocation: DAG-Structured Mixture Models of Topic Correlations”. In: Proceedings of the 23rd International Conference on Machine Learning. ICML ’06. Pittsburgh, Pennsylvania, USA: Association for Computing Machinery, 2006, pp. 577–584. ISBN: 1595933832. DOI: 10.1145/1143844.1143917. URL: https: //doi.org/10.1145/1143844.1143917.
302
+ [40] Xiaoxiao Li, Meirui JIANG, Xiaofei Zhang, Michael Kamp, and Qi Dou. “FedBN: Federated Learning on Non-IID Features via Local Batch Normalization”. In: International Conference on Learning Representations. 2020.
303
+ [41] Xiangru Lian, Ce Zhang, Huan Zhang, Cho-Jui Hsieh, Wei Zhang, and Ji Liu. “Can Decentralized Algorithms Outperform Centralized Algorithms? A Case Study for Decentralized Parallel Stochastic Gradient Descent”. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. NIPS’17. Long Beach, California, USA: Curran Associates Inc., 2017, pp. 5336–5346. ISBN: 9781510860964.
304
+ [42] Xiangru Lian, Wei Zhang, Ce Zhang, and Ji Liu. “Asynchronous Decentralized Parallel Stochastic Gradient Descent”. In: ICML. 2018.
305
+ [43] Julien Mairal. “Optimization with first-order surrogate functions”. In: International Conference on Machine Learning. 2013, pp. 783–791.
306
+ [44] Yishay Mansour, Mehryar Mohri, Jae Ro, and Ananda Theertha Suresh. “Three approaches for personalization with applications to federated learning”. In: arXiv preprint arXiv:2002.10619 (2020).
307
+ [45] Sébastien Marcel and Yann Rodriguez. “Torchvision the Machine-Vision Package of Torch”. In: Proceedings of the 18th ACM International Conference on Multimedia. MM ’10. Firenze, Italy: Association for Computing Machinery, 2010, pp. 1485–1488. ISBN: 9781605589336. DOI: 10.1145/1873951.1874254. URL: https://doi.org/10.1145/1873951.1874254.
308
+ [46] Othmane Marfoq, Chuan Xu, Giovanni Neglia, and Richard Vidal. “Throughput-Optimal Topology Design for Cross-Silo Federated Learning”. In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin. Vol. 33. Curran Associates, Inc., 2020, pp. 19478–19487. URL: https://proceedings. neurips.cc/paper/2020/file/e29b722e35040b88678e25a1ec032a21-Paper.pdf.
309
+ [47] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. “Communication-efficient learning of deep networks from decentralized data”. In: Artificial Intelligence and Statistics. PMLR. 2017, pp. 1273–1282.
310
+ [48] Mehryar Mohri, Gary Sivek, and Ananda Theertha Suresh. “Agnostic Federated Learning”. In: International Conference on Machine Learning. 2019, pp. 4615–4625.
311
+ [49] A. Nedic, A. Olshevsky, and M. G. Rabbat. “Network Topology and Communication- ´ Computation Tradeoffs in Decentralized Optimization”. In: Proceedings of the IEEE 106.5 (2018), pp. 953–976. DOI: 10.1109/JPROC.2018.2817461.
312
+ [50] Giovanni Neglia, Gianmarco Calbi, Don Towsley, and Gayane Vardoyan. “The Role of Network Topology for Distributed Machine Learning”. In: IEEE INFOCOM 2019 - IEEE Conference on Computer Communications. 2019, pp. 2350–2358. DOI: 10.1109/INFOCOM.2019.8737602.
313
+ [51] Giovanni Neglia, Chuan Xu, Don Towsley, and Gianmarco Calbi. “Decentralized gradient methods: does topology matter?” In: AISTATS. 2020.
314
+ [52] Y. Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. 1st ed. Applied Optimization. Springer, 2003. URL: http://gen.lib.rus.ec/book/index.php?md5 $=$ 488d3c36f629a6e021fc011675df02ef.
315
+ [53] Adam Paszke et al. “PyTorch: An Imperative Style, High-Performance Deep Learning Library”. In: Advances in Neural Information Processing Systems 32. Ed. by H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. Fox, and R. Garnett. Curran Associates, Inc., 2019, pp. 8024–8035. URL: http://papers.neurips.cc/paper/9015-pytorch-animperative-style-high-performance-deep-learning-library.pdf.
316
+ [54] Sashank J. Reddi et al. “Adaptive Federated Optimization”. In: International Conference on Learning Representations. 2021. URL: https : / / openreview . net / forum ? id $=$ LkFG3lB13U5.
317
+ [55] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. “Mobilenetv2: Inverted residuals and linear bottlenecks”. In: Proceedings of the IEEE conference on computer vision and pattern recognition. 2018, pp. 4510–4520.
318
+ [56] Felix Sattler, Klaus-Robert Müller, and Wojciech Samek. “Clustered Federated Learning: Model-Agnostic Distributed Multitask Optimization Under Privacy Constraints”. In: IEEE Transactions on Neural Networks and Learning Systems (2020).
319
+ [57] Aviv Shamsian, Aviv Navon, Ethan Fetaya, and Gal Chechik. “Personalized Federated Learning using Hypernetworks”. In: Proceedings of the 38th International Conference on Machine Learning. Ed. by Marina Meila and Tong Zhang. Vol. 139. Proceedings of Machine Learning Research. PMLR, July 2021, pp. 9489–9502. URL: https://proceedings.mlr.press/ v139/shamsian21a.html.
320
+ [58] Khe Chai Sim, Petr Zadrazil, and Françoise Beaufays. “An Investigation Into On-device Personalization of End-to-end Automatic Speech Recognition Models”. In: INTERSPEECH. 2019.
321
+ [59] Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. “Federated MultiTask Learning”. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. NIPS’17. Long Beach, California, USA: Curran Associates Inc., 2017, pp. 4427–4437. ISBN: 9781510860964.
322
+ [60] Sebastian U Stich. “Local SGD Converges Fast and Communicates Little”. In: International Conference on Learning Representations. 2018.
323
+ [61] Masashi Sugiyama, Shinichi Nakajima, Hisashi Kashima, Paul Buenau, and Motoaki Kawanabe. “Direct Importance Estimation with Model Selection and Its Application to Covariate Shift Adaptation”. In: NIPS. 2008.
324
+ [62] Hanlin Tang, Xiangru Lian, Ming Yan, Ce Zhang, and Ji Liu. “ $D ^ { 2 }$ : Decentralized Training over Decentralized Data”. In: ICML. 2018.
325
+ [63] Paul Vanhaesebrouck, Aurélien Bellet, and Marc Tommasi. “Decentralized Collaborative Learning of Personalized Models over Networks”. In: AISTATS. 2017.
326
+ [64] Robin Vogel, Mastane Achab, Stéphan Clémençon, and Charles Tillier. “Weighted Emprirical Risk Minimization: Transfer Learning based on Importance Sampling”. In: ESANN. 2020.
327
+ [65] Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, and Yasaman Khazaeni. “Federated Learning with Matched Averaging”. In: International Conference on Learning Representations. 2020. URL: https://openreview.net/forum?id $\ c =$ BkluqlSFDS.
328
+ [66] Jianyu Wang, Qinghua Liu, Hao Liang, Gauri Joshi, and H Vincent Poor. “Tackling the objective inconsistency problem in heterogeneous federated optimization”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020.
329
+ [67] Valentina Zantedeschi, Aurélien Bellet, and Marc Tommasi. “Fully Decentralized Joint Learning of Personalized Models and Collaboration Graphs”. In: ed. by Silvia Chiappa and Roberto Calandra. Vol. 108. Proceedings of Machine Learning Research. Online: PMLR, Aug. 2020, pp. 864–874. URL: http://proceedings.mlr.press/v108/zantedeschi20a.html.
330
+ [68] Michael Zhang, Karan Sapra, Sanja Fidler, Serena Yeung, and Jose M Alvarez. “Personalized Federated Learning with First Order Model Optimization”. In: International Conference on Learning Representations. 2020.
331
+ [69] Yu Zhang and Dit Yan Yeung. “A Convex Formulation for Learning Task Relationships in Multi-task Learning”. In: Proceedings of the 26th Conference on Uncertainty in Artificial Intelligence, UAI 2010. 2010, p. 733.
332
+ [70] Jiayu Zhou, Jianhui Chen, and Jieping Ye. “Clustered Multi-Task Learning Via Alternating Structure Optimization”. In: Advances in Neural Information Processing Systems. Ed. by J. Shawe-Taylor, R. Zemel, P. Bartlett, F. Pereira, and K. Q. Weinberger. Vol. 24. Curran Associates, Inc., 2011. URL: https://proceedings.neurips.cc/paper/2011/file/ a516a87cfcaef229b342c437fe2b95f7-Paper.pdf.
parse/train/YCqx6zhEzRp/YCqx6zhEzRp_content_list.json ADDED
@@ -0,0 +1,1355 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Federated Multi-Task Learning under a Mixture of Distributions ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 302,
8
+ 154,
9
+ 696,
10
+ 203
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Othmane Marfoq1,3, Giovanni Neglia1, Aurélien Bellet2, Laetitia Kameni3, and Richard Vidal3 ",
17
+ "bbox": [
18
+ 186,
19
+ 250,
20
+ 808,
21
+ 265
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1Inria, Université Côte d’Azur, France, {othmane.marfoq, giovanni.neglia} $@$ inria.fr 2Inria, Université de Lille, France, aurelien.bellet $@$ inria.fr 3Accenture Labs, France, {richard.vidal, laetitia.kameni} $@$ accenture.com ",
28
+ "bbox": [
29
+ 223,
30
+ 276,
31
+ 776,
32
+ 319
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Abstract ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 462,
42
+ 358,
43
+ 535,
44
+ 376
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "The increasing size of data generated by smartphones and IoT devices motivated the development of Federated Learning (FL), a framework for on-device collaborative training of machine learning models. First efforts in FL focused on learning a single global model with good average performance across clients, but the global model may be arbitrarily bad for a given client, due to the inherent heterogeneity of local data distributions. Federated multi-task learning (MTL) approaches can learn personalized models by formulating an opportune penalized optimization problem. The penalization term can capture complex relations among personalized models, but eschews clear statistical assumptions about local data distributions. ",
51
+ "bbox": [
52
+ 233,
53
+ 391,
54
+ 766,
55
+ 515
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "In this work, we propose to study federated MTL under the flexible assumption that each local data distribution is a mixture of unknown underlying distributions. This assumption encompasses most of the existing personalized FL approaches and leads to federated EM-like algorithms for both client-server and fully decentralized settings. Moreover, it provides a principled way to serve personalized models to clients not seen at training time. The algorithms’ convergence is analyzed through a novel federated surrogate optimization framework, which can be of general interest. Experimental results on FL benchmarks show that our approach provides models with higher accuracy and fairness than state-of-the-art methods. ",
62
+ "bbox": [
63
+ 233,
64
+ 517,
65
+ 766,
66
+ 642
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 667,
77
+ 312,
78
+ 685
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Federated Learning (FL) [28] allows a set of clients to collaboratively train models without sharing their local data. Standard FL approaches train a unique model for all clients [47, 32, 38, 29, 48]. However, as discussed in [56], the existence of such a global model suited for all clients is at odds with the statistical heterogeneity observed across different clients [37, 28]. Indeed, clients can have non-iid data and varying preferences. Consider for example a language modeling task: given the sequence of tokens $^ { 6 6 } I$ love eating,” the next word can be arbitrarily different from one client to another. Thus, having personalized models for each client is a necessity in many FL applications. ",
85
+ "bbox": [
86
+ 174,
87
+ 699,
88
+ 825,
89
+ 797
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Previous work on personalized FL. A naive approach for FL personalization consists in learning first a global model and then fine-tuning its parameters at each client via a few iterations of stochastic gradient descent [58]. In this case, the global model plays the role of a meta-model to be used as initialization for few-shot adaptation at each client. In particular, the connection between FL and Model Agnostic Meta Learning (MAML) [27] has been studied in [19, 30, 1] in order to build a more suitable meta-model for local personalization. Unfortunately, these methods can fail to build a model with low generalization error (as exemplified by LEAF synthetic dataset [7, App. 1]). An alternative approach is to jointly train a global model and one local model per client and then let each client build a personalized model by interpolating them [14, 9, 44]. However, if local distributions are far from the average distribution, a relevant global model does not exist and this approach boils down to every client learning only on its own local data. This issue is formally captured by the generalization bound in [14, Theorem 1]. ",
96
+ "bbox": [
97
+ 174,
98
+ 804,
99
+ 825,
100
+ 900
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 92,
110
+ 825,
111
+ 160
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Clustered FL [56, 20, 44] addresses the potential lack of a global model by assuming that clients can be partitioned into several clusters. Clients belonging to the same cluster share the same optimal model, but those models can be arbitrarily different across clusters (see [56, Assumption 2] for a rigorous formulation). During training, clients learn the cluster to which they belong as well as the cluster model. The Clustered FL assumption is also quite limiting, as no knowledge transfer is possible across clusters. In the extreme case where each client has its own optimal local model (recall the example on language modeling), the number of clusters coincides with the number of clients and no federated learning is possible. ",
118
+ "bbox": [
119
+ 173,
120
+ 166,
121
+ 825,
122
+ 279
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "Multi-Task Learning (MTL) has recently emerged as an alternative approach to learn personalized models in the federated setting and allows for more nuanced relations among clients’ models [59, 63, 67, 24, 16]. The authors of [59, 63] were the first to frame FL personalization as a MTL problem. In particular, they defined federated MTL as a penalized optimization problem, where the penalization term models relationships among tasks (clients). The work [59] proposed the MOCHA algorithm for the client-server scenario, while [63, 67] presented decentralized algorithms for the same problem. Unfortunately, these algorithms can only learn simple models (linear models or linear combination of pre-trained models), because of the complex penalization term. Other MTL-based approaches [24, 23, 16, 26, 36] are able to train more general models at the cost of considering simpler penalization terms (e.g., the distance to the average model), thereby losing the capability to capture complex relations among tasks. Moreover, a general limitation of this line of work is that the penalization term is justified qualitatively and not on the basis of clear statistical assumptions on local data distributions. ",
129
+ "bbox": [
130
+ 174,
131
+ 284,
132
+ 825,
133
+ 449
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "More recently, [57] proposed pFedHN. pFedHN feeds local clients’ representations to a global (across clients) hypernetwork, which can output personalized heterogeneous models. Unfortunately, the hypernetwork has a large memory footprint already for small clients’ models (e.g., the hypernetwork in the experiments in [57] has 100 more parameters than the output model). Hence, it is not clear if pFedHN can scale to more complex models. Moreover, pFedHN requires each client to communicate multiple times for the server to learn meaningful representations. Therefore, its performance is likely to deteriorate when clients participate only once (or few times) to training, as it is the case for large-scale cross-device FL training. Furthermore, even once the hypernetwork parameters have been learned, training personalized models for new clients still requires multiple client-server communication rounds. More similar to our approach, FedFOMO [68] lets each client interpolate other clients’ local models with opportune weights learned during training. However, this method lacks both theoretical justifications for such linear combinations and convergence guarantees. Moreover, FedFOMO requires the presence of a powerful server able to 1) store all individual local models and 2) learn for each client—through repeated interactions—which other clients’ local models may be useful. Therefore, FedFOMO is not suited for cross-device FL where the number of clients may be very large (e.g., $\\mathrm { 1 0 ^ { 5 } - 1 0 ^ { 7 } }$ participating clients [28, Table 2]) and a given client may only participate in a single training round. ",
140
+ "bbox": [
141
+ 174,
142
+ 457,
143
+ 825,
144
+ 691
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "Overall, although current personalization approaches can lead to superior empirical performance in comparison to a shared global model or individually trained local models, it is still not well understood whether and under which conditions clients are guaranteed to benefit from collaboration. ",
151
+ "bbox": [
152
+ 174,
153
+ 696,
154
+ 825,
155
+ 739
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "text",
161
+ "text": "Our contributions. In this work, we first show that federated learning is impossible without assumptions on local data distributions. Motivated by this negative result, we formulate a general and flexible assumption: the data distribution of each client is a mixture of $M$ underlying distributions. The proposed formulation has the advantage that each client can benefit from knowledge distilled from all other clients’ datasets (even if any two clients can be arbitrarily different from each other). We also show that this assumption encompasses most of the personalized FL approaches previously proposed in the literature. ",
162
+ "bbox": [
163
+ 174,
164
+ 746,
165
+ 825,
166
+ 843
167
+ ],
168
+ "page_idx": 1
169
+ },
170
+ {
171
+ "type": "text",
172
+ "text": "In our framework, a personalized model is a linear combination of $M$ shared component models. All clients jointly learn the $M$ components, while each client learns its personalized mixture weights. We show that federated EM-like algorithms can be used for training. In particular, we propose FedEM and D-FedEM for the client-server and the fully decentralized settings, respectively, and we prove convergence guarantees. Our approach also provides a principled and efficient way to infer personalized models for clients unseen at training time. Our algorithms can easily be adapted to solve more general problems in a novel framework, which can be seen as a federated extension of the centralized surrogate optimization approach in [43]. To the best of our knowledge, our paper is the first work to propose federated surrogate optimization algorithms with convergence guarantees. ",
173
+ "bbox": [
174
+ 174,
175
+ 849,
176
+ 825,
177
+ 905
178
+ ],
179
+ "page_idx": 1
180
+ },
181
+ {
182
+ "type": "text",
183
+ "text": "",
184
+ "bbox": [
185
+ 174,
186
+ 90,
187
+ 825,
188
+ 161
189
+ ],
190
+ "page_idx": 2
191
+ },
192
+ {
193
+ "type": "text",
194
+ "text": "Through extensive experiments on FL benchmark datasets, we show that our approach generally yields models that 1) are on average more accurate, 2) are fairer across clients, and 3) generalize better to unseen clients than state-of-the-art personalized and non-personalized FL approaches. ",
195
+ "bbox": [
196
+ 174,
197
+ 166,
198
+ 823,
199
+ 209
200
+ ],
201
+ "page_idx": 2
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "Paper outline. The rest of the paper is organized as follows. In Section 2 we provide our impossibility result, introduce our main assumptions, and show that several popular personalization approaches can be obtained as special cases of our framework. Section 3 describes our algorithms, states their convergence results, and presents our general federated surrogate optimization framework. Finally, we provide experimental results in Section 4 before concluding in Section 5. ",
206
+ "bbox": [
207
+ 174,
208
+ 215,
209
+ 825,
210
+ 285
211
+ ],
212
+ "page_idx": 2
213
+ },
214
+ {
215
+ "type": "text",
216
+ "text": "2 Problem Formulation ",
217
+ "text_level": 1,
218
+ "bbox": [
219
+ 174,
220
+ 304,
221
+ 387,
222
+ 321
223
+ ],
224
+ "page_idx": 2
225
+ },
226
+ {
227
+ "type": "text",
228
+ "text": "We consider a (countable) set $\\tau$ of classification (or regression) tasks which represent the set of possible clients. We will use the terms task and client interchangeably. Data at client $t \\in \\mathcal { T }$ is generated according to a local distribution $\\mathcal { D } _ { t }$ over $\\mathcal { X } \\times \\mathcal { V }$ . Local data distributions $\\{ \\mathcal { D } _ { t } \\} _ { t \\in \\mathcal { T } }$ are in general different, thus it is natural to fit a separate model (hypothesis) $h _ { t } \\in { \\mathcal { H } }$ to each data distribution $\\mathcal { D } _ { t }$ . The goal is then to solve (in parallel) the following optimization problems ",
229
+ "bbox": [
230
+ 173,
231
+ 335,
232
+ 825,
233
+ 406
234
+ ],
235
+ "page_idx": 2
236
+ },
237
+ {
238
+ "type": "equation",
239
+ "img_path": "images/e8f811405be16a3a761f678ec9fae1ce2d3573bcdd5d650ee94e3f09584de98a.jpg",
240
+ "text": "$$\n\\forall t \\in { \\mathcal { T } } , \\quad \\operatorname* { m i n i m i z e } _ { h _ { t } \\in { \\mathcal { H } } } { \\mathcal { L } } _ { { \\mathcal { D } } _ { t } } ( h _ { t } ) ,\n$$",
241
+ "text_format": "latex",
242
+ "bbox": [
243
+ 397,
244
+ 412,
245
+ 599,
246
+ 436
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "text",
252
+ "text": "where $h _ { t } : \\mathcal { X } \\mapsto \\Delta ^ { | \\mathcal { V } | }$ $\\Delta ^ { D }$ denoting the unitary simplex of dimension $D$ ), $l : \\Delta ^ { | y | } \\times \\mathcal { Y } \\mapsto \\mathbb { R } ^ { + }$ is a loss function,1 and $\\mathcal { L } _ { \\mathcal { D } _ { t } } ( h _ { t } ) = \\mathbb { E } _ { ( \\mathbf { x } , y ) \\sim \\mathcal { D } _ { t } } ^ { - } \\left[ l ( \\bar { h } _ { t } ( \\mathbf { x } ) , \\bar { y } ) \\right]$ is the true risk of a model $h _ { t }$ under data distribution $\\mathcal { D } _ { t }$ . For $( \\mathbf { x } , y ) \\in \\mathcal { X } \\times \\mathcal { Y }$ , we will denote the joint distribution density associated to $\\mathcal { D } _ { t }$ by $p _ { t } ( \\mathbf { x } , y )$ , and the marginal densities by $p _ { t } ( \\mathbf { x } )$ and $p _ { t } ( y )$ . ",
253
+ "bbox": [
254
+ 173,
255
+ 444,
256
+ 825,
257
+ 505
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "A set of $T$ clients $[ T ] \\triangleq \\{ 1 , 2 , . . . T \\} \\subseteq \\mathcal { T }$ participate to the initial training phase; other clients may e system in a late drawn i.i.d. from age. We, and by $S _ { t } = \\{ s _ { t } ^ { ( i ) } = ( \\mathbf { x } _ { t } ^ { ( i ) } , \\ y _ { t } ^ { ( i ) } ) \\} _ { i = 1 } ^ { n _ { t } }$ the dataset at client $t \\in [ T ]$ $\\mathcal { D } _ { t }$ $\\begin{array} { r } { n = \\sum _ { t = 1 } ^ { T } n _ { t } } \\end{array}$ ",
264
+ "bbox": [
265
+ 173,
266
+ 511,
267
+ 825,
268
+ 563
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "The idea of federated learning is to enable each client to benefit from data samples available at other clients in order to get a better estimation of $\\mathcal { L } _ { \\mathcal { D } _ { t } }$ , and therefore get a model with a better generalization ability to unseen examples. ",
275
+ "bbox": [
276
+ 174,
277
+ 568,
278
+ 825,
279
+ 609
280
+ ],
281
+ "page_idx": 2
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "2.1 An Impossibility Result ",
286
+ "text_level": 1,
287
+ "bbox": [
288
+ 174,
289
+ 626,
290
+ 377,
291
+ 641
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "We start by showing that some assumptions on the local distributions $p _ { t } ( \\mathbf x , y ) , t \\in \\mathcal T$ are needed for federated learning to be possible, i.e., for each client to be able to take advantage of the data at other clients. This holds even if all clients participate to the initial training phase (i.e., $\\mathcal { T } = [ T ] )$ . ",
298
+ "bbox": [
299
+ 173,
300
+ 651,
301
+ 825,
302
+ 694
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "We consider the classic PAC learning framework where we fix a class of models $\\mathcal { H }$ and seek a learning algorithm which is guaranteed, for all possible data distributions over $\\mathcal { X } \\times \\mathcal { V }$ , to return with high probability a model with expected error $\\epsilon$ -close to the best possible error in the class $\\mathcal { H }$ . The worst-case sample complexity then refers to the minimum amount of labeled data required by any algorithm to reach a given $\\epsilon$ -approximation. ",
309
+ "bbox": [
310
+ 174,
311
+ 699,
312
+ 825,
313
+ 770
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "Our impossibility result for FL is based on a reduction to an impossibility result for Semi-Supervised Learning (SSL), which is the problem of learning from a training set with only a small amount of labeled data. The authors of [4] conjectured that, when the quantity of unlabeled data goes to infinity, the worst-case sample complexity of SSL improves over supervised learning at most by a constant factor that only depends on the hypothesis class [4, Conjecture 4]. This conjecture was later proved for the realizable case and hypothesis classes of finite VC dimension [13, Theorem 1], even when the marginal distribution over the domain set $\\mathcal { X }$ is known [21, Theorem 2]. 2 ",
320
+ "bbox": [
321
+ 173,
322
+ 775,
323
+ 825,
324
+ 872
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "In the context of $\\mathrm { F L }$ , if the marginal distributions $p _ { t } \\left( \\mathbf { x } \\right)$ are identical, but the conditional distributions $p _ { t } \\left( y | \\mathbf { x } \\right)$ can be arbitrarily different, then each client $t$ can learn using: 1) its own local labeled dataset, and 2) the other clients’ datasets, but only as unlabeled ones (because their labels have no relevance for $t$ ). The FL problem, with $T$ clients, then reduces to $T$ parallel SSL problems, or more precisely, it is at least as difficult as $T$ parallel SSL problems (because client $t$ has no direct access to the other local datasets but can only learn through the communication exchanges allowed by the FL algorithm). The SSL impossibility result implies that, without any additional assumption on the local distributions $p _ { t } \\left( \\mathbf { x } , y \\right)$ , $t \\in [ T ]$ , any FL algorithm can reduce the sample complexity of client- $\\mathbf { \\nabla } \\cdot t$ ’s problem in (1) only by a constant in comparison to local learning, independently of how many other clients participate to training and how large their datasets’ sizes are. ",
331
+ "bbox": [
332
+ 173,
333
+ 90,
334
+ 826,
335
+ 229
336
+ ],
337
+ "page_idx": 3
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "2.2 Learning under a Mixture Model ",
342
+ "text_level": 1,
343
+ "bbox": [
344
+ 174,
345
+ 244,
346
+ 444,
347
+ 261
348
+ ],
349
+ "page_idx": 3
350
+ },
351
+ {
352
+ "type": "text",
353
+ "text": "Motivated by the above impossibility result, in this work we propose to consider that each local data distribution $\\mathcal { D } _ { t }$ is a mixture of $M$ underlying distributions $\\tilde { \\mathcal { D } } _ { m }$ , $1 \\leq m \\leq M$ , as formalized below. ",
354
+ "bbox": [
355
+ 174,
356
+ 270,
357
+ 825,
358
+ 301
359
+ ],
360
+ "page_idx": 3
361
+ },
362
+ {
363
+ "type": "text",
364
+ "text": "Assumption 1. There exist $M$ underlying (independent) distributions $\\tilde { \\mathcal { D } } _ { m }$ , $1 \\leq m \\leq M$ , such that for $t \\in \\tau$ , $\\mathcal { D } _ { t }$ is mixture of the distributions $\\{ \\tilde { \\mathcal { D } } _ { m } \\} _ { m = 1 } ^ { M }$ with weights $\\pi _ { t } ^ { * } = [ \\pi _ { t 1 } ^ { * } , \\ldots , \\pi _ { t M } ^ { * } ] \\in \\Delta ^ { M }$ , i.e. ",
365
+ "bbox": [
366
+ 173,
367
+ 304,
368
+ 821,
369
+ 337
370
+ ],
371
+ "page_idx": 3
372
+ },
373
+ {
374
+ "type": "equation",
375
+ "img_path": "images/cc3c420a261ad6c50863639630a2d5e8c2608641518f304bec26ecedcf026ae4.jpg",
376
+ "text": "$$\nz _ { t } \\sim \\mathcal { M } ( \\pi _ { t } ^ { * } ) , \\quad ( ( \\mathbf { x } _ { t } , y _ { t } ) | z _ { t } = m ) \\sim \\tilde { \\mathcal { D } } _ { m } , \\quad \\forall t \\in \\mathcal { T } ,\n$$",
377
+ "text_format": "latex",
378
+ "bbox": [
379
+ 321,
380
+ 344,
381
+ 673,
382
+ 364
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "where $\\mathcal { M } ( \\pi )$ is a multinomial (categorical) distribution with parameters $\\pi$ . ",
389
+ "bbox": [
390
+ 179,
391
+ 364,
392
+ 671,
393
+ 380
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "text",
399
+ "text": "Similarly to what was done above, we use $p _ { m } ( \\mathbf { x } , y )$ , $p _ { m } ( \\mathbf { x } )$ , and $p _ { m } ( y )$ to denote the probability distribution densities associated to $\\tilde { \\mathcal { D } } _ { m }$ . We further assume that marginals over $\\mathcal { X }$ are identical. ",
400
+ "bbox": [
401
+ 173,
402
+ 388,
403
+ 823,
404
+ 420
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "Assumption 2. For all $m \\in [ M ]$ , we have $p _ { m } ( \\mathbf { x } ) = p ( \\mathbf { x } )$ . ",
411
+ "bbox": [
412
+ 173,
413
+ 421,
414
+ 557,
415
+ 438
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "Assumption 2 is not strictly required for our analysis to hold, but, in the most general case, solving Problem (1) requires to learn generative models. Instead, under Assumption 2 we can restrict our attention to discriminative models (e.g., neural networks). 3 More specifically, we consider a parameterized set of models $\\tilde { \\mathcal { H } }$ with the following properties. ",
422
+ "bbox": [
423
+ 173,
424
+ 445,
425
+ 825,
426
+ 503
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "Assumption 3. $\\tilde { \\mathcal { H } } = \\{ h _ { \\theta } \\} _ { \\theta \\in \\mathbb { R } ^ { d } }$ is a set of hypotheses parameterized by $\\theta \\in \\mathbb { R } ^ { d }$ , whose convex hull is in $\\mathcal { H }$ . For each distribution $\\tilde { \\mathcal { D } } _ { m }$ with $m \\in [ M ]$ , there exists a hypothesis $h _ { \\theta _ { m } ^ { * } }$ , such that ",
433
+ "bbox": [
434
+ 173,
435
+ 507,
436
+ 825,
437
+ 540
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "equation",
443
+ "img_path": "images/606bc6112d74a803717a3cbc8e9e7bab02855d4a3b6f5e928b483d8a06d9e441.jpg",
444
+ "text": "$$\n\\begin{array} { r } { l \\left( h _ { \\theta _ { m } ^ { * } } ( \\mathbf { x } ) , y \\right) = - \\log p _ { m } ( y | \\mathbf { x } ) + c , } \\end{array}\n$$",
445
+ "text_format": "latex",
446
+ "bbox": [
447
+ 377,
448
+ 542,
449
+ 619,
450
+ 563
451
+ ],
452
+ "page_idx": 3
453
+ },
454
+ {
455
+ "type": "text",
456
+ "text": "where $c \\in \\mathbb { R }$ is a normalization constant. The function $l ( \\cdot , \\cdot )$ is then the log-loss associated to $p _ { m } ( y | \\mathbf { x } )$ . ",
457
+ "bbox": [
458
+ 173,
459
+ 565,
460
+ 825,
461
+ 594
462
+ ],
463
+ "page_idx": 3
464
+ },
465
+ {
466
+ "type": "text",
467
+ "text": "We refer to the hypotheses in $\\tilde { \\mathcal { H } }$ as component models or simply components. We denote by $\\Theta ^ { * } \\in \\mathbb { R } ^ { M \\times d }$ the matrix whose $m$ -th row is $\\theta _ { m } ^ { * }$ , and by $\\Pi ^ { * } \\in \\Delta ^ { T \\times } { \\bar { M } }$ the matrix whose $t$ -th row is $\\pi _ { t } ^ { * } \\in \\Delta ^ { M }$ . Similarly, we will use $\\Theta$ and $\\Pi$ to denote arbitrary parameters. ",
468
+ "bbox": [
469
+ 174,
470
+ 604,
471
+ 823,
472
+ 647
473
+ ],
474
+ "page_idx": 3
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "Remark 1. Assumptions 2–3 are mainly technical and are not required for our approach to work in practice. Experiments in Section 4 show that our algorithms perform well on standard $F L$ benchmark datasets, for which these assumptions do not hold in general. ",
479
+ "bbox": [
480
+ 173,
481
+ 650,
482
+ 825,
483
+ 693
484
+ ],
485
+ "page_idx": 3
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "Note that, under the above assumptions, $p _ { t } ( \\mathbf { x } , y )$ depends on $\\Theta ^ { * }$ and $\\pi _ { t } ^ { * }$ . Moreover, we can prove (see App. A) that the optimal local model $h _ { t } ^ { * } \\in \\mathcal { H }$ for client $t$ is a weighted average of models in $\\tilde { \\mathcal { H } }$ . Proposition 2.1. Let $l ( \\cdot , \\cdot )$ be the mean squared error loss, the logistic loss or the cross-entropy loss, and $\\breve { \\Theta }$ and $\\breve { \\Pi }$ be a solution of the following optimization problem: ",
490
+ "bbox": [
491
+ 171,
492
+ 700,
493
+ 826,
494
+ 766
495
+ ],
496
+ "page_idx": 3
497
+ },
498
+ {
499
+ "type": "equation",
500
+ "img_path": "images/30e495234e39211e76c83e167f42f959a934bec2385d2488f4811926f025f7ef.jpg",
501
+ "text": "$$\n\\underset { \\Theta , \\Pi } { \\mathrm { m i n i m i z e } } \\underset { t \\sim D _ { T } } { \\mathbb { E } } \\underset { ( \\mathbf { x } , y ) \\sim D _ { t } } { \\mathbb { E } } \\left[ - \\log p _ { t } ( \\mathbf { x } , y | \\Theta , \\pi _ { t } ) \\right] ,\n$$",
502
+ "text_format": "latex",
503
+ "bbox": [
504
+ 339,
505
+ 768,
506
+ 655,
507
+ 794
508
+ ],
509
+ "page_idx": 3
510
+ },
511
+ {
512
+ "type": "text",
513
+ "text": "where $D _ { \\mathcal { T } }$ is any distribution with support $\\tau$ . Under Assumptions $^ { l }$ , 2, and $^ 3$ , the predictors ",
514
+ "bbox": [
515
+ 173,
516
+ 796,
517
+ 777,
518
+ 811
519
+ ],
520
+ "page_idx": 3
521
+ },
522
+ {
523
+ "type": "equation",
524
+ "img_path": "images/1e8170c696c7f3bbf8f288b25c6e3947ee1bc6c4128b596d68dfc2ef24f3e804.jpg",
525
+ "text": "$$\nh _ { t } ^ { * } = \\sum _ { m = 1 } ^ { M } \\breve { \\pi } _ { t m } h _ { { \\breve { \\theta } } _ { m } } \\left( \\mathbf { x } \\right) , \\quad \\forall t \\in \\mathcal { T }\n$$",
526
+ "text_format": "latex",
527
+ "bbox": [
528
+ 385,
529
+ 814,
530
+ 614,
531
+ 857
532
+ ],
533
+ "page_idx": 3
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "minimize $\\mathbb { E } _ { ( \\mathbf { x } , y ) \\sim \\mathcal { D } _ { t } } \\left[ l ( h _ { t } ( \\mathbf { x } ) , y ) \\right]$ and thus solve Problem (1). ",
538
+ "bbox": [
539
+ 173,
540
+ 859,
541
+ 571,
542
+ 877
543
+ ],
544
+ "page_idx": 3
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "Proposition 2.1 suggests the following approach to solve Problem (1). First, we estimate the parameters $\\breve { \\Theta }$ and $\\breve { \\pi } _ { t }$ , $1 \\leq t \\leq T$ , by minimizing the empirical version of Problem (4) on the training data, i.e., minimizing: ",
549
+ "bbox": [
550
+ 174,
551
+ 90,
552
+ 826,
553
+ 136
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "equation",
559
+ "img_path": "images/36625e7bc57423255b4176cfb6f6fa9a9720fbc6ea0c9daacdaa6acaafb5220b.jpg",
560
+ "text": "$$\nf ( \\Theta , \\Pi ) \\triangleq - \\frac { \\log p ( \\mathcal { S } _ { 1 : T } | \\Theta , \\Pi ) } { n } \\triangleq - \\frac { 1 } { n } \\sum _ { t = 1 } ^ { T } \\sum _ { i = 1 } ^ { n _ { t } } \\log p ( s _ { t } ^ { ( i ) } | \\Theta , \\pi _ { t } ) ,\n$$",
561
+ "text_format": "latex",
562
+ "bbox": [
563
+ 285,
564
+ 140,
565
+ 710,
566
+ 184
567
+ ],
568
+ "page_idx": 4
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "which is the (negative) likelihood of the probabilistic model (2). 4 Second, we use (5) to get the client predictor for the $T$ clients present at training time. Finally, to deal with a client $t _ { \\mathrm { n e w } } \\notin [ T ]$ not seen during training, we keep the mixture component models fixed and simply choose the weights $\\pi _ { t _ { \\mathrm { n e w } } }$ that maximize the likelihood of the client data and get the client predictor via (5). ",
573
+ "bbox": [
574
+ 173,
575
+ 189,
576
+ 825,
577
+ 246
578
+ ],
579
+ "page_idx": 4
580
+ },
581
+ {
582
+ "type": "text",
583
+ "text": "2.3 Generalizing Existing Frameworks ",
584
+ "text_level": 1,
585
+ "bbox": [
586
+ 174,
587
+ 261,
588
+ 457,
589
+ 276
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "Before presenting our federated learning algorithms in Section 3, we show that the generative model in Assumption 1 extends some popular multi-task/personalized FL formulations in the literature. ",
596
+ "bbox": [
597
+ 174,
598
+ 286,
599
+ 823,
600
+ 314
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "Clustered Federated Learning [56, 20] assumes that each client belongs to one among $C$ clusters and proposes that all clients in the same cluster learn the same model. Our framework recovers this scenario considering $M = C$ and $\\pi _ { t c } ^ { * } = 1$ if task (client) $t$ is in cluster $c$ and $\\pi _ { t c } ^ { * } = 0$ otherwise. ",
607
+ "bbox": [
608
+ 173,
609
+ 320,
610
+ 825,
611
+ 363
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "Personalization via model interpolation [44, 14] relies on learning a global model $h _ { \\mathrm { g l o b } }$ and $T$ local models $h _ { \\mathrm { l o c } , t }$ , and then using at each client the linear interpolation $h _ { t } = \\alpha _ { t } h _ { \\mathrm { l o c } , t } + ( 1 - \\alpha _ { t } ) h _ { \\mathrm { g l o b } }$ . Each client model can thus be seen as a linear combination of $M = T + 1$ models $h _ { m } = h _ { { \\mathrm { l o c } } , m }$ for $m \\in [ T ]$ and $h _ { 0 } = h _ { \\mathrm { g l o b } }$ with specific weights $\\pi _ { t t } ^ { * } = \\alpha _ { t }$ , $\\pi _ { t 0 } ^ { * } = 1 - \\alpha _ { t }$ , and $\\pi _ { t t ^ { \\prime } } ^ { * } = 0$ for $t ^ { \\prime } \\in [ T ] \\backslash \\{ t \\}$ . ",
618
+ "bbox": [
619
+ 173,
620
+ 368,
621
+ 826,
622
+ 426
623
+ ],
624
+ "page_idx": 4
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "Federated MTL via task relationships. The authors of [59] proposed to learn personalized models by solving the following optimization problem inspired from classic MTL formulations: ",
629
+ "bbox": [
630
+ 173,
631
+ 430,
632
+ 823,
633
+ 459
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "equation",
639
+ "img_path": "images/436643fd2c8b17156e10849bfa53423a742a55fdfafe0ae42218567f1cd852df.jpg",
640
+ "text": "$$\n\\operatorname* { m i n } _ { W , \\Omega } \\ \\sum _ { t = 1 } ^ { T } \\sum _ { i = 1 } ^ { n _ { t } } l ( h _ { w _ { t } } ( \\mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } ) + \\lambda \\mathrm { t r } \\left( W \\Omega W ^ { \\intercal } \\right) ,\n$$",
641
+ "text_format": "latex",
642
+ "bbox": [
643
+ 333,
644
+ 463,
645
+ 661,
646
+ 507
647
+ ],
648
+ "page_idx": 4
649
+ },
650
+ {
651
+ "type": "text",
652
+ "text": "where $h _ { w _ { t } }$ are linear predictors parameterized by the rows of matrix $W$ and the matrix $\\Omega$ captures task relationships (similarity). This formulation is motivated by the alternating structure optimization method (ASO) [2, 70]. In App. B, we show that, when predictors $h _ { \\theta _ { m } ^ { * } }$ are linear and have bounded norm, our framework leads to the same ASO formulation that motivated Problem (7). Problem (7) can also be justified by probabilistic priors [69] or graphical models [35] (see [59, App. B.1]). Similar considerations hold for our framework (see again App. B). Reference [67] extends the approach in [59] by letting each client learn a personalized model as a weighted combination of $M$ known hypotheses. Our approach is more general and flexible as clients learn both the weights and the hypotheses. Finally, other personalized FL algorithms, like pFedMe [16], FedU [17], and those studied in [24] and in [23], can be framed as special cases of formulation (7). Their assumptions can thus also be seen as a particular case of our framework. ",
653
+ "bbox": [
654
+ 173,
655
+ 511,
656
+ 825,
657
+ 662
658
+ ],
659
+ "page_idx": 4
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "3 Federated Expectation-Maximization ",
664
+ "text_level": 1,
665
+ "bbox": [
666
+ 173,
667
+ 681,
668
+ 516,
669
+ 699
670
+ ],
671
+ "page_idx": 4
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "3.1 Centralized Expectation-Maximization ",
676
+ "text_level": 1,
677
+ "bbox": [
678
+ 176,
679
+ 712,
680
+ 482,
681
+ 728
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "Our goal is to estimate the optimal components’ parameters $\\Theta ^ { * } \\ = \\ ( \\theta _ { m } ^ { * } ) _ { 1 \\leq m \\leq M }$ and mixture weights $\\Pi ^ { * } = ( \\pi _ { t } ^ { * } ) _ { 1 \\leq t \\leq T }$ by minimizing the negative log-likelihood $f ( \\Theta , \\bar { \\Pi } )$ in (6). A natural approach to solve such non-convex problems is the Expectation-Maximization algorithm (EM), which alternates between two steps. Expectation steps update the distribution (denoted by $q _ { t }$ ) over the latent variables $\\boldsymbol { z } _ { t } ^ { ( i ) }$ for every data point $s _ { t } ^ { ( i ) } = ( \\mathbf { x } _ { t } ^ { ( i ) } , y _ { t } ^ { ( i ) } )$ given the current estimates of the parameters $\\{ \\Theta , \\Pi \\}$ . Maximization steps update the parameters $\\{ \\Theta , \\Pi \\}$ by maximizing the expected log-likelihood, where the expectation is computed according to the current latent variables’ distributions. ",
688
+ "bbox": [
689
+ 173,
690
+ 737,
691
+ 826,
692
+ 854
693
+ ],
694
+ "page_idx": 4
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "The following proposition provides the EM updates for our problem (proof in App. C). ",
699
+ "bbox": [
700
+ 174,
701
+ 861,
702
+ 741,
703
+ 876
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "Proposition 3.1. Under Assumptions $I$ and 2, at the $k$ -th iteration the EM algorithm updates parameter estimates through the following steps: ",
710
+ "bbox": [
711
+ 173,
712
+ 90,
713
+ 823,
714
+ 119
715
+ ],
716
+ "page_idx": 5
717
+ },
718
+ {
719
+ "type": "equation",
720
+ "img_path": "images/4c6ce84cc6741df84535fa5b7ae5ad6b57edbbb9b9fdfabcbce3634fef444ce0.jpg",
721
+ "text": "$$\n\\begin{array} { r l r } { { q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) \\propto \\pi _ { t m } ^ { k } \\cdot \\exp ( - l ( h _ { \\theta _ { m } ^ { k } } ( \\mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } ) ) , } } & { t \\in [ T ] , m \\in [ M ] , i \\in [ n _ { t } ] } \\\\ & { } & \\\\ & { \\pi _ { t m } ^ { k + 1 } = \\frac { \\sum _ { i = 1 } ^ { n _ { t } } q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) } { n _ { t } } , } & { t \\in [ T ] , m \\in [ M ] } \\\\ & { } & \\\\ & { \\theta _ { m } ^ { k + 1 } \\in \\arg \\operatorname* { m i n } _ { \\theta \\in \\mathbb { R } ^ { d } } \\sum _ { t = 1 } ^ { T } \\sum _ { i = 1 } ^ { n _ { t } } q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } = m ) l \\big ( h _ { \\theta } ( \\mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } \\big ) , } & { m \\in [ M ] } \\end{array}\n$$",
722
+ "text_format": "latex",
723
+ "bbox": [
724
+ 173,
725
+ 119,
726
+ 821,
727
+ 236
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "The EM updates in Proposition 3.1 have a natural interpretation. In the $\\mathrm { E }$ -step, given current component models $\\Theta ^ { k }$ and mixture weights $\\Pi ^ { k }$ , (8) updates the a-posteriori probability $q _ { t } ^ { k + 1 } ( z _ { t } ^ { ( i ) } =$ $m$ ) that point $s _ { t } ^ { ( i ) }$ of client $t$ was drawn from the $m$ -th distribution based on the current mixture weight $\\pi _ { t m } ^ { k }$ and on how well the corresponding component $\\theta _ { m } ^ { k }$ classifies $s _ { t } ^ { ( i ) }$ . The M-step consists of two updates under fixed probabilities $q _ { t } ^ { k + 1 }$ . First, (9) updates the mixture weights $\\pi _ { t } ^ { k + 1 }$ to reflect the prominence of each distribution $\\tilde { \\mathcal { D } } _ { m }$ in $S _ { t }$ as given by $q _ { t } ^ { k + 1 }$ . Finally, (10) updates the components’ parameters $\\Theta ^ { k + 1 }$ by solving $M$ independent, weighted empirical risk minimization problems with weights given by $q _ { t } ^ { k + 1 }$ . These weights aim to construct an unbiased estimate of the true risk over each underlying distribution $\\tilde { \\mathcal { D } } _ { m }$ using only points sampled from the client mixtures, similarly to importance sampling strategies used to learn from data with sample selection bias [61, 11, 10, 64]. ",
734
+ "bbox": [
735
+ 173,
736
+ 241,
737
+ 826,
738
+ 401
739
+ ],
740
+ "page_idx": 5
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "3.2 Client-Server Algorithm ",
745
+ "text_level": 1,
746
+ "bbox": [
747
+ 174,
748
+ 416,
749
+ 383,
750
+ 431
751
+ ],
752
+ "page_idx": 5
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Federated learning aims to train machine learning models directly on the clients, without exchanging raw data, and thus we should run EM while assuming that only client $t$ has access to dataset $S _ { t }$ . The E-step (8) and the $\\Pi$ update (9) in the M-step operate separately on each local dataset $S _ { t }$ and can thus be performed locally at each client $t$ . On the contrary, the $\\Theta$ update (10) requires interaction with other clients, since the computation spans all data samples $\\mathcal { S } _ { 1 : T }$ . ",
757
+ "bbox": [
758
+ 174,
759
+ 441,
760
+ 825,
761
+ 512
762
+ ],
763
+ "page_idx": 5
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "In this section, we consider a client-server setting, in which each client $t$ can communicate only with a centralized server (the orchestrator) and wants to learn components’ parameters $\\Theta ^ { * } = \\left( \\theta _ { m } ^ { * } \\right) _ { 1 \\leq m \\leq M }$ and its own mixture weights $\\pi _ { t } ^ { * }$ . ",
768
+ "bbox": [
769
+ 174,
770
+ 517,
771
+ 825,
772
+ 561
773
+ ],
774
+ "page_idx": 5
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "We propose the algorithm FedEM for Federated Expectation-Maximization (Alg. 1). FedEM proceeds through communication rounds similarly to most FL algorithms including FedAvg [47], FedProx [38], SCAFFOLD [29], and pFedMe [16]. At each round, 1) the central server broadcasts the (shared) component models to the clients, 2) each client locally updates components and its personalized mixture weights, and 3) sends the updated components back to the server, 4) the server aggregates the updates. The local update performed at client $t$ consists in performing the steps in (8) and (9) and updating the local estimates of $\\theta _ { m }$ through a solver which approximates the exact minimization in (10) using only the local dataset $S _ { t }$ (see line 7). FedEM can operate with different local solvers—even different across clients—as far as they satisfy some local improvement guarantees (see the discussion in App. H). In what follows, we restrict our focus on the practically important case where the local solver performs multiple stochastic gradient descent updates (local SGD [60]). Under the following standard assumptions (see e.g., [66]), FedEM converges to a stationary point of $f$ . Below, we use the more compact notation $l ( \\boldsymbol { \\theta } ; s _ { t } ^ { ( i ) } ) \\triangleq l ( h _ { \\boldsymbol { \\theta } } ( \\mathbf { x } _ { t } ^ { ( i ) } ) , y _ { t } ^ { ( i ) } )$ . ",
779
+ "bbox": [
780
+ 173,
781
+ 568,
782
+ 826,
783
+ 751
784
+ ],
785
+ "page_idx": 5
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "Assumption 4. The negative log-likelihood $f$ is bounded below by $f ^ { * } \\in \\mathbb { R }$ . ",
790
+ "bbox": [
791
+ 176,
792
+ 752,
793
+ 669,
794
+ 768
795
+ ],
796
+ "page_idx": 5
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "Assumption 5. (Smoothness) For all $t \\in [ T ]$ and $i \\in [ n _ { t } ]$ , the function $\\theta \\mapsto l ( \\theta ; s _ { t } ^ { ( i ) } )$ is $L$ -smooth and twice continuously differentiable. ",
801
+ "bbox": [
802
+ 176,
803
+ 772,
804
+ 825,
805
+ 801
806
+ ],
807
+ "page_idx": 5
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "Assumption 6. (Unbiased gradients and bounded variance) Each client $t \\in [ T ]$ can sample a random batch $\\xi$ from $S _ { t }$ and compute an unbiased estimator $g _ { t } ( \\theta , \\xi )$ of the local gradient with bounded variance, i.e., $\\begin{array} { r } { \\mathbb { E } _ { \\xi } [ g _ { t } ( \\theta , \\xi ) ] = \\frac { 1 } { n _ { t } } \\sum _ { i = 1 } ^ { n _ { t } } \\nabla _ { \\theta } l ( \\theta ; s _ { t } ^ { ( i ) } ) } \\end{array}$ and $\\begin{array} { r } { \\mathbb { E } _ { \\xi } \\| g _ { t } ( \\theta , \\xi ) - \\frac { 1 } { n _ { t } } \\sum _ { i = 1 } ^ { n _ { t } } \\nabla _ { \\theta } l ( \\theta ; s _ { t } ^ { ( i ) } ) \\| ^ { 2 } \\leq \\sigma ^ { 2 } } \\end{array}$ ",
812
+ "bbox": [
813
+ 173,
814
+ 804,
815
+ 826,
816
+ 853
817
+ ],
818
+ "page_idx": 5
819
+ },
820
+ {
821
+ "type": "text",
822
+ "text": "Assumption 7. (Bounded dissimilarity) There exist $\\beta$ and $G$ such that for any set of weights $\\alpha \\in \\Delta ^ { M }$ : ",
823
+ "bbox": [
824
+ 173,
825
+ 856,
826
+ 826,
827
+ 871
828
+ ],
829
+ "page_idx": 5
830
+ },
831
+ {
832
+ "type": "equation",
833
+ "img_path": "images/2dd1297d9e05485a9181ef09509836cf750b7ad27333413507a0f0233de90ec7.jpg",
834
+ "text": "$$\n\\sum _ { t = 1 } ^ { T } \\frac { n _ { t } } { n } \\Big \\| \\frac { 1 } { n _ { t } } \\sum _ { i = 1 } ^ { n _ { t } } \\sum _ { m = 1 } ^ { M } \\alpha _ { m } \\cdot l ( \\theta ; s _ { t } ^ { ( i ) } ) \\Big \\| ^ { 2 } \\leq G ^ { 2 } + \\beta ^ { 2 } \\Big \\| \\frac { 1 } { n } \\sum _ { t = 1 } ^ { T } \\sum _ { i = 1 } ^ { n _ { t } } \\sum _ { m = 1 } ^ { M } \\alpha _ { m } \\cdot l ( \\theta ; s _ { t } ^ { ( i ) } ) \\Big \\| ^ { 2 } .\n$$",
835
+ "text_format": "latex",
836
+ "bbox": [
837
+ 223,
838
+ 872,
839
+ 769,
840
+ 916
841
+ ],
842
+ "page_idx": 5
843
+ },
844
+ {
845
+ "type": "text",
846
+ "text": "Input : Data $\\overline { { S _ { 1 : T } } }$ ; number of mixture distributions $M$ ; number of communication rounds $K$ \nOutput : $\\theta _ { m } ^ { K }$ , $m \\in [ M ]$ \n1 for iterations $k = 1 , \\ldots , K$ do \n2 server broadcasts $\\theta _ { m } ^ { k - 1 }$ , $1 \\leq m \\leq M$ , to the $T$ clients; \n3 for tasks $t = 1 , \\dots , T$ in parallel over $T$ clients do \n4 for component $m = 1 , \\ldots , M$ do \n5 update $q _ { t } ^ { k } ( z _ { t } ^ { ( i ) } = m )$ as in (8), $\\forall i \\in \\left\\{ 1 , \\ldots , n _ { t } \\right\\}$ ; \n6 update $\\pi _ { t m } ^ { k }$ as in (9); \n7 $\\theta _ { m , t } ^ { k } \\gets \\mathtt { L o c a l S o l v e r } ( m , \\theta _ { m } ^ { k - 1 } , q _ { t } ^ { k } , S _ { t } )$ ; \n8 client $t$ sends $\\theta _ { m , t } ^ { k }$ , $1 \\leq m \\leq M$ , to the server; \n9 for component $m = 1 , \\ldots , M$ do \n10 $\\begin{array} { r } { \\theta _ { m } ^ { k } \\sum _ { t = 1 } ^ { T } \\frac { n _ { t } } { n } \\times \\theta _ { m , t } ^ { k } } \\end{array}$ ; ",
847
+ "bbox": [
848
+ 158,
849
+ 113,
850
+ 802,
851
+ 300
852
+ ],
853
+ "page_idx": 6
854
+ },
855
+ {
856
+ "type": "text",
857
+ "text": "Assumption 7 limits the level of dissimilarity of the different tasks, similarly to what is done in [66]. ",
858
+ "bbox": [
859
+ 176,
860
+ 330,
861
+ 825,
862
+ 347
863
+ ],
864
+ "page_idx": 6
865
+ },
866
+ {
867
+ "type": "text",
868
+ "text": "Theorem 3.2. Under Assumptions $^ { 1 - 7 , }$ , when clients use $S G D$ as local solver with learning rate $\\begin{array} { r } { \\eta = \\frac { a _ { 0 } } { \\sqrt { K } } } \\end{array}$ , after a large enough number of communication rounds $K$ , FedEM’s iterates satisfy: ",
869
+ "bbox": [
870
+ 171,
871
+ 351,
872
+ 823,
873
+ 381
874
+ ],
875
+ "page_idx": 6
876
+ },
877
+ {
878
+ "type": "equation",
879
+ "img_path": "images/7f514bc1dbdf3766409b31226919d487757d074a954186aba7649da1cac75f41.jpg",
880
+ "text": "$$\n\\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\mathbb { E } \\left\\| \\nabla _ { \\Theta } f \\left( \\Theta ^ { k } , \\Pi ^ { k } \\right) \\right\\| _ { F } ^ { 2 } \\leq \\mathcal { O } \\bigg ( \\frac { 1 } { \\sqrt { K } } \\bigg ) , \\qquad \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\Delta _ { \\Pi } f ( \\Theta ^ { k } , \\Pi ^ { k } ) \\leq \\mathcal { O } \\bigg ( \\frac { 1 } { K ^ { 3 / 4 } } \\bigg ) ,\n$$",
881
+ "text_format": "latex",
882
+ "bbox": [
883
+ 196,
884
+ 391,
885
+ 772,
886
+ 435
887
+ ],
888
+ "page_idx": 6
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "where the expectation is over the random batches samples, and $\\Delta _ { \\Pi } f ( \\Theta ^ { k } , \\Pi ^ { k } ) \\triangleq f \\left( \\Theta ^ { k } , \\Pi ^ { k } \\right) -$ $f \\left( \\Theta ^ { k } , \\Pi ^ { k + 1 } \\right) \\ge 0$ . ",
893
+ "bbox": [
894
+ 174,
895
+ 444,
896
+ 825,
897
+ 477
898
+ ],
899
+ "page_idx": 6
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "Theorem 3.2 (proof in App. G.1) expresses the convergence of both sets of parameters $\\Theta$ and $\\Pi$ ) to a stationary point of $f$ . Indeed, the gradient of $f$ with respect to $\\Theta$ becomes arbitrarily small (left inequality in (11)) and the update in Eq. (9) leads to arbitrarily small improvements of $f$ (right inequality in (11)). ",
904
+ "bbox": [
905
+ 174,
906
+ 487,
907
+ 825,
908
+ 544
909
+ ],
910
+ "page_idx": 6
911
+ },
912
+ {
913
+ "type": "text",
914
+ "text": "We conclude this section observing that FedEM allows an unseen client, i.e., a client $t _ { \\mathrm { n e w } } \\notin [ T ]$ arriving after the distributed training procedure, to learn its personalized model. The client simply retrieves the learned components’ parameters $\\Theta ^ { K }$ and computes its personalized weights $\\pi _ { t _ { \\mathrm { n e w } } }$ (starting for example from a uniform initialization) through one $\\mathrm { E }$ -step (8) and the first update in the M-step (9). ",
915
+ "bbox": [
916
+ 173,
917
+ 549,
918
+ 825,
919
+ 606
920
+ ],
921
+ "page_idx": 6
922
+ },
923
+ {
924
+ "type": "text",
925
+ "text": "3.3 Fully Decentralized Algorithm ",
926
+ "text_level": 1,
927
+ "bbox": [
928
+ 176,
929
+ 622,
930
+ 426,
931
+ 638
932
+ ],
933
+ "page_idx": 6
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "In some cases, clients may want to communicate directly in a peer-to-peer fashion instead of relying on the central server mediation [see 28, Section 2.1]. In fact, fully decentralized schemes may provide stronger privacy guarantees [12] and speed-up training as they better use communication resources [41, 46] and reduce the effect of stragglers [50]. For these reasons, they have attracted significant interest recently in the machine learning community [41, 63, 42, 62, 3, 51, 46, 31]. We refer to [49] for a comprehensive survey of fully decentralized optimization (also known as consensus-based optimization), and to [31] for a unified theoretical analysis of decentralized SGD. ",
938
+ "bbox": [
939
+ 174,
940
+ 648,
941
+ 825,
942
+ 746
943
+ ],
944
+ "page_idx": 6
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "We propose D-FedEM (Alg. 4 in App. D.2), a fully decentralized version of our federated expectation maximization algorithm. As in FedEM, the M-step for $\\Theta$ update is replaced by an approximate maximization step consisting of local updates. The global aggregation step in FedEM (Alg. 1, line 10) is replaced by a partial aggregation step, where each client computes a weighted average of its current components and those of a subset of clients (its neighborhood), which may vary over time. The convergence of decentralized optimization schemes requires certain assumptions to guarantee that each client can influence the estimates of other clients over time. In our paper, we consider the general assumption in [31, Assumption 4] (restated as Assumption 8 in App. E for completeness). For instance, this assumption is satisfied if the graph of clients’ communications is strongly connected every $\\tau$ rounds. ",
949
+ "bbox": [
950
+ 174,
951
+ 752,
952
+ 825,
953
+ 890
954
+ ],
955
+ "page_idx": 6
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "D-FedEM converges to a stationary point of $f$ (formal statement in App. E and proof in App. G.2). ",
960
+ "bbox": [
961
+ 169,
962
+ 896,
963
+ 813,
964
+ 912
965
+ ],
966
+ "page_idx": 6
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "Theorem 3.3 (Informal). In the same setting of Theorem 3.2 and under the additional Assumption 8, D-FedEM’s individual estimates $( \\Theta _ { t } ^ { k } ) _ { 1 \\leq t \\leq T }$ converge to a common value $\\bar { \\Theta } ^ { k }$ . Moreover, $\\bar { \\Theta } ^ { k }$ and $\\Pi ^ { k }$ converge to a stationary point of $f$ . ",
971
+ "bbox": [
972
+ 174,
973
+ 90,
974
+ 823,
975
+ 133
976
+ ],
977
+ "page_idx": 7
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "3.4 Federated Surrogate Optimization ",
982
+ "text_level": 1,
983
+ "bbox": [
984
+ 176,
985
+ 150,
986
+ 452,
987
+ 165
988
+ ],
989
+ "page_idx": 7
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "FedEM and D-FedEM can be seen as particular instances of a more general framework—of potential interest for other applications—that we call federated surrogate optimization. ",
994
+ "bbox": [
995
+ 173,
996
+ 176,
997
+ 823,
998
+ 204
999
+ ],
1000
+ "page_idx": 7
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "The standard majorization-minimization principle [34] iteratively minimizes, at each iteration $k$ , a surrogate function $g ^ { k }$ majorizing the objective function $f$ . The work [43] studied this approach when each $\\mathbf { \\bar { \\boldsymbol { g } } ^ { k } }$ is a first-order surrogate of $f$ (the formal definition from [43] is given in App. F.1). ",
1005
+ "bbox": [
1006
+ 174,
1007
+ 210,
1008
+ 825,
1009
+ 253
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "Our novel federated surrogate optimization framework considers that the objective function $f$ is a weighted sum $\\begin{array} { r } { f = \\sum _ { t = 1 } ^ { T } \\hat { \\omega } _ { t } f _ { t } } \\end{array}$ of $T$ functions and iteratively minimizes $f$ in a distributed fashion using partial first-order surrogates $g _ { t } ^ { k }$ for each function $f _ { t }$ . “Partial” refers to the fact that $g _ { t } ^ { k }$ is not required to be a first order surrogate wrt the whole set of parameters, as defined formally below. ",
1016
+ "bbox": [
1017
+ 174,
1018
+ 258,
1019
+ 825,
1020
+ 319
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "text",
1026
+ "text": "Definition 1 (Partial first-order surrogate). A function $g ( \\mathbf { u } , \\mathbf { v } ) : \\mathbb { R } ^ { d _ { u } } \\times \\mathcal { V } \\mathbb { R }$ is a partial-first-order surrogate of $f ( { \\bf u } , { \\bf v } )$ wrt u near $( { \\bf u } _ { 0 } , { \\bf v } _ { 0 } ) \\in R ^ { d _ { u } } \\times \\mathcal { V }$ when the following conditions are satisfied: ",
1027
+ "bbox": [
1028
+ 173,
1029
+ 323,
1030
+ 823,
1031
+ 354
1032
+ ],
1033
+ "page_idx": 7
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "1. $g ( \\mathbf { u } , \\mathbf { v } ) \\geq f ( \\mathbf { u } , \\mathbf { v } ) .$ for all $\\mathbf { u } \\in \\mathbb { R } ^ { d _ { u } }$ and $\\mathbf { v } \\in \\mathcal { V }$ ; \n2. $r ( \\mathbf { u } , \\mathbf { v } ) \\triangleq g ( \\mathbf { u } , \\mathbf { v } ) - f ( \\mathbf { u } , \\mathbf { v } )$ is differentiable and $L$ -smooth with respect to u. Moreover, we have $r ( { \\bf u } _ { 0 } , { \\bf v } _ { 0 } ) = 0$ and $\\begin{array} { r } { \\nabla _ { \\mathbf { u } } r ( \\mathbf { u } _ { 0 } , \\mathbf { v } _ { 0 } ) = 0 . } \\end{array}$ . \n3. $g ( \\mathbf { u } , \\mathbf { v } _ { 0 } ) - g ( \\mathbf { u } , \\mathbf { v } ) = d _ { \\mathcal { V } } ( \\mathbf { v } _ { 0 } , \\mathbf { v } ) .$ for all $\\mathbf { u } \\in \\mathbb { R } ^ { d _ { u } }$ and $\\begin{array} { r } { \\mathbf { v } \\in \\arg \\operatorname* { m i n } _ { \\mathbf { v } ^ { \\prime } \\in \\mathcal { V } } g ( \\mathbf { u } , \\mathbf { v } ^ { \\prime } ) } \\end{array}$ , where $d _ { \\nu }$ is non-negative and $d _ { \\mathcal { V } } ( \\mathbf { v } , \\mathbf { v } ^ { \\prime } ) = 0 \\iff \\mathbf { v } = \\mathbf { v } ^ { \\prime }$ . ",
1038
+ "bbox": [
1039
+ 212,
1040
+ 366,
1041
+ 825,
1042
+ 443
1043
+ ],
1044
+ "page_idx": 7
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "Under the assumption that each client $t$ can compute a partial first-order surrogate of $f _ { t }$ , we propose algorithms for federated surrogate optimization in both the client-server setting (Alg. 3) and the fully decentralized one (Alg. 5) and prove their convergence under mild conditions (App. G.1 and G.2). FedEM and D-FedEM can be seen as particular instances of these algorithms and Theorem. 3.2 and Theorem. 3.3 follow from the more general convergence results for federated surrogate optimization. We can also use our framework to analyze the convergence of other FL algorithms such as pFedMe [16], as we illustrate in App. F.3. ",
1049
+ "bbox": [
1050
+ 173,
1051
+ 452,
1052
+ 826,
1053
+ 550
1054
+ ],
1055
+ "page_idx": 7
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "4 Experiments ",
1060
+ "text_level": 1,
1061
+ "bbox": [
1062
+ 174,
1063
+ 570,
1064
+ 312,
1065
+ 587
1066
+ ],
1067
+ "page_idx": 7
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "Datasets and models. We evaluated our method on five federated benchmark datasets spanning a wide range of machine learning tasks: image classification (CIFAR10 and CIFAR100 [33]), handwritten character recognition (EMNIST [8] and FEMNIST [7]),5 and language modeling (Shakespeare [7, 47]). Shakespeare dataset (resp. FEMNIST) was naturally partitioned by assigning all lines from the same characters (resp. all images from the same writer) to the same client. We created federated versions of CIFAR10 and EMNIST by distributing samples with the same label across the clients according to a symmetric Dirichlet distribution with parameter 0.4, as in [65]. For CIFAR100, we exploited the availability of “coarse” and “fine” labels, using a two-stage Pachinko allocation method [39] to assign 600 sample to each of the 100 clients, as in [54]. We also evaluated our method on a synthetic dataset verifying Assumptions 1–3. For all tasks, we randomly split each local dataset into training $( 6 0 \\% )$ , validation $( 2 0 \\% )$ and test $( 2 0 \\% )$ sets. Table 1 summarizes datasets, models, and number of clients (more details can be found in App. I.1). Code is available at https://github.com/omarfoq/FedEM. ",
1072
+ "bbox": [
1073
+ 174,
1074
+ 602,
1075
+ 825,
1076
+ 781
1077
+ ],
1078
+ "page_idx": 7
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Other FL approaches. We compared our algorithms with global models trained with FedAvg [47] and FedProx [38] as well as different personalization approaches: a personalized model trained only on the local dataset, FedAvg with local tuning $( \\mathtt { F e d A v g } + )$ [27], Clustered FL [56] and pFedMe [16]. For each method and each task, the learning rate and the other hyperparameters were tuned via grid search (details in App. I.2). FedAvg+ updated the local model through a single pass on the local dataset. Unless otherwise stated, the number of components considered by FedEM was $M = 3$ , training occurred over 80 communication rounds for Shakespeare and 200 rounds for all other datasets. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 787,
1086
+ 825,
1087
+ 886
1088
+ ],
1089
+ "page_idx": 7
1090
+ },
1091
+ {
1092
+ "type": "table",
1093
+ "img_path": "images/e63c4b8a0ca8f952aedd2392e6fcf68bf86b9682bfa2b302a9f13b42abefcd42.jpg",
1094
+ "table_caption": [
1095
+ "Table 1: Datasets and models (details in App. I.1). "
1096
+ ],
1097
+ "table_footnote": [],
1098
+ "table_body": "<table><tr><td>Dataset</td><td>Task</td><td>Clients</td><td>Total samples</td><td>Model</td></tr><tr><td>FEMNIST[7]</td><td>Handwriten character recognition</td><td>539</td><td>120,772</td><td>2-layer CNN + 2-layer FFN</td></tr><tr><td>EMNIST[8]</td><td>Handwritten character recognition</td><td>100</td><td>81,425</td><td>2-layer CNN + 2-layer FFN</td></tr><tr><td>CIFAR10 [33]</td><td>Image classification</td><td>80</td><td>60,000</td><td>MobileNet-v2 [55]</td></tr><tr><td>CIFAR100 [33]</td><td>Image classification</td><td>100</td><td>60,000</td><td>MobileNet-v2 [55]</td></tr><tr><td>Shakespeare [7,47]</td><td>Next-Character Prediction</td><td>778</td><td>4,226,158</td><td>Stacked-LSTM[25]</td></tr><tr><td>Synthetic</td><td>Binary Classification</td><td>300</td><td>1,570,507</td><td>Linear model</td></tr></table>",
1099
+ "bbox": [
1100
+ 173,
1101
+ 109,
1102
+ 825,
1103
+ 196
1104
+ ],
1105
+ "page_idx": 8
1106
+ },
1107
+ {
1108
+ "type": "table",
1109
+ "img_path": "images/e1156ffd6a89b39f2860a39d3995b759c9cb028825623850fc8f281144b2b882.jpg",
1110
+ "table_caption": [
1111
+ "Table 2: Test accuracy: average across clients / bottom decile. "
1112
+ ],
1113
+ "table_footnote": [],
1114
+ "table_body": "<table><tr><td>Dataset</td><td>Local</td><td>FedAvg[47]</td><td>FedProx [38]</td><td>FedAvg+ [27]</td><td>Clustered FL [56]</td><td>pFedMe [16]</td><td>FedEM (Ours)</td></tr><tr><td>FEMNIST</td><td>71.0/57.5</td><td>78.6/63.9</td><td>78.9 /64.0</td><td>75.3/53.0</td><td>73.5/55.1</td><td>74.9/57.6</td><td>79.9/64.8</td></tr><tr><td>EMNIST</td><td>71.9/64.3</td><td>82.6/75.0</td><td>83.0/75.4</td><td>83.1/75.8</td><td>82.7/75.0</td><td>83.3/76.4</td><td>83.5/76.6</td></tr><tr><td>CIFAR10</td><td>70.2/48.7</td><td>78.2/72.4</td><td>78.0/70.8</td><td>82.3/70.6</td><td>78.6/71.2</td><td>81.7/73.6</td><td>84.3 /78.1</td></tr><tr><td>CIFAR100</td><td>31.5/19.9</td><td>40.9/33.2</td><td>41.0/33.2</td><td>39.0/28.3</td><td>41.5/34.1</td><td>41.8/32.5</td><td>44.1/35.0</td></tr><tr><td>Shakespeare</td><td>32.0/16.6</td><td>46.7/42.8</td><td>45.7/41.9</td><td>40.0/25.5</td><td>46.6/42.7</td><td>41.2/36.8</td><td>46.7/43.0</td></tr><tr><td>Synthetic</td><td>65.7/58.4</td><td>68.2/58.9</td><td>68.2/59.0</td><td>68.9/60.2</td><td>69.1/59.0</td><td>69.2/61.2</td><td>74.7/66.7</td></tr></table>",
1115
+ "bbox": [
1116
+ 173,
1117
+ 236,
1118
+ 825,
1119
+ 323
1120
+ ],
1121
+ "page_idx": 8
1122
+ },
1123
+ {
1124
+ "type": "text",
1125
+ "text": "At each round, clients train for one epoch. Results for D-FedEM are in App. J.1. A comparison with MOCHA [59], which can only train linear models, is presented in App. J.2. ",
1126
+ "bbox": [
1127
+ 173,
1128
+ 353,
1129
+ 821,
1130
+ 381
1131
+ ],
1132
+ "page_idx": 8
1133
+ },
1134
+ {
1135
+ "type": "text",
1136
+ "text": "Average performance of personalized models. The performance of each personalized model (which is the same for all clients in the case of FedAvg and FedProx) is evaluated on the local test dataset (unseen at training). Table 2 shows the average weighted accuracy with weights proportional to local dataset sizes. We observe that FedEM obtains the best performance across all datasets. ",
1137
+ "bbox": [
1138
+ 174,
1139
+ 387,
1140
+ 825,
1141
+ 443
1142
+ ],
1143
+ "page_idx": 8
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Fairness across clients. FedEM’s improvement in terms of average accuracy could be the result of learning particularly good models for some clients at the expense of bad models for other clients. Table 2 shows the bottom decile of the accuracy of local models, i.e., the $( T / 1 0 )$ -th worst accuracy (the minimum accuracy is particularly noisy, notably because some local test datasets are very small). Even clients with the worst personalized models are still better off when FedEM is used for training. ",
1148
+ "bbox": [
1149
+ 174,
1150
+ 449,
1151
+ 825,
1152
+ 518
1153
+ ],
1154
+ "page_idx": 8
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "Clients sampling. In cross-device federated learning, only a subset of clients may be available at each round. We ran CIFAR10 experiments with different levels of participation: at each round a given fraction of all clients were sampled uniformly without replacement. We restrict the comparison to FedEM and ${ \\mathrm { F e d A v g } } +$ , as 1) ${ \\mathrm { F e d A v g } } +$ performed better than FedProx and FedAvg in the previous CIFAR10 experiments, 2) it is not clear how to extend pFedMe and Clustered FL to handle client sampling. Results in Fig. 1 (left) show that FedEM is more robust to low clients’ participation levels. We provide additional results on client sampling, including a comparison with APFL [14], in App. J.6. ",
1159
+ "bbox": [
1160
+ 173,
1161
+ 525,
1162
+ 825,
1163
+ 622
1164
+ ],
1165
+ "page_idx": 8
1166
+ },
1167
+ {
1168
+ "type": "text",
1169
+ "text": "Generalization to unseen clients. As discussed in Section 3.2, FedEM allows new clients arriving after the distributed training to easily learn their personalized models. With the exception of ${ \\mathrm { F e d A v g } } +$ , it is not clear how the other personalized FL algorithms should be extended to tackle the same goal (see discussion in App. J.3). In order to evaluate the quality of new clients’ personalized models, we performed an experiment where only $80 \\%$ of the clients (“old” clients) participate to the training. The remaining $20 \\%$ join the system in a second phase and use their local training datasets to learn their personalized weights. Table 3 shows that FedEM allows new clients to learn a personalized model at least as good as FedAvg’s global one and always better than FedAvg+’s one. Unexpectedly, new clients achieve sometimes a significantly higher test accuracy than old clients (e.g., $4 7 . 5 \\%$ against $4 4 . 1 \\%$ on CIFAR100). Our investigation in App. J.3 suggests that, by selecting their mixture weights on local datasets that were not used to train the components, new clients can compensate for potential overfitting in the initial training phase. We also investigate in App. J.3 the effect of the local dataset size on the accuracy achieved by unseen clients, showing that personalization is effective even when unseen clients have small datasets. ",
1170
+ "bbox": [
1171
+ 173,
1172
+ 628,
1173
+ 825,
1174
+ 821
1175
+ ],
1176
+ "page_idx": 8
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "Effect of $M$ . A limitation of FedEM is that each client needs to update and transmit $M$ components at each round, requiring roughly $M$ times more computation and $M$ times larger messages. Nevertheless, the number of components to consider in practice is quite limited. We used $M = 3$ in our previous experiments, and Fig. 1 (right) shows that larger values do not yield much improvement and $M = 2$ already provides a significant level of personalization. In all experiments above, the number of communication rounds allowed all approaches to converge. As a consequence, even if other methods trained over $M = 3$ times more rounds—in order to have as much computation and communication as FedEM—the conclusions would not change. As a final experiment, we considered a time-constrained setting, where FedEM is limited to run one third $( = 1 / M )$ ) of the rounds (Table 7 in App. J.5). Even if FedEM does not reach its maximum accuracy, it still outperforms the other methods on 3 datasets. ",
1181
+ "bbox": [
1182
+ 174,
1183
+ 828,
1184
+ 825,
1185
+ 911
1186
+ ],
1187
+ "page_idx": 8
1188
+ },
1189
+ {
1190
+ "type": "table",
1191
+ "img_path": "images/68f4ef57bdb4fe51f26c68739c199291500adf0ee9f7a03bea9311d7bcada10c.jpg",
1192
+ "table_caption": [
1193
+ "Table 3: Average test accuracy across clients unseen at training (train accuracy in parenthesis). "
1194
+ ],
1195
+ "table_footnote": [],
1196
+ "table_body": "<table><tr><td>Dataset</td><td>FedAvg [47]</td><td>FedAvg+[27]</td><td>FedEM (Ours)</td></tr><tr><td>FEMNIST</td><td>78.3(80.9)</td><td>74.2 (84.2)</td><td>79.1 (81.5)</td></tr><tr><td>EMNIST</td><td>83.4(82.7)</td><td>83.7(92.9)</td><td>84.0(83.3)</td></tr><tr><td>CIFAR10</td><td>77.3(77.5)</td><td>80.4 (80.5)</td><td>85.9 (90.7)</td></tr><tr><td>CIFAR100</td><td>41.1 (42.1)</td><td>36.5 (55.3)</td><td>47.5 (46.6)</td></tr><tr><td>Shakespeare</td><td>46.7 (47.1)</td><td>40.2 (93.0)</td><td>46.7 (46.6)</td></tr><tr><td>Synthetic</td><td>68.6(70.0)</td><td>69.1(72.1)</td><td>73.0 (74.1)</td></tr></table>",
1197
+ "bbox": [
1198
+ 334,
1199
+ 109,
1200
+ 661,
1201
+ 196
1202
+ ],
1203
+ "page_idx": 9
1204
+ },
1205
+ {
1206
+ "type": "image",
1207
+ "img_path": "images/eeb1beb065cef85e985d5f9666ab0cf36430081c9d877b100da90cd7e8b773ff.jpg",
1208
+ "image_caption": [
1209
+ "Figure 1: Effect of client sampling rate (left) and FedEM number of mixture components $M$ (right) on the test accuracy for CIFAR10 [33]. "
1210
+ ],
1211
+ "image_footnote": [],
1212
+ "bbox": [
1213
+ 236,
1214
+ 209,
1215
+ 746,
1216
+ 359
1217
+ ],
1218
+ "page_idx": 9
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "",
1223
+ "bbox": [
1224
+ 174,
1225
+ 424,
1226
+ 825,
1227
+ 479
1228
+ ],
1229
+ "page_idx": 9
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "5 Conclusion ",
1234
+ "text_level": 1,
1235
+ "bbox": [
1236
+ 174,
1237
+ 498,
1238
+ 299,
1239
+ 515
1240
+ ],
1241
+ "page_idx": 9
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "In this paper, we proposed a novel federated MTL approach based on the flexible assumption that local data distributions are mixtures of underlying distributions. Our EM-like algorithms allow clients to jointly learn shared component models and personalized mixture weights in client-server and fully decentralized settings. We proved convergence guarantees for our algorithms through a general federated surrogate optimization framework which can be used to analyze other FL formulations. Extensive empirical evaluation shows that our approach learns models with higher accuracy and fairness than state-of-the-art FL algorithms, even for clients not present at training time. ",
1246
+ "bbox": [
1247
+ 174,
1248
+ 529,
1249
+ 825,
1250
+ 626
1251
+ ],
1252
+ "page_idx": 9
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "In future work, we aim to reduce the local computation and communication of our algorithms. Aside from standard compression schemes [22], a promising direction is to limit the number of component models that a client updates/transmits at each step. This could be done in an adaptive manner based on the client’s current mixture weights. A simultaneously published work [15] proposes a federated EM algorithm (also called FedEM), which does not address personalization but reduces communication requirements by compressing appropriately defined complete data sufficient statistics. ",
1257
+ "bbox": [
1258
+ 174,
1259
+ 632,
1260
+ 825,
1261
+ 715
1262
+ ],
1263
+ "page_idx": 9
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "A second interesting research direction is to study personalized FL approaches under privacy constraints (quite unexplored until now with the notable exception of [3]). Some features of our algorithms may be beneficial for privacy (e.g., the fact that personalized weights are kept locally and that all users contribute to all shared models). We hope to design differentially private versions of our algorithms and characterize their privacy-utility trade-offs. ",
1268
+ "bbox": [
1269
+ 174,
1270
+ 722,
1271
+ 825,
1272
+ 791
1273
+ ],
1274
+ "page_idx": 9
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "6 Acknowledgements ",
1279
+ "text_level": 1,
1280
+ "bbox": [
1281
+ 176,
1282
+ 810,
1283
+ 367,
1284
+ 828
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "text": "This work has been supported by the French government, through the 3IA Côte d’Azur Investments in the Future project managed by the National Research Agency (ANR) with the reference number ANR-19-P3IA-0002, and through grants ANR-16-CE23-0016 (Project PAMELA) and ANR-20- CE23-0015 (Project PRIDE). The authors are grateful to the OPAL infrastructure from Université Côte d’Azur for providing computational resources and technical support. ",
1291
+ "bbox": [
1292
+ 174,
1293
+ 842,
1294
+ 825,
1295
+ 911
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "References ",
1302
+ "text_level": 1,
1303
+ "bbox": [
1304
+ 174,
1305
+ 89,
1306
+ 266,
1307
+ 106
1308
+ ],
1309
+ "page_idx": 10
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Training”. In: Proceedings of the 38th International Conference on Machine Learning. Ed. by Marina Meila and Tong Zhang. Vol. 139. Proceedings of Machine Learning Research. PMLR, July 2021, pp. 21–31. URL: https://proceedings.mlr.press/v139/acar21a.html. \n[2] Rie Kubota Ando and Tong Zhang. “A Framework for Learning Predictive Structures from Multiple Tasks and Unlabeled Data”. In: Journal of Machine Learning Research 6.61 (2005), pp. 1817–1853. \n[3] Aurélien Bellet, Rachid Guerraoui, Mahsa Taziki, and Marc Tommasi. “Personalized and Private Peer-to-Peer Machine Learning”. In: AISTATS. 2018. \n[4] Shai Ben-David, Tyler Lu, and D. Pál. “Does Unlabeled Data Provably Help? Worst-case Analysis of the Sample Complexity of Semi-Supervised Learning”. In: COLT. 2008. \n[5] Stephen Boyd, Persi Diaconis, and Lin Xiao. “Fastest Mixing Markov Chain on A Graph”. In: SIAM REVIEW 46 (2003), pp. 667–689. \n[6] Sébastien Bubeck. Convex Optimization: Algorithms and Complexity. 2015. arXiv: 1405.4980 [math.OC]. \n[7] Sebastian Caldas et al. “Leaf: A benchmark for federated settings”. In: arXiv preprint arXiv:1812.01097 (2018). Presented at the 2nd International Workshop on Federated Learning for Data Privacy and Confidentiality (in conjunction with NeurIPS 2019). \n[8] Gregory Cohen, Saeed Afshar, Jonathan Tapson, and Andre Van Schaik. “EMNIST: Extending MNIST to handwritten letters”. In: 2017 International Joint Conference on Neural Networks (IJCNN). IEEE. 2017, pp. 2921–2926. \n[9] Luca Corinzia and Joachim M. Buhmann. Variational Federated Multi-Task Learning. 2019. arXiv: 1906.06268 [cs.LG]. \n[10] Corinna Cortes, Yishay Mansour, and Mehryar Mohri. “Learning Bounds for Importance Weighting”. In: Advances in Neural Information Processing Systems. Ed. by J. Lafferty, C. Williams, J. Shawe-Taylor, R. Zemel, and A. Culotta. Vol. 23. Curran Associates, Inc., 2010. URL: https : / / proceedings . neurips . cc / paper / 2010 / file / 59c33016884a62116be975a9bb8257e3-Paper.pdf. \n[11] Corinna Cortes, Mehryar Mohri, Michael Riley, and Afshin Rostamizadeh. “Sample Selection Bias Correction Theory”. In: ALT. 2008. \n[12] Edwige Cyffers and Aurélien Bellet. Privacy Amplification by Decentralization. Presented at the Privacy Preserving Machine Learning workshop (in conjunction with NeurIPS 2020). 2021. arXiv: 2012.05326 [cs.LG]. \n[13] Malte Darnstädt, H. U. Simon, and Balázs Szörényi. “Unlabeled Data Does Provably Help”. In: STACS. 2013. \n[14] Yuyang Deng, Mohammad Mahdi Kamani, and Mehrdad Mahdavi. “Adaptive Personalized Federated Learning”. In: arXiv preprint arXiv:2003.13461 (2020). \n[15] Aymeric Dieuleveut, Gersende Fort, Eric Moulines, and Geneviève Robin. “Federated Expectation Maximization with heterogeneity mitigation and variance reduction”. In: Advances in Neural Information Processing Systems. Vol. 34. 2021. \n[16] Canh T Dinh, Nguyen H Tran, and Tuan Dung Nguyen. “Personalized Federated Learning with Moreau Envelopes”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020. \n[17] Canh T Dinh, Tung T Vu, Nguyen H Tran, Minh N Dao, and Hongyu Zhang. “FedU: A Unified Framework for Federated Multi-Task Learning with Laplacian Regularization”. In: arXiv preprint arXiv:2102.07148 (2021). \n[18] P. Erdös and A. Rényi. “On Random Graphs I”. In: Publicationes Mathematicae Debrecen 6 (1959), p. 290. \n[19] Alireza Fallah, Aryan Mokhtari, and Asuman Ozdaglar. “Personalized federated learning: A meta-learning approach”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020. \n[20] Avishek Ghosh, Jichan Chung, Dong Yin, and Kannan Ramchandran. “An Efficient Framework for Clustered Federated Learning”. In: NeurIPS. 2020. \n[21] Christina Göpfert, Shai Ben-David, Olivier Bousquet, Sylvain Gelly, Ilya Tolstikhin, and Ruth Urner. “When can unlabeled data improve the learning rate?” In: Conference on Learning Theory. PMLR. 2019, pp. 1500–1518. \n[22] Farzin Haddadpour, Mohammad Mahdi Kamani, Aryan Mokhtari, and Mehrdad Mahdavi. “Federated Learning with Compression: Unified Analysis and Sharp Guarantees”. In: ICML. 2021. \n[23] Filip Hanzely, Slavomıér Hanzely, Samuel Horváth, and Peter Richtárik. “Lower bounds and optimal algorithms for personalized federated learning”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020. \n[24] Filip Hanzely and Peter Richtárik. “Federated Learning of a Mixture of Global and Local Models”. In: (2020). arXiv: 2002.05516 [cs.LG]. \n[25] Sepp Hochreiter and Jürgen Schmidhuber. “Long Short-Term Memory”. In: Neural Computation 9.8 (1997), pp. 1735–1780. \n[26] Yutao Huang et al. “Personalized cross-silo federated learning on non-iid data”. In: Proceedings of the AAAI Conference on Artificial Intelligence. Vol. 35. 9. 2021, pp. 7865–7873. \n[27] Yihan Jiang, Jakub Konecný, Keith Rush, and Sreeram Kannan. “Improving federated learning ˇ personalization via model agnostic meta learning”. In: arXiv preprint arXiv:1909.12488 (2019). Presented at NeurIPS FL workshop 2019. \n[28] Peter Kairouz et al. “Advances and Open Problems in Federated Learning”. In: Foundations and Trends® in Machine Learning 14.1–2 (2021), pp. 1–210. ISSN: 1935-8237. DOI: 10. 1561/2200000083. URL: http://dx.doi.org/10.1561/2200000083. \n[29] Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. “SCAFFOLD: Stochastic controlled averaging for federated learning”. In: International Conference on Machine Learning. PMLR. 2020, pp. 5132–5143. \n[30] Mikhail Khodak, Maria-Florina F Balcan, and Ameet S Talwalkar. “Adaptive gradient-based meta-learning methods”. In: Advances in Neural Information Processing Systems. 2019, pp. 5917–5928. \n[31] Anastasia Koloskova, N. Loizou, Sadra Boreiri, M. Jaggi, and S. Stich. “A Unified Theory of Decentralized SGD with Changing Topology and Local Updates”. In: ICML. 2020. \n[32] Jakub Konecný, H Brendan McMahan, Felix X Yu, Peter Richtárik, Ananda Theertha Suresh, ˇ and Dave Bacon. “Federated learning: Strategies for improving communication efficiency”. In: arXiv preprint arXiv:1610.05492 (2016). Presented at NIPS 2016 Workshop on Private Multi-Party Machine Learning. \n[33] Alex Krizhevsky. “Learning multiple layers of features from tiny images”. MSc thesis. 2009. \n[34] Kenneth Lange, David R. Hunter, and Ilsoon Yang. “Optimization Transfer Using Surrogate Objective Functions”. In: Journal of Computational and Graphical Statistics 9.1 (2000), pp. 1– 20. ISSN: 10618600. URL: http://www.jstor.org/stable/1390605. \n[35] Steffen L. Lauritzen. Graphical models. English. Oxford Statistical Science Series 17. Clarendon Press, 1996. ISBN: 0198522193. \n[36] Tian Li, Shengyuan Hu, Ahmad Beirami, and Virginia Smith. “Ditto: Fair and robust federated learning through personalization”. In: International Conference on Machine Learning. PMLR. 2021, pp. 6357–6368. \n[37] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. “Federated learning: Challenges, methods, and future directions”. In: IEEE Signal Processing Magazine 37.3 (2020), pp. 50–60. \n[38] Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. “Federated Optimization in Heterogeneous Networks”. In: Third MLSys Conference. 2020. \n[39] Wei Li and Andrew McCallum. “Pachinko Allocation: DAG-Structured Mixture Models of Topic Correlations”. In: Proceedings of the 23rd International Conference on Machine Learning. ICML ’06. Pittsburgh, Pennsylvania, USA: Association for Computing Machinery, 2006, pp. 577–584. ISBN: 1595933832. DOI: 10.1145/1143844.1143917. URL: https: //doi.org/10.1145/1143844.1143917. \n[40] Xiaoxiao Li, Meirui JIANG, Xiaofei Zhang, Michael Kamp, and Qi Dou. “FedBN: Federated Learning on Non-IID Features via Local Batch Normalization”. In: International Conference on Learning Representations. 2020. \n[41] Xiangru Lian, Ce Zhang, Huan Zhang, Cho-Jui Hsieh, Wei Zhang, and Ji Liu. “Can Decentralized Algorithms Outperform Centralized Algorithms? A Case Study for Decentralized Parallel Stochastic Gradient Descent”. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. NIPS’17. Long Beach, California, USA: Curran Associates Inc., 2017, pp. 5336–5346. ISBN: 9781510860964. \n[42] Xiangru Lian, Wei Zhang, Ce Zhang, and Ji Liu. “Asynchronous Decentralized Parallel Stochastic Gradient Descent”. In: ICML. 2018. \n[43] Julien Mairal. “Optimization with first-order surrogate functions”. In: International Conference on Machine Learning. 2013, pp. 783–791. \n[44] Yishay Mansour, Mehryar Mohri, Jae Ro, and Ananda Theertha Suresh. “Three approaches for personalization with applications to federated learning”. In: arXiv preprint arXiv:2002.10619 (2020). \n[45] Sébastien Marcel and Yann Rodriguez. “Torchvision the Machine-Vision Package of Torch”. In: Proceedings of the 18th ACM International Conference on Multimedia. MM ’10. Firenze, Italy: Association for Computing Machinery, 2010, pp. 1485–1488. ISBN: 9781605589336. DOI: 10.1145/1873951.1874254. URL: https://doi.org/10.1145/1873951.1874254. \n[46] Othmane Marfoq, Chuan Xu, Giovanni Neglia, and Richard Vidal. “Throughput-Optimal Topology Design for Cross-Silo Federated Learning”. In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin. Vol. 33. Curran Associates, Inc., 2020, pp. 19478–19487. URL: https://proceedings. neurips.cc/paper/2020/file/e29b722e35040b88678e25a1ec032a21-Paper.pdf. \n[47] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. “Communication-efficient learning of deep networks from decentralized data”. In: Artificial Intelligence and Statistics. PMLR. 2017, pp. 1273–1282. \n[48] Mehryar Mohri, Gary Sivek, and Ananda Theertha Suresh. “Agnostic Federated Learning”. In: International Conference on Machine Learning. 2019, pp. 4615–4625. \n[49] A. Nedic, A. Olshevsky, and M. G. Rabbat. “Network Topology and Communication- ´ Computation Tradeoffs in Decentralized Optimization”. In: Proceedings of the IEEE 106.5 (2018), pp. 953–976. DOI: 10.1109/JPROC.2018.2817461. \n[50] Giovanni Neglia, Gianmarco Calbi, Don Towsley, and Gayane Vardoyan. “The Role of Network Topology for Distributed Machine Learning”. In: IEEE INFOCOM 2019 - IEEE Conference on Computer Communications. 2019, pp. 2350–2358. DOI: 10.1109/INFOCOM.2019.8737602. \n[51] Giovanni Neglia, Chuan Xu, Don Towsley, and Gianmarco Calbi. “Decentralized gradient methods: does topology matter?” In: AISTATS. 2020. \n[52] Y. Nesterov. Introductory Lectures on Convex Optimization: A Basic Course. 1st ed. Applied Optimization. Springer, 2003. URL: http://gen.lib.rus.ec/book/index.php?md5 $=$ 488d3c36f629a6e021fc011675df02ef. \n[53] Adam Paszke et al. “PyTorch: An Imperative Style, High-Performance Deep Learning Library”. In: Advances in Neural Information Processing Systems 32. Ed. by H. Wallach, H. Larochelle, A. Beygelzimer, F. d’Alché-Buc, E. Fox, and R. Garnett. Curran Associates, Inc., 2019, pp. 8024–8035. URL: http://papers.neurips.cc/paper/9015-pytorch-animperative-style-high-performance-deep-learning-library.pdf. \n[54] Sashank J. Reddi et al. “Adaptive Federated Optimization”. In: International Conference on Learning Representations. 2021. URL: https : / / openreview . net / forum ? id $=$ LkFG3lB13U5. \n[55] Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. “Mobilenetv2: Inverted residuals and linear bottlenecks”. In: Proceedings of the IEEE conference on computer vision and pattern recognition. 2018, pp. 4510–4520. \n[56] Felix Sattler, Klaus-Robert Müller, and Wojciech Samek. “Clustered Federated Learning: Model-Agnostic Distributed Multitask Optimization Under Privacy Constraints”. In: IEEE Transactions on Neural Networks and Learning Systems (2020). \n[57] Aviv Shamsian, Aviv Navon, Ethan Fetaya, and Gal Chechik. “Personalized Federated Learning using Hypernetworks”. In: Proceedings of the 38th International Conference on Machine Learning. Ed. by Marina Meila and Tong Zhang. Vol. 139. Proceedings of Machine Learning Research. PMLR, July 2021, pp. 9489–9502. URL: https://proceedings.mlr.press/ v139/shamsian21a.html. \n[58] Khe Chai Sim, Petr Zadrazil, and Françoise Beaufays. “An Investigation Into On-device Personalization of End-to-end Automatic Speech Recognition Models”. In: INTERSPEECH. 2019. \n[59] Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet Talwalkar. “Federated MultiTask Learning”. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. NIPS’17. Long Beach, California, USA: Curran Associates Inc., 2017, pp. 4427–4437. ISBN: 9781510860964. \n[60] Sebastian U Stich. “Local SGD Converges Fast and Communicates Little”. In: International Conference on Learning Representations. 2018. \n[61] Masashi Sugiyama, Shinichi Nakajima, Hisashi Kashima, Paul Buenau, and Motoaki Kawanabe. “Direct Importance Estimation with Model Selection and Its Application to Covariate Shift Adaptation”. In: NIPS. 2008. \n[62] Hanlin Tang, Xiangru Lian, Ming Yan, Ce Zhang, and Ji Liu. “ $D ^ { 2 }$ : Decentralized Training over Decentralized Data”. In: ICML. 2018. \n[63] Paul Vanhaesebrouck, Aurélien Bellet, and Marc Tommasi. “Decentralized Collaborative Learning of Personalized Models over Networks”. In: AISTATS. 2017. \n[64] Robin Vogel, Mastane Achab, Stéphan Clémençon, and Charles Tillier. “Weighted Emprirical Risk Minimization: Transfer Learning based on Importance Sampling”. In: ESANN. 2020. \n[65] Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, and Yasaman Khazaeni. “Federated Learning with Matched Averaging”. In: International Conference on Learning Representations. 2020. URL: https://openreview.net/forum?id $\\ c =$ BkluqlSFDS. \n[66] Jianyu Wang, Qinghua Liu, Hao Liang, Gauri Joshi, and H Vincent Poor. “Tackling the objective inconsistency problem in heterogeneous federated optimization”. In: 34th Conference on Neural Information Processing Systems (NeurIPS 2020). 2020. \n[67] Valentina Zantedeschi, Aurélien Bellet, and Marc Tommasi. “Fully Decentralized Joint Learning of Personalized Models and Collaboration Graphs”. In: ed. by Silvia Chiappa and Roberto Calandra. Vol. 108. Proceedings of Machine Learning Research. Online: PMLR, Aug. 2020, pp. 864–874. URL: http://proceedings.mlr.press/v108/zantedeschi20a.html. \n[68] Michael Zhang, Karan Sapra, Sanja Fidler, Serena Yeung, and Jose M Alvarez. “Personalized Federated Learning with First Order Model Optimization”. In: International Conference on Learning Representations. 2020. \n[69] Yu Zhang and Dit Yan Yeung. “A Convex Formulation for Learning Task Relationships in Multi-task Learning”. In: Proceedings of the 26th Conference on Uncertainty in Artificial Intelligence, UAI 2010. 2010, p. 733. \n[70] Jiayu Zhou, Jianhui Chen, and Jieping Ye. “Clustered Multi-Task Learning Via Alternating Structure Optimization”. In: Advances in Neural Information Processing Systems. Ed. by J. Shawe-Taylor, R. Zemel, P. Bartlett, F. Pereira, and K. Q. Weinberger. Vol. 24. Curran Associates, Inc., 2011. URL: https://proceedings.neurips.cc/paper/2011/file/ a516a87cfcaef229b342c437fe2b95f7-Paper.pdf. ",
1314
+ "bbox": [
1315
+ 171,
1316
+ 132,
1317
+ 828,
1318
+ 900
1319
+ ],
1320
+ "page_idx": 10
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "",
1325
+ "bbox": [
1326
+ 171,
1327
+ 80,
1328
+ 828,
1329
+ 914
1330
+ ],
1331
+ "page_idx": 11
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "",
1336
+ "bbox": [
1337
+ 171,
1338
+ 79,
1339
+ 828,
1340
+ 904
1341
+ ],
1342
+ "page_idx": 12
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "",
1347
+ "bbox": [
1348
+ 169,
1349
+ 84,
1350
+ 828,
1351
+ 659
1352
+ ],
1353
+ "page_idx": 13
1354
+ }
1355
+ ]
parse/train/YCqx6zhEzRp/YCqx6zhEzRp_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/YCqx6zhEzRp/YCqx6zhEzRp_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rklFh34Kwr/rklFh34Kwr.md ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Bayesian Inference for Large Scale Image Classification
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # Abstract
6
+
7
+ Bayesian inference promises to ground and improve the performance of deep neural networks. It promises to be robust to overfitting, to simplify the training procedure and the space of hyperparameters, and to provide a calibrated measure of uncertainty that can enhance decision making, agent exploration and prediction fairness. Markov Chain Monte Carlo (MCMC) methods enable Bayesian inference by generating samples from the posterior distribution over model parameters. Despite the theoretical advantages of Bayesian inference and the similarity between MCMC and optimization methods, the performance of sampling methods has so far lagged behind optimization methods for large scale deep learning tasks. We aim to fill this gap and introduce ATMC, an adaptive noise MCMC algorithm that estimates and is able to sample from the posterior of a neural network. ATMC dynamically adjusts the amount of momentum and noise applied to each parameter update in order to compensate for the use of stochastic gradients. We use a ResNet architecture without batch normalization to test ATMC on the Cifar10 benchmark and the large scale ImageNet benchmark and show that, despite the absence of batch normalization, ATMC outperforms a strong optimization baseline in terms of both classification accuracy and test log-likelihood. We show that ATMC is intrinsically robust to overfitting on the training data and that ATMC provides a better calibrated measure of uncertainty compared to the optimization baseline.
8
+
9
+ # 1 Introduction
10
+
11
+ In contrast to optimization approaches in machine learning that derive a single estimate for the weights of a neural network, Bayesian inference aims at deriving a posterior distribution over the weights of the network. This makes it possible to sample model instances from the distribution over the weights and offers unique advantages. Multiple model instances can be aggregated to obtain robust uncertainty estimates over the network’s predictions; uncertainty estimates are crucial in domains such as medical diagnosis and autonomous driving where following a model’s incorrect predictions can result in catastrophe (Kendall & Gal, 2017). Sampling a distribution, as opposed to optimizing a loss, is less prone to overfitting and more training doesn’t decrease test performance. Bayesian inference can also be applied to differential privacy, where each individual sample has increased privacy guarantees (Wang et al., 2015), and to reinforcement learning, where one can leverage model uncertainty to balance between exploration and exploitation (Osband & Van Roy, 2017).
12
+
13
+ Traditional Markov Chain Monte Carlo (MCMC) methods like HMC (Neal et al., 2011) are a standard class of methods for generating samples from the posterior distribution over model parameters. These methods are seldom applied in deep learning because they have traditionally failed to scale well with large datasets and many parameters (Rajaratnam $\&$ Sparks, 2015). Stochastic Gradient MCMC (SG-MCMC) methods have fared somewhat better in scaling to large datasets due to their close relationship to stochastic optimization methods. For example the SGLD sampler (Welling & Teh, 2011) amounts to performing stochastic gradient descent while adding Gaussian noise to each parameter update. Despite these improvements, samplers like SGLD are only guaranteed to converge to the correct distribution when the step size is annealed to zero; additional control variates have been developed to mitigate this to some extent (Ahn et al., 2012; Ding et al., 2014).
14
+
15
+ Algorithm 1 The ATMC sampler. The algorithm accepts the initialized model parameters $\pmb { \theta } _ { 0 }$ , step size $h$ , pre-conditioner $m$ , and momentum noise $D _ { c }$ .
16
+
17
+ <table><tr><td colspan="4">1: procedure ATMC_TRAINING(0o,h,m,D)</td></tr><tr><td>2:</td><td>Po←0</td><td></td><td></td></tr><tr><td>3:</td><td>m←0</td><td></td><td></td></tr><tr><td>4:</td><td>whilet&lt;Tdo</td><td></td><td></td></tr><tr><td>5:</td><td></td><td>Gt ← minibatch_gradient(0t)</td><td></td></tr><tr><td>6:</td><td>nt ← random_normal()</td><td></td><td></td></tr><tr><td>7:</td><td>αt ←max(D-εt,0)</td><td></td><td></td></tr><tr><td>8:</td><td>βt←αt+t</td><td></td><td></td></tr><tr><td>9:</td><td>Pt+h←eβth</td><td>exp[Bth]-1Gt+ Pt-</td><td>exp[2βth]-1 αtnt</td></tr><tr><td>10:</td><td>0t+h←0t+hPt+h</td><td>βt</td><td>βt</td></tr><tr><td>11:</td><td>St+h←t+h</td><td>-1]</td><td></td></tr><tr><td>12:</td><td></td><td>m</td><td></td></tr><tr><td></td><td>t←t+h</td><td></td><td></td></tr></table>
18
+
19
+ The objective of this work is to make Bayesian inference practical for deep learning by making SG-MCMC methods scale to large models and datasets. The contributions described in this work fall in three categories. We first propose the Adaptive Thermostat Monte Carlo (ATMC) sampler that offers improved convergence and stability. ATMC dynamically adjusts the amount of momentum and noise applied to each model parameter. Secondly, we improve an existing second order numerical integration method that is needed for the ATMC sampler. Third, since ATMC, like other SG-MCMC samplers, is not directly compatible with stochastic regularization methods such as batch normalization (BatchNorm) and Dropout (see Sect. 4), we construct the ResNet++ network by taking the original ResNet architecture (He et al., 2016), removing BatchNorm and introducing SELUs (Klambauer et al., 2017), Fixup initialization (Zhang et al., 2019a) and weight normalization (Salimans & Kingma, 2016). We design ResNet $^ { + + }$ so that its parameters are easy to sample from and the gradients are well-behaved even in the absence of BatchNorm.
20
+
21
+ We show that the ATMC sampler is able to outperform optimization methods in terms of accuracy, log-likelihood and uncertainty calibration in the following settings. First, when using the ResNet $^ { + + }$ architecture for both the ATMC sampler and the optimization baseline, the ATMC sampler significantly outperforms the optimization baseline on both Cifar-10 and ImageNet. Secondly, when using the standard ResNet for the optimization baseline and the ResNet++ for the ATMC sampler, multiple samples of the ATMC that approximate the predictive posterior of the model are still able to outperform the optimization baseline on ImageNet. Using the ResNet $^ { + + }$ architecture, the ATMC sampler reduces the need for hyper-parameter tuning since it does not require early stopping, does not use stochastic regularization, is not prone to over-fitting on the training data and avoids a carefully tuned learning rate decay schedule.
22
+
23
+ # 2 ATMC Sampler
24
+
25
+ In this section we define the Stochastic Differential Equation (SDE) that gives rise to the ATMC sampler described in Algorithm 1. A detailed background and framework for constructing SDEs that converge to a target distribution can be found in (Ma et al., 2015).
26
+
27
+ # 2.1 General form of the SDE
28
+
29
+ Our starting point for constructing the ATMC sampler is the framework of Stochastic Differential Equations. We are interested in SDEs that converge to a distribution $p ( z )$ over the vector $z \in \mathbb { R } ^ { d }$ for which we can evaluate $\nabla \log p ( z )$ . Because only the gradient of $\log p ( z )$
30
+
31
+ is required, it is sufficient to define an energy function $H ( z ) = - \log p ( z ) + C$ up to a constant $C$ . As a consequence, we can sample from the posterior distribution $p ( \theta | x )$ by only evaluating the energy function gradient $\nabla H ( \theta ) = - \nabla \log p ( x , \theta )$ . The general form of SDEs converging to $p ( z )$ for which only the gradient of $p ( z )$ is required is as follows (Ma et al., 2015):
32
+
33
+ $$
34
+ \small { \begin{array} { l } { \displaystyle { d z = - \left[ D ( z ) + Q ( z ) \right] \nabla H ( z ) d t + \Gamma ( z ) d t + \sqrt { 2 D ( z ) } d W _ { t } , \quad \Gamma _ { i } ( z ) = \sum _ { j } ^ { d } \frac { \partial \left[ D _ { i j } ( z ) + Q _ { i j } ( z ) \right] } { \partial z _ { j } } , } } \end{array} }
35
+ $$
36
+
37
+ where $D ( z )$ is a positive-definite matrix that determines the amount of noise, $Q ( z )$ is a skew-symmetric matrix that mixes energy between variables, $W _ { t }$ is a Wiener process, and $\Gamma ( z )$ is a correction factor that compensates for dynamics that depend on the current state $z$ . The ATMC sampler that we propose is an instance of (1) for specific definitions of $H ( z )$ , $D ( z )$ , and $Q ( z )$ .
38
+
39
+ # 2.2 Energy Function
40
+
41
+ We start by defining the energy function $H ( z )$ . The energy function for the model posterior $p ( \theta | x )$ is defined by the loss function $\mathcal { L } ( \theta ) = - \log p ( x , \theta )$ . Because the dataset $x$ is generally large, we would like to only evaluate a mini-batch loss $\ddot { \mathcal { L } } ( \boldsymbol { \theta } )$ . However, naively using a stochastic gradient in (1) will result in significant bias (Chen et al., 2014). Motivated by the Central Limit Theorem, the stochastic gradient is assumed to follow a Gaussian distribution $\nabla \tilde { \mathcal { L } } ( \theta ) \sim \mathcal { N } ( \nabla \mathcal { L } ( \theta ) , B )$ where the covariance $B$ is additionally assumed to be diagonal and constant w.r.t. $\theta$ . The energy function for the ATMC sampler is defined as:
42
+
43
+ $$
44
+ H ( \theta , p , \xi ) = \mathcal { L } ( \theta ) + K ( p ) + \frac { 1 } { 2 } \left( \xi - \frac { \mathrm { d i a g } ( B ) } { 2 m } \right) ^ { 2 } ,
45
+ $$
46
+
47
+ where $p$ is the momentum, $K ( p )$ defines the momentum distribution, and $\xi$ is a control variate referred to as the temperature. Both $p$ and $\xi$ have the same dimensionality as $\theta$ . The hyper-parameter $m$ controls the strength of the coupling between $\xi$ and $p$ . The distribution of the control variate $p ( \xi )$ depends on the amount of noise $B$ in the stochastic gradient estimate $\ddot { \mathcal { L } } ( \boldsymbol { \theta } )$ .
48
+
49
+ # 2.3 Noise robust dynamics
50
+
51
+ Next we define the dynamics $Q ( z )$ and $D ( z )$ such that the SDE that results from (1) can be simulated without the need to evaluate $B$ :
52
+
53
+ $$
54
+ \begin{array} { r } { D ( \theta , p , \xi ) = \left( \begin{array} { c c c } { 0 } & { 0 } & { 0 } \\ { 0 } & { \alpha ( \xi ) m + \frac { 1 } { 2 } B } & { 0 } \\ { 0 } & { 0 } & { 0 } \end{array} \right) , \quad Q ( \theta , p , \xi ) = \left( \begin{array} { c c c } { 0 } & { - I } & { 0 } \\ { I } & { 0 } & { m \nabla K ( p ) } \\ { 0 } & { - m \nabla K ( p ) } & { 0 } \end{array} \right) , } \end{array}
55
+ $$
56
+
57
+ where $\alpha ( \xi )$ is a non-negative function that determines how the temperature $\xi$ affects the amount of noise added to the momentum update.
58
+
59
+ We first illustrate the resulting SDE by using a simpler Gaussian momentum distribution $K ( p ) = \left\| p \right\| ^ { 2 } / ( 2 m )$ . Note that the variance of the momentum $\operatorname { V a r } ( p ) = m$ is reused in (2) and (3) to control the strength of the coupling between $\xi$ and $p$ . This will result in a temperature control with a momentum friction term proportional to $\xi$ , unlike previously reported thermostat MCMC methods (Ding et al., 2014; Lu et al., 2016) where the friction term is proportional to $\xi / m$ . We substitute the dynamics $Q ( z )$ and $D ( z )$ defined in (3) and energy function $H ( z )$ defined in (2) into (1):
60
+
61
+ $$
62
+ \binom { d \theta } { d \xi } = \left( - \nabla \tilde { \mathcal { L } } ( \theta ) - \beta ( \xi ) p \right) d t + \left( \begin{array} { c c c } { 0 } & { 0 } & { 0 } \\ { 0 } & { \sqrt { 2 \alpha ( \xi ) m } } & { 0 } \\ { 0 } & { 0 } & { 0 } \end{array} \right) d W _ { t } , \beta ( \xi ) = \alpha ( \xi ) + \xi ,
63
+ $$
64
+
65
+ where we use $\nabla \tilde { \mathcal { L } } ( \boldsymbol { \theta } ) d t = \nabla \mathcal { L } ( \boldsymbol { \theta } ) d t + \sqrt { B } d W _ { t }$ to replace the gradient of the loss with the minibatch estimate. The momentum $p$ is dampened by a friction term $\beta ( \xi )$ that depends on the choice of $\alpha ( \xi )$ . The stochastic gradient noise $B$ does not show up in (4) due to the particular choice of energy function $H ( z )$ and dynamics $Q ( z ) , D ( z )$ . Note however this analysis relies on the assumption that the covariance of the stochastic gradient noise $B$ is constant in $\theta$ and a single temperature variable per parameter can only correct for a diagonal covariance $B$ . We do not expect that this assumption will hold in practice and the approximation will therefore lead to bias in the samples. However, annealing the step size $h$ will reduce the error due to mini-batching together with other sources of discretization error (Welling $\&$ Teh, 2011).
66
+
67
+ # 2.4 Adaptive Noise Thermostat
68
+
69
+ Finally, we must choose a function $\alpha ( \xi )$ which controls the amount of noise and momentum damping $\beta ( \xi )$ . Previous work uses the Nos´e-Hoover thermostat that is defined by $\alpha ( \xi ) = D _ { c }$ where $D _ { c }$ is a constant determining the amount of noise added to the momentum update (Ding et al., 2014). Although the Nos´e-Hoover thermostat is able to correct the stochastic gradient noise $B$ , the correction comes at the cost of slower convergence because additional friction $\beta ( \xi )$ is applied as $B$ increases. Another drawback of the Nos´e-Hoover thermostat is that it causes negative friction when $\xi < - D _ { c }$ . In the negative friction phase $\beta ( \xi ) < 0$ , previous gradient terms are amplified rather than dampened. Although this behavior is mathematically sound we find that it can cause exploding momentum variables.
70
+
71
+ Our choice of $\alpha ( \xi )$ is based on the idea that negative friction should not occur and convergence speed should not be reduced by the stochastic gradient noise. Based on this intuition, we define the ATMC sampler by $\alpha ( \xi ) = \operatorname* { m a x } ( D - \xi , 0 )$ . The ATMC sampler is best characterized by the various temperature stages. For $0 < \xi < D _ { c }$ the total amount of noise added to the momentum is $D _ { c }$ and the friction coefficient $\beta ( \xi ) = D _ { c }$ . At this stage, the stochastic gradient noise is compensated for by adding less noise to the momentum update. If $B \gg D _ { c }$ the dominant stage will be $\xi > D$ resulting in $\beta ( \xi ) < D _ { c }$ and zero noise being added to the momentum. Finally, when $\xi < 0$ the friction coefficient $\beta ( \xi ) = D _ { c }$ and the noise added to the momentum is proportional to $D _ { c } - \xi$ . Thus, the momentum always experiences a minimum amount of friction $\beta ( \xi ) \ge D _ { c }$ determined by the hyper-parameter $D _ { c }$ and the noise added to the momentum update is automatically adjusted based on the amount of noise present in the stochastic gradients.
72
+
73
+ # 2.5 Momentum energy function
74
+
75
+ Following (Lu et al., 2016), we generalize the momentum energy function $K ( p )$ to the symmetric hyperbolic distribution which is defined as follows (Lu et al., 2016):
76
+
77
+ $$
78
+ K ( p ) = \sum _ { i } m c ^ { 2 } \left[ \sqrt { \frac { p _ { i } ^ { 2 } } { m ^ { 2 } c ^ { 2 } } + 1 } - 1 \right] ,
79
+ $$
80
+
81
+ where $m$ and $c$ are hyper-parameters. The Gaussian kinetic energy $K ( p ) = \left\| p \right\| ^ { 2 } / ( 2 m )$ is a special case obtained by taking the limit $c \infty$ . The magnitude of parameter updates $\| \Delta \theta \|$ is determined by the gradient of the momentum:
82
+
83
+ $$
84
+ \| \Delta \theta \| = \| \nabla K ( p ) \| = \left\| \frac { p } { M ( p ) } \right\| , \quad M ( p ) = m \sqrt { \frac { p ^ { 2 } } { m ^ { 2 } c ^ { 2 } } + 1 } .
85
+ $$
86
+
87
+ Hence, the hyperbolic distribution results in relativistic momentum dynamics where the parameter updates are upper bounded by $c$ and the pre-conditioner √ $M ( p )$ depends on $p$ . The average update magnitude $\mathcal { E } [ | \nabla K ( p ) | | ] \approx 1 / \sqrt { m }$ for $c \gg m$ . Consequently, the parameters $m$ and $c$ are interpretable hyper-parameters controlling the average and maximum parameter update per step together with the step size $h$ .
88
+
89
+ The SDE we derive in (4) and integrate in Sec. 3 uses a Gaussian momentum energy function for clarity. Deriving ATMC with a different momentum distribution like the hyperbolic distribution amounts to substituting (2), (3), and the alternative momentum distribution into (1). For the hyperbolic distribution, the dynamic friction coefficient $\beta ( \xi )$ will also depend on $p$ . For the numerical integration of (4) with a hyperbolic momentum distribution we assume $\beta ( \xi )$ to be constant in $p$ .
90
+
91
+ # 3 Improved numerical integrator for MCMC samplers
92
+
93
+ In this section we construct the numerical integrator required to numerically approximate the ATMC sampler defined in (4). An efficient numerical integrator can be constructed by splitting the SDE into two terms:
94
+
95
+ $$
96
+ \binom { d \theta } { d \xi } = \underbrace { \binom { p / m } { 0 } } _ { \displaystyle { p ^ { 2 } / m - 1 } } d t + \underbrace { \left( - \nabla \tilde { \mathcal { L } } ( \theta ) - \beta ( p , \xi ) p \right) d t + \left( 0 \begin{array} { c c c } { 0 } & { 0 } & { 0 } \\ { 0 } & { \sqrt { 2 \alpha ( \xi ) m } } & { 0 } \\ { 0 } & { 0 } & { 0 } \end{array} \right) d W _ { t } } _ { B } .
97
+ $$
98
+
99
+ Hence, we obtain a linear ODE in part (A) that updates the parameters $\theta$ and the thermostats $\xi$ and a linear SDE in part (B) that updates the momentum $p$ . The operators that simulate these dynamics exactly for a time step $h$ are denoted $\phi _ { A } ^ { h }$ and $\phi _ { B } ^ { h }$ , respectively. Using the Strang splitting scheme yields a second order method (Chen et al., 2015):
100
+
101
+ $$
102
+ \phi ^ { h } = \phi _ { B } ^ { h / 2 } \circ \phi _ { A } ^ { h } \circ \phi _ { B } ^ { h / 2 } .
103
+ $$
104
+
105
+ The first operator $\phi _ { A } ^ { h }$ is given by
106
+
107
+ $$
108
+ \begin{array} { r } { \phi _ { A } ^ { h } ( z _ { t } ) = \left( \theta _ { t } + h \frac { p _ { t } } { m } \quad p _ { t } \quad \xi _ { t } + h \left[ \frac { p _ { t } ^ { 2 } } { m } - 1 \right] \right) ^ { T } . } \end{array}
109
+ $$
110
+
111
+ The second operator $\phi _ { B }$ is an instance of the Ornstein–Uhlenbeck process which can also be computed analytically as follows (Nelson, 1967):
112
+
113
+ $$
114
+ \begin{array} { r l } { \phi _ { B } ^ { h } ( z _ { t } ) = \Big ( \theta _ { t } } & { e ^ { \beta ( \xi _ { t } ) h } \Big [ p _ { t } - \gamma _ { 1 } ( \xi _ { t } ) \nabla \tilde { \mathcal { L } } ( \theta _ { t } ) + \sqrt { \gamma _ { 2 } ( \xi _ { t } ) \alpha ( \xi _ { t } ) } ~ \eta _ { t } \Big ] \quad \xi _ { t } \Big ) ^ { T } , } \\ & { \quad \quad \gamma _ { a } ( \xi _ { t } ) = \frac { \exp [ a \beta ( \xi _ { t } ) h ] - 1 } { \beta ( \xi _ { t } ) } , } \end{array}
115
+ $$
116
+
117
+ where $\eta _ { t }$ is isotropic Gaussian noise. Previous work (Chen et al., 2015) on higher order integrators for samplers splits the SDE into three parts where the third term is obtained from separating the friction term from the other terms in the momentum update $\phi _ { B }$ . By integrating (10) exactly the gradient step and the noise and gradient term are directly affected by the friction. An exact momentum update provides additional robustness to large gradients because the temperature will increase in order to compensate for momentum updates that would lead to excessively large steps. Another advantage of a two-way split integrator is that the first and last steps in (8) can be fused together such that only a momentum update is performed per iteration. Algorithm 1 shows the pseudocode for the ATMC sampler with the split integrator defined in (9) and (10).
118
+
119
+ # 4 The ResNet++ Architecture
120
+
121
+ The generalization performance of large neural nets trained using optimization depend on stochastic regularization methods like Dropout (Srivastava et al., 2014) and BatchNorm (Ioffe & Szegedy, 2015). These methods implicitly add noise into the model parameters (Kingma et al., 2015; Teye et al., 2018) and significantly boost training performance and generalization for image classifiers. These methods can be interpreted as a coarse approximation of Bayesian Inference (Kingma et al., 2015; Teye et al., 2018). But a stochastic gradient sampler like ATMC already adds the necessary amount of noise and combined with BatchNorm or Dropout it leads to underfitting. We thus define a BatchNorm free version of ResNet called ResNet++ that includes SELUs (Klambauer et al., 2017), Fixup initialization (Zhang et al., 2019a) and weight normalization (Salimans & Kingma, 2016) (see Fig. 1). We use ATMC to fill the significant gap in performance due to the absence of BatchNorm in ResNet++.
122
+
123
+ Figure 1: Residual blocks in respectively the ResNet and $\mathrm { R e s N e t { + + } }$ architectures.
124
+
125
+ <table><tr><td rowspan=1 colspan=1>x</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>ReLU</td><td rowspan=1 colspan=1>Conv 3x3</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>ReLU</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>+x</td><td rowspan=1 colspan=1>ReLU</td></tr><tr><td rowspan=1 colspan=1>x</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>SeLU</td><td rowspan=1 colspan=1>Conv 3x3</td><td rowspan=1 colspan=1>SeLU</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>+x</td><td rowspan=1 colspan=1>SeLU</td><td></td><td></td><td></td></tr></table>
126
+
127
+ ![](images/3581dff74a2bd9e2f91fa7c34ce15d9be1bcc8162cfbad8a4e171f8cab32d0ff.jpg)
128
+ Figure 2: Calibration plot for Cifar10
129
+
130
+ ![](images/f0139509c48ef718aaaace052fe20b41da0beb0225dc95165077a1b68ecb2edf.jpg)
131
+ Figure 3: Calibration plot for ImageNet
132
+
133
+ # 4.1 SELU
134
+
135
+ We find the SELU activation to work well in BatchNorm free networks. SELU forces the statistics of the activations towards zero mean and unit variance (Klambauer et al., 2017). The SELU activation function additionally has a non-zero gradient everywhere which could improve the mixing of the sampler by providing a more informative gradient.
136
+
137
+ # 4.2 Fixup initialization
138
+
139
+ ResNets are known to scale well with depth (He et al., 2016). However, the additive effect of the residual branch causes the magnitudes of the activations to increase with the number of residual connections. Fixup is a recently proposed initialization method that mitigates the exploding residual branch problem without using BatchNorm (Zhang et al., 2019a). We use a simplified version of Fixup by initializing the scales of the final layer in each residual branch to a small constant.
140
+
141
+ # 4.3 Weight normalization
142
+
143
+ We use weight normalization (Salimans $\&$ Kingma, 2016) to separate the direction and scale of each linear feature vector
144
+
145
+ $$
146
+ \theta ^ { ( i ) } = \phi _ { s } ^ { ( i ) } \frac { \phi _ { d } ^ { ( i ) } } { \left\| \phi _ { d } ^ { ( i ) } \right\| } ,
147
+ $$
148
+
149
+ Table 1: Performance on Cifar10 with ResNet-56 model. The posterior predictive is estimate using a sample of the posterior parameters at the end of each learning rate cycle.
150
+
151
+ <table><tr><td>Setup</td><td>Top 1 acc. [%]</td></tr><tr><td>SGD</td><td>91.5</td></tr><tr><td>SGD + BatchNorm</td><td>94.4</td></tr><tr><td>ATMC (single sample)</td><td></td></tr><tr><td>ATMC (Posterior predictive)</td><td></td></tr><tr><td>SGNHT (single sample)</td><td></td></tr><tr><td>SGNHT (Posterior predictive)</td><td></td></tr></table>
152
+
153
+ where φ(i)d is the direction vector and $\phi _ { s } ^ { ( i ) }$ is the magnitude of a feature vector $\theta ^ { ( i ) }$ . Weight normalization does not depend on batch statistics and is compatible with MCMC methods.
154
+
155
+ The scale of the direction vector does not affect the outputs of the model. It does however affect the effective step size (Wu et al., 2018). Therefore the prior on the direction vector $\phi _ { d } ^ { ( i ) }$ is chosen such that it is forced to unit length
156
+
157
+ $$
158
+ p ( \phi _ { d } ^ { ( i ) } ) \propto \exp \left[ - \frac { d } { 2 } \left( \left\| \phi _ { d } ^ { ( i ) } \right\| ^ { 2 } - 1 \right) ^ { 2 } \right] .
159
+ $$
160
+
161
+ The prior on the scales $p ( \phi _ { s } )$ is problem-specific and can for example be chosen to encode a preference for structurally sparse models.
162
+
163
+ # 5 Experiments
164
+
165
+ The experiments presented here aim to demonstrate that the ATMC sampler is competitive with a well-tuned optimization baseline for large-scale datasets and models. We use the TensorFlow official implementation of ResNet-56 and ResNet-50 on Cifar10 and ImageNet, respectively. We compare our ATMC sampler to an optimization baseline with and without BatchNorm. For the optimization baseline without BatchNorm we use the ResNet $^ { + + }$ architecture as described in Sec. 4. For the baseline with BatchNorm we found standard ResNet with Xavier initialization and the ReLU non-linearity to work better.
166
+
167
+ For the ATMC sampler we report both the performance of a single sample and the estimated posterior predictive based on a finite number of samples. Similar to earlier work (Zhang et al., 2019b) we found that many fewer samples are needed when a cyclic step size $h _ { t } =$ $h _ { 0 } * \frac { 1 } { 2 } [ 1 + \cos ( \pi \bmod [ t , n ] ) ]$ with cycle length $n$ is used. The final sample in each cycle is used to estimate the posterior predictive.
168
+
169
+ For $\mathrm { R e s N e t { + + } }$ we further use a group Laplace prior $p ( \theta _ { i } ) \propto \exp ( - \left\| \theta _ { i } \right\| / b )$ with $b = 5$ to regularize the scales of each linear feature in ResNet $^ { + + }$ . The momentum noise is chosen as $D _ { c } = - \log ( 0 . 9 ) / h _ { 0 }$ such that the friction applied to the momentum is at least 0.9.
170
+
171
+ # 5.1 Cifar 10
172
+
173
+ For Cifar10 we choose the step size $h _ { 0 } = 0 . 0 0 1$ and the cycle length is set to 50 epochs. The momentum hyper-parameters are $m = ( 0 . 0 0 0 3 / h _ { 0 } ) ^ { - 2 }$ and $c = 0 . 0 0 1 / h _ { 0 }$ such that the average speed and maximum speed per step are 0.0003 and 0.001, respectively. The number of convolution filters is doubled to 32 compared to the original ResNet-56 implementation. We use a single V100 GPU with a batch size of 128. The sampler runs for 1000 epochs and we start collecting samples for the posterior predictive after 150 epochs. The optimization baseline converges in 180 epochs. We also report the results of sampling with a sampler based Nos´e-Hoover thermostats (SGNHT) (Ding et al., 2014; Lu et al., 2016) applied to the ResNet++ architecture.
174
+
175
+ Table 2: Performance on ImageNet with ResNet-50 model. The posterior predictive is estimated using a sample of the posterior parameters at the end of each learning rate cycle.
176
+
177
+ <table><tr><td>Setup</td><td>Top 1 acc. [%]</td></tr><tr><td>SGD</td><td>70.9</td></tr><tr><td>SGD + BatchNorm</td><td>76.2</td></tr><tr><td>ATMC (single sample)</td><td>74.2</td></tr><tr><td>ATMC (Posterior predictive)</td><td></td></tr><tr><td>SGNHT (single sample)</td><td></td></tr><tr><td>SGNHT ( (Posterior predictive)</td><td></td></tr></table>
178
+
179
+ Table 1 lists the test set performance for Cifar10. A single sample from the posterior already outperforms the baseline without BatchNorm by a significant margin in both test accuracy and log-likelihood. Using BatchNorm significantly improves the generalization of the optimization baseline. It outperforms the estimate of the posterior predictive in accuracy yet it does not have a better test log-likelihood.
180
+
181
+ To further analyze the quality of the uncertainty estimates, we group each model’s prediction in 8 equally sized bins based on the confidence $p ( \hat { \omega } _ { i } | x _ { i } )$ where $\hat { \omega } _ { i }$ is the maximum probability class for example $x _ { i }$ . If the probabilities are well-calibrated, the average confidence should be close to the average accuracy. Figure 2 shows the calibration of the uncertainty estimates for the posterior predictive and optimization baselines. The posterior predictive is calibrated for the least confident predictions $p ( \hat { \omega } _ { i } | x _ { i } ) < 0 . 9$ and shows less bias towards overconfidence compared to the models trained with SGD.
182
+
183
+ # 5.2 ImageNet
184
+
185
+ For the ImageNet experiments we use an initial step size $h _ { 0 } = 0 . 0 0 0 5$ and a cycle length of 20 epochs. The other hyper-parameters for the sampler are the same as for the Cifar10 experiments. We use a a single Google Cloud TPUv3 with a batch size of 1024. We did not observe a significant difference in wall clock time per training step between SGD and ATMC on the same model. Each training step using ResNet $^ +$ BatchNorm model takes $2 0 \%$ longer in wall clock time compared to a single train step using ResNet $^ { + + }$ . Samples for the posterior predictive are collected after 150 epochs and the sampler runs for 1000 epochs. The optimization baseline converges in 90 epochs.
186
+
187
+ Table 2 lists the results for ImageNet classification. A single sample from the posterior outperforms the optimization baseline without BatchNorm. The posterior predictive based on ATMC outperforms the optimizer with BatchNorm by a wide margin in both accuracy and test log-likelihood. We note that the sampler runs significantly longer (10x) compared to the optimization baseline because it takes a long time for the posterior predictive estimate to converge. However, the posterior predictive of ATMC matches the accuracy of the optimization baseline with BatchNorm (76.2%) after 240 epochs.
188
+
189
+ Figure 3 shows the quality of the uncertainty for various levels of confidence. Again, the ATMC based posterior predictive produces much better calibrated predictions and is almost perfectly calibrated for low confidence predictions $p ( \hat { \omega } _ { i } | x _ { i } ) < 0 . 9$ and shows less bias towards overconfidence compared to the optimization baseline.
190
+
191
+ # 6 Discussion
192
+
193
+ The empirical results show it is possible to sample the posterior distribution of neural networks on large scale image classification problems like ImageNet. A major obstacle for sampling the posterior of ResNets in particular is the lack of compatibility with BatchNorm. Using recent advances in initialization and the SELU activation function we are able to stabilize and speed up training of ResNets without resorting to BatchNorm. Nonetheless, we observe that BatchNorm still offers a unique advantage in terms of generalization performance. We hope that future work will allow the implicit inductive bias that BatchNorm has to be transferred into an explicit prior that is compatible with sampling methods.
194
+
195
+ Multiple posterior samples provide a much more accurate estimate of the posterior predictive, and consequently much better accuracy and uncertainty estimates. For inference, making predictions using a large ensemble of models sampled from the posterior can be costly. Variational Inference methods can be used to quickly characterize a local mode of the posterior (Blundell et al., 2015). More recent work shows that a running estimate of the mean and variance of the parameters during training can also be used to approximate a mode of the posterior (Maddox et al., 2019). Methods like distillation could potentially be used to compress a high-quality ensemble into a single network with a limited computational budget (Balan et al., 2015).
196
+
197
+ Although the form in (4) is very general, alternative methods for dealing with stochastic gradients have been proposed in the literature. One approach is to estimate the covariance of the stochastic gradient noise $B$ explicitly and use it correct and pre-condition the sampling dynamics (Ahn et al., 2012; Li et al., 2016).
198
+
199
+ Other sampling methods are not based on an SDE that converges to the target distribution. Under some conditions stochastic optimization methods can be interpreted as such a biased sampling method (Mandt et al., 2017). Predictions based on multiple samples from the trajectory of SGD have been used successfully for obtaining uncertainty estimates in large scale Deep Learning (Maddox et al., 2019). However, these methods rely on tuning hyperparameters in such a way that just the right amount of noise is inserted.
200
+
201
+ # 7 Conclusion
202
+
203
+ This work introduces the ATMC sampler, a robust posterior sampling method that scales to large deep learning problems. To the best of our knowledge, we are the first to successfully train neural networks using MCMC on ImageNet. In a BatchNorm free setting, a single sample from the posterior generated by ATMC outperforms the optimization baseline. A posterior predictive estimate outperforms the optimization baseline with BatchNorm on ImageNet. Based on these empirical results we hope the ATMC sampler will enable new applications of Bayesian inference in deep learning.
204
+
205
+ # References
206
+
207
+ Sungjin Ahn, Anoop Korattikara, and Max Welling. Bayesian posterior sampling via stochastic gradient fisher scoring. arXiv preprint arXiv:1206.6380, 2012.
208
+
209
+ Anoop Korattikara Balan, Vivek Rathod, Kevin P Murphy, and Max Welling. Bayesian dark knowledge. In Advances in Neural Information Processing Systems, pp. 3438–3446, 2015.
210
+
211
+ Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pp. 1613– 1622, 2015.
212
+
213
+ Changyou Chen, Nan Ding, and Lawrence Carin. On the convergence of stochastic gradient mcmc algorithms with high-order integrators. In Advances in Neural Information Processing Systems, 2015.
214
+
215
+ Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pp. 1683–1691, 2014.
216
+
217
+ Nan Ding, Youhan Fang, Ryan Babbush, Changyou Chen, Robert D Skeel, and Hartmut Neven. Bayesian sampling using stochastic gradient thermostats. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3203–3211. Curran Associates, Inc., 2014.
218
+
219
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
220
+
221
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015.
222
+
223
+ Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in neural information processing systems, pp. 5574–5584, 2017.
224
+
225
+ Durk P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems, pp. 2575– 2583, 2015.
226
+
227
+ G¨unter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Selfnormalizing neural networks. In Advances in neural information processing systems, pp. 971–980, 2017.
228
+
229
+ Chunyuan Li, Changyou Chen, David Carlson, and Lawrence Carin. Preconditioned stochastic gradient langevin dynamics for deep neural networks. In Thirtieth AAAI Conference on Artificial Intelligence, 2016.
230
+
231
+ Xiaoyu Lu, Valerio Perrone, Leonard Hasenclever, Yee Whye Teh, and Sebastian J Vollmer. Relativistic monte carlo. arXiv preprint arXiv:1609.04388, 2016.
232
+
233
+ Yi-An Ma, Tianqi Chen, and Emily Fox. A complete recipe for stochastic gradient mcmc. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2917–2925. Curran Associates, Inc., 2015.
234
+
235
+ Wesley Maddox, Timur Garipov, Pavel Izmailov, Dmitry Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. arXiv preprint arXiv:1902.02476, 2019.
236
+
237
+ Stephan Mandt, Matthew D Hoffman, and David M Blei. Stochastic gradient descent as approximate bayesian inference. The Journal of Machine Learning Research, 18(1):4873– 4907, 2017.
238
+
239
+ Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011.
240
+
241
+ Edward Nelson. Dynamical theories of Brownian motion, volume 3. Princeton university press, 1967.
242
+
243
+ Ian Osband and Benjamin Van Roy. Why is posterior sampling better than optimism for reinforcement learning? In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2701–2710. JMLR. org, 2017.
244
+
245
+ Bala Rajaratnam and Doug Sparks. Mcmc-based inference in the era of big data: A fundamental analysis of the convergence complexity of high-dimensional chains. arXiv preprint arXiv:1508.00947, 2015.
246
+
247
+ Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016.
248
+
249
+ Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014.
250
+
251
+ Mattias Teye, Hossein Azizpour, and Kevin Smith. Bayesian uncertainty estimation for batch normalized deep networks. arXiv preprint arXiv:1802.06455, 2018.
252
+
253
+ Yu-Xiang Wang, Stephen Fienberg, and Alex Smola. Privacy for free: Posterior sampling and stochastic gradient monte carlo. In International Conference on Machine Learning, pp. 2493–2502, 2015.
254
+
255
+ Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 681–688, 2011.
256
+
257
+ Xiaoxia Wu, Rachel Ward, and L´eon Bottou. Wngrad: learn the learning rate in gradient descent. arXiv preprint arXiv:1803.02865, 2018.
258
+
259
+ Hongyi Zhang, Yann N Dauphin, and Tengyu Ma. Fixup initialization: Residual learning without normalization. arXiv preprint arXiv:1901.09321, 2019a.
260
+
261
+ Ruqi Zhang, Chunyuan Li, Jianyi Zhang, Changyou Chen, and Andrew Gordon Wilson. Cyclical stochastic gradient mcmc for bayesian deep learning. arXiv preprint arXiv:1902.03932, 2019b.
parse/train/rklFh34Kwr/rklFh34Kwr_content_list.json ADDED
@@ -0,0 +1,1372 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Bayesian Inference for Large Scale Image Classification ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 99,
9
+ 722,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 419,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 452,
31
+ 234,
32
+ 545,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Bayesian inference promises to ground and improve the performance of deep neural networks. It promises to be robust to overfitting, to simplify the training procedure and the space of hyperparameters, and to provide a calibrated measure of uncertainty that can enhance decision making, agent exploration and prediction fairness. Markov Chain Monte Carlo (MCMC) methods enable Bayesian inference by generating samples from the posterior distribution over model parameters. Despite the theoretical advantages of Bayesian inference and the similarity between MCMC and optimization methods, the performance of sampling methods has so far lagged behind optimization methods for large scale deep learning tasks. We aim to fill this gap and introduce ATMC, an adaptive noise MCMC algorithm that estimates and is able to sample from the posterior of a neural network. ATMC dynamically adjusts the amount of momentum and noise applied to each parameter update in order to compensate for the use of stochastic gradients. We use a ResNet architecture without batch normalization to test ATMC on the Cifar10 benchmark and the large scale ImageNet benchmark and show that, despite the absence of batch normalization, ATMC outperforms a strong optimization baseline in terms of both classification accuracy and test log-likelihood. We show that ATMC is intrinsically robust to overfitting on the training data and that ATMC provides a better calibrated measure of uncertainty compared to the optimization baseline. ",
40
+ "bbox": [
41
+ 233,
42
+ 268,
43
+ 764,
44
+ 559
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 592,
55
+ 339,
56
+ 608
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In contrast to optimization approaches in machine learning that derive a single estimate for the weights of a neural network, Bayesian inference aims at deriving a posterior distribution over the weights of the network. This makes it possible to sample model instances from the distribution over the weights and offers unique advantages. Multiple model instances can be aggregated to obtain robust uncertainty estimates over the network’s predictions; uncertainty estimates are crucial in domains such as medical diagnosis and autonomous driving where following a model’s incorrect predictions can result in catastrophe (Kendall & Gal, 2017). Sampling a distribution, as opposed to optimizing a loss, is less prone to overfitting and more training doesn’t decrease test performance. Bayesian inference can also be applied to differential privacy, where each individual sample has increased privacy guarantees (Wang et al., 2015), and to reinforcement learning, where one can leverage model uncertainty to balance between exploration and exploitation (Osband & Van Roy, 2017). ",
63
+ "bbox": [
64
+ 174,
65
+ 625,
66
+ 823,
67
+ 791
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Traditional Markov Chain Monte Carlo (MCMC) methods like HMC (Neal et al., 2011) are a standard class of methods for generating samples from the posterior distribution over model parameters. These methods are seldom applied in deep learning because they have traditionally failed to scale well with large datasets and many parameters (Rajaratnam $\\&$ Sparks, 2015). Stochastic Gradient MCMC (SG-MCMC) methods have fared somewhat better in scaling to large datasets due to their close relationship to stochastic optimization methods. For example the SGLD sampler (Welling & Teh, 2011) amounts to performing stochastic gradient descent while adding Gaussian noise to each parameter update. Despite these improvements, samplers like SGLD are only guaranteed to converge to the correct distribution when the step size is annealed to zero; additional control variates have been developed to mitigate this to some extent (Ahn et al., 2012; Ding et al., 2014). ",
74
+ "bbox": [
75
+ 174,
76
+ 797,
77
+ 823,
78
+ 924
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "table",
84
+ "img_path": "images/f6b91add1f7d7fa9117154e8130dcdcf956c3a23ee49759800c179f787728bd8.jpg",
85
+ "table_caption": [
86
+ "Algorithm 1 The ATMC sampler. The algorithm accepts the initialized model parameters $\\pmb { \\theta } _ { 0 }$ , step size $h$ , pre-conditioner $m$ , and momentum noise $D _ { c }$ . "
87
+ ],
88
+ "table_footnote": [],
89
+ "table_body": "<table><tr><td colspan=\"4\">1: procedure ATMC_TRAINING(0o,h,m,D)</td></tr><tr><td>2:</td><td>Po←0</td><td></td><td></td></tr><tr><td>3:</td><td>m←0</td><td></td><td></td></tr><tr><td>4:</td><td>whilet&lt;Tdo</td><td></td><td></td></tr><tr><td>5:</td><td></td><td>Gt ← minibatch_gradient(0t)</td><td></td></tr><tr><td>6:</td><td>nt ← random_normal()</td><td></td><td></td></tr><tr><td>7:</td><td>αt ←max(D-εt,0)</td><td></td><td></td></tr><tr><td>8:</td><td>βt←αt+t</td><td></td><td></td></tr><tr><td>9:</td><td>Pt+h←eβth</td><td>exp[Bth]-1Gt+ Pt-</td><td>exp[2βth]-1 αtnt</td></tr><tr><td>10:</td><td>0t+h←0t+hPt+h</td><td>βt</td><td>βt</td></tr><tr><td>11:</td><td>St+h←t+h</td><td>-1]</td><td></td></tr><tr><td>12:</td><td></td><td>m</td><td></td></tr><tr><td></td><td>t←t+h</td><td></td><td></td></tr></table>",
90
+ "bbox": [
91
+ 176,
92
+ 137,
93
+ 637,
94
+ 337
95
+ ],
96
+ "page_idx": 1
97
+ },
98
+ {
99
+ "type": "text",
100
+ "text": "",
101
+ "bbox": [
102
+ 176,
103
+ 364,
104
+ 820,
105
+ 393
106
+ ],
107
+ "page_idx": 1
108
+ },
109
+ {
110
+ "type": "text",
111
+ "text": "The objective of this work is to make Bayesian inference practical for deep learning by making SG-MCMC methods scale to large models and datasets. The contributions described in this work fall in three categories. We first propose the Adaptive Thermostat Monte Carlo (ATMC) sampler that offers improved convergence and stability. ATMC dynamically adjusts the amount of momentum and noise applied to each model parameter. Secondly, we improve an existing second order numerical integration method that is needed for the ATMC sampler. Third, since ATMC, like other SG-MCMC samplers, is not directly compatible with stochastic regularization methods such as batch normalization (BatchNorm) and Dropout (see Sect. 4), we construct the ResNet++ network by taking the original ResNet architecture (He et al., 2016), removing BatchNorm and introducing SELUs (Klambauer et al., 2017), Fixup initialization (Zhang et al., 2019a) and weight normalization (Salimans & Kingma, 2016). We design ResNet $^ { + + }$ so that its parameters are easy to sample from and the gradients are well-behaved even in the absence of BatchNorm. ",
112
+ "bbox": [
113
+ 174,
114
+ 400,
115
+ 823,
116
+ 579
117
+ ],
118
+ "page_idx": 1
119
+ },
120
+ {
121
+ "type": "text",
122
+ "text": "We show that the ATMC sampler is able to outperform optimization methods in terms of accuracy, log-likelihood and uncertainty calibration in the following settings. First, when using the ResNet $^ { + + }$ architecture for both the ATMC sampler and the optimization baseline, the ATMC sampler significantly outperforms the optimization baseline on both Cifar-10 and ImageNet. Secondly, when using the standard ResNet for the optimization baseline and the ResNet++ for the ATMC sampler, multiple samples of the ATMC that approximate the predictive posterior of the model are still able to outperform the optimization baseline on ImageNet. Using the ResNet $^ { + + }$ architecture, the ATMC sampler reduces the need for hyper-parameter tuning since it does not require early stopping, does not use stochastic regularization, is not prone to over-fitting on the training data and avoids a carefully tuned learning rate decay schedule. ",
123
+ "bbox": [
124
+ 174,
125
+ 587,
126
+ 825,
127
+ 739
128
+ ],
129
+ "page_idx": 1
130
+ },
131
+ {
132
+ "type": "text",
133
+ "text": "2 ATMC Sampler ",
134
+ "text_level": 1,
135
+ "bbox": [
136
+ 176,
137
+ 761,
138
+ 361,
139
+ 777
140
+ ],
141
+ "page_idx": 1
142
+ },
143
+ {
144
+ "type": "text",
145
+ "text": "In this section we define the Stochastic Differential Equation (SDE) that gives rise to the ATMC sampler described in Algorithm 1. A detailed background and framework for constructing SDEs that converge to a target distribution can be found in (Ma et al., 2015). ",
146
+ "bbox": [
147
+ 176,
148
+ 794,
149
+ 823,
150
+ 837
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "2.1 General form of the SDE ",
157
+ "text_level": 1,
158
+ "bbox": [
159
+ 176,
160
+ 854,
161
+ 436,
162
+ 869
163
+ ],
164
+ "page_idx": 1
165
+ },
166
+ {
167
+ "type": "text",
168
+ "text": "Our starting point for constructing the ATMC sampler is the framework of Stochastic Differential Equations. We are interested in SDEs that converge to a distribution $p ( z )$ over the vector $z \\in \\mathbb { R } ^ { d }$ for which we can evaluate $\\nabla \\log p ( z )$ . Because only the gradient of $\\log p ( z )$ ",
169
+ "bbox": [
170
+ 176,
171
+ 882,
172
+ 823,
173
+ 924
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "is required, it is sufficient to define an energy function $H ( z ) = - \\log p ( z ) + C$ up to a constant $C$ . As a consequence, we can sample from the posterior distribution $p ( \\theta | x )$ by only evaluating the energy function gradient $\\nabla H ( \\theta ) = - \\nabla \\log p ( x , \\theta )$ . The general form of SDEs converging to $p ( z )$ for which only the gradient of $p ( z )$ is required is as follows (Ma et al., 2015): ",
180
+ "bbox": [
181
+ 173,
182
+ 102,
183
+ 825,
184
+ 174
185
+ ],
186
+ "page_idx": 2
187
+ },
188
+ {
189
+ "type": "equation",
190
+ "img_path": "images/c48fae0a891e4dd94dbb8437589c7a18be73b39018fe253810f579bf8adddd60.jpg",
191
+ "text": "$$\n\\small { \\begin{array} { l } { \\displaystyle { d z = - \\left[ D ( z ) + Q ( z ) \\right] \\nabla H ( z ) d t + \\Gamma ( z ) d t + \\sqrt { 2 D ( z ) } d W _ { t } , \\quad \\Gamma _ { i } ( z ) = \\sum _ { j } ^ { d } \\frac { \\partial \\left[ D _ { i j } ( z ) + Q _ { i j } ( z ) \\right] } { \\partial z _ { j } } , } } \\end{array} }\n$$",
192
+ "text_format": "latex",
193
+ "bbox": [
194
+ 181,
195
+ 205,
196
+ 820,
197
+ 248
198
+ ],
199
+ "page_idx": 2
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "where $D ( z )$ is a positive-definite matrix that determines the amount of noise, $Q ( z )$ is a skew-symmetric matrix that mixes energy between variables, $W _ { t }$ is a Wiener process, and $\\Gamma ( z )$ is a correction factor that compensates for dynamics that depend on the current state $z$ . The ATMC sampler that we propose is an instance of (1) for specific definitions of $H ( z )$ , $D ( z )$ , and $Q ( z )$ . ",
204
+ "bbox": [
205
+ 173,
206
+ 267,
207
+ 825,
208
+ 339
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "2.2 Energy Function ",
215
+ "text_level": 1,
216
+ "bbox": [
217
+ 174,
218
+ 359,
219
+ 361,
220
+ 375
221
+ ],
222
+ "page_idx": 2
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "We start by defining the energy function $H ( z )$ . The energy function for the model posterior $p ( \\theta | x )$ is defined by the loss function $\\mathcal { L } ( \\theta ) = - \\log p ( x , \\theta )$ . Because the dataset $x$ is generally large, we would like to only evaluate a mini-batch loss $\\ddot { \\mathcal { L } } ( \\boldsymbol { \\theta } )$ . However, naively using a stochastic gradient in (1) will result in significant bias (Chen et al., 2014). Motivated by the Central Limit Theorem, the stochastic gradient is assumed to follow a Gaussian distribution $\\nabla \\tilde { \\mathcal { L } } ( \\theta ) \\sim \\mathcal { N } ( \\nabla \\mathcal { L } ( \\theta ) , B )$ where the covariance $B$ is additionally assumed to be diagonal and constant w.r.t. $\\theta$ . The energy function for the ATMC sampler is defined as: ",
227
+ "bbox": [
228
+ 173,
229
+ 386,
230
+ 825,
231
+ 489
232
+ ],
233
+ "page_idx": 2
234
+ },
235
+ {
236
+ "type": "equation",
237
+ "img_path": "images/6d009852acea78c9b6ddf49998bac412e8e87eb39ec4a79d429621a8c015cc54.jpg",
238
+ "text": "$$\nH ( \\theta , p , \\xi ) = \\mathcal { L } ( \\theta ) + K ( p ) + \\frac { 1 } { 2 } \\left( \\xi - \\frac { \\mathrm { d i a g } ( B ) } { 2 m } \\right) ^ { 2 } ,\n$$",
239
+ "text_format": "latex",
240
+ "bbox": [
241
+ 330,
242
+ 513,
243
+ 666,
244
+ 550
245
+ ],
246
+ "page_idx": 2
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "where $p$ is the momentum, $K ( p )$ defines the momentum distribution, and $\\xi$ is a control variate referred to as the temperature. Both $p$ and $\\xi$ have the same dimensionality as $\\theta$ . The hyper-parameter $m$ controls the strength of the coupling between $\\xi$ and $p$ . The distribution of the control variate $p ( \\xi )$ depends on the amount of noise $B$ in the stochastic gradient estimate $\\ddot { \\mathcal { L } } ( \\boldsymbol { \\theta } )$ . ",
251
+ "bbox": [
252
+ 173,
253
+ 566,
254
+ 825,
255
+ 640
256
+ ],
257
+ "page_idx": 2
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "2.3 Noise robust dynamics ",
262
+ "text_level": 1,
263
+ "bbox": [
264
+ 176,
265
+ 661,
266
+ 405,
267
+ 676
268
+ ],
269
+ "page_idx": 2
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Next we define the dynamics $Q ( z )$ and $D ( z )$ such that the SDE that results from (1) can be simulated without the need to evaluate $B$ : ",
274
+ "bbox": [
275
+ 173,
276
+ 688,
277
+ 825,
278
+ 718
279
+ ],
280
+ "page_idx": 2
281
+ },
282
+ {
283
+ "type": "equation",
284
+ "img_path": "images/43b950835b031456323437e1729455cdd14f9c8163e828d35d1315acd42b8175.jpg",
285
+ "text": "$$\n\\begin{array} { r } { D ( \\theta , p , \\xi ) = \\left( \\begin{array} { c c c } { 0 } & { 0 } & { 0 } \\\\ { 0 } & { \\alpha ( \\xi ) m + \\frac { 1 } { 2 } B } & { 0 } \\\\ { 0 } & { 0 } & { 0 } \\end{array} \\right) , \\quad Q ( \\theta , p , \\xi ) = \\left( \\begin{array} { c c c } { 0 } & { - I } & { 0 } \\\\ { I } & { 0 } & { m \\nabla K ( p ) } \\\\ { 0 } & { - m \\nabla K ( p ) } & { 0 } \\end{array} \\right) , } \\end{array}\n$$",
286
+ "text_format": "latex",
287
+ "bbox": [
288
+ 197,
289
+ 750,
290
+ 779,
291
+ 797
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "where $\\alpha ( \\xi )$ is a non-negative function that determines how the temperature $\\xi$ affects the amount of noise added to the momentum update. ",
298
+ "bbox": [
299
+ 173,
300
+ 815,
301
+ 823,
302
+ 845
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "text",
308
+ "text": "We first illustrate the resulting SDE by using a simpler Gaussian momentum distribution $K ( p ) = \\left\\| p \\right\\| ^ { 2 } / ( 2 m )$ . Note that the variance of the momentum $\\operatorname { V a r } ( p ) = m$ is reused in (2) and (3) to control the strength of the coupling between $\\xi$ and $p$ . This will result in a temperature control with a momentum friction term proportional to $\\xi$ , unlike previously reported thermostat MCMC methods (Ding et al., 2014; Lu et al., 2016) where the friction term is proportional to $\\xi / m$ . We substitute the dynamics $Q ( z )$ and $D ( z )$ defined in (3) and energy function $H ( z )$ defined in (2) into (1): ",
309
+ "bbox": [
310
+ 174,
311
+ 852,
312
+ 825,
313
+ 924
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "",
320
+ "bbox": [
321
+ 171,
322
+ 102,
323
+ 825,
324
+ 133
325
+ ],
326
+ "page_idx": 3
327
+ },
328
+ {
329
+ "type": "equation",
330
+ "img_path": "images/5c73f5f97fafff2b844a166980c52b7697f95365af690744f7f86ed6941f05c4.jpg",
331
+ "text": "$$\n\\binom { d \\theta } { d \\xi } = \\left( - \\nabla \\tilde { \\mathcal { L } } ( \\theta ) - \\beta ( \\xi ) p \\right) d t + \\left( \\begin{array} { c c c } { 0 } & { 0 } & { 0 } \\\\ { 0 } & { \\sqrt { 2 \\alpha ( \\xi ) m } } & { 0 } \\\\ { 0 } & { 0 } & { 0 } \\end{array} \\right) d W _ { t } , \\beta ( \\xi ) = \\alpha ( \\xi ) + \\xi ,\n$$",
332
+ "text_format": "latex",
333
+ "bbox": [
334
+ 217,
335
+ 148,
336
+ 779,
337
+ 198
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "where we use $\\nabla \\tilde { \\mathcal { L } } ( \\boldsymbol { \\theta } ) d t = \\nabla \\mathcal { L } ( \\boldsymbol { \\theta } ) d t + \\sqrt { B } d W _ { t }$ to replace the gradient of the loss with the minibatch estimate. The momentum $p$ is dampened by a friction term $\\beta ( \\xi )$ that depends on the choice of $\\alpha ( \\xi )$ . The stochastic gradient noise $B$ does not show up in (4) due to the particular choice of energy function $H ( z )$ and dynamics $Q ( z ) , D ( z )$ . Note however this analysis relies on the assumption that the covariance of the stochastic gradient noise $B$ is constant in $\\theta$ and a single temperature variable per parameter can only correct for a diagonal covariance $B$ . We do not expect that this assumption will hold in practice and the approximation will therefore lead to bias in the samples. However, annealing the step size $h$ will reduce the error due to mini-batching together with other sources of discretization error (Welling $\\&$ Teh, 2011). ",
344
+ "bbox": [
345
+ 173,
346
+ 208,
347
+ 825,
348
+ 349
349
+ ],
350
+ "page_idx": 3
351
+ },
352
+ {
353
+ "type": "text",
354
+ "text": "2.4 Adaptive Noise Thermostat ",
355
+ "text_level": 1,
356
+ "bbox": [
357
+ 176,
358
+ 364,
359
+ 447,
360
+ 380
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "Finally, we must choose a function $\\alpha ( \\xi )$ which controls the amount of noise and momentum damping $\\beta ( \\xi )$ . Previous work uses the Nos´e-Hoover thermostat that is defined by $\\alpha ( \\xi ) = D _ { c }$ where $D _ { c }$ is a constant determining the amount of noise added to the momentum update (Ding et al., 2014). Although the Nos´e-Hoover thermostat is able to correct the stochastic gradient noise $B$ , the correction comes at the cost of slower convergence because additional friction $\\beta ( \\xi )$ is applied as $B$ increases. Another drawback of the Nos´e-Hoover thermostat is that it causes negative friction when $\\xi < - D _ { c }$ . In the negative friction phase $\\beta ( \\xi ) < 0$ , previous gradient terms are amplified rather than dampened. Although this behavior is mathematically sound we find that it can cause exploding momentum variables. ",
367
+ "bbox": [
368
+ 173,
369
+ 390,
370
+ 825,
371
+ 517
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "Our choice of $\\alpha ( \\xi )$ is based on the idea that negative friction should not occur and convergence speed should not be reduced by the stochastic gradient noise. Based on this intuition, we define the ATMC sampler by $\\alpha ( \\xi ) = \\operatorname* { m a x } ( D - \\xi , 0 )$ . The ATMC sampler is best characterized by the various temperature stages. For $0 < \\xi < D _ { c }$ the total amount of noise added to the momentum is $D _ { c }$ and the friction coefficient $\\beta ( \\xi ) = D _ { c }$ . At this stage, the stochastic gradient noise is compensated for by adding less noise to the momentum update. If $B \\gg D _ { c }$ the dominant stage will be $\\xi > D$ resulting in $\\beta ( \\xi ) < D _ { c }$ and zero noise being added to the momentum. Finally, when $\\xi < 0$ the friction coefficient $\\beta ( \\xi ) = D _ { c }$ and the noise added to the momentum is proportional to $D _ { c } - \\xi$ . Thus, the momentum always experiences a minimum amount of friction $\\beta ( \\xi ) \\ge D _ { c }$ determined by the hyper-parameter $D _ { c }$ and the noise added to the momentum update is automatically adjusted based on the amount of noise present in the stochastic gradients. ",
378
+ "bbox": [
379
+ 173,
380
+ 523,
381
+ 825,
382
+ 690
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "2.5 Momentum energy function ",
389
+ "text_level": 1,
390
+ "bbox": [
391
+ 176,
392
+ 707,
393
+ 449,
394
+ 720
395
+ ],
396
+ "page_idx": 3
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "Following (Lu et al., 2016), we generalize the momentum energy function $K ( p )$ to the symmetric hyperbolic distribution which is defined as follows (Lu et al., 2016): ",
401
+ "bbox": [
402
+ 174,
403
+ 732,
404
+ 825,
405
+ 761
406
+ ],
407
+ "page_idx": 3
408
+ },
409
+ {
410
+ "type": "equation",
411
+ "img_path": "images/f8f09436596883b38c54dd975a0cbf91a93b012eea4fbc2bb55deca25b01494d.jpg",
412
+ "text": "$$\nK ( p ) = \\sum _ { i } m c ^ { 2 } \\left[ \\sqrt { \\frac { p _ { i } ^ { 2 } } { m ^ { 2 } c ^ { 2 } } + 1 } - 1 \\right] ,\n$$",
413
+ "text_format": "latex",
414
+ "bbox": [
415
+ 370,
416
+ 777,
417
+ 625,
418
+ 819
419
+ ],
420
+ "page_idx": 3
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "where $m$ and $c$ are hyper-parameters. The Gaussian kinetic energy $K ( p ) = \\left\\| p \\right\\| ^ { 2 } / ( 2 m )$ is a special case obtained by taking the limit $c \\infty$ . The magnitude of parameter updates $\\| \\Delta \\theta \\|$ is determined by the gradient of the momentum: ",
425
+ "bbox": [
426
+ 176,
427
+ 830,
428
+ 823,
429
+ 875
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "equation",
435
+ "img_path": "images/a2eec3c8f2c04bbe17d98d00139c4402621f62cc44598fa68a89dfeeb86d8364.jpg",
436
+ "text": "$$\n\\| \\Delta \\theta \\| = \\| \\nabla K ( p ) \\| = \\left\\| \\frac { p } { M ( p ) } \\right\\| , \\quad M ( p ) = m \\sqrt { \\frac { p ^ { 2 } } { m ^ { 2 } c ^ { 2 } } + 1 } .\n$$",
437
+ "text_format": "latex",
438
+ "bbox": [
439
+ 300,
440
+ 892,
441
+ 699,
442
+ 929
443
+ ],
444
+ "page_idx": 3
445
+ },
446
+ {
447
+ "type": "text",
448
+ "text": "Hence, the hyperbolic distribution results in relativistic momentum dynamics where the parameter updates are upper bounded by $c$ and the pre-conditioner √ $M ( p )$ depends on $p$ . The average update magnitude $\\mathcal { E } [ | \\nabla K ( p ) | | ] \\approx 1 / \\sqrt { m }$ for $c \\gg m$ . Consequently, the parameters $m$ and $c$ are interpretable hyper-parameters controlling the average and maximum parameter update per step together with the step size $h$ . ",
449
+ "bbox": [
450
+ 174,
451
+ 103,
452
+ 823,
453
+ 174
454
+ ],
455
+ "page_idx": 4
456
+ },
457
+ {
458
+ "type": "text",
459
+ "text": "The SDE we derive in (4) and integrate in Sec. 3 uses a Gaussian momentum energy function for clarity. Deriving ATMC with a different momentum distribution like the hyperbolic distribution amounts to substituting (2), (3), and the alternative momentum distribution into (1). For the hyperbolic distribution, the dynamic friction coefficient $\\beta ( \\xi )$ will also depend on $p$ . For the numerical integration of (4) with a hyperbolic momentum distribution we assume $\\beta ( \\xi )$ to be constant in $p$ . ",
460
+ "bbox": [
461
+ 174,
462
+ 180,
463
+ 825,
464
+ 265
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "3 Improved numerical integrator for MCMC samplers ",
471
+ "text_level": 1,
472
+ "bbox": [
473
+ 176,
474
+ 282,
475
+ 738,
476
+ 299
477
+ ],
478
+ "page_idx": 4
479
+ },
480
+ {
481
+ "type": "text",
482
+ "text": "In this section we construct the numerical integrator required to numerically approximate the ATMC sampler defined in (4). An efficient numerical integrator can be constructed by splitting the SDE into two terms: ",
483
+ "bbox": [
484
+ 174,
485
+ 313,
486
+ 823,
487
+ 356
488
+ ],
489
+ "page_idx": 4
490
+ },
491
+ {
492
+ "type": "equation",
493
+ "img_path": "images/3306f692019ffe4bee61d8ce562ed4285fdda4ca4908221a55790b8018cb75cd.jpg",
494
+ "text": "$$\n\\binom { d \\theta } { d \\xi } = \\underbrace { \\binom { p / m } { 0 } } _ { \\displaystyle { p ^ { 2 } / m - 1 } } d t + \\underbrace { \\left( - \\nabla \\tilde { \\mathcal { L } } ( \\theta ) - \\beta ( p , \\xi ) p \\right) d t + \\left( 0 \\begin{array} { c c c } { 0 } & { 0 } & { 0 } \\\\ { 0 } & { \\sqrt { 2 \\alpha ( \\xi ) m } } & { 0 } \\\\ { 0 } & { 0 } & { 0 } \\end{array} \\right) d W _ { t } } _ { B } .\n$$",
495
+ "text_format": "latex",
496
+ "bbox": [
497
+ 199,
498
+ 376,
499
+ 779,
500
+ 444
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "text",
506
+ "text": "Hence, we obtain a linear ODE in part (A) that updates the parameters $\\theta$ and the thermostats $\\xi$ and a linear SDE in part (B) that updates the momentum $p$ . The operators that simulate these dynamics exactly for a time step $h$ are denoted $\\phi _ { A } ^ { h }$ and $\\phi _ { B } ^ { h }$ , respectively. Using the Strang splitting scheme yields a second order method (Chen et al., 2015): ",
507
+ "bbox": [
508
+ 174,
509
+ 453,
510
+ 823,
511
+ 510
512
+ ],
513
+ "page_idx": 4
514
+ },
515
+ {
516
+ "type": "equation",
517
+ "img_path": "images/39adc6a7ada1306ba2e1b895f27512cba327ba539bf66761ccb5fd6368f187ed.jpg",
518
+ "text": "$$\n\\phi ^ { h } = \\phi _ { B } ^ { h / 2 } \\circ \\phi _ { A } ^ { h } \\circ \\phi _ { B } ^ { h / 2 } .\n$$",
519
+ "text_format": "latex",
520
+ "bbox": [
521
+ 419,
522
+ 512,
523
+ 578,
524
+ 531
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "The first operator $\\phi _ { A } ^ { h }$ is given by ",
531
+ "bbox": [
532
+ 176,
533
+ 534,
534
+ 411,
535
+ 550
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "equation",
541
+ "img_path": "images/5e87a3a0a55940d0bed7c545c17a306e67c4c1d829e9ee738d21c4ed25120585.jpg",
542
+ "text": "$$\n\\begin{array} { r } { \\phi _ { A } ^ { h } ( z _ { t } ) = \\left( \\theta _ { t } + h \\frac { p _ { t } } { m } \\quad p _ { t } \\quad \\xi _ { t } + h \\left[ \\frac { p _ { t } ^ { 2 } } { m } - 1 \\right] \\right) ^ { T } . } \\end{array}\n$$",
543
+ "text_format": "latex",
544
+ "bbox": [
545
+ 341,
546
+ 553,
547
+ 658,
548
+ 582
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "The second operator $\\phi _ { B }$ is an instance of the Ornstein–Uhlenbeck process which can also be computed analytically as follows (Nelson, 1967): ",
555
+ "bbox": [
556
+ 171,
557
+ 589,
558
+ 823,
559
+ 619
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "equation",
565
+ "img_path": "images/52ea47c130f45795297214da91996a2fe17fbd83d9f10fbe910f8ad4792fe5a1.jpg",
566
+ "text": "$$\n\\begin{array} { r l } { \\phi _ { B } ^ { h } ( z _ { t } ) = \\Big ( \\theta _ { t } } & { e ^ { \\beta ( \\xi _ { t } ) h } \\Big [ p _ { t } - \\gamma _ { 1 } ( \\xi _ { t } ) \\nabla \\tilde { \\mathcal { L } } ( \\theta _ { t } ) + \\sqrt { \\gamma _ { 2 } ( \\xi _ { t } ) \\alpha ( \\xi _ { t } ) } ~ \\eta _ { t } \\Big ] \\quad \\xi _ { t } \\Big ) ^ { T } , } \\\\ & { \\quad \\quad \\gamma _ { a } ( \\xi _ { t } ) = \\frac { \\exp [ a \\beta ( \\xi _ { t } ) h ] - 1 } { \\beta ( \\xi _ { t } ) } , } \\end{array}\n$$",
567
+ "text_format": "latex",
568
+ "bbox": [
569
+ 254,
570
+ 635,
571
+ 743,
572
+ 702
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "where $\\eta _ { t }$ is isotropic Gaussian noise. Previous work (Chen et al., 2015) on higher order integrators for samplers splits the SDE into three parts where the third term is obtained from separating the friction term from the other terms in the momentum update $\\phi _ { B }$ . By integrating (10) exactly the gradient step and the noise and gradient term are directly affected by the friction. An exact momentum update provides additional robustness to large gradients because the temperature will increase in order to compensate for momentum updates that would lead to excessively large steps. Another advantage of a two-way split integrator is that the first and last steps in (8) can be fused together such that only a momentum update is performed per iteration. Algorithm 1 shows the pseudocode for the ATMC sampler with the split integrator defined in (9) and (10). ",
579
+ "bbox": [
580
+ 174,
581
+ 707,
582
+ 823,
583
+ 847
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "4 The ResNet++ Architecture ",
590
+ "text_level": 1,
591
+ "bbox": [
592
+ 174,
593
+ 864,
594
+ 504,
595
+ 881
596
+ ],
597
+ "page_idx": 4
598
+ },
599
+ {
600
+ "type": "text",
601
+ "text": "The generalization performance of large neural nets trained using optimization depend on stochastic regularization methods like Dropout (Srivastava et al., 2014) and BatchNorm (Ioffe & Szegedy, 2015). These methods implicitly add noise into the model parameters (Kingma et al., 2015; Teye et al., 2018) and significantly boost training performance and generalization for image classifiers. These methods can be interpreted as a coarse approximation of Bayesian Inference (Kingma et al., 2015; Teye et al., 2018). But a stochastic gradient sampler like ATMC already adds the necessary amount of noise and combined with BatchNorm or Dropout it leads to underfitting. We thus define a BatchNorm free version of ResNet called ResNet++ that includes SELUs (Klambauer et al., 2017), Fixup initialization (Zhang et al., 2019a) and weight normalization (Salimans & Kingma, 2016) (see Fig. 1). We use ATMC to fill the significant gap in performance due to the absence of BatchNorm in ResNet++. ",
602
+ "bbox": [
603
+ 174,
604
+ 895,
605
+ 823,
606
+ 924
607
+ ],
608
+ "page_idx": 4
609
+ },
610
+ {
611
+ "type": "table",
612
+ "img_path": "images/ac3e7271eab15513a931e184806164ab19b90c8adb69f1de675035c45b556885.jpg",
613
+ "table_caption": [
614
+ "Figure 1: Residual blocks in respectively the ResNet and $\\mathrm { R e s N e t { + + } }$ architectures. "
615
+ ],
616
+ "table_footnote": [],
617
+ "table_body": "<table><tr><td rowspan=1 colspan=1>x</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>ReLU</td><td rowspan=1 colspan=1>Conv 3x3</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>ReLU</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>BatchNorm</td><td rowspan=1 colspan=1>+x</td><td rowspan=1 colspan=1>ReLU</td></tr><tr><td rowspan=1 colspan=1>x</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>SeLU</td><td rowspan=1 colspan=1>Conv 3x3</td><td rowspan=1 colspan=1>SeLU</td><td rowspan=1 colspan=1>Conv 1x1</td><td rowspan=1 colspan=1>+x</td><td rowspan=1 colspan=1>SeLU</td><td></td><td></td><td></td></tr></table>",
618
+ "bbox": [
619
+ 169,
620
+ 101,
621
+ 825,
622
+ 145
623
+ ],
624
+ "page_idx": 5
625
+ },
626
+ {
627
+ "type": "image",
628
+ "img_path": "images/3581dff74a2bd9e2f91fa7c34ce15d9be1bcc8162cfbad8a4e171f8cab32d0ff.jpg",
629
+ "image_caption": [
630
+ "Figure 2: Calibration plot for Cifar10 "
631
+ ],
632
+ "image_footnote": [],
633
+ "bbox": [
634
+ 183,
635
+ 204,
636
+ 493,
637
+ 369
638
+ ],
639
+ "page_idx": 5
640
+ },
641
+ {
642
+ "type": "image",
643
+ "img_path": "images/f0139509c48ef718aaaace052fe20b41da0beb0225dc95165077a1b68ecb2edf.jpg",
644
+ "image_caption": [
645
+ "Figure 3: Calibration plot for ImageNet "
646
+ ],
647
+ "image_footnote": [],
648
+ "bbox": [
649
+ 516,
650
+ 204,
651
+ 812,
652
+ 371
653
+ ],
654
+ "page_idx": 5
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "",
659
+ "bbox": [
660
+ 174,
661
+ 426,
662
+ 825,
663
+ 565
664
+ ],
665
+ "page_idx": 5
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "4.1 SELU ",
670
+ "text_level": 1,
671
+ "bbox": [
672
+ 174,
673
+ 582,
674
+ 263,
675
+ 597
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "We find the SELU activation to work well in BatchNorm free networks. SELU forces the statistics of the activations towards zero mean and unit variance (Klambauer et al., 2017). The SELU activation function additionally has a non-zero gradient everywhere which could improve the mixing of the sampler by providing a more informative gradient. ",
682
+ "bbox": [
683
+ 174,
684
+ 608,
685
+ 825,
686
+ 665
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "4.2 Fixup initialization ",
693
+ "text_level": 1,
694
+ "bbox": [
695
+ 176,
696
+ 681,
697
+ 379,
698
+ 695
699
+ ],
700
+ "page_idx": 5
701
+ },
702
+ {
703
+ "type": "text",
704
+ "text": "ResNets are known to scale well with depth (He et al., 2016). However, the additive effect of the residual branch causes the magnitudes of the activations to increase with the number of residual connections. Fixup is a recently proposed initialization method that mitigates the exploding residual branch problem without using BatchNorm (Zhang et al., 2019a). We use a simplified version of Fixup by initializing the scales of the final layer in each residual branch to a small constant. ",
705
+ "bbox": [
706
+ 174,
707
+ 707,
708
+ 825,
709
+ 791
710
+ ],
711
+ "page_idx": 5
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "4.3 Weight normalization ",
716
+ "text_level": 1,
717
+ "bbox": [
718
+ 176,
719
+ 809,
720
+ 401,
721
+ 823
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "text",
727
+ "text": "We use weight normalization (Salimans $\\&$ Kingma, 2016) to separate the direction and scale of each linear feature vector ",
728
+ "bbox": [
729
+ 173,
730
+ 834,
731
+ 823,
732
+ 863
733
+ ],
734
+ "page_idx": 5
735
+ },
736
+ {
737
+ "type": "equation",
738
+ "img_path": "images/1bc39962fa60ed8db3039a6c3d4a1c20305e20631042530249ec27236197eebf.jpg",
739
+ "text": "$$\n\\theta ^ { ( i ) } = \\phi _ { s } ^ { ( i ) } \\frac { \\phi _ { d } ^ { ( i ) } } { \\left\\| \\phi _ { d } ^ { ( i ) } \\right\\| } ,\n$$",
740
+ "text_format": "latex",
741
+ "bbox": [
742
+ 436,
743
+ 881,
744
+ 560,
745
+ 929
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "table",
751
+ "img_path": "images/119835f31ca38b2f1ddca65a16037fbefbf8d134ed39b34fa832a0519ef08469.jpg",
752
+ "table_caption": [
753
+ "Table 1: Performance on Cifar10 with ResNet-56 model. The posterior predictive is estimate using a sample of the posterior parameters at the end of each learning rate cycle. "
754
+ ],
755
+ "table_footnote": [],
756
+ "table_body": "<table><tr><td>Setup</td><td>Top 1 acc. [%]</td></tr><tr><td>SGD</td><td>91.5</td></tr><tr><td>SGD + BatchNorm</td><td>94.4</td></tr><tr><td>ATMC (single sample)</td><td></td></tr><tr><td>ATMC (Posterior predictive)</td><td></td></tr><tr><td>SGNHT (single sample)</td><td></td></tr><tr><td>SGNHT (Posterior predictive)</td><td></td></tr></table>",
757
+ "bbox": [
758
+ 266,
759
+ 151,
760
+ 730,
761
+ 265
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "where φ(i)d is the direction vector and $\\phi _ { s } ^ { ( i ) }$ is the magnitude of a feature vector $\\theta ^ { ( i ) }$ . Weight normalization does not depend on batch statistics and is compatible with MCMC methods. ",
768
+ "bbox": [
769
+ 174,
770
+ 290,
771
+ 823,
772
+ 321
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "The scale of the direction vector does not affect the outputs of the model. It does however affect the effective step size (Wu et al., 2018). Therefore the prior on the direction vector $\\phi _ { d } ^ { ( i ) }$ is chosen such that it is forced to unit length ",
779
+ "bbox": [
780
+ 174,
781
+ 328,
782
+ 823,
783
+ 375
784
+ ],
785
+ "page_idx": 6
786
+ },
787
+ {
788
+ "type": "equation",
789
+ "img_path": "images/fb2dba7c5eb01d9a61c356c954e4a813f28745e797793e9cec38087fffdc0b66.jpg",
790
+ "text": "$$\np ( \\phi _ { d } ^ { ( i ) } ) \\propto \\exp \\left[ - \\frac { d } { 2 } \\left( \\left\\| \\phi _ { d } ^ { ( i ) } \\right\\| ^ { 2 } - 1 \\right) ^ { 2 } \\right] .\n$$",
791
+ "text_format": "latex",
792
+ "bbox": [
793
+ 367,
794
+ 393,
795
+ 630,
796
+ 435
797
+ ],
798
+ "page_idx": 6
799
+ },
800
+ {
801
+ "type": "text",
802
+ "text": "The prior on the scales $p ( \\phi _ { s } )$ is problem-specific and can for example be chosen to encode a preference for structurally sparse models. ",
803
+ "bbox": [
804
+ 174,
805
+ 448,
806
+ 825,
807
+ 477
808
+ ],
809
+ "page_idx": 6
810
+ },
811
+ {
812
+ "type": "text",
813
+ "text": "5 Experiments ",
814
+ "text_level": 1,
815
+ "bbox": [
816
+ 176,
817
+ 498,
818
+ 333,
819
+ 515
820
+ ],
821
+ "page_idx": 6
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "The experiments presented here aim to demonstrate that the ATMC sampler is competitive with a well-tuned optimization baseline for large-scale datasets and models. We use the TensorFlow official implementation of ResNet-56 and ResNet-50 on Cifar10 and ImageNet, respectively. We compare our ATMC sampler to an optimization baseline with and without BatchNorm. For the optimization baseline without BatchNorm we use the ResNet $^ { + + }$ architecture as described in Sec. 4. For the baseline with BatchNorm we found standard ResNet with Xavier initialization and the ReLU non-linearity to work better. ",
826
+ "bbox": [
827
+ 174,
828
+ 530,
829
+ 825,
830
+ 628
831
+ ],
832
+ "page_idx": 6
833
+ },
834
+ {
835
+ "type": "text",
836
+ "text": "For the ATMC sampler we report both the performance of a single sample and the estimated posterior predictive based on a finite number of samples. Similar to earlier work (Zhang et al., 2019b) we found that many fewer samples are needed when a cyclic step size $h _ { t } =$ $h _ { 0 } * \\frac { 1 } { 2 } [ 1 + \\cos ( \\pi \\bmod [ t , n ] ) ]$ with cycle length $n$ is used. The final sample in each cycle is used to estimate the posterior predictive. ",
837
+ "bbox": [
838
+ 174,
839
+ 635,
840
+ 825,
841
+ 705
842
+ ],
843
+ "page_idx": 6
844
+ },
845
+ {
846
+ "type": "text",
847
+ "text": "For $\\mathrm { R e s N e t { + + } }$ we further use a group Laplace prior $p ( \\theta _ { i } ) \\propto \\exp ( - \\left\\| \\theta _ { i } \\right\\| / b )$ with $b = 5$ to regularize the scales of each linear feature in ResNet $^ { + + }$ . The momentum noise is chosen as $D _ { c } = - \\log ( 0 . 9 ) / h _ { 0 }$ such that the friction applied to the momentum is at least 0.9. ",
848
+ "bbox": [
849
+ 174,
850
+ 710,
851
+ 825,
852
+ 753
853
+ ],
854
+ "page_idx": 6
855
+ },
856
+ {
857
+ "type": "text",
858
+ "text": "5.1 Cifar 10",
859
+ "text_level": 1,
860
+ "bbox": [
861
+ 174,
862
+ 772,
863
+ 287,
864
+ 786
865
+ ],
866
+ "page_idx": 6
867
+ },
868
+ {
869
+ "type": "text",
870
+ "text": "For Cifar10 we choose the step size $h _ { 0 } = 0 . 0 0 1$ and the cycle length is set to 50 epochs. The momentum hyper-parameters are $m = ( 0 . 0 0 0 3 / h _ { 0 } ) ^ { - 2 }$ and $c = 0 . 0 0 1 / h _ { 0 }$ such that the average speed and maximum speed per step are 0.0003 and 0.001, respectively. The number of convolution filters is doubled to 32 compared to the original ResNet-56 implementation. We use a single V100 GPU with a batch size of 128. The sampler runs for 1000 epochs and we start collecting samples for the posterior predictive after 150 epochs. The optimization baseline converges in 180 epochs. We also report the results of sampling with a sampler based Nos´e-Hoover thermostats (SGNHT) (Ding et al., 2014; Lu et al., 2016) applied to the ResNet++ architecture. ",
871
+ "bbox": [
872
+ 173,
873
+ 797,
874
+ 825,
875
+ 924
876
+ ],
877
+ "page_idx": 6
878
+ },
879
+ {
880
+ "type": "table",
881
+ "img_path": "images/df9bd8a7638e6d9b5322767bd18d0225eab3e1f11b837d8a653b4c4aa194e9b3.jpg",
882
+ "table_caption": [
883
+ "Table 2: Performance on ImageNet with ResNet-50 model. The posterior predictive is estimated using a sample of the posterior parameters at the end of each learning rate cycle. "
884
+ ],
885
+ "table_footnote": [],
886
+ "table_body": "<table><tr><td>Setup</td><td>Top 1 acc. [%]</td></tr><tr><td>SGD</td><td>70.9</td></tr><tr><td>SGD + BatchNorm</td><td>76.2</td></tr><tr><td>ATMC (single sample)</td><td>74.2</td></tr><tr><td>ATMC (Posterior predictive)</td><td></td></tr><tr><td>SGNHT (single sample)</td><td></td></tr><tr><td>SGNHT ( (Posterior predictive)</td><td></td></tr></table>",
887
+ "bbox": [
888
+ 266,
889
+ 141,
890
+ 730,
891
+ 255
892
+ ],
893
+ "page_idx": 7
894
+ },
895
+ {
896
+ "type": "text",
897
+ "text": "Table 1 lists the test set performance for Cifar10. A single sample from the posterior already outperforms the baseline without BatchNorm by a significant margin in both test accuracy and log-likelihood. Using BatchNorm significantly improves the generalization of the optimization baseline. It outperforms the estimate of the posterior predictive in accuracy yet it does not have a better test log-likelihood. ",
898
+ "bbox": [
899
+ 173,
900
+ 282,
901
+ 823,
902
+ 353
903
+ ],
904
+ "page_idx": 7
905
+ },
906
+ {
907
+ "type": "text",
908
+ "text": "To further analyze the quality of the uncertainty estimates, we group each model’s prediction in 8 equally sized bins based on the confidence $p ( \\hat { \\omega } _ { i } | x _ { i } )$ where $\\hat { \\omega } _ { i }$ is the maximum probability class for example $x _ { i }$ . If the probabilities are well-calibrated, the average confidence should be close to the average accuracy. Figure 2 shows the calibration of the uncertainty estimates for the posterior predictive and optimization baselines. The posterior predictive is calibrated for the least confident predictions $p ( \\hat { \\omega } _ { i } | x _ { i } ) < 0 . 9$ and shows less bias towards overconfidence compared to the models trained with SGD. ",
909
+ "bbox": [
910
+ 174,
911
+ 359,
912
+ 825,
913
+ 457
914
+ ],
915
+ "page_idx": 7
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "5.2 ImageNet ",
920
+ "text_level": 1,
921
+ "bbox": [
922
+ 174,
923
+ 477,
924
+ 297,
925
+ 491
926
+ ],
927
+ "page_idx": 7
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "For the ImageNet experiments we use an initial step size $h _ { 0 } = 0 . 0 0 0 5$ and a cycle length of 20 epochs. The other hyper-parameters for the sampler are the same as for the Cifar10 experiments. We use a a single Google Cloud TPUv3 with a batch size of 1024. We did not observe a significant difference in wall clock time per training step between SGD and ATMC on the same model. Each training step using ResNet $^ +$ BatchNorm model takes $2 0 \\%$ longer in wall clock time compared to a single train step using ResNet $^ { + + }$ . Samples for the posterior predictive are collected after 150 epochs and the sampler runs for 1000 epochs. The optimization baseline converges in 90 epochs. ",
932
+ "bbox": [
933
+ 173,
934
+ 505,
935
+ 825,
936
+ 616
937
+ ],
938
+ "page_idx": 7
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Table 2 lists the results for ImageNet classification. A single sample from the posterior outperforms the optimization baseline without BatchNorm. The posterior predictive based on ATMC outperforms the optimizer with BatchNorm by a wide margin in both accuracy and test log-likelihood. We note that the sampler runs significantly longer (10x) compared to the optimization baseline because it takes a long time for the posterior predictive estimate to converge. However, the posterior predictive of ATMC matches the accuracy of the optimization baseline with BatchNorm (76.2%) after 240 epochs. ",
943
+ "bbox": [
944
+ 174,
945
+ 622,
946
+ 823,
947
+ 720
948
+ ],
949
+ "page_idx": 7
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Figure 3 shows the quality of the uncertainty for various levels of confidence. Again, the ATMC based posterior predictive produces much better calibrated predictions and is almost perfectly calibrated for low confidence predictions $p ( \\hat { \\omega } _ { i } | x _ { i } ) < 0 . 9$ and shows less bias towards overconfidence compared to the optimization baseline. ",
954
+ "bbox": [
955
+ 174,
956
+ 727,
957
+ 823,
958
+ 784
959
+ ],
960
+ "page_idx": 7
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "6 Discussion ",
965
+ "text_level": 1,
966
+ "bbox": [
967
+ 174,
968
+ 806,
969
+ 310,
970
+ 823
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "The empirical results show it is possible to sample the posterior distribution of neural networks on large scale image classification problems like ImageNet. A major obstacle for sampling the posterior of ResNets in particular is the lack of compatibility with BatchNorm. Using recent advances in initialization and the SELU activation function we are able to stabilize and speed up training of ResNets without resorting to BatchNorm. Nonetheless, we observe that BatchNorm still offers a unique advantage in terms of generalization performance. We hope that future work will allow the implicit inductive bias that BatchNorm has to be transferred into an explicit prior that is compatible with sampling methods. ",
977
+ "bbox": [
978
+ 174,
979
+ 840,
980
+ 823,
981
+ 924
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "",
988
+ "bbox": [
989
+ 173,
990
+ 103,
991
+ 821,
992
+ 132
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "text",
998
+ "text": "Multiple posterior samples provide a much more accurate estimate of the posterior predictive, and consequently much better accuracy and uncertainty estimates. For inference, making predictions using a large ensemble of models sampled from the posterior can be costly. Variational Inference methods can be used to quickly characterize a local mode of the posterior (Blundell et al., 2015). More recent work shows that a running estimate of the mean and variance of the parameters during training can also be used to approximate a mode of the posterior (Maddox et al., 2019). Methods like distillation could potentially be used to compress a high-quality ensemble into a single network with a limited computational budget (Balan et al., 2015). ",
999
+ "bbox": [
1000
+ 174,
1001
+ 138,
1002
+ 825,
1003
+ 263
1004
+ ],
1005
+ "page_idx": 8
1006
+ },
1007
+ {
1008
+ "type": "text",
1009
+ "text": "Although the form in (4) is very general, alternative methods for dealing with stochastic gradients have been proposed in the literature. One approach is to estimate the covariance of the stochastic gradient noise $B$ explicitly and use it correct and pre-condition the sampling dynamics (Ahn et al., 2012; Li et al., 2016). ",
1010
+ "bbox": [
1011
+ 174,
1012
+ 271,
1013
+ 825,
1014
+ 327
1015
+ ],
1016
+ "page_idx": 8
1017
+ },
1018
+ {
1019
+ "type": "text",
1020
+ "text": "Other sampling methods are not based on an SDE that converges to the target distribution. Under some conditions stochastic optimization methods can be interpreted as such a biased sampling method (Mandt et al., 2017). Predictions based on multiple samples from the trajectory of SGD have been used successfully for obtaining uncertainty estimates in large scale Deep Learning (Maddox et al., 2019). However, these methods rely on tuning hyperparameters in such a way that just the right amount of noise is inserted. ",
1021
+ "bbox": [
1022
+ 174,
1023
+ 334,
1024
+ 823,
1025
+ 417
1026
+ ],
1027
+ "page_idx": 8
1028
+ },
1029
+ {
1030
+ "type": "text",
1031
+ "text": "7 Conclusion ",
1032
+ "text_level": 1,
1033
+ "bbox": [
1034
+ 176,
1035
+ 439,
1036
+ 320,
1037
+ 455
1038
+ ],
1039
+ "page_idx": 8
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "This work introduces the ATMC sampler, a robust posterior sampling method that scales to large deep learning problems. To the best of our knowledge, we are the first to successfully train neural networks using MCMC on ImageNet. In a BatchNorm free setting, a single sample from the posterior generated by ATMC outperforms the optimization baseline. A posterior predictive estimate outperforms the optimization baseline with BatchNorm on ImageNet. Based on these empirical results we hope the ATMC sampler will enable new applications of Bayesian inference in deep learning. ",
1044
+ "bbox": [
1045
+ 174,
1046
+ 472,
1047
+ 823,
1048
+ 569
1049
+ ],
1050
+ "page_idx": 8
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "References ",
1055
+ "text_level": 1,
1056
+ "bbox": [
1057
+ 176,
1058
+ 592,
1059
+ 289,
1060
+ 607
1061
+ ],
1062
+ "page_idx": 8
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "text": "Sungjin Ahn, Anoop Korattikara, and Max Welling. Bayesian posterior sampling via stochastic gradient fisher scoring. arXiv preprint arXiv:1206.6380, 2012. ",
1067
+ "bbox": [
1068
+ 173,
1069
+ 616,
1070
+ 823,
1071
+ 645
1072
+ ],
1073
+ "page_idx": 8
1074
+ },
1075
+ {
1076
+ "type": "text",
1077
+ "text": "Anoop Korattikara Balan, Vivek Rathod, Kevin P Murphy, and Max Welling. Bayesian dark knowledge. In Advances in Neural Information Processing Systems, pp. 3438–3446, 2015. ",
1078
+ "bbox": [
1079
+ 174,
1080
+ 657,
1081
+ 823,
1082
+ 700
1083
+ ],
1084
+ "page_idx": 8
1085
+ },
1086
+ {
1087
+ "type": "text",
1088
+ "text": "Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pp. 1613– 1622, 2015. ",
1089
+ "bbox": [
1090
+ 174,
1091
+ 713,
1092
+ 821,
1093
+ 756
1094
+ ],
1095
+ "page_idx": 8
1096
+ },
1097
+ {
1098
+ "type": "text",
1099
+ "text": "Changyou Chen, Nan Ding, and Lawrence Carin. On the convergence of stochastic gradient mcmc algorithms with high-order integrators. In Advances in Neural Information Processing Systems, 2015. ",
1100
+ "bbox": [
1101
+ 174,
1102
+ 768,
1103
+ 825,
1104
+ 813
1105
+ ],
1106
+ "page_idx": 8
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "Tianqi Chen, Emily Fox, and Carlos Guestrin. Stochastic gradient hamiltonian monte carlo. In International conference on machine learning, pp. 1683–1691, 2014. ",
1111
+ "bbox": [
1112
+ 173,
1113
+ 825,
1114
+ 821,
1115
+ 854
1116
+ ],
1117
+ "page_idx": 8
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "Nan Ding, Youhan Fang, Ryan Babbush, Changyou Chen, Robert D Skeel, and Hartmut Neven. Bayesian sampling using stochastic gradient thermostats. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 3203–3211. Curran Associates, Inc., 2014. ",
1122
+ "bbox": [
1123
+ 174,
1124
+ 867,
1125
+ 825,
1126
+ 924
1127
+ ],
1128
+ "page_idx": 8
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016. ",
1133
+ "bbox": [
1134
+ 176,
1135
+ 103,
1136
+ 823,
1137
+ 146
1138
+ ],
1139
+ "page_idx": 9
1140
+ },
1141
+ {
1142
+ "type": "text",
1143
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pp. 448–456, 2015. ",
1144
+ "bbox": [
1145
+ 176,
1146
+ 155,
1147
+ 823,
1148
+ 196
1149
+ ],
1150
+ "page_idx": 9
1151
+ },
1152
+ {
1153
+ "type": "text",
1154
+ "text": "Alex Kendall and Yarin Gal. What uncertainties do we need in bayesian deep learning for computer vision? In Advances in neural information processing systems, pp. 5574–5584, 2017. ",
1155
+ "bbox": [
1156
+ 174,
1157
+ 205,
1158
+ 823,
1159
+ 247
1160
+ ],
1161
+ "page_idx": 9
1162
+ },
1163
+ {
1164
+ "type": "text",
1165
+ "text": "Durk P Kingma, Tim Salimans, and Max Welling. Variational dropout and the local reparameterization trick. In Advances in Neural Information Processing Systems, pp. 2575– 2583, 2015. ",
1166
+ "bbox": [
1167
+ 173,
1168
+ 256,
1169
+ 825,
1170
+ 299
1171
+ ],
1172
+ "page_idx": 9
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "G¨unter Klambauer, Thomas Unterthiner, Andreas Mayr, and Sepp Hochreiter. Selfnormalizing neural networks. In Advances in neural information processing systems, pp. 971–980, 2017. ",
1177
+ "bbox": [
1178
+ 174,
1179
+ 308,
1180
+ 825,
1181
+ 351
1182
+ ],
1183
+ "page_idx": 9
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Chunyuan Li, Changyou Chen, David Carlson, and Lawrence Carin. Preconditioned stochastic gradient langevin dynamics for deep neural networks. In Thirtieth AAAI Conference on Artificial Intelligence, 2016. ",
1188
+ "bbox": [
1189
+ 174,
1190
+ 358,
1191
+ 825,
1192
+ 402
1193
+ ],
1194
+ "page_idx": 9
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "Xiaoyu Lu, Valerio Perrone, Leonard Hasenclever, Yee Whye Teh, and Sebastian J Vollmer. Relativistic monte carlo. arXiv preprint arXiv:1609.04388, 2016. ",
1199
+ "bbox": [
1200
+ 173,
1201
+ 410,
1202
+ 821,
1203
+ 440
1204
+ ],
1205
+ "page_idx": 9
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "Yi-An Ma, Tianqi Chen, and Emily Fox. A complete recipe for stochastic gradient mcmc. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2917–2925. Curran Associates, Inc., 2015. ",
1210
+ "bbox": [
1211
+ 173,
1212
+ 446,
1213
+ 825,
1214
+ 505
1215
+ ],
1216
+ "page_idx": 9
1217
+ },
1218
+ {
1219
+ "type": "text",
1220
+ "text": "Wesley Maddox, Timur Garipov, Pavel Izmailov, Dmitry Vetrov, and Andrew Gordon Wilson. A simple baseline for bayesian uncertainty in deep learning. arXiv preprint arXiv:1902.02476, 2019. ",
1221
+ "bbox": [
1222
+ 176,
1223
+ 512,
1224
+ 825,
1225
+ 556
1226
+ ],
1227
+ "page_idx": 9
1228
+ },
1229
+ {
1230
+ "type": "text",
1231
+ "text": "Stephan Mandt, Matthew D Hoffman, and David M Blei. Stochastic gradient descent as approximate bayesian inference. The Journal of Machine Learning Research, 18(1):4873– 4907, 2017. ",
1232
+ "bbox": [
1233
+ 173,
1234
+ 563,
1235
+ 823,
1236
+ 607
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011. ",
1243
+ "bbox": [
1244
+ 171,
1245
+ 614,
1246
+ 825,
1247
+ 645
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Edward Nelson. Dynamical theories of Brownian motion, volume 3. Princeton university press, 1967. ",
1254
+ "bbox": [
1255
+ 171,
1256
+ 652,
1257
+ 823,
1258
+ 683
1259
+ ],
1260
+ "page_idx": 9
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "Ian Osband and Benjamin Van Roy. Why is posterior sampling better than optimism for reinforcement learning? In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2701–2710. JMLR. org, 2017. ",
1265
+ "bbox": [
1266
+ 173,
1267
+ 689,
1268
+ 823,
1269
+ 733
1270
+ ],
1271
+ "page_idx": 9
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Bala Rajaratnam and Doug Sparks. Mcmc-based inference in the era of big data: A fundamental analysis of the convergence complexity of high-dimensional chains. arXiv preprint arXiv:1508.00947, 2015. ",
1276
+ "bbox": [
1277
+ 174,
1278
+ 741,
1279
+ 823,
1280
+ 785
1281
+ ],
1282
+ "page_idx": 9
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "Tim Salimans and Durk P Kingma. Weight normalization: A simple reparameterization to accelerate training of deep neural networks. In Advances in Neural Information Processing Systems, pp. 901–909, 2016. ",
1287
+ "bbox": [
1288
+ 173,
1289
+ 792,
1290
+ 823,
1291
+ 835
1292
+ ],
1293
+ "page_idx": 9
1294
+ },
1295
+ {
1296
+ "type": "text",
1297
+ "text": "Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. Dropout: a simple way to prevent neural networks from overfitting. The Journal of Machine Learning Research, 15(1):1929–1958, 2014. ",
1298
+ "bbox": [
1299
+ 174,
1300
+ 843,
1301
+ 823,
1302
+ 887
1303
+ ],
1304
+ "page_idx": 9
1305
+ },
1306
+ {
1307
+ "type": "text",
1308
+ "text": "Mattias Teye, Hossein Azizpour, and Kevin Smith. Bayesian uncertainty estimation for batch normalized deep networks. arXiv preprint arXiv:1802.06455, 2018. ",
1309
+ "bbox": [
1310
+ 173,
1311
+ 895,
1312
+ 820,
1313
+ 924
1314
+ ],
1315
+ "page_idx": 9
1316
+ },
1317
+ {
1318
+ "type": "text",
1319
+ "text": "Yu-Xiang Wang, Stephen Fienberg, and Alex Smola. Privacy for free: Posterior sampling and stochastic gradient monte carlo. In International Conference on Machine Learning, pp. 2493–2502, 2015. ",
1320
+ "bbox": [
1321
+ 176,
1322
+ 103,
1323
+ 823,
1324
+ 145
1325
+ ],
1326
+ "page_idx": 10
1327
+ },
1328
+ {
1329
+ "type": "text",
1330
+ "text": "Max Welling and Yee W Teh. Bayesian learning via stochastic gradient langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 681–688, 2011. ",
1331
+ "bbox": [
1332
+ 173,
1333
+ 155,
1334
+ 821,
1335
+ 196
1336
+ ],
1337
+ "page_idx": 10
1338
+ },
1339
+ {
1340
+ "type": "text",
1341
+ "text": "Xiaoxia Wu, Rachel Ward, and L´eon Bottou. Wngrad: learn the learning rate in gradient descent. arXiv preprint arXiv:1803.02865, 2018. ",
1342
+ "bbox": [
1343
+ 171,
1344
+ 205,
1345
+ 821,
1346
+ 234
1347
+ ],
1348
+ "page_idx": 10
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "text": "Hongyi Zhang, Yann N Dauphin, and Tengyu Ma. Fixup initialization: Residual learning without normalization. arXiv preprint arXiv:1901.09321, 2019a. ",
1353
+ "bbox": [
1354
+ 171,
1355
+ 243,
1356
+ 823,
1357
+ 272
1358
+ ],
1359
+ "page_idx": 10
1360
+ },
1361
+ {
1362
+ "type": "text",
1363
+ "text": "Ruqi Zhang, Chunyuan Li, Jianyi Zhang, Changyou Chen, and Andrew Gordon Wilson. Cyclical stochastic gradient mcmc for bayesian deep learning. arXiv preprint arXiv:1902.03932, 2019b. ",
1364
+ "bbox": [
1365
+ 174,
1366
+ 281,
1367
+ 825,
1368
+ 324
1369
+ ],
1370
+ "page_idx": 10
1371
+ }
1372
+ ]
parse/train/rklFh34Kwr/rklFh34Kwr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rklFh34Kwr/rklFh34Kwr_model.json ADDED
The diff for this file is too large to render. See raw diff