Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/8VXvj1QNRl1/8VXvj1QNRl1.md +320 -0
- parse/train/8VXvj1QNRl1/8VXvj1QNRl1_content_list.json +1703 -0
- parse/train/8VXvj1QNRl1/8VXvj1QNRl1_middle.json +0 -0
- parse/train/8VXvj1QNRl1/8VXvj1QNRl1_model.json +0 -0
- parse/train/BklEF3VFPB/BklEF3VFPB.md +256 -0
- parse/train/BklEF3VFPB/BklEF3VFPB_content_list.json +1346 -0
- parse/train/BklEF3VFPB/BklEF3VFPB_middle.json +0 -0
- parse/train/BklEF3VFPB/BklEF3VFPB_model.json +0 -0
- parse/train/H178hw9ex/H178hw9ex.md +341 -0
- parse/train/H178hw9ex/H178hw9ex_content_list.json +1697 -0
- parse/train/H178hw9ex/H178hw9ex_middle.json +0 -0
- parse/train/H178hw9ex/H178hw9ex_model.json +0 -0
- parse/train/gEzN9bBbLt8/gEzN9bBbLt8.md +294 -0
- parse/train/gEzN9bBbLt8/gEzN9bBbLt8_content_list.json +1234 -0
- parse/train/gEzN9bBbLt8/gEzN9bBbLt8_middle.json +0 -0
- parse/train/gEzN9bBbLt8/gEzN9bBbLt8_model.json +0 -0
- parse/train/lMgDDWb1ULW/lMgDDWb1ULW.md +253 -0
- parse/train/lMgDDWb1ULW/lMgDDWb1ULW_content_list.json +1270 -0
- parse/train/lMgDDWb1ULW/lMgDDWb1ULW_middle.json +0 -0
- parse/train/lMgDDWb1ULW/lMgDDWb1ULW_model.json +0 -0
parse/train/8VXvj1QNRl1/8VXvj1QNRl1.md
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON THE TRANSFER OF DISENTANGLED REPRESENTA-TIONS IN REALISTIC SETTINGS
|
| 2 |
+
|
| 3 |
+
Andrea Dittadi,∗†1 Frederik Trauble, ¨ ∗2 Francesco Locatello,2,3 Manuel Wuthrich, ¨ 2
|
| 4 |
+
Vaibhav Agrawal,2 Ole Winther,1,4,5 Stefan Bauer,2,6 Bernhard Scholkopf ¨ 2
|
| 5 |
+
1Technical University of Denmark, $^ { 2 } \mathrm { M a x }$ Planck Institute for Intelligent Systems,
|
| 6 |
+
3ETH Zurich, Department for Computer Science, 4Copenhagen University Hospital,
|
| 7 |
+
5University of Copenhagen , 6CIFAR Azrieli Global Scholar
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Learning meaningful representations that disentangle the underlying structure of the data generating process is considered to be of key importance in machine learning. While disentangled representations were found to be useful for diverse tasks such as abstract reasoning and fair classification, their scalability and real-world impact remain questionable. We introduce a new high-resolution dataset with 1M simulated images and over 1,800 annotated real-world images of the same setup. In contrast to previous work, this new dataset exhibits correlations, a complex underlying structure, and allows to evaluate transfer to unseen simulated and realworld settings where the encoder i) remains in distribution or ii) is out of distribution. We propose new architectures in order to scale disentangled representation learning to realistic high-resolution settings and conduct a large-scale empirical study of disentangled representations on this dataset. We observe that disentanglement is a good predictor for out-of-distribution (OOD) task performance.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Disentangled representations hold the promise of generalization to unseen scenarios (Higgins et al., 2017b), increased interpretability (Adel et al., 2018; Higgins et al., 2018) and faster learning on downstream tasks (van Steenkiste et al., 2019; Locatello et al., 2019a). However, most of the focus in learning disentangled representations has been on small synthetic datasets whose ground truth factors exhibit perfect independence by design. More realistic settings remain largely unexplored. We hypothesize that this is because real-world scenarios present several challenges that have not been extensively studied to date. Important challenges are scaling (much higher resolution in observations and factors), occlusions, and
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Images from the simulated dataset (left) and from the real-world setup (right).
|
| 19 |
+
|
| 20 |
+
correlation between factors. Consider, for instance, a robotic arm moving a cube: Here, the robot arm can occlude parts of the cube, and its end-effector position exhibits correlations with the cube’s position and orientation, which might be problematic for common disentanglement learners (Trauble ¨ et al., 2020). Another difficulty is that we typically have only limited access to ground truth labels in the real world, which requires robust frameworks for model selection when no or only weak labels are available.
|
| 21 |
+
|
| 22 |
+
The goal of this work is to provide a path towards disentangled representation learning in realistic settings. First, we argue that this requires a new dataset that captures the challenges mentioned above. We propose a dataset consisting of simulated observations from a scene where a robotic arm interacts with a cube in a stage (see Fig. 1). This setting exhibits correlations and occlusions that are typical in real-world robotics. Second, we show how to scale the architecture of disentanglement methods to perform well on this dataset. Third, we extensively analyze the usefulness of disentangled representations in terms of out-of-distribution downstream generalization, both in terms of held-out factors of variation and sim2real transfer. In fact, our dataset is based on the TriFinger robot from Wuthrich et al. (2020), which can be built to test the deployment of models in the real ¨ world. While the analysis in this paper focuses on the transfer and generalization of predictive models, we hope that our dataset may serve as a benchmark to explore the usefulness of disentangled representations in real-world control tasks.
|
| 23 |
+
|
| 24 |
+
The contributions of this paper can be summarized as follows:
|
| 25 |
+
|
| 26 |
+
• We propose a new dataset for disentangled representation learning, containing 1M simulated high-resolution images from a robotic setup, with seven partly correlated factors of variation. Additionally, we provide a dataset of over 1,800 annotated images from the corresponding real-world setup that can be used for challenging sim2real transfer tasks. These datasets are made publicly available.1
|
| 27 |
+
We propose a new neural architecture to successfully scale VAE-based disentanglement learning approaches to complex datasets.
|
| 28 |
+
• We conduct a large-scale empirical study on generalization to various transfer scenarios on this challenging dataset. We train 1,080 models using state-of-the-art disentanglement methods and discover that disentanglement is a good predictor for out-of-distribution (OOD) performance of downstream tasks.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
Disentanglement methods. Most state-of-the-art disentangled representation learning approaches are based on the framework of variational autoencoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014). A (high-dimensional) observation $_ { \textbf { \em x } }$ is assumed to be generated according to the latent variable model $p _ { \theta } ( \pmb { x } | \pmb { z } ) p ( \pmb { z } )$ where the latent variables $_ { z }$ have a fixed prior $p ( z )$ . The generative model $p _ { \theta } ( { \pmb x } | { \pmb z } )$ and the approximate posterior distribution $q _ { \phi } ( \pmb { z } | \pmb { x } )$ are typically parameterized by neural networks, which are optimized by maximizing the evidence lower bound (ELBO):
|
| 33 |
+
|
| 34 |
+
$$
|
| 35 |
+
\mathcal { L } _ { V A E } = \mathbb { E } _ { q _ { \phi } ( z | x ) } [ \log p _ { \theta } ( \pmb { x } | z ) ] - D _ { \mathrm { K L } } ( q _ { \phi } ( z | \pmb { x } ) | | p ( z ) ) \le \log p ( \pmb { x } )
|
| 36 |
+
$$
|
| 37 |
+
|
| 38 |
+
As the above objective does not enforce any structure on the latent space except for some similarity to $p ( z )$ , different regularization strategies have been proposed, along with evaluation metrics to gauge the disentanglement of the learned representations (Higgins et al., $2 0 1 7 \mathrm { a }$ ; Kim & Mnih, 2018; Burgess et al., 2018; Kumar et al., 2018; Chen et al., 2018; Eastwood & Williams, 2018). Recently, Locatello et al. (2019b, Theorem 1) showed that the purely unsupervised learning of disentangled representations is impossible. This limitation can be overcome without the need for explicitly labeled data by introducing weak labels (Locatello et al., 2020; Shu et al., 2019). Ideas related to disentangling the factors of variation date back to the non-linear ICA literature (Comon, 1994; Hyvarinen & Pajunen, 1999; Bach & Jordan, 2002; Jutten & Karhunen, 2003; Hyvarinen & ¨ Morioka, 2016; Hyvarinen et al., 2019; Gresele et al., 2019). Recent work combines non-linear ICA with disentanglement (Khemakhem et al., 2020; Sorrenson et al., 2020; Klindt et al., 2020).
|
| 39 |
+
|
| 40 |
+
Evaluating disentangled representations. The BetaVAE (Higgins et al., 2017a) and FactorVAE (Kim & Mnih, 2018) scores measure disentanglement by performing an intervention on the factors of variation and predicting which factor was intervened on. The Mutual Information Gap (MIG) (Chen et al., 2018), Modularity (Ridgeway & Mozer, 2018), DCI Disentanglement (Eastwood & Williams, 2018) and SAP scores (Kumar et al., 2018) are based on matrices relating factors of variation and codes (e.g. pairwise mutual information, feature importance and predictability).
|
| 41 |
+
|
| 42 |
+
Datasets for disentanglement learning. dSprites (Higgins et al., 2017a), which consists of binary low-resolution 2D images of basic shapes, is one of the most commonly used synthetic datasets for disentanglement learning. Color-dSprites, Noisy-dSprites, and Scream-dSprites are slightly more challenging variants of dSprites. The SmallNORB dataset contains toy images rendered under different lighting conditions, elevations and azimuths (LeCun et al., 2004). Cars3D (Reed et al., 2015) exhibits different car models from Fidler et al. (2012) under different camera viewpoints. 3dshapes is a popular dataset of simple shapes in a 3D scene (Kim & Mnih, 2018). Finally, Gondal et al. (2019) proposed MPI3D, containing images of physical 3D objects with seven factors of variation, such as object color, shape, size and position available in a simulated, simulated and highly realistic rendered simulated variant. Except MPI3D which has over 1M images, the size of the other datasets is limited with only 17, 568 to 737, 280 images. All of the above datasets exhibit perfect independence of all factors, the number of possible states is on the order of 1M or less, and due to their static setting they do not allow for dynamic downstream tasks such as reinforcement learning. In addition, except for SmallNORB, the image resolution is limited to 64x64 and there are no occlusions.
|
| 43 |
+
|
| 44 |
+
Other related work. Locatello et al. (2020) probed the out-of-distribution generalization of downstream tasks trained on disentangled representations. However, these representations are trained on the entire dataset. Generalization and transfer performance especially for representation learning has likewise been studied in Dayan (1993); Muandet et al. (2013); Heinze-Deml & Meinshausen (2017); Rojas-Carulla et al. (2018); Suter et al. (2019); Li et al. (2018); Arjovsky et al. (2019); Krueger et al. (2020); Gowal et al. (2020). For the role of disentanglement in causal representation learning we refer to the recent overview by Scholkopf et al. (2021). Tr ¨ auble et al. (2020) systematically investi- ¨ gated the effects of correlations between factors of variation on disentangled representation learners. Transfer of learned disentangled representations from simulation to the real world has been recently investigated by Gondal et al. (2019) on the MPI3D dataset, and previously by Higgins et al. (2017b) in the context of reinforcement learning. Sim2real transfer is of major interest in the robotic learning community, because of limited data and supervision in the real world (Tobin et al., 2017; Rusu et al., 2017; Peng et al., 2018; James et al., 2019; Yan et al., 2020; Andrychowicz et al., 2020).
|
| 45 |
+
|
| 46 |
+
A new challenging dataset. Simulated images in our dataset are derived from the trifinger robot platform introduced by Wuthrich et al. ¨ (2020). The motivation for choosing this setting is that (1) it is challenging due to occlusions, correlations, and other difficulties encountered in robotic settings, (2) it requires modeling of fine details such as tip links at high resolutions, and (3) it corresponds to a robotic setup, so that learned representations can be used for control and reinforcement learning in simulation and in the real world. The scene comprises a robot finger with three joints that can be controlled to manipulate a cube in a bowl-shaped stage. Fig. 1 shows examples of scenes from our dataset. The data is generated from 7 different factors of variation (FoV)
|
| 47 |
+
|
| 48 |
+
3 SCALING DISENTANGLED REPRESENTATIONS TO COMPLEX SCENARIOS
|
| 49 |
+
Table 1: Factors of variation in the proposed dataset. Values are linearly spaced in the specified intervals. Joint angles are in radians, cube positions in meters.
|
| 50 |
+
|
| 51 |
+
<table><tr><td rowspan=1 colspan=2>FoV Values</td></tr><tr><td rowspan=1 colspan=1>Upper joint</td><td rowspan=1 colspan=1>30 values in[-0.65,+0.65]</td></tr><tr><td rowspan=1 colspan=1>Middle joint 30 values in</td><td rowspan=1 colspan=1>[-0.5,+0.5]</td></tr><tr><td rowspan=1 colspan=1>Lower joint 30 values in</td><td rowspan=1 colspan=1>[-0.8,+0.8]</td></tr><tr><td rowspan=2 colspan=1>Cube position X 30 values in[-0.11, +0.11]Cube position y 30 values in[-0.11, +0.11]</td><td rowspan=1 colspan=1>+0.11]</td></tr><tr><td rowspan=1 colspan=1>[-0.11, +0.11]</td></tr><tr><td rowspan=1 colspan=1>Cube rotation 10 values in [0°,81°]</td><td rowspan=2 colspan=1>12 values in [0°,330°]</td></tr><tr><td rowspan=1 colspan=1>Cube color hue 12 values in [0°,330°]</td></tr></table>
|
| 52 |
+
|
| 53 |
+
listed in Table 1. Unlike in previous datasets, not all FoVs are independent: The end-effector (the tip of the finger) can collide with the floor or the cube, resulting in infeasible combinations of the factors (see Appendix B.1). We argue that such correlations are a key feature in real-world data that is not present in existing datasets. The high FoV resolution results in approximately 1.52 billion feasible states, but the dataset itself only contains one million of them (approximately $0 . 0 6 5 \%$ of all possible FoV combinations), realistically rendered into $1 2 8 \times 1 2 8$ images. Additionally, we recorded an annotated dataset under the same conditions in the real-world setup: we acquired 1,809 camera images from the same viewpoint and recorded the labels of the 7 underlying factors of variation. This dataset can be used for out-of-distribution evaluations, few-shot learning, and testing other sim2real aspects.
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
Figure 2: Latent traversals of a trained model that perfectly disentangles the dataset’s FoVs. In each column, all latent variables but one are fixed.
|
| 57 |
+
|
| 58 |
+
Model architecture. When scaling disentangled representation learning to more complex datasets, such as the one proposed here, one of the main bottlenecks in current VAE-based approaches is the flexibility of the encoder and decoder networks. In particular, using the architecture from Locatello et al. (2019b), none of the models we trained correctly captured all factors of variation or yielded high-quality reconstructions. While the increased image resolution already presents a challenge, the main practical issue in our new dataset is the level of detail that needs to be modeled. In particular, we identified the cube rotation and the lower joint position to be the factors of variation that were the hardest to capture. This is likely because these factors only produce relatively small changes in the image and hence the reconstruction error.
|
| 59 |
+
|
| 60 |
+
To overcome these issues, we propose a deeper and wider neural architecture than those commonly used in the disentangled representation learning literature, where the encoder and decoder typically have 4 convolutional and 2 fully-connected layers. Our encoder consists of a convolutional layer, 10 residual blocks, and 2 fully-connected layers. Some residual blocks are followed by 1x1 convolutions that change the number of channels, or by average pooling that downsamples the tensors by a factor of 2 along the spatial dimensions. Each residual block consists of two 3x3 convolutions with a leaky ReLU nonlinearity, and a learnable scalar gating mechanism (Bachlechner et al., 2020). Overall, the encoder has 23 convolutional layers and 2 fully connected layers. The decoder mirrors this architecture, with average pooling replaced by bilinear interpolation for upsampling. The total number of parameters is approximately 16.3M. See Appendix A for further implementation details.
|
| 61 |
+
|
| 62 |
+
Experimental setup. We perform a large-scale empirical study on the simulated dataset introduced above by training 1,080 $\beta$ -VAE models.2 For further experimental details we refer the reader to Appendix A. The hyperparameter sweep is defined as follows:
|
| 63 |
+
|
| 64 |
+
• We train the models using either unsupervised learning or weakly supervised learning (Locatello et al., 2020). In the weakly supervised case, a model is trained with pairs of images that differ in $k$ factors of variation. Here we fix $k = 1$ as it was shown to lead to higher disentanglement by Locatello et al. (2020). The dataset therefore consists of $5 0 0 \mathrm { k }$ pairs of images that differ in only one FoV.
|
| 65 |
+
• We vary the parameter $\beta$ in $\{ 1 , 2 , 4 \}$ , and use linear deterministic warm-up (Bowman et al., 2015; Sønderby et al., 2016) over the first $\{ 0 , 1 0 0 0 0 , 5 0 0 0 0 \}$ training steps.
|
| 66 |
+
• The latent space dimensionality is in $\{ 1 0 , 2 5 , 5 0 \}$ .
|
| 67 |
+
• Half of the models are trained with additive noise in the input image. This choice is motivated by the fact that adding noise to the input of neural networks has been shown to be beneficial for out-of-distribution generalization (Sietsma & Dow, 1991; Bishop, 1995).
|
| 68 |
+
• Each of the 108 resulting configurations is trained with 10 random seeds.
|
| 69 |
+
|
| 70 |
+
Can we scale up disentanglement learning? Most of the trained VAEs in our empirical study fully capture all the elements of a scene, correctly model heavy occlusions, and generate detailed, high-quality samples and reconstructions (see Appendix B.2). From visual inspections such as the latent traversals in Fig. 2, we observe that many trained models fully disentangle the ground-truth factors of variation. This, however, appears to only be possible in the weakly supervised scenario. The fact that models trained without supervision learn entangled representations is in line with the impossibility result for the unsupervised learning of disentangled representations from Locatello et al. (2019b). Latent traversals from a selection of models with different degrees of disentanglement are presented in Appendix B.3. Interestingly, the high-disentanglement models seem to correct for correlations and interpolate infeasible states, i.e. the fingertip traverses through the cube or the floor.
|
| 71 |
+
|
| 72 |
+

|
| 73 |
+
Figure 3: Left: Disentanglement metrics aggregating all hyperparameters except for supervision type. Right: Rank correlations (Spearman) of ELBO, reconstruction loss, and the test error of a GBT classifier trained on 10,000 labelled data points with disentanglement metrics. The upper rank correlations correspond to the unsupervised models and the lower to the weakly supervised models.
|
| 74 |
+
|
| 75 |
+
Summary: The proposed architecture can scale disentanglement learning to more realistic settings, but a form of weak supervision is necessary to achieve high disentanglement.
|
| 76 |
+
|
| 77 |
+
How useful are common disentanglement metrics in realistic scenarios? The violin plot in Fig. 3 (left) shows that DCI and MIG measure high disentanglement under weak supervision and lower disentanglement in the unsupervised setting. This is consistent with our qualitative conclusion from visual inspection of the models (Appendix B.3) and with the aforementioned impossibility result. Many of the models trained with weak supervision exhibit a very high DCI score $2 9 \%$ of them have ${ > } 9 9 \%$ DCI, some of them up to $9 9 . 8 9 \%$ ). SAP and Modularity appear to be ineffective at capturing disentanglement in this setting, as also observed by Locatello et al. (2019b). Finally, note that the BetaVAE and FactorVAE metrics are not straightforward to be evaluated on datasets that do not contain all possible combinations of factor values. According to Fig. 3 (right), DCI and MIG strongly correlate with test accuracy of GBT classifiers predicting the FoVs. In the weakly supervised setting, these metrics are strongly correlated with the ELBO (positively) and with the reconstruction loss (negatively). We illustrate these relationships in more detail in Appendix B.4. Such correlations were also observed by Locatello et al. (2020) on significantly less complex datasets, and can be exploited for unsupervised model selection: these unsupervised metrics can be used as proxies for disentanglement metrics, which would require fully labeled data.
|
| 78 |
+
|
| 79 |
+
Summary: DCI and MIG appear to be useful disentanglement metrics in realistic scenarios, whereas other metrics seem to fall short of capturing disentanglement or can be difficult to compute. When using weak supervision, we can select disentangled models with unsupervised metrics.
|
| 80 |
+
|
| 81 |
+
# 4 FRAMEWORK FOR THE EVALUATION OF OOD GENERALIZATION
|
| 82 |
+
|
| 83 |
+
Previous work has focused on evaluating the usefulness of disentangled representations for various downstream tasks, such as predicting ground truth factors of variation, fair classification, and abstract reasoning. Here we propose a new framework for evaluating the out-of-distribution (OOD) generalization properties of representations. More specifically, we consider a downstream task – in our case, regression of ground truth factors – trained on a learned representation of the data, and evaluate the performance on a held-out test set. While the test set typically follows the same distribution as the training set (in-distribution generalization), we also consider test sets that follow a different distribution (out-of-distribution generalization). Our goal is to investigate to what extent, if at all, downstream tasks trained on disentangled representations exhibit a higher degree of OOD generalization than those trained on entangled representations.
|
| 84 |
+
|
| 85 |
+
Let $D$ denote the training set for disentangled representation learning. To investigate OOD generalization, we train downstream regression models on a subset $D _ { 1 } \subset D$ to predict ground truth factor values from the learned representation computed by the encoder. We independently train one predictor per factor. We then test the regression models on a set $D _ { 2 }$ that differs distributionally from the training set $D _ { 1 }$ , as it either contains images corresponding to held-out values of a chosen FoV (e.g. unseen object colors), or it consists of real-world images. We now differentiate between two scenarios: (1) $D _ { 2 } \subset D$ , i.e. the OOD test set is a subset of the dataset for representation learning; (2) $D$ and $D _ { 2 }$ are disjoint and distributionally different. These two scenarios will be denoted by $O O D I$ and $O O D 2$ , respectively. For example, consider the case in which distributional shifts are based on one FoV: the color of the object. Then, we could define these datasets such that images in $D$ always contain a red or blue object, and those in $D _ { 1 } \subset D$ always contain a red object. In the OOD1 scenario, images in $D _ { 2 }$ would always contain a blue object, whereas in the OOD2 case they would always contain an object that is neither red nor blue.
|
| 86 |
+
|
| 87 |
+
The regression models considered here are Gradient Boosted Trees (GBT), random forests, and MLPs with $\{ 1 , 2 , 3 \}$ hidden layers. Since random forests exhibit a similar behavior to GBTs, and all MLPs yield similar results to each other, we choose GBTs and the 2-layer MLP as representative models and only report results for those. To quantify prediction quality, we normalize the ground truth factor values to the range $[ 0 , 1 ]$ , and compute the mean absolute error (MAE). Since the values are normalized, we can define our transfer metric as the average of the MAE over all factors (except for the FoV that is OOD).
|
| 88 |
+
|
| 89 |
+
# 5 BENEFITS AND TRANSFER OF STRUCTURED REPRESENTATIONS
|
| 90 |
+
|
| 91 |
+
Experimental setup. We evaluate the transfer metric introduced in Section 4 across all 1,080 trained models. To compute this metric, we train regression models to predict the ground truth factors of variation, and test them under distributional shift. We consider distributional shifts in terms of cube color or sim2real, and we do not evaluate downstream prediction of cube color. We report scores for two different regression models: a Gradient Boosted Tree (GBT) and an MLP with 2 hidden layers of size 256. In Appendix A we provide details on the datasets used in this section.
|
| 92 |
+
|
| 93 |
+
In the OOD1 setting, we have $D _ { 2 } ~ \subset ~ D$ , hence the encoder is in-distribution: we are testing the predictor on representations of images that were in the training set of the representation learning algorithm. Therefore, we expect the representations to be meaningful. We consider three scenarios:
|
| 94 |
+
|
| 95 |
+
OOD1-A: The regression models are trained on 1 cube color (red) and evaluated on the remaining 7 colors. OOD1-B: The regression models are trained on 4 cube colors with high hue in the HSV space, and evaluated on 4 cube colors with low hue (extrapolation). OOD1-C: The regression models are again trained and evaluated on 4 cube colors, but the training and evaluation colors are alternating along the hue dimension (interpolation).
|
| 96 |
+
|
| 97 |
+
In the more challenging setting where even the encoder goes out-of-distribution (OOD2, with $D _ { 2 } \cap$ $D = \varnothing$ ), we train the regression models on a subset of the training set $D$ that includes all 8 cube colors, and we consider the two following scenarios:
|
| 98 |
+
|
| 99 |
+
• OOD2-A: The regression models are evaluated on simulated data, on 4 cube colors that are out of the encoder’s training distribution.
|
| 100 |
+
• OOD2-B: The regression models are evaluated on real-world images of the robotic setup, without any adaptation or fine-tuning.
|
| 101 |
+
|
| 102 |
+

|
| 103 |
+
Figure 4: Higher disentanglement corresponds to better generalization across all OOD1 scenarios, as seen from the transfer scores (left). The transfer score is computed as the mean absolute prediction error of ground truth factor values (lower is better). This correlation is particularly evident in the GBT case, whereas MLPs appear to exhibit better OOD1 transfer with very high disentanglement only. These results are mirrored in the Spearman rank correlations between transfer scores and disentanglement metrics (right).
|
| 104 |
+
|
| 105 |
+
Is disentanglement correlated with OOD1 generalization? In Fig. 4 we consistently observe a negative correlation between disentanglement and transfer error across all OOD1 settings. The correlation is mild when using MLPs, strong when using GBTs. This difference is expected, as GBTs have an axis-alignment bias whereas MLPs can – given enough data and capacity – disentangle an entangled representation more easily. Our results therefore suggest that highly disentangled representations are useful for generalizing out-of-distribution as long as the encoder remains in-distribution. This is in line with the correlation found by Locatello et al. (2019b) between disentanglement and the GBT10000 metric. There, however, GBTs are tested on the same distribution as the training distribution, while here we test them under distributional shift. Given that the computation of disentanglement scores requires labels, this is of little benefit in the unsupervised setting. However, it can be exploited in the weakly supervised setting, where disentanglement was shown to correlate with ELBO and reconstruction loss (Section 3). Therefore, model selection for representations that transfer well in these scenarios is feasible based on the ELBO or reconstruction loss, when weak supervision is available. Note that, in absolute terms, the OOD generalization error with encoder in-distribution (OOD1) is very low in the high-disentanglement case (the only exception being the MLP in the OOD1-C case, with the 1-7 color split, which seems to overfit). This suggests that disentangled representations can be useful in downstream tasks even when transferring out of the training distribution.
|
| 106 |
+
|
| 107 |
+
Summary: Disentanglement seems to be positively correlated with OOD generalization of downstream tasks, provided that the encoder remains in-distribution (OOD1). Since in the weakly supervised case disentanglement correlates with the ELBO and the reconstruction loss, model selection can be performed using these metrics as proxies for disentanglement. These metrics have the advantage that they can be computed without labels, unlike disentanglement metrics.
|
| 108 |
+
|
| 109 |
+
Is disentanglement correlated with OOD2 generalization? As seen in Fig. 5, the negative correlation between disentanglement and GBT transfer error is weaker when the encoder is out of distribution (OOD2). Nonetheless, we observe a non-negligible correlation for GBTs in the OOD2- A case, where we investigate out-of-distribution generalization along one FoV, with observations in $D _ { 2 }$ still generated from the same simulator. In the OOD2-B setting, where the observations are taken from cameras in the corresponding real-world setting, the correlation between disentanglement and transfer performance appears to be minor at best. This scenario can be considered a variant of zero-shot sim2real generalization.
|
| 110 |
+
|
| 111 |
+
Summary: Disentanglement has a minor effect on out-of-distribution generalization outside of the training distribution of the encoder (OOD2).
|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
Figure 5: Disentanglement affects generalization across the OOD2 scenarios only minimally as seen from transfer scores (left) and corresponding rank correlations with disentanglement metrics (right).
|
| 115 |
+
|
| 116 |
+

|
| 117 |
+
Figure 6: Noise improves generalization across the OOD2 scenarios and less so for the OOD1 scenarios as seen from the transfer scores. Top row: Spearman rank correlation coefficients between transfer metrics and presence of noise in the input.
|
| 118 |
+
|
| 119 |
+
What else matters for OOD2 generalization? Results in Fig. 6 suggest that adding Gaussian noise to the input during training as described in Section 3 leads to significantly better OOD2 generalization, and has no effect on OOD1 generalization. Adding noise to the input of neural networks is known to lead to better generalization (Sietsma & Dow, 1991; Bishop, 1995). This is in agreement with our results, since OOD1 generalization does not require generalization of the encoder, while OOD2 does. Interestingly, closer inspection reveals that the contribution of different factors of variation to the generalization error can vary widely. See Appendix B.5 for further details. In particular, with noisy input, the position of the cube is predicted accurately even in real-world images ${ < } 5 \%$ mean absolute error on each axis). This is promising for robotics applications, where the true state of the joints is observable but inference of the cube position relies on object tracking methods. Fig. 7 shows an example of real-world inputs and reconstructions of their simulated equivalents.
|
| 120 |
+
|
| 121 |
+
Summary: Adding input noise during training appears to be significantly beneficial for OOD2 generalization, while having no effect when the encoder is kept in its training distribution (OOD1).
|
| 122 |
+
|
| 123 |
+
# 6 CONCLUSION
|
| 124 |
+
|
| 125 |
+
Despite the growing importance of the field and the potential societal impact in the medical domain (Chartsias et al., 2018) and fair decision making (Locatello et al., 2019a), state-of-the-art approaches for learning disentangled representations have so far only been systematically evaluated on synthetic toy datasets. Here we introduced a new high-resolution dataset with 1M simulated images and over 1,800 annotated real-world images of the same setup. This dataset exhibits a number of challenges and features which are not present in previous datasets: it contains correlations between factors, occlusions, a complex underlying structure, and it allows for evaluation of transfer to unseen simulated and real-world settings. We proposed a new VAE architecture to scale disentangled representation learning to this realistic setting and conducted a large-scale empirical study of disentangled representations on this dataset. We discovered that disentanglement is a good predictor of OOD generalization of downstream tasks and showed that, in the context of weak supervision, model selection for good OOD performance can be based on the ELBO or the reconstruction loss, which are accessible without explicit labels. Our setting allows for studying a wide variety of interesting downstream tasks in the future, such as reinforcement learning or learning a dynamics model of the environment. Finally, we believe that in the future it will be important to take further steps in the direction of this paper by considering settings with even more complex structures and stronger correlations between factors.
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
Figure 7: Zero-shot transfer to real-world observations of our models trained in simulation. Left: input; right: reconstruction.
|
| 129 |
+
|
| 130 |
+
# ACKNOWLEDGEMENTS
|
| 131 |
+
|
| 132 |
+
The authors thank Shruti Joshi and Felix Widmaier for their useful comments on the simulated setup, Anirudh Goyal for helpful discussions and comments, and CIFAR for the support. We thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Frederik Trauble.¨
|
| 133 |
+
|
| 134 |
+
# REFERENCES
|
| 135 |
+
|
| 136 |
+
Tameem Adel, Zoubin Ghahramani, and Adrian Weller. Discovering interpretable representations for both deep generative and discriminative models. In International Conference on Machine Learning, pp. 50–59, 2018.
|
| 137 |
+
|
| 138 |
+
OpenAI: Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 39(1):3–20, 2020.
|
| 139 |
+
|
| 140 |
+
Martin Arjovsky, Leon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. ´ arXiv preprint arXiv:1907.02893, 2019.
|
| 141 |
+
|
| 142 |
+
Francis Bach and Michael Jordan. Kernel independent component analysis. Journal of Machine Learning Research, 3(7):1–48, 2002.
|
| 143 |
+
|
| 144 |
+
Thomas Bachlechner, Bodhisattwa Prasad Majumder, Huanru Henry Mao, Garrison W Cottrell, and Julian McAuley. Rezero is all you need: Fast convergence at large depth. arXiv preprint arXiv:2003.04887, 2020.
|
| 145 |
+
|
| 146 |
+
Chris M Bishop. Training with noise is equivalent to tikhonov regularization. Neural computation, 7(1):108–116, 1995.
|
| 147 |
+
|
| 148 |
+
Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015.
|
| 149 |
+
|
| 150 |
+
Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in beta-VAE. arXiv preprint arXiv:1804.03599, 2018.
|
| 151 |
+
|
| 152 |
+
Agisilaos Chartsias, Thomas Joyce, Giorgos Papanastasiou, Scott Semple, Michelle Williams, David Newby, Rohan Dharmakumar, and Sotirios A Tsaftaris. Factorised spatial representation learning: Application in semi-supervised myocardial segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 490–498. Springer, 2018.
|
| 153 |
+
|
| 154 |
+
Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, 2018.
|
| 155 |
+
|
| 156 |
+
Pierre Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994.
|
| 157 |
+
|
| 158 |
+
Peter Dayan. Improving generalization for temporal difference learning: The successor representation. Neural Computation, 5(4):613–624, 1993.
|
| 159 |
+
|
| 160 |
+
Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. In International Conference on Learning Representations, 2018.
|
| 161 |
+
|
| 162 |
+
Sanja Fidler, Sven Dickinson, and Raquel Urtasun. 3d object detection and viewpoint estimation with a deformable 3d cuboid model. In Advances in neural information processing systems, pp. 611–619, 2012.
|
| 163 |
+
|
| 164 |
+
Muhammad Waleed Gondal, Manuel Wuthrich, Djordje Miladinovi ¨ c, Francesco Locatello, Martin ´ Breidt, Valentin Volchkov, Joel Akpo, Olivier Bachem, Bernhard Scholkopf, and Stefan Bauer. ¨ On the transfer of inductive bias from simulation to the real world: a new disentanglement dataset. In Advances in Neural Information Processing Systems, 2019.
|
| 165 |
+
|
| 166 |
+
Sven Gowal, Chongli Qin, Po-Sen Huang, Taylan Cemgil, Krishnamurthy Dvijotham, Timothy Mann, and Pushmeet Kohli. Achieving robustness in the wild via adversarial mixing with disentangled representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1211–1220, 2020.
|
| 167 |
+
|
| 168 |
+
Luigi Gresele, Paul K. Rubenstein, Arash Mehrjou, Francesco Locatello, and Bernhard Scholkopf.¨ The incomplete rosetta stone problem: Identifiability results for multi-view nonlinear ica. In Conference on Uncertainty in Artificial Intelligence (UAI), 2019.
|
| 169 |
+
|
| 170 |
+
Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. arXiv preprint arXiv:1710.11469, 2017.
|
| 171 |
+
|
| 172 |
+
Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a.
|
| 173 |
+
|
| 174 |
+
Irina Higgins, Arka Pal, Andrei Rusu, Loic Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. Darla: Improving zero-shot transfer in reinforcement learning. In International Conference on Machine Learning, 2017b.
|
| 175 |
+
|
| 176 |
+
Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bosnjak, ˇ Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018.
|
| 177 |
+
|
| 178 |
+
Aapo Hyvarinen and Hiroshi Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ica. In Advances in Neural Information Processing Systems, 2016.
|
| 179 |
+
|
| 180 |
+
Aapo Hyvarinen and Petteri Pajunen. Nonlinear independent component analysis: Existence and ¨ uniqueness results. Neural Networks, 1999.
|
| 181 |
+
|
| 182 |
+
Aapo Hyvarinen, Hiroaki Sasaki, and Richard E Turner. Nonlinear ica using auxiliary variables and generalized contrastive learning. In International Conference on Artificial Intelligence and Statistics, 2019.
|
| 183 |
+
|
| 184 |
+
Stephen James, Paul Wohlhart, Mrinal Kalakrishnan, Dmitry Kalashnikov, Alex Irpan, Julian Ibarz, Sergey Levine, Raia Hadsell, and Konstantinos Bousmalis. Sim-to-real via sim-to-sim: Dataefficient robotic grasping via randomized-to-canonical adaptation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 12627–12637, 2019.
|
| 185 |
+
|
| 186 |
+
Christian Jutten and Juha Karhunen. Advances in nonlinear blind source separation. In International Symposium on Independent Component Analysis and Blind Signal Separation, pp. 245–256, 2003.
|
| 187 |
+
|
| 188 |
+
Ilyes Khemakhem, Diederik Kingma, Ricardo Monti, and Aapo Hyvarinen. Variational autoencoders and nonlinear ica: A unifying framework. In International Conference on Artificial Intelligence and Statistics, pp. 2207–2217, 2020.
|
| 189 |
+
|
| 190 |
+
Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In International Conference on Machine Learning, 2018.
|
| 191 |
+
|
| 192 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 193 |
+
|
| 194 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations, 2014.
|
| 195 |
+
|
| 196 |
+
David Klindt, Lukas Schott, Yash Sharma, Ivan Ustyuzhaninov, Wieland Brendel, Matthias Bethge, and Dylan Paiton. Towards nonlinear disentanglement in natural data with temporal sparse coding. arXiv preprint arXiv:2007.10930, 2020.
|
| 197 |
+
|
| 198 |
+
David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020.
|
| 199 |
+
|
| 200 |
+
Abhishek Kumar, Prasanna Sattigeri, and Avinash Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. In International Conference on Learning Representations, 2018.
|
| 201 |
+
|
| 202 |
+
Yann LeCun, Fu Jie Huang, and Leon Bottou. Learning methods for generic object recognition with invariance to pose and lighting. In IEEE Conference on Computer Vision and Pattern Recognition, 2004.
|
| 203 |
+
|
| 204 |
+
Ya Li, Xinmei Tian, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 624–639, 2018.
|
| 205 |
+
|
| 206 |
+
Francesco Locatello, Gabriele Abbati, Thomas Rainforth, Stefan Bauer, Bernhard Scholkopf, and ¨ Olivier Bachem. On the fairness of disentangled representations. In Advances in Neural Information Processing Systems, pp. 14611–14624, 2019a.
|
| 207 |
+
|
| 208 |
+
Francesco Locatello, Stefan Bauer, Mario Lucic, Sylvain Gelly, Bernhard Scholkopf, and Olivier ¨ Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In International Conference on Machine Learning, 2019b.
|
| 209 |
+
|
| 210 |
+
Francesco Locatello, Ben Poole, Gunnar Ratsch, Bernhard Sch¨ olkopf, Olivier Bachem, and¨ Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020.
|
| 211 |
+
|
| 212 |
+
Krikamol Muandet, David Balduzzi, and Bernhard Scholkopf. Domain generalization via invariant ¨ feature representation. In International Conference on Machine Learning, pp. 10–18, 2013.
|
| 213 |
+
|
| 214 |
+
Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE international conference on robotics and automation (ICRA), pp. 1–8. IEEE, 2018.
|
| 215 |
+
|
| 216 |
+
Scott Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep visual analogy-making. In Advances in Neural Information Processing Systems, 2015.
|
| 217 |
+
|
| 218 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014.
|
| 219 |
+
|
| 220 |
+
Karl Ridgeway and Michael C Mozer. Learning deep disentangled embeddings with the f-statistic loss. In Advances in Neural Information Processing Systems, 2018.
|
| 221 |
+
|
| 222 |
+
Mateo Rojas-Carulla, Bernhard Scholkopf, Richard Turner, and Jonas Peters. Invariant models for ¨ causal transfer learning. The Journal of Machine Learning Research, 19(1):1309–1342, 2018.
|
| 223 |
+
|
| 224 |
+
Andrei A Rusu, Matej Vecer ˇ ´ık, Thomas Rothorl, Nicolas Heess, Razvan Pascanu, and Raia Hadsell. ¨ Sim-to-real robot learning from pixels with progressive nets. In Conference on Robot Learning, pp. 262–270, 2017.
|
| 225 |
+
|
| 226 |
+
Bernhard Scholkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner, ¨ Anirudh Goyal, and Yoshua Bengio. Towards causal representation learning. arXiv preprint arXiv:2102.11107, 2021.
|
| 227 |
+
|
| 228 |
+
Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, and Ben Poole. Weakly supervised disentanglement with guarantees. arXiv preprint arXiv:1910.09772, 2019.
|
| 229 |
+
|
| 230 |
+
Jocelyn Sietsma and Robert JF Dow. Creating artificial neural networks that generalize. Neural networks, 4(1):67–79, 1991.
|
| 231 |
+
|
| 232 |
+
Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Advances in neural information processing systems, pp. 3738–3746, 2016.
|
| 233 |
+
|
| 234 |
+
Peter Sorrenson, Carsten Rother, and Ullrich Kothe. Disentanglement by nonlinear ica with general ¨ incompressible-flow networks (gin). arXiv preprint arXiv:2001.04872, 2020.
|
| 235 |
+
|
| 236 |
+
Raphael Suter, Djordje Miladinovic, Bernhard Scholkopf, and Stefan Bauer. Robustly disentangled ¨ causal mechanisms: Validating deep representations for interventional robustness. In International Conference on Machine Learning, pp. 6056–6065. PMLR, 2019.
|
| 237 |
+
|
| 238 |
+
Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 23–30. IEEE, 2017.
|
| 239 |
+
|
| 240 |
+
Frederik Trauble, Elliot Creager, Niki Kilbertus, Francesco Locatello, Andrea Dittadi, Anirudh ¨ Goyal, Bernhard Scholkopf, and Stefan Bauer. On disentangled representations learned from ¨ correlated data. arXiv preprint arXiv:2006.07886, 2020.
|
| 241 |
+
|
| 242 |
+
Sjoerd van Steenkiste, Francesco Locatello, Jurgen Schmidhuber, and Olivier Bachem. Are disen- ¨ tangled representations helpful for abstract visual reasoning? arXiv preprint arXiv:1905.12506, 2019.
|
| 243 |
+
|
| 244 |
+
Manuel Wuthrich, Felix Widmaier, Felix Grimminger, Joel Akpo, Shruti Joshi, Vaibhav Agrawal, ¨ Bilal Hammoud, Majid Khadiv, Miroslav Bogdanovic, Vincent Berenz, et al. Trifinger: An opensource robot for learning dexterity. arXiv preprint arXiv:2008.03596, 2020.
|
| 245 |
+
|
| 246 |
+
Mengyuan Yan, Qingyun Sun, Iuri Frosio, Stephen Tyree, and Jan Kautz. How to close sim-real gap? transfer with segmentation! arXiv preprint arXiv:2005.07695, 2020.
|
| 247 |
+
|
| 248 |
+
# A IMPLEMENTATION DETAILS
|
| 249 |
+
|
| 250 |
+
Training. We train the $\beta$ -VAEs by maximizing the following objective function:
|
| 251 |
+
|
| 252 |
+
$$
|
| 253 |
+
\mathcal { L } _ { V A E } ^ { \beta } = \mathbb { E } _ { q _ { \phi } ( z | \mathbf { x } ) } [ \log p _ { \theta } ( \mathbf { x } | z ) ] - \beta D _ { \mathrm { K L } } ( q _ { \phi } ( z | \mathbf { x } ) \| p ( z ) ) \leq \log p ( \mathbf { x } )
|
| 254 |
+
$$
|
| 255 |
+
|
| 256 |
+
with $\beta > 0$ using the Adam optimizer (Kingma & Ba, 2014) with default parameters. We use a batch size of 64 and train for 400k steps. The learning rate is initialized to 1e-4 and halved at 150k and $3 0 0 \mathrm { k }$ training steps. We clip the global gradient norm to 1.0 before each weight update. Following Locatello et al. (2019b), we use a Gaussian encoder with an isotropic Gaussian prior for the latent variable, and a Bernoulli decoder. Our implementation of weakly supervised learning is based on Ada-GVAE (Locatello et al., 2020), but uses a symmetrized KL divergence:
|
| 257 |
+
|
| 258 |
+
$$
|
| 259 |
+
\tilde { D } _ { \mathrm { K L } } ( p , q ) = \frac { 1 } { 2 } D _ { \mathrm { K L } } ( p \Vert q ) + \frac { 1 } { 2 } D _ { \mathrm { K L } } ( q \Vert p )
|
| 260 |
+
$$
|
| 261 |
+
|
| 262 |
+
to infer which latent dimensions should be aggregated.
|
| 263 |
+
|
| 264 |
+
The noise added to the encoder’s input consists of two independent components, both iid Gaussian with zero mean: one is independent for each subpixel (RGB) and has standard deviation 0.03, the other is a $8 \times 8$ pixel-wise (greyscale) noise with standard deviation 0.15, bilinearly upsampled by a factor of 16. The latter has been designed (by visual inspection) to roughly mimic observation noise in the real images due to complex lighting conditions.
|
| 265 |
+
|
| 266 |
+
Neural architecture. Architectural details are provided in Tables 2 and 3, and Fig. 8 provides a high-level overview. In preliminary experiments, we observed that batch normalization, layer normalization, and dropout did not significantly affect performance in terms of ELBO, model samples, and disentanglement scores, both in the unsupervised and weakly supervised settings. On the other hand, layer normalization before the posterior parameterization (last layer of the encoder) appeared to be beneficial for stability in early training. While using an architecture based on residual blocks leads to fast convergence, in practice we observed that it may be challenging to keep the gradients in check at the beginning of training.3 In order to solve this issue, we resorted to a simple scalar gating mechanism in the residual blocks (Bachlechner et al., 2020) such that each residual block is initialized to the identity.
|
| 267 |
+
|
| 268 |
+
Datasets and OOD evaluation. Because we evaluate OOD generalization in terms of cube color hue (except in the sim2real case), we first sampled 8 color hues at random from the 12 specified in Table 1. The chosen hues are: $[ 0 ^ { \circ } , 1 2 0 ^ { \circ }$ , $1 5 0 ^ { \circ }$ , $1 8 0 ^ { \circ }$ , $2 1 0 ^ { \circ }$ , $2 7 0 ^ { \circ }$ , $3 0 0 ^ { \circ } , 3 3 0 ^ { \circ } ]$ ]. Then, the dataset $D$ used for training VAEs is generated by randomly sampling values for the factors of variation from Table 1, with the color hue restricted to the above-mentioned values. This makes OOD2 evaluation possible, specifically OOD2-A where the learned predictors are tested on representations extracted from images with held-out values of the cube hue.
|
| 269 |
+
|
| 270 |
+
For evaluation of out-of-distribution generalization, we train the downstream predictors on a subset $D _ { 1 } \subset D$ of the representation training set. The downstream training set $D _ { 1 }$ is sampled at random from $D$ but only contains a (not necessarily proper) subset of the 8 cube colors. This subset contains 1 color in the OOD1-A case, 4 colors in OOD1-B and OOD1-C, all 8 colors in OOD2 (in this case $D _ { 1 }$ is simply a random subset of $D$ ). Then we test the downstream predictors on a set $D _ { 2 }$ distributionally different from $D _ { 1 }$ in terms of cube color (all OOD1 scenarios as well as OOD2-A) or sim2real (OOD2-B). In the OOD1 case, $D _ { 2 }$ is also a subset of $D$ and is generated the same way. In each OOD1 case, the test set $D _ { 2 }$ is paired with its corresponding $D _ { 1 }$ that was used to train the downstream predictors. $D _ { 2 }$ contains all colors in $D$ minus those in $D _ { 1 }$ . In the OOD2-A case, $D _ { 2 }$ is a separate dataset containing $5 \mathrm { k }$ simulated images like those in $D$ , except that these only contain the 4 colors that were left out from the VAE training set $D$ (hue in $[ 3 0 ^ { \circ } , 6 0 ^ { \circ } , 9 0 ^ { \circ } , 2 4 0 ^ { \circ } ] )$ . In the OOD2-B case, the set $D _ { 2 }$ is the dataset of real images. Following previous work (e.g. the GBT10000 metric in Locatello et al. (2019b)), the training set $D _ { 1 }$ and test set $D _ { 2 }$ for downstream tasks contain 10k and $5 \mathrm { k }$ images, respectively, except in the OOD2-B case, where the size is limited by the size of the real dataset.
|
| 271 |
+
|
| 272 |
+
<table><tr><td colspan="2">Encoder</td></tr><tr><td>Operation</td><td>Output Shape</td></tr><tr><td>Input Conv 5x5, stride 2, 64 ch. LeakyReLU(0.02) 2x ResidualBlock(64)</td><td>128×128×K 64×64×64</td></tr><tr><td>Conv 1x1,128 channels AveragePool(2) 2x ResidualBlock(128)</td><td>64×64×128 32×32×128</td></tr><tr><td>AveragePool(2) 2x ResidualBlock(128) Conv 1x1,256 channels</td><td>16×16×128</td></tr><tr><td>AveragePool(2) 2x ResidualBlock(256) AveragePool(2)</td><td>16×16×256 8×8×256</td></tr><tr><td>2x ResidualBlock(256) Flatten LeakyReLU(0.02)</td><td>4×4×256 一</td></tr><tr><td></td><td>4096 512</td></tr><tr><td>FC(512) LeakyReLU(0.02) LayerNorm 2x FC(d)</td><td>一 2d</td></tr></table>
|
| 273 |
+
|
| 274 |
+
<table><tr><td colspan="2">Decoder</td></tr><tr><td>Operation</td><td>Output Shape</td></tr><tr><td>Input FC(512)</td><td>d 512</td></tr><tr><td>LeakyReLU(0.02) FC(4096)</td><td></td></tr><tr><td rowspan="2">Reshape 2x ResidualBlock(256) BilinearInterpolation(2)</td><td>4096 4×4×256</td></tr><tr><td></td></tr><tr><td>2x ResidualBlock(256) Conv 1x1,128 channels</td><td>8×8×256 8×8×128</td></tr><tr><td>BilinearInterpolation(2) 2x ResidualBlock(128) BilinearInterpolation(2)</td><td>16×16×128</td></tr><tr><td>2x ResidualBlock(128) Conv 1x1, 64 channels BilinearInterpolation(2)</td><td>32×32×128</td></tr><tr><td></td><td>32×32×64 64×64×64</td></tr><tr><td>2x ResidualBlock(64) BilinearInterpolation(2)</td><td></td></tr><tr><td>LeakyReLU(0.02) Conv 5x5,K channels</td><td>128×128×64 128×128×K</td></tr></table>
|
| 275 |
+
|
| 276 |
+
Table 2: Encoder (left) and decoder (right) architectures. The latent space dimensionality is denoted by $d$ , and $K = 3$ indicates the number of image channels. Last line in the encoder architecture: the fully connected layer parameterizing the log variance of the approximate posterior distributions of the latent variables has custom initialization. The weights are initialized with $1 / 1 0$ standard deviation than the default value, and the biases are initialized to $- 1$ instead of 0. Empirically, this together with (learnable) LayerNorm was beneficial for training stability at the beginning of training.
|
| 277 |
+
|
| 278 |
+
Table 3: Architecture of one residual block. The scalar gate is implemented by multiplying the tensor by a learnable scalar parameter before adding it to the block input. Initializing the residual block to the identity by setting this parameter to zero has been originally proposed by Bachlechner et al. (2020). The tensor shape is constant throughout the residual block.
|
| 279 |
+
|
| 280 |
+
<table><tr><td>Residual Block</td></tr><tr><td>Input: shape H × W ×C LeakyReLU(0.02) Conv 3x3, C channels</td></tr></table>
|
| 281 |
+
|
| 282 |
+

|
| 283 |
+
Figure 8: Schemes of the encoder (top) and decoder (bottom) architectures. In both schemes, information flows left to right. Blue blocks represent convolutional layers: those labeled “conv” have 5x5 kernels and stride 2, while those labeled “1x1” have 1x1 kernels. Each orange block represents a pair of residual blocks (implementation details of a residual block are provided in Table 3). Green blocks in the encoder represent average pooling with stride 2, and those in the decoder denote bilinear upsampling by a factor of 2. Red blocks represent fully-connected layers. The block labeled “norm” indicates layer normalization. Dashed lines denote tensor reshaping.
|
| 284 |
+
|
| 285 |
+
# B ADDITIONAL RESULTS
|
| 286 |
+
|
| 287 |
+
# B.1 DATASET CORRELATIONS
|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
Figure 9: Feasible states of the 2nd and 3rd DoF when the angle of the 1st DoF is 0. Angles are in radians.
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 10: Density of feasible states of 2nd and 3rd DoF over the whole training dataset. Darker shades of blue indicate regions of higher density. Angles are in radians.
|
| 294 |
+
|
| 295 |
+
# B.2 SAMPLES AND RECONSTRUCTIONS
|
| 296 |
+
|
| 297 |
+

|
| 298 |
+
Figure 11: Samples generated by a trained model. This model was selected based on the ELBO.
|
| 299 |
+
|
| 300 |
+

|
| 301 |
+
Figure 12: Input reconstructions by a trained model. This model was selected based on the ELBO. Image inputs are on odd columns, reconstructions on even columns.
|
| 302 |
+
|
| 303 |
+
#
|
| 304 |
+
|
| 305 |
+

|
| 306 |
+
Figure 13: Latent traversals for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c).
|
| 307 |
+
|
| 308 |
+

|
| 309 |
+
Figure 14: Scatter plots of unsupervised metrics (left: ELBO; right: reconstruction loss) vs disentanglement (top: MIG; bottom: DCI) for 1,080 trained models, color-coded according to supervision. Each point represents a trained model.
|
| 310 |
+
|
| 311 |
+
# B.5 OUT-OF-DISTRIBUTION TRANSFER
|
| 312 |
+
|
| 313 |
+

|
| 314 |
+
Figure 15: Transfer metric in OOD2-A (top) and OOD2-B (bottom) settings, decomposed according to the factor of variation and presence of input noise. When noise is added to the input during training, the inferred cube position error is relatively low (the scores are the mean absolute error, and they are normalized to [0, 1]). This is particularly useful in the OOD2-B setting (real world) where the joint state is anyway considered known, while object position has to be inferred with tracking methods.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 16: Reconstructions of real-world images (OOD2-B) for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c).
|
| 318 |
+
|
| 319 |
+

|
| 320 |
+
Figure 17: Reconstructions of simulated images with encoder out-of-distribution colors (OOD2-A) for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c).
|
parse/train/8VXvj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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ON THE TRANSFER OF DISENTANGLED REPRESENTA-TIONS IN REALISTIC SETTINGS",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Andrea Dittadi,∗†1 Frederik Trauble, ¨ ∗2 Francesco Locatello,2,3 Manuel Wuthrich, ¨ 2 \nVaibhav Agrawal,2 Ole Winther,1,4,5 Stefan Bauer,2,6 Bernhard Scholkopf ¨ 2 \n1Technical University of Denmark, $^ { 2 } \\mathrm { M a x }$ Planck Institute for Intelligent Systems, \n3ETH Zurich, Department for Computer Science, 4Copenhagen University Hospital, \n5University of Copenhagen , 6CIFAR Azrieli Global Scholar ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
169,
|
| 20 |
+
759,
|
| 21 |
+
199
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "",
|
| 28 |
+
"bbox": [
|
| 29 |
+
186,
|
| 30 |
+
205,
|
| 31 |
+
735,
|
| 32 |
+
251
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
287,
|
| 43 |
+
544,
|
| 44 |
+
303
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Learning meaningful representations that disentangle the underlying structure of the data generating process is considered to be of key importance in machine learning. While disentangled representations were found to be useful for diverse tasks such as abstract reasoning and fair classification, their scalability and real-world impact remain questionable. We introduce a new high-resolution dataset with 1M simulated images and over 1,800 annotated real-world images of the same setup. In contrast to previous work, this new dataset exhibits correlations, a complex underlying structure, and allows to evaluate transfer to unseen simulated and realworld settings where the encoder i) remains in distribution or ii) is out of distribution. We propose new architectures in order to scale disentangled representation learning to realistic high-resolution settings and conduct a large-scale empirical study of disentangled representations on this dataset. We observe that disentanglement is a good predictor for out-of-distribution (OOD) task performance. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
323,
|
| 54 |
+
764,
|
| 55 |
+
502
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
540,
|
| 66 |
+
336,
|
| 67 |
+
555
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Disentangled representations hold the promise of generalization to unseen scenarios (Higgins et al., 2017b), increased interpretability (Adel et al., 2018; Higgins et al., 2018) and faster learning on downstream tasks (van Steenkiste et al., 2019; Locatello et al., 2019a). However, most of the focus in learning disentangled representations has been on small synthetic datasets whose ground truth factors exhibit perfect independence by design. More realistic settings remain largely unexplored. We hypothesize that this is because real-world scenarios present several challenges that have not been extensively studied to date. Important challenges are scaling (much higher resolution in observations and factors), occlusions, and ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
575,
|
| 77 |
+
483,
|
| 78 |
+
796
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "image",
|
| 84 |
+
"img_path": "images/c6fb806d6fc458286d4260c0ce63df72991b62a25f144d6895ab501cd4cced79.jpg",
|
| 85 |
+
"image_caption": [
|
| 86 |
+
"Figure 1: Images from the simulated dataset (left) and from the real-world setup (right). "
|
| 87 |
+
],
|
| 88 |
+
"image_footnote": [],
|
| 89 |
+
"bbox": [
|
| 90 |
+
498,
|
| 91 |
+
592,
|
| 92 |
+
823,
|
| 93 |
+
733
|
| 94 |
+
],
|
| 95 |
+
"page_idx": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"type": "text",
|
| 99 |
+
"text": "correlation between factors. Consider, for instance, a robotic arm moving a cube: Here, the robot arm can occlude parts of the cube, and its end-effector position exhibits correlations with the cube’s position and orientation, which might be problematic for common disentanglement learners (Trauble ¨ et al., 2020). Another difficulty is that we typically have only limited access to ground truth labels in the real world, which requires robust frameworks for model selection when no or only weak labels are available. ",
|
| 100 |
+
"bbox": [
|
| 101 |
+
173,
|
| 102 |
+
796,
|
| 103 |
+
825,
|
| 104 |
+
878
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 0
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "The goal of this work is to provide a path towards disentangled representation learning in realistic settings. First, we argue that this requires a new dataset that captures the challenges mentioned above. We propose a dataset consisting of simulated observations from a scene where a robotic arm interacts with a cube in a stage (see Fig. 1). This setting exhibits correlations and occlusions that are typical in real-world robotics. Second, we show how to scale the architecture of disentanglement methods to perform well on this dataset. Third, we extensively analyze the usefulness of disentangled representations in terms of out-of-distribution downstream generalization, both in terms of held-out factors of variation and sim2real transfer. In fact, our dataset is based on the TriFinger robot from Wuthrich et al. (2020), which can be built to test the deployment of models in the real ¨ world. While the analysis in this paper focuses on the transfer and generalization of predictive models, we hope that our dataset may serve as a benchmark to explore the usefulness of disentangled representations in real-world control tasks. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
103,
|
| 114 |
+
825,
|
| 115 |
+
270
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "The contributions of this paper can be summarized as follows: ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
276,
|
| 125 |
+
581,
|
| 126 |
+
291
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "• We propose a new dataset for disentangled representation learning, containing 1M simulated high-resolution images from a robotic setup, with seven partly correlated factors of variation. Additionally, we provide a dataset of over 1,800 annotated images from the corresponding real-world setup that can be used for challenging sim2real transfer tasks. These datasets are made publicly available.1 \nWe propose a new neural architecture to successfully scale VAE-based disentanglement learning approaches to complex datasets. \n• We conduct a large-scale empirical study on generalization to various transfer scenarios on this challenging dataset. We train 1,080 models using state-of-the-art disentanglement methods and discover that disentanglement is a good predictor for out-of-distribution (OOD) performance of downstream tasks. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
215,
|
| 135 |
+
304,
|
| 136 |
+
825,
|
| 137 |
+
467
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "2 RELATED WORK ",
|
| 144 |
+
"text_level": 1,
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
487,
|
| 148 |
+
344,
|
| 149 |
+
503
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "Disentanglement methods. Most state-of-the-art disentangled representation learning approaches are based on the framework of variational autoencoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014). A (high-dimensional) observation $_ { \\textbf { \\em x } }$ is assumed to be generated according to the latent variable model $p _ { \\theta } ( \\pmb { x } | \\pmb { z } ) p ( \\pmb { z } )$ where the latent variables $_ { z }$ have a fixed prior $p ( z )$ . The generative model $p _ { \\theta } ( { \\pmb x } | { \\pmb z } )$ and the approximate posterior distribution $q _ { \\phi } ( \\pmb { z } | \\pmb { x } )$ are typically parameterized by neural networks, which are optimized by maximizing the evidence lower bound (ELBO): ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
173,
|
| 158 |
+
520,
|
| 159 |
+
825,
|
| 160 |
+
603
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "equation",
|
| 166 |
+
"img_path": "images/c6ce0e20b5dec62c017c0335c1ea308fb369d723d7c3676cf7e0a507f03ef065.jpg",
|
| 167 |
+
"text": "$$\n\\mathcal { L } _ { V A E } = \\mathbb { E } _ { q _ { \\phi } ( z | x ) } [ \\log p _ { \\theta } ( \\pmb { x } | z ) ] - D _ { \\mathrm { K L } } ( q _ { \\phi } ( z | \\pmb { x } ) | | p ( z ) ) \\le \\log p ( \\pmb { x } )\n$$",
|
| 168 |
+
"text_format": "latex",
|
| 169 |
+
"bbox": [
|
| 170 |
+
276,
|
| 171 |
+
609,
|
| 172 |
+
722,
|
| 173 |
+
628
|
| 174 |
+
],
|
| 175 |
+
"page_idx": 1
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"type": "text",
|
| 179 |
+
"text": "As the above objective does not enforce any structure on the latent space except for some similarity to $p ( z )$ , different regularization strategies have been proposed, along with evaluation metrics to gauge the disentanglement of the learned representations (Higgins et al., $2 0 1 7 \\mathrm { a }$ ; Kim & Mnih, 2018; Burgess et al., 2018; Kumar et al., 2018; Chen et al., 2018; Eastwood & Williams, 2018). Recently, Locatello et al. (2019b, Theorem 1) showed that the purely unsupervised learning of disentangled representations is impossible. This limitation can be overcome without the need for explicitly labeled data by introducing weak labels (Locatello et al., 2020; Shu et al., 2019). Ideas related to disentangling the factors of variation date back to the non-linear ICA literature (Comon, 1994; Hyvarinen & Pajunen, 1999; Bach & Jordan, 2002; Jutten & Karhunen, 2003; Hyvarinen & ¨ Morioka, 2016; Hyvarinen et al., 2019; Gresele et al., 2019). Recent work combines non-linear ICA with disentanglement (Khemakhem et al., 2020; Sorrenson et al., 2020; Klindt et al., 2020). ",
|
| 180 |
+
"bbox": [
|
| 181 |
+
173,
|
| 182 |
+
635,
|
| 183 |
+
825,
|
| 184 |
+
787
|
| 185 |
+
],
|
| 186 |
+
"page_idx": 1
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"type": "text",
|
| 190 |
+
"text": "Evaluating disentangled representations. The BetaVAE (Higgins et al., 2017a) and FactorVAE (Kim & Mnih, 2018) scores measure disentanglement by performing an intervention on the factors of variation and predicting which factor was intervened on. The Mutual Information Gap (MIG) (Chen et al., 2018), Modularity (Ridgeway & Mozer, 2018), DCI Disentanglement (Eastwood & Williams, 2018) and SAP scores (Kumar et al., 2018) are based on matrices relating factors of variation and codes (e.g. pairwise mutual information, feature importance and predictability). ",
|
| 191 |
+
"bbox": [
|
| 192 |
+
174,
|
| 193 |
+
803,
|
| 194 |
+
823,
|
| 195 |
+
887
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 1
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "Datasets for disentanglement learning. dSprites (Higgins et al., 2017a), which consists of binary low-resolution 2D images of basic shapes, is one of the most commonly used synthetic datasets for disentanglement learning. Color-dSprites, Noisy-dSprites, and Scream-dSprites are slightly more challenging variants of dSprites. The SmallNORB dataset contains toy images rendered under different lighting conditions, elevations and azimuths (LeCun et al., 2004). Cars3D (Reed et al., 2015) exhibits different car models from Fidler et al. (2012) under different camera viewpoints. 3dshapes is a popular dataset of simple shapes in a 3D scene (Kim & Mnih, 2018). Finally, Gondal et al. (2019) proposed MPI3D, containing images of physical 3D objects with seven factors of variation, such as object color, shape, size and position available in a simulated, simulated and highly realistic rendered simulated variant. Except MPI3D which has over 1M images, the size of the other datasets is limited with only 17, 568 to 737, 280 images. All of the above datasets exhibit perfect independence of all factors, the number of possible states is on the order of 1M or less, and due to their static setting they do not allow for dynamic downstream tasks such as reinforcement learning. In addition, except for SmallNORB, the image resolution is limited to 64x64 and there are no occlusions. ",
|
| 202 |
+
"bbox": [
|
| 203 |
+
174,
|
| 204 |
+
104,
|
| 205 |
+
825,
|
| 206 |
+
297
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "Other related work. Locatello et al. (2020) probed the out-of-distribution generalization of downstream tasks trained on disentangled representations. However, these representations are trained on the entire dataset. Generalization and transfer performance especially for representation learning has likewise been studied in Dayan (1993); Muandet et al. (2013); Heinze-Deml & Meinshausen (2017); Rojas-Carulla et al. (2018); Suter et al. (2019); Li et al. (2018); Arjovsky et al. (2019); Krueger et al. (2020); Gowal et al. (2020). For the role of disentanglement in causal representation learning we refer to the recent overview by Scholkopf et al. (2021). Tr ¨ auble et al. (2020) systematically investi- ¨ gated the effects of correlations between factors of variation on disentangled representation learners. Transfer of learned disentangled representations from simulation to the real world has been recently investigated by Gondal et al. (2019) on the MPI3D dataset, and previously by Higgins et al. (2017b) in the context of reinforcement learning. Sim2real transfer is of major interest in the robotic learning community, because of limited data and supervision in the real world (Tobin et al., 2017; Rusu et al., 2017; Peng et al., 2018; James et al., 2019; Yan et al., 2020; Andrychowicz et al., 2020). ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
315,
|
| 216 |
+
825,
|
| 217 |
+
496
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 2
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "A new challenging dataset. Simulated images in our dataset are derived from the trifinger robot platform introduced by Wuthrich et al. ¨ (2020). The motivation for choosing this setting is that (1) it is challenging due to occlusions, correlations, and other difficulties encountered in robotic settings, (2) it requires modeling of fine details such as tip links at high resolutions, and (3) it corresponds to a robotic setup, so that learned representations can be used for control and reinforcement learning in simulation and in the real world. The scene comprises a robot finger with three joints that can be controlled to manipulate a cube in a bowl-shaped stage. Fig. 1 shows examples of scenes from our dataset. The data is generated from 7 different factors of variation (FoV) ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
550,
|
| 227 |
+
482,
|
| 228 |
+
785
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "table",
|
| 234 |
+
"img_path": "images/9377971bb9cd80dd613624dc8e1083a8dd5582c86b07cd4d889581024cacc9bf.jpg",
|
| 235 |
+
"table_caption": [
|
| 236 |
+
"3 SCALING DISENTANGLED REPRESENTATIONS TO COMPLEX SCENARIOS",
|
| 237 |
+
"Table 1: Factors of variation in the proposed dataset. Values are linearly spaced in the specified intervals. Joint angles are in radians, cube positions in meters. "
|
| 238 |
+
],
|
| 239 |
+
"table_footnote": [],
|
| 240 |
+
"table_body": "<table><tr><td rowspan=1 colspan=2>FoV Values</td></tr><tr><td rowspan=1 colspan=1>Upper joint</td><td rowspan=1 colspan=1>30 values in[-0.65,+0.65]</td></tr><tr><td rowspan=1 colspan=1>Middle joint 30 values in</td><td rowspan=1 colspan=1>[-0.5,+0.5]</td></tr><tr><td rowspan=1 colspan=1>Lower joint 30 values in</td><td rowspan=1 colspan=1>[-0.8,+0.8]</td></tr><tr><td rowspan=2 colspan=1>Cube position X 30 values in[-0.11, +0.11]Cube position y 30 values in[-0.11, +0.11]</td><td rowspan=1 colspan=1>+0.11]</td></tr><tr><td rowspan=1 colspan=1>[-0.11, +0.11]</td></tr><tr><td rowspan=1 colspan=1>Cube rotation 10 values in [0°,81°]</td><td rowspan=2 colspan=1>12 values in [0°,330°]</td></tr><tr><td rowspan=1 colspan=1>Cube color hue 12 values in [0°,330°]</td></tr></table>",
|
| 241 |
+
"bbox": [
|
| 242 |
+
496,
|
| 243 |
+
566,
|
| 244 |
+
823,
|
| 245 |
+
693
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 2
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "listed in Table 1. Unlike in previous datasets, not all FoVs are independent: The end-effector (the tip of the finger) can collide with the floor or the cube, resulting in infeasible combinations of the factors (see Appendix B.1). We argue that such correlations are a key feature in real-world data that is not present in existing datasets. The high FoV resolution results in approximately 1.52 billion feasible states, but the dataset itself only contains one million of them (approximately $0 . 0 6 5 \\%$ of all possible FoV combinations), realistically rendered into $1 2 8 \\times 1 2 8$ images. Additionally, we recorded an annotated dataset under the same conditions in the real-world setup: we acquired 1,809 camera images from the same viewpoint and recorded the labels of the 7 underlying factors of variation. This dataset can be used for out-of-distribution evaluations, few-shot learning, and testing other sim2real aspects. ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
174,
|
| 254 |
+
785,
|
| 255 |
+
825,
|
| 256 |
+
924
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 2
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "image",
|
| 262 |
+
"img_path": "images/f32fff0f3873c7b5bb46601dc40ae372b6d5350f2fe784b3fcf23de2e0923423.jpg",
|
| 263 |
+
"image_caption": [
|
| 264 |
+
"Figure 2: Latent traversals of a trained model that perfectly disentangles the dataset’s FoVs. In each column, all latent variables but one are fixed. "
|
| 265 |
+
],
|
| 266 |
+
"image_footnote": [],
|
| 267 |
+
"bbox": [
|
| 268 |
+
174,
|
| 269 |
+
101,
|
| 270 |
+
823,
|
| 271 |
+
252
|
| 272 |
+
],
|
| 273 |
+
"page_idx": 3
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"type": "text",
|
| 277 |
+
"text": "Model architecture. When scaling disentangled representation learning to more complex datasets, such as the one proposed here, one of the main bottlenecks in current VAE-based approaches is the flexibility of the encoder and decoder networks. In particular, using the architecture from Locatello et al. (2019b), none of the models we trained correctly captured all factors of variation or yielded high-quality reconstructions. While the increased image resolution already presents a challenge, the main practical issue in our new dataset is the level of detail that needs to be modeled. In particular, we identified the cube rotation and the lower joint position to be the factors of variation that were the hardest to capture. This is likely because these factors only produce relatively small changes in the image and hence the reconstruction error. ",
|
| 278 |
+
"bbox": [
|
| 279 |
+
174,
|
| 280 |
+
319,
|
| 281 |
+
825,
|
| 282 |
+
445
|
| 283 |
+
],
|
| 284 |
+
"page_idx": 3
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"type": "text",
|
| 288 |
+
"text": "To overcome these issues, we propose a deeper and wider neural architecture than those commonly used in the disentangled representation learning literature, where the encoder and decoder typically have 4 convolutional and 2 fully-connected layers. Our encoder consists of a convolutional layer, 10 residual blocks, and 2 fully-connected layers. Some residual blocks are followed by 1x1 convolutions that change the number of channels, or by average pooling that downsamples the tensors by a factor of 2 along the spatial dimensions. Each residual block consists of two 3x3 convolutions with a leaky ReLU nonlinearity, and a learnable scalar gating mechanism (Bachlechner et al., 2020). Overall, the encoder has 23 convolutional layers and 2 fully connected layers. The decoder mirrors this architecture, with average pooling replaced by bilinear interpolation for upsampling. The total number of parameters is approximately 16.3M. See Appendix A for further implementation details. ",
|
| 289 |
+
"bbox": [
|
| 290 |
+
174,
|
| 291 |
+
452,
|
| 292 |
+
825,
|
| 293 |
+
592
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 3
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Experimental setup. We perform a large-scale empirical study on the simulated dataset introduced above by training 1,080 $\\beta$ -VAE models.2 For further experimental details we refer the reader to Appendix A. The hyperparameter sweep is defined as follows: ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
176,
|
| 302 |
+
607,
|
| 303 |
+
825,
|
| 304 |
+
650
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 3
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "• We train the models using either unsupervised learning or weakly supervised learning (Locatello et al., 2020). In the weakly supervised case, a model is trained with pairs of images that differ in $k$ factors of variation. Here we fix $k = 1$ as it was shown to lead to higher disentanglement by Locatello et al. (2020). The dataset therefore consists of $5 0 0 \\mathrm { k }$ pairs of images that differ in only one FoV. \n• We vary the parameter $\\beta$ in $\\{ 1 , 2 , 4 \\}$ , and use linear deterministic warm-up (Bowman et al., 2015; Sønderby et al., 2016) over the first $\\{ 0 , 1 0 0 0 0 , 5 0 0 0 0 \\}$ training steps. \n• The latent space dimensionality is in $\\{ 1 0 , 2 5 , 5 0 \\}$ . \n• Half of the models are trained with additive noise in the input image. This choice is motivated by the fact that adding noise to the input of neural networks has been shown to be beneficial for out-of-distribution generalization (Sietsma & Dow, 1991; Bishop, 1995). \n• Each of the 108 resulting configurations is trained with 10 random seeds. ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
215,
|
| 313 |
+
661,
|
| 314 |
+
825,
|
| 315 |
+
849
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 3
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "Can we scale up disentanglement learning? Most of the trained VAEs in our empirical study fully capture all the elements of a scene, correctly model heavy occlusions, and generate detailed, high-quality samples and reconstructions (see Appendix B.2). From visual inspections such as the latent traversals in Fig. 2, we observe that many trained models fully disentangle the ground-truth factors of variation. This, however, appears to only be possible in the weakly supervised scenario. The fact that models trained without supervision learn entangled representations is in line with the impossibility result for the unsupervised learning of disentangled representations from Locatello et al. (2019b). Latent traversals from a selection of models with different degrees of disentanglement are presented in Appendix B.3. Interestingly, the high-disentanglement models seem to correct for correlations and interpolate infeasible states, i.e. the fingertip traverses through the cube or the floor. ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
176,
|
| 324 |
+
871,
|
| 325 |
+
825,
|
| 326 |
+
900
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "image",
|
| 332 |
+
"img_path": "images/88ab1de0ae19149e0481ebac85d3f259b45588c758c6f7f48f60d62f133c98e3.jpg",
|
| 333 |
+
"image_caption": [
|
| 334 |
+
"Figure 3: Left: Disentanglement metrics aggregating all hyperparameters except for supervision type. Right: Rank correlations (Spearman) of ELBO, reconstruction loss, and the test error of a GBT classifier trained on 10,000 labelled data points with disentanglement metrics. The upper rank correlations correspond to the unsupervised models and the lower to the weakly supervised models. "
|
| 335 |
+
],
|
| 336 |
+
"image_footnote": [],
|
| 337 |
+
"bbox": [
|
| 338 |
+
223,
|
| 339 |
+
111,
|
| 340 |
+
797,
|
| 341 |
+
290
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 4
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
392,
|
| 351 |
+
825,
|
| 352 |
+
503
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 4
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "Summary: The proposed architecture can scale disentanglement learning to more realistic settings, but a form of weak supervision is necessary to achieve high disentanglement. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
511,
|
| 362 |
+
821,
|
| 363 |
+
539
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 4
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "How useful are common disentanglement metrics in realistic scenarios? The violin plot in Fig. 3 (left) shows that DCI and MIG measure high disentanglement under weak supervision and lower disentanglement in the unsupervised setting. This is consistent with our qualitative conclusion from visual inspection of the models (Appendix B.3) and with the aforementioned impossibility result. Many of the models trained with weak supervision exhibit a very high DCI score $2 9 \\%$ of them have ${ > } 9 9 \\%$ DCI, some of them up to $9 9 . 8 9 \\%$ ). SAP and Modularity appear to be ineffective at capturing disentanglement in this setting, as also observed by Locatello et al. (2019b). Finally, note that the BetaVAE and FactorVAE metrics are not straightforward to be evaluated on datasets that do not contain all possible combinations of factor values. According to Fig. 3 (right), DCI and MIG strongly correlate with test accuracy of GBT classifiers predicting the FoVs. In the weakly supervised setting, these metrics are strongly correlated with the ELBO (positively) and with the reconstruction loss (negatively). We illustrate these relationships in more detail in Appendix B.4. Such correlations were also observed by Locatello et al. (2020) on significantly less complex datasets, and can be exploited for unsupervised model selection: these unsupervised metrics can be used as proxies for disentanglement metrics, which would require fully labeled data. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
556,
|
| 373 |
+
825,
|
| 374 |
+
763
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 4
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "Summary: DCI and MIG appear to be useful disentanglement metrics in realistic scenarios, whereas other metrics seem to fall short of capturing disentanglement or can be difficult to compute. When using weak supervision, we can select disentangled models with unsupervised metrics. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
771,
|
| 384 |
+
825,
|
| 385 |
+
813
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 4
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "4 FRAMEWORK FOR THE EVALUATION OF OOD GENERALIZATION ",
|
| 392 |
+
"text_level": 1,
|
| 393 |
+
"bbox": [
|
| 394 |
+
174,
|
| 395 |
+
835,
|
| 396 |
+
740,
|
| 397 |
+
852
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 4
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "text",
|
| 403 |
+
"text": "Previous work has focused on evaluating the usefulness of disentangled representations for various downstream tasks, such as predicting ground truth factors of variation, fair classification, and abstract reasoning. Here we propose a new framework for evaluating the out-of-distribution (OOD) generalization properties of representations. More specifically, we consider a downstream task – in our case, regression of ground truth factors – trained on a learned representation of the data, and evaluate the performance on a held-out test set. While the test set typically follows the same distribution as the training set (in-distribution generalization), we also consider test sets that follow a different distribution (out-of-distribution generalization). Our goal is to investigate to what extent, if at all, downstream tasks trained on disentangled representations exhibit a higher degree of OOD generalization than those trained on entangled representations. ",
|
| 404 |
+
"bbox": [
|
| 405 |
+
176,
|
| 406 |
+
867,
|
| 407 |
+
823,
|
| 408 |
+
924
|
| 409 |
+
],
|
| 410 |
+
"page_idx": 4
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"type": "text",
|
| 414 |
+
"text": "",
|
| 415 |
+
"bbox": [
|
| 416 |
+
174,
|
| 417 |
+
103,
|
| 418 |
+
825,
|
| 419 |
+
188
|
| 420 |
+
],
|
| 421 |
+
"page_idx": 5
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"type": "text",
|
| 425 |
+
"text": "Let $D$ denote the training set for disentangled representation learning. To investigate OOD generalization, we train downstream regression models on a subset $D _ { 1 } \\subset D$ to predict ground truth factor values from the learned representation computed by the encoder. We independently train one predictor per factor. We then test the regression models on a set $D _ { 2 }$ that differs distributionally from the training set $D _ { 1 }$ , as it either contains images corresponding to held-out values of a chosen FoV (e.g. unseen object colors), or it consists of real-world images. We now differentiate between two scenarios: (1) $D _ { 2 } \\subset D$ , i.e. the OOD test set is a subset of the dataset for representation learning; (2) $D$ and $D _ { 2 }$ are disjoint and distributionally different. These two scenarios will be denoted by $O O D I$ and $O O D 2$ , respectively. For example, consider the case in which distributional shifts are based on one FoV: the color of the object. Then, we could define these datasets such that images in $D$ always contain a red or blue object, and those in $D _ { 1 } \\subset D$ always contain a red object. In the OOD1 scenario, images in $D _ { 2 }$ would always contain a blue object, whereas in the OOD2 case they would always contain an object that is neither red nor blue. ",
|
| 426 |
+
"bbox": [
|
| 427 |
+
174,
|
| 428 |
+
194,
|
| 429 |
+
825,
|
| 430 |
+
375
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 5
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "The regression models considered here are Gradient Boosted Trees (GBT), random forests, and MLPs with $\\{ 1 , 2 , 3 \\}$ hidden layers. Since random forests exhibit a similar behavior to GBTs, and all MLPs yield similar results to each other, we choose GBTs and the 2-layer MLP as representative models and only report results for those. To quantify prediction quality, we normalize the ground truth factor values to the range $[ 0 , 1 ]$ , and compute the mean absolute error (MAE). Since the values are normalized, we can define our transfer metric as the average of the MAE over all factors (except for the FoV that is OOD). ",
|
| 437 |
+
"bbox": [
|
| 438 |
+
174,
|
| 439 |
+
382,
|
| 440 |
+
825,
|
| 441 |
+
479
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 5
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "5 BENEFITS AND TRANSFER OF STRUCTURED REPRESENTATIONS ",
|
| 448 |
+
"text_level": 1,
|
| 449 |
+
"bbox": [
|
| 450 |
+
176,
|
| 451 |
+
502,
|
| 452 |
+
733,
|
| 453 |
+
518
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 5
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "Experimental setup. We evaluate the transfer metric introduced in Section 4 across all 1,080 trained models. To compute this metric, we train regression models to predict the ground truth factors of variation, and test them under distributional shift. We consider distributional shifts in terms of cube color or sim2real, and we do not evaluate downstream prediction of cube color. We report scores for two different regression models: a Gradient Boosted Tree (GBT) and an MLP with 2 hidden layers of size 256. In Appendix A we provide details on the datasets used in this section. ",
|
| 460 |
+
"bbox": [
|
| 461 |
+
174,
|
| 462 |
+
536,
|
| 463 |
+
825,
|
| 464 |
+
619
|
| 465 |
+
],
|
| 466 |
+
"page_idx": 5
|
| 467 |
+
},
|
| 468 |
+
{
|
| 469 |
+
"type": "text",
|
| 470 |
+
"text": "In the OOD1 setting, we have $D _ { 2 } ~ \\subset ~ D$ , hence the encoder is in-distribution: we are testing the predictor on representations of images that were in the training set of the representation learning algorithm. Therefore, we expect the representations to be meaningful. We consider three scenarios: ",
|
| 471 |
+
"bbox": [
|
| 472 |
+
174,
|
| 473 |
+
626,
|
| 474 |
+
821,
|
| 475 |
+
669
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 5
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "OOD1-A: The regression models are trained on 1 cube color (red) and evaluated on the remaining 7 colors. OOD1-B: The regression models are trained on 4 cube colors with high hue in the HSV space, and evaluated on 4 cube colors with low hue (extrapolation). OOD1-C: The regression models are again trained and evaluated on 4 cube colors, but the training and evaluation colors are alternating along the hue dimension (interpolation). ",
|
| 482 |
+
"bbox": [
|
| 483 |
+
215,
|
| 484 |
+
681,
|
| 485 |
+
825,
|
| 486 |
+
782
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 5
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "In the more challenging setting where even the encoder goes out-of-distribution (OOD2, with $D _ { 2 } \\cap$ $D = \\varnothing$ ), we train the regression models on a subset of the training set $D$ that includes all 8 cube colors, and we consider the two following scenarios: ",
|
| 493 |
+
"bbox": [
|
| 494 |
+
178,
|
| 495 |
+
795,
|
| 496 |
+
825,
|
| 497 |
+
837
|
| 498 |
+
],
|
| 499 |
+
"page_idx": 5
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"type": "text",
|
| 503 |
+
"text": "• OOD2-A: The regression models are evaluated on simulated data, on 4 cube colors that are out of the encoder’s training distribution. \n• OOD2-B: The regression models are evaluated on real-world images of the robotic setup, without any adaptation or fine-tuning. ",
|
| 504 |
+
"bbox": [
|
| 505 |
+
217,
|
| 506 |
+
849,
|
| 507 |
+
825,
|
| 508 |
+
915
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 5
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "image",
|
| 514 |
+
"img_path": "images/a8917eeb133d6b5669d032b13e81cac11e7185bed02ca42aee8c10d3256aab63.jpg",
|
| 515 |
+
"image_caption": [
|
| 516 |
+
"Figure 4: Higher disentanglement corresponds to better generalization across all OOD1 scenarios, as seen from the transfer scores (left). The transfer score is computed as the mean absolute prediction error of ground truth factor values (lower is better). This correlation is particularly evident in the GBT case, whereas MLPs appear to exhibit better OOD1 transfer with very high disentanglement only. These results are mirrored in the Spearman rank correlations between transfer scores and disentanglement metrics (right). "
|
| 517 |
+
],
|
| 518 |
+
"image_footnote": [],
|
| 519 |
+
"bbox": [
|
| 520 |
+
181,
|
| 521 |
+
108,
|
| 522 |
+
812,
|
| 523 |
+
286
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 6
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "text",
|
| 529 |
+
"text": "Is disentanglement correlated with OOD1 generalization? In Fig. 4 we consistently observe a negative correlation between disentanglement and transfer error across all OOD1 settings. The correlation is mild when using MLPs, strong when using GBTs. This difference is expected, as GBTs have an axis-alignment bias whereas MLPs can – given enough data and capacity – disentangle an entangled representation more easily. Our results therefore suggest that highly disentangled representations are useful for generalizing out-of-distribution as long as the encoder remains in-distribution. This is in line with the correlation found by Locatello et al. (2019b) between disentanglement and the GBT10000 metric. There, however, GBTs are tested on the same distribution as the training distribution, while here we test them under distributional shift. Given that the computation of disentanglement scores requires labels, this is of little benefit in the unsupervised setting. However, it can be exploited in the weakly supervised setting, where disentanglement was shown to correlate with ELBO and reconstruction loss (Section 3). Therefore, model selection for representations that transfer well in these scenarios is feasible based on the ELBO or reconstruction loss, when weak supervision is available. Note that, in absolute terms, the OOD generalization error with encoder in-distribution (OOD1) is very low in the high-disentanglement case (the only exception being the MLP in the OOD1-C case, with the 1-7 color split, which seems to overfit). This suggests that disentangled representations can be useful in downstream tasks even when transferring out of the training distribution. ",
|
| 530 |
+
"bbox": [
|
| 531 |
+
173,
|
| 532 |
+
422,
|
| 533 |
+
825,
|
| 534 |
+
672
|
| 535 |
+
],
|
| 536 |
+
"page_idx": 6
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"type": "text",
|
| 540 |
+
"text": "Summary: Disentanglement seems to be positively correlated with OOD generalization of downstream tasks, provided that the encoder remains in-distribution (OOD1). Since in the weakly supervised case disentanglement correlates with the ELBO and the reconstruction loss, model selection can be performed using these metrics as proxies for disentanglement. These metrics have the advantage that they can be computed without labels, unlike disentanglement metrics. ",
|
| 541 |
+
"bbox": [
|
| 542 |
+
174,
|
| 543 |
+
680,
|
| 544 |
+
823,
|
| 545 |
+
750
|
| 546 |
+
],
|
| 547 |
+
"page_idx": 6
|
| 548 |
+
},
|
| 549 |
+
{
|
| 550 |
+
"type": "text",
|
| 551 |
+
"text": "Is disentanglement correlated with OOD2 generalization? As seen in Fig. 5, the negative correlation between disentanglement and GBT transfer error is weaker when the encoder is out of distribution (OOD2). Nonetheless, we observe a non-negligible correlation for GBTs in the OOD2- A case, where we investigate out-of-distribution generalization along one FoV, with observations in $D _ { 2 }$ still generated from the same simulator. In the OOD2-B setting, where the observations are taken from cameras in the corresponding real-world setting, the correlation between disentanglement and transfer performance appears to be minor at best. This scenario can be considered a variant of zero-shot sim2real generalization. ",
|
| 552 |
+
"bbox": [
|
| 553 |
+
174,
|
| 554 |
+
776,
|
| 555 |
+
825,
|
| 556 |
+
888
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 6
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Summary: Disentanglement has a minor effect on out-of-distribution generalization outside of the training distribution of the encoder (OOD2). ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
174,
|
| 565 |
+
895,
|
| 566 |
+
821,
|
| 567 |
+
924
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 6
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "image",
|
| 573 |
+
"img_path": "images/3caa155b0e0c7e7a7836a9f63f3aa28e051c3f1d453968d716ec81ac3a38a25e.jpg",
|
| 574 |
+
"image_caption": [
|
| 575 |
+
"Figure 5: Disentanglement affects generalization across the OOD2 scenarios only minimally as seen from transfer scores (left) and corresponding rank correlations with disentanglement metrics (right). "
|
| 576 |
+
],
|
| 577 |
+
"image_footnote": [],
|
| 578 |
+
"bbox": [
|
| 579 |
+
259,
|
| 580 |
+
109,
|
| 581 |
+
733,
|
| 582 |
+
301
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 7
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "image",
|
| 588 |
+
"img_path": "images/8a3bf47d3eed60551e8542f6371b5044c44bfa24971224373ae2079c5152b46a.jpg",
|
| 589 |
+
"image_caption": [
|
| 590 |
+
"Figure 6: Noise improves generalization across the OOD2 scenarios and less so for the OOD1 scenarios as seen from the transfer scores. Top row: Spearman rank correlation coefficients between transfer metrics and presence of noise in the input. "
|
| 591 |
+
],
|
| 592 |
+
"image_footnote": [],
|
| 593 |
+
"bbox": [
|
| 594 |
+
187,
|
| 595 |
+
414,
|
| 596 |
+
805,
|
| 597 |
+
617
|
| 598 |
+
],
|
| 599 |
+
"page_idx": 7
|
| 600 |
+
},
|
| 601 |
+
{
|
| 602 |
+
"type": "text",
|
| 603 |
+
"text": "What else matters for OOD2 generalization? Results in Fig. 6 suggest that adding Gaussian noise to the input during training as described in Section 3 leads to significantly better OOD2 generalization, and has no effect on OOD1 generalization. Adding noise to the input of neural networks is known to lead to better generalization (Sietsma & Dow, 1991; Bishop, 1995). This is in agreement with our results, since OOD1 generalization does not require generalization of the encoder, while OOD2 does. Interestingly, closer inspection reveals that the contribution of different factors of variation to the generalization error can vary widely. See Appendix B.5 for further details. In particular, with noisy input, the position of the cube is predicted accurately even in real-world images ${ < } 5 \\%$ mean absolute error on each axis). This is promising for robotics applications, where the true state of the joints is observable but inference of the cube position relies on object tracking methods. Fig. 7 shows an example of real-world inputs and reconstructions of their simulated equivalents. ",
|
| 604 |
+
"bbox": [
|
| 605 |
+
173,
|
| 606 |
+
734,
|
| 607 |
+
825,
|
| 608 |
+
888
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 7
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "Summary: Adding input noise during training appears to be significantly beneficial for OOD2 generalization, while having no effect when the encoder is kept in its training distribution (OOD1). ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
895,
|
| 618 |
+
823,
|
| 619 |
+
924
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 7
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "6 CONCLUSION ",
|
| 626 |
+
"text_level": 1,
|
| 627 |
+
"bbox": [
|
| 628 |
+
174,
|
| 629 |
+
102,
|
| 630 |
+
318,
|
| 631 |
+
117
|
| 632 |
+
],
|
| 633 |
+
"page_idx": 8
|
| 634 |
+
},
|
| 635 |
+
{
|
| 636 |
+
"type": "text",
|
| 637 |
+
"text": "Despite the growing importance of the field and the potential societal impact in the medical domain (Chartsias et al., 2018) and fair decision making (Locatello et al., 2019a), state-of-the-art approaches for learning disentangled representations have so far only been systematically evaluated on synthetic toy datasets. Here we introduced a new high-resolution dataset with 1M simulated images and over 1,800 annotated real-world images of the same setup. This dataset exhibits a number of challenges and features which are not present in previous datasets: it contains correlations between factors, occlusions, a complex underlying structure, and it allows for evaluation of transfer to unseen simulated and real-world settings. We proposed a new VAE architecture to scale disentangled representation learning to this realistic setting and conducted a large-scale empirical study of disentangled representations on this dataset. We discovered that disentanglement is a good predictor of OOD generalization of downstream tasks and showed that, in the context of weak supervision, model selection for good OOD performance can be based on the ELBO or the reconstruction loss, which are accessible without explicit labels. Our setting allows for studying a wide variety of interesting downstream tasks in the future, such as reinforcement learning or learning a dynamics model of the environment. Finally, we believe that in the future it will be important to take further steps in the direction of this paper by considering settings with even more complex structures and stronger correlations between factors. ",
|
| 638 |
+
"bbox": [
|
| 639 |
+
174,
|
| 640 |
+
132,
|
| 641 |
+
825,
|
| 642 |
+
188
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 8
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "",
|
| 649 |
+
"bbox": [
|
| 650 |
+
174,
|
| 651 |
+
188,
|
| 652 |
+
633,
|
| 653 |
+
436
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 8
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "image",
|
| 659 |
+
"img_path": "images/80cc02fdfea336501807be97fe20f51feac8677170955d3731e106b2859b088b.jpg",
|
| 660 |
+
"image_caption": [
|
| 661 |
+
"Figure 7: Zero-shot transfer to real-world observations of our models trained in simulation. Left: input; right: reconstruction. "
|
| 662 |
+
],
|
| 663 |
+
"image_footnote": [],
|
| 664 |
+
"bbox": [
|
| 665 |
+
647,
|
| 666 |
+
205,
|
| 667 |
+
823,
|
| 668 |
+
344
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 8
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 675 |
+
"text_level": 1,
|
| 676 |
+
"bbox": [
|
| 677 |
+
176,
|
| 678 |
+
454,
|
| 679 |
+
334,
|
| 680 |
+
467
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 8
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "text",
|
| 686 |
+
"text": "The authors thank Shruti Joshi and Felix Widmaier for their useful comments on the simulated setup, Anirudh Goyal for helpful discussions and comments, and CIFAR for the support. We thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Frederik Trauble.¨ ",
|
| 687 |
+
"bbox": [
|
| 688 |
+
174,
|
| 689 |
+
477,
|
| 690 |
+
825,
|
| 691 |
+
532
|
| 692 |
+
],
|
| 693 |
+
"page_idx": 8
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"type": "text",
|
| 697 |
+
"text": "REFERENCES ",
|
| 698 |
+
"text_level": 1,
|
| 699 |
+
"bbox": [
|
| 700 |
+
176,
|
| 701 |
+
553,
|
| 702 |
+
285,
|
| 703 |
+
568
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 8
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Tameem Adel, Zoubin Ghahramani, and Adrian Weller. Discovering interpretable representations for both deep generative and discriminative models. In International Conference on Machine Learning, pp. 50–59, 2018. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
575,
|
| 713 |
+
825,
|
| 714 |
+
617
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 8
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "OpenAI: Marcin Andrychowicz, Bowen Baker, Maciek Chociej, Rafal Jozefowicz, Bob McGrew, Jakub Pachocki, Arthur Petron, Matthias Plappert, Glenn Powell, Alex Ray, et al. Learning dexterous in-hand manipulation. The International Journal of Robotics Research, 39(1):3–20, 2020. ",
|
| 721 |
+
"bbox": [
|
| 722 |
+
174,
|
| 723 |
+
625,
|
| 724 |
+
823,
|
| 725 |
+
680
|
| 726 |
+
],
|
| 727 |
+
"page_idx": 8
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"type": "text",
|
| 731 |
+
"text": "Martin Arjovsky, Leon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. ´ arXiv preprint arXiv:1907.02893, 2019. ",
|
| 732 |
+
"bbox": [
|
| 733 |
+
173,
|
| 734 |
+
688,
|
| 735 |
+
821,
|
| 736 |
+
717
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 8
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Francis Bach and Michael Jordan. Kernel independent component analysis. Journal of Machine Learning Research, 3(7):1–48, 2002. ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
173,
|
| 745 |
+
723,
|
| 746 |
+
823,
|
| 747 |
+
752
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 8
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "Thomas Bachlechner, Bodhisattwa Prasad Majumder, Huanru Henry Mao, Garrison W Cottrell, and Julian McAuley. Rezero is all you need: Fast convergence at large depth. arXiv preprint arXiv:2003.04887, 2020. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
760,
|
| 757 |
+
823,
|
| 758 |
+
803
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 8
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Chris M Bishop. Training with noise is equivalent to tikhonov regularization. Neural computation, 7(1):108–116, 1995. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
173,
|
| 767 |
+
809,
|
| 768 |
+
823,
|
| 769 |
+
838
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 8
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "Samuel R Bowman, Luke Vilnis, Oriol Vinyals, Andrew M Dai, Rafal Jozefowicz, and Samy Bengio. Generating sentences from a continuous space. arXiv preprint arXiv:1511.06349, 2015. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
171,
|
| 778 |
+
844,
|
| 779 |
+
821,
|
| 780 |
+
875
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 8
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in beta-VAE. arXiv preprint arXiv:1804.03599, 2018. ",
|
| 787 |
+
"bbox": [
|
| 788 |
+
173,
|
| 789 |
+
881,
|
| 790 |
+
821,
|
| 791 |
+
922
|
| 792 |
+
],
|
| 793 |
+
"page_idx": 8
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"type": "text",
|
| 797 |
+
"text": "Agisilaos Chartsias, Thomas Joyce, Giorgos Papanastasiou, Scott Semple, Michelle Williams, David Newby, Rohan Dharmakumar, and Sotirios A Tsaftaris. Factorised spatial representation learning: Application in semi-supervised myocardial segmentation. In International Conference on Medical Image Computing and Computer-Assisted Intervention, pp. 490–498. Springer, 2018. ",
|
| 798 |
+
"bbox": [
|
| 799 |
+
176,
|
| 800 |
+
103,
|
| 801 |
+
825,
|
| 802 |
+
160
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 9
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "Tian Qi Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in variational autoencoders. In Advances in Neural Information Processing Systems, 2018. ",
|
| 809 |
+
"bbox": [
|
| 810 |
+
176,
|
| 811 |
+
170,
|
| 812 |
+
821,
|
| 813 |
+
199
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 9
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Pierre Comon. Independent component analysis, a new concept? Signal Processing, 36(3):287–314, 1994. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
210,
|
| 823 |
+
823,
|
| 824 |
+
239
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 9
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Peter Dayan. Improving generalization for temporal difference learning: The successor representation. Neural Computation, 5(4):613–624, 1993. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
251,
|
| 834 |
+
823,
|
| 835 |
+
280
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 9
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Cian Eastwood and Christopher KI Williams. A framework for the quantitative evaluation of disentangled representations. In International Conference on Learning Representations, 2018. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
290,
|
| 845 |
+
821,
|
| 846 |
+
319
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 9
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Sanja Fidler, Sven Dickinson, and Raquel Urtasun. 3d object detection and viewpoint estimation with a deformable 3d cuboid model. In Advances in neural information processing systems, pp. 611–619, 2012. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
330,
|
| 856 |
+
823,
|
| 857 |
+
372
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 9
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Muhammad Waleed Gondal, Manuel Wuthrich, Djordje Miladinovi ¨ c, Francesco Locatello, Martin ´ Breidt, Valentin Volchkov, Joel Akpo, Olivier Bachem, Bernhard Scholkopf, and Stefan Bauer. ¨ On the transfer of inductive bias from simulation to the real world: a new disentanglement dataset. In Advances in Neural Information Processing Systems, 2019. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
383,
|
| 867 |
+
825,
|
| 868 |
+
440
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 9
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Sven Gowal, Chongli Qin, Po-Sen Huang, Taylan Cemgil, Krishnamurthy Dvijotham, Timothy Mann, and Pushmeet Kohli. Achieving robustness in the wild via adversarial mixing with disentangled representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1211–1220, 2020. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
174,
|
| 877 |
+
450,
|
| 878 |
+
825,
|
| 879 |
+
508
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 9
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Luigi Gresele, Paul K. Rubenstein, Arash Mehrjou, Francesco Locatello, and Bernhard Scholkopf.¨ The incomplete rosetta stone problem: Identifiability results for multi-view nonlinear ica. In Conference on Uncertainty in Artificial Intelligence (UAI), 2019. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
173,
|
| 888 |
+
518,
|
| 889 |
+
825,
|
| 890 |
+
563
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 9
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. arXiv preprint arXiv:1710.11469, 2017. ",
|
| 897 |
+
"bbox": [
|
| 898 |
+
173,
|
| 899 |
+
571,
|
| 900 |
+
823,
|
| 901 |
+
602
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 9
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-VAE: Learning basic visual concepts with a constrained variational framework. In International Conference on Learning Representations, 2017a. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
612,
|
| 911 |
+
825,
|
| 912 |
+
669
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Irina Higgins, Arka Pal, Andrei Rusu, Loic Matthey, Christopher Burgess, Alexander Pritzel, Matthew Botvinick, Charles Blundell, and Alexander Lerchner. Darla: Improving zero-shot transfer in reinforcement learning. In International Conference on Machine Learning, 2017b. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
176,
|
| 921 |
+
679,
|
| 922 |
+
823,
|
| 923 |
+
723
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Irina Higgins, Nicolas Sonnerat, Loic Matthey, Arka Pal, Christopher P Burgess, Matko Bosnjak, ˇ Murray Shanahan, Matthew Botvinick, Demis Hassabis, and Alexander Lerchner. Scan: Learning hierarchical compositional visual concepts. In International Conference on Learning Representations, 2018. ",
|
| 930 |
+
"bbox": [
|
| 931 |
+
173,
|
| 932 |
+
733,
|
| 933 |
+
825,
|
| 934 |
+
790
|
| 935 |
+
],
|
| 936 |
+
"page_idx": 9
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"type": "text",
|
| 940 |
+
"text": "Aapo Hyvarinen and Hiroshi Morioka. Unsupervised feature extraction by time-contrastive learning and nonlinear ica. In Advances in Neural Information Processing Systems, 2016. ",
|
| 941 |
+
"bbox": [
|
| 942 |
+
169,
|
| 943 |
+
801,
|
| 944 |
+
823,
|
| 945 |
+
830
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 9
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "Aapo Hyvarinen and Petteri Pajunen. Nonlinear independent component analysis: Existence and ¨ uniqueness results. Neural Networks, 1999. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
171,
|
| 954 |
+
842,
|
| 955 |
+
823,
|
| 956 |
+
869
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 9
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Aapo Hyvarinen, Hiroaki Sasaki, and Richard E Turner. Nonlinear ica using auxiliary variables and generalized contrastive learning. In International Conference on Artificial Intelligence and Statistics, 2019. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
176,
|
| 965 |
+
881,
|
| 966 |
+
825,
|
| 967 |
+
924
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 9
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Stephen James, Paul Wohlhart, Mrinal Kalakrishnan, Dmitry Kalashnikov, Alex Irpan, Julian Ibarz, Sergey Levine, Raia Hadsell, and Konstantinos Bousmalis. Sim-to-real via sim-to-sim: Dataefficient robotic grasping via randomized-to-canonical adaptation networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 12627–12637, 2019. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
103,
|
| 977 |
+
826,
|
| 978 |
+
160
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 10
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Christian Jutten and Juha Karhunen. Advances in nonlinear blind source separation. In International Symposium on Independent Component Analysis and Blind Signal Separation, pp. 245–256, 2003. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
176,
|
| 987 |
+
170,
|
| 988 |
+
823,
|
| 989 |
+
199
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 10
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Ilyes Khemakhem, Diederik Kingma, Ricardo Monti, and Aapo Hyvarinen. Variational autoencoders and nonlinear ica: A unifying framework. In International Conference on Artificial Intelligence and Statistics, pp. 2207–2217, 2020. ",
|
| 996 |
+
"bbox": [
|
| 997 |
+
173,
|
| 998 |
+
208,
|
| 999 |
+
825,
|
| 1000 |
+
252
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 10
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "Hyunjik Kim and Andriy Mnih. Disentangling by factorising. In International Conference on Machine Learning, 2018. ",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
173,
|
| 1009 |
+
262,
|
| 1010 |
+
823,
|
| 1011 |
+
291
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 10
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1018 |
+
"bbox": [
|
| 1019 |
+
171,
|
| 1020 |
+
301,
|
| 1021 |
+
825,
|
| 1022 |
+
330
|
| 1023 |
+
],
|
| 1024 |
+
"page_idx": 10
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"type": "text",
|
| 1028 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational Bayes. In International Conference on Learning Representations, 2014. ",
|
| 1029 |
+
"bbox": [
|
| 1030 |
+
169,
|
| 1031 |
+
340,
|
| 1032 |
+
825,
|
| 1033 |
+
369
|
| 1034 |
+
],
|
| 1035 |
+
"page_idx": 10
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"type": "text",
|
| 1039 |
+
"text": "David Klindt, Lukas Schott, Yash Sharma, Ivan Ustyuzhaninov, Wieland Brendel, Matthias Bethge, and Dylan Paiton. Towards nonlinear disentanglement in natural data with temporal sparse coding. arXiv preprint arXiv:2007.10930, 2020. ",
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
174,
|
| 1042 |
+
378,
|
| 1043 |
+
823,
|
| 1044 |
+
421
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 10
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "David Krueger, Ethan Caballero, Joern-Henrik Jacobsen, Amy Zhang, Jonathan Binas, Remi Le Priol, and Aaron Courville. Out-of-distribution generalization via risk extrapolation (rex). arXiv preprint arXiv:2003.00688, 2020. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
173,
|
| 1053 |
+
431,
|
| 1054 |
+
825,
|
| 1055 |
+
474
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 10
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Abhishek Kumar, Prasanna Sattigeri, and Avinash Balakrishnan. Variational inference of disentangled latent concepts from unlabeled observations. In International Conference on Learning Representations, 2018. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
484,
|
| 1065 |
+
825,
|
| 1066 |
+
529
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 10
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Yann LeCun, Fu Jie Huang, and Leon Bottou. Learning methods for generic object recognition with invariance to pose and lighting. In IEEE Conference on Computer Vision and Pattern Recognition, 2004. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
174,
|
| 1075 |
+
537,
|
| 1076 |
+
823,
|
| 1077 |
+
580
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 10
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "Ya Li, Xinmei Tian, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 624–639, 2018. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
178,
|
| 1086 |
+
590,
|
| 1087 |
+
825,
|
| 1088 |
+
633
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 10
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "Francesco Locatello, Gabriele Abbati, Thomas Rainforth, Stefan Bauer, Bernhard Scholkopf, and ¨ Olivier Bachem. On the fairness of disentangled representations. In Advances in Neural Information Processing Systems, pp. 14611–14624, 2019a. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
643,
|
| 1098 |
+
825,
|
| 1099 |
+
688
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 10
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "Francesco Locatello, Stefan Bauer, Mario Lucic, Sylvain Gelly, Bernhard Scholkopf, and Olivier ¨ Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In International Conference on Machine Learning, 2019b. ",
|
| 1106 |
+
"bbox": [
|
| 1107 |
+
173,
|
| 1108 |
+
696,
|
| 1109 |
+
825,
|
| 1110 |
+
739
|
| 1111 |
+
],
|
| 1112 |
+
"page_idx": 10
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"type": "text",
|
| 1116 |
+
"text": "Francesco Locatello, Ben Poole, Gunnar Ratsch, Bernhard Sch¨ olkopf, Olivier Bachem, and¨ Michael Tschannen. Weakly-supervised disentanglement without compromises. arXiv preprint arXiv:2002.02886, 2020. ",
|
| 1117 |
+
"bbox": [
|
| 1118 |
+
173,
|
| 1119 |
+
750,
|
| 1120 |
+
825,
|
| 1121 |
+
792
|
| 1122 |
+
],
|
| 1123 |
+
"page_idx": 10
|
| 1124 |
+
},
|
| 1125 |
+
{
|
| 1126 |
+
"type": "text",
|
| 1127 |
+
"text": "Krikamol Muandet, David Balduzzi, and Bernhard Scholkopf. Domain generalization via invariant ¨ feature representation. In International Conference on Machine Learning, pp. 10–18, 2013. ",
|
| 1128 |
+
"bbox": [
|
| 1129 |
+
168,
|
| 1130 |
+
803,
|
| 1131 |
+
825,
|
| 1132 |
+
833
|
| 1133 |
+
],
|
| 1134 |
+
"page_idx": 10
|
| 1135 |
+
},
|
| 1136 |
+
{
|
| 1137 |
+
"type": "text",
|
| 1138 |
+
"text": "Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE international conference on robotics and automation (ICRA), pp. 1–8. IEEE, 2018. ",
|
| 1139 |
+
"bbox": [
|
| 1140 |
+
173,
|
| 1141 |
+
842,
|
| 1142 |
+
823,
|
| 1143 |
+
885
|
| 1144 |
+
],
|
| 1145 |
+
"page_idx": 10
|
| 1146 |
+
},
|
| 1147 |
+
{
|
| 1148 |
+
"type": "text",
|
| 1149 |
+
"text": "Scott Reed, Yi Zhang, Yuting Zhang, and Honglak Lee. Deep visual analogy-making. In Advances in Neural Information Processing Systems, 2015. ",
|
| 1150 |
+
"bbox": [
|
| 1151 |
+
173,
|
| 1152 |
+
895,
|
| 1153 |
+
823,
|
| 1154 |
+
924
|
| 1155 |
+
],
|
| 1156 |
+
"page_idx": 10
|
| 1157 |
+
},
|
| 1158 |
+
{
|
| 1159 |
+
"type": "text",
|
| 1160 |
+
"text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. arXiv preprint arXiv:1401.4082, 2014. ",
|
| 1161 |
+
"bbox": [
|
| 1162 |
+
173,
|
| 1163 |
+
103,
|
| 1164 |
+
823,
|
| 1165 |
+
133
|
| 1166 |
+
],
|
| 1167 |
+
"page_idx": 11
|
| 1168 |
+
},
|
| 1169 |
+
{
|
| 1170 |
+
"type": "text",
|
| 1171 |
+
"text": "Karl Ridgeway and Michael C Mozer. Learning deep disentangled embeddings with the f-statistic loss. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
173,
|
| 1174 |
+
140,
|
| 1175 |
+
823,
|
| 1176 |
+
171
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 11
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "Mateo Rojas-Carulla, Bernhard Scholkopf, Richard Turner, and Jonas Peters. Invariant models for ¨ causal transfer learning. The Journal of Machine Learning Research, 19(1):1309–1342, 2018. ",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
173,
|
| 1185 |
+
178,
|
| 1186 |
+
823,
|
| 1187 |
+
208
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 11
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "Andrei A Rusu, Matej Vecer ˇ ´ık, Thomas Rothorl, Nicolas Heess, Razvan Pascanu, and Raia Hadsell. ¨ Sim-to-real robot learning from pixels with progressive nets. In Conference on Robot Learning, pp. 262–270, 2017. ",
|
| 1194 |
+
"bbox": [
|
| 1195 |
+
173,
|
| 1196 |
+
215,
|
| 1197 |
+
825,
|
| 1198 |
+
258
|
| 1199 |
+
],
|
| 1200 |
+
"page_idx": 11
|
| 1201 |
+
},
|
| 1202 |
+
{
|
| 1203 |
+
"type": "text",
|
| 1204 |
+
"text": "Bernhard Scholkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner, ¨ Anirudh Goyal, and Yoshua Bengio. Towards causal representation learning. arXiv preprint arXiv:2102.11107, 2021. ",
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
173,
|
| 1207 |
+
267,
|
| 1208 |
+
825,
|
| 1209 |
+
310
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 11
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "Rui Shu, Yining Chen, Abhishek Kumar, Stefano Ermon, and Ben Poole. Weakly supervised disentanglement with guarantees. arXiv preprint arXiv:1910.09772, 2019. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
171,
|
| 1218 |
+
319,
|
| 1219 |
+
823,
|
| 1220 |
+
349
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 11
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "Jocelyn Sietsma and Robert JF Dow. Creating artificial neural networks that generalize. Neural networks, 4(1):67–79, 1991. ",
|
| 1227 |
+
"bbox": [
|
| 1228 |
+
173,
|
| 1229 |
+
357,
|
| 1230 |
+
823,
|
| 1231 |
+
387
|
| 1232 |
+
],
|
| 1233 |
+
"page_idx": 11
|
| 1234 |
+
},
|
| 1235 |
+
{
|
| 1236 |
+
"type": "text",
|
| 1237 |
+
"text": "Casper Kaae Sønderby, Tapani Raiko, Lars Maaløe, Søren Kaae Sønderby, and Ole Winther. Ladder variational autoencoders. In Advances in neural information processing systems, pp. 3738–3746, 2016. ",
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
173,
|
| 1240 |
+
395,
|
| 1241 |
+
826,
|
| 1242 |
+
438
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 11
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "Peter Sorrenson, Carsten Rother, and Ullrich Kothe. Disentanglement by nonlinear ica with general ¨ incompressible-flow networks (gin). arXiv preprint arXiv:2001.04872, 2020. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
171,
|
| 1251 |
+
446,
|
| 1252 |
+
821,
|
| 1253 |
+
476
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 11
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "Raphael Suter, Djordje Miladinovic, Bernhard Scholkopf, and Stefan Bauer. Robustly disentangled ¨ causal mechanisms: Validating deep representations for interventional robustness. In International Conference on Machine Learning, pp. 6056–6065. PMLR, 2019. ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
174,
|
| 1262 |
+
484,
|
| 1263 |
+
825,
|
| 1264 |
+
527
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 11
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "text",
|
| 1270 |
+
"text": "Josh Tobin, Rachel Fong, Alex Ray, Jonas Schneider, Wojciech Zaremba, and Pieter Abbeel. Domain randomization for transferring deep neural networks from simulation to the real world. In 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 23–30. IEEE, 2017. ",
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
173,
|
| 1273 |
+
535,
|
| 1274 |
+
825,
|
| 1275 |
+
592
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 11
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "text",
|
| 1281 |
+
"text": "Frederik Trauble, Elliot Creager, Niki Kilbertus, Francesco Locatello, Andrea Dittadi, Anirudh ¨ Goyal, Bernhard Scholkopf, and Stefan Bauer. On disentangled representations learned from ¨ correlated data. arXiv preprint arXiv:2006.07886, 2020. ",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
174,
|
| 1284 |
+
601,
|
| 1285 |
+
823,
|
| 1286 |
+
645
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 11
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "text",
|
| 1292 |
+
"text": "Sjoerd van Steenkiste, Francesco Locatello, Jurgen Schmidhuber, and Olivier Bachem. Are disen- ¨ tangled representations helpful for abstract visual reasoning? arXiv preprint arXiv:1905.12506, 2019. ",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
174,
|
| 1295 |
+
652,
|
| 1296 |
+
823,
|
| 1297 |
+
695
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 11
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "text",
|
| 1303 |
+
"text": "Manuel Wuthrich, Felix Widmaier, Felix Grimminger, Joel Akpo, Shruti Joshi, Vaibhav Agrawal, ¨ Bilal Hammoud, Majid Khadiv, Miroslav Bogdanovic, Vincent Berenz, et al. Trifinger: An opensource robot for learning dexterity. arXiv preprint arXiv:2008.03596, 2020. ",
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
176,
|
| 1306 |
+
704,
|
| 1307 |
+
821,
|
| 1308 |
+
748
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 11
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "text",
|
| 1314 |
+
"text": "Mengyuan Yan, Qingyun Sun, Iuri Frosio, Stephen Tyree, and Jan Kautz. How to close sim-real gap? transfer with segmentation! arXiv preprint arXiv:2005.07695, 2020. ",
|
| 1315 |
+
"bbox": [
|
| 1316 |
+
174,
|
| 1317 |
+
756,
|
| 1318 |
+
821,
|
| 1319 |
+
786
|
| 1320 |
+
],
|
| 1321 |
+
"page_idx": 11
|
| 1322 |
+
},
|
| 1323 |
+
{
|
| 1324 |
+
"type": "text",
|
| 1325 |
+
"text": "A IMPLEMENTATION DETAILS ",
|
| 1326 |
+
"text_level": 1,
|
| 1327 |
+
"bbox": [
|
| 1328 |
+
176,
|
| 1329 |
+
102,
|
| 1330 |
+
441,
|
| 1331 |
+
118
|
| 1332 |
+
],
|
| 1333 |
+
"page_idx": 12
|
| 1334 |
+
},
|
| 1335 |
+
{
|
| 1336 |
+
"type": "text",
|
| 1337 |
+
"text": "Training. We train the $\\beta$ -VAEs by maximizing the following objective function: ",
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
174,
|
| 1340 |
+
132,
|
| 1341 |
+
712,
|
| 1342 |
+
148
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 12
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "equation",
|
| 1348 |
+
"img_path": "images/0307c6ea7f97f101ff05f2ef067136a3017b2b09a827dcf3cbe4662854ffa4c8.jpg",
|
| 1349 |
+
"text": "$$\n\\mathcal { L } _ { V A E } ^ { \\beta } = \\mathbb { E } _ { q _ { \\phi } ( z | \\mathbf { x } ) } [ \\log p _ { \\theta } ( \\mathbf { x } | z ) ] - \\beta D _ { \\mathrm { K L } } ( q _ { \\phi } ( z | \\mathbf { x } ) \\| p ( z ) ) \\leq \\log p ( \\mathbf { x } )\n$$",
|
| 1350 |
+
"text_format": "latex",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
272,
|
| 1353 |
+
154,
|
| 1354 |
+
725,
|
| 1355 |
+
175
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 12
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "with $\\beta > 0$ using the Adam optimizer (Kingma & Ba, 2014) with default parameters. We use a batch size of 64 and train for 400k steps. The learning rate is initialized to 1e-4 and halved at 150k and $3 0 0 \\mathrm { k }$ training steps. We clip the global gradient norm to 1.0 before each weight update. Following Locatello et al. (2019b), we use a Gaussian encoder with an isotropic Gaussian prior for the latent variable, and a Bernoulli decoder. Our implementation of weakly supervised learning is based on Ada-GVAE (Locatello et al., 2020), but uses a symmetrized KL divergence: ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
173,
|
| 1364 |
+
179,
|
| 1365 |
+
825,
|
| 1366 |
+
263
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 12
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "equation",
|
| 1372 |
+
"img_path": "images/3abfb9868a07569e8fa29284dda40528e9ba74cacc760330065457021dad3114.jpg",
|
| 1373 |
+
"text": "$$\n\\tilde { D } _ { \\mathrm { K L } } ( p , q ) = \\frac { 1 } { 2 } D _ { \\mathrm { K L } } ( p \\Vert q ) + \\frac { 1 } { 2 } D _ { \\mathrm { K L } } ( q \\Vert p )\n$$",
|
| 1374 |
+
"text_format": "latex",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
361,
|
| 1377 |
+
268,
|
| 1378 |
+
637,
|
| 1379 |
+
299
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 12
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "to infer which latent dimensions should be aggregated. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
176,
|
| 1388 |
+
304,
|
| 1389 |
+
531,
|
| 1390 |
+
319
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 12
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "The noise added to the encoder’s input consists of two independent components, both iid Gaussian with zero mean: one is independent for each subpixel (RGB) and has standard deviation 0.03, the other is a $8 \\times 8$ pixel-wise (greyscale) noise with standard deviation 0.15, bilinearly upsampled by a factor of 16. The latter has been designed (by visual inspection) to roughly mimic observation noise in the real images due to complex lighting conditions. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
173,
|
| 1399 |
+
325,
|
| 1400 |
+
825,
|
| 1401 |
+
396
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 12
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "Neural architecture. Architectural details are provided in Tables 2 and 3, and Fig. 8 provides a high-level overview. In preliminary experiments, we observed that batch normalization, layer normalization, and dropout did not significantly affect performance in terms of ELBO, model samples, and disentanglement scores, both in the unsupervised and weakly supervised settings. On the other hand, layer normalization before the posterior parameterization (last layer of the encoder) appeared to be beneficial for stability in early training. While using an architecture based on residual blocks leads to fast convergence, in practice we observed that it may be challenging to keep the gradients in check at the beginning of training.3 In order to solve this issue, we resorted to a simple scalar gating mechanism in the residual blocks (Bachlechner et al., 2020) such that each residual block is initialized to the identity. ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
173,
|
| 1410 |
+
410,
|
| 1411 |
+
825,
|
| 1412 |
+
549
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 12
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "Datasets and OOD evaluation. Because we evaluate OOD generalization in terms of cube color hue (except in the sim2real case), we first sampled 8 color hues at random from the 12 specified in Table 1. The chosen hues are: $[ 0 ^ { \\circ } , 1 2 0 ^ { \\circ }$ , $1 5 0 ^ { \\circ }$ , $1 8 0 ^ { \\circ }$ , $2 1 0 ^ { \\circ }$ , $2 7 0 ^ { \\circ }$ , $3 0 0 ^ { \\circ } , 3 3 0 ^ { \\circ } ]$ ]. Then, the dataset $D$ used for training VAEs is generated by randomly sampling values for the factors of variation from Table 1, with the color hue restricted to the above-mentioned values. This makes OOD2 evaluation possible, specifically OOD2-A where the learned predictors are tested on representations extracted from images with held-out values of the cube hue. ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
174,
|
| 1421 |
+
564,
|
| 1422 |
+
825,
|
| 1423 |
+
662
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 12
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"text": "For evaluation of out-of-distribution generalization, we train the downstream predictors on a subset $D _ { 1 } \\subset D$ of the representation training set. The downstream training set $D _ { 1 }$ is sampled at random from $D$ but only contains a (not necessarily proper) subset of the 8 cube colors. This subset contains 1 color in the OOD1-A case, 4 colors in OOD1-B and OOD1-C, all 8 colors in OOD2 (in this case $D _ { 1 }$ is simply a random subset of $D$ ). Then we test the downstream predictors on a set $D _ { 2 }$ distributionally different from $D _ { 1 }$ in terms of cube color (all OOD1 scenarios as well as OOD2-A) or sim2real (OOD2-B). In the OOD1 case, $D _ { 2 }$ is also a subset of $D$ and is generated the same way. In each OOD1 case, the test set $D _ { 2 }$ is paired with its corresponding $D _ { 1 }$ that was used to train the downstream predictors. $D _ { 2 }$ contains all colors in $D$ minus those in $D _ { 1 }$ . In the OOD2-A case, $D _ { 2 }$ is a separate dataset containing $5 \\mathrm { k }$ simulated images like those in $D$ , except that these only contain the 4 colors that were left out from the VAE training set $D$ (hue in $[ 3 0 ^ { \\circ } , 6 0 ^ { \\circ } , 9 0 ^ { \\circ } , 2 4 0 ^ { \\circ } ] )$ . In the OOD2-B case, the set $D _ { 2 }$ is the dataset of real images. Following previous work (e.g. the GBT10000 metric in Locatello et al. (2019b)), the training set $D _ { 1 }$ and test set $D _ { 2 }$ for downstream tasks contain 10k and $5 \\mathrm { k }$ images, respectively, except in the OOD2-B case, where the size is limited by the size of the real dataset. ",
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
174,
|
| 1432 |
+
670,
|
| 1433 |
+
825,
|
| 1434 |
+
876
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 12
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "table",
|
| 1440 |
+
"img_path": "images/429706c7f7cdade1885ac6d69063bcdf958294ea0f2e17be25a5fcd7e54c7899.jpg",
|
| 1441 |
+
"table_caption": [],
|
| 1442 |
+
"table_footnote": [],
|
| 1443 |
+
"table_body": "<table><tr><td colspan=\"2\">Encoder</td></tr><tr><td>Operation</td><td>Output Shape</td></tr><tr><td>Input Conv 5x5, stride 2, 64 ch. LeakyReLU(0.02) 2x ResidualBlock(64)</td><td>128×128×K 64×64×64</td></tr><tr><td>Conv 1x1,128 channels AveragePool(2) 2x ResidualBlock(128)</td><td>64×64×128 32×32×128</td></tr><tr><td>AveragePool(2) 2x ResidualBlock(128) Conv 1x1,256 channels</td><td>16×16×128</td></tr><tr><td>AveragePool(2) 2x ResidualBlock(256) AveragePool(2)</td><td>16×16×256 8×8×256</td></tr><tr><td>2x ResidualBlock(256) Flatten LeakyReLU(0.02)</td><td>4×4×256 一</td></tr><tr><td></td><td>4096 512</td></tr><tr><td>FC(512) LeakyReLU(0.02) LayerNorm 2x FC(d)</td><td>一 2d</td></tr></table>",
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
174,
|
| 1446 |
+
151,
|
| 1447 |
+
486,
|
| 1448 |
+
476
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 13
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "table",
|
| 1454 |
+
"img_path": "images/39becbd30022ae3db4fa4f5a4735613ca1e1972658b03ca4f114c8ef7775526f.jpg",
|
| 1455 |
+
"table_caption": [],
|
| 1456 |
+
"table_footnote": [],
|
| 1457 |
+
"table_body": "<table><tr><td colspan=\"2\">Decoder</td></tr><tr><td>Operation</td><td>Output Shape</td></tr><tr><td>Input FC(512)</td><td>d 512</td></tr><tr><td>LeakyReLU(0.02) FC(4096)</td><td></td></tr><tr><td rowspan=\"2\">Reshape 2x ResidualBlock(256) BilinearInterpolation(2)</td><td>4096 4×4×256</td></tr><tr><td></td></tr><tr><td>2x ResidualBlock(256) Conv 1x1,128 channels</td><td>8×8×256 8×8×128</td></tr><tr><td>BilinearInterpolation(2) 2x ResidualBlock(128) BilinearInterpolation(2)</td><td>16×16×128</td></tr><tr><td>2x ResidualBlock(128) Conv 1x1, 64 channels BilinearInterpolation(2)</td><td>32×32×128</td></tr><tr><td></td><td>32×32×64 64×64×64</td></tr><tr><td>2x ResidualBlock(64) BilinearInterpolation(2)</td><td></td></tr><tr><td>LeakyReLU(0.02) Conv 5x5,K channels</td><td>128×128×64 128×128×K</td></tr></table>",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
516,
|
| 1460 |
+
151,
|
| 1461 |
+
816,
|
| 1462 |
+
463
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 13
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Table 2: Encoder (left) and decoder (right) architectures. The latent space dimensionality is denoted by $d$ , and $K = 3$ indicates the number of image channels. Last line in the encoder architecture: the fully connected layer parameterizing the log variance of the approximate posterior distributions of the latent variables has custom initialization. The weights are initialized with $1 / 1 0$ standard deviation than the default value, and the biases are initialized to $- 1$ instead of 0. Empirically, this together with (learnable) LayerNorm was beneficial for training stability at the beginning of training. ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
173,
|
| 1471 |
+
486,
|
| 1472 |
+
825,
|
| 1473 |
+
570
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 13
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "table",
|
| 1479 |
+
"img_path": "images/ea865178fb0ecfb5de1ee970723bf90e0da87d8780520ce190b0726889b1ac03.jpg",
|
| 1480 |
+
"table_caption": [
|
| 1481 |
+
"Table 3: Architecture of one residual block. The scalar gate is implemented by multiplying the tensor by a learnable scalar parameter before adding it to the block input. Initializing the residual block to the identity by setting this parameter to zero has been originally proposed by Bachlechner et al. (2020). The tensor shape is constant throughout the residual block. "
|
| 1482 |
+
],
|
| 1483 |
+
"table_footnote": [],
|
| 1484 |
+
"table_body": "<table><tr><td>Residual Block</td></tr><tr><td>Input: shape H × W ×C LeakyReLU(0.02) Conv 3x3, C channels</td></tr></table>",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
406,
|
| 1487 |
+
678,
|
| 1488 |
+
591,
|
| 1489 |
+
804
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 13
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "image",
|
| 1495 |
+
"img_path": "images/9917a1686b283cacc0999471103f84041ea0591fae9eedfb47dd33f8520b29f8.jpg",
|
| 1496 |
+
"image_caption": [
|
| 1497 |
+
"Figure 8: Schemes of the encoder (top) and decoder (bottom) architectures. In both schemes, information flows left to right. Blue blocks represent convolutional layers: those labeled “conv” have 5x5 kernels and stride 2, while those labeled “1x1” have 1x1 kernels. Each orange block represents a pair of residual blocks (implementation details of a residual block are provided in Table 3). Green blocks in the encoder represent average pooling with stride 2, and those in the decoder denote bilinear upsampling by a factor of 2. Red blocks represent fully-connected layers. The block labeled “norm” indicates layer normalization. Dashed lines denote tensor reshaping. "
|
| 1498 |
+
],
|
| 1499 |
+
"image_footnote": [],
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
174,
|
| 1502 |
+
251,
|
| 1503 |
+
821,
|
| 1504 |
+
657
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 14
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "text",
|
| 1510 |
+
"text": "B ADDITIONAL RESULTS ",
|
| 1511 |
+
"text_level": 1,
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
176,
|
| 1514 |
+
102,
|
| 1515 |
+
400,
|
| 1516 |
+
118
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 15
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "B.1 DATASET CORRELATIONS ",
|
| 1523 |
+
"text_level": 1,
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
174,
|
| 1526 |
+
133,
|
| 1527 |
+
397,
|
| 1528 |
+
148
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 15
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "image",
|
| 1534 |
+
"img_path": "images/a4d55e75790005f576632c767cb3647291f2b598564805a06e28a1defb1e3775.jpg",
|
| 1535 |
+
"image_caption": [
|
| 1536 |
+
"Figure 9: Feasible states of the 2nd and 3rd DoF when the angle of the 1st DoF is 0. Angles are in radians. "
|
| 1537 |
+
],
|
| 1538 |
+
"image_footnote": [],
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
325,
|
| 1541 |
+
171,
|
| 1542 |
+
669,
|
| 1543 |
+
380
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 15
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "image",
|
| 1549 |
+
"img_path": "images/d9cb88bc4c7d6037fa6a0122b8ef412b507e8238e54f00bfd2907b6616b9ba07.jpg",
|
| 1550 |
+
"image_caption": [
|
| 1551 |
+
"Figure 10: Density of feasible states of 2nd and 3rd DoF over the whole training dataset. Darker shades of blue indicate regions of higher density. Angles are in radians. "
|
| 1552 |
+
],
|
| 1553 |
+
"image_footnote": [],
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
325,
|
| 1556 |
+
492,
|
| 1557 |
+
666,
|
| 1558 |
+
703
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 15
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "B.2 SAMPLES AND RECONSTRUCTIONS ",
|
| 1565 |
+
"text_level": 1,
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
176,
|
| 1568 |
+
103,
|
| 1569 |
+
460,
|
| 1570 |
+
117
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 16
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "image",
|
| 1576 |
+
"img_path": "images/f42e6fd5a8d1605b10df96d9537dbefb0433dd74fe0de7ebeedcc06a584cf414.jpg",
|
| 1577 |
+
"image_caption": [
|
| 1578 |
+
"Figure 11: Samples generated by a trained model. This model was selected based on the ELBO. "
|
| 1579 |
+
],
|
| 1580 |
+
"image_footnote": [],
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
287,
|
| 1583 |
+
133,
|
| 1584 |
+
710,
|
| 1585 |
+
459
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 16
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "image",
|
| 1591 |
+
"img_path": "images/8d2079514c2ede8646f1b27227273070da8929c53c342dad2407f8e7c67b358c.jpg",
|
| 1592 |
+
"image_caption": [
|
| 1593 |
+
"Figure 12: Input reconstructions by a trained model. This model was selected based on the ELBO. Image inputs are on odd columns, reconstructions on even columns. "
|
| 1594 |
+
],
|
| 1595 |
+
"image_footnote": [],
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
174,
|
| 1598 |
+
508,
|
| 1599 |
+
823,
|
| 1600 |
+
758
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 16
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "",
|
| 1607 |
+
"text_level": 1,
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
174,
|
| 1610 |
+
103,
|
| 1611 |
+
370,
|
| 1612 |
+
117
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 17
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "image",
|
| 1618 |
+
"img_path": "images/ebc83f404362b5359f97ad0da34b96428f54166a8e05e75371fb287f5c60c284.jpg",
|
| 1619 |
+
"image_caption": [
|
| 1620 |
+
"Figure 13: Latent traversals for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c). "
|
| 1621 |
+
],
|
| 1622 |
+
"image_footnote": [],
|
| 1623 |
+
"bbox": [
|
| 1624 |
+
228,
|
| 1625 |
+
49,
|
| 1626 |
+
767,
|
| 1627 |
+
843
|
| 1628 |
+
],
|
| 1629 |
+
"page_idx": 17
|
| 1630 |
+
},
|
| 1631 |
+
{
|
| 1632 |
+
"type": "image",
|
| 1633 |
+
"img_path": "images/f547612880ffae15a6b1c2197dee451a33ac3262505aca08a5ad80dc5750e3cc.jpg",
|
| 1634 |
+
"image_caption": [
|
| 1635 |
+
"Figure 14: Scatter plots of unsupervised metrics (left: ELBO; right: reconstruction loss) vs disentanglement (top: MIG; bottom: DCI) for 1,080 trained models, color-coded according to supervision. Each point represents a trained model. "
|
| 1636 |
+
],
|
| 1637 |
+
"image_footnote": [],
|
| 1638 |
+
"bbox": [
|
| 1639 |
+
178,
|
| 1640 |
+
137,
|
| 1641 |
+
813,
|
| 1642 |
+
648
|
| 1643 |
+
],
|
| 1644 |
+
"page_idx": 18
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"type": "text",
|
| 1648 |
+
"text": "B.5 OUT-OF-DISTRIBUTION TRANSFER ",
|
| 1649 |
+
"text_level": 1,
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
174,
|
| 1652 |
+
103,
|
| 1653 |
+
460,
|
| 1654 |
+
117
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 19
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "image",
|
| 1660 |
+
"img_path": "images/fd91b88d8f66083508e0489d539bf4f86ef58a5fa9b40c428d246dd324881699.jpg",
|
| 1661 |
+
"image_caption": [
|
| 1662 |
+
"Figure 15: Transfer metric in OOD2-A (top) and OOD2-B (bottom) settings, decomposed according to the factor of variation and presence of input noise. When noise is added to the input during training, the inferred cube position error is relatively low (the scores are the mean absolute error, and they are normalized to [0, 1]). This is particularly useful in the OOD2-B setting (real world) where the joint state is anyway considered known, while object position has to be inferred with tracking methods. "
|
| 1663 |
+
],
|
| 1664 |
+
"image_footnote": [],
|
| 1665 |
+
"bbox": [
|
| 1666 |
+
214,
|
| 1667 |
+
133,
|
| 1668 |
+
781,
|
| 1669 |
+
632
|
| 1670 |
+
],
|
| 1671 |
+
"page_idx": 19
|
| 1672 |
+
},
|
| 1673 |
+
{
|
| 1674 |
+
"type": "image",
|
| 1675 |
+
"img_path": "images/baebf49c43dfc087165de52f6cc029407e610ae45792d4a34f95c68fb5f0c95b.jpg",
|
| 1676 |
+
"image_caption": [
|
| 1677 |
+
"Figure 16: Reconstructions of real-world images (OOD2-B) for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c). "
|
| 1678 |
+
],
|
| 1679 |
+
"image_footnote": [],
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
176,
|
| 1682 |
+
71,
|
| 1683 |
+
766,
|
| 1684 |
+
852
|
| 1685 |
+
],
|
| 1686 |
+
"page_idx": 20
|
| 1687 |
+
},
|
| 1688 |
+
{
|
| 1689 |
+
"type": "image",
|
| 1690 |
+
"img_path": "images/b41979d54e732d8d4a896fb03d91db1257283803cbbaecf406efd61fd88936ae.jpg",
|
| 1691 |
+
"image_caption": [
|
| 1692 |
+
"Figure 17: Reconstructions of simulated images with encoder out-of-distribution colors (OOD2-A) for a model with low DCI score (0.15) in (a), medium DCI score (0.5) in (b), and high DCI score (1.0) in (c). "
|
| 1693 |
+
],
|
| 1694 |
+
"image_footnote": [],
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
230,
|
| 1697 |
+
59,
|
| 1698 |
+
766,
|
| 1699 |
+
847
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 21
|
| 1702 |
+
}
|
| 1703 |
+
]
|
parse/train/8VXvj1QNRl1/8VXvj1QNRl1_middle.json
ADDED
|
The diff for this file is too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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TOWARDS STABLE AND COMPREHENSIVE DOMAIN ALIGNMENT: MAX-MARGIN DOMAIN-ADVERSARIAL TRAINING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Domain adaptation tackles the problem of transferring knowledge from a labelrich source domain to an unlabeled or label-scarce target domain. Recently domain-adversarial training (DAT) has shown promising capacity to learn a domaininvariant feature space by reversing the gradient propagation of a domain classifier. However, DAT is still vulnerable in several aspects including (1) training instability due to the overwhelming discriminative ability of the domain classifier in adversarial training, (2) restrictive feature-level alignment, and (3) lack of interpretability or systematic explanation of the learned feature space. In this paper, we propose a novel Max-margin Domain-Adversarial Training (MDAT) by designing an Adversarial Reconstruction Network (ARN). The proposed MDAT stabilizes the gradient reversing in ARN by replacing the domain classifier with a reconstruction network, and in this manner ARN conducts both feature-level and pixel-level domain alignment without involving extra network structures. Furthermore, ARN demonstrates strong robustness to a wide range of hyper-parameters settings, greatly alleviating the task of model selection. Extensive empirical results validate that our approach outperforms other state-of-the-art domain alignment methods. Additionally, the reconstructed target samples are visualized to interpret the domain-invariant feature space which conforms with our intuition.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Deep neural networks have gained great success on a wide range of tasks such as visual recognition and machine translation (LeCun et al., 2015). They usually require a large number of labeled data that can be prohibitively expensive to collect, and even with sufficient supervision their performance can still be poor when being generalized to a new environment. The problem of discrepancy between the training and testing data distribution is commonly referred to as domain shift (Shimodaira, 2000). To alleviate the effect of such shift, domain adaptation sets out to obtain a model trained in a label-rich source domain to generalize well in an unlabeled target domain. Domain adaptation has benefited various applications in many practical scenarios, including but not limited to object detection under challenging conditions (Chen et al., 2018), cost-effective learning using only synthetic data to generalize to real-world imagery (Vazquez et al., 2013), etc.
|
| 12 |
+
|
| 13 |
+
Prevailing methods for unsupervised domain adaptation (UDA) are mostly based on domain alignment which aims to learn domain-invariant features by reducing the distribution discrepancy between the source and target domain using some pre-defined metrics such as maximum mean discrepancy (Tzeng et al., 2014). Recently, Ganin & Lempitsky (2015) proposed to achieve domain alignment by domainadversarial training (DAT) that reverses the gradients of a domain classifier to maximize domain confusion. Having yielded remarkable performance gain, DAT was employed in many subsequent UDA methods (Long et al., 2018; Shu et al., 2018). Even so, there still exist three critical issues of DAT that hinder its performance: (1) as the domain classifier has high-capacity to discriminate two domains, the unbalanced adversarial training cannot continuously provide effective gradients, which is usually overcome by manually adjusting the weights of adversarial training according to specific tasks; (2) DAT-based methods cannot deal with pixel-level domain shift (Hoffman et al., 2018); (3) the domain-invariant features learned by DAT are only based on intuition but difficult to interpret, which impedes the investigation of the underlying mechanism of adversarial domain adaptation.
|
| 14 |
+
|
| 15 |
+
To overcome the aforementioned difficulties, we propose an innovative DAT approach, namely Max-margin Domain-Adversarial Training (MDAT), to realize stable and comprehensive domain alignment. To demonstrate its effectiveness, we develop an Adversarial Reconstruction Network (ARN) that only utilizes MDAT for UDA. Specifically, ARN consists of a shared feature extractor, a label predictor, and a reconstruction network (i.e. decoder) that serves as a domain classifier. Supervised learning is conducted on source domain, and MDAT helps learn domain-invariant features. In MDAT, the decoder only focuses on reconstructing samples on source domain and pushing the target domain away from a margin, while the feature extractor aims to fool the decoder by learning to reconstruct samples on target domain. In this way, three critical issues can be solved by MDAT: (1) the max-margin loss reduces the discriminative capacity of domain classifier, leading to balanced and thus stable adversarial training; (2) without involving new network structures, MDAT achieves both pixel-level and feature-level domain alignment; (3) visualizing the reconstructed samples reveals how the source and target domains are aligned. We evaluate ARN with MDAT on five visual and non-visual UDA benchmarks. It achieves significant improvement to DAT on all tasks with pixel-level or higher-level domain shift. We also observe that it is insensitive to the choices of hyperparameters and as such is favorable for replication in practice. In principle, our approach is generic and can be used to enhance any UDA methods that leverage domain alignment as an ingredient.
|
| 16 |
+
|
| 17 |
+
# 2 RELATED WORK
|
| 18 |
+
|
| 19 |
+
Domain adaptation aims to transfer knowledge from one domain to another. Ben-David et al. (2010) provide an upper bound of the test error on the target domain in terms of the source error and the $\mathcal { H } \triangle \mathcal { H }$ -distance. As the source error is stationary for a fixed model, the goal of most UDA methods is to minimize the $\mathcal { H } \triangle \mathcal { H }$ -distance by reducing some metrics such as Maximum Mean Discrepancy (MMD) (Tzeng et al., 2014; Long et al., 2015) and CORAL (Sun & Saenko, 2016). Inspired by Generative Adversarial Networks (GAN) (Goodfellow et al., 2014), Ganin & Lempitsky (2015) proposed to learn domain-invariant features by adversarial training, which has inspired many UDA methods thereafter. Adversarial Discriminative Domain Adaptation (ADDA) tried to fool the label classifier by adversarial training but not in an end-to-end manner. CyCADA (Hoffman et al., 2018) and PixelDA (Bousmalis et al., 2017) leveraged GAN to conduct both feature-level and pixel-level domain adaptation, which yields significant improvement yet the network complexity is high.
|
| 20 |
+
|
| 21 |
+
Another line of approaches that are relevant to our method is the reconstruction network (i.e. the decoder network). The success of image-to-image translation corroborates that it helps learn pixellevel features in an unsupervised manner. In UDA, Ghifary et al. (2016) employed a decoder network for pixel-level adaptation, and Domain Separate Network (DSN) (Bousmalis et al., 2016) further leveraged multiple reconstruction networks to learn domain-specific features. These approaches treat the decoder network as an independent component that is irrelevant to domain alignment (Glorot et al., 2011). In this paper, our approach proposes to utilize the decoder network as domain classifier in MDAT which enables both feature-level and pixel-level domain alignment in a stable and straightforward fashion.
|
| 22 |
+
|
| 23 |
+
# 3 PROBLEM FORMULATION
|
| 24 |
+
|
| 25 |
+
# 3.1 PROBLEM DEFINITION AND NOTATIONS
|
| 26 |
+
|
| 27 |
+
In unsupervised domain adaptation, we assume that the model works with a labeled dataset $\mathbf { X } _ { S }$ and an unlabeled dataset $\mathbf { X } _ { T }$ . Let $\mathbf { X } _ { S } = \{ ( \mathbf { x } _ { i } ^ { s } , y _ { i } ^ { s } ) \} _ { i \in [ N _ { s } ] }$ denote the labeled dataset of $N _ { s }$ samples from the source domain, and the certain label $y _ { i } ^ { s }$ belongs to the label space $Y$ that is a finite set $( Y = 1 , 2 , . . . , K )$ . The other dataset $\mathbf { X } _ { T } = \{ \mathbf { x } _ { i } ^ { t } \} _ { i \in [ N _ { t } ] }$ has $N _ { t }$ samples from the target domain but has no labels. We further assume that two domains have different distributions, i.e. $\mathbf { x } _ { i } ^ { s } \sim \mathcal { D } _ { S }$ and $\mathbf { x } _ { i } ^ { t } \sim \mathcal { D } _ { T }$ . In other words, there exist some domain shift (Ben-David et al., 2010) between $\mathcal { D } _ { S }$ and $\mathcal { D } _ { T }$ . The ultimate goal is to learn a model that can predict the label $y _ { i } ^ { t }$ given the target input $\mathbf { x } _ { i } ^ { t }$ .
|
| 28 |
+
|
| 29 |
+
# 3.2 IMBALANCED MINIMAX GAME IN DOMAIN-ADVERSARIAL TRAINING
|
| 30 |
+
|
| 31 |
+
To achieve domain alignment, Domain-Adversarial Training (DAT) is a minimax game between a shared feature extractor $F$ for two domains and a domain classifier $D$ . The domain classifier is
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
Figure 1: The proposed architecture is composed of a shared feature extractor $G _ { e }$ for two domains, a label predictor $G _ { y }$ and a reconstruction network $G _ { r }$ . In addition to the basic supervised learning in the source domain, our adversarial reconstruction training enables the extractor $G _ { e }$ to learn domain-invariant features. Specifically, the network $G _ { r }$ aims to reconstruct the source samples $x ^ { s }$ and to impede the reconstruction of the target samples $x ^ { t }$ , while the extractor $G _ { e }$ tries to fool the reconstruction network in order to reconstruct the target samples $x ^ { t }$ .
|
| 35 |
+
|
| 36 |
+
trained to determine whether the input sample belongs to the source or the target domain while the feature extractor learns to deceive the domain classifier, which is formulated as:
|
| 37 |
+
|
| 38 |
+
$$
|
| 39 |
+
\operatorname* { m i n } _ { F } \operatorname* { m a x } _ { D } \mathcal { L } _ { D A T } ( D _ { s } , D _ { t } ) = \mathbb { E } _ { x \sim D _ { s } } [ \ln F ( x ) ] + \mathbb { E } _ { x \sim D _ { t } } [ \ln \left( 1 - D ( F ( x ) ) \right) ] .
|
| 40 |
+
$$
|
| 41 |
+
|
| 42 |
+
In DAT, we usually utilize CNN as the feature extractor and fully connected layers (FC) as the domain classifier. DAT reduces the cross-domain discrepancy, achieving significant performance improvement for UDA. Nevertheless, the training of DAT is rather unstable. Without sophisticated tuning of the hyper-parameters, DAT cannot reach the convergence. Through empirical experiments, we observe that such instability is due to the imbalanced minimax game. The binary domain classifier $D$ can easily achieve convergence with very high accuracy at an early training epoch, while it is much harder for the feature extractor $F$ to fool the domain classifier and to simultaneously perform well on the source domain. In this sense, the domain classifier dominates DAT, and the only solution is to palliate the training of $D$ by tuning the hyper-parameters according to different tasks. In our method, we restrict the capacity of the domain classifier so as to form a minimax game in a harmonious manner. Inspired by the max-margin loss in Support Vector Machine (SVM) (Cristianini et al., 2000) (i.e. hinge loss), if we push the source domain and the target domain away from a margin rather than as far as possible, then the training task of $F$ to fool $D$ becomes easier. For a binary domain classifier, we define the margin loss as
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\mathcal { L } _ { m a r g i n } ( y ) = [ 0 , m - t \cdot y ] ^ { + } ,
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
where $y$ is the predicted domain label, $[ \cdot ] ^ { + } : = m a x ( 0 , \cdot )$ , $m$ is a positive margin and $t$ is the ground truth label for two domains $t = - 1$ for the source domain and $t = 1$ for the target domain). Then we introduce our MDAT scheme based on an innovative network architecture.
|
| 49 |
+
|
| 50 |
+
# 3.3 MAX-MARGIN DOMAIN-ADVERSARIAL TRAINING
|
| 51 |
+
|
| 52 |
+
Besides the training instability issue, DAT also suffers from restrictive feature-level alignment – lack of pixel-level alignment. To realize stable and comprehensive domain alignment together, we first propose an Adversarial Reconstruction Network (ARN) and then elaborate MDAT.
|
| 53 |
+
|
| 54 |
+
As depicted in Figure 1, our model consists of three parts including a shared feature extractor $G _ { e }$ for both domains, a label predictor $G _ { y }$ and a reconstruction network $G _ { r }$ . Let the feature extractor $G _ { e } ( \mathbf { x } ; \theta _ { e } )$ be a function parameterized by $\theta _ { e }$ which maps an input sample $\mathbf { X }$ to a deep embedding z. Let the label predictor $G _ { y } ( \pmb { z } ; \theta _ { y } )$ be a task-specific function parameterized by $\theta _ { y }$ which maps an embedding $\mathbf { z }$ to a task-specific prediction $\hat { y }$ . The reconstruction network $G _ { r } ( \pmb { z } ; \bar { \theta } _ { r } )$ is a decoding function parameterized by $\theta _ { r }$ that maps an embedding $\mathbf { z }$ to its corresponding reconstruction $\hat { \bf x }$ .
|
| 55 |
+
|
| 56 |
+
The first learning objective for the feature extractor $G _ { e }$ and label predictor $G _ { y }$ is to perform well in the source domain. For a supervised $\mathrm { K }$ -way classification problem, it is simply achieved by minimizing the negative log-likelihood of the ground truth class for each sample:
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\mathcal { L } _ { t a s k } = \sum _ { i = 1 } ^ { N _ { s } } \mathcal { L } _ { y } ( \mathbf { x } _ { i } ^ { s } , \mathbf { y } _ { i } ^ { s } ) = - \sum _ { i = 1 } ^ { N _ { s } } \mathbf { y } _ { i } ^ { s } \cdot \log G _ { y } ( G _ { e } ( \mathbf { x } _ { i } ^ { s } ; \boldsymbol { \theta } _ { e } ) ; \boldsymbol { \theta } _ { y } ) ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $\mathbf { y } _ { i } ^ { s }$ is the one-hot encoding of the class label $y _ { i } ^ { s }$ and the logarithm operation is conducted on the softmax predictions of the model.
|
| 63 |
+
|
| 64 |
+
The second objective is to render the feature learning to be domain-invariant. This is motivated by the covariate shift assumption (Shimodaira, 2000) that indicates if the feature distributions $\dot { S } ( \mathbf { z } ) = \{ G _ { e } ( \mathbf { x } ; \theta _ { e } ) | \mathbf { \bar { x } } \sim \mathcal { D } _ { S } \}$ and $T ( \mathbf { z } ) = \{ G _ { e } ( \mathbf { x } ; \boldsymbol { \theta } _ { e } ) | \mathbf { x } \sim \mathcal { D } _ { T } \}$ are similar, the source label predictor $G _ { y }$ can achieve a similar high accuracy in the target domain. To this end, we design a decoder network $G _ { r }$ that serves as a domain classifier, and then MDAT could be applied for stable training. Different from the normal binary domain classifier, MDAT lets the decoder network $G _ { r }$ only reconstruct the features in the source domain and push the features in the target domain away from a margin $m$ . In this way, the decoder has the functionality of distinguishing the source domain from the target domain. The objective of training $G _ { r }$ is formulated as
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
\operatorname* { m i n } _ { \theta _ { r } } \sum _ { i = 1 } ^ { N _ { s } + N _ { t } } \mathcal { L } _ { m a r g i n } ( \mathcal { L } _ { r } ( \mathbf { x } _ { i } ) ) = \operatorname* { m i n } _ { \theta _ { r } } \sum _ { i = 1 } ^ { N _ { s } } \mathcal { L } _ { r } ( \mathbf { x } _ { i } ^ { s } ) + \sum _ { j = 1 } ^ { N _ { t } } [ m - \mathcal { L } _ { r } ( \mathbf { x } _ { j } ^ { t } ) ] ^ { + } ,
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $m$ is a positive margin and $\textstyle { \mathcal { L } } _ { r } ( \cdot )$ is the mean squared error (MSE) term for the reconstruction loss that is defined as
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\mathcal { L } _ { r } ( \mathbf { x } ) = | | G _ { r } ( G _ { e } ( \mathbf { x } ; \boldsymbol { \theta } _ { e } ) ; \boldsymbol { \theta } _ { r } ) - \mathbf { x } | | _ { 2 } ^ { 2 } ,
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $| | \cdot | | _ { 2 } ^ { 2 }$ denotes the squared $L _ { 2 }$ -norm.
|
| 77 |
+
|
| 78 |
+
Oppositely, to form a minimax game, the feature extractor $G _ { e }$ learns to deceive $G _ { r }$ such that the learned target features are indistinguishable to the source ones, which is formulated by:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\operatorname* { m i n } _ { \theta _ { e } } \sum _ { j = 1 } ^ { N _ { t } } \mathcal { L } _ { r } ( \mathbf { x } _ { j } ^ { t } ) .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
Then the whole learning procedure of ARN with MDAT can be formulated by:
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\begin{array} { l } { { \displaystyle \operatorname* { m i n } _ { \theta _ { e } , \theta _ { c } } \sum _ { i = 1 } ^ { N _ { s } } } \mathcal { L } _ { y } ( \mathbf { x } _ { i } ^ { s } , \mathbf { y } _ { i } ^ { s } ) + \alpha \sum _ { j = 1 } ^ { N _ { t } } \mathcal { L } _ { r } ( \mathbf { x } _ { j } ^ { t } ) , \ ~ } \\ { { \displaystyle \operatorname* { m i n } _ { \theta _ { r } } \sum _ { i = 1 } ^ { N _ { s } } } \mathcal { L } _ { r } ( \mathbf { x } _ { i } ^ { s } ) + \sum _ { j = 1 } ^ { N _ { t } } [ m - \mathcal { L } _ { r } ( \mathbf { x } _ { j } ^ { t } ) ] ^ { + } , \ ~ } \end{array}
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\mathcal { L } _ { y }$ denotes the negative log-likelihood of the ground truth class for labeled sample $\left( \mathbf { x } _ { i } ^ { s } , \mathbf { y } _ { i } ^ { s } \right)$ and $\alpha$ controls the interaction of the loss terms. In the following section, we provide theoretical justifications on how MDAT reduces the distribution discrepancy, and discuss why it is superior to the classic DAT.
|
| 91 |
+
|
| 92 |
+
# 3.4 THEORETICAL JUSTIFICATIONS
|
| 93 |
+
|
| 94 |
+
In this section, we provide the theoretical justifications on how the proposed method reduces the distribution discrepancy for UDA. The rationale behind domain alignment is motivated from the learning theory of non-conservative domain adaptation problem by Ben-David et al. (Ben-David et al., 2010):
|
| 95 |
+
|
| 96 |
+
Theorem 3.1 Let $\mathcal { H }$ be the hypothesis space where $h \in \mathcal H$ . Let $( \mathcal { D } _ { S } , \epsilon _ { s } )$ and $( \mathcal { D } _ { T } , \epsilon _ { t } )$ be the two domains and their corresponding generalization error functions. The expected error for the target domain is upper bounded by
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
\epsilon _ { t } ( h ) \leq \epsilon _ { s } ( h ) + \frac { 1 } { 2 } d _ { \mathscr { H } \triangle \mathscr { H } } ( \mathscr { D } _ { S } , \mathscr { D } _ { T } ) + \lambda , \forall h \in \mathscr { H } ,
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
where $\begin{array} { r } { d _ { \mathcal { H } \triangle \mathcal { H } } ( \mathcal { D } _ { S } , \mathcal { D } _ { T } ) = 2 \operatorname* { s u p } _ { h _ { 1 } , h _ { 2 } \in \mathcal { H } } \big | \operatorname* { P r } _ { x \sim \mathcal { D } _ { S } } [ h _ { 1 } ( x ) \neq h _ { 2 } ( x ) ] - \operatorname* { P r } _ { x \sim \mathcal { D } _ { T } } [ h _ { 1 } ( x ) \neq h _ { 2 } ( x ) ] \big | } \end{array}$ and $\lambda = \mathrm { m i n } _ { h } [ \epsilon _ { s } ( h ) + \epsilon _ { t } ( h ) ]$ .
|
| 103 |
+
|
| 104 |
+
Theoretically, when we minimize the $\mathcal { H } \triangle \mathcal { H }$ -distance, the upper bound of the expected error for the target domain is reduced accordingly. As derived in DAT (Ganin $\&$ Lempitsky, 2015), assuming a family of domain classifiers $\mathcal { H } _ { d }$ to be rich enough to contain the symmetric difference hypothesis set of $\mathcal { H } _ { p }$ , such that $\mathcal { H } _ { p } \triangle \mathcal { H } _ { p } = \{ h | h = h _ { 1 } \oplus \bar { h } _ { 2 } , h _ { 1 } , h _ { 2 } \in \mathcal { H } _ { p } \}$ where $\oplus$ is XOR-function, the empirical $\mathcal { H } _ { p } \triangle \mathcal { H } _ { p }$ -distance has an upper bound with regard to the optimal domain classifier $h$ :
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
d _ { \mathcal H _ { p } \triangle \mathcal H _ { p } } ( \hat { D } _ { S } , \hat { D } _ { T } ) \le 2 \operatorname* { s u p } _ { h \in \mathcal H _ { d } } \vert \operatorname* { P r } _ { \mathbf z \sim \hat { D } _ { S } } [ h ( \mathbf z ) = 0 ] + \operatorname* { P r } _ { \mathbf z \sim \hat { D } _ { T } } [ h ( \mathbf z ) = 1 ] - 1 \vert ,
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\hat { \mathcal { D } } _ { S }$ and $\hat { \mathcal { D } } _ { T }$ denote the distributions of the source and target feature space ${ \mathcal { Z } } _ { S }$ and ${ \mathcal { Z } } _ { T }$ , respectively. Note that the MSE of $G _ { r }$ plus a ceiling function is a form of domain classifier $h ( \mathbf { z } )$ , i.e. $\lceil [ m - \bar { \mathcal { L } } _ { r } ( \cdot ) ] ^ { + } - 0 . 5 \rceil$ for $m = 1$ . It maps source samples to 0 and target samples to 1 which is exactly the upper bound in Eq.10. Therefore, our reconstruction network $G _ { r }$ maximizes the domain discrepancy with a margin and the feature extractor learns to minimize it oppositely.
|
| 111 |
+
|
| 112 |
+
# 3.5 DISCUSSIONS
|
| 113 |
+
|
| 114 |
+
Compared with the conventional DAT-based methods that are usually based on a binary logistic network (Ganin & Lempitsky, 2015), the proposed ARN with MDAT is more attractive and incorporates new merits conceptually and theoretically:
|
| 115 |
+
|
| 116 |
+
(1) Stable training and insensitivity to hyper-parameters. Using the decoder as domain classifier with a margin loss to restrain its overwhelming capacity in adversarial training, the minimax game can continuously provide effective gradients for training the feature extractor. Moreover, through the experiments in Section 4, we discover that our method shows strong robustness to the hyperparameters, i.e. $\alpha$ and $m$ , greatly alleviating the parameters tuning for model selection.
|
| 117 |
+
|
| 118 |
+
(2) Richer information for comprehensive domain alignment. Rather than DAT that uses a bit of domain information, MDAT utilizes the reconstruction network as the domain classifier that could capture more domain-specific and pixel-level features during the unsupervised reconstruction (Bousmalis et al., 2016). Therefore, MDAT further helps address pixel-level domain shift apart from the feature-level shift, leading to comprehensive domain alignment in a straightforward manner.
|
| 119 |
+
|
| 120 |
+
(3) Feature visualization for method validation. Another key merit of MDAT is that MDAT allows us to visualize the features directly by the reconstruction network. It is crucial to understand to what extent the features are aligned since this helps to reveal the underlying mechanism of adversarial domain adaptation. We will detail the interpretability of these adapted features in Section 4.3.
|
| 121 |
+
|
| 122 |
+
# 4 EXPERIMENT
|
| 123 |
+
|
| 124 |
+
In this section, we evaluate the proposed ARN with MDAT on a number of visual and non-visual UDA tasks with varying degrees of domain shift. We conduct ablation study to corroborate the effectiveness of MDAT and unsupervised reconstruction for UDA. Then the sensitivity of the hyperparameters is investigated, and the adapted features are interpreted via the reconstruction network in ARN.
|
| 125 |
+
|
| 126 |
+
Setup. We evaluate our method on four classic visual UDA datasets and a WiFi-based Gesture Recognition (WGR) dataset (Zou et al., 2019). The classic datasets have middle level of domain shift including MNIST (LeCun et al., 1998), USPS (Hull, 1994), Street View House Numbers (SVHN) (Netzer et al., 2011) and Synthetic Digits (SYN). For a fair comparison, we follow the same CNN architecture as DANN (Ganin & Lempitsky, 2015) while using the inverse of $G _ { e }$ as $G _ { r }$ with pooling operation replaced by upsampling. For the penalty term $\alpha$ , we choose 0.02 by searching over the grid $\lbrace 1 0 ^ { - 2 } , \dot { 1 } \rbrace$ . We also obtain the optimal margin $m = 5$ by a search over $\{ 1 0 ^ { \dot { - } 1 } , 1 0 \}$ . Then we use the same hyperparameter settings for all tasks to show the robustness. For the optimization, we simply use Adam Optimizer $( l r = 2 \times 1 0 ^ { - 4 } , \beta _ { 1 } = 0 . 5 , \beta _ { 2 } = 0 . 9 9 9 )$ and train all experiments for 50 epochs with batch size 128. We implemented our model and conducted all the experiments using the PyTorch framework. More implementation details are illustrated in the appendix.
|
| 127 |
+
|
| 128 |
+
Baselines. We evaluate the efficacy of our approach by comparing it with existing UDA methods that perform three ways of domain alignment. Specifically, MMD regularization (Long et al., 2015) and Correlation Alignment (Sun & Saenko, 2016) employ the statistical distribution matching. DRCN (Ghifary et al., 2016) and DSN (Bousmalis et al., 2016) use the reconstruction error for UDA,
|
| 129 |
+
|
| 130 |
+
<table><tr><td>Source Target</td><td>MNIST USPS</td><td>USPS MNIST</td><td>SVHN MNIST</td><td>SYN SVHN</td></tr><tr><td>Source-Only model</td><td>78.2</td><td>63.4</td><td>54.9</td><td>86.7</td></tr><tr><td>Train on target</td><td>96.5</td><td>99.4</td><td>99.4</td><td>91.3</td></tr><tr><td>[S] MMD (Long et al., 2015)</td><td>81.1</td><td>-</td><td>71.1</td><td>88.0</td></tr><tr><td>[S] CORAL (Sun & Saenko, 2016)</td><td>80.7</td><td>-</td><td>63.1</td><td>85.2</td></tr><tr><td>[R] DRCN* (Ghifary et al.,2016)</td><td>91.8</td><td>73.7</td><td>82.0</td><td>87.5</td></tr><tr><td>[R] DSN (Bousmalis et al., 2016)</td><td>91.3</td><td>-</td><td>82.7</td><td>91.2</td></tr><tr><td>[A] DANN (Ganin et al., 2016)</td><td>85.1</td><td>73.0</td><td>74.7</td><td>90.3</td></tr><tr><td>[A] ADDA (Tzeng et al., 2017)</td><td>89.4</td><td>90.1</td><td>76.0</td><td>-</td></tr><tr><td>[A] CyCADA (Hoffman et al., 2018)</td><td>95.6</td><td>96.5</td><td>90.4</td><td>-</td></tr><tr><td>[A] CADA (Zou et al., 2019)</td><td>96.4</td><td>97.0</td><td>90.9</td><td>1</td></tr><tr><td>[A] MECA (Morerio et al.,2018)</td><td>-</td><td>-</td><td>95.2</td><td>90.3</td></tr><tr><td>ARN w.0. MDAT</td><td>93.1±0.3</td><td>76.5±1.2</td><td>67.4±0.9</td><td>86.8±0.5</td></tr><tr><td>ARN with MDAT (proposed)</td><td>98.6±0.3</td><td>98.4±0.1</td><td>97.4±0.3</td><td>92.0±0.2</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Table 1: We compare with general, statistics-based (S), reconstruction-based $\mathbf { ( R ) }$ and adversarialbased (A) state-of-the-art approaches. We repeated each experiment for 3 times and report the average and standard deviation (std) of the test accuracy in the target domain.
|
| 133 |
+
|
| 134 |
+
while many prevailing UDA methods adopt domain-adversarial training including DANN (Ganin & Lempitsky, 2015), ADDA (Tzeng et al., 2017), MECA (Morerio et al., 2018), CyCADA (Hoffman et al., 2018) and CADA (Zou et al., 2019). For all transfer tasks, we follow the same protocol as DANN (Ganin & Lempitsky, 2015) that uses official training data split in both domains for training and evaluates the testing data split in the target domain.
|
| 135 |
+
|
| 136 |
+
# 4.1 OVERALL RESULTS
|
| 137 |
+
|
| 138 |
+
MNIST USPS. Both datasets are composed of grey-scale handwritten images with diverse stroke weights, leading to low-level domain shift. Since USPS has only 7291 training images, USPS ${ \bf { \Gamma } } \to \mathbf { M N I S T }$ is more difficult. As shown in Table 1, our method achieves state-of-the-art accuracy of $9 8 . 6 \%$ on MNIST USPS and $9 8 . 4 \%$ on USPS MNIST, which demonstrates that ARN can tackle low-level domain shift by only using ART (rather than many adversarial UDA methods that adopt other loss terms to adjust classifier boundaries or conduct style transfer).
|
| 139 |
+
|
| 140 |
+
Table 2: Comparisons on WGR.
|
| 141 |
+
|
| 142 |
+
<table><tr><td rowspan=1 colspan=1>SourceTarget</td><td rowspan=1 colspan=1>Room ARoom B</td></tr><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=1>Source-only[S] MMD</td><td rowspan=2 colspan=1>58.4±0.761.2±0.569.3±0.3</td></tr><tr><td rowspan=1 colspan=1>[R] DRCN</td></tr><tr><td rowspan=1 colspan=1>[A]DANN</td><td rowspan=1 colspan=1>68.2±0.2</td></tr><tr><td rowspan=1 colspan=1>[A] ADDA</td><td rowspan=1 colspan=1>71.5±0.3</td></tr><tr><td rowspan=1 colspan=1>[A] CADA</td><td rowspan=1 colspan=1>88.8±0.1</td></tr><tr><td rowspan=1 colspan=1>ARN+MDAT</td><td rowspan=1 colspan=1>91.3±0.2</td></tr></table>
|
| 143 |
+
|
| 144 |
+
SVHN MNIST and $\mathbf { S Y N } { } \mathbf { S V H N }$ . The SVHN dataset contains RGB digit images that introduce significant variations such as scale, background, embossing, rotation, slanting and even multiple digits. The SYN data consists of $5 0 k$ RGB images of varying color, background, blur and orientation. These two tasks have tremendous pixel-level domain shfit. The proposed method achieves a state-ofthe-art performance of $9 7 . 4 \%$ for $\mathbf { S V H N { \to } M N I S T }$ , far ahead of other DAT-based methods, significantly improving the classic DANN by $2 2 . 7 \%$ . Similarly, ARN with MDAT also achieves a noticeable improvement of $5 . 3 \%$ compared with the source-only model, even outperforming the supervised SVHN accuracy $9 1 . 3 \%$ .
|
| 145 |
+
|
| 146 |
+
WiFi Gesture Recognition with Distant Domains. To evaluate the proposed method on a non-visual UDA task, we applied our method to the WiFi gesture recognition dataset (Zou et al., 2019). The WiFi data of six gestures was collected in two rooms regarded as two domains. The results in Table 2 demonstrate that our approach significantly improves classification accuracy against Source-Only and DANN by $3 2 . 9 \%$ and $2 3 . 1 \%$ , respectively.
|
| 147 |
+
|
| 148 |
+
Table 3: The accuracy $( \% )$ with different hyperparameters on SVHN MNIST.
|
| 149 |
+
|
| 150 |
+
<table><tr><td>a</td><td>0.01</td><td>0.03</td><td>0.07</td><td>0.1</td><td>0.2</td><td>0.3</td><td>0.5</td><td>1.0</td></tr><tr><td>DANN</td><td>71.1</td><td>74.1</td><td>72.7</td><td>74.1</td><td>74.7</td><td>9.6</td><td>9.7</td><td>10.3</td></tr><tr><td>ARN (m = 1)</td><td>95.7</td><td>95.9</td><td>93.3</td><td>93.2</td><td>80.1</td><td>75.3</td><td>73.1</td><td>67.5</td></tr><tr><td>m</td><td>0.1</td><td>0.3</td><td>0.5</td><td>0.7</td><td>1.0</td><td>2.0</td><td>5.0</td><td>10.0</td></tr><tr><td>ARN(α = 2e-2)</td><td>64.5</td><td>75.2</td><td>90.0</td><td>92.6</td><td>96.0</td><td>97.4</td><td>97.7</td><td>96.7</td></tr></table>
|
| 151 |
+
|
| 152 |
+
# 4.2 ABLATION STUDY AND SENSITIVITY ANALYSIS
|
| 153 |
+
|
| 154 |
+
The contribution of MDAT and image reconstruction in ARN. We design an ablation study to verify the contribution of MDAT and unsupervised reconstruction in ARN. To this end, we discard the term $\dot { \mathcal { L } } _ { r } ( \mathbf { x } ^ { t } )$ in Eq.4, and evaluate the method, denoted as ARN w.o. MDAT in Table 1. (1) Comparing ARN w.o. MDAT with source-only model, we can infer the effect of unsupervised reconstruction for UDA. It is observed that ARN w.o. MDAT improves tasks with low-level domain shift such as MNIST USPS, which conforms with our discussion that the unsupervised reconstruction is instrumental in learning low-level features. (2) Comparing ARN w.o. MDAT with the original ARN, we can infer the contribution of MDAT. Table 1 shows that the MDAT achieves an impressive marginof-improvement. For USPS MNIST and SV $\mathbf { H N } { } \mathbf { M N }$ IST, the MDAT improves ARN w.o. MDAT by around $30 \%$ . It demonstrates that MDAT which helps learn domain-invariant representations is the main reason for the tremendous improvement.
|
| 155 |
+
|
| 156 |
+
Parameter sensitivity. We investigate the effect of $\alpha$ and $m$ on S $\mathbf { \nabla } \sqrt { \mathbf { H N } } \to \mathbf { M }$ NIST. The results in Table 3 show that ARN achieves good performance as $\alpha \in [ 0 . 0 1 , 0 . 1 ]$ and even with larger $\alpha$ ARN is able to achieve convergence. In comparison, denoting $\alpha$ as the weight of adversarial loss, the DANN cannot converge when $\alpha > 0 . 2$ . For the sensitivity of $m$ , the accuracy of ARN exceeds $9 6 . 0 \%$ as $m \geq 1$ . These analyses validate that the training of ARN is not sensitive to the parameters and even in the worst cases ARN can achieve convergence.
|
| 157 |
+
|
| 158 |
+
Gradients and training procedure. We draw the training procedure with regard to loss and target accuracy in Figure 2(b) and Figure 2(a), respectively. In Figure 2(b), ARN has smoother and more effective gradients $( \mathcal { L } _ { r } )$ for all $\alpha$ , while the loss of DAT domain classifier $( \mathcal { L } _ { d } )$ gets extremely small at the beginning. This observation conforms with our intuition, which demonstrates that by restricting the capacity of domain classifier MDAT provides more effective gradients for training feature extractor, leading to a more stable training procedure. This could be further validated in Figure 2(b) where the ARN accuracy is more stable than that of DAT across training epochs.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 2: The training procedure with regard to loss and test accuracy. ( $\mathcal { L } _ { e } : = \mathrm { E q }$ . 6; $\mathcal { L } _ { r }$ := Eq. 4; $\mathcal { L } _ { d }$ is the domain loss of DAT (Ganin & Lempitsky, 2015); $\alpha$ is the penalty term of $\mathcal { L } _ { e }$ and $\mathcal { L } _ { d }$ .)
|
| 162 |
+
|
| 163 |
+
<table><tr><td></td><td>Source Images</td><td>Target Images</td><td>R-Target Images</td></tr><tr><td>MNIST→USPS</td><td>72/04149 97349665 34727121</td><td>06181328 Li;97210 10140198</td><td>618132 108:019 3</td></tr><tr><td>USPS→MNIST</td><td>01870009 z568928i 35418305</td><td>7210414a 97349665 341727121</td><td>72104197 97s41665 34727121</td></tr><tr><td>SVHN→MNIST</td><td>0103457N0 2 19 5 5259.012 1310</td><td>59069015 0740131 2413512</td><td>9101e19101115 :1061:01511 gCk ES52</td></tr><tr><td>SYN-→SVHN</td><td>14366 40570 6.75/ 65 3607 37 1236:83811 094</td><td>6s 31 140885 3 96 品 3913b8m</td><td>64040003 30296651 39)-0s81</td></tr></table>
|
| 164 |
+
|
| 165 |
+
Table 4: Visualizing the source image, target images and reconstructed target images (R-Target Images) for four digit adaptation tasks.
|
| 166 |
+
|
| 167 |
+
# 4.3 VISUALIZATION AND ANALYSIS
|
| 168 |
+
|
| 169 |
+
Interpreting MDAT features via reconstructed images. One of the key advantages of ARN is that by visualizing the reconstructed target images we can infer how the features are domain-invariant. We reconstruct the MDAT features of the test data and visualize them in Table 4. It is observed that the target features are reconstructed to source-like images by the decoder $G _ { r }$ . As discussed before, intuitively, MDAT forces the target features to mimic the source features, which conforms with our visualization. Similar to image-to-image translation, this indicates that our method conducts implicit feature-to-feature translation that transfers the target features to source-like features, and hence the features become domain-invariant.
|
| 170 |
+
|
| 171 |
+
T-SNE embeddings. We analyze the performance of domain alignment for DANN (DAT) (Ganin & Lempitsky, 2015) and ARN (MDAT) by plotting T-SNE embeddings of the features $\mathbf { z }$ on the task SVHN MNIST. In Figure 3(a), the source-only model obtains diverse embeddings for each category but the domains are not aligned. In Figure 3(b), the DANN aligns two domains but the decision boundaries of the classifier are vague. In Figure 3(c), the proposed ARN effectively aligns two domains for all categories and the classifier boundaries are much clearer.
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 3: T-SNE visualization on SVHN MNIST with their corresponding domain labels (red: target; blue: source) and category labels (10 classes) shown in the left and right subfigures, respectively.
|
| 175 |
+
|
| 176 |
+
# 5 CONCLUSION
|
| 177 |
+
|
| 178 |
+
We proposed a new domain alignment approach namely max-margin domain-adversarial training (MDAT) and a MDAT-based network for unsupervised domain adaptation. The proposed method offers effective and stable gradients for the feature learning via an adversarial game between the feature extractor and the reconstruction network. The theoretical analysis provides justifications on how it minimizes the distribution discrepancy. Extensive experiments demonstrate the effectiveness of our method and we further interpret the features by visualization that conforms with our insight. Potential evaluation on semi-supervised learning constitutes our future work.
|
| 179 |
+
|
| 180 |
+
# REFERENCES
|
| 181 |
+
|
| 182 |
+
Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1-2):151–175, 2010.
|
| 183 |
+
|
| 184 |
+
Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. Domain separation networks. In Advances in Neural Information Processing Systems, pp. 343–351, 2016.
|
| 185 |
+
|
| 186 |
+
Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3722–3731, 2017.
|
| 187 |
+
|
| 188 |
+
Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3339–3348, 2018.
|
| 189 |
+
|
| 190 |
+
Nello Cristianini, John Shawe-Taylor, et al. An introduction to support vector machines and other kernel-based learning methods. Cambridge university press, 2000.
|
| 191 |
+
|
| 192 |
+
Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1180–1189, Lille, France, 07–09 Jul 2015. PMLR.
|
| 193 |
+
|
| 194 |
+
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016.
|
| 195 |
+
|
| 196 |
+
Muhammad Ghifary, W Bastiaan Kleijn, Mengjie Zhang, David Balduzzi, and Wen Li. Deep reconstruction-classification networks for unsupervised domain adaptation. In European Conference on Computer Vision, pp. 597–613. Springer, 2016.
|
| 197 |
+
|
| 198 |
+
Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 513–520, 2011.
|
| 199 |
+
|
| 200 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014.
|
| 201 |
+
|
| 202 |
+
Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. CyCADA: Cycle-consistent adversarial domain adaptation. In Proceedings of the 35th International Conference on Machine Learning, pp. 1989–1998, 2018.
|
| 203 |
+
|
| 204 |
+
Jonathan J. Hull. A database for handwritten text recognition research. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(5):550–554, 1994.
|
| 205 |
+
|
| 206 |
+
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.
|
| 207 |
+
|
| 208 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015.
|
| 209 |
+
|
| 210 |
+
Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. Learning transferable features with deep adaptation networks. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 97–105, 2015.
|
| 211 |
+
|
| 212 |
+
Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In Advances in Neural Information Processing Systems, 2018.
|
| 213 |
+
|
| 214 |
+
Pietro Morerio, Jacopo Cavazza, and Vittorio Murino. Minimal-entropy correlation alignment for unsupervised deep domain adaptation. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=rJWechg0Z.
|
| 215 |
+
|
| 216 |
+
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, volume 2011, pp. 5, 2011.
|
| 217 |
+
|
| 218 |
+
Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of statistical planning and inference, 90(2):227–244, 2000.
|
| 219 |
+
|
| 220 |
+
Rui Shu, Hung H Bui, Hirokazu Narui, and Stefano Ermon. A dirt-t approach to unsupervised domain adaptation. In Proc. 6th International Conference on Learning Representations, 2018.
|
| 221 |
+
|
| 222 |
+
Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In European Conference on Computer Vision, pp. 443–450. Springer, 2016.
|
| 223 |
+
|
| 224 |
+
Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. CoRR, abs/1412.3474, 2014. URL http://arxiv.org/ abs/1412.3474.
|
| 225 |
+
|
| 226 |
+
Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Computer Vision and Pattern Recognition (CVPR), volume 1, pp. 4, 2017.
|
| 227 |
+
|
| 228 |
+
David Vazquez, Antonio M Lopez, Javier Marin, Daniel Ponsa, and David Geronimo. Virtual and real world adaptation for pedestrian detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(4):797–809, 2013.
|
| 229 |
+
|
| 230 |
+
Han Zou, Yuxun Zhou, Jianfei Yang, Huihan Liu, Hari Prasanna Das, and Costas J Spanos. Consensus adversarial domain adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 5997–6004, 2019.
|
| 231 |
+
|
| 232 |
+
# APPENDIX
|
| 233 |
+
|
| 234 |
+
# IMPLEMENTATION DETAILS
|
| 235 |
+
|
| 236 |
+
Hyperparameter For all tasks, we simply use the same hyperparameters that are chosen from the sensitivity analysis. We use $\alpha = 0 . 0 2$ and $m = 5 . 0$ , and we reckon that better results can be obtained by tuning the hyperparameters for specific tasks.
|
| 237 |
+
|
| 238 |
+
Network Architecture For a fair comparison, we follow the network in DANN (Ganin & Lempitsky, 2015) for digit adaptation and simply build the reconstruction network by the inverse network of the extractor. Here we draw the network architectures in Table 5. For WiFi gesture recognition, we adopt the same architecture as CADA (Zou et al., 2019) that is a modified version of LeNet-5.
|
| 239 |
+
|
| 240 |
+
Table 5: The network architecture used in the experiments.
|
| 241 |
+
|
| 242 |
+
<table><tr><td rowspan=1 colspan=1>Layer Index|</td><td rowspan=1 colspan=1>Feature Extractor</td><td rowspan=1 colspan=2>Decoder Network一Label Predictor</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=3>32 × 32 × 3 Image</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1> 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1>2048 dense, ReLU</td><td rowspan=1 colspan=1>10 dense, softmax</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3 × 3 max-pool, stride 2</td><td rowspan=1 colspan=1>3072 dense, ReLU</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=2> 5 × 5 conv. 128 ReLU</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1> 3 × 3 max-pool, stride 2</td><td rowspan=1 colspan=1>upsample 2</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>5 × 5 conv. 128 ReLU</td><td rowspan=1 colspan=1>5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1> 3072 dense,dropout, ReLU</td><td rowspan=1 colspan=1>upsample 2 一</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>2048 dense, dropout ReLU丨 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1>2048 dense, dropout ReLU丨 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1></td></tr></table>
|
| 243 |
+
|
| 244 |
+
# SENSITIVITY
|
| 245 |
+
|
| 246 |
+
We have presented all the results of the sensitivity study in Section 4.2, and now we show their detailed training procedures in Figure 4(a) and 4(b). It is observed that the accuracy increases when $\alpha$ drops or the margin $m$ increases. The reason is very simple: (1) when $\alpha$ is too large, it affects the effect of supervised training on source domain; (2) when the margin $m$ is small, the divergence between source and target domain (i.e. $\mathcal { H } \triangle \mathcal { H }$ -distance) cannot be measured well.
|
| 247 |
+
|
| 248 |
+

|
| 249 |
+
Figure 4: The training procedure of ARN with different hyper-parameters.
|
| 250 |
+
|
| 251 |
+
# VISUALIZATION
|
| 252 |
+
|
| 253 |
+
Here we provide more visualization of the reconstructed images of target samples. In Figure 5, the target samples are shown in the left column while their corresponding reconstructed samples are shown in the right. We can see that for low-level domain shift such as $\mathbf { M N I S T } { } \mathbf { U S P } \mathbf { \xi }$ S, the reconstructed target samples are very source-like while preserving their original shapes and skeletons. However, for larger domain shift in Figure 5(c) and 5(d), they are reconstructed to source-like same digits but simultaneously some noises are removed. Specifically, in Figure 5(d), we can see that one target sample (SVHN) may contain more than one digits that are noises for recognition. After reconstruction, only the right digits are reconstructed. Some target samples may suffer from terrible illumination conditions but their reconstructed digits are very clear, which is amazing.
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
Figure 5: Visualization of the target samples and their corresponding reconstructed target samples.
|
parse/train/BklEF3VFPB/BklEF3VFPB_content_list.json
ADDED
|
@@ -0,0 +1,1346 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
398,
|
| 21 |
+
223
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
261,
|
| 32 |
+
544,
|
| 33 |
+
275
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Domain adaptation tackles the problem of transferring knowledge from a labelrich source domain to an unlabeled or label-scarce target domain. Recently domain-adversarial training (DAT) has shown promising capacity to learn a domaininvariant feature space by reversing the gradient propagation of a domain classifier. However, DAT is still vulnerable in several aspects including (1) training instability due to the overwhelming discriminative ability of the domain classifier in adversarial training, (2) restrictive feature-level alignment, and (3) lack of interpretability or systematic explanation of the learned feature space. In this paper, we propose a novel Max-margin Domain-Adversarial Training (MDAT) by designing an Adversarial Reconstruction Network (ARN). The proposed MDAT stabilizes the gradient reversing in ARN by replacing the domain classifier with a reconstruction network, and in this manner ARN conducts both feature-level and pixel-level domain alignment without involving extra network structures. Furthermore, ARN demonstrates strong robustness to a wide range of hyper-parameters settings, greatly alleviating the task of model selection. Extensive empirical results validate that our approach outperforms other state-of-the-art domain alignment methods. Additionally, the reconstructed target samples are visualized to interpret the domain-invariant feature space which conforms with our intuition. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
290,
|
| 43 |
+
766,
|
| 44 |
+
540
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
565,
|
| 55 |
+
336,
|
| 56 |
+
582
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Deep neural networks have gained great success on a wide range of tasks such as visual recognition and machine translation (LeCun et al., 2015). They usually require a large number of labeled data that can be prohibitively expensive to collect, and even with sufficient supervision their performance can still be poor when being generalized to a new environment. The problem of discrepancy between the training and testing data distribution is commonly referred to as domain shift (Shimodaira, 2000). To alleviate the effect of such shift, domain adaptation sets out to obtain a model trained in a label-rich source domain to generalize well in an unlabeled target domain. Domain adaptation has benefited various applications in many practical scenarios, including but not limited to object detection under challenging conditions (Chen et al., 2018), cost-effective learning using only synthetic data to generalize to real-world imagery (Vazquez et al., 2013), etc. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
597,
|
| 66 |
+
825,
|
| 67 |
+
736
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Prevailing methods for unsupervised domain adaptation (UDA) are mostly based on domain alignment which aims to learn domain-invariant features by reducing the distribution discrepancy between the source and target domain using some pre-defined metrics such as maximum mean discrepancy (Tzeng et al., 2014). Recently, Ganin & Lempitsky (2015) proposed to achieve domain alignment by domainadversarial training (DAT) that reverses the gradients of a domain classifier to maximize domain confusion. Having yielded remarkable performance gain, DAT was employed in many subsequent UDA methods (Long et al., 2018; Shu et al., 2018). Even so, there still exist three critical issues of DAT that hinder its performance: (1) as the domain classifier has high-capacity to discriminate two domains, the unbalanced adversarial training cannot continuously provide effective gradients, which is usually overcome by manually adjusting the weights of adversarial training according to specific tasks; (2) DAT-based methods cannot deal with pixel-level domain shift (Hoffman et al., 2018); (3) the domain-invariant features learned by DAT are only based on intuition but difficult to interpret, which impedes the investigation of the underlying mechanism of adversarial domain adaptation. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
743,
|
| 77 |
+
825,
|
| 78 |
+
922
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To overcome the aforementioned difficulties, we propose an innovative DAT approach, namely Max-margin Domain-Adversarial Training (MDAT), to realize stable and comprehensive domain alignment. To demonstrate its effectiveness, we develop an Adversarial Reconstruction Network (ARN) that only utilizes MDAT for UDA. Specifically, ARN consists of a shared feature extractor, a label predictor, and a reconstruction network (i.e. decoder) that serves as a domain classifier. Supervised learning is conducted on source domain, and MDAT helps learn domain-invariant features. In MDAT, the decoder only focuses on reconstructing samples on source domain and pushing the target domain away from a margin, while the feature extractor aims to fool the decoder by learning to reconstruct samples on target domain. In this way, three critical issues can be solved by MDAT: (1) the max-margin loss reduces the discriminative capacity of domain classifier, leading to balanced and thus stable adversarial training; (2) without involving new network structures, MDAT achieves both pixel-level and feature-level domain alignment; (3) visualizing the reconstructed samples reveals how the source and target domains are aligned. We evaluate ARN with MDAT on five visual and non-visual UDA benchmarks. It achieves significant improvement to DAT on all tasks with pixel-level or higher-level domain shift. We also observe that it is insensitive to the choices of hyperparameters and as such is favorable for replication in practice. In principle, our approach is generic and can be used to enhance any UDA methods that leverage domain alignment as an ingredient. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
104,
|
| 88 |
+
825,
|
| 89 |
+
339
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "2 RELATED WORK ",
|
| 96 |
+
"text_level": 1,
|
| 97 |
+
"bbox": [
|
| 98 |
+
176,
|
| 99 |
+
359,
|
| 100 |
+
344,
|
| 101 |
+
376
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 1
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Domain adaptation aims to transfer knowledge from one domain to another. Ben-David et al. (2010) provide an upper bound of the test error on the target domain in terms of the source error and the $\\mathcal { H } \\triangle \\mathcal { H }$ -distance. As the source error is stationary for a fixed model, the goal of most UDA methods is to minimize the $\\mathcal { H } \\triangle \\mathcal { H }$ -distance by reducing some metrics such as Maximum Mean Discrepancy (MMD) (Tzeng et al., 2014; Long et al., 2015) and CORAL (Sun & Saenko, 2016). Inspired by Generative Adversarial Networks (GAN) (Goodfellow et al., 2014), Ganin & Lempitsky (2015) proposed to learn domain-invariant features by adversarial training, which has inspired many UDA methods thereafter. Adversarial Discriminative Domain Adaptation (ADDA) tried to fool the label classifier by adversarial training but not in an end-to-end manner. CyCADA (Hoffman et al., 2018) and PixelDA (Bousmalis et al., 2017) leveraged GAN to conduct both feature-level and pixel-level domain adaptation, which yields significant improvement yet the network complexity is high. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
174,
|
| 110 |
+
391,
|
| 111 |
+
825,
|
| 112 |
+
545
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 1
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "Another line of approaches that are relevant to our method is the reconstruction network (i.e. the decoder network). The success of image-to-image translation corroborates that it helps learn pixellevel features in an unsupervised manner. In UDA, Ghifary et al. (2016) employed a decoder network for pixel-level adaptation, and Domain Separate Network (DSN) (Bousmalis et al., 2016) further leveraged multiple reconstruction networks to learn domain-specific features. These approaches treat the decoder network as an independent component that is irrelevant to domain alignment (Glorot et al., 2011). In this paper, our approach proposes to utilize the decoder network as domain classifier in MDAT which enables both feature-level and pixel-level domain alignment in a stable and straightforward fashion. ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
551,
|
| 122 |
+
825,
|
| 123 |
+
676
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "3 PROBLEM FORMULATION ",
|
| 130 |
+
"text_level": 1,
|
| 131 |
+
"bbox": [
|
| 132 |
+
178,
|
| 133 |
+
696,
|
| 134 |
+
416,
|
| 135 |
+
713
|
| 136 |
+
],
|
| 137 |
+
"page_idx": 1
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"type": "text",
|
| 141 |
+
"text": "3.1 PROBLEM DEFINITION AND NOTATIONS ",
|
| 142 |
+
"text_level": 1,
|
| 143 |
+
"bbox": [
|
| 144 |
+
176,
|
| 145 |
+
728,
|
| 146 |
+
490,
|
| 147 |
+
742
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "In unsupervised domain adaptation, we assume that the model works with a labeled dataset $\\mathbf { X } _ { S }$ and an unlabeled dataset $\\mathbf { X } _ { T }$ . Let $\\mathbf { X } _ { S } = \\{ ( \\mathbf { x } _ { i } ^ { s } , y _ { i } ^ { s } ) \\} _ { i \\in [ N _ { s } ] }$ denote the labeled dataset of $N _ { s }$ samples from the source domain, and the certain label $y _ { i } ^ { s }$ belongs to the label space $Y$ that is a finite set $( Y = 1 , 2 , . . . , K )$ . The other dataset $\\mathbf { X } _ { T } = \\{ \\mathbf { x } _ { i } ^ { t } \\} _ { i \\in [ N _ { t } ] }$ has $N _ { t }$ samples from the target domain but has no labels. We further assume that two domains have different distributions, i.e. $\\mathbf { x } _ { i } ^ { s } \\sim \\mathcal { D } _ { S }$ and $\\mathbf { x } _ { i } ^ { t } \\sim \\mathcal { D } _ { T }$ . In other words, there exist some domain shift (Ben-David et al., 2010) between $\\mathcal { D } _ { S }$ and $\\mathcal { D } _ { T }$ . The ultimate goal is to learn a model that can predict the label $y _ { i } ^ { t }$ given the target input $\\mathbf { x } _ { i } ^ { t }$ . ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
173,
|
| 156 |
+
753,
|
| 157 |
+
825,
|
| 158 |
+
852
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "3.2 IMBALANCED MINIMAX GAME IN DOMAIN-ADVERSARIAL TRAINING ",
|
| 165 |
+
"text_level": 1,
|
| 166 |
+
"bbox": [
|
| 167 |
+
176,
|
| 168 |
+
869,
|
| 169 |
+
699,
|
| 170 |
+
883
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "To achieve domain alignment, Domain-Adversarial Training (DAT) is a minimax game between a shared feature extractor $F$ for two domains and a domain classifier $D$ . The domain classifier is ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
173,
|
| 179 |
+
895,
|
| 180 |
+
820,
|
| 181 |
+
922
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "image",
|
| 187 |
+
"img_path": "images/001311f8f21980fa16dacf066d24b3fe311eef6861e67cfc41a97be754e1ac07.jpg",
|
| 188 |
+
"image_caption": [
|
| 189 |
+
"Figure 1: The proposed architecture is composed of a shared feature extractor $G _ { e }$ for two domains, a label predictor $G _ { y }$ and a reconstruction network $G _ { r }$ . In addition to the basic supervised learning in the source domain, our adversarial reconstruction training enables the extractor $G _ { e }$ to learn domain-invariant features. Specifically, the network $G _ { r }$ aims to reconstruct the source samples $x ^ { s }$ and to impede the reconstruction of the target samples $x ^ { t }$ , while the extractor $G _ { e }$ tries to fool the reconstruction network in order to reconstruct the target samples $x ^ { t }$ . "
|
| 190 |
+
],
|
| 191 |
+
"image_footnote": [],
|
| 192 |
+
"bbox": [
|
| 193 |
+
232,
|
| 194 |
+
102,
|
| 195 |
+
767,
|
| 196 |
+
265
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 2
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "trained to determine whether the input sample belongs to the source or the target domain while the feature extractor learns to deceive the domain classifier, which is formulated as: ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
171,
|
| 205 |
+
377,
|
| 206 |
+
821,
|
| 207 |
+
406
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "equation",
|
| 213 |
+
"img_path": "images/865e3b6309d544bd6144ba052d6cd449253b0081a993ec3e3dd34029222b5e43.jpg",
|
| 214 |
+
"text": "$$\n\\operatorname* { m i n } _ { F } \\operatorname* { m a x } _ { D } \\mathcal { L } _ { D A T } ( D _ { s } , D _ { t } ) = \\mathbb { E } _ { x \\sim D _ { s } } [ \\ln F ( x ) ] + \\mathbb { E } _ { x \\sim D _ { t } } [ \\ln \\left( 1 - D ( F ( x ) ) \\right) ] .\n$$",
|
| 215 |
+
"text_format": "latex",
|
| 216 |
+
"bbox": [
|
| 217 |
+
251,
|
| 218 |
+
415,
|
| 219 |
+
746,
|
| 220 |
+
439
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 2
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "text",
|
| 226 |
+
"text": "In DAT, we usually utilize CNN as the feature extractor and fully connected layers (FC) as the domain classifier. DAT reduces the cross-domain discrepancy, achieving significant performance improvement for UDA. Nevertheless, the training of DAT is rather unstable. Without sophisticated tuning of the hyper-parameters, DAT cannot reach the convergence. Through empirical experiments, we observe that such instability is due to the imbalanced minimax game. The binary domain classifier $D$ can easily achieve convergence with very high accuracy at an early training epoch, while it is much harder for the feature extractor $F$ to fool the domain classifier and to simultaneously perform well on the source domain. In this sense, the domain classifier dominates DAT, and the only solution is to palliate the training of $D$ by tuning the hyper-parameters according to different tasks. In our method, we restrict the capacity of the domain classifier so as to form a minimax game in a harmonious manner. Inspired by the max-margin loss in Support Vector Machine (SVM) (Cristianini et al., 2000) (i.e. hinge loss), if we push the source domain and the target domain away from a margin rather than as far as possible, then the training task of $F$ to fool $D$ becomes easier. For a binary domain classifier, we define the margin loss as ",
|
| 227 |
+
"bbox": [
|
| 228 |
+
173,
|
| 229 |
+
446,
|
| 230 |
+
826,
|
| 231 |
+
641
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 2
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "equation",
|
| 237 |
+
"img_path": "images/b85a5605f31b0e1bc43921a7dcf0432c1ace247307f20881c6c5320962af2b18.jpg",
|
| 238 |
+
"text": "$$\n\\mathcal { L } _ { m a r g i n } ( y ) = [ 0 , m - t \\cdot y ] ^ { + } ,\n$$",
|
| 239 |
+
"text_format": "latex",
|
| 240 |
+
"bbox": [
|
| 241 |
+
397,
|
| 242 |
+
642,
|
| 243 |
+
599,
|
| 244 |
+
660
|
| 245 |
+
],
|
| 246 |
+
"page_idx": 2
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"type": "text",
|
| 250 |
+
"text": "where $y$ is the predicted domain label, $[ \\cdot ] ^ { + } : = m a x ( 0 , \\cdot )$ , $m$ is a positive margin and $t$ is the ground truth label for two domains $t = - 1$ for the source domain and $t = 1$ for the target domain). Then we introduce our MDAT scheme based on an innovative network architecture. ",
|
| 251 |
+
"bbox": [
|
| 252 |
+
174,
|
| 253 |
+
666,
|
| 254 |
+
826,
|
| 255 |
+
709
|
| 256 |
+
],
|
| 257 |
+
"page_idx": 2
|
| 258 |
+
},
|
| 259 |
+
{
|
| 260 |
+
"type": "text",
|
| 261 |
+
"text": "3.3 MAX-MARGIN DOMAIN-ADVERSARIAL TRAINING ",
|
| 262 |
+
"text_level": 1,
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
728,
|
| 266 |
+
565,
|
| 267 |
+
742
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "Besides the training instability issue, DAT also suffers from restrictive feature-level alignment – lack of pixel-level alignment. To realize stable and comprehensive domain alignment together, we first propose an Adversarial Reconstruction Network (ARN) and then elaborate MDAT. ",
|
| 274 |
+
"bbox": [
|
| 275 |
+
174,
|
| 276 |
+
756,
|
| 277 |
+
825,
|
| 278 |
+
797
|
| 279 |
+
],
|
| 280 |
+
"page_idx": 2
|
| 281 |
+
},
|
| 282 |
+
{
|
| 283 |
+
"type": "text",
|
| 284 |
+
"text": "As depicted in Figure 1, our model consists of three parts including a shared feature extractor $G _ { e }$ for both domains, a label predictor $G _ { y }$ and a reconstruction network $G _ { r }$ . Let the feature extractor $G _ { e } ( \\mathbf { x } ; \\theta _ { e } )$ be a function parameterized by $\\theta _ { e }$ which maps an input sample $\\mathbf { X }$ to a deep embedding z. Let the label predictor $G _ { y } ( \\pmb { z } ; \\theta _ { y } )$ be a task-specific function parameterized by $\\theta _ { y }$ which maps an embedding $\\mathbf { z }$ to a task-specific prediction $\\hat { y }$ . The reconstruction network $G _ { r } ( \\pmb { z } ; \\bar { \\theta } _ { r } )$ is a decoding function parameterized by $\\theta _ { r }$ that maps an embedding $\\mathbf { z }$ to its corresponding reconstruction $\\hat { \\bf x }$ . ",
|
| 285 |
+
"bbox": [
|
| 286 |
+
174,
|
| 287 |
+
804,
|
| 288 |
+
825,
|
| 289 |
+
888
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 2
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "The first learning objective for the feature extractor $G _ { e }$ and label predictor $G _ { y }$ is to perform well in the source domain. For a supervised $\\mathrm { K }$ -way classification problem, it is simply achieved by minimizing the negative log-likelihood of the ground truth class for each sample: ",
|
| 296 |
+
"bbox": [
|
| 297 |
+
174,
|
| 298 |
+
895,
|
| 299 |
+
823,
|
| 300 |
+
924
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "",
|
| 307 |
+
"bbox": [
|
| 308 |
+
171,
|
| 309 |
+
103,
|
| 310 |
+
625,
|
| 311 |
+
118
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 3
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "equation",
|
| 317 |
+
"img_path": "images/783ff0d0837912ac8e3754526b684318e5c7a062bca0c4fd9dc8ba02f3c37501.jpg",
|
| 318 |
+
"text": "$$\n\\mathcal { L } _ { t a s k } = \\sum _ { i = 1 } ^ { N _ { s } } \\mathcal { L } _ { y } ( \\mathbf { x } _ { i } ^ { s } , \\mathbf { y } _ { i } ^ { s } ) = - \\sum _ { i = 1 } ^ { N _ { s } } \\mathbf { y } _ { i } ^ { s } \\cdot \\log G _ { y } ( G _ { e } ( \\mathbf { x } _ { i } ^ { s } ; \\boldsymbol { \\theta } _ { e } ) ; \\boldsymbol { \\theta } _ { y } ) ,\n$$",
|
| 319 |
+
"text_format": "latex",
|
| 320 |
+
"bbox": [
|
| 321 |
+
297,
|
| 322 |
+
122,
|
| 323 |
+
699,
|
| 324 |
+
166
|
| 325 |
+
],
|
| 326 |
+
"page_idx": 3
|
| 327 |
+
},
|
| 328 |
+
{
|
| 329 |
+
"type": "text",
|
| 330 |
+
"text": "where $\\mathbf { y } _ { i } ^ { s }$ is the one-hot encoding of the class label $y _ { i } ^ { s }$ and the logarithm operation is conducted on the softmax predictions of the model. ",
|
| 331 |
+
"bbox": [
|
| 332 |
+
173,
|
| 333 |
+
170,
|
| 334 |
+
821,
|
| 335 |
+
198
|
| 336 |
+
],
|
| 337 |
+
"page_idx": 3
|
| 338 |
+
},
|
| 339 |
+
{
|
| 340 |
+
"type": "text",
|
| 341 |
+
"text": "The second objective is to render the feature learning to be domain-invariant. This is motivated by the covariate shift assumption (Shimodaira, 2000) that indicates if the feature distributions $\\dot { S } ( \\mathbf { z } ) = \\{ G _ { e } ( \\mathbf { x } ; \\theta _ { e } ) | \\mathbf { \\bar { x } } \\sim \\mathcal { D } _ { S } \\}$ and $T ( \\mathbf { z } ) = \\{ G _ { e } ( \\mathbf { x } ; \\boldsymbol { \\theta } _ { e } ) | \\mathbf { x } \\sim \\mathcal { D } _ { T } \\}$ are similar, the source label predictor $G _ { y }$ can achieve a similar high accuracy in the target domain. To this end, we design a decoder network $G _ { r }$ that serves as a domain classifier, and then MDAT could be applied for stable training. Different from the normal binary domain classifier, MDAT lets the decoder network $G _ { r }$ only reconstruct the features in the source domain and push the features in the target domain away from a margin $m$ . In this way, the decoder has the functionality of distinguishing the source domain from the target domain. The objective of training $G _ { r }$ is formulated as ",
|
| 342 |
+
"bbox": [
|
| 343 |
+
173,
|
| 344 |
+
204,
|
| 345 |
+
826,
|
| 346 |
+
330
|
| 347 |
+
],
|
| 348 |
+
"page_idx": 3
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"type": "equation",
|
| 352 |
+
"img_path": "images/6761ad54604913ccc63b518aa86110fc3416fe5f55acc44defc7756ffdd7e9aa.jpg",
|
| 353 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta _ { r } } \\sum _ { i = 1 } ^ { N _ { s } + N _ { t } } \\mathcal { L } _ { m a r g i n } ( \\mathcal { L } _ { r } ( \\mathbf { x } _ { i } ) ) = \\operatorname* { m i n } _ { \\theta _ { r } } \\sum _ { i = 1 } ^ { N _ { s } } \\mathcal { L } _ { r } ( \\mathbf { x } _ { i } ^ { s } ) + \\sum _ { j = 1 } ^ { N _ { t } } [ m - \\mathcal { L } _ { r } ( \\mathbf { x } _ { j } ^ { t } ) ] ^ { + } ,\n$$",
|
| 354 |
+
"text_format": "latex",
|
| 355 |
+
"bbox": [
|
| 356 |
+
266,
|
| 357 |
+
334,
|
| 358 |
+
732,
|
| 359 |
+
380
|
| 360 |
+
],
|
| 361 |
+
"page_idx": 3
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"type": "text",
|
| 365 |
+
"text": "where $m$ is a positive margin and $\\textstyle { \\mathcal { L } } _ { r } ( \\cdot )$ is the mean squared error (MSE) term for the reconstruction loss that is defined as ",
|
| 366 |
+
"bbox": [
|
| 367 |
+
173,
|
| 368 |
+
383,
|
| 369 |
+
826,
|
| 370 |
+
411
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "equation",
|
| 376 |
+
"img_path": "images/e62e33fe92352f09cbfdc9aaad265a42c0f9c4a37d84829a196f1d0de21a66cb.jpg",
|
| 377 |
+
"text": "$$\n\\mathcal { L } _ { r } ( \\mathbf { x } ) = | | G _ { r } ( G _ { e } ( \\mathbf { x } ; \\boldsymbol { \\theta } _ { e } ) ; \\boldsymbol { \\theta } _ { r } ) - \\mathbf { x } | | _ { 2 } ^ { 2 } ,\n$$",
|
| 378 |
+
"text_format": "latex",
|
| 379 |
+
"bbox": [
|
| 380 |
+
377,
|
| 381 |
+
410,
|
| 382 |
+
619,
|
| 383 |
+
428
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 3
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "where $| | \\cdot | | _ { 2 } ^ { 2 }$ denotes the squared $L _ { 2 }$ -norm. ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
174,
|
| 392 |
+
429,
|
| 393 |
+
455,
|
| 394 |
+
444
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 3
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "text",
|
| 400 |
+
"text": "Oppositely, to form a minimax game, the feature extractor $G _ { e }$ learns to deceive $G _ { r }$ such that the learned target features are indistinguishable to the source ones, which is formulated by: ",
|
| 401 |
+
"bbox": [
|
| 402 |
+
173,
|
| 403 |
+
450,
|
| 404 |
+
825,
|
| 405 |
+
479
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 3
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "equation",
|
| 411 |
+
"img_path": "images/faf3d96881970cf85d3f4820a7c69fc76d5848e8dd69ad25ab2ca556bcf1576d.jpg",
|
| 412 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\theta _ { e } } \\sum _ { j = 1 } ^ { N _ { t } } \\mathcal { L } _ { r } ( \\mathbf { x } _ { j } ^ { t } ) .\n$$",
|
| 413 |
+
"text_format": "latex",
|
| 414 |
+
"bbox": [
|
| 415 |
+
442,
|
| 416 |
+
483,
|
| 417 |
+
555,
|
| 418 |
+
529
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "Then the whole learning procedure of ARN with MDAT can be formulated by: ",
|
| 425 |
+
"bbox": [
|
| 426 |
+
173,
|
| 427 |
+
531,
|
| 428 |
+
687,
|
| 429 |
+
547
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "equation",
|
| 435 |
+
"img_path": "images/9a2954c8e7247d1087080837914553aca8bdf464fc85612c44ee63322be83544.jpg",
|
| 436 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle \\operatorname* { m i n } _ { \\theta _ { e } , \\theta _ { c } } \\sum _ { i = 1 } ^ { N _ { s } } } \\mathcal { L } _ { y } ( \\mathbf { x } _ { i } ^ { s } , \\mathbf { y } _ { i } ^ { s } ) + \\alpha \\sum _ { j = 1 } ^ { N _ { t } } \\mathcal { L } _ { r } ( \\mathbf { x } _ { j } ^ { t } ) , \\ ~ } \\\\ { { \\displaystyle \\operatorname* { m i n } _ { \\theta _ { r } } \\sum _ { i = 1 } ^ { N _ { s } } } \\mathcal { L } _ { r } ( \\mathbf { x } _ { i } ^ { s } ) + \\sum _ { j = 1 } ^ { N _ { t } } [ m - \\mathcal { L } _ { r } ( \\mathbf { x } _ { j } ^ { t } ) ] ^ { + } , \\ ~ } \\end{array}\n$$",
|
| 437 |
+
"text_format": "latex",
|
| 438 |
+
"bbox": [
|
| 439 |
+
370,
|
| 440 |
+
551,
|
| 441 |
+
625,
|
| 442 |
+
643
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "where $\\mathcal { L } _ { y }$ denotes the negative log-likelihood of the ground truth class for labeled sample $\\left( \\mathbf { x } _ { i } ^ { s } , \\mathbf { y } _ { i } ^ { s } \\right)$ and $\\alpha$ controls the interaction of the loss terms. In the following section, we provide theoretical justifications on how MDAT reduces the distribution discrepancy, and discuss why it is superior to the classic DAT. ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
173,
|
| 451 |
+
646,
|
| 452 |
+
825,
|
| 453 |
+
703
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "text",
|
| 459 |
+
"text": "3.4 THEORETICAL JUSTIFICATIONS ",
|
| 460 |
+
"text_level": 1,
|
| 461 |
+
"bbox": [
|
| 462 |
+
174,
|
| 463 |
+
719,
|
| 464 |
+
431,
|
| 465 |
+
734
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 3
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "In this section, we provide the theoretical justifications on how the proposed method reduces the distribution discrepancy for UDA. The rationale behind domain alignment is motivated from the learning theory of non-conservative domain adaptation problem by Ben-David et al. (Ben-David et al., 2010): ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
744,
|
| 475 |
+
825,
|
| 476 |
+
801
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 3
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "text",
|
| 482 |
+
"text": "Theorem 3.1 Let $\\mathcal { H }$ be the hypothesis space where $h \\in \\mathcal H$ . Let $( \\mathcal { D } _ { S } , \\epsilon _ { s } )$ and $( \\mathcal { D } _ { T } , \\epsilon _ { t } )$ be the two domains and their corresponding generalization error functions. The expected error for the target domain is upper bounded by ",
|
| 483 |
+
"bbox": [
|
| 484 |
+
173,
|
| 485 |
+
811,
|
| 486 |
+
825,
|
| 487 |
+
856
|
| 488 |
+
],
|
| 489 |
+
"page_idx": 3
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"type": "equation",
|
| 493 |
+
"img_path": "images/3d327b6c73e550412fff37ca23c24a1f2a053e951733b121eecf8517ad64695a.jpg",
|
| 494 |
+
"text": "$$\n\\epsilon _ { t } ( h ) \\leq \\epsilon _ { s } ( h ) + \\frac { 1 } { 2 } d _ { \\mathscr { H } \\triangle \\mathscr { H } } ( \\mathscr { D } _ { S } , \\mathscr { D } _ { T } ) + \\lambda , \\forall h \\in \\mathscr { H } ,\n$$",
|
| 495 |
+
"text_format": "latex",
|
| 496 |
+
"bbox": [
|
| 497 |
+
333,
|
| 498 |
+
859,
|
| 499 |
+
663,
|
| 500 |
+
890
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 3
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "where $\\begin{array} { r } { d _ { \\mathcal { H } \\triangle \\mathcal { H } } ( \\mathcal { D } _ { S } , \\mathcal { D } _ { T } ) = 2 \\operatorname* { s u p } _ { h _ { 1 } , h _ { 2 } \\in \\mathcal { H } } \\big | \\operatorname* { P r } _ { x \\sim \\mathcal { D } _ { S } } [ h _ { 1 } ( x ) \\neq h _ { 2 } ( x ) ] - \\operatorname* { P r } _ { x \\sim \\mathcal { D } _ { T } } [ h _ { 1 } ( x ) \\neq h _ { 2 } ( x ) ] \\big | } \\end{array}$ and $\\lambda = \\mathrm { m i n } _ { h } [ \\epsilon _ { s } ( h ) + \\epsilon _ { t } ( h ) ]$ . ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
174,
|
| 509 |
+
892,
|
| 510 |
+
825,
|
| 511 |
+
925
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 3
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Theoretically, when we minimize the $\\mathcal { H } \\triangle \\mathcal { H }$ -distance, the upper bound of the expected error for the target domain is reduced accordingly. As derived in DAT (Ganin $\\&$ Lempitsky, 2015), assuming a family of domain classifiers $\\mathcal { H } _ { d }$ to be rich enough to contain the symmetric difference hypothesis set of $\\mathcal { H } _ { p }$ , such that $\\mathcal { H } _ { p } \\triangle \\mathcal { H } _ { p } = \\{ h | h = h _ { 1 } \\oplus \\bar { h } _ { 2 } , h _ { 1 } , h _ { 2 } \\in \\mathcal { H } _ { p } \\}$ where $\\oplus$ is XOR-function, the empirical $\\mathcal { H } _ { p } \\triangle \\mathcal { H } _ { p }$ -distance has an upper bound with regard to the optimal domain classifier $h$ : ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
173,
|
| 520 |
+
103,
|
| 521 |
+
825,
|
| 522 |
+
174
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "equation",
|
| 528 |
+
"img_path": "images/b152177d9a633b49e19d8a82fb386a1a5476ff3b6f9249b901a01c8d209c7056.jpg",
|
| 529 |
+
"text": "$$\nd _ { \\mathcal H _ { p } \\triangle \\mathcal H _ { p } } ( \\hat { D } _ { S } , \\hat { D } _ { T } ) \\le 2 \\operatorname* { s u p } _ { h \\in \\mathcal H _ { d } } \\vert \\operatorname* { P r } _ { \\mathbf z \\sim \\hat { D } _ { S } } [ h ( \\mathbf z ) = 0 ] + \\operatorname* { P r } _ { \\mathbf z \\sim \\hat { D } _ { T } } [ h ( \\mathbf z ) = 1 ] - 1 \\vert ,\n$$",
|
| 530 |
+
"text_format": "latex",
|
| 531 |
+
"bbox": [
|
| 532 |
+
266,
|
| 533 |
+
181,
|
| 534 |
+
730,
|
| 535 |
+
210
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "where $\\hat { \\mathcal { D } } _ { S }$ and $\\hat { \\mathcal { D } } _ { T }$ denote the distributions of the source and target feature space ${ \\mathcal { Z } } _ { S }$ and ${ \\mathcal { Z } } _ { T }$ , respectively. Note that the MSE of $G _ { r }$ plus a ceiling function is a form of domain classifier $h ( \\mathbf { z } )$ , i.e. $\\lceil [ m - \\bar { \\mathcal { L } } _ { r } ( \\cdot ) ] ^ { + } - 0 . 5 \\rceil$ for $m = 1$ . It maps source samples to 0 and target samples to 1 which is exactly the upper bound in Eq.10. Therefore, our reconstruction network $G _ { r }$ maximizes the domain discrepancy with a margin and the feature extractor learns to minimize it oppositely. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
174,
|
| 544 |
+
219,
|
| 545 |
+
825,
|
| 546 |
+
290
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "text",
|
| 552 |
+
"text": "3.5 DISCUSSIONS ",
|
| 553 |
+
"text_level": 1,
|
| 554 |
+
"bbox": [
|
| 555 |
+
176,
|
| 556 |
+
308,
|
| 557 |
+
310,
|
| 558 |
+
321
|
| 559 |
+
],
|
| 560 |
+
"page_idx": 4
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"type": "text",
|
| 564 |
+
"text": "Compared with the conventional DAT-based methods that are usually based on a binary logistic network (Ganin & Lempitsky, 2015), the proposed ARN with MDAT is more attractive and incorporates new merits conceptually and theoretically: ",
|
| 565 |
+
"bbox": [
|
| 566 |
+
174,
|
| 567 |
+
333,
|
| 568 |
+
825,
|
| 569 |
+
376
|
| 570 |
+
],
|
| 571 |
+
"page_idx": 4
|
| 572 |
+
},
|
| 573 |
+
{
|
| 574 |
+
"type": "text",
|
| 575 |
+
"text": "(1) Stable training and insensitivity to hyper-parameters. Using the decoder as domain classifier with a margin loss to restrain its overwhelming capacity in adversarial training, the minimax game can continuously provide effective gradients for training the feature extractor. Moreover, through the experiments in Section 4, we discover that our method shows strong robustness to the hyperparameters, i.e. $\\alpha$ and $m$ , greatly alleviating the parameters tuning for model selection. ",
|
| 576 |
+
"bbox": [
|
| 577 |
+
174,
|
| 578 |
+
383,
|
| 579 |
+
825,
|
| 580 |
+
453
|
| 581 |
+
],
|
| 582 |
+
"page_idx": 4
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"type": "text",
|
| 586 |
+
"text": "(2) Richer information for comprehensive domain alignment. Rather than DAT that uses a bit of domain information, MDAT utilizes the reconstruction network as the domain classifier that could capture more domain-specific and pixel-level features during the unsupervised reconstruction (Bousmalis et al., 2016). Therefore, MDAT further helps address pixel-level domain shift apart from the feature-level shift, leading to comprehensive domain alignment in a straightforward manner. ",
|
| 587 |
+
"bbox": [
|
| 588 |
+
174,
|
| 589 |
+
460,
|
| 590 |
+
825,
|
| 591 |
+
530
|
| 592 |
+
],
|
| 593 |
+
"page_idx": 4
|
| 594 |
+
},
|
| 595 |
+
{
|
| 596 |
+
"type": "text",
|
| 597 |
+
"text": "(3) Feature visualization for method validation. Another key merit of MDAT is that MDAT allows us to visualize the features directly by the reconstruction network. It is crucial to understand to what extent the features are aligned since this helps to reveal the underlying mechanism of adversarial domain adaptation. We will detail the interpretability of these adapted features in Section 4.3. ",
|
| 598 |
+
"bbox": [
|
| 599 |
+
174,
|
| 600 |
+
536,
|
| 601 |
+
825,
|
| 602 |
+
593
|
| 603 |
+
],
|
| 604 |
+
"page_idx": 4
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"type": "text",
|
| 608 |
+
"text": "4 EXPERIMENT ",
|
| 609 |
+
"text_level": 1,
|
| 610 |
+
"bbox": [
|
| 611 |
+
176,
|
| 612 |
+
613,
|
| 613 |
+
316,
|
| 614 |
+
628
|
| 615 |
+
],
|
| 616 |
+
"page_idx": 4
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"type": "text",
|
| 620 |
+
"text": "In this section, we evaluate the proposed ARN with MDAT on a number of visual and non-visual UDA tasks with varying degrees of domain shift. We conduct ablation study to corroborate the effectiveness of MDAT and unsupervised reconstruction for UDA. Then the sensitivity of the hyperparameters is investigated, and the adapted features are interpreted via the reconstruction network in ARN. ",
|
| 621 |
+
"bbox": [
|
| 622 |
+
174,
|
| 623 |
+
645,
|
| 624 |
+
825,
|
| 625 |
+
700
|
| 626 |
+
],
|
| 627 |
+
"page_idx": 4
|
| 628 |
+
},
|
| 629 |
+
{
|
| 630 |
+
"type": "text",
|
| 631 |
+
"text": "Setup. We evaluate our method on four classic visual UDA datasets and a WiFi-based Gesture Recognition (WGR) dataset (Zou et al., 2019). The classic datasets have middle level of domain shift including MNIST (LeCun et al., 1998), USPS (Hull, 1994), Street View House Numbers (SVHN) (Netzer et al., 2011) and Synthetic Digits (SYN). For a fair comparison, we follow the same CNN architecture as DANN (Ganin & Lempitsky, 2015) while using the inverse of $G _ { e }$ as $G _ { r }$ with pooling operation replaced by upsampling. For the penalty term $\\alpha$ , we choose 0.02 by searching over the grid $\\lbrace 1 0 ^ { - 2 } , \\dot { 1 } \\rbrace$ . We also obtain the optimal margin $m = 5$ by a search over $\\{ 1 0 ^ { \\dot { - } 1 } , 1 0 \\}$ . Then we use the same hyperparameter settings for all tasks to show the robustness. For the optimization, we simply use Adam Optimizer $( l r = 2 \\times 1 0 ^ { - 4 } , \\beta _ { 1 } = 0 . 5 , \\beta _ { 2 } = 0 . 9 9 9 )$ and train all experiments for 50 epochs with batch size 128. We implemented our model and conducted all the experiments using the PyTorch framework. More implementation details are illustrated in the appendix. ",
|
| 632 |
+
"bbox": [
|
| 633 |
+
174,
|
| 634 |
+
708,
|
| 635 |
+
825,
|
| 636 |
+
861
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 4
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Baselines. We evaluate the efficacy of our approach by comparing it with existing UDA methods that perform three ways of domain alignment. Specifically, MMD regularization (Long et al., 2015) and Correlation Alignment (Sun & Saenko, 2016) employ the statistical distribution matching. DRCN (Ghifary et al., 2016) and DSN (Bousmalis et al., 2016) use the reconstruction error for UDA, ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
867,
|
| 646 |
+
825,
|
| 647 |
+
924
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "table",
|
| 653 |
+
"img_path": "images/9af9048b7549ce86f7ba30b37c018586aff61659311ef402e9aaf8b857e365eb.jpg",
|
| 654 |
+
"table_caption": [],
|
| 655 |
+
"table_footnote": [],
|
| 656 |
+
"table_body": "<table><tr><td>Source Target</td><td>MNIST USPS</td><td>USPS MNIST</td><td>SVHN MNIST</td><td>SYN SVHN</td></tr><tr><td>Source-Only model</td><td>78.2</td><td>63.4</td><td>54.9</td><td>86.7</td></tr><tr><td>Train on target</td><td>96.5</td><td>99.4</td><td>99.4</td><td>91.3</td></tr><tr><td>[S] MMD (Long et al., 2015)</td><td>81.1</td><td>-</td><td>71.1</td><td>88.0</td></tr><tr><td>[S] CORAL (Sun & Saenko, 2016)</td><td>80.7</td><td>-</td><td>63.1</td><td>85.2</td></tr><tr><td>[R] DRCN* (Ghifary et al.,2016)</td><td>91.8</td><td>73.7</td><td>82.0</td><td>87.5</td></tr><tr><td>[R] DSN (Bousmalis et al., 2016)</td><td>91.3</td><td>-</td><td>82.7</td><td>91.2</td></tr><tr><td>[A] DANN (Ganin et al., 2016)</td><td>85.1</td><td>73.0</td><td>74.7</td><td>90.3</td></tr><tr><td>[A] ADDA (Tzeng et al., 2017)</td><td>89.4</td><td>90.1</td><td>76.0</td><td>-</td></tr><tr><td>[A] CyCADA (Hoffman et al., 2018)</td><td>95.6</td><td>96.5</td><td>90.4</td><td>-</td></tr><tr><td>[A] CADA (Zou et al., 2019)</td><td>96.4</td><td>97.0</td><td>90.9</td><td>1</td></tr><tr><td>[A] MECA (Morerio et al.,2018)</td><td>-</td><td>-</td><td>95.2</td><td>90.3</td></tr><tr><td>ARN w.0. MDAT</td><td>93.1±0.3</td><td>76.5±1.2</td><td>67.4±0.9</td><td>86.8±0.5</td></tr><tr><td>ARN with MDAT (proposed)</td><td>98.6±0.3</td><td>98.4±0.1</td><td>97.4±0.3</td><td>92.0±0.2</td></tr></table>",
|
| 657 |
+
"bbox": [
|
| 658 |
+
225,
|
| 659 |
+
102,
|
| 660 |
+
772,
|
| 661 |
+
337
|
| 662 |
+
],
|
| 663 |
+
"page_idx": 5
|
| 664 |
+
},
|
| 665 |
+
{
|
| 666 |
+
"type": "text",
|
| 667 |
+
"text": "Table 1: We compare with general, statistics-based (S), reconstruction-based $\\mathbf { ( R ) }$ and adversarialbased (A) state-of-the-art approaches. We repeated each experiment for 3 times and report the average and standard deviation (std) of the test accuracy in the target domain. ",
|
| 668 |
+
"bbox": [
|
| 669 |
+
174,
|
| 670 |
+
353,
|
| 671 |
+
823,
|
| 672 |
+
396
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 5
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "while many prevailing UDA methods adopt domain-adversarial training including DANN (Ganin & Lempitsky, 2015), ADDA (Tzeng et al., 2017), MECA (Morerio et al., 2018), CyCADA (Hoffman et al., 2018) and CADA (Zou et al., 2019). For all transfer tasks, we follow the same protocol as DANN (Ganin & Lempitsky, 2015) that uses official training data split in both domains for training and evaluates the testing data split in the target domain. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
173,
|
| 681 |
+
405,
|
| 682 |
+
825,
|
| 683 |
+
477
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 5
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "4.1 OVERALL RESULTS ",
|
| 690 |
+
"text_level": 1,
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
534,
|
| 694 |
+
349,
|
| 695 |
+
547
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "MNIST USPS. Both datasets are composed of grey-scale handwritten images with diverse stroke weights, leading to low-level domain shift. Since USPS has only 7291 training images, USPS ${ \\bf { \\Gamma } } \\to \\mathbf { M N I S T }$ is more difficult. As shown in Table 1, our method achieves state-of-the-art accuracy of $9 8 . 6 \\%$ on MNIST USPS and $9 8 . 4 \\%$ on USPS MNIST, which demonstrates that ARN can tackle low-level domain shift by only using ART (rather than many adversarial UDA methods that adopt other loss terms to adjust classifier boundaries or conduct style transfer). ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
173,
|
| 704 |
+
575,
|
| 705 |
+
826,
|
| 706 |
+
660
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "table",
|
| 712 |
+
"img_path": "images/bfbff349d542ae05b2faaed0607e66fe783b25520c9a3eeb039d2e5ec2258fe4.jpg",
|
| 713 |
+
"table_caption": [
|
| 714 |
+
"Table 2: Comparisons on WGR. "
|
| 715 |
+
],
|
| 716 |
+
"table_footnote": [],
|
| 717 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>SourceTarget</td><td rowspan=1 colspan=1>Room ARoom B</td></tr><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Accuracy (%)</td></tr><tr><td rowspan=1 colspan=1>Source-only[S] MMD</td><td rowspan=2 colspan=1>58.4±0.761.2±0.569.3±0.3</td></tr><tr><td rowspan=1 colspan=1>[R] DRCN</td></tr><tr><td rowspan=1 colspan=1>[A]DANN</td><td rowspan=1 colspan=1>68.2±0.2</td></tr><tr><td rowspan=1 colspan=1>[A] ADDA</td><td rowspan=1 colspan=1>71.5±0.3</td></tr><tr><td rowspan=1 colspan=1>[A] CADA</td><td rowspan=1 colspan=1>88.8±0.1</td></tr><tr><td rowspan=1 colspan=1>ARN+MDAT</td><td rowspan=1 colspan=1>91.3±0.2</td></tr></table>",
|
| 718 |
+
"bbox": [
|
| 719 |
+
588,
|
| 720 |
+
695,
|
| 721 |
+
795,
|
| 722 |
+
842
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 5
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "SVHN MNIST and $\\mathbf { S Y N } { } \\mathbf { S V H N }$ . The SVHN dataset contains RGB digit images that introduce significant variations such as scale, background, embossing, rotation, slanting and even multiple digits. The SYN data consists of $5 0 k$ RGB images of varying color, background, blur and orientation. These two tasks have tremendous pixel-level domain shfit. The proposed method achieves a state-ofthe-art performance of $9 7 . 4 \\%$ for $\\mathbf { S V H N { \\to } M N I S T }$ , far ahead of other DAT-based methods, significantly improving the classic DANN by $2 2 . 7 \\%$ . Similarly, ARN with MDAT also achieves a noticeable improvement of $5 . 3 \\%$ compared with the source-only model, even outperforming the supervised SVHN accuracy $9 1 . 3 \\%$ . ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
666,
|
| 732 |
+
550,
|
| 733 |
+
847
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 5
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "WiFi Gesture Recognition with Distant Domains. To evaluate the proposed method on a non-visual UDA task, we applied our method to the WiFi gesture recognition dataset (Zou et al., 2019). The WiFi data of six gestures was collected in two rooms regarded as two domains. The results in Table 2 demonstrate that our approach significantly improves classification accuracy against Source-Only and DANN by $3 2 . 9 \\%$ and $2 3 . 1 \\%$ , respectively. ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
174,
|
| 742 |
+
854,
|
| 743 |
+
825,
|
| 744 |
+
924
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 5
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "table",
|
| 750 |
+
"img_path": "images/d2ea4a21c9f6e39ad013915716916441f9c11113bbcc38f94344d04946b1e7e3.jpg",
|
| 751 |
+
"table_caption": [
|
| 752 |
+
"Table 3: The accuracy $( \\% )$ with different hyperparameters on SVHN MNIST. "
|
| 753 |
+
],
|
| 754 |
+
"table_footnote": [],
|
| 755 |
+
"table_body": "<table><tr><td>a</td><td>0.01</td><td>0.03</td><td>0.07</td><td>0.1</td><td>0.2</td><td>0.3</td><td>0.5</td><td>1.0</td></tr><tr><td>DANN</td><td>71.1</td><td>74.1</td><td>72.7</td><td>74.1</td><td>74.7</td><td>9.6</td><td>9.7</td><td>10.3</td></tr><tr><td>ARN (m = 1)</td><td>95.7</td><td>95.9</td><td>93.3</td><td>93.2</td><td>80.1</td><td>75.3</td><td>73.1</td><td>67.5</td></tr><tr><td>m</td><td>0.1</td><td>0.3</td><td>0.5</td><td>0.7</td><td>1.0</td><td>2.0</td><td>5.0</td><td>10.0</td></tr><tr><td>ARN(α = 2e-2)</td><td>64.5</td><td>75.2</td><td>90.0</td><td>92.6</td><td>96.0</td><td>97.4</td><td>97.7</td><td>96.7</td></tr></table>",
|
| 756 |
+
"bbox": [
|
| 757 |
+
253,
|
| 758 |
+
102,
|
| 759 |
+
745,
|
| 760 |
+
185
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 6
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "4.2 ABLATION STUDY AND SENSITIVITY ANALYSIS ",
|
| 767 |
+
"text_level": 1,
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
226,
|
| 771 |
+
547,
|
| 772 |
+
241
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 6
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "The contribution of MDAT and image reconstruction in ARN. We design an ablation study to verify the contribution of MDAT and unsupervised reconstruction in ARN. To this end, we discard the term $\\dot { \\mathcal { L } } _ { r } ( \\mathbf { x } ^ { t } )$ in Eq.4, and evaluate the method, denoted as ARN w.o. MDAT in Table 1. (1) Comparing ARN w.o. MDAT with source-only model, we can infer the effect of unsupervised reconstruction for UDA. It is observed that ARN w.o. MDAT improves tasks with low-level domain shift such as MNIST USPS, which conforms with our discussion that the unsupervised reconstruction is instrumental in learning low-level features. (2) Comparing ARN w.o. MDAT with the original ARN, we can infer the contribution of MDAT. Table 1 shows that the MDAT achieves an impressive marginof-improvement. For USPS MNIST and SV $\\mathbf { H N } { } \\mathbf { M N }$ IST, the MDAT improves ARN w.o. MDAT by around $30 \\%$ . It demonstrates that MDAT which helps learn domain-invariant representations is the main reason for the tremendous improvement. ",
|
| 779 |
+
"bbox": [
|
| 780 |
+
173,
|
| 781 |
+
261,
|
| 782 |
+
825,
|
| 783 |
+
414
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 6
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "Parameter sensitivity. We investigate the effect of $\\alpha$ and $m$ on S $\\mathbf { \\nabla } \\sqrt { \\mathbf { H N } } \\to \\mathbf { M }$ NIST. The results in Table 3 show that ARN achieves good performance as $\\alpha \\in [ 0 . 0 1 , 0 . 1 ]$ and even with larger $\\alpha$ ARN is able to achieve convergence. In comparison, denoting $\\alpha$ as the weight of adversarial loss, the DANN cannot converge when $\\alpha > 0 . 2$ . For the sensitivity of $m$ , the accuracy of ARN exceeds $9 6 . 0 \\%$ as $m \\geq 1$ . These analyses validate that the training of ARN is not sensitive to the parameters and even in the worst cases ARN can achieve convergence. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
173,
|
| 792 |
+
420,
|
| 793 |
+
825,
|
| 794 |
+
505
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 6
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "Gradients and training procedure. We draw the training procedure with regard to loss and target accuracy in Figure 2(b) and Figure 2(a), respectively. In Figure 2(b), ARN has smoother and more effective gradients $( \\mathcal { L } _ { r } )$ for all $\\alpha$ , while the loss of DAT domain classifier $( \\mathcal { L } _ { d } )$ gets extremely small at the beginning. This observation conforms with our intuition, which demonstrates that by restricting the capacity of domain classifier MDAT provides more effective gradients for training feature extractor, leading to a more stable training procedure. This could be further validated in Figure 2(b) where the ARN accuracy is more stable than that of DAT across training epochs. ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
173,
|
| 803 |
+
511,
|
| 804 |
+
825,
|
| 805 |
+
609
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 6
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "image",
|
| 811 |
+
"img_path": "images/52dba511d647d639645ebf2e30bb3449cb0c5632abfcd2262b3a859d0381b616.jpg",
|
| 812 |
+
"image_caption": [
|
| 813 |
+
"Figure 2: The training procedure with regard to loss and test accuracy. ( $\\mathcal { L } _ { e } : = \\mathrm { E q }$ . 6; $\\mathcal { L } _ { r }$ := Eq. 4; $\\mathcal { L } _ { d }$ is the domain loss of DAT (Ganin & Lempitsky, 2015); $\\alpha$ is the penalty term of $\\mathcal { L } _ { e }$ and $\\mathcal { L } _ { d }$ .) "
|
| 814 |
+
],
|
| 815 |
+
"image_footnote": [],
|
| 816 |
+
"bbox": [
|
| 817 |
+
186,
|
| 818 |
+
647,
|
| 819 |
+
810,
|
| 820 |
+
849
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 6
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "table",
|
| 826 |
+
"img_path": "images/5acb62d70fb07c773536883b202f55b93481d60b958df9f7e0e81fadef8c9626.jpg",
|
| 827 |
+
"table_caption": [],
|
| 828 |
+
"table_footnote": [],
|
| 829 |
+
"table_body": "<table><tr><td></td><td>Source Images</td><td>Target Images</td><td>R-Target Images</td></tr><tr><td>MNIST→USPS</td><td>72/04149 97349665 34727121</td><td>06181328 Li;97210 10140198</td><td>618132 108:019 3</td></tr><tr><td>USPS→MNIST</td><td>01870009 z568928i 35418305</td><td>7210414a 97349665 341727121</td><td>72104197 97s41665 34727121</td></tr><tr><td>SVHN→MNIST</td><td>0103457N0 2 19 5 5259.012 1310</td><td>59069015 0740131 2413512</td><td>9101e19101115 :1061:01511 gCk ES52</td></tr><tr><td>SYN-→SVHN</td><td>14366 40570 6.75/ 65 3607 37 1236:83811 094</td><td>6s 31 140885 3 96 品 3913b8m</td><td>64040003 30296651 39)-0s81</td></tr></table>",
|
| 830 |
+
"bbox": [
|
| 831 |
+
183,
|
| 832 |
+
102,
|
| 833 |
+
810,
|
| 834 |
+
332
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Table 4: Visualizing the source image, target images and reconstructed target images (R-Target Images) for four digit adaptation tasks. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
176,
|
| 843 |
+
342,
|
| 844 |
+
823,
|
| 845 |
+
371
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "4.3 VISUALIZATION AND ANALYSIS ",
|
| 852 |
+
"text_level": 1,
|
| 853 |
+
"bbox": [
|
| 854 |
+
176,
|
| 855 |
+
381,
|
| 856 |
+
436,
|
| 857 |
+
395
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Interpreting MDAT features via reconstructed images. One of the key advantages of ARN is that by visualizing the reconstructed target images we can infer how the features are domain-invariant. We reconstruct the MDAT features of the test data and visualize them in Table 4. It is observed that the target features are reconstructed to source-like images by the decoder $G _ { r }$ . As discussed before, intuitively, MDAT forces the target features to mimic the source features, which conforms with our visualization. Similar to image-to-image translation, this indicates that our method conducts implicit feature-to-feature translation that transfers the target features to source-like features, and hence the features become domain-invariant. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
173,
|
| 866 |
+
406,
|
| 867 |
+
825,
|
| 868 |
+
518
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "T-SNE embeddings. We analyze the performance of domain alignment for DANN (DAT) (Ganin & Lempitsky, 2015) and ARN (MDAT) by plotting T-SNE embeddings of the features $\\mathbf { z }$ on the task SVHN MNIST. In Figure 3(a), the source-only model obtains diverse embeddings for each category but the domains are not aligned. In Figure 3(b), the DANN aligns two domains but the decision boundaries of the classifier are vague. In Figure 3(c), the proposed ARN effectively aligns two domains for all categories and the classifier boundaries are much clearer. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
173,
|
| 877 |
+
525,
|
| 878 |
+
825,
|
| 879 |
+
609
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "image",
|
| 885 |
+
"img_path": "images/1bdd1728d9463ce082756cdc92cdc0b4e757f2ee7ad1eb5dff92cdabfb33cf61.jpg",
|
| 886 |
+
"image_caption": [
|
| 887 |
+
"Figure 3: T-SNE visualization on SVHN MNIST with their corresponding domain labels (red: target; blue: source) and category labels (10 classes) shown in the left and right subfigures, respectively. "
|
| 888 |
+
],
|
| 889 |
+
"image_footnote": [],
|
| 890 |
+
"bbox": [
|
| 891 |
+
179,
|
| 892 |
+
628,
|
| 893 |
+
820,
|
| 894 |
+
719
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "text",
|
| 900 |
+
"text": "5 CONCLUSION ",
|
| 901 |
+
"text_level": 1,
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
791,
|
| 905 |
+
318,
|
| 906 |
+
808
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 7
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "We proposed a new domain alignment approach namely max-margin domain-adversarial training (MDAT) and a MDAT-based network for unsupervised domain adaptation. The proposed method offers effective and stable gradients for the feature learning via an adversarial game between the feature extractor and the reconstruction network. The theoretical analysis provides justifications on how it minimizes the distribution discrepancy. Extensive experiments demonstrate the effectiveness of our method and we further interpret the features by visualization that conforms with our insight. Potential evaluation on semi-supervised learning constitutes our future work. ",
|
| 913 |
+
"bbox": [
|
| 914 |
+
173,
|
| 915 |
+
823,
|
| 916 |
+
825,
|
| 917 |
+
921
|
| 918 |
+
],
|
| 919 |
+
"page_idx": 7
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"type": "text",
|
| 923 |
+
"text": "REFERENCES ",
|
| 924 |
+
"text_level": 1,
|
| 925 |
+
"bbox": [
|
| 926 |
+
176,
|
| 927 |
+
102,
|
| 928 |
+
287,
|
| 929 |
+
117
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Shai Ben-David, John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jennifer Wortman Vaughan. A theory of learning from different domains. Machine learning, 79(1-2):151–175, 2010. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
174,
|
| 938 |
+
126,
|
| 939 |
+
825,
|
| 940 |
+
155
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Konstantinos Bousmalis, George Trigeorgis, Nathan Silberman, Dilip Krishnan, and Dumitru Erhan. Domain separation networks. In Advances in Neural Information Processing Systems, pp. 343–351, 2016. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
176,
|
| 949 |
+
164,
|
| 950 |
+
825,
|
| 951 |
+
207
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 8
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Konstantinos Bousmalis, Nathan Silberman, David Dohan, Dumitru Erhan, and Dilip Krishnan. Unsupervised pixel-level domain adaptation with generative adversarial networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3722–3731, 2017. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
176,
|
| 960 |
+
217,
|
| 961 |
+
823,
|
| 962 |
+
260
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 8
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Yuhua Chen, Wen Li, Christos Sakaridis, Dengxin Dai, and Luc Van Gool. Domain adaptive faster r-cnn for object detection in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3339–3348, 2018. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
174,
|
| 971 |
+
268,
|
| 972 |
+
826,
|
| 973 |
+
313
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 8
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Nello Cristianini, John Shawe-Taylor, et al. An introduction to support vector machines and other kernel-based learning methods. Cambridge university press, 2000. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
173,
|
| 982 |
+
321,
|
| 983 |
+
823,
|
| 984 |
+
351
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 8
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backpropagation. In Francis Bach and David Blei (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1180–1189, Lille, France, 07–09 Jul 2015. PMLR. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
359,
|
| 994 |
+
826,
|
| 995 |
+
416
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 8
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. The Journal of Machine Learning Research, 17(1):2096–2030, 2016. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
178,
|
| 1004 |
+
426,
|
| 1005 |
+
823,
|
| 1006 |
+
469
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 8
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Muhammad Ghifary, W Bastiaan Kleijn, Mengjie Zhang, David Balduzzi, and Wen Li. Deep reconstruction-classification networks for unsupervised domain adaptation. In European Conference on Computer Vision, pp. 597–613. Springer, 2016. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
478,
|
| 1016 |
+
825,
|
| 1017 |
+
522
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 8
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Xavier Glorot, Antoine Bordes, and Yoshua Bengio. Domain adaptation for large-scale sentiment classification: A deep learning approach. In Proceedings of the 28th International Conference on Machine Learning (ICML-11), pp. 513–520, 2011. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
174,
|
| 1026 |
+
531,
|
| 1027 |
+
825,
|
| 1028 |
+
574
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 8
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
174,
|
| 1037 |
+
583,
|
| 1038 |
+
826,
|
| 1039 |
+
627
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 8
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Judy Hoffman, Eric Tzeng, Taesung Park, Jun-Yan Zhu, Phillip Isola, Kate Saenko, Alexei Efros, and Trevor Darrell. CyCADA: Cycle-consistent adversarial domain adaptation. In Proceedings of the 35th International Conference on Machine Learning, pp. 1989–1998, 2018. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
173,
|
| 1048 |
+
636,
|
| 1049 |
+
826,
|
| 1050 |
+
679
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 8
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Jonathan J. Hull. A database for handwritten text recognition research. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(5):550–554, 1994. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
171,
|
| 1059 |
+
688,
|
| 1060 |
+
823,
|
| 1061 |
+
718
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 8
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"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. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
171,
|
| 1070 |
+
727,
|
| 1071 |
+
823,
|
| 1072 |
+
757
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 8
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. nature, 521(7553):436, 2015. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
173,
|
| 1081 |
+
765,
|
| 1082 |
+
813,
|
| 1083 |
+
781
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 8
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Mingsheng Long, Yue Cao, Jianmin Wang, and Michael I. Jordan. Learning transferable features with deep adaptation networks. In Proceedings of the 32Nd International Conference on International Conference on Machine Learning - Volume 37, ICML’15, pp. 97–105, 2015. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
174,
|
| 1092 |
+
790,
|
| 1093 |
+
825,
|
| 1094 |
+
833
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 8
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Mingsheng Long, Zhangjie Cao, Jianmin Wang, and Michael I Jordan. Conditional adversarial domain adaptation. In Advances in Neural Information Processing Systems, 2018. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
171,
|
| 1103 |
+
842,
|
| 1104 |
+
823,
|
| 1105 |
+
872
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 8
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Pietro Morerio, Jacopo Cavazza, and Vittorio Murino. Minimal-entropy correlation alignment for unsupervised deep domain adaptation. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=rJWechg0Z. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
176,
|
| 1114 |
+
881,
|
| 1115 |
+
825,
|
| 1116 |
+
924
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 8
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning, volume 2011, pp. 5, 2011. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
178,
|
| 1125 |
+
103,
|
| 1126 |
+
821,
|
| 1127 |
+
146
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the loglikelihood function. Journal of statistical planning and inference, 90(2):227–244, 2000. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
155,
|
| 1137 |
+
825,
|
| 1138 |
+
184
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Rui Shu, Hung H Bui, Hirokazu Narui, and Stefano Ermon. A dirt-t approach to unsupervised domain adaptation. In Proc. 6th International Conference on Learning Representations, 2018. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
173,
|
| 1147 |
+
193,
|
| 1148 |
+
823,
|
| 1149 |
+
222
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 9
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Baochen Sun and Kate Saenko. Deep coral: Correlation alignment for deep domain adaptation. In European Conference on Computer Vision, pp. 443–450. Springer, 2016. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
173,
|
| 1158 |
+
231,
|
| 1159 |
+
825,
|
| 1160 |
+
260
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 9
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. CoRR, abs/1412.3474, 2014. URL http://arxiv.org/ abs/1412.3474. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
174,
|
| 1169 |
+
267,
|
| 1170 |
+
825,
|
| 1171 |
+
310
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 9
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Eric Tzeng, Judy Hoffman, Kate Saenko, and Trevor Darrell. Adversarial discriminative domain adaptation. In Computer Vision and Pattern Recognition (CVPR), volume 1, pp. 4, 2017. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
174,
|
| 1180 |
+
319,
|
| 1181 |
+
823,
|
| 1182 |
+
349
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 9
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "David Vazquez, Antonio M Lopez, Javier Marin, Daniel Ponsa, and David Geronimo. Virtual and real world adaptation for pedestrian detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(4):797–809, 2013. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
174,
|
| 1191 |
+
357,
|
| 1192 |
+
823,
|
| 1193 |
+
400
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 9
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Han Zou, Yuxun Zhou, Jianfei Yang, Huihan Liu, Hari Prasanna Das, and Costas J Spanos. Consensus adversarial domain adaptation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, pp. 5997–6004, 2019. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
174,
|
| 1202 |
+
409,
|
| 1203 |
+
826,
|
| 1204 |
+
452
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 9
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "APPENDIX ",
|
| 1211 |
+
"text_level": 1,
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
176,
|
| 1214 |
+
103,
|
| 1215 |
+
263,
|
| 1216 |
+
117
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 10
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "IMPLEMENTATION DETAILS ",
|
| 1223 |
+
"text_level": 1,
|
| 1224 |
+
"bbox": [
|
| 1225 |
+
176,
|
| 1226 |
+
137,
|
| 1227 |
+
367,
|
| 1228 |
+
151
|
| 1229 |
+
],
|
| 1230 |
+
"page_idx": 10
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"type": "text",
|
| 1234 |
+
"text": "Hyperparameter For all tasks, we simply use the same hyperparameters that are chosen from the sensitivity analysis. We use $\\alpha = 0 . 0 2$ and $m = 5 . 0$ , and we reckon that better results can be obtained by tuning the hyperparameters for specific tasks. ",
|
| 1235 |
+
"bbox": [
|
| 1236 |
+
174,
|
| 1237 |
+
166,
|
| 1238 |
+
825,
|
| 1239 |
+
208
|
| 1240 |
+
],
|
| 1241 |
+
"page_idx": 10
|
| 1242 |
+
},
|
| 1243 |
+
{
|
| 1244 |
+
"type": "text",
|
| 1245 |
+
"text": "Network Architecture For a fair comparison, we follow the network in DANN (Ganin & Lempitsky, 2015) for digit adaptation and simply build the reconstruction network by the inverse network of the extractor. Here we draw the network architectures in Table 5. For WiFi gesture recognition, we adopt the same architecture as CADA (Zou et al., 2019) that is a modified version of LeNet-5. ",
|
| 1246 |
+
"bbox": [
|
| 1247 |
+
173,
|
| 1248 |
+
215,
|
| 1249 |
+
825,
|
| 1250 |
+
272
|
| 1251 |
+
],
|
| 1252 |
+
"page_idx": 10
|
| 1253 |
+
},
|
| 1254 |
+
{
|
| 1255 |
+
"type": "table",
|
| 1256 |
+
"img_path": "images/cffbc1b636266ca74453a89956c605d17c0fba23e689f893ea7e780c67f4c7cc.jpg",
|
| 1257 |
+
"table_caption": [
|
| 1258 |
+
"Table 5: The network architecture used in the experiments. "
|
| 1259 |
+
],
|
| 1260 |
+
"table_footnote": [],
|
| 1261 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Layer Index|</td><td rowspan=1 colspan=1>Feature Extractor</td><td rowspan=1 colspan=2>Decoder Network一Label Predictor</td></tr><tr><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=3>32 × 32 × 3 Image</td></tr><tr><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1> 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1>2048 dense, ReLU</td><td rowspan=1 colspan=1>10 dense, softmax</td></tr><tr><td rowspan=1 colspan=1>2</td><td rowspan=1 colspan=1>3 × 3 max-pool, stride 2</td><td rowspan=1 colspan=1>3072 dense, ReLU</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1>5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=2> 5 × 5 conv. 128 ReLU</td></tr><tr><td rowspan=1 colspan=1>4</td><td rowspan=1 colspan=1> 3 × 3 max-pool, stride 2</td><td rowspan=1 colspan=1>upsample 2</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>5 × 5 conv. 128 ReLU</td><td rowspan=1 colspan=1>5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>6</td><td rowspan=1 colspan=1> 3072 dense,dropout, ReLU</td><td rowspan=1 colspan=1>upsample 2 一</td><td rowspan=1 colspan=1></td></tr><tr><td rowspan=1 colspan=1>7</td><td rowspan=1 colspan=1>2048 dense, dropout ReLU丨 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1>2048 dense, dropout ReLU丨 5 × 5 conv. 64 ReLU</td><td rowspan=1 colspan=1></td></tr></table>",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
291,
|
| 1265 |
+
781,
|
| 1266 |
+
481
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 10
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "SENSITIVITY ",
|
| 1273 |
+
"text_level": 1,
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
174,
|
| 1276 |
+
551,
|
| 1277 |
+
266,
|
| 1278 |
+
565
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 10
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "We have presented all the results of the sensitivity study in Section 4.2, and now we show their detailed training procedures in Figure 4(a) and 4(b). It is observed that the accuracy increases when $\\alpha$ drops or the margin $m$ increases. The reason is very simple: (1) when $\\alpha$ is too large, it affects the effect of supervised training on source domain; (2) when the margin $m$ is small, the divergence between source and target domain (i.e. $\\mathcal { H } \\triangle \\mathcal { H }$ -distance) cannot be measured well. ",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
173,
|
| 1287 |
+
579,
|
| 1288 |
+
825,
|
| 1289 |
+
650
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 10
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "image",
|
| 1295 |
+
"img_path": "images/51fdf51eb7f411f3f5d635607678c3149a1ab54683a9f9149fc92a99b18e13cf.jpg",
|
| 1296 |
+
"image_caption": [
|
| 1297 |
+
"Figure 4: The training procedure of ARN with different hyper-parameters. "
|
| 1298 |
+
],
|
| 1299 |
+
"image_footnote": [],
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
186,
|
| 1302 |
+
676,
|
| 1303 |
+
810,
|
| 1304 |
+
877
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 10
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "VISUALIZATION ",
|
| 1311 |
+
"text_level": 1,
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
176,
|
| 1314 |
+
104,
|
| 1315 |
+
287,
|
| 1316 |
+
117
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 11
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "Here we provide more visualization of the reconstructed images of target samples. In Figure 5, the target samples are shown in the left column while their corresponding reconstructed samples are shown in the right. We can see that for low-level domain shift such as $\\mathbf { M N I S T } { } \\mathbf { U S P } \\mathbf { \\xi }$ S, the reconstructed target samples are very source-like while preserving their original shapes and skeletons. However, for larger domain shift in Figure 5(c) and 5(d), they are reconstructed to source-like same digits but simultaneously some noises are removed. Specifically, in Figure 5(d), we can see that one target sample (SVHN) may contain more than one digits that are noises for recognition. After reconstruction, only the right digits are reconstructed. Some target samples may suffer from terrible illumination conditions but their reconstructed digits are very clear, which is amazing. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
174,
|
| 1325 |
+
128,
|
| 1326 |
+
826,
|
| 1327 |
+
256
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 11
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "image",
|
| 1333 |
+
"img_path": "images/c5f148db888d641992e5b170fed0b90b7901569b1c01614ca8392603fd460948.jpg",
|
| 1334 |
+
"image_caption": [
|
| 1335 |
+
"Figure 5: Visualization of the target samples and their corresponding reconstructed target samples. "
|
| 1336 |
+
],
|
| 1337 |
+
"image_footnote": [],
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
186,
|
| 1340 |
+
260,
|
| 1341 |
+
816,
|
| 1342 |
+
859
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 11
|
| 1345 |
+
}
|
| 1346 |
+
]
|
parse/train/BklEF3VFPB/BklEF3VFPB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BklEF3VFPB/BklEF3VFPB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H178hw9ex/H178hw9ex.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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NETWORKS
|
| 2 |
+
|
| 3 |
+
Jorn-Henrik Jacobsen ¨ 1, Bert De Brabandere2, Arnold W.M. Smeulders1
|
| 4 |
+
|
| 5 |
+
1Department of Computer Science, University of Amsterdam 2ESAT-PSI, KU Leuven {j.jacobsen,a.w.m.smeulders}@uva.nl bert.debrabandere@esat.kuleuven.be
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Filters in a convolutional network are typically parametrized in a pixel basis. As an orthonormal basis, pixels may represent any arbitrary vector in $\mathbb { R } ^ { n }$ . In this paper, we relax this orthonormality requirement and extend the set of viable bases to the generalized notion of frames. When applying suitable frame bases to ResNets on Cifar- $^ { 1 0 + }$ we demonstrate improved error rates by substitution only. By exploiting the transformation properties of such generalized bases, we arrive at steerable frames, that allow to continuously transform CNN filters under arbitrary Lie-groups. Further allowing us to locally separate pose from canonical appearance. We implement this in the Dynamic Steerable Frame Network, that dynamically estimates the transformations of filters, conditioned on its input. The derived method presents a hybrid of Dynamic Filter Networks and Spatial Transformer Networks that can be implemented in any convolutional architecture, as we illustrate in two examples. First, we illustrate estimation properties of steerable frames with a Dynamic Steerable Frame Network, compared to a Dynamic Filter Network on the task of edge detection, where we show clear advantages of the derived steerable frames. Lastly, we insert the Dynamic Steerable Frame Network as a module in a convolutional LSTM on the task of limited-data hand-gesture recognition from video and illustrate effective dynamic regularization and show clear advantages over Spatial Transformer Networks. In this paper, we have laid out the foundations of Frame-based convolutional networks and Dynamic Steerable Frame Networks while illustrating their advantages for continuously transforming features and data-efficient learning.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
For images, as well as any other sensory data, convolutional networks are typically learned from individual pixel values. Using them as a basis of the learned parameters is the standard approach for almost all CNNs. In this paper, we argue, that the pixel basis is not necessarily the best choice for representing signals. We show, that suitable alternatives yield increased classification performance by replacement only, while such a replacement adds additional properties to the learned filters that allow us to transform them under arbitrary pre-defined Lie groups.
|
| 14 |
+
|
| 15 |
+
From our perspective, the pixel values span an orthogonal basis for the filters in the network (in every layer). Such a pixel basis is complete as it may represent an arbitrary vector in $\mathbb { R } ^ { n }$ by linear combination, where $n$ is the dimensionality of the filter. In this paper we consider alternatives to this basis, both orthogonal bases, and non-orthogonal frames, arriving at superior expressiveness through steerable function spaces that allow us to transform filters locally and continuously, conditioned on their input.
|
| 16 |
+
|
| 17 |
+
Utilizing the steerability properties of frames in practice, we propose Dynamic Steerable Frame Networks (DSFNs) that fill the gap between Spatial Transformer Networks (STNs) (Jaderberg et al., 2015) and Dynamic Filter Networks (DFNs) (De Brabandere et al., 2016). STNs are not locally adaptive, thus they fail in many cases where it is not beneficial to transform the image globally as it would destroy discriminative information (multiple deformable objects, discriminative dynamic movements) or where global registration is performed as a preprocessing step (medical images).
|
| 18 |
+
|
| 19 |
+
DFNs are overcoming this restriction by locally transforming filters instead of globally transforming the whole feature stack as STNs do. However, DFNs are black boxes and not data-efficient, as they introduce many unconstrained parameters. Such a behavior is undesirable when data is limited and interpretability is key. DSFNs are locally adaptive, interpretable and data-efficient. They overcome the weaknesses of both approaches by combining their strengths, as illustrated in multiple experiments.
|
| 20 |
+
|
| 21 |
+
Our contributions:
|
| 22 |
+
|
| 23 |
+
• We argue that suitable frame bases are beneficial when representing sensory data compared to the commonly used pixel basis. • Exploiting the transformation properties of frames further, we derive Dynamic Steerable Frame Networks that are able to continuously transform features locally and fill the gap between Spatial Transformer Networks and Dynamic Filter Networks. Dynamic Steerable Frame Networks learn to separate pose and feature. This enables the network to be locally equivariant or invariant with respect to certain feature poses, or even to perform in network quasi data-augmentation, while only the inputs and the backpropagated error signals determine which and to what extent these are applied.
|
| 24 |
+
|
| 25 |
+
We introduce the generalized notion of frames to CNNs that extend possible bases to learn from to non-orthogonal and overcomplete sets without loss in generalization. We show that many choices are possible, while overcomplete, non-orthogonal bases consistently outperform the pixel basis when applied to a ResNet (He et al., 2016) for image classification, as illustrated on Cifar- $^ { 1 0 + }$ . We derive the Dynamic Steerable Frame Networks, based on the notion of steerable frames, that can locally adapt the filters in every feature map, conditioned on the input. We illustrate the strength of the approach in an edge detection task, where it outperforms a Dynamic Filter Network. We further show in a limited data video classification task, that Dynamic Steerable Frame Networks improve classification performance over Spatial Transformer Networks when global invariance is not desirable.
|
| 26 |
+
|
| 27 |
+
# 2 DYNAMICALLY STEERABLE FRAME NETWORKS
|
| 28 |
+
|
| 29 |
+
# 2.1 FRAMES
|
| 30 |
+
|
| 31 |
+
Frames are a natural generalization of orthogonal bases (Christensen, 2003). In frame terminology, an orthonormal basis is a Parseval-tight frame with unit norm. Every tight frame preserves the signal norm and exhibits perfect reconstruction. Frames can be seen as a superset of orthogonal bases in the sense that every basis is a frame, but not the reverse, see figure 1. The advantage of considering frames over orthogonal bases is that intrinsic signal properties can be spelled out explicitly in the new representation with the advantage, that these properties are directly accessible during learning. From an overcomplete representation, it will be more easily visible which part of the features is robust and which part is sensitive to accidental noise variations.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+
Figure 1: a) Is an orthonormal basis in $\mathbb { R } ^ { 2 }$ , $u _ { 1 }$ and $u _ { 2 }$ are linearly independent and span the space of $\mathbb { R } ^ { \tilde { 2 } }$ . A dot in this example represents a filter in a convolutional network with coefficients $\{ \bar { v } _ { 1 } , v _ { 2 } \}$ . b) A tight frame in $\mathbb { R } ^ { 2 }$ . $u _ { 1 } , u _ { 2 }$ and $u _ { 3 }$ are linearly dependent. A dot in this example represents a convolutional filter with coefficients $\{ v _ { 1 } , v _ { 2 } , v _ { 3 } \}$ . The frame is an overcomplete representation, again spanning $\mathbb { R } ^ { 2 }$ and again preserving the norm. Note that the set of filter coefficients as represented by the dot is not unique. Thus even if one $v$ is obstructed by noisy updates or measurements, the filter may still be robust.
|
| 36 |
+
|
| 37 |
+
In a standard convolutional network, a filter kernel is a linear combination over the standard basis for $l ^ { 2 } ( \mathbb { N } )$ . The standard basis is composed from a delta function for every dimension and $W _ { i }$ is the $i _ { t h }$ filter of the network with parameters $w _ { n } ^ { i }$ :
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { l } { { \displaystyle e _ { 1 } = \{ 1 , 0 , 0 , . . . , 0 \} } } \\ { { \displaystyle e _ { 2 } = \{ 0 , 1 , 0 , . . . , 0 \} } } \\ { { \displaystyle . . . } } \\ { { \displaystyle e _ { n } = \{ 0 , 0 , 0 , . . . , 1 \} } } \\ { { \displaystyle W _ { i } = \sum _ { n = 1 } ^ { N } w _ { n } ^ { i } e _ { n } } } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
Without loss of generalization the orthonormal standard basis can be replaced by a frame to include non-orthogonality, overcompleteness, increased symmetries or steerability into the representation. Changing from the pixel to an arbitrary frame is as simple as replacing the pixel basis $e _ { n }$ with a frame of choice with elements $v _ { n }$ as follows:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
W _ { i } = \sum _ { n = 1 } ^ { N } w _ { n } ^ { i } v _ { n }
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
where $w _ { 1 } ^ { i } , . . . , w _ { n } ^ { i }$ are again the filter coefficients being learned.
|
| 50 |
+
|
| 51 |
+
In practice for CNNs working on images we investigate derived bases from steerability requirements, orthogonal polynomials, Framelets and members of the Gaussian derivative family. See figure 2 for a selection of frames.
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
Figure 2: An illustrative plot of multiple 3x3 spanning sets: a) Pixel-basis, b) Orthogonal Polynomial, c) Non-orthogonal Frame. Note the increased symmetries in b) and c).
|
| 55 |
+
|
| 56 |
+
# 2.2 STEERING FRAMES UNDER ARBITRARY LIE-GROUPS
|
| 57 |
+
|
| 58 |
+
A pleasant property of many frames is steerability (Unser & Chenouard, 2013; Hel-Or & Teo, 1998; Michaelis & Sommer, 1995), the power of a function to represent transformed versions of itself by linear combination. The advantage of steerability in CNNs working on images is the ability to produce infinitely many transformed variants of a visual feature $f ^ { \tau } ( \breve { x } , y ) \in \breve { \mathbb { R } ^ { 2 } } \to \mathbb { R }$ from its canonical appearance.
|
| 59 |
+
|
| 60 |
+
To achieve this goal we cast these variations as the result of the action of a family of transformations $g ( \tau )$ on the canonical features $f ( x , y )$ , where $\tau \in R ^ { k }$ parametrizes these $k$ -parameter transformations. If the problem at hand requires the distinction between multiple unknown poses of the same feature in a typical CNN they all have to be computed exhaustively to determine if a particular pose is present or not. Things go out of hand when the search space is a continuous transformation group, such as the Lie group of affine transformations, requiring $k \infty$ number of feature maps which is computationally intractable or requires expensive searches over all possible transformations (Gens & Domingos, 2014). One way out is to coarsely sample a few equally spaced points on the equivariant transformation manifold or to restrict the space to a smaller group (Cohen & Welling, 2016; Dieleman et al., 2016). What remains, however, is that the number of resulting feature maps for more general groups quickly becomes infeasible. An elegant way to overcome these limitations is the concept of steerability by (Freeman & Adelson, 1991; Perona, 1992; Unser & Chenouard, 2013) which is taken as inspiration here.
|
| 61 |
+
|
| 62 |
+
In this work, we focus on Lie groups. Transformations $g ( \tau )$ over a range constitute a Lie group if they are closed under composition, they are associative, they are invertible, there exists an identity element, and their maps for inverse and composition are infinitely differentiable (Hel-Or & Teo, 1998). Teo and colleagues (Teo & Hel-Or, 1998) have given the following definition.
|
| 63 |
+
|
| 64 |
+
Definition 1 (Steerability): $A$ function $f ( x , y )$ : $\mathbb { R } ^ { 2 } \to \mathbb { R }$ is steerable under a $k$ -parameter Lie transformation group $G$ if any transformation $g ( \tau ) \in G$ of f can be written as a linear combination of a fixed, finite set of frame functions $\phi _ { m } ( x , y )$ :
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
g ( \tau ) f ( x , y ) = \sum _ { m = 1 } ^ { M } \beta _ { m } ( \tau ) \phi _ { m } ( x , y ) = \mathbf { B } ^ { T } ( \tau ) \Phi ( x , y )
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
Where $\mathbf { B } ^ { T } ( \tau )$ denote the collected steering functions describing the transformation and $\Phi ( x , y )$ the collected steerable frame functions.
|
| 71 |
+
|
| 72 |
+
A function steerable under a k-parameter Lie group is capable of representing infinitely many states of a particular set of transformations. In many cases, only a finite set of frame functions is needed to represent these. In CNN terms, this means that a limited number of feature maps are sufficient to represent complete continuous transformation groups when the frame functions and the steering functions are chosen appropriately. Finding appropriate frame functions is the biggest challenge in steering arbitrary functions over arbitrary Lie groups.
|
| 73 |
+
|
| 74 |
+
To study the action of a Lie group $G$ on a function we use the close relation between the Lie group and its tangent space. The Algebra’s tangent space spanned by the group’s infinitesimal generators. The differential operators of the group action are obtained by computing the derivative of the group action with respect to its parameters at the identity element. A Lie Algebra can be considered as an ”infinitesimal” Lie group. If the group is simply connected, the group action on a visual feature $f ( x , y )$ can be obtained via the exponential map (Teo & Hel-Or, 1998):
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
g ( \tau _ { 1 } , . . . , \tau _ { k } ) f ( x , y ) = e ^ { ( \sum _ { i = 1 } ^ { k } \tau _ { i } L _ { i } ) } f ( x , y )
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
e ^ { \tau _ { i } L _ { i } } = I + \tau _ { i } L _ { i } + \frac { 1 } { 2 ! } \tau _ { i } ^ { 2 } L _ { i } ^ { 2 } + . . .
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
where $L _ { i }$ are the group’s infinitesimal generators and $I$ is the identity element. This implies that one can compute the Taylor expansion with respect to the desired transformation group parameters to obtain elements of the group. If a finite frame set is equivariant towards the desired transformation group (it contains the orbit of the function to be steered), the series expansion yields linearly dependent elements after a finite number of steps. Then the frame is globally steerable under the desired transformation group. If this is not the case, as for example when scaling a Gaussian function, a finite frame set is only sufficient to accurately steer the function over a bounded interval, the function is locally steerable, but not globally.
|
| 87 |
+
|
| 88 |
+
# 2.3 SEPARATING POSE AND CANONICAL APPEARANCE
|
| 89 |
+
|
| 90 |
+
When training a CNN the functions represented by each feature naturally change from update to update. It is desirable to separate the frame functions from the effective features as learned by the network. In such a Structured Receptive Fields Network (RFNN) (Jacobsen et al., 2016), each filters parameters are not its mere pixel values, but the coefficients weighting the sum over a fixed frame set. Thus, analogous to equation 1, every effective filter $W _ { i } ( x , y )$ has the following form:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
W _ { i } ( x , y ) = w _ { 1 } ^ { i } v _ { 1 } + w _ { 2 } ^ { i } v _ { 2 } + \ldots + w _ { n } ^ { i } v _ { n } ,
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $v _ { n }$ denotes the $n _ { t h }$ element of the frame.
|
| 97 |
+
|
| 98 |
+
To be able to separate a features pose from its canonical appearance, we are interested in a steerable version of an arbitrary filter $W _ { i } ( x , y )$ under a $\mathbf { k }$ -parameter Lie group. From 5 follows:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
g ( \tau ) W _ { i } ( x , y ) = \sum _ { n = 1 } ^ { N } w _ { n } ^ { i } g ( \tau ) v _ { n } ^ { i } .
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
And by substituting according to equation 2 it follows:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
g ( \tau ) W _ { i } ( x , y ) = \sum _ { n = 1 } ^ { N } w _ { n } ^ { i } \sum _ { m = 1 } ^ { M } \beta _ { m } ( \tau ) \phi _ { m } ( x , y ) .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
Thus it is sufficient to determine the group action on the fixed frame by steering it to separate the canonical feature itself from its $\mathrm { k }$ -parameter variants, i.e. $v _ { n } ^ { i }$ govern the weight of each frame coefficient to form a feature $W _ { i } ( x , y )$ and $\beta _ { m }$ are the steering functions governing the transformation of $g ( \tau )$ acting on $W _ { i } ( x , y )$ as a whole. From now on learning and transforming features amounts to a point-wise multiplication of frame coefficients with cos, sin and exp activation functions, which is suitable for learning in a CNN.
|
| 111 |
+
|
| 112 |
+
# 2.4 DERIVING THE FRAME AND STEERING FUNCTIONS
|
| 113 |
+
|
| 114 |
+
Now the problem is reduced to finding a suitable frame as a function space underlying the learned filters. There are many approaches to derive a function space that is closed under the desired transformation group and as we show, many options give rise to bases that work considerably well when inserted into state-of-the-art CNNs. The most straightforward way is to derive it from the group’s infinitesimal generators, for brevity we refer the interested reader to (Hel-Or & Teo, 1998) and directly cite some derived equivariant function spaces from the paper.
|
| 115 |
+
|
| 116 |
+
<table><tr><td colspan="2">Steerable Function Spaces</td></tr><tr><td>X,y Translation</td><td>xPyqeax+βy</td></tr><tr><td>X,y Scaling</td><td>xayβln(x)pln(y)q</td></tr><tr><td>Rotation & Uniform Scaling</td><td>raln(r)peik</td></tr><tr><td>X,y Translation & x,y Scaling& Rotation</td><td>xpyq</td></tr></table>
|
| 117 |
+
|
| 118 |
+
Table 1: Examples of function spaces closed under various non-Abelian multi-parameter groups, as derived in (Hel-Or & Teo, 1998). They can readily be used as a frame for CNNs by the procedure we derive here.
|
| 119 |
+
|
| 120 |
+
Once a frame is chosen, we can simply check if it is closed under the given transformation group by verifying for each generator $L _ { i }$ that:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
{ \cal L } _ { i } \Phi ( x , y ) = { \bf B } _ { i } \Phi ( x , y ) ,
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where $\mathbf { B } _ { i }$ is some finite dimensional $n \times n$ matrix. If this is the case, the function space is equivariant under the transformation group and we can compute the steering equations of the group composed of multiple generators as:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\mathbf { A } ( \tau ) = e ^ { \tau _ { k } \mathbf { B } _ { k } } \cdot \ldots \cdot e ^ { \tau _ { 1 } \mathbf { B } _ { 1 } } .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
To arrive at a practical solution, we have to consider the problem that locally bounded functions can not be steered globally with a finite steerable frame. To achieve a suitable approximation for our case, we separate scaling into two parts, an inner $\{ \sigma _ { x } , \sigma _ { y } \}$ and an outer scale $\sigma _ { a }$ , where a stands for aperture. The inner scale can directly be steered via the above derivation and represents the slope of the local measurement taken by a filter, while the outer scale represents the size and shape of the filters receptive field. To achieve anisotropic receptive fields, we propose to first steer the scale at every pixel and steer the derived function space on this non-uniformly scaled grid, resulting in locally deformable receptive fields. Due to associativity of convolution, we can combine steering the derived function space and the receptive field scale into one operation. In this work, we use a second order approximation of the Gaussian that is capable of giving a good approximation to common CNN receptive field sizes 3x3, 5x5 and $7 \mathbf { x } 7$ . For scaling over larger ranges, we recommend the spectral decomposition approach (Koutaki & Uchimura, 2014).
|
| 133 |
+
|
| 134 |
+
# 2.5 DYNAMIC STEERABLE FRAME NETWORKS
|
| 135 |
+
|
| 136 |
+
Estimating the local pose of a feature from a steerable function space is analytically intractable in the case of most multi-parameter groups. In this paper, we introduce the Dynamic Steerable Frame Network that combines the advantages of steerable function spaces with the power of neural network function estimators, by estimating pose parameters from a function space equivariant under the transformation group at hand. Specifically, our architecture is inspired by the recently introduced Dynamic Filter Networks (De Brabandere et al., 2016). The Dynamic Filter Network (DFN) generates one feature per location in a feature map, which boils down to a locally connected convolution layer, for which the parameters are generated by a different network that estimates them from the input, yielding a different filter kernel for every location in the input.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 3: The Dynamic Steerable Frame Network. The network transforms an input image to a steerable frame $\Phi$ (here an example with 3 frame functions) and estimates the local feature pose at each location in this equivariant space with a small pose estimating network. Then it outputs a set of pose coordinates $\tau _ { \mathbf { k } }$ , that are dependent on the group parametrization chosen. They are inserted into the matrix of steering equations $\beta ( \tau )$ and applied to the frame $\Phi$ , yielding the locally steered frame. In the same operation, we integrate the weights $w _ { n }$ , that govern the feature maps canonical feature appearance, these are the weights learned by a normal CNN. The Dynamic Steerable Frame Network can decide to commute with a set of poses, to be invariant to them, to only look for certain poses or to act like a normal CNN, where each feature map has one pose and one canonical appearance assigned to itself. This is only determined by the input data and the backpropagated error signals.
|
| 140 |
+
|
| 141 |
+
The DFN takes the form:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
O ( x , y ) = F _ { \tau } ^ { x , y } ( I ( x , y ) ) ,
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
where $F _ { \tau } ^ { x , y }$ are generated by another network from the input. We propose the Dynamic Steerable Frame Network, where the parameters $\theta$ that condition the filter are pose transformation parameters of the steerable function space, estimated from the input, similar to how it is done in the Spatial Transformer Networks, just that in our case we aim for locally adaptive filters. The filters $F _ { \tau } ^ { x , y }$ share the same set of weights in the whole feature map, so they represent the same canonical appearance everywhere. While their local pose is dynamically estimated by a Pose-Generating Network $\Psi$ that takes the form:
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
\tau ( x , y ) = \Psi ( I ( x , y ) ) .
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
Thus, the canonical appearance is translation invariant, but its geometrical pose is not. In terms of equation 5, this means the set of $w _ { n } ^ { i }$ is fixed, but the frame $v _ { n } ^ { \tau ( x , y ) }$ is locally transformed under a pre-defined k-parameter group with parameters $\tau$ . See figure 5 for an illustration.
|
| 154 |
+
|
| 155 |
+
The method consists of two parts: i) A Pose-Generating network estimating local pose parameters of a feature conditioned on the input from a steerable input space. ii) A Dynamic Filtering mechanism, convolving transformed versions of a feature with every location in the input feature map, based on the estimates of the pose generating network. Due to linearity of convolution, we can first perform a transformation of the input into the steerable frame space and in this space we perform i) and ii) as point-wise multiplications.
|
| 156 |
+
|
| 157 |
+
# 3 RELATED WORK
|
| 158 |
+
|
| 159 |
+
Steerable Filters is a concept established early for signal processing. Initially introduced by (Freeman & Adelson, 1991), the concept was extended to the Steerable Pyramid by (Simoncelli & Freeman, 1995) and further extended to a Lie-group formulation by (Hel-Or & Teo, 1998; Michaelis & Sommer, 1995). Further, steerability has recently been extended to tight frames, presenting Simoncelli’s Steerable Pyramid and multiple other Wavelets arising as a special case of the non-orthogonal Riesz transform (Unser & Chenouard, 2013). Steerable pyramids have been applied to CNNs as a pre-processing step (Xue et al., 2016), but have not yet been learnable. We incorporate steerable frames in CNNs to increase their de facto expressiveness and to allow them to learn their configurations, rather than picking them a priori.
|
| 160 |
+
|
| 161 |
+
Convolutional Networks with alternative bases have been proposed with various degrees of flexibility. A number of works utilizes change of basis to stabilize training and increase convergence behavior (Rippel et al., 2015; Arjovsky et al., 2015). Another line of research is concerned with complex-valued CNNs, either learned (Tygert et al., 2016), or fully designed like the Scattering networks (Bruna & Mallat, 2013; Oyallon & Mallat, 2015).
|
| 162 |
+
|
| 163 |
+
Scattering, as well as the complex-valued networks, rest upon a direct connection between the signal processing literature and CNNs. Inspired by the former, Structured Receptive Field Networks are learned from an overcomplete multi-scale frame, effectively improving performance for small datasets due to restricted feature spaces (Jacobsen et al., 2016). Also related is the work on Groupequivariant CNNs (Cohen & Welling, 2016) and Cyclic Pooling (Dieleman et al., 2016), where equivariance towards the dihedral group is theoretically guaranteed, yielding increased accuracy. Inspired by CNNs learned from alternative bases, we introduce the general principle of Frame-based convolutional networks that allow for non-orthogonal, overcomplete and steerable feature spaces.
|
| 164 |
+
|
| 165 |
+
Another way to impose structure onto CNN representations and subsequently increase their dataefficiency is to incorporate explicit geometrical transformations into them. Either by learning transformation operators and group representations (Cohen et al., 2014; Wang et al., 2009). Or by predefining the possible transformations, as done in Transforming Autoencoders (Hinton et al., 2011), which map their inputs from the image to pose space through a neural network. The Spatial Transformer Networks (Jaderberg et al., 2015) learn global transformation parameters in a similar way while applying them to a nonlinear co-registration of the feature stack to some learned pose. This yields especially high performance on tasks where centering the objects is beneficial. Dynamic Filter Networks move one step further and estimate filters for each location, conditioned on their input. These approaches are all dynamic in a sense that they condition their parameters on the input appearance. We combine the idea of Dynamic Filter Networks with explicit pose prediction into Dynamic Steerable Frame Networks that can estimate poses from continuous input space, conditioned on the input. As such, we overcome the difficulty of estimating local pose, while being able to separate pose and feature learning globally.
|
| 166 |
+
|
| 167 |
+
# 4 EXPERIMENTS
|
| 168 |
+
|
| 169 |
+
# 4.1 GENERALIZING PIXELS TO FRAMES ON CIFAR- $^ { 1 0 + }$
|
| 170 |
+
|
| 171 |
+
To show the validity of general frame representations, we compare different bases in a state-of-theart pre-activation deep residual network architecture (He et al., 2016) on the Cifar- $^ { 1 0 + }$ (Krizhevsky & Hinton, 2009) dataset with moderate data augmentation of crops and flips.
|
| 172 |
+
|
| 173 |
+
<table><tr><td colspan="4">Error on Cifar10+</td></tr><tr><td>Method</td><td>Pixel</td><td>Image Frame</td><td>Naive Frame</td></tr><tr><td>ResNet-20</td><td>7.85%</td><td>7.61%</td><td>8.97%</td></tr><tr><td>ResNet-56</td><td>6.68%</td><td>6.08%</td><td>7.30%</td></tr><tr><td>ResNet-110</td><td>5.84%</td><td>5.34%</td><td>6.96%</td></tr><tr><td>Densenet K12 L40</td><td>5.28%</td><td>4.99%</td><td>6.39%</td></tr><tr><td>Densenet K12 L100</td><td>4.16%</td><td>3.78%</td><td>5.21%</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Table 2: Results on Cifar10 with moderate data-augmentation (crops/flips) with the recently introduced pre-activation Residual network and Densenet with the standard pixel-basis, a steerable frame basis designed for natural images and the naive steerable $x ^ { p } y ^ { q }$ frame from table 3 that does not take natural image statistics into account. The natural image statistics based frame outperforms the pixelbasis consistently, while the naive frame consinstently performs about $1 \%$ worse than the baseline, highlighting the benefit of a frame suitable for the type of input data.
|
| 176 |
+
|
| 177 |
+
We evaluated our approach on multiple networks and network sizes. The setup used for the ResNet is as described in (He et al., 2016). The batch size is chosen to be 64 and we train for 164 epochs with the described learning rate decrease. The ResNet architectures used are without bottlenecks having 20, 56 and 110 layers. For the Densenets we follow (Huang et al., 2016) and evaluate on the ${ \mathrm { K } } { = } 1 2$ and $_ { \mathrm { L = 4 0 } }$ , and the ${ \mathrm { K } } { = } 1 2$ and ${ \mathrm { L } } { = } 1 0 0$ models. We run our experiments in Keras (Chollet, 2015) and Tensorflow (Abadi et al., 2016). In the first experiment, we run the models on the standard pixel basis to get a viable baseline. Secondly, we replace the pixel-basis with widely-used frames that take natural image statistics into account, namely non-orthogonal, overcomplete Gaussian derivatives (Florack et al., 1992) and non-orthogonal framelets (Daubechies et al., 2003) in an alternating fashion, yielding superior performance compared to the pixel-basis by replacement only.
|
| 178 |
+
|
| 179 |
+
We also show that the naive $x ^ { p } y ^ { q }$ frame (see table 1) performs consistently worse than the other two choices, as it does not take natural image properties into account, while it is important to mention that this $1 \%$ performance decrease also comes with additional properties that might be highly beneficial in particular tasks. We have also found orthogonal polynomials to not work very well (around $3 \%$ performance decrease), which is in line with our expectation that suitable frames should take natural image statistics into account. 2D frames are generated from 1D functions via the following generating process:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
F r a m e = \{ v _ { 0 } , v _ { 1 } , v _ { 2 } , v _ { 3 } \} \otimes \{ v _ { 0 } , v _ { 1 } , v _ { 2 } , v _ { 3 } \} ^ { T } .
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
The results are reported in table 2. The fact that the pixel-basis can be replaced by steerable frames and performance even improves when the frame is chosen well, is remarkable, as this means every filter in the CNN enjoys additional properties, while performance improves in the standard setting already and finding suitable frames is not more expensive than running the same smallest CNN as many times as one has frames to choose from, as the performance we observed was consistent across multiple model sizes. Frame-based CNNs run at the same runtime as vanilla CNNs.
|
| 186 |
+
|
| 187 |
+
# 4.2 DYNAMIC STEERABLE FRAME NETWORKS
|
| 188 |
+
|
| 189 |
+
In this section we report two experiments. The first experiment is an edge detection task, highlighting the difference between our approach and multiple baselines in a fine-grained pixel-wise labeling task. In the second experiment, we apply a 2D convolutional LSTM on a small hand gesture recognition video dataset to illustrate how the Dynamic Steerable Frame Network regularizes the model effectively and to illustrate its benefits over Spatial Transform Networks.
|
| 190 |
+
|
| 191 |
+
The model used in both experiments is learned from a steerable Gauss-Hermite frame. The Dynamic Steerable Frame Network consists of three processing steps. 1) Change to frame space on the input, 2) the Pose-Generating network estimates the pose from this transformed input, outputting a set of pose variables for each location in the image. 3) the steering functions derived in section 2.4 are applied to these pose variable maps and effectively act as nonlinear pose-parametrized activation functions that regularize the Pose-Generating network to output an explicitly interpretable pose space. Finally, a 1x1 convolution layer is applied to the already transformed output maps, representing the weights $w _ { n } ^ { i }$ , governing the canonical appearance of the $i _ { t h }$ feature map, see also figure 5. Dynamic Steerable Frame Networks run at the same computational cost as vanilla Dynamic Filter Networks.
|
| 192 |
+
|
| 193 |
+
# 4.2.1 EDGE DETECTION
|
| 194 |
+
|
| 195 |
+
In this experiment, we compare a Dynamic Filter Network (De Brabandere et al., 2016) baseline with an autoencoder and a Dynamic Steerable Frame Network on the task of edge detection. The problem is formulated as a pixel-wise classification task and reported is the root mean-squared error on an unseen test set. The labels are the edges. The dataset is infinite, as we produce random blobs and create the edge labels with a standard scikit image function. The standard DFN can freely learn an input layer with 2 filters and 3 subsequent 1x1 layers that can non-linearly recombine the inputs, whereas the Frame DFN receives a steerable frame as an input, allowing it to leverage the finegrained orientation information without the need to learn it. The Dynamic Steerable Frame Network has the exact same architecture as the DFN but is geometrically regularized on its output as can be seen in figure 5, as an input it receives a first order Gauss-Hermite frame that can be steered globally towards rotation and locally towards scale.
|
| 196 |
+
|
| 197 |
+
Location varying methods are clearly superior in this task, compared to the location invariant autoencoder. The DFN increases its performance substantially when getting the steerable frame as an input, indicating its inability to learn a continuously transforming frame by itself. Finally, the Dynamic Steerable Frame Network clearly outperforms all baselines due to its ability to continuously transform its filters in a well-regularized manner. As an extra, we get the local feature pose for free from the output of the DSFN, the baseline has no notion of an explicit pose parameter, see figure 4.
|
| 198 |
+
|
| 199 |
+
<table><tr><td>Method</td><td>RMSE</td></tr><tr><td>Autoencoder</td><td>18.034</td></tr><tr><td>DFN</td><td>5.669</td></tr><tr><td>Frame DFN DSFN</td><td>1.554 0.778</td></tr></table>
|
| 200 |
+
|
| 201 |
+

|
| 202 |
+
Figure 4: Results on the edge detection task. Top is an illustration of a test image, bottom one sample from the actual infinite dataset, reported is root mean squared error. Autoencoder denotes a vanilla location invariant autoencoder. DFN denotes the plain Dynamic Filter Network, Frame DFN denotes a DFN whos input is a frame, DSFN denotes the Dynamic Steerable Frame Network. a) is the input, b) is the label, c) the prediction and d) the angular pose variable. d) is an output we get for free when training DSFNs, while a DFN has no notion of interpretable angle variables. Location varying methods clearly outperform the static autoencoder, while learning the DFN from a steerable frame increases performance again substantially. The DSFN substantially outperforms all other methods due to its continuously transforming input and output space.
|
| 203 |
+
|
| 204 |
+
# 4.2.2 SMALL SCALE VIDEO CLASSIFICATION
|
| 205 |
+
|
| 206 |
+
To show the ability of the Dynamic Steerable Frame Network to effectively regularize in dynamic settings where poses play an important role and where Spatial Transformer Networks do not work well, we apply it on the task of Hand-Gesture Recognition. Namely, on the Cambridge Hand-Gesture dataset (Kim & Cipolla, 2009), consisting of 9 classes of hand movement and poses in 900 videos, we use 750 for training, 50 for validation and 100 for testing. The dataset is very small and contains classes where global movement plays an important role and thus provides a good test bed to show effectiveness of the DSFN regularization ability compared to Spatial Transformers.
|
| 207 |
+
|
| 208 |
+
<table><tr><td>convLSTM</td><td>1 Layer</td><td>2 Layer</td><td>rot/scale-DSFN</td><td>rot/scale-STN</td><td>affine-STN</td></tr><tr><td># Params</td><td>905k</td><td>913k</td><td>907k</td><td>971k</td><td>1037k</td></tr><tr><td> Accuracy</td><td>35.42%</td><td>39.31%</td><td>62.18%</td><td>21.34%</td><td>12.21 %</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 3: Results on the Cambridge Hand-Gesture Recognition dataset, to illustrate the effectiveness of pose regularization provided by the Dynamic Steerable Frame Network. Adding the DSFN module to the convLSTM drastically improves performance. Increasing the capacity of the baseline to two layers, does not make up for the difference in performance, while adding the STN to the convLSTM decreases performance significantly, as the STN does not manage to learn meaningful global transformations that do not remove the class-specific information content. This is further substantiated by an increased performance when removing the ability to shear and translate the input from the STN. The DSFN outperforms all other approaches while only adding 2k free parameters to the baseline.
|
| 211 |
+
|
| 212 |
+
Our baseline model is a convolutional LSTM with 10 output feature maps, batch normalization and a dense layer for classification. As a second baseline, we increase the capacity of the model by adding a second LSTM layer and a second batch normalization step. We combine two instances of a Spatial Transformer Network with a convolutional LSTM, one that can perform full affine transformations and one that is restricted to rotation and scaling. The DSFN module is applied to the input layer of the smaller model with 4 output feature maps. The setup of the steerable frame used in this model is a Gauss-Hermite frame.
|
| 213 |
+
|
| 214 |
+
The steerability is uniquely parametrized as: $\{ B _ { s } B _ { \theta } \}$ . Allowing for scaling and rotation. Both Spatial Transformer Networks do not manage to learn useful warps of the input image and therefore decrease performance of the baseline. The affine model only manages to correctly classify multiple instances of a static class that has no movement information related to its label, while the rot/scale model increases performance, but still does not manage to learn useful scalings or rotations. The DSFN manages to learn locally rotation and scale invariant filters, that follow the boundaries and other features across the video as desired. Results are reported in Table 3.
|
| 215 |
+
|
| 216 |
+
For visualizations of the learned transformations, see Appendix A. The results illustrate the effectiveness of the DSFN to regularize the LSTM on a small-scale task where mostly local invariance is desired, but global invariance destroys most of the class-specific information. The DSFN improves performance over the baseline by about $22 \%$ , while the Spatial Transformer Network decreases performance by about $15 \%$ , or even to random in the full-affine case.
|
| 217 |
+
|
| 218 |
+
# 5 DISCUSSION
|
| 219 |
+
|
| 220 |
+
We have introduced the notion of Frame-based convolutional networks. Our experiments illustrate that a simple replacement of the standard basis by a frame suitable for natural images leads to increased performance.
|
| 221 |
+
|
| 222 |
+
The insight that multiple frames can be considered as viable spanning sets for CNN representations leads us to steerable frames whose properties we exploit explicitly in our derived Dynamic Steerable Frame Networks, such that they can readily be accessed during training. The proposed method is a hybrid of Dynamic Filter Networks and Spatial Transformer Networks, enabling locally adaptive filtering with geometrical constraints.
|
| 223 |
+
|
| 224 |
+
We illustrate the effectiveness of the approach on an edge detection task, that requires fine-grained pixel-wise labeling, where Dynamic Steerable Frame Networks outperform a standard Dynamic Filter Network and an autoencoder baseline. Further, we illustrate the ability of the Dynamic Steerable Frame Network to regularize recurrent networks in a small-data video classification scenario where Spatial Transformer Networks fail to learn meaningful transformations.
|
| 225 |
+
|
| 226 |
+
Future work is to apply the model to other problem domains like egocentric video, robotics applications, as well as volumetric medical imaging videos of moving organs. We expect our Dynamic Steerable Frame Network approach to be beneficial in any problem where spatiotemporal continuity, data-efficiency, or interpretable pose spaces are key.
|
| 227 |
+
|
| 228 |
+
# ACKNOWLEDGEMENTS
|
| 229 |
+
|
| 230 |
+
We would like to thank Edouard Oyallon and Taco Cohen for insightful comments and discussions.
|
| 231 |
+
|
| 232 |
+
# REFERENCES
|
| 233 |
+
|
| 234 |
+
Martın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
|
| 235 |
+
Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. arXiv preprint arXiv:1511.06464, 2015.
|
| 236 |
+
Joan Bruna and Stephane Mallat. Invariant scattering convolution networks. ´ IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013.
|
| 237 |
+
Franc¸ois Chollet. Keras. https://github.com/fchollet/keras, 2015.
|
| 238 |
+
Ole Christensen. An introduction to frames and Riesz bases, volume 7. Springer, 2003.
|
| 239 |
+
Taco Cohen, Max Welling, et al. Learning the irreducible representations of commutative lie groups. In ICML, pp. 1755–1763, 2014.
|
| 240 |
+
Taco S Cohen and Max Welling. Group equivariant convolutional networks. arXiv preprint arXiv:1602.07576, 2016.
|
| 241 |
+
Ingrid Daubechies, Bin Han, Amos Ron, and Zuowei Shen. Framelets: Mra-based constructions of wavelet frames. Applied and computational harmonic analysis, 14(1):1–46, 2003.
|
| 242 |
+
Bert De Brabandere, Xu Jia, Tinne Tuytelaars, and Luc Van Gool. Dynamic filter networks. arXiv preprint arXiv:1605.09673, 2016.
|
| 243 |
+
|
| 244 |
+
Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. arXiv preprint arXiv:1602.02660, 2016.
|
| 245 |
+
|
| 246 |
+
Luc MJ Florack, Bart M ter Haar Romeny, Jan J Koenderink, and Max A Viergever. Scale and the differential structure of images. Image and Vision Computing, 10(6):376–388, 1992.
|
| 247 |
+
|
| 248 |
+
William T Freeman and Edward H Adelson. The design and use of steerable filters. IEEE Transactions on Pattern analysis and machine intelligence, 13(9):891–906, 1991.
|
| 249 |
+
|
| 250 |
+
Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in neural information processing systems, pp. 2537–2545, 2014.
|
| 251 |
+
|
| 252 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016.
|
| 253 |
+
|
| 254 |
+
Yacov Hel-Or and Patrick C Teo. Canonical decomposition of steerable functions. Journal of Mathematical Imaging and Vision, 9(1):83–95, 1998.
|
| 255 |
+
|
| 256 |
+
Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011.
|
| 257 |
+
|
| 258 |
+
Gao Huang, Zhuang Liu, and Kilian Q Weinberger. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016.
|
| 259 |
+
|
| 260 |
+
Jorn-Henrik Jacobsen, Jan van Gemert, Zhongyu Lou, and Arnold W.M. Smeulders. Structured ¨ receptive fields in cnns. 2016.
|
| 261 |
+
|
| 262 |
+
Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in Neural Information Processing Systems, pp. 2017–2025, 2015.
|
| 263 |
+
|
| 264 |
+
Tae-Kyun Kim and Roberto Cipolla. Canonical correlation analysis of video volume tensors for action categorization and detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(8):1415–1428, 2009.
|
| 265 |
+
|
| 266 |
+
Gou Koutaki and Keiichi Uchimura. Scale-space processing using polynomial representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2744– 2751, 2014.
|
| 267 |
+
|
| 268 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
|
| 269 |
+
|
| 270 |
+
Markus Michaelis and Gerald Sommer. A lie group approach to steerable filters. Pattern Recognition Letters, 16(11):1165–1174, 1995.
|
| 271 |
+
|
| 272 |
+
Edouard Oyallon and Stephane Mallat. Deep roto-translation scattering for object classification. ´ In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2865– 2873, 2015.
|
| 273 |
+
|
| 274 |
+
Pietro Perona. Steerable-scalable kernels for edge detection and junction analysis. In ECCV, pp. 3–18. Springer, 1992.
|
| 275 |
+
|
| 276 |
+
Oren Rippel, Jasper Snoek, and Ryan P Adams. Spectral representations for convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 2449–2457, 2015.
|
| 277 |
+
|
| 278 |
+
Eero P Simoncelli and William T Freeman. The steerable pyramid: a flexible architecture for multiscale derivative computation. In ICIP (3), pp. 444–447, 1995.
|
| 279 |
+
|
| 280 |
+
Patrick C Teo and Yacov Hel-Or. Lie generators for computing steerable functions. Pattern Recognition Letters, 19(1):7–17, 1998.
|
| 281 |
+
|
| 282 |
+
Mark Tygert, Joan Bruna, Soumith Chintala, Yann LeCun, Serkan Piantino, and Arthur Szlam. A mathematical motivation for complex-valued convolutional networks. Neural computation, 2016.
|
| 283 |
+
|
| 284 |
+
Michael Unser and Nicolas Chenouard. A unifying parametric framework for 2d steerable wavelet transforms. SIAM Journal on Imaging Sciences, 6(1):102–135, 2013.
|
| 285 |
+
|
| 286 |
+
Jimmy Wang, Jascha Sohl-Dickstein, and Bruno Olshausen. Unsupervised learning of lie group operators from image sequences. In Frontiers in Systems Neuroscience. Conference Abstract: Computational and systems neuroscience, 2009.
|
| 287 |
+
|
| 288 |
+
Tianfan Xue, Jiajun Wu, Katherine L Bouman, and William T Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. arXiv preprint arXiv:1607.02586, 2016.
|
| 289 |
+
|
| 290 |
+
# APPENDIX A VISUALIZING DSFN AND STN TRANSFORMATIONS
|
| 291 |
+
|
| 292 |
+

|
| 293 |
+
Figure 5: Visualizations of the learned transformations by the Dynamic Steerable Frame Network (DSFN top) and the Spatial Transformer Network (STN bottom) on the hand-gesture recognition dataset. The STN zooms and rotates the hands arbitrarily and apparently removes important information content thereby, leading to low classification accuracy. The DSFN acts locally and adaptively filters the hands in multiple ways. Note that the DSFN did not learn fully rotation invariant filters in all 4 cases, but in 3 cases produces different filter responses for different sides of the hand. However, it does follow the contours of the hand and segments the borders from the background. This indicates that full rotation invariance is not suitable for this task. This would be hard to assess if one had to choose the degree of invariance a priori, while the DSFN has the means to learn the necessary amount of local invariance.
|
| 294 |
+
|
| 295 |
+
# APPENDIX B EQUIVARIANCE PROOF & STEERING EQUATION DERIVATION
|
| 296 |
+
|
| 297 |
+
To prove that a frame is equivariant with respect to the action of a group transformation, determined by its generator $L _ { i }$ , we simply have to show that:
|
| 298 |
+
|
| 299 |
+
$$
|
| 300 |
+
{ \cal L } _ { i } \Phi ( x , y ) = { \bf B } _ { i } \Phi ( x , y ) ,
|
| 301 |
+
$$
|
| 302 |
+
|
| 303 |
+
Where $\mathbf { B } _ { i }$ is some $n \times n$ matrix.
|
| 304 |
+
|
| 305 |
+
In case of the Hermite polynomials (here considered up to second order), we have:
|
| 306 |
+
|
| 307 |
+
$$
|
| 308 |
+
\Phi ( x , y ) = \{ 1 , x , y , x ^ { 2 } - 1 , x y , y ^ { 2 } - 1 \} .
|
| 309 |
+
$$
|
| 310 |
+
|
| 311 |
+
To verify that these functions span an equivariant function space with respect to rotation, we apply the generator of rotations to the frame and verify that equation 13 holds. The generator of rotations
|
| 312 |
+
|
| 313 |
+
in the plane is given by $\begin{array} { r } { L _ { r } = - x \frac { d } { d y } + y \frac { d } { d x } } \end{array}$ , applied to each frame element, we get:
|
| 314 |
+
|
| 315 |
+
$$
|
| 316 |
+
L _ { r } \Phi ( x , y ) = \left[ \begin{array} { c } { 0 } \\ { y } \\ { - x } \\ { 2 x y } \\ { - x ^ { 2 } + y ^ { 2 } } \\ { - 2 x y } \end{array} \right] = \mathbf { B } _ { r } \left[ \begin{array} { c } { 1 } \\ { x } \\ { y } \\ { x ^ { 2 } - 1 } \\ { x y } \\ { y ^ { 2 } - 1 } \end{array} \right] .
|
| 317 |
+
$$
|
| 318 |
+
|
| 319 |
+
It is straightforward to solve this linear system and obtain the $6 \times 6$ matrix $B _ { r }$ :
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\mathbf { B } _ { r } = \left[ \begin{array} { c c c c c c c } { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \\ { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } \\ { 0 } & { - 1 } & { 0 } & { 0 } & { 0 } & { 0 } \\ { 0 } & { 0 } & { 0 } & { 0 } & { 2 } & { 0 } \\ { 0 } & { 0 } & { 0 } & { - 1 } & { 0 } & { 1 } \\ { 0 } & { 0 } & { 0 } & { 0 } & { - 2 } & { 0 } \end{array} \right] . \quad \left[ \begin{array} { c c c c c c } \end{array} \right.
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
Thus, we have proven that the function space is closed under the action of the group and the Hermite polynomials constitute an equivariant function space with respect to rotation.
|
| 326 |
+
|
| 327 |
+
Subsequently, the exponential map directly yields the steering equations collected in the interpolation matrix $\dot { \mathbf { A } } ^ { \theta }$ , that can rotate the whole frame by $\theta$ :
|
| 328 |
+
|
| 329 |
+
$$
|
| 330 |
+
\begin{array} { l l } { { \Phi ^ { \theta } ( x , y ) = e ^ { \theta \mathbf { B } _ { r } } \Phi ( x , y ) = \mathbf { A } ^ { \theta } \Phi ( x , y ) , } } & { { } } \\ { { \ } } & { { } } \\ { { \Phi ^ { \theta } ( x , y ) = \left[ \begin{array} { c c c c c c } { { 1 } } & { { 0 } } & { { 0 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { \cos \theta } } & { { \sin \theta } } & { { 0 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { - \sin \theta } } & { { \cos \theta } } & { { 0 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { { \frac { 1 } { 2 } } + { \frac { 1 } { 2 } } \cos 2 \theta } } & { { \sin 2 \theta } } & { { { \frac { 1 } { 2 } } - { \frac { 1 } { 2 } } \cos 2 \theta } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { - { \frac { 1 } { 2 } } \sin 2 \theta } } & { { \cos 2 \theta } } & { { { \frac { 1 } { 2 } } \sin 2 \theta } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { { \frac { 1 } { 2 } } - { \frac { 1 } { 2 } } \cos 2 \theta } } & { { - \sin 2 \theta } } & { { { \frac { 1 } { 2 } } + { \frac { 1 } { 2 } } \cos 2 \theta } } \end{array} \right] \left[ \begin{array} { c } { { 1 } } \\ { { x } } \\ { { y } } \\ { { x ^ { 2 } - 1 } } \\ { { x y } } \\ { { y ^ { 2 } - 1 } } \end{array} \right] . } } \end{array}
|
| 331 |
+
$$
|
| 332 |
+
|
| 333 |
+
$\Phi ^ { \theta } ( x , y )$ is the frame rotated by some angle $\theta$ . Combining this result with equation 7, gives us the possibility to rotate any learned feature by arbitrary and continuous angles $\theta$ . The whole procedure is completely analogous for any other Lie group transformation. Further, k-parameter transformation groups can be composed according to equation 9 from smaller groups. Here an example of the general linear group of rotation, anisotropic scalings and skew:
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
\Phi ^ { \{ \theta _ { 1 } , s _ { x } , s _ { y } , \theta _ { 2 } \} } ( x , y ) = { \bf A } ^ { \{ \theta _ { 1 } , s _ { x } , s _ { y } , \theta _ { 2 } \} } \Phi ( x , y ) = e ^ { \theta _ { 2 } \mathbf { B } _ { r } } \cdot e ^ { s _ { x } \mathbf { B } _ { s x } } \cdot e ^ { s _ { y } \mathbf { B } _ { s y } } \cdot e ^ { \theta _ { 1 } \mathbf { B } _ { r } } \Phi ( x , y ) .
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
# APPENDIX C BACKPROPAGATION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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "DYNAMIC STEERABLE FRAME NETWORKS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
98,
|
| 9 |
+
686,
|
| 10 |
+
121
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jorn-Henrik Jacobsen ¨ 1, Bert De Brabandere2, Arnold W.M. Smeulders1 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
143,
|
| 20 |
+
684,
|
| 21 |
+
160
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Department of Computer Science, University of Amsterdam 2ESAT-PSI, KU Leuven {j.jacobsen,a.w.m.smeulders}@uva.nl bert.debrabandere@esat.kuleuven.be ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
183,
|
| 30 |
+
172,
|
| 31 |
+
583,
|
| 32 |
+
229
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
267,
|
| 43 |
+
544,
|
| 44 |
+
282
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Filters in a convolutional network are typically parametrized in a pixel basis. As an orthonormal basis, pixels may represent any arbitrary vector in $\\mathbb { R } ^ { n }$ . In this paper, we relax this orthonormality requirement and extend the set of viable bases to the generalized notion of frames. When applying suitable frame bases to ResNets on Cifar- $^ { 1 0 + }$ we demonstrate improved error rates by substitution only. By exploiting the transformation properties of such generalized bases, we arrive at steerable frames, that allow to continuously transform CNN filters under arbitrary Lie-groups. Further allowing us to locally separate pose from canonical appearance. We implement this in the Dynamic Steerable Frame Network, that dynamically estimates the transformations of filters, conditioned on its input. The derived method presents a hybrid of Dynamic Filter Networks and Spatial Transformer Networks that can be implemented in any convolutional architecture, as we illustrate in two examples. First, we illustrate estimation properties of steerable frames with a Dynamic Steerable Frame Network, compared to a Dynamic Filter Network on the task of edge detection, where we show clear advantages of the derived steerable frames. Lastly, we insert the Dynamic Steerable Frame Network as a module in a convolutional LSTM on the task of limited-data hand-gesture recognition from video and illustrate effective dynamic regularization and show clear advantages over Spatial Transformer Networks. In this paper, we have laid out the foundations of Frame-based convolutional networks and Dynamic Steerable Frame Networks while illustrating their advantages for continuously transforming features and data-efficient learning. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
297,
|
| 54 |
+
764,
|
| 55 |
+
603
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
628,
|
| 66 |
+
336,
|
| 67 |
+
643
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "For images, as well as any other sensory data, convolutional networks are typically learned from individual pixel values. Using them as a basis of the learned parameters is the standard approach for almost all CNNs. In this paper, we argue, that the pixel basis is not necessarily the best choice for representing signals. We show, that suitable alternatives yield increased classification performance by replacement only, while such a replacement adds additional properties to the learned filters that allow us to transform them under arbitrary pre-defined Lie groups. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
659,
|
| 77 |
+
823,
|
| 78 |
+
742
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "From our perspective, the pixel values span an orthogonal basis for the filters in the network (in every layer). Such a pixel basis is complete as it may represent an arbitrary vector in $\\mathbb { R } ^ { n }$ by linear combination, where $n$ is the dimensionality of the filter. In this paper we consider alternatives to this basis, both orthogonal bases, and non-orthogonal frames, arriving at superior expressiveness through steerable function spaces that allow us to transform filters locally and continuously, conditioned on their input. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
750,
|
| 88 |
+
823,
|
| 89 |
+
833
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Utilizing the steerability properties of frames in practice, we propose Dynamic Steerable Frame Networks (DSFNs) that fill the gap between Spatial Transformer Networks (STNs) (Jaderberg et al., 2015) and Dynamic Filter Networks (DFNs) (De Brabandere et al., 2016). STNs are not locally adaptive, thus they fail in many cases where it is not beneficial to transform the image globally as it would destroy discriminative information (multiple deformable objects, discriminative dynamic movements) or where global registration is performed as a preprocessing step (medical images). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
840,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "DFNs are overcoming this restriction by locally transforming filters instead of globally transforming the whole feature stack as STNs do. However, DFNs are black boxes and not data-efficient, as they introduce many unconstrained parameters. Such a behavior is undesirable when data is limited and interpretability is key. DSFNs are locally adaptive, interpretable and data-efficient. They overcome the weaknesses of both approaches by combining their strengths, as illustrated in multiple experiments. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
188
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "Our contributions: ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
194,
|
| 121 |
+
294,
|
| 122 |
+
208
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "• We argue that suitable frame bases are beneficial when representing sensory data compared to the commonly used pixel basis. • Exploiting the transformation properties of frames further, we derive Dynamic Steerable Frame Networks that are able to continuously transform features locally and fill the gap between Spatial Transformer Networks and Dynamic Filter Networks. Dynamic Steerable Frame Networks learn to separate pose and feature. This enables the network to be locally equivariant or invariant with respect to certain feature poses, or even to perform in network quasi data-augmentation, while only the inputs and the backpropagated error signals determine which and to what extent these are applied. ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
215,
|
| 131 |
+
220,
|
| 132 |
+
825,
|
| 133 |
+
357
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 1
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "text",
|
| 139 |
+
"text": "We introduce the generalized notion of frames to CNNs that extend possible bases to learn from to non-orthogonal and overcomplete sets without loss in generalization. We show that many choices are possible, while overcomplete, non-orthogonal bases consistently outperform the pixel basis when applied to a ResNet (He et al., 2016) for image classification, as illustrated on Cifar- $^ { 1 0 + }$ . We derive the Dynamic Steerable Frame Networks, based on the notion of steerable frames, that can locally adapt the filters in every feature map, conditioned on the input. We illustrate the strength of the approach in an edge detection task, where it outperforms a Dynamic Filter Network. We further show in a limited data video classification task, that Dynamic Steerable Frame Networks improve classification performance over Spatial Transformer Networks when global invariance is not desirable. ",
|
| 140 |
+
"bbox": [
|
| 141 |
+
174,
|
| 142 |
+
369,
|
| 143 |
+
825,
|
| 144 |
+
507
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 1
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "text",
|
| 150 |
+
"text": "2 DYNAMICALLY STEERABLE FRAME NETWORKS ",
|
| 151 |
+
"text_level": 1,
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
529,
|
| 155 |
+
606,
|
| 156 |
+
545
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 FRAMES ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
560,
|
| 167 |
+
274,
|
| 168 |
+
575
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Frames are a natural generalization of orthogonal bases (Christensen, 2003). In frame terminology, an orthonormal basis is a Parseval-tight frame with unit norm. Every tight frame preserves the signal norm and exhibits perfect reconstruction. Frames can be seen as a superset of orthogonal bases in the sense that every basis is a frame, but not the reverse, see figure 1. The advantage of considering frames over orthogonal bases is that intrinsic signal properties can be spelled out explicitly in the new representation with the advantage, that these properties are directly accessible during learning. From an overcomplete representation, it will be more easily visible which part of the features is robust and which part is sensitive to accidental noise variations. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
587,
|
| 178 |
+
825,
|
| 179 |
+
698
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "image",
|
| 185 |
+
"img_path": "images/1209de074ff886412bb683f2c37e8c226b0b26766557f80a76c0ef5bd4c685d8.jpg",
|
| 186 |
+
"image_caption": [],
|
| 187 |
+
"image_footnote": [],
|
| 188 |
+
"bbox": [
|
| 189 |
+
352,
|
| 190 |
+
710,
|
| 191 |
+
648,
|
| 192 |
+
821
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "Figure 1: a) Is an orthonormal basis in $\\mathbb { R } ^ { 2 }$ , $u _ { 1 }$ and $u _ { 2 }$ are linearly independent and span the space of $\\mathbb { R } ^ { \\tilde { 2 } }$ . A dot in this example represents a filter in a convolutional network with coefficients $\\{ \\bar { v } _ { 1 } , v _ { 2 } \\}$ . b) A tight frame in $\\mathbb { R } ^ { 2 }$ . $u _ { 1 } , u _ { 2 }$ and $u _ { 3 }$ are linearly dependent. A dot in this example represents a convolutional filter with coefficients $\\{ v _ { 1 } , v _ { 2 } , v _ { 3 } \\}$ . The frame is an overcomplete representation, again spanning $\\mathbb { R } ^ { 2 }$ and again preserving the norm. Note that the set of filter coefficients as represented by the dot is not unique. Thus even if one $v$ is obstructed by noisy updates or measurements, the filter may still be robust. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
173,
|
| 201 |
+
843,
|
| 202 |
+
825,
|
| 203 |
+
940
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "In a standard convolutional network, a filter kernel is a linear combination over the standard basis for $l ^ { 2 } ( \\mathbb { N } )$ . The standard basis is composed from a delta function for every dimension and $W _ { i }$ is the $i _ { t h }$ filter of the network with parameters $w _ { n } ^ { i }$ : ",
|
| 210 |
+
"bbox": [
|
| 211 |
+
173,
|
| 212 |
+
103,
|
| 213 |
+
825,
|
| 214 |
+
146
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "equation",
|
| 220 |
+
"img_path": "images/8441fd7c3be5e9bbc9381d851513ee4c55cc69dacee6b7593e19b3735133f160.jpg",
|
| 221 |
+
"text": "$$\n\\begin{array} { l } { { \\displaystyle e _ { 1 } = \\{ 1 , 0 , 0 , . . . , 0 \\} } } \\\\ { { \\displaystyle e _ { 2 } = \\{ 0 , 1 , 0 , . . . , 0 \\} } } \\\\ { { \\displaystyle . . . } } \\\\ { { \\displaystyle e _ { n } = \\{ 0 , 0 , 0 , . . . , 1 \\} } } \\\\ { { \\displaystyle W _ { i } = \\sum _ { n = 1 } ^ { N } w _ { n } ^ { i } e _ { n } } } \\end{array}\n$$",
|
| 222 |
+
"text_format": "latex",
|
| 223 |
+
"bbox": [
|
| 224 |
+
429,
|
| 225 |
+
150,
|
| 226 |
+
570,
|
| 227 |
+
265
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 2
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "Without loss of generalization the orthonormal standard basis can be replaced by a frame to include non-orthogonality, overcompleteness, increased symmetries or steerability into the representation. Changing from the pixel to an arbitrary frame is as simple as replacing the pixel basis $e _ { n }$ with a frame of choice with elements $v _ { n }$ as follows: ",
|
| 234 |
+
"bbox": [
|
| 235 |
+
173,
|
| 236 |
+
267,
|
| 237 |
+
825,
|
| 238 |
+
323
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "equation",
|
| 244 |
+
"img_path": "images/228a26df3bc175d9a9b3b388c9be343303e3a2191af3ed63d8c3b14753a2d4ab.jpg",
|
| 245 |
+
"text": "$$\nW _ { i } = \\sum _ { n = 1 } ^ { N } w _ { n } ^ { i } v _ { n }\n$$",
|
| 246 |
+
"text_format": "latex",
|
| 247 |
+
"bbox": [
|
| 248 |
+
442,
|
| 249 |
+
325,
|
| 250 |
+
555,
|
| 251 |
+
369
|
| 252 |
+
],
|
| 253 |
+
"page_idx": 2
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"type": "text",
|
| 257 |
+
"text": "where $w _ { 1 } ^ { i } , . . . , w _ { n } ^ { i }$ are again the filter coefficients being learned. ",
|
| 258 |
+
"bbox": [
|
| 259 |
+
173,
|
| 260 |
+
372,
|
| 261 |
+
584,
|
| 262 |
+
388
|
| 263 |
+
],
|
| 264 |
+
"page_idx": 2
|
| 265 |
+
},
|
| 266 |
+
{
|
| 267 |
+
"type": "text",
|
| 268 |
+
"text": "In practice for CNNs working on images we investigate derived bases from steerability requirements, orthogonal polynomials, Framelets and members of the Gaussian derivative family. See figure 2 for a selection of frames. ",
|
| 269 |
+
"bbox": [
|
| 270 |
+
176,
|
| 271 |
+
395,
|
| 272 |
+
823,
|
| 273 |
+
435
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "image",
|
| 279 |
+
"img_path": "images/7fe853bf5ccd983f773f17b6397559b1741d5d19c264fb985b2a4a5839b8e0eb.jpg",
|
| 280 |
+
"image_caption": [
|
| 281 |
+
"Figure 2: An illustrative plot of multiple 3x3 spanning sets: a) Pixel-basis, b) Orthogonal Polynomial, c) Non-orthogonal Frame. Note the increased symmetries in b) and c). "
|
| 282 |
+
],
|
| 283 |
+
"image_footnote": [],
|
| 284 |
+
"bbox": [
|
| 285 |
+
352,
|
| 286 |
+
439,
|
| 287 |
+
643,
|
| 288 |
+
523
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "2.2 STEERING FRAMES UNDER ARBITRARY LIE-GROUPS ",
|
| 295 |
+
"text_level": 1,
|
| 296 |
+
"bbox": [
|
| 297 |
+
173,
|
| 298 |
+
577,
|
| 299 |
+
578,
|
| 300 |
+
592
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 2
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "A pleasant property of many frames is steerability (Unser & Chenouard, 2013; Hel-Or & Teo, 1998; Michaelis & Sommer, 1995), the power of a function to represent transformed versions of itself by linear combination. The advantage of steerability in CNNs working on images is the ability to produce infinitely many transformed variants of a visual feature $f ^ { \\tau } ( \\breve { x } , y ) \\in \\breve { \\mathbb { R } ^ { 2 } } \\to \\mathbb { R }$ from its canonical appearance. ",
|
| 307 |
+
"bbox": [
|
| 308 |
+
174,
|
| 309 |
+
603,
|
| 310 |
+
825,
|
| 311 |
+
674
|
| 312 |
+
],
|
| 313 |
+
"page_idx": 2
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"type": "text",
|
| 317 |
+
"text": "To achieve this goal we cast these variations as the result of the action of a family of transformations $g ( \\tau )$ on the canonical features $f ( x , y )$ , where $\\tau \\in R ^ { k }$ parametrizes these $k$ -parameter transformations. If the problem at hand requires the distinction between multiple unknown poses of the same feature in a typical CNN they all have to be computed exhaustively to determine if a particular pose is present or not. Things go out of hand when the search space is a continuous transformation group, such as the Lie group of affine transformations, requiring $k \\infty$ number of feature maps which is computationally intractable or requires expensive searches over all possible transformations (Gens & Domingos, 2014). One way out is to coarsely sample a few equally spaced points on the equivariant transformation manifold or to restrict the space to a smaller group (Cohen & Welling, 2016; Dieleman et al., 2016). What remains, however, is that the number of resulting feature maps for more general groups quickly becomes infeasible. An elegant way to overcome these limitations is the concept of steerability by (Freeman & Adelson, 1991; Perona, 1992; Unser & Chenouard, 2013) which is taken as inspiration here. ",
|
| 318 |
+
"bbox": [
|
| 319 |
+
174,
|
| 320 |
+
680,
|
| 321 |
+
825,
|
| 322 |
+
861
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "In this work, we focus on Lie groups. Transformations $g ( \\tau )$ over a range constitute a Lie group if they are closed under composition, they are associative, they are invertible, there exists an identity element, and their maps for inverse and composition are infinitely differentiable (Hel-Or & Teo, 1998). Teo and colleagues (Teo & Hel-Or, 1998) have given the following definition. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
867,
|
| 332 |
+
825,
|
| 333 |
+
924
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "Definition 1 (Steerability): $A$ function $f ( x , y )$ : $\\mathbb { R } ^ { 2 } \\to \\mathbb { R }$ is steerable under a $k$ -parameter Lie transformation group $G$ if any transformation $g ( \\tau ) \\in G$ of f can be written as a linear combination of a fixed, finite set of frame functions $\\phi _ { m } ( x , y )$ : ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
173,
|
| 342 |
+
102,
|
| 343 |
+
825,
|
| 344 |
+
147
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "equation",
|
| 350 |
+
"img_path": "images/8743887e9f779f7b091dc88bf8ad807f7770344cc387f5d808755bf87455af8d.jpg",
|
| 351 |
+
"text": "$$\ng ( \\tau ) f ( x , y ) = \\sum _ { m = 1 } ^ { M } \\beta _ { m } ( \\tau ) \\phi _ { m } ( x , y ) = \\mathbf { B } ^ { T } ( \\tau ) \\Phi ( x , y )\n$$",
|
| 352 |
+
"text_format": "latex",
|
| 353 |
+
"bbox": [
|
| 354 |
+
321,
|
| 355 |
+
154,
|
| 356 |
+
676,
|
| 357 |
+
196
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 3
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "Where $\\mathbf { B } ^ { T } ( \\tau )$ denote the collected steering functions describing the transformation and $\\Phi ( x , y )$ the collected steerable frame functions. ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
173,
|
| 366 |
+
205,
|
| 367 |
+
823,
|
| 368 |
+
234
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 3
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "A function steerable under a k-parameter Lie group is capable of representing infinitely many states of a particular set of transformations. In many cases, only a finite set of frame functions is needed to represent these. In CNN terms, this means that a limited number of feature maps are sufficient to represent complete continuous transformation groups when the frame functions and the steering functions are chosen appropriately. Finding appropriate frame functions is the biggest challenge in steering arbitrary functions over arbitrary Lie groups. ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
173,
|
| 377 |
+
241,
|
| 378 |
+
825,
|
| 379 |
+
325
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 3
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "text",
|
| 385 |
+
"text": "To study the action of a Lie group $G$ on a function we use the close relation between the Lie group and its tangent space. The Algebra’s tangent space spanned by the group’s infinitesimal generators. The differential operators of the group action are obtained by computing the derivative of the group action with respect to its parameters at the identity element. A Lie Algebra can be considered as an ”infinitesimal” Lie group. If the group is simply connected, the group action on a visual feature $f ( x , y )$ can be obtained via the exponential map (Teo & Hel-Or, 1998): ",
|
| 386 |
+
"bbox": [
|
| 387 |
+
173,
|
| 388 |
+
330,
|
| 389 |
+
825,
|
| 390 |
+
416
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "equation",
|
| 396 |
+
"img_path": "images/0ac891cee9ed4e653feefd71b04f801689d7a04752806b4b5d5bd63a4ec12ac7.jpg",
|
| 397 |
+
"text": "$$\ng ( \\tau _ { 1 } , . . . , \\tau _ { k } ) f ( x , y ) = e ^ { ( \\sum _ { i = 1 } ^ { k } \\tau _ { i } L _ { i } ) } f ( x , y )\n$$",
|
| 398 |
+
"text_format": "latex",
|
| 399 |
+
"bbox": [
|
| 400 |
+
359,
|
| 401 |
+
422,
|
| 402 |
+
638,
|
| 403 |
+
444
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "where ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
452,
|
| 413 |
+
217,
|
| 414 |
+
465
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "equation",
|
| 420 |
+
"img_path": "images/faef8b868c70aa1482baacf72220eeb14c9959ca8089f8fec76a99a35b000c46.jpg",
|
| 421 |
+
"text": "$$\ne ^ { \\tau _ { i } L _ { i } } = I + \\tau _ { i } L _ { i } + \\frac { 1 } { 2 ! } \\tau _ { i } ^ { 2 } L _ { i } ^ { 2 } + . . .\n$$",
|
| 422 |
+
"text_format": "latex",
|
| 423 |
+
"bbox": [
|
| 424 |
+
388,
|
| 425 |
+
462,
|
| 426 |
+
609,
|
| 427 |
+
492
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "where $L _ { i }$ are the group’s infinitesimal generators and $I$ is the identity element. This implies that one can compute the Taylor expansion with respect to the desired transformation group parameters to obtain elements of the group. If a finite frame set is equivariant towards the desired transformation group (it contains the orbit of the function to be steered), the series expansion yields linearly dependent elements after a finite number of steps. Then the frame is globally steerable under the desired transformation group. If this is not the case, as for example when scaling a Gaussian function, a finite frame set is only sufficient to accurately steer the function over a bounded interval, the function is locally steerable, but not globally. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
173,
|
| 436 |
+
494,
|
| 437 |
+
825,
|
| 438 |
+
608
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "2.3 SEPARATING POSE AND CANONICAL APPEARANCE ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
626,
|
| 449 |
+
563,
|
| 450 |
+
640
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "When training a CNN the functions represented by each feature naturally change from update to update. It is desirable to separate the frame functions from the effective features as learned by the network. In such a Structured Receptive Fields Network (RFNN) (Jacobsen et al., 2016), each filters parameters are not its mere pixel values, but the coefficients weighting the sum over a fixed frame set. Thus, analogous to equation 1, every effective filter $W _ { i } ( x , y )$ has the following form: ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
173,
|
| 459 |
+
650,
|
| 460 |
+
825,
|
| 461 |
+
722
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "equation",
|
| 467 |
+
"img_path": "images/5236c9dc9a1efc6a663e9278dc95a4a93e004771f58fb767fed1596b969c78d9.jpg",
|
| 468 |
+
"text": "$$\nW _ { i } ( x , y ) = w _ { 1 } ^ { i } v _ { 1 } + w _ { 2 } ^ { i } v _ { 2 } + \\ldots + w _ { n } ^ { i } v _ { n } ,\n$$",
|
| 469 |
+
"text_format": "latex",
|
| 470 |
+
"bbox": [
|
| 471 |
+
364,
|
| 472 |
+
729,
|
| 473 |
+
632,
|
| 474 |
+
747
|
| 475 |
+
],
|
| 476 |
+
"page_idx": 3
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"type": "text",
|
| 480 |
+
"text": "where $v _ { n }$ denotes the $n _ { t h }$ element of the frame. ",
|
| 481 |
+
"bbox": [
|
| 482 |
+
174,
|
| 483 |
+
756,
|
| 484 |
+
485,
|
| 485 |
+
770
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "To be able to separate a features pose from its canonical appearance, we are interested in a steerable version of an arbitrary filter $W _ { i } ( x , y )$ under a $\\mathbf { k }$ -parameter Lie group. From 5 follows: ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
776,
|
| 495 |
+
825,
|
| 496 |
+
806
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/3516aa94f2dcc7134e268e55d9d4afd339a59facd02bb74ea7a6d2171235d2e3.jpg",
|
| 503 |
+
"text": "$$\ng ( \\tau ) W _ { i } ( x , y ) = \\sum _ { n = 1 } ^ { N } w _ { n } ^ { i } g ( \\tau ) v _ { n } ^ { i } .\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
392,
|
| 507 |
+
813,
|
| 508 |
+
606,
|
| 509 |
+
856
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "And by substituting according to equation 2 it follows: ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
863,
|
| 519 |
+
532,
|
| 520 |
+
878
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "equation",
|
| 526 |
+
"img_path": "images/492fb49717e4af90e712aff31c93341c11189ffd13d4b432c41f0cbf28158270.jpg",
|
| 527 |
+
"text": "$$\ng ( \\tau ) W _ { i } ( x , y ) = \\sum _ { n = 1 } ^ { N } w _ { n } ^ { i } \\sum _ { m = 1 } ^ { M } \\beta _ { m } ( \\tau ) \\phi _ { m } ( x , y ) .\n$$",
|
| 528 |
+
"text_format": "latex",
|
| 529 |
+
"bbox": [
|
| 530 |
+
346,
|
| 531 |
+
885,
|
| 532 |
+
650,
|
| 533 |
+
928
|
| 534 |
+
],
|
| 535 |
+
"page_idx": 3
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"type": "text",
|
| 539 |
+
"text": "Thus it is sufficient to determine the group action on the fixed frame by steering it to separate the canonical feature itself from its $\\mathrm { k }$ -parameter variants, i.e. $v _ { n } ^ { i }$ govern the weight of each frame coefficient to form a feature $W _ { i } ( x , y )$ and $\\beta _ { m }$ are the steering functions governing the transformation of $g ( \\tau )$ acting on $W _ { i } ( x , y )$ as a whole. From now on learning and transforming features amounts to a point-wise multiplication of frame coefficients with cos, sin and exp activation functions, which is suitable for learning in a CNN. ",
|
| 540 |
+
"bbox": [
|
| 541 |
+
174,
|
| 542 |
+
103,
|
| 543 |
+
825,
|
| 544 |
+
188
|
| 545 |
+
],
|
| 546 |
+
"page_idx": 4
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"type": "text",
|
| 550 |
+
"text": "2.4 DERIVING THE FRAME AND STEERING FUNCTIONS ",
|
| 551 |
+
"text_level": 1,
|
| 552 |
+
"bbox": [
|
| 553 |
+
173,
|
| 554 |
+
204,
|
| 555 |
+
566,
|
| 556 |
+
218
|
| 557 |
+
],
|
| 558 |
+
"page_idx": 4
|
| 559 |
+
},
|
| 560 |
+
{
|
| 561 |
+
"type": "text",
|
| 562 |
+
"text": "Now the problem is reduced to finding a suitable frame as a function space underlying the learned filters. There are many approaches to derive a function space that is closed under the desired transformation group and as we show, many options give rise to bases that work considerably well when inserted into state-of-the-art CNNs. The most straightforward way is to derive it from the group’s infinitesimal generators, for brevity we refer the interested reader to (Hel-Or & Teo, 1998) and directly cite some derived equivariant function spaces from the paper. ",
|
| 563 |
+
"bbox": [
|
| 564 |
+
176,
|
| 565 |
+
229,
|
| 566 |
+
823,
|
| 567 |
+
314
|
| 568 |
+
],
|
| 569 |
+
"page_idx": 4
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"type": "table",
|
| 573 |
+
"img_path": "images/702dc275f77d752401d91c9a6d68438e61e8cab2c0b7319c2002089f055cb097.jpg",
|
| 574 |
+
"table_caption": [],
|
| 575 |
+
"table_footnote": [],
|
| 576 |
+
"table_body": "<table><tr><td colspan=\"2\">Steerable Function Spaces</td></tr><tr><td>X,y Translation</td><td>xPyqeax+βy</td></tr><tr><td>X,y Scaling</td><td>xayβln(x)pln(y)q</td></tr><tr><td>Rotation & Uniform Scaling</td><td>raln(r)peik</td></tr><tr><td>X,y Translation & x,y Scaling& Rotation</td><td>xpyq</td></tr></table>",
|
| 577 |
+
"bbox": [
|
| 578 |
+
287,
|
| 579 |
+
324,
|
| 580 |
+
709,
|
| 581 |
+
412
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 4
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "Table 1: Examples of function spaces closed under various non-Abelian multi-parameter groups, as derived in (Hel-Or & Teo, 1998). They can readily be used as a frame for CNNs by the procedure we derive here. ",
|
| 588 |
+
"bbox": [
|
| 589 |
+
178,
|
| 590 |
+
417,
|
| 591 |
+
820,
|
| 592 |
+
460
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 4
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "text",
|
| 598 |
+
"text": "Once a frame is chosen, we can simply check if it is closed under the given transformation group by verifying for each generator $L _ { i }$ that: ",
|
| 599 |
+
"bbox": [
|
| 600 |
+
174,
|
| 601 |
+
472,
|
| 602 |
+
823,
|
| 603 |
+
500
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 4
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "equation",
|
| 609 |
+
"img_path": "images/f11080a1e4b93c533781111422ea3b7601b121aa7e5bea2009ab5cce8e302ab0.jpg",
|
| 610 |
+
"text": "$$\n{ \\cal L } _ { i } \\Phi ( x , y ) = { \\bf B } _ { i } \\Phi ( x , y ) ,\n$$",
|
| 611 |
+
"text_format": "latex",
|
| 612 |
+
"bbox": [
|
| 613 |
+
415,
|
| 614 |
+
506,
|
| 615 |
+
583,
|
| 616 |
+
522
|
| 617 |
+
],
|
| 618 |
+
"page_idx": 4
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"type": "text",
|
| 622 |
+
"text": "where $\\mathbf { B } _ { i }$ is some finite dimensional $n \\times n$ matrix. If this is the case, the function space is equivariant under the transformation group and we can compute the steering equations of the group composed of multiple generators as: ",
|
| 623 |
+
"bbox": [
|
| 624 |
+
174,
|
| 625 |
+
529,
|
| 626 |
+
825,
|
| 627 |
+
569
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 4
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "equation",
|
| 633 |
+
"img_path": "images/2db75ae21bb88508a80369282050ab6c79a97eb903ff3832d56068df0fc493db.jpg",
|
| 634 |
+
"text": "$$\n\\mathbf { A } ( \\tau ) = e ^ { \\tau _ { k } \\mathbf { B } _ { k } } \\cdot \\ldots \\cdot e ^ { \\tau _ { 1 } \\mathbf { B } _ { 1 } } .\n$$",
|
| 635 |
+
"text_format": "latex",
|
| 636 |
+
"bbox": [
|
| 637 |
+
408,
|
| 638 |
+
568,
|
| 639 |
+
589,
|
| 640 |
+
587
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "To arrive at a practical solution, we have to consider the problem that locally bounded functions can not be steered globally with a finite steerable frame. To achieve a suitable approximation for our case, we separate scaling into two parts, an inner $\\{ \\sigma _ { x } , \\sigma _ { y } \\}$ and an outer scale $\\sigma _ { a }$ , where a stands for aperture. The inner scale can directly be steered via the above derivation and represents the slope of the local measurement taken by a filter, while the outer scale represents the size and shape of the filters receptive field. To achieve anisotropic receptive fields, we propose to first steer the scale at every pixel and steer the derived function space on this non-uniformly scaled grid, resulting in locally deformable receptive fields. Due to associativity of convolution, we can combine steering the derived function space and the receptive field scale into one operation. In this work, we use a second order approximation of the Gaussian that is capable of giving a good approximation to common CNN receptive field sizes 3x3, 5x5 and $7 \\mathbf { x } 7$ . For scaling over larger ranges, we recommend the spectral decomposition approach (Koutaki & Uchimura, 2014). ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
173,
|
| 649 |
+
588,
|
| 650 |
+
825,
|
| 651 |
+
756
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "2.5 DYNAMIC STEERABLE FRAME NETWORKS ",
|
| 658 |
+
"text_level": 1,
|
| 659 |
+
"bbox": [
|
| 660 |
+
174,
|
| 661 |
+
772,
|
| 662 |
+
511,
|
| 663 |
+
786
|
| 664 |
+
],
|
| 665 |
+
"page_idx": 4
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"type": "text",
|
| 669 |
+
"text": "Estimating the local pose of a feature from a steerable function space is analytically intractable in the case of most multi-parameter groups. In this paper, we introduce the Dynamic Steerable Frame Network that combines the advantages of steerable function spaces with the power of neural network function estimators, by estimating pose parameters from a function space equivariant under the transformation group at hand. Specifically, our architecture is inspired by the recently introduced Dynamic Filter Networks (De Brabandere et al., 2016). The Dynamic Filter Network (DFN) generates one feature per location in a feature map, which boils down to a locally connected convolution layer, for which the parameters are generated by a different network that estimates them from the input, yielding a different filter kernel for every location in the input. ",
|
| 670 |
+
"bbox": [
|
| 671 |
+
173,
|
| 672 |
+
797,
|
| 673 |
+
825,
|
| 674 |
+
924
|
| 675 |
+
],
|
| 676 |
+
"page_idx": 4
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"type": "image",
|
| 680 |
+
"img_path": "images/8e9ca01d50e81f5ad21a8fc207c29b039e57abdf32a173fd09a8525ff1cb9e84.jpg",
|
| 681 |
+
"image_caption": [
|
| 682 |
+
"Figure 3: The Dynamic Steerable Frame Network. The network transforms an input image to a steerable frame $\\Phi$ (here an example with 3 frame functions) and estimates the local feature pose at each location in this equivariant space with a small pose estimating network. Then it outputs a set of pose coordinates $\\tau _ { \\mathbf { k } }$ , that are dependent on the group parametrization chosen. They are inserted into the matrix of steering equations $\\beta ( \\tau )$ and applied to the frame $\\Phi$ , yielding the locally steered frame. In the same operation, we integrate the weights $w _ { n }$ , that govern the feature maps canonical feature appearance, these are the weights learned by a normal CNN. The Dynamic Steerable Frame Network can decide to commute with a set of poses, to be invariant to them, to only look for certain poses or to act like a normal CNN, where each feature map has one pose and one canonical appearance assigned to itself. This is only determined by the input data and the backpropagated error signals. "
|
| 683 |
+
],
|
| 684 |
+
"image_footnote": [],
|
| 685 |
+
"bbox": [
|
| 686 |
+
253,
|
| 687 |
+
97,
|
| 688 |
+
745,
|
| 689 |
+
218
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "The DFN takes the form: ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
383,
|
| 699 |
+
339,
|
| 700 |
+
397
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "equation",
|
| 706 |
+
"img_path": "images/b8e822c49dead61465881b6c3655e2f64fe8b08a35a4d010d471a2c7754cd7cb.jpg",
|
| 707 |
+
"text": "$$\nO ( x , y ) = F _ { \\tau } ^ { x , y } ( I ( x , y ) ) ,\n$$",
|
| 708 |
+
"text_format": "latex",
|
| 709 |
+
"bbox": [
|
| 710 |
+
413,
|
| 711 |
+
397,
|
| 712 |
+
583,
|
| 713 |
+
414
|
| 714 |
+
],
|
| 715 |
+
"page_idx": 5
|
| 716 |
+
},
|
| 717 |
+
{
|
| 718 |
+
"type": "text",
|
| 719 |
+
"text": "where $F _ { \\tau } ^ { x , y }$ are generated by another network from the input. We propose the Dynamic Steerable Frame Network, where the parameters $\\theta$ that condition the filter are pose transformation parameters of the steerable function space, estimated from the input, similar to how it is done in the Spatial Transformer Networks, just that in our case we aim for locally adaptive filters. The filters $F _ { \\tau } ^ { x , y }$ share the same set of weights in the whole feature map, so they represent the same canonical appearance everywhere. While their local pose is dynamically estimated by a Pose-Generating Network $\\Psi$ that takes the form: ",
|
| 720 |
+
"bbox": [
|
| 721 |
+
173,
|
| 722 |
+
417,
|
| 723 |
+
825,
|
| 724 |
+
513
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 5
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "equation",
|
| 730 |
+
"img_path": "images/f6ab69166cb2a028b4dd73d78a407e99b328671fc0f3183c1b9f898ffd3f918e.jpg",
|
| 731 |
+
"text": "$$\n\\tau ( x , y ) = \\Psi ( I ( x , y ) ) .\n$$",
|
| 732 |
+
"text_format": "latex",
|
| 733 |
+
"bbox": [
|
| 734 |
+
424,
|
| 735 |
+
513,
|
| 736 |
+
573,
|
| 737 |
+
530
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 5
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "Thus, the canonical appearance is translation invariant, but its geometrical pose is not. In terms of equation 5, this means the set of $w _ { n } ^ { i }$ is fixed, but the frame $v _ { n } ^ { \\tau ( x , y ) }$ is locally transformed under a pre-defined k-parameter group with parameters $\\tau$ . See figure 5 for an illustration. ",
|
| 744 |
+
"bbox": [
|
| 745 |
+
174,
|
| 746 |
+
534,
|
| 747 |
+
825,
|
| 748 |
+
579
|
| 749 |
+
],
|
| 750 |
+
"page_idx": 5
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"type": "text",
|
| 754 |
+
"text": "The method consists of two parts: i) A Pose-Generating network estimating local pose parameters of a feature conditioned on the input from a steerable input space. ii) A Dynamic Filtering mechanism, convolving transformed versions of a feature with every location in the input feature map, based on the estimates of the pose generating network. Due to linearity of convolution, we can first perform a transformation of the input into the steerable frame space and in this space we perform i) and ii) as point-wise multiplications. ",
|
| 755 |
+
"bbox": [
|
| 756 |
+
174,
|
| 757 |
+
585,
|
| 758 |
+
825,
|
| 759 |
+
670
|
| 760 |
+
],
|
| 761 |
+
"page_idx": 5
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"type": "text",
|
| 765 |
+
"text": "3 RELATED WORK ",
|
| 766 |
+
"text_level": 1,
|
| 767 |
+
"bbox": [
|
| 768 |
+
176,
|
| 769 |
+
689,
|
| 770 |
+
344,
|
| 771 |
+
705
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 5
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "Steerable Filters is a concept established early for signal processing. Initially introduced by (Freeman & Adelson, 1991), the concept was extended to the Steerable Pyramid by (Simoncelli & Freeman, 1995) and further extended to a Lie-group formulation by (Hel-Or & Teo, 1998; Michaelis & Sommer, 1995). Further, steerability has recently been extended to tight frames, presenting Simoncelli’s Steerable Pyramid and multiple other Wavelets arising as a special case of the non-orthogonal Riesz transform (Unser & Chenouard, 2013). Steerable pyramids have been applied to CNNs as a pre-processing step (Xue et al., 2016), but have not yet been learnable. We incorporate steerable frames in CNNs to increase their de facto expressiveness and to allow them to learn their configurations, rather than picking them a priori. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
720,
|
| 781 |
+
825,
|
| 782 |
+
848
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 5
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Convolutional Networks with alternative bases have been proposed with various degrees of flexibility. A number of works utilizes change of basis to stabilize training and increase convergence behavior (Rippel et al., 2015; Arjovsky et al., 2015). Another line of research is concerned with complex-valued CNNs, either learned (Tygert et al., 2016), or fully designed like the Scattering networks (Bruna & Mallat, 2013; Oyallon & Mallat, 2015). ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
174,
|
| 791 |
+
854,
|
| 792 |
+
823,
|
| 793 |
+
924
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 5
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Scattering, as well as the complex-valued networks, rest upon a direct connection between the signal processing literature and CNNs. Inspired by the former, Structured Receptive Field Networks are learned from an overcomplete multi-scale frame, effectively improving performance for small datasets due to restricted feature spaces (Jacobsen et al., 2016). Also related is the work on Groupequivariant CNNs (Cohen & Welling, 2016) and Cyclic Pooling (Dieleman et al., 2016), where equivariance towards the dihedral group is theoretically guaranteed, yielding increased accuracy. Inspired by CNNs learned from alternative bases, we introduce the general principle of Frame-based convolutional networks that allow for non-orthogonal, overcomplete and steerable feature spaces. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
174,
|
| 802 |
+
103,
|
| 803 |
+
825,
|
| 804 |
+
214
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 6
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Another way to impose structure onto CNN representations and subsequently increase their dataefficiency is to incorporate explicit geometrical transformations into them. Either by learning transformation operators and group representations (Cohen et al., 2014; Wang et al., 2009). Or by predefining the possible transformations, as done in Transforming Autoencoders (Hinton et al., 2011), which map their inputs from the image to pose space through a neural network. The Spatial Transformer Networks (Jaderberg et al., 2015) learn global transformation parameters in a similar way while applying them to a nonlinear co-registration of the feature stack to some learned pose. This yields especially high performance on tasks where centering the objects is beneficial. Dynamic Filter Networks move one step further and estimate filters for each location, conditioned on their input. These approaches are all dynamic in a sense that they condition their parameters on the input appearance. We combine the idea of Dynamic Filter Networks with explicit pose prediction into Dynamic Steerable Frame Networks that can estimate poses from continuous input space, conditioned on the input. As such, we overcome the difficulty of estimating local pose, while being able to separate pose and feature learning globally. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
174,
|
| 813 |
+
222,
|
| 814 |
+
825,
|
| 815 |
+
416
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 6
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "4 EXPERIMENTS ",
|
| 822 |
+
"text_level": 1,
|
| 823 |
+
"bbox": [
|
| 824 |
+
176,
|
| 825 |
+
439,
|
| 826 |
+
326,
|
| 827 |
+
455
|
| 828 |
+
],
|
| 829 |
+
"page_idx": 6
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"type": "text",
|
| 833 |
+
"text": "4.1 GENERALIZING PIXELS TO FRAMES ON CIFAR- $^ { 1 0 + }$ ",
|
| 834 |
+
"text_level": 1,
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
472,
|
| 838 |
+
568,
|
| 839 |
+
486
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 6
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "To show the validity of general frame representations, we compare different bases in a state-of-theart pre-activation deep residual network architecture (He et al., 2016) on the Cifar- $^ { 1 0 + }$ (Krizhevsky & Hinton, 2009) dataset with moderate data augmentation of crops and flips. ",
|
| 846 |
+
"bbox": [
|
| 847 |
+
174,
|
| 848 |
+
498,
|
| 849 |
+
825,
|
| 850 |
+
541
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 6
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "table",
|
| 856 |
+
"img_path": "images/21a66c3bcc01df1babb3c2eed5f1e2f3b14fedd3fc7e84cf3717ed158137d32e.jpg",
|
| 857 |
+
"table_caption": [],
|
| 858 |
+
"table_footnote": [],
|
| 859 |
+
"table_body": "<table><tr><td colspan=\"4\">Error on Cifar10+</td></tr><tr><td>Method</td><td>Pixel</td><td>Image Frame</td><td>Naive Frame</td></tr><tr><td>ResNet-20</td><td>7.85%</td><td>7.61%</td><td>8.97%</td></tr><tr><td>ResNet-56</td><td>6.68%</td><td>6.08%</td><td>7.30%</td></tr><tr><td>ResNet-110</td><td>5.84%</td><td>5.34%</td><td>6.96%</td></tr><tr><td>Densenet K12 L40</td><td>5.28%</td><td>4.99%</td><td>6.39%</td></tr><tr><td>Densenet K12 L100</td><td>4.16%</td><td>3.78%</td><td>5.21%</td></tr></table>",
|
| 860 |
+
"bbox": [
|
| 861 |
+
294,
|
| 862 |
+
558,
|
| 863 |
+
702,
|
| 864 |
+
678
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 6
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Table 2: Results on Cifar10 with moderate data-augmentation (crops/flips) with the recently introduced pre-activation Residual network and Densenet with the standard pixel-basis, a steerable frame basis designed for natural images and the naive steerable $x ^ { p } y ^ { q }$ frame from table 3 that does not take natural image statistics into account. The natural image statistics based frame outperforms the pixelbasis consistently, while the naive frame consinstently performs about $1 \\%$ worse than the baseline, highlighting the benefit of a frame suitable for the type of input data. ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
173,
|
| 873 |
+
686,
|
| 874 |
+
825,
|
| 875 |
+
770
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 6
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "We evaluated our approach on multiple networks and network sizes. The setup used for the ResNet is as described in (He et al., 2016). The batch size is chosen to be 64 and we train for 164 epochs with the described learning rate decrease. The ResNet architectures used are without bottlenecks having 20, 56 and 110 layers. For the Densenets we follow (Huang et al., 2016) and evaluate on the ${ \\mathrm { K } } { = } 1 2$ and $_ { \\mathrm { L = 4 0 } }$ , and the ${ \\mathrm { K } } { = } 1 2$ and ${ \\mathrm { L } } { = } 1 0 0$ models. We run our experiments in Keras (Chollet, 2015) and Tensorflow (Abadi et al., 2016). In the first experiment, we run the models on the standard pixel basis to get a viable baseline. Secondly, we replace the pixel-basis with widely-used frames that take natural image statistics into account, namely non-orthogonal, overcomplete Gaussian derivatives (Florack et al., 1992) and non-orthogonal framelets (Daubechies et al., 2003) in an alternating fashion, yielding superior performance compared to the pixel-basis by replacement only. ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
785,
|
| 885 |
+
825,
|
| 886 |
+
924
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 6
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "We also show that the naive $x ^ { p } y ^ { q }$ frame (see table 1) performs consistently worse than the other two choices, as it does not take natural image properties into account, while it is important to mention that this $1 \\%$ performance decrease also comes with additional properties that might be highly beneficial in particular tasks. We have also found orthogonal polynomials to not work very well (around $3 \\%$ performance decrease), which is in line with our expectation that suitable frames should take natural image statistics into account. 2D frames are generated from 1D functions via the following generating process: ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
173,
|
| 895 |
+
103,
|
| 896 |
+
825,
|
| 897 |
+
202
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 7
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "equation",
|
| 903 |
+
"img_path": "images/fdefd0f853d4846aa7302f8e1cf0db2c34a77fac6eb638bb1210ac376eb4569d.jpg",
|
| 904 |
+
"text": "$$\nF r a m e = \\{ v _ { 0 } , v _ { 1 } , v _ { 2 } , v _ { 3 } \\} \\otimes \\{ v _ { 0 } , v _ { 1 } , v _ { 2 } , v _ { 3 } \\} ^ { T } .\n$$",
|
| 905 |
+
"text_format": "latex",
|
| 906 |
+
"bbox": [
|
| 907 |
+
344,
|
| 908 |
+
218,
|
| 909 |
+
653,
|
| 910 |
+
237
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 7
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "The results are reported in table 2. The fact that the pixel-basis can be replaced by steerable frames and performance even improves when the frame is chosen well, is remarkable, as this means every filter in the CNN enjoys additional properties, while performance improves in the standard setting already and finding suitable frames is not more expensive than running the same smallest CNN as many times as one has frames to choose from, as the performance we observed was consistent across multiple model sizes. Frame-based CNNs run at the same runtime as vanilla CNNs. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
174,
|
| 919 |
+
257,
|
| 920 |
+
825,
|
| 921 |
+
342
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 7
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "4.2 DYNAMIC STEERABLE FRAME NETWORKS ",
|
| 928 |
+
"text_level": 1,
|
| 929 |
+
"bbox": [
|
| 930 |
+
174,
|
| 931 |
+
373,
|
| 932 |
+
511,
|
| 933 |
+
387
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 7
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "In this section we report two experiments. The first experiment is an edge detection task, highlighting the difference between our approach and multiple baselines in a fine-grained pixel-wise labeling task. In the second experiment, we apply a 2D convolutional LSTM on a small hand gesture recognition video dataset to illustrate how the Dynamic Steerable Frame Network regularizes the model effectively and to illustrate its benefits over Spatial Transform Networks. ",
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
405,
|
| 943 |
+
825,
|
| 944 |
+
474
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 7
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "The model used in both experiments is learned from a steerable Gauss-Hermite frame. The Dynamic Steerable Frame Network consists of three processing steps. 1) Change to frame space on the input, 2) the Pose-Generating network estimates the pose from this transformed input, outputting a set of pose variables for each location in the image. 3) the steering functions derived in section 2.4 are applied to these pose variable maps and effectively act as nonlinear pose-parametrized activation functions that regularize the Pose-Generating network to output an explicitly interpretable pose space. Finally, a 1x1 convolution layer is applied to the already transformed output maps, representing the weights $w _ { n } ^ { i }$ , governing the canonical appearance of the $i _ { t h }$ feature map, see also figure 5. Dynamic Steerable Frame Networks run at the same computational cost as vanilla Dynamic Filter Networks. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
481,
|
| 954 |
+
825,
|
| 955 |
+
621
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 7
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "text",
|
| 961 |
+
"text": "4.2.1 EDGE DETECTION ",
|
| 962 |
+
"text_level": 1,
|
| 963 |
+
"bbox": [
|
| 964 |
+
176,
|
| 965 |
+
650,
|
| 966 |
+
354,
|
| 967 |
+
665
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 7
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "In this experiment, we compare a Dynamic Filter Network (De Brabandere et al., 2016) baseline with an autoencoder and a Dynamic Steerable Frame Network on the task of edge detection. The problem is formulated as a pixel-wise classification task and reported is the root mean-squared error on an unseen test set. The labels are the edges. The dataset is infinite, as we produce random blobs and create the edge labels with a standard scikit image function. The standard DFN can freely learn an input layer with 2 filters and 3 subsequent 1x1 layers that can non-linearly recombine the inputs, whereas the Frame DFN receives a steerable frame as an input, allowing it to leverage the finegrained orientation information without the need to learn it. The Dynamic Steerable Frame Network has the exact same architecture as the DFN but is geometrically regularized on its output as can be seen in figure 5, as an input it receives a first order Gauss-Hermite frame that can be steered globally towards rotation and locally towards scale. ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
680,
|
| 977 |
+
825,
|
| 978 |
+
833
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 7
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "Location varying methods are clearly superior in this task, compared to the location invariant autoencoder. The DFN increases its performance substantially when getting the steerable frame as an input, indicating its inability to learn a continuously transforming frame by itself. Finally, the Dynamic Steerable Frame Network clearly outperforms all baselines due to its ability to continuously transform its filters in a well-regularized manner. As an extra, we get the local feature pose for free from the output of the DSFN, the baseline has no notion of an explicit pose parameter, see figure 4. ",
|
| 985 |
+
"bbox": [
|
| 986 |
+
174,
|
| 987 |
+
840,
|
| 988 |
+
825,
|
| 989 |
+
924
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 7
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "table",
|
| 995 |
+
"img_path": "images/01b7c5a3157936c1ec093e87cb66a480d7d65112e320a78035fe67b992a1f67d.jpg",
|
| 996 |
+
"table_caption": [],
|
| 997 |
+
"table_footnote": [],
|
| 998 |
+
"table_body": "<table><tr><td>Method</td><td>RMSE</td></tr><tr><td>Autoencoder</td><td>18.034</td></tr><tr><td>DFN</td><td>5.669</td></tr><tr><td>Frame DFN DSFN</td><td>1.554 0.778</td></tr></table>",
|
| 999 |
+
"bbox": [
|
| 1000 |
+
573,
|
| 1001 |
+
118,
|
| 1002 |
+
746,
|
| 1003 |
+
205
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 8
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "image",
|
| 1009 |
+
"img_path": "images/ca567f4a07cbb3397f5d4e2eb6bc964b829aa9540d512d619b4fe1c0dec6590b.jpg",
|
| 1010 |
+
"image_caption": [
|
| 1011 |
+
"Figure 4: Results on the edge detection task. Top is an illustration of a test image, bottom one sample from the actual infinite dataset, reported is root mean squared error. Autoencoder denotes a vanilla location invariant autoencoder. DFN denotes the plain Dynamic Filter Network, Frame DFN denotes a DFN whos input is a frame, DSFN denotes the Dynamic Steerable Frame Network. a) is the input, b) is the label, c) the prediction and d) the angular pose variable. d) is an output we get for free when training DSFNs, while a DFN has no notion of interpretable angle variables. Location varying methods clearly outperform the static autoencoder, while learning the DFN from a steerable frame increases performance again substantially. The DSFN substantially outperforms all other methods due to its continuously transforming input and output space. "
|
| 1012 |
+
],
|
| 1013 |
+
"image_footnote": [],
|
| 1014 |
+
"bbox": [
|
| 1015 |
+
199,
|
| 1016 |
+
113,
|
| 1017 |
+
540,
|
| 1018 |
+
218
|
| 1019 |
+
],
|
| 1020 |
+
"page_idx": 8
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"type": "text",
|
| 1024 |
+
"text": "4.2.2 SMALL SCALE VIDEO CLASSIFICATION ",
|
| 1025 |
+
"text_level": 1,
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
176,
|
| 1028 |
+
366,
|
| 1029 |
+
501,
|
| 1030 |
+
381
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 8
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "To show the ability of the Dynamic Steerable Frame Network to effectively regularize in dynamic settings where poses play an important role and where Spatial Transformer Networks do not work well, we apply it on the task of Hand-Gesture Recognition. Namely, on the Cambridge Hand-Gesture dataset (Kim & Cipolla, 2009), consisting of 9 classes of hand movement and poses in 900 videos, we use 750 for training, 50 for validation and 100 for testing. The dataset is very small and contains classes where global movement plays an important role and thus provides a good test bed to show effectiveness of the DSFN regularization ability compared to Spatial Transformers. ",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
173,
|
| 1039 |
+
390,
|
| 1040 |
+
825,
|
| 1041 |
+
488
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 8
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "table",
|
| 1047 |
+
"img_path": "images/1faf539aa182a380a6f8fc65d132170be542a422b484905ad4c7ac2a91772850.jpg",
|
| 1048 |
+
"table_caption": [],
|
| 1049 |
+
"table_footnote": [],
|
| 1050 |
+
"table_body": "<table><tr><td>convLSTM</td><td>1 Layer</td><td>2 Layer</td><td>rot/scale-DSFN</td><td>rot/scale-STN</td><td>affine-STN</td></tr><tr><td># Params</td><td>905k</td><td>913k</td><td>907k</td><td>971k</td><td>1037k</td></tr><tr><td> Accuracy</td><td>35.42%</td><td>39.31%</td><td>62.18%</td><td>21.34%</td><td>12.21 %</td></tr></table>",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
225,
|
| 1053 |
+
502,
|
| 1054 |
+
771,
|
| 1055 |
+
568
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 8
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Table 3: Results on the Cambridge Hand-Gesture Recognition dataset, to illustrate the effectiveness of pose regularization provided by the Dynamic Steerable Frame Network. Adding the DSFN module to the convLSTM drastically improves performance. Increasing the capacity of the baseline to two layers, does not make up for the difference in performance, while adding the STN to the convLSTM decreases performance significantly, as the STN does not manage to learn meaningful global transformations that do not remove the class-specific information content. This is further substantiated by an increased performance when removing the ability to shear and translate the input from the STN. The DSFN outperforms all other approaches while only adding 2k free parameters to the baseline. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
583,
|
| 1065 |
+
825,
|
| 1066 |
+
709
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 8
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Our baseline model is a convolutional LSTM with 10 output feature maps, batch normalization and a dense layer for classification. As a second baseline, we increase the capacity of the model by adding a second LSTM layer and a second batch normalization step. We combine two instances of a Spatial Transformer Network with a convolutional LSTM, one that can perform full affine transformations and one that is restricted to rotation and scaling. The DSFN module is applied to the input layer of the smaller model with 4 output feature maps. The setup of the steerable frame used in this model is a Gauss-Hermite frame. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
173,
|
| 1075 |
+
720,
|
| 1076 |
+
825,
|
| 1077 |
+
819
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 8
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "text",
|
| 1083 |
+
"text": "The steerability is uniquely parametrized as: $\\{ B _ { s } B _ { \\theta } \\}$ . Allowing for scaling and rotation. Both Spatial Transformer Networks do not manage to learn useful warps of the input image and therefore decrease performance of the baseline. The affine model only manages to correctly classify multiple instances of a static class that has no movement information related to its label, while the rot/scale model increases performance, but still does not manage to learn useful scalings or rotations. The DSFN manages to learn locally rotation and scale invariant filters, that follow the boundaries and other features across the video as desired. Results are reported in Table 3. ",
|
| 1084 |
+
"bbox": [
|
| 1085 |
+
173,
|
| 1086 |
+
825,
|
| 1087 |
+
825,
|
| 1088 |
+
924
|
| 1089 |
+
],
|
| 1090 |
+
"page_idx": 8
|
| 1091 |
+
},
|
| 1092 |
+
{
|
| 1093 |
+
"type": "text",
|
| 1094 |
+
"text": "For visualizations of the learned transformations, see Appendix A. The results illustrate the effectiveness of the DSFN to regularize the LSTM on a small-scale task where mostly local invariance is desired, but global invariance destroys most of the class-specific information. The DSFN improves performance over the baseline by about $22 \\%$ , while the Spatial Transformer Network decreases performance by about $15 \\%$ , or even to random in the full-affine case. ",
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
174,
|
| 1097 |
+
103,
|
| 1098 |
+
825,
|
| 1099 |
+
172
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 9
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "text",
|
| 1105 |
+
"text": "5 DISCUSSION ",
|
| 1106 |
+
"text_level": 1,
|
| 1107 |
+
"bbox": [
|
| 1108 |
+
176,
|
| 1109 |
+
194,
|
| 1110 |
+
310,
|
| 1111 |
+
210
|
| 1112 |
+
],
|
| 1113 |
+
"page_idx": 9
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"type": "text",
|
| 1117 |
+
"text": "We have introduced the notion of Frame-based convolutional networks. Our experiments illustrate that a simple replacement of the standard basis by a frame suitable for natural images leads to increased performance. ",
|
| 1118 |
+
"bbox": [
|
| 1119 |
+
176,
|
| 1120 |
+
226,
|
| 1121 |
+
825,
|
| 1122 |
+
268
|
| 1123 |
+
],
|
| 1124 |
+
"page_idx": 9
|
| 1125 |
+
},
|
| 1126 |
+
{
|
| 1127 |
+
"type": "text",
|
| 1128 |
+
"text": "The insight that multiple frames can be considered as viable spanning sets for CNN representations leads us to steerable frames whose properties we exploit explicitly in our derived Dynamic Steerable Frame Networks, such that they can readily be accessed during training. The proposed method is a hybrid of Dynamic Filter Networks and Spatial Transformer Networks, enabling locally adaptive filtering with geometrical constraints. ",
|
| 1129 |
+
"bbox": [
|
| 1130 |
+
174,
|
| 1131 |
+
275,
|
| 1132 |
+
823,
|
| 1133 |
+
344
|
| 1134 |
+
],
|
| 1135 |
+
"page_idx": 9
|
| 1136 |
+
},
|
| 1137 |
+
{
|
| 1138 |
+
"type": "text",
|
| 1139 |
+
"text": "We illustrate the effectiveness of the approach on an edge detection task, that requires fine-grained pixel-wise labeling, where Dynamic Steerable Frame Networks outperform a standard Dynamic Filter Network and an autoencoder baseline. Further, we illustrate the ability of the Dynamic Steerable Frame Network to regularize recurrent networks in a small-data video classification scenario where Spatial Transformer Networks fail to learn meaningful transformations. ",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
176,
|
| 1142 |
+
352,
|
| 1143 |
+
825,
|
| 1144 |
+
421
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 9
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "Future work is to apply the model to other problem domains like egocentric video, robotics applications, as well as volumetric medical imaging videos of moving organs. We expect our Dynamic Steerable Frame Network approach to be beneficial in any problem where spatiotemporal continuity, data-efficiency, or interpretable pose spaces are key. ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
176,
|
| 1153 |
+
429,
|
| 1154 |
+
823,
|
| 1155 |
+
484
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 9
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "text",
|
| 1161 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 1162 |
+
"text_level": 1,
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
176,
|
| 1165 |
+
507,
|
| 1166 |
+
367,
|
| 1167 |
+
522
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 9
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "We would like to thank Edouard Oyallon and Taco Cohen for insightful comments and discussions. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
173,
|
| 1176 |
+
537,
|
| 1177 |
+
821,
|
| 1178 |
+
553
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 9
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "REFERENCES ",
|
| 1185 |
+
"text_level": 1,
|
| 1186 |
+
"bbox": [
|
| 1187 |
+
176,
|
| 1188 |
+
574,
|
| 1189 |
+
285,
|
| 1190 |
+
589
|
| 1191 |
+
],
|
| 1192 |
+
"page_idx": 9
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"type": "text",
|
| 1196 |
+
"text": "Martın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016. \nMartin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. arXiv preprint arXiv:1511.06464, 2015. \nJoan Bruna and Stephane Mallat. Invariant scattering convolution networks. ´ IEEE transactions on pattern analysis and machine intelligence, 35(8):1872–1886, 2013. \nFranc¸ois Chollet. Keras. https://github.com/fchollet/keras, 2015. \nOle Christensen. An introduction to frames and Riesz bases, volume 7. Springer, 2003. \nTaco Cohen, Max Welling, et al. Learning the irreducible representations of commutative lie groups. In ICML, pp. 1755–1763, 2014. \nTaco S Cohen and Max Welling. Group equivariant convolutional networks. arXiv preprint arXiv:1602.07576, 2016. \nIngrid Daubechies, Bin Han, Amos Ron, and Zuowei Shen. Framelets: Mra-based constructions of wavelet frames. Applied and computational harmonic analysis, 14(1):1–46, 2003. \nBert De Brabandere, Xu Jia, Tinne Tuytelaars, and Luc Van Gool. Dynamic filter networks. arXiv preprint arXiv:1605.09673, 2016. ",
|
| 1197 |
+
"bbox": [
|
| 1198 |
+
171,
|
| 1199 |
+
597,
|
| 1200 |
+
828,
|
| 1201 |
+
926
|
| 1202 |
+
],
|
| 1203 |
+
"page_idx": 9
|
| 1204 |
+
},
|
| 1205 |
+
{
|
| 1206 |
+
"type": "text",
|
| 1207 |
+
"text": "Sander Dieleman, Jeffrey De Fauw, and Koray Kavukcuoglu. Exploiting cyclic symmetry in convolutional neural networks. arXiv preprint arXiv:1602.02660, 2016. ",
|
| 1208 |
+
"bbox": [
|
| 1209 |
+
169,
|
| 1210 |
+
103,
|
| 1211 |
+
823,
|
| 1212 |
+
133
|
| 1213 |
+
],
|
| 1214 |
+
"page_idx": 10
|
| 1215 |
+
},
|
| 1216 |
+
{
|
| 1217 |
+
"type": "text",
|
| 1218 |
+
"text": "Luc MJ Florack, Bart M ter Haar Romeny, Jan J Koenderink, and Max A Viergever. Scale and the differential structure of images. Image and Vision Computing, 10(6):376–388, 1992. ",
|
| 1219 |
+
"bbox": [
|
| 1220 |
+
171,
|
| 1221 |
+
141,
|
| 1222 |
+
821,
|
| 1223 |
+
171
|
| 1224 |
+
],
|
| 1225 |
+
"page_idx": 10
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"type": "text",
|
| 1229 |
+
"text": "William T Freeman and Edward H Adelson. The design and use of steerable filters. IEEE Transactions on Pattern analysis and machine intelligence, 13(9):891–906, 1991. ",
|
| 1230 |
+
"bbox": [
|
| 1231 |
+
171,
|
| 1232 |
+
179,
|
| 1233 |
+
821,
|
| 1234 |
+
209
|
| 1235 |
+
],
|
| 1236 |
+
"page_idx": 10
|
| 1237 |
+
},
|
| 1238 |
+
{
|
| 1239 |
+
"type": "text",
|
| 1240 |
+
"text": "Robert Gens and Pedro M Domingos. Deep symmetry networks. In Advances in neural information processing systems, pp. 2537–2545, 2014. ",
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
173,
|
| 1243 |
+
217,
|
| 1244 |
+
825,
|
| 1245 |
+
247
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 10
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
174,
|
| 1254 |
+
256,
|
| 1255 |
+
823,
|
| 1256 |
+
286
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 10
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "Yacov Hel-Or and Patrick C Teo. Canonical decomposition of steerable functions. Journal of Mathematical Imaging and Vision, 9(1):83–95, 1998. ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
176,
|
| 1265 |
+
294,
|
| 1266 |
+
823,
|
| 1267 |
+
324
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 10
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "Geoffrey E Hinton, Alex Krizhevsky, and Sida D Wang. Transforming auto-encoders. In International Conference on Artificial Neural Networks, pp. 44–51. Springer, 2011. ",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
174,
|
| 1276 |
+
332,
|
| 1277 |
+
821,
|
| 1278 |
+
362
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 10
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "Gao Huang, Zhuang Liu, and Kilian Q Weinberger. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016. ",
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
174,
|
| 1287 |
+
369,
|
| 1288 |
+
821,
|
| 1289 |
+
400
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 10
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "Jorn-Henrik Jacobsen, Jan van Gemert, Zhongyu Lou, and Arnold W.M. Smeulders. Structured ¨ receptive fields in cnns. 2016. ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
174,
|
| 1298 |
+
409,
|
| 1299 |
+
823,
|
| 1300 |
+
438
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 10
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "text",
|
| 1306 |
+
"text": "Max Jaderberg, Karen Simonyan, Andrew Zisserman, et al. Spatial transformer networks. In Advances in Neural Information Processing Systems, pp. 2017–2025, 2015. ",
|
| 1307 |
+
"bbox": [
|
| 1308 |
+
173,
|
| 1309 |
+
446,
|
| 1310 |
+
823,
|
| 1311 |
+
477
|
| 1312 |
+
],
|
| 1313 |
+
"page_idx": 10
|
| 1314 |
+
},
|
| 1315 |
+
{
|
| 1316 |
+
"type": "text",
|
| 1317 |
+
"text": "Tae-Kyun Kim and Roberto Cipolla. Canonical correlation analysis of video volume tensors for action categorization and detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, 31(8):1415–1428, 2009. ",
|
| 1318 |
+
"bbox": [
|
| 1319 |
+
173,
|
| 1320 |
+
484,
|
| 1321 |
+
825,
|
| 1322 |
+
529
|
| 1323 |
+
],
|
| 1324 |
+
"page_idx": 10
|
| 1325 |
+
},
|
| 1326 |
+
{
|
| 1327 |
+
"type": "text",
|
| 1328 |
+
"text": "Gou Koutaki and Keiichi Uchimura. Scale-space processing using polynomial representations. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2744– 2751, 2014. ",
|
| 1329 |
+
"bbox": [
|
| 1330 |
+
174,
|
| 1331 |
+
536,
|
| 1332 |
+
825,
|
| 1333 |
+
580
|
| 1334 |
+
],
|
| 1335 |
+
"page_idx": 10
|
| 1336 |
+
},
|
| 1337 |
+
{
|
| 1338 |
+
"type": "text",
|
| 1339 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
|
| 1340 |
+
"bbox": [
|
| 1341 |
+
173,
|
| 1342 |
+
589,
|
| 1343 |
+
823,
|
| 1344 |
+
606
|
| 1345 |
+
],
|
| 1346 |
+
"page_idx": 10
|
| 1347 |
+
},
|
| 1348 |
+
{
|
| 1349 |
+
"type": "text",
|
| 1350 |
+
"text": "Markus Michaelis and Gerald Sommer. A lie group approach to steerable filters. Pattern Recognition Letters, 16(11):1165–1174, 1995. ",
|
| 1351 |
+
"bbox": [
|
| 1352 |
+
171,
|
| 1353 |
+
613,
|
| 1354 |
+
825,
|
| 1355 |
+
643
|
| 1356 |
+
],
|
| 1357 |
+
"page_idx": 10
|
| 1358 |
+
},
|
| 1359 |
+
{
|
| 1360 |
+
"type": "text",
|
| 1361 |
+
"text": "Edouard Oyallon and Stephane Mallat. Deep roto-translation scattering for object classification. ´ In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2865– 2873, 2015. ",
|
| 1362 |
+
"bbox": [
|
| 1363 |
+
174,
|
| 1364 |
+
651,
|
| 1365 |
+
823,
|
| 1366 |
+
695
|
| 1367 |
+
],
|
| 1368 |
+
"page_idx": 10
|
| 1369 |
+
},
|
| 1370 |
+
{
|
| 1371 |
+
"type": "text",
|
| 1372 |
+
"text": "Pietro Perona. Steerable-scalable kernels for edge detection and junction analysis. In ECCV, pp. 3–18. Springer, 1992. ",
|
| 1373 |
+
"bbox": [
|
| 1374 |
+
169,
|
| 1375 |
+
704,
|
| 1376 |
+
823,
|
| 1377 |
+
733
|
| 1378 |
+
],
|
| 1379 |
+
"page_idx": 10
|
| 1380 |
+
},
|
| 1381 |
+
{
|
| 1382 |
+
"type": "text",
|
| 1383 |
+
"text": "Oren Rippel, Jasper Snoek, and Ryan P Adams. Spectral representations for convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 2449–2457, 2015. ",
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
173,
|
| 1386 |
+
742,
|
| 1387 |
+
823,
|
| 1388 |
+
772
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 10
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "Eero P Simoncelli and William T Freeman. The steerable pyramid: a flexible architecture for multiscale derivative computation. In ICIP (3), pp. 444–447, 1995. ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
169,
|
| 1397 |
+
780,
|
| 1398 |
+
823,
|
| 1399 |
+
810
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 10
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "text",
|
| 1405 |
+
"text": "Patrick C Teo and Yacov Hel-Or. Lie generators for computing steerable functions. Pattern Recognition Letters, 19(1):7–17, 1998. ",
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
171,
|
| 1408 |
+
818,
|
| 1409 |
+
823,
|
| 1410 |
+
848
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 10
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "Mark Tygert, Joan Bruna, Soumith Chintala, Yann LeCun, Serkan Piantino, and Arthur Szlam. A mathematical motivation for complex-valued convolutional networks. Neural computation, 2016. ",
|
| 1417 |
+
"bbox": [
|
| 1418 |
+
174,
|
| 1419 |
+
856,
|
| 1420 |
+
823,
|
| 1421 |
+
886
|
| 1422 |
+
],
|
| 1423 |
+
"page_idx": 10
|
| 1424 |
+
},
|
| 1425 |
+
{
|
| 1426 |
+
"type": "text",
|
| 1427 |
+
"text": "Michael Unser and Nicolas Chenouard. A unifying parametric framework for 2d steerable wavelet transforms. SIAM Journal on Imaging Sciences, 6(1):102–135, 2013. ",
|
| 1428 |
+
"bbox": [
|
| 1429 |
+
173,
|
| 1430 |
+
895,
|
| 1431 |
+
821,
|
| 1432 |
+
924
|
| 1433 |
+
],
|
| 1434 |
+
"page_idx": 10
|
| 1435 |
+
},
|
| 1436 |
+
{
|
| 1437 |
+
"type": "text",
|
| 1438 |
+
"text": "Jimmy Wang, Jascha Sohl-Dickstein, and Bruno Olshausen. Unsupervised learning of lie group operators from image sequences. In Frontiers in Systems Neuroscience. Conference Abstract: Computational and systems neuroscience, 2009. ",
|
| 1439 |
+
"bbox": [
|
| 1440 |
+
176,
|
| 1441 |
+
103,
|
| 1442 |
+
823,
|
| 1443 |
+
146
|
| 1444 |
+
],
|
| 1445 |
+
"page_idx": 11
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"type": "text",
|
| 1449 |
+
"text": "Tianfan Xue, Jiajun Wu, Katherine L Bouman, and William T Freeman. Visual dynamics: Probabilistic future frame synthesis via cross convolutional networks. arXiv preprint arXiv:1607.02586, 2016. ",
|
| 1450 |
+
"bbox": [
|
| 1451 |
+
174,
|
| 1452 |
+
159,
|
| 1453 |
+
825,
|
| 1454 |
+
202
|
| 1455 |
+
],
|
| 1456 |
+
"page_idx": 11
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"type": "text",
|
| 1460 |
+
"text": "APPENDIX A VISUALIZING DSFN AND STN TRANSFORMATIONS ",
|
| 1461 |
+
"text_level": 1,
|
| 1462 |
+
"bbox": [
|
| 1463 |
+
176,
|
| 1464 |
+
232,
|
| 1465 |
+
733,
|
| 1466 |
+
250
|
| 1467 |
+
],
|
| 1468 |
+
"page_idx": 11
|
| 1469 |
+
},
|
| 1470 |
+
{
|
| 1471 |
+
"type": "image",
|
| 1472 |
+
"img_path": "images/ba16a429ace081cd119c5f0c94f8051e776c1f7bcd05a93e2649f06f2e02d355.jpg",
|
| 1473 |
+
"image_caption": [
|
| 1474 |
+
"Figure 5: Visualizations of the learned transformations by the Dynamic Steerable Frame Network (DSFN top) and the Spatial Transformer Network (STN bottom) on the hand-gesture recognition dataset. The STN zooms and rotates the hands arbitrarily and apparently removes important information content thereby, leading to low classification accuracy. The DSFN acts locally and adaptively filters the hands in multiple ways. Note that the DSFN did not learn fully rotation invariant filters in all 4 cases, but in 3 cases produces different filter responses for different sides of the hand. However, it does follow the contours of the hand and segments the borders from the background. This indicates that full rotation invariance is not suitable for this task. This would be hard to assess if one had to choose the degree of invariance a priori, while the DSFN has the means to learn the necessary amount of local invariance. "
|
| 1475 |
+
],
|
| 1476 |
+
"image_footnote": [],
|
| 1477 |
+
"bbox": [
|
| 1478 |
+
250,
|
| 1479 |
+
271,
|
| 1480 |
+
735,
|
| 1481 |
+
555
|
| 1482 |
+
],
|
| 1483 |
+
"page_idx": 11
|
| 1484 |
+
},
|
| 1485 |
+
{
|
| 1486 |
+
"type": "text",
|
| 1487 |
+
"text": "APPENDIX B EQUIVARIANCE PROOF & STEERING EQUATION DERIVATION ",
|
| 1488 |
+
"text_level": 1,
|
| 1489 |
+
"bbox": [
|
| 1490 |
+
173,
|
| 1491 |
+
727,
|
| 1492 |
+
808,
|
| 1493 |
+
743
|
| 1494 |
+
],
|
| 1495 |
+
"page_idx": 11
|
| 1496 |
+
},
|
| 1497 |
+
{
|
| 1498 |
+
"type": "text",
|
| 1499 |
+
"text": "To prove that a frame is equivariant with respect to the action of a group transformation, determined by its generator $L _ { i }$ , we simply have to show that: ",
|
| 1500 |
+
"bbox": [
|
| 1501 |
+
173,
|
| 1502 |
+
760,
|
| 1503 |
+
823,
|
| 1504 |
+
789
|
| 1505 |
+
],
|
| 1506 |
+
"page_idx": 11
|
| 1507 |
+
},
|
| 1508 |
+
{
|
| 1509 |
+
"type": "equation",
|
| 1510 |
+
"img_path": "images/03db89ed260421c3e667d772c69725f7fa9430c59dadf5afbc5d91f4904d1f68.jpg",
|
| 1511 |
+
"text": "$$\n{ \\cal L } _ { i } \\Phi ( x , y ) = { \\bf B } _ { i } \\Phi ( x , y ) ,\n$$",
|
| 1512 |
+
"text_format": "latex",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
415,
|
| 1515 |
+
797,
|
| 1516 |
+
583,
|
| 1517 |
+
815
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 11
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"text": "Where $\\mathbf { B } _ { i }$ is some $n \\times n$ matrix. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
174,
|
| 1526 |
+
824,
|
| 1527 |
+
390,
|
| 1528 |
+
838
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 11
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "In case of the Hermite polynomials (here considered up to second order), we have: ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
171,
|
| 1537 |
+
844,
|
| 1538 |
+
714,
|
| 1539 |
+
861
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 11
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "equation",
|
| 1545 |
+
"img_path": "images/07c7e8858ac15e35ece186d6f8bdb0f438211aa570d3a82db0482a6a87c2fcf8.jpg",
|
| 1546 |
+
"text": "$$\n\\Phi ( x , y ) = \\{ 1 , x , y , x ^ { 2 } - 1 , x y , y ^ { 2 } - 1 \\} .\n$$",
|
| 1547 |
+
"text_format": "latex",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
366,
|
| 1550 |
+
867,
|
| 1551 |
+
632,
|
| 1552 |
+
887
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 11
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "To verify that these functions span an equivariant function space with respect to rotation, we apply the generator of rotations to the frame and verify that equation 13 holds. The generator of rotations ",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
173,
|
| 1561 |
+
895,
|
| 1562 |
+
823,
|
| 1563 |
+
924
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 11
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "in the plane is given by $\\begin{array} { r } { L _ { r } = - x \\frac { d } { d y } + y \\frac { d } { d x } } \\end{array}$ , applied to each frame element, we get: ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
173,
|
| 1572 |
+
101,
|
| 1573 |
+
717,
|
| 1574 |
+
122
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 12
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "equation",
|
| 1580 |
+
"img_path": "images/6dfa866edbfcb21723b4a57a9a8b89a1983b25e51c584c84fd3bc5f8f07a7001.jpg",
|
| 1581 |
+
"text": "$$\nL _ { r } \\Phi ( x , y ) = \\left[ \\begin{array} { c } { 0 } \\\\ { y } \\\\ { - x } \\\\ { 2 x y } \\\\ { - x ^ { 2 } + y ^ { 2 } } \\\\ { - 2 x y } \\end{array} \\right] = \\mathbf { B } _ { r } \\left[ \\begin{array} { c } { 1 } \\\\ { x } \\\\ { y } \\\\ { x ^ { 2 } - 1 } \\\\ { x y } \\\\ { y ^ { 2 } - 1 } \\end{array} \\right] .\n$$",
|
| 1582 |
+
"text_format": "latex",
|
| 1583 |
+
"bbox": [
|
| 1584 |
+
348,
|
| 1585 |
+
127,
|
| 1586 |
+
648,
|
| 1587 |
+
217
|
| 1588 |
+
],
|
| 1589 |
+
"page_idx": 12
|
| 1590 |
+
},
|
| 1591 |
+
{
|
| 1592 |
+
"type": "text",
|
| 1593 |
+
"text": "It is straightforward to solve this linear system and obtain the $6 \\times 6$ matrix $B _ { r }$ : ",
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
171,
|
| 1596 |
+
222,
|
| 1597 |
+
689,
|
| 1598 |
+
238
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 12
|
| 1601 |
+
},
|
| 1602 |
+
{
|
| 1603 |
+
"type": "equation",
|
| 1604 |
+
"img_path": "images/1ddc53b0628a4b5b991c8d5090fdffdb0f53022e0115088e5b4c6f46befac189.jpg",
|
| 1605 |
+
"text": "$$\n\\mathbf { B } _ { r } = \\left[ \\begin{array} { c c c c c c c } { 0 } & { 0 } & { 0 } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { 1 } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { - 1 } & { 0 } & { 0 } & { 0 } & { 0 } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { 2 } & { 0 } \\\\ { 0 } & { 0 } & { 0 } & { - 1 } & { 0 } & { 1 } \\\\ { 0 } & { 0 } & { 0 } & { 0 } & { - 2 } & { 0 } \\end{array} \\right] . \\quad \\left[ \\begin{array} { c c c c c c } \\end{array} \\right.\n$$",
|
| 1606 |
+
"text_format": "latex",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
362,
|
| 1609 |
+
242,
|
| 1610 |
+
625,
|
| 1611 |
+
332
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 12
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "Thus, we have proven that the function space is closed under the action of the group and the Hermite polynomials constitute an equivariant function space with respect to rotation. ",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
173,
|
| 1620 |
+
337,
|
| 1621 |
+
823,
|
| 1622 |
+
366
|
| 1623 |
+
],
|
| 1624 |
+
"page_idx": 12
|
| 1625 |
+
},
|
| 1626 |
+
{
|
| 1627 |
+
"type": "text",
|
| 1628 |
+
"text": "Subsequently, the exponential map directly yields the steering equations collected in the interpolation matrix $\\dot { \\mathbf { A } } ^ { \\theta }$ , that can rotate the whole frame by $\\theta$ : ",
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
174,
|
| 1631 |
+
372,
|
| 1632 |
+
823,
|
| 1633 |
+
401
|
| 1634 |
+
],
|
| 1635 |
+
"page_idx": 12
|
| 1636 |
+
},
|
| 1637 |
+
{
|
| 1638 |
+
"type": "equation",
|
| 1639 |
+
"img_path": "images/c1caac7fdf6992deb086f43d07a8639e16c899a53f22bacd0a8431515f95d41c.jpg",
|
| 1640 |
+
"text": "$$\n\\begin{array} { l l } { { \\Phi ^ { \\theta } ( x , y ) = e ^ { \\theta \\mathbf { B } _ { r } } \\Phi ( x , y ) = \\mathbf { A } ^ { \\theta } \\Phi ( x , y ) , } } & { { } } \\\\ { { \\ } } & { { } } \\\\ { { \\Phi ^ { \\theta } ( x , y ) = \\left[ \\begin{array} { c c c c c c } { { 1 } } & { { 0 } } & { { 0 } } & { { 0 } } & { { 0 } } \\\\ { { 0 } } & { { \\cos \\theta } } & { { \\sin \\theta } } & { { 0 } } & { { 0 } } & { { 0 } } \\\\ { { 0 } } & { { - \\sin \\theta } } & { { \\cos \\theta } } & { { 0 } } & { { 0 } } & { { 0 } } \\\\ { { 0 } } & { { 0 } } & { { 0 } } & { { { \\frac { 1 } { 2 } } + { \\frac { 1 } { 2 } } \\cos 2 \\theta } } & { { \\sin 2 \\theta } } & { { { \\frac { 1 } { 2 } } - { \\frac { 1 } { 2 } } \\cos 2 \\theta } } \\\\ { { 0 } } & { { 0 } } & { { 0 } } & { { - { \\frac { 1 } { 2 } } \\sin 2 \\theta } } & { { \\cos 2 \\theta } } & { { { \\frac { 1 } { 2 } } \\sin 2 \\theta } } \\\\ { { 0 } } & { { 0 } } & { { 0 } } & { { { \\frac { 1 } { 2 } } - { \\frac { 1 } { 2 } } \\cos 2 \\theta } } & { { - \\sin 2 \\theta } } & { { { \\frac { 1 } { 2 } } + { \\frac { 1 } { 2 } } \\cos 2 \\theta } } \\end{array} \\right] \\left[ \\begin{array} { c } { { 1 } } \\\\ { { x } } \\\\ { { y } } \\\\ { { x ^ { 2 } - 1 } } \\\\ { { x y } } \\\\ { { y ^ { 2 } - 1 } } \\end{array} \\right] . } } \\end{array}\n$$",
|
| 1641 |
+
"text_format": "latex",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
210,
|
| 1644 |
+
405,
|
| 1645 |
+
784,
|
| 1646 |
+
521
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 12
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"type": "text",
|
| 1652 |
+
"text": "$\\Phi ^ { \\theta } ( x , y )$ is the frame rotated by some angle $\\theta$ . Combining this result with equation 7, gives us the possibility to rotate any learned feature by arbitrary and continuous angles $\\theta$ . The whole procedure is completely analogous for any other Lie group transformation. Further, k-parameter transformation groups can be composed according to equation 9 from smaller groups. Here an example of the general linear group of rotation, anisotropic scalings and skew: ",
|
| 1653 |
+
"bbox": [
|
| 1654 |
+
173,
|
| 1655 |
+
525,
|
| 1656 |
+
826,
|
| 1657 |
+
597
|
| 1658 |
+
],
|
| 1659 |
+
"page_idx": 12
|
| 1660 |
+
},
|
| 1661 |
+
{
|
| 1662 |
+
"type": "equation",
|
| 1663 |
+
"img_path": "images/cf179c950630df582d1daf52f4c921c8466c056e581d84803f2dd02db324fac9.jpg",
|
| 1664 |
+
"text": "$$\n\\Phi ^ { \\{ \\theta _ { 1 } , s _ { x } , s _ { y } , \\theta _ { 2 } \\} } ( x , y ) = { \\bf A } ^ { \\{ \\theta _ { 1 } , s _ { x } , s _ { y } , \\theta _ { 2 } \\} } \\Phi ( x , y ) = e ^ { \\theta _ { 2 } \\mathbf { B } _ { r } } \\cdot e ^ { s _ { x } \\mathbf { B } _ { s x } } \\cdot e ^ { s _ { y } \\mathbf { B } _ { s y } } \\cdot e ^ { \\theta _ { 1 } \\mathbf { B } _ { r } } \\Phi ( x , y ) .\n$$",
|
| 1665 |
+
"text_format": "latex",
|
| 1666 |
+
"bbox": [
|
| 1667 |
+
196,
|
| 1668 |
+
603,
|
| 1669 |
+
774,
|
| 1670 |
+
622
|
| 1671 |
+
],
|
| 1672 |
+
"page_idx": 12
|
| 1673 |
+
},
|
| 1674 |
+
{
|
| 1675 |
+
"type": "text",
|
| 1676 |
+
"text": "APPENDIX C BACKPROPAGATION THROUGH STEERABLE FILTERS",
|
| 1677 |
+
"text_level": 1,
|
| 1678 |
+
"bbox": [
|
| 1679 |
+
176,
|
| 1680 |
+
641,
|
| 1681 |
+
728,
|
| 1682 |
+
659
|
| 1683 |
+
],
|
| 1684 |
+
"page_idx": 12
|
| 1685 |
+
},
|
| 1686 |
+
{
|
| 1687 |
+
"type": "text",
|
| 1688 |
+
"text": "Will be added to final manuscript. ",
|
| 1689 |
+
"bbox": [
|
| 1690 |
+
174,
|
| 1691 |
+
672,
|
| 1692 |
+
398,
|
| 1693 |
+
688
|
| 1694 |
+
],
|
| 1695 |
+
"page_idx": 12
|
| 1696 |
+
}
|
| 1697 |
+
]
|
parse/train/H178hw9ex/H178hw9ex_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H178hw9ex/H178hw9ex_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/gEzN9bBbLt8/gEzN9bBbLt8.md
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STEM: A Stochastic Two-Sided Momentum Algorithm Achieving Near-Optimal Sample and Communication Complexities for Federated Learning
|
| 2 |
+
|
| 3 |
+
Prashant Khanduri University of Minnesota khand095@umn.edu
|
| 4 |
+
|
| 5 |
+
Pranay Sharma Carnegie Mellon University pranaysh@andrew.cmu.edu
|
| 6 |
+
|
| 7 |
+
Haibo Yang The Ohio State University yang.5952@buckeyemail.osu.edu
|
| 8 |
+
|
| 9 |
+
Mingyi Hong⇤ University of Minnesota mhong@umn.edu
|
| 10 |
+
|
| 11 |
+
Jia Liu The Ohio State University liu@ece.osu.edu
|
| 12 |
+
|
| 13 |
+
Ketan Rajawat Indian Institute of Technology Kanpur ketan@iitk.ac.in
|
| 14 |
+
|
| 15 |
+
Pramod K. Varshney Syracuse University varshney@syr.edu
|
| 16 |
+
|
| 17 |
+
# Abstract
|
| 18 |
+
|
| 19 |
+
Federated Learning (FL) refers to the paradigm where multiple worker nodes (WNs) build a joint model by using local data. Despite extensive research, for a generic non-convex FL problem, it is not clear, how to choose the WNs’ and the server’s update directions, the minibatch sizes, and the number of local updates, so that the WNs use the minimum number of samples and communication rounds to achieve the desired solution. This work addresses the above question and considers a class of stochastic algorithms where the WNs perform a few local updates before communication. We show that when both the WN’s and the server’s directions are chosen based on certain stochastic momentum estimator, the algorithm requires $\tilde { \mathcal O } ( \epsilon ^ { - 3 / 2 } )$ samples and $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ communication rounds to compute an $\epsilon$ -stationary solution. To the best of our knowledge, this is the first FL algorithm that achieves such near-optimal sample and communication complexities simultaneously. Further, we show that there is a trade-off curve between the number of local updates and the minibatch sizes, on which the above sample and communication complexities can be maintained. Finally, we show that for the classical FedAvg (a.k.a. Local SGD, which is a momentum-less special case of the STEM), a similar trade-off curve exists, albeit with worse sample and communication complexities. Our insights on this trade-off provides guidelines for choosing the four important design elements for FL algorithms, the number of local updates, WNs’ and server’s update directions, and minibatch sizes to achieve the best performance.
|
| 20 |
+
|
| 21 |
+
# 1 Introduction
|
| 22 |
+
|
| 23 |
+
In Federated Learning (FL), multiple worker nodes (WNs) collaborate with the goal of learning a joint model, by only using local data. Therefore it has become popular for machine learning problems where datasets are massively distributed [1]. In FL, the data is often collected at or off-loaded to multiple WNs which in collaboration with a server node (SN) jointly aim to learn a centralized model [2, 3]. The local WNs share the computational load and since the data is local to each WN, FL also provides some level of data privacy $\mathbb { H }$ . A classical distributed optimization problem that $K$ WNs aim to solve:
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: The 3D surface in (a) plots the communication complexity of the proposed STEM for different minibatch sizes and number of local updates. The surface is generated such that each point represents STEM with a particular choice of $( b , I )$ , so that it requires $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ samples to achieve $\epsilon$ -stationarity. Plot (b) shows the optimal trade off between the minibatch sizes and the number of local updates at each WN (i.e., achieving the lowest communication and sample complexities). Both plots are generated for an accuracy of $\epsilon = 1 0 ^ { - 3 }$ and all the constants dependent on system parameters (variance of stochastic gradients, heterogeneity parameter, optimality gap, Lipschitz constants, etc.) are assumed to be 1. Fed STEM is a special case of STEM where $\mathcal { O } ( 1 )$ minibatch is used; Minibatch STEM is a special case of STEM where $\mathcal { O } ( 1 )$ local updates are used.
|
| 27 |
+
|
| 28 |
+
$$
|
| 29 |
+
\operatorname* { m i n } _ { x \in \mathbb { R } ^ { d } } \bigg \{ f ( x ) : = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } f ^ { ( k ) } ( x ) : = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } \mathbb { E } _ { \xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) } } \big [ f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) \big ] \bigg \} .
|
| 30 |
+
$$
|
| 31 |
+
|
| 32 |
+
where $f ^ { ( k ) } : \mathbb { R } ^ { d } \mathbb { R }$ denotes the smooth (possibly non-convex) objective function and $\xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) }$ represents the sample/s drawn from distribution $\mathcal { D } ^ { ( k ) }$ at the $k ^ { \mathrm { { t h } } }$ WN with $k \in [ K ]$ . When the distributions $\mathcal { D } ^ { ( k ) }$ are different across the WNs, it is referred to as the heterogeneous data setting.
|
| 33 |
+
|
| 34 |
+
The optimization performance of non-convex FL algorithms is typically measured by the total number of samples accessed (cf. Definition $\boxed { 2 . 2 }$ and the total rounds of communication (cf. Definition $2 . 3 )$ required by each WN to achieve an $\epsilon$ -stationary solution (cf. Definition $\boxed { 2 . 1 }$ . To minimize the sample and the communication complexities, FL algorithms rely on the following four key design elements: (i) the WNs’ local model update directions, (ii) Minibatch size to compute each local direction, (iii) the number of local updates before WNs share their parameters, and (iv) the SN’s update direction. How to find effective FL algorithms by (optimally) designing these parameters has received significant research interest recently.
|
| 35 |
+
|
| 36 |
+
Contributions. The main contributions of this work are listed below:
|
| 37 |
+
|
| 38 |
+
1) We propose the Stochastic Two-Sided Momentum (STEM) algorithm, that utilizes certain momentum-assisted stochastic gradient directions for both the WNs and SN updates. We show that there exists an optimal trade off between the minibatch sizes and number of local updates, such that on the trade-off curve STEM requires $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } ) ^ { 2 }$ samples and $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ communication rounds to reach an $\epsilon$ -stationary solution; see Figure $\bigstar$ for an illustration. These complexity results are the best achievable for first-order stochastic FL algorithms (under certain assumptions, cf. Assumption $\bigstar \bigstar$ ; see $\pm \boxed { 5 } \boxed { 8 } \parallel$ and $\mathbb { B } \mathbb { n o }$ , as well as Remark $\checkmark$ of this paper for discussions regarding optimality. To the best of our knowledge, STEM is the first algorithm which – (i) simultaneously achieves the optimal sample and communication complexities for FL and (ii) can optimally trade off the minibatch sizes and the number of local updates.
|
| 39 |
+
|
| 40 |
+
2) A momentum-less special case of our STEM result further reveals some interesting insights of the classical FedAvg algorithm (a.k.a. the Local SGD) [11–13]. Specifically, we show that for FedAvg, there also exists a trade-off between the minibatch sizes and the number of local updates, such that it requires $\mathcal { O } ( \epsilon ^ { - 2 } )$ samples and $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ communication rounds to achieve an $\epsilon$ -stationary solution.
|
| 41 |
+
|
| 42 |
+
<table><tr><td>Algorithm</td><td>Work</td><td>Sample</td><td>Comm.</td><td>Minibatch (b)</td><td>Local Updates (I) /round</td></tr><tr><td>FedAvg</td><td>国园 国国</td><td>0(€-2)</td><td>0(c-3/2) 0(c-2)</td><td>0(1) 0(1) 2(1-v)</td><td>0(c-1/2) 0(1) 3v</td></tr><tr><td>SCAFFOLD*</td><td>this work 国</td><td>0(c-2)</td><td>O(e-3/2) 0(c-2)</td><td>O(c 4-v) 0(1)</td><td>O(c−2(4-D)) 0(1)</td></tr><tr><td>FedPD/FedProx*</td><td>四/□</td><td>O(c-2)</td><td>0(e-1)</td><td>0(1)</td><td>0(e-1)</td></tr><tr><td>MIME†/FedGLOMO</td><td>/8</td><td>0(c-3/2)</td><td>O(€-3/2)</td><td>0(1)</td><td>0(1)</td></tr><tr><td>STEM Fed STEM Minibatch STEM*</td><td> this work</td><td>O(€-3/2)</td><td>O(e-1)</td><td>( 0(1) O(e-1/2)</td><td>O(∈−(3)) O(∈-1/2) 0(1)</td></tr></table>
|
| 43 |
+
|
| 44 |
+
Table 1: Comparison of FedAvg and STEM with different FL algorithms for various choices of the minibatch sizes $( b )$ and the number of per node local updates between two rounds of communication $( I )$ . $^ \circ \nu \in [ 0 , 1 ]$ trades off $^ { b }$ and $I$ ; $\nu = 1$ (resp. $\nu = 0$ ) uses multiple (resp. $\mathcal { O } ( 1 ) .$ ) local updates and $\mathcal { O } ( 1 )$ (resp. multiple) samples. Fed STEM and Minibatch STEM are two variants of the proposed STEM. ‡The data heterogeneity assumption is weaker than Assumption $2$ (please see $\bigstar \bigstar$ for details). †Requires bounded Hessian dissimilarity to model data heterogeneity across WNs. ⇤Guarantees for Minibatch STEM with $I = 1$ and SCAFFOLD are independent of the data heterogeneity.
|
| 45 |
+
|
| 46 |
+
Collectively, our insights on the trade-offs provide practical guidelines for choosing different design elements for FL algorithms.
|
| 47 |
+
|
| 48 |
+
Related Works. FL algorithms were first proposed in the form of FedAvg [11], where the local update directions at each WN were chosen to be the SGD updates. Earlier works analyzed these algorithms in the homogeneous data setting [19–25], while many recent studies have focused on designing new algorithms to deal with heterogeneous data settings, as well as problems where the local loss functions are non-convex [9, 10, 12–16, 18, 26–32]. In $\bar { \mathbb { E } 2 } \mathbb { I }$ , the authors showed that Parallel Restarted SGD (Local SGD or FedAvg [11]) achieves linear speed up while requiring $\mathcal { O } ( \epsilon ^ { - 2 } )$ samples and $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ rounds of communication to reach an $\epsilon$ -stationary solution. In $\bar { \textregistered }$ , a Momentum SGD was proposed, which achieved the same sample and communication complexities as Parallel Restarted SGD $\mathbb { \lVert 1 2 \rVert }$ , without requiring that the second moments of the gradients be bounded. Further, it was shown that under the homogeneous data setting, the communication complexity can be improved to $\mathcal { O } ( \epsilon ^ { - 1 } )$ while maintaining the same sample complexity. The works in $\boxed { 1 5 } \boxed { 1 6 }$ conducted tighter analysis for FedAvg with partial WN participation with $\mathcal { O } ( 1 )$ local updates and batch sizes. Their analysis showed that FedAvg’s sample and communication complexities are both $\mathcal { O } ( \epsilon ^ { - 2 } )$ . Additionally, SCAFFOLD was proposed in $\bar { \| 1 5 \| }$ , which utilized variance reduction based local update directions $\mathbb { \lVert 3 3 \rVert }$ to achieve the same sample and communication complexities as FedAvg. Similarly, VRL-SGD proposed in $\left[ \left[ 2 9 \right] \right]$ also utilized variance reduction and showed improved communication complexity of $\mathcal { O } ( \epsilon ^ { - 1 } )$ , while requiring the same computations as FedAvg. Importantly, both SCAFFOLD and VRL-SGD’s guarantees were independent of the data heterogeneity. The FedProx proposed in $\mathbb { I O } ]$ used a penalty based method to improve the communication complexity of FedAvg (i.e., the Parallel Restarted and Momentum SGD [14, $\mathbb { L } 2 \mathbb { I }$ ) to $\mathcal { O } ( \epsilon ^ { - 1 } )$ . FedProx used a gradient similarity assumption to model data heterogeneity which can be stringent for many practical applications. This assumption was relaxed by FedPD proposed in $\mathbb { \left[ 9 \right] }$ .
|
| 49 |
+
|
| 50 |
+
Recently, the works [17, 18] proposed to utilize hybrid momentum gradient estimators [7, 8]. The MIME algorithm $\mathbb { \ m }$ matched the optimal sample complexity (under certain smoothness assumptions) of $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ of the centralized non-convex stochastic optimization algorithms [5–8]. Similarly, Fed-GLOMO $[ \overline { { 1 8 } } ]$ achieved the same sample complexity while employing compression to further reduce communication. Both MIME and Fed-GLOMO required $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ communication rounds to achieve an $\epsilon$ -stationary solution. Please see Table $\bigtriangledown$ for a summary of the above discussion.
|
| 51 |
+
|
| 52 |
+
The comparison of Local SGD (FedAvg) to Minibatch SGD for convex and strongly convex problems with homogeneous data setting was first conducted in $\mathbb { \underline { { \ m } } }$ and later extended to heterogeneous setting in $\mathbb { \lVert \rVert 3 \rVert }$ . It was shown that Minibatch SGD almost always dominates the Local SGD. In contrast, it was shown in $\pmb { \Vert 2 4 \Vert }$ that Local SGD dominates Minibatch SGD in terms of generalization performance. Although existing FL results are rich, but they are somehow ad hoc and there is a lack of principled understanding of the algorithms. We note that the proposed STEM algorithmic framework provides a theoretical framework that unifies all existing $\mathrm { F L }$ results on sample and communication complexities.
|
| 53 |
+
|
| 54 |
+
Notations. The expected value of a random variable $X$ is denoted by $\mathbb { E } [ X ]$ and its expectation conditioned on an Event $A$ is denoted as $\mathbb { E } [ X | \mathrm { E v e n t ~ } A ]$ . We denote by $\mathbb { R }$ (and $\mathbb { R } ^ { d }$ ) the real line (and the $d$ -dimensional Euclidean space). The set of natural numbers is denoted by $\mathbb { N }$ . Given a positive integer $K \in \mathbb N$ , we denote $[ K ] \triangleq \{ 1 , 2 , \dots , K \}$ . Notation $\| \cdot \|$ denotes the $\ell _ { 2 }$ -norm and $\langle \cdot , \cdot \rangle$ the Euclidean inner product. For a discrete set $\boldsymbol { B }$ , $| B |$ denotes the cardinality of the set. Uniform distribution over a discrete set $\{ 1 , \ldots , T \}$ is denoted as ${ \dot { \mathcal { U } } } \{ 1 , \dots , T \}$ .
|
| 55 |
+
|
| 56 |
+
# 2 Preliminaries
|
| 57 |
+
|
| 58 |
+
Before we proceed to the algorithms, we make the following assumptions about problem $( 1 )$ .
|
| 59 |
+
|
| 60 |
+
Assumption 1 (Sample Gradient Lipschitz Smoothness). The stochastic functions $f ^ { ( k ) } ( \cdot , \xi ^ { ( k ) } )$ with $\xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) }$ for all $k \in [ K ]$ , satisfy the mean squared smoothness property, i.e, we have
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { r } { \mathbb { E } \| \nabla f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) - \nabla f ^ { ( k ) } ( y ; \xi ^ { ( k ) } ) \| ^ { 2 } \leq L ^ { 2 } \| x - y \| ^ { 2 } \mathrm { ~ f o r ~ a l l ~ } x , y \in \mathbb { R } ^ { d } . } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
Assumption 2 (Unbiased gradient and Variance Bounds). (i) Unbiased Gradient. The stochastic gradients computed at each WN are unbiased
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\mathbb { E } [ \nabla f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) ] = \nabla f ^ { ( k ) } ( x ) , \forall \xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) } , \forall k \in [ K ] .
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
(ii) Intra- and inter- node Variance Bound. The following bounds hold:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\begin{array} { r } { \mathbb { \tilde { z } } \| \nabla f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) - \nabla f ^ { ( k ) } ( x ) \| ^ { 2 } \leq \sigma ^ { 2 } , \| \nabla f ^ { ( k ) } ( x ) - \nabla f ^ { ( \ell ) } ( x ) \| ^ { 2 } \leq \zeta ^ { 2 } , \forall \xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) } , \forall k , \ell \in [ K ] . } \end{array}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
Note that Assumption $^ 1$ is stronger than directly assuming $f ^ { ( k ) }$ ’s are Lipschitz smooth (which we will refer to as the averaged gradient Lipschitz smooth condition), but it is still a rather standard assumption in SGD analysis. For example it has been used in analyzing centralized SGD algorithms such as SPIDER $ { \mathbb { I } }$ , SNVRG $\pmb { \Vert 6 \Vert }$ , STORM $\mathbb { [ [ \big ] ] }$ (and many others) as well as in FL algorithms such as MIME $ { \mathbb { I } } ^ { [ 1 2 ] }$ and Fed-GLOMO $\pm \textcircled { 1 8 } \textcircled { 1 }$ . The second relation in Assumption $2 \cdot$ (ii) quantifies the data heterogeneity, and we call $\zeta > 0$ as the heterogeneity parameter. This is a typical assumption required to evaluate the performance of FL algorithms. If data distributions across individual WNs are identical, i.e., $\mathcal { D } ^ { ( k ) } \stackrel { = } { = } \mathcal { D } ^ { ( \ell ) }$ for all $k , \ell \in [ K ]$ then we have $\zeta = 0$ .
|
| 79 |
+
|
| 80 |
+
Next, we define the $\epsilon$ -stationary solution for non-convex optimization problems, as well as quantify the computation and communication complexities to achieve an $\epsilon$ -stationary point.
|
| 81 |
+
|
| 82 |
+
Definition 2.1 $\epsilon$ -Stationary Point). A point $x$ is called $\epsilon$ -stationary if $\| \nabla f ( x ) \| ^ { 2 } \leq \epsilon$ . Moreover, a stochastic algorithm is said to achieve an $\epsilon$ -stationary point in $t$ iterations if $\begin{array} { r } { \ddot { \mathbb { E } } [ \| \nabla f ( x _ { t } ) \| ^ { 2 } ] \le \epsilon . } \end{array}$ where the expectation is over the stochasticity of the algorithm until time instant $t$ .
|
| 83 |
+
|
| 84 |
+
Definition 2.2 (Sample complexity). We assume an Incremental First-order Oracle (IFO) framework $\pmb { \Vert 3 4 \Vert }$ where, given a sample $\xi ^ { ( k ) } \sim \mathcal { D } ^ { ( k ) }$ at the $k ^ { \mathrm { { t h } } }$ node and iterate $x$ , the oracle returns $( f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) , \nabla f ^ { ( k ) } ( x ; \xi ^ { ( k ) } ) )$ . Each access to the oracle is counted as a single IFO operation. We measure the sample (and computational) complexity in terms of the total number of calls to the IFO by all WNs to achieve an $\epsilon$ -stationary point given in Definition 2.1.
|
| 85 |
+
|
| 86 |
+
Definition 2.3 (Communication complexity). We define a communication round as a one back-andforth sharing of parameters between the WNs and the SN. Then the communication complexity is defined to be the total number of communication rounds between any WN and the SN required to achieve an $\epsilon$ -stationary point given in Definition 2.1.
|
| 87 |
+
|
| 88 |
+
# 3 The STEM algorithm and the trade-off analysis
|
| 89 |
+
|
| 90 |
+
In this section, we discuss the proposed algorithm and present the main results. The key in the algorithm design is to carefully balance all the four design elements mentioned in Sec. $^ { 1 , }$ so that sufficient and useful progress can be made between two rounds of communication.
|
| 91 |
+
|
| 92 |
+
Let us discuss the key steps of STEM, listed in Algorithm $\nsupseteq$ In Step 10, each node locally updates its model parameters using the local direction $d _ { t } ^ { k }$ , computed by using $b$ stochastic gradients at two
|
| 93 |
+
|
| 94 |
+
1: Input: Parameters: $c > 0$ , the number of local updates $I$ , batch size $b$ , stepsizes $\{ \eta _ { t } \}$ .
|
| 95 |
+
2: Initialize: Iterate $\begin{array} { r } { x _ { 1 } ^ { ( k ) } = \bar { x } _ { 1 } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } x _ { 1 } ^ { ( k ) } } \end{array}$ , descent direction $\begin{array} { r } { d _ { 1 } ^ { ( k ) } = \bar { d } _ { 1 } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } d _ { 1 } ^ { ( k ) } } \end{array}$
|
| 96 |
+
with $\begin{array} { r } { d _ { 1 } ^ { ( k ) } = \frac { 1 } { B } \sum _ { \xi _ { 1 } ^ { ( k ) } \in \mathcal { B } _ { 1 } ^ { ( k ) } } \nabla f ^ { ( k ) } ( x _ { 1 } ^ { ( k ) } ; \xi _ { 1 } ^ { ( k ) } ) } \end{array}$ and $| B _ { 1 } ^ { ( k ) } | = B$ for $k \in [ K ]$ .
|
| 97 |
+
3: Perform: $x _ { 2 } ^ { ( k ) } = x _ { 1 } ^ { k } - \eta _ { 1 } d _ { 1 } ^ { ( k ) }$ , $\forall k \in [ K ]$
|
| 98 |
+
4: for $t = 1$ to $T$ do
|
| 99 |
+
5: for $k = 1$ to $K$ do #at the WN
|
| 100 |
+
6: $\mathcal { d } _ { t + 1 } ^ { ( k ) } = \frac { 1 } { b } \sum _ { \xi _ { t + 1 } ^ { ( k ) } \in \mathcal { B } _ { t + 1 } ^ { ( k ) } } ^ { \pi \Delta } \nabla f ^ { ( k ) } ( x _ { t + 1 } ^ { ( k ) } ; \xi _ { t + 1 } ^ { ( k ) } ) + \left( 1 - a _ { t + 1 } \right) \bigg ( d _ { t } ^ { ( k ) } - \frac { 1 } { b } \sum _ { \xi _ { t + 1 } ^ { ( k ) } \in \mathcal { B } _ { t + 1 } ^ { ( k ) } } \nabla f ^ { ( k ) } ( x _ { t } ^ { ( k ) } ; \xi _ { t + 1 } ^ { ( k ) } ) \bigg )$
|
| 101 |
+
where we choose $| B _ { t + 1 } ^ { ( k ) } | = b$ , and $a _ { t + 1 } = c \cdot \eta _ { t } ^ { 2 }$ ;
|
| 102 |
+
7: 8: if $t$ $I = 0$ #at the SN
|
| 103 |
+
$\begin{array} { r } { d _ { t + 1 } ^ { ( k ) } = \bar { d } _ { t + 1 } : = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } d _ { t + 1 } ^ { ( k ) } } \end{array}$
|
| 104 |
+
9: 10: e $\begin{array} { r l } & { x _ { t + 2 } ^ { ( k ) ^ { \bot } } : = \bar { x } _ { t + 1 } - \eta _ { t + 1 } \bar { d } _ { t + 1 } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } x _ { t + 1 } ^ { ( k ) } - \eta _ { t + 1 } \bar { d } _ { t + 1 } } \end{array}$ $x _ { t + 2 } ^ { ( k ) } = x _ { t + 1 } ^ { ( k ) } - \eta _ { t + 1 } d _ { t + 1 } ^ { ( k ) }$ #server-side momentum
|
| 105 |
+
11: end if
|
| 106 |
+
12: end for
|
| 107 |
+
13: end for
|
| 108 |
+
14: Return: $\scriptstyle { \bar { x } } _ { a }$ where $a \sim \mathcal { U } \{ 1 , . . . , T \}$ .
|
| 109 |
+
|
| 110 |
+
consecutive iterates $x _ { t + 1 } ^ { ( k ) }$ and $x _ { t } ^ { ( k ) }$ . After every $I$ local steps, the WNs share their current local models $\{ x _ { t + 1 } ^ { ( k ) } \} _ { k = 1 } ^ { K }$ and directions $\{ d _ { t + 1 } ^ { ( k ) } \} _ { k = 1 } ^ { K }$ with the SN. The SN aggregates these quantities, and performs a server-side momentum step, before returning $\bar { x } _ { t + 1 }$ and $\bar { d } _ { t + 1 }$ to all the WNs. Because both the WNs and the SN perform momentum based updates, we call the algorithm a stochastic two-sided momentum algorithm. The key parameters are: $b$ the minibatch size, $I$ the local update steps between two communication rounds, $\eta _ { t }$ the stepsizes, and $a _ { t }$ the momentum parameters.
|
| 111 |
+
|
| 112 |
+
One key technical innovation of our algorithm design is to identify the most suitable way to incorporate momentum based directions in FL algorithms. Although the momentum-based gradient estimator itself is not new and has been used in the literature before (see e.g., in $\mathbb { \left[ \bigstar \bigstar \right] }$ and $\lVert \overline { { 1 7 } } \rVert \overline { { 1 8 } } \rVert$ to improve the sample complexities of centralized and decentralized stochastic optimization problems, respectively), it is by no means clear if and how it can contribute to improve the communication complexity of FL algorithms. We show that in the FL setting, the local directions together with the local models have to be aggregated by the SN so to avoid being influenced too much by the local data. More importantly, besides the WNs, the SN also needs to perform updates using the (aggregated) momentum directions. Finally, such two-sided momentum updates have to be done carefully with the correct choice of minibatch size $b$ , and the number of local updates $I$ . Overall, it is the judicious choice of all these design elements that results in the optimal sample and communication complexities.
|
| 113 |
+
|
| 114 |
+
Next, we present the convergence guarantees of the STEM algorithm.
|
| 115 |
+
|
| 116 |
+
# 3.1 Main results: convergence guarantees for STEM
|
| 117 |
+
|
| 118 |
+
In this section, we analyze the performance of STEM. We first present our main result, and then provide discussions about a few parameter choices. In the next subsection, we discuss a special case of STEM related to the classical FedAvg and minibatch SGD algorithms.
|
| 119 |
+
|
| 120 |
+
Theorem 3.1. Under the Assumptions 1 and 2, suppose the stepsize sequence is chosen as:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\eta _ { t } = \frac { \bar { \kappa } } { ( w _ { t } + \sigma ^ { 2 } t ) ^ { 1 / 3 } } ,
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
where we define :
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
\bar { \kappa } = \frac { ( b K ) ^ { 2 / 3 } \sigma ^ { 2 / 3 } } { L } , \quad w _ { t } = \operatorname * { m a x } \bigg \{ 2 \sigma ^ { 2 } , 4 0 9 6 L ^ { 3 } I ^ { 3 } \bar { \kappa } ^ { 3 } - \sigma ^ { 2 } t , \frac { c ^ { 3 } \bar { \kappa } ^ { 3 } } { 4 0 9 6 L ^ { 3 } I ^ { 3 } } \bigg \} .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Further, let us set $\begin{array} { r } { c = \frac { 6 4 L ^ { 2 } } { b K } + \frac { \sigma ^ { 2 } } { 2 4 \bar { \kappa } ^ { 3 } L I } = L ^ { 2 } \bigg ( \frac { 6 4 } { b K } + \frac { 1 } { 2 4 ( b K ) ^ { 2 } I } \bigg ) } \end{array}$ and set the initial batch size as $B = b I$ ; set the local updates $I$ and minibatch size b as follows:
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
I = \mathcal { O } \big ( ( T / K ^ { 2 } ) ^ { \nu / 3 } \big ) , \quad b = \mathcal { O } \big ( ( T / K ^ { 2 } ) ^ { 1 / 2 - \nu / 2 } \big )
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
where $\nu$ satisfies $\nu \in [ 0 , 1 ]$ . Then for STEM the following holds:
|
| 139 |
+
|
| 140 |
+
(i) For $\scriptstyle { \bar { x } } _ { a }$ chosen according to Algorithm $\perp$ we have:
|
| 141 |
+
|
| 142 |
+
$$
|
| 143 |
+
\mathbb { E } \Vert \nabla f ( \bar { x } _ { a } ) \Vert ^ { 2 } = \mathcal { O } \Bigg ( \frac { f ( \bar { x } _ { 1 } ) - f ^ { * } } { K ^ { 2 \nu / 3 } T ^ { 1 - \nu / 3 } } \Bigg ) + \tilde { \mathcal { O } } \Bigg ( \frac { \sigma ^ { 2 } } { K ^ { 2 \nu / 3 } T ^ { 1 - \nu / 3 } } \Bigg ) + \tilde { \mathcal { O } } \Bigg ( \frac { \zeta ^ { 2 } } { K ^ { 2 \nu / 3 } T ^ { 1 - \nu / 3 } } \Bigg ) .
|
| 144 |
+
$$
|
| 145 |
+
|
| 146 |
+
(ii) For any $\nu \in [ 0 , 1 ]$ , we have
|
| 147 |
+
|
| 148 |
+
Sample Complexity: The sample complexity of STEM is $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ . This implies that each WN requires at most $\tilde { \mathcal { O } } ( K ^ { - 1 } \epsilon ^ { - 3 / 2 } )$ gradient computations, thereby achieving linear speedup with the number of WNs present in the network.
|
| 149 |
+
|
| 150 |
+
Communication Complexity: The communication complexity of STEM is $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ .
|
| 151 |
+
|
| 152 |
+
The proof of this result is relegated to the Supplemental Material. A few remarks are in order.
|
| 153 |
+
|
| 154 |
+
Remark 1 (Near-Optimal sample and communication complexities). Theorem $3 . 1$ suggests that when $I$ and $b$ are selected appropriately, then STEM achieves $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ and $\tilde { \mathcal { O } } ( \overline { { \epsilon ^ { - 1 } } } )$ sample and communication complexities. Taking them separately, these complexity bounds are the best achievable by the existing FL algorithms (upto logarithmic factors regardless of sample or batch Lipschitz smooth assumption) $[ [ 3 5 ] ]$ ; see Table $\bigstar \bigstar$ We note that the $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ complexity is the best possible that can be achieved by centralized SGD with the sample Lipschitz gradient assumption; see $\pmb { \Vert 5 \Vert }$ . On the other hand, the $\bar { \mathcal { O } } ( \epsilon ^ { - 1 } )$ complexity bound is also likely to be the optimal, since in $\mathbb { P }$ the authors showed that even when the local steps use a class of (deterministic) first-order algorithms, $\mathcal { O } ( \epsilon ^ { - 1 } )$ is the best achievable communication complexity. The only difference is that $\pmb { \mathbb { Q } } \|$ does not explicitly assume the inter-node variance bound (i.e., the second relation in Assumption $2 \cdot$ -(ii)). We leave the precise characterization of the communication lower bound with inter-node variance as future work. □
|
| 155 |
+
|
| 156 |
+
Remark 2 (Large Batch Sizes and/or Local Updates). At first glance, it may seem that the requirement of STEM to compute large mini-batches and/or local updates (cf. Table $^ { 1 ) }$ to achieve this (near) optimal performance is a drawback, however, we note that it is in fact an advantage of STEM that it allows the WNs to perform larger number of local updates (or compute large minibatches) without communicating often. This follows from the fact that irrespective of the number of local updates (or batch sizes) STEM achieves near-optimal communication complexity while attaining optimal overall sample complexity. Moreover, note that even with $b = I = \mathcal { O } ( 1 )$ (i.e., $b$ and $I$ are chosen as constants), STEM achieves the same (optimal) sample and communication complexities as achieved by FedGLOMO [18] and MIME [17]. We further note that to the best of our knowledge the algorithms that achieve the communication complexity of $\mathcal { O } ( \epsilon ^ { - 1 } )$ either require the number of local updates or the batch-sizes that depend on the solution accuracy $\epsilon$ . For example, FedProx $\mathbb { \ m }$ , FedPD $\pmb { \mathbb { Q } } \mathbf { \| }$ , and FedDyn $\textcircled { \lvert 3 6 \rvert }$ rely on solving the “local problems" to achieve an $\epsilon$ -accuracy, which implies that the number of local updates (or the batch sizes) implicitly depends on the desired solution accuracy $\epsilon$ , as is the case for STEM. Similarly, as shown in $\bar { \lVert 1 2 \rVert }$ and $\bar { \lVert 1 4 \rVert }$ the communication complexity of FedAvg and its momentum version can be improved from $\mathcal { O } ( \epsilon ^ { - 2 } )$ to $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ when the number of local updates (or batch size) is chosen as $\mathcal { O } ( \epsilon ^ { - 1 / 2 } )$ (cf. Section $\boxed { 3 . 2 }$ for a more detailed discussion).
|
| 157 |
+
|
| 158 |
+
Remark 3 (The Optimal Batch Sizes and Local Updates Trade-off). The parameter $\nu \in [ 0 , 1 ]$ is used to balance the local minibatch sizes $b$ , and the number of local updates $I$ . Eqs. in $( 3 )$ suggest that when $\nu$ increases from 0 to 1, $b$ decreases and $I$ increases. Specifically, if $\nu = 1$ , then $b$ is a constant but $I = \mathcal { O } ( T ^ { 1 / 3 } / K ^ { 2 / 3 } )$ . In this case, each WN chooses a small minibatch while executing multiple local updates, and STEM resembles a FedAvg (a.k.a. Local SGD) algorithm but with double-sided momentum update directions, and is referred to as Fed STEM. In contrast, if $\nu = 0$ , then $b = \mathcal { O } ( T ^ { 1 / 2 } / K )$ but $I$ is a constant. In this case, each WN chooses a large batch size while executing only a few, or even one, local updates, and STEM resembles the Minibatch SGD, but again with different update directions, and is referred to as Minibatch STEM. Such a trade-off can be seen in Fig. 1b. Due to space limitation, these two special cases will be precisely stated in the supplementary materials as corollaries of Theorem 3.1. □
|
| 159 |
+
|
| 160 |
+
# Algorithm 2 The FedAvg Algorithm
|
| 161 |
+
|
| 162 |
+
1: Input: $\{ \eta _ { t } \} _ { t = 0 } ^ { T } ; I$ , the # of local updates per communication round; $b$ , the minibatch sizes.
|
| 163 |
+
2: for $t = 1$ to $T$ do
|
| 164 |
+
3: 4: 5: for $\begin{array} { r l } & { \mathcal { \kappa } _ { t } ^ { = } \stackrel { \mathrm { ~ L ~ U ~ O ~ } \Lambda } { = } \mathbf { 0 } } \\ & { d _ { t } ^ { ( k ) } = \frac { 1 } { b } \sum _ { \xi _ { t } ^ { ( k ) } \in \mathcal { B } _ { t } ^ { ( k ) } } \nabla f ^ { ( k ) } ( x _ { t } ^ { ( k ) } ; \xi _ { t } ^ { ( k ) } ) \mathrm { ~ w i t h ~ } | \mathcal { B } _ { t } ^ { ( k ) } | = b } \\ & { x _ { t + 1 } ^ { ( k ) } = x _ { t } ^ { ( k ) } - \eta _ { t } d _ { t } ^ { ( k ) } } \\ & { \mathbf { i f } t \operatorname* { m o d } I = 0 \mathbf { \Lambda } \mathbf { t h e n } } \\ & { ~ x _ { t + 1 } ^ { ( k ) } = \bar { x } _ { t + 1 } = \frac { 1 } { K } \sum _ { k = 1 } ^ { K } x _ { t + 1 } ^ { ( k ) } } \\ & { \mathbf { e n d } \mathbf { \Phi } \mathbf { i f } } \end{array}$ $k = 1$ $K$
|
| 165 |
+
6:
|
| 166 |
+
7:
|
| 167 |
+
8:
|
| 168 |
+
9: end for
|
| 169 |
+
10: end for
|
| 170 |
+
11: Return: $\scriptstyle { \bar { x } } _ { a }$ where $a \sim \mathcal { U } \{ 1 , . . . , T \}$ .
|
| 171 |
+
|
| 172 |
+
Remark 4 (The Sub-Optimal Batch Sizes and Local Updates Trade-off). From our proof (Theorem ${ \bf C . 1 0 }$ included in the supplemental material), we can see that STEM requires $\bar { \tilde { O } } ( \operatorname* { m a x } \big \{ ( b \cdot$ $I ) \epsilon ^ { - 1 } , K ^ { - 1 } \epsilon ^ { - 3 / 2 } \rbrace )$ samples and $\tilde { \mathcal { O } } \big ( \operatorname* { m a x } \big \{ \epsilon ^ { - 1 } , ( b \cdot I ) ^ { - 1 } K ^ { - 1 } \epsilon ^ { - 3 / 2 } \big \} \big )$ and communication rounds. According to the above expressions, if $b \cdot I$ increases beyond $\mathcal { O } ( K ^ { - 1 } \epsilon ^ { - 1 / 2 } )$ , then the sample complexity will increase from the optimal $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ ; otherwise, the optimal sample complexity $\tilde { \mathcal O } ( \epsilon ^ { - 3 / 2 } )$ is maintained. On the other hand, if $b \cdot I$ decreases beyond $\mathcal { O } ( K ^ { - 1 } \epsilon ^ { - 1 / 2 } )$ , the communication complexity increases from $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ . For instance, if we choose $b = \mathcal { O } ( 1 )$ and $I = { \mathcal { O } } ( 1 )$ the communication complexity becomes $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ while the optimal sample complexity $\tilde { \mathcal { O } } ( \epsilon ^ { - 3 / 2 } )$ is maintained. This trade-off is illustrated in Figure $\boxed { 1 \mathrm { a } }$ where we maintain the optimal sample complexity, while changing $b$ and $I$ to generate the trade-off surface. □
|
| 173 |
+
|
| 174 |
+
Remark 5 (Data Heterogeneity). The term $\begin{array} { r } { \tilde { \mathcal { O } } \biggl ( \frac { \zeta ^ { 2 } } { K ^ { 2 \nu / 3 } T ^ { 1 - \nu / 3 } } \biggr ) } \end{array}$ in the gradient bound $\textcircled{4}$ captures the effect of the heterogeneity of data across WNs, where $\zeta$ is the parameter characterizing the intra-node variance and has been defined in Assumption $\bigstar$ (ii). Highly heterogeneous data with large $\zeta ^ { 2 }$ can adversely impact the performance of STEM. Note that such a dependency on $\zeta$ also appears in other existing FL algorithms, such as $\boxed { 9 } \boxed { 1 4 } \boxed { 1 8 }$ . However, there is one special case of STEM that does not depend on the parameter $\zeta$ . This is the case where $I = 1$ , i.e., the minibatch SGD counterpart of STEM where only a single local iteration is performed between two communication rounds. We have the following corollary. □
|
| 175 |
+
|
| 176 |
+
Corollary 1 (Minibatch STEM). Under Assumptions $\boldsymbol { I } a n d \boldsymbol { 2 }$ , and choose the algorithm parameters as in Theorem $\boxed { 3 . I }$ At each WN, choose $I = 1$ , $b = ( T / K ^ { 2 } ) ^ { 1 / 2 }$ , and the initial batch size $B = \boldsymbol { b } \cdot \boldsymbol { I }$ . Then STEM satisfies:
|
| 177 |
+
|
| 178 |
+
(i) For $\bar { x } _ { a }$ chosen according to Algorithm $\perp$ we have
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\mathbb { E } \| \nabla f ( \bar { x } _ { a } ) \| ^ { 2 } = \mathcal { O } \Big ( \frac { f ( \bar { x } _ { 1 } ) - f ^ { * } } { T } \Big ) + \tilde { \mathcal { O } } \Big ( \frac { \sigma ^ { 2 } } { T } \Big ) .
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
(ii) Minibatch STEM achieves $\tilde { \mathcal O } ( \epsilon ^ { - 3 / 2 } )$ sample and $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ communication complexity.
|
| 185 |
+
|
| 186 |
+
Next, we show that FedAvg also exhibits a trade-off similar to that of STEM but with worse sample and communication complexities.
|
| 187 |
+
|
| 188 |
+
# 3.2 Special cases: The FedAvg algorithm
|
| 189 |
+
|
| 190 |
+
We briefly discuss another interesting special case of STEM, where the local momentum update is replaced by the conventional SGD (i.e., $a _ { t } = 1 , ~ \forall ~ t )$ , while the server does not perform the momentum update (i.e., $\bar { d } _ { t } = 0 , \forall t )$ . This is essentially the classical FedAvg algorithm, just that it balances the number of local updates $I$ and the minibatch size $b$ . We show that this algorithm also exhibits a trade-off between $b$ and $I$ and on the trade-off curve it achieves $\mathcal { O } ( \epsilon ^ { - 2 } )$ sample complexity and $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ communication complexity.
|
| 191 |
+
|
| 192 |
+
<table><tr><td>Algorithm</td><td> Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>78.2</td><td>74.1</td></tr><tr><td>FedProx</td><td>79.2</td><td>74.8</td></tr><tr><td>FedDyn</td><td>68.9</td><td>66.0</td></tr><tr><td>SCAFFOLD</td><td>71.9</td><td>74.0</td></tr><tr><td>MIME</td><td>82.6</td><td>76.8</td></tr><tr><td>FedGLOMO</td><td>76.1</td><td>72.8</td></tr><tr><td> STEM</td><td>80.1</td><td>78.8</td></tr></table>
|
| 193 |
+
|
| 194 |
+
(a) Mild heterogeneity, $b = 6 4$ , and $I = 7$ .
|
| 195 |
+
|
| 196 |
+
<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>73.6</td><td>75.4</td></tr><tr><td>FedProx</td><td>80.0</td><td>75.2</td></tr><tr><td>FedDyn</td><td>76.1</td><td>71.3</td></tr><tr><td>SCAFFOLD</td><td>72.5</td><td>73.7</td></tr><tr><td>MIME</td><td>61.5</td><td>58.6</td></tr><tr><td>FedGLOMO</td><td>10.0</td><td>10.0</td></tr><tr><td>STEM</td><td>81.1</td><td>78.5</td></tr></table>
|
| 197 |
+
|
| 198 |
+
(b) Moderate heterogeneity, $b = 8$ , and $I = 6 1$
|
| 199 |
+
|
| 200 |
+
Table 2: Training and testing accuracy of different algorithms on CIFAR-10 dataset for different batch-sizes, number of local updates, and heteregeneity settings.
|
| 201 |
+
|
| 202 |
+
Theorem 3.2 (The FedAvg Algorithm). Under Assumptions 1 and 2, suppose the stepsize is chosen as: $\begin{array} { r } { \eta = \sqrt { \frac { b K } { T } } } \end{array}$ ; Let us set:
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
I = \mathcal { O } \big ( ( T / K ^ { 3 } ) ^ { \nu / 4 } \big ) , \quad b = \mathcal { O } \big ( ( T / K ^ { 3 } ) ^ { 1 / 3 - \nu / 3 } \big )
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
where $\nu \in [ 0 , 1 ]$ is a constant. Then for FedAvg with $T \geq 8 1 L ^ { 2 } I ^ { 2 } b K$ , the following holds
|
| 209 |
+
|
| 210 |
+
(i) For $\scriptstyle { \bar { x } } _ { a }$ chosen according to Algorithm $2 ,$ we have
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
\mathbb { E } \Vert \nabla f ( \bar { x } _ { a } ) \Vert ^ { 2 } = \mathcal { O } \Bigg ( \frac { f ( \bar { x } _ { 1 } ) - f ^ { * } } { K ^ { \nu / 2 } T ^ { 2 / 3 - \nu / 6 } } \Bigg ) + \mathcal { O } \Bigg ( \frac { \sigma ^ { 2 } } { K ^ { \nu / 2 } T ^ { 2 / 3 - \nu / 6 } } \Bigg ) + \mathcal { O } \Bigg ( \frac { \zeta ^ { 2 } } { K ^ { \nu / 2 } T ^ { 2 / 3 - \nu / 6 } } \Bigg ) .
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
(ii) For any choice of $\nu \in [ 0 , 1 ]$ we have:
|
| 217 |
+
|
| 218 |
+
Sample Complexity: The sample complexity of FedAvg is $\mathcal { O } ( \epsilon ^ { - 2 } )$ . This implies that each WN requires at most $\tilde { \mathcal { O } } ( K ^ { - 1 } \epsilon ^ { - 2 } )$ gradient computations, thereby achieving linear speedup with the number of WNs in the network.
|
| 219 |
+
|
| 220 |
+
Communication Complexity: The communication complexity of FedAvg is $\mathcal { O } ( \epsilon ^ { - 3 / 2 } )$ .
|
| 221 |
+
|
| 222 |
+
Note that the requirement on $T$ being lower bounded is only relevant for theoretical purposes, a similar requirement was also imposed in $[ \mathbb { 1 4 } ]$ to prove convergence. Again, the parameter $\nu \in [ 0 , 1 ]$ in the statement of Theorem $\boxed { 3 . 2 }$ balances $I$ and $b$ at each WN while maintaining state-of-the-art sample and communication complexities; please see Table $\bigstar$ for a comparison of those bounds with existing FedAvg bounds. For $\nu = 1$ , FedAvg (cf. Theorem $3 . 2 )$ reduces to FedAvg proposed in [12, 14] and for $\nu = 0$ , the algorithm can be viewed as a large batch FedAvg with constant local updates [15, 16]. Note that similar to STEM, it is known that for $I = 1$ , the Minibatch SGD’s performance is independent of the heterogeneity parameter, $\zeta \equiv \mathbb { I I } 3 \mathbb { I }$ . We also point out that if Algorithm $\perp$ uses Nesterov’s or Polyak’s momentum $[ \textcircled { 1 4 } ]$ at local WNs instead of the recursive momentum estimator we get the same guarantees as in Theorem $\underline { { \boldsymbol { \vert 3 . 2 \vert } } }$
|
| 223 |
+
|
| 224 |
+
In summary, this section established that once the WN’s and the SN’s update directions (SGD in FedAvg and momentum based directions in STEM) are fixed, there exists a sequence of optimal choices of the number of local updates $I$ , and the batch sizes $b$ , which guarantees the best possible sample and communication complexities for the particular algorithm. The trade-off analysis presented in this section provides some useful guidelines for how to best select $b$ and $I$ in practice. Our subsequent numerical results will also verify that if $b$ or $I$ are not chosen judiciously, then the practical performance of the algorithms can degrade significantly.
|
| 225 |
+
|
| 226 |
+
# 4 Numerical results
|
| 227 |
+
|
| 228 |
+
In this section, we validate the proposed STEM algorithm and compare its performance with the de facto standard FedAvg [11], and the algorithms stated in Table $^ { 1 . }$ Note that instead of FedPD we include the performance comparison with FedDyn $\left[ \left[ 3 6 \right] \right]$ since they are known to be very closely related. The goal of our experiments are three-fold: (1) To show that STEM performs on par, if not better, compared to other algorithms in different heterogeneity settings, (2) there are multiple ways to reach the desired solution accuracy, one can either choose a large batch size and perform only a few local updates or select a smaller batch size and perform multiple local updates, and finally, (3) if the local updates and the batch sizes are not chosen appropriately, the WNs might need to perform excessive computations to achieve the desired solution accuracy, thereby slowing down convergence.
|
| 229 |
+
|
| 230 |
+
Table 3: Training and testing accuracy on CIFAR-10 dataset for high heterogeneity, $b =$ 128 and $I = 6$ .
|
| 231 |
+
|
| 232 |
+
<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>57.6</td><td>57.1</td></tr><tr><td>FedProx</td><td>59.1</td><td>58.5</td></tr><tr><td>FedDyn</td><td>51.2</td><td>51.3</td></tr><tr><td>SCAFFOLD</td><td>53.1</td><td>54.7</td></tr><tr><td>MIME</td><td>56.1</td><td>55.1</td></tr><tr><td>FedGLOMO</td><td>56.8</td><td>56.1</td></tr><tr><td> STEM</td><td>58.5</td><td>57.4</td></tr></table>
|
| 233 |
+
|
| 234 |
+
Table 4: Training and testing accuracy on Shakespeare dataset.
|
| 235 |
+
|
| 236 |
+
<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>40.1</td><td>39.2</td></tr><tr><td>FedProx</td><td>43.5</td><td>43.2</td></tr><tr><td>FedDyn</td><td>43.7</td><td>43.2</td></tr><tr><td>SCAFFOLD</td><td>40.3</td><td>41.3</td></tr><tr><td>MIME</td><td>32.1</td><td>32.1</td></tr><tr><td>FedGLOMO</td><td>40.3</td><td>40.1</td></tr><tr><td> STEM</td><td>44.5</td><td>43.8</td></tr></table>
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 2: Training loss and the testing accuracy for classification on MNIST data set against the number of samples accessed at each WN for moderate heterogeneity setting with $b = 8$ .
|
| 240 |
+
|
| 241 |
+
Data and Parameter Settings: We compare the algorithms for image classification tasks on CIFAR10 and MNIST data sets with 100 WNs, and for next character prediction task on Shakespeare dataset $\pmb { \Vert 3 7 } \Vert$ with 143 WNs in the network. For both CIFAR-10 and MNIST, each WN implements a two-hidden-layer convolutional neural network (CNN) architecture followed by three linear layers for CIFAR-10 and two for MNIST. For CIFAR-10 (and MNIST) datset, we consider three settings with mild, moderate and high heterogeneity. For all the three settings, the data is partitioned into disjoint sets among the WNs. In the mild heterogeneity setting, the WNs have access to partitioned data from all the classes. In the moderate (resp. high) heterogeneity setting the data is partitioned such that each WN can access data from only 5 (resp. 2) out of 10 classes. For CIFAR-10 (resp. MNIST), each WN has access to 490 (resp. 540) samples for training and 90 (resp. 80) samples for testing purposes.
|
| 242 |
+
|
| 243 |
+
We also compare the performance of algorithms on a popular FL benchmarking dataset, Shakespeare dataset $\mathbb { B } \mathbb { Z }$ . For this task, we adopt the settings from $\dot { \left[ \left| 1 0 \right| \right] }$ and utilize a 2-Layer LSTM network with 100 hidden units and an 8-D embedding layer at each WN. Each WN has access to 3616 samples on average, and the samples are randomly split into an $80 \%$ training set and a $20 \%$ testing set. We randomly sample 10 nodes out of 143 for the training purpose. All the experiments are implemented on a single NVIDIA Quadro RTX 5000 GPU. More details are provided in appendix.
|
| 244 |
+
|
| 245 |
+
For the proposed STEM algorithm, recall that the step-size is $\eta _ { t } = \bar { \kappa } / ( w _ { t } + \sigma ^ { 2 } t ) ^ { 1 / 3 }$ with momentum parameter defined as $a _ { t } = { c } \eta _ { t } ^ { 2 }$ . The step-size is used to update the iterates while the momentum parameter is used to construct the stochastic gradient estimate (cf. Algorithm 1 and Theorem $\boxed { 3 . 1 }$ . For the experiments, we set $w _ { t } = \sigma ^ { 2 } = 1$ and $c \doteq \bar { c } / \bar { \kappa } ^ { 2 }$ and tune for $\bar { \kappa } \in [ 1 0 ^ { - 1 } , 1 0 ^ { - 2 } ]$ for the CIFAR-10 dataset and for ${ \bar { \kappa } } \in \{ 1 0 ^ { 1 } , 1 0 ^ { 0 } , 1 0 ^ { - 1 } , 1 0 ^ { - 2 } \}$ for the Shakespeare dataset. For both the datasets we tune for $\bar { c }$ in the range [1, 10]. For FedProx $\mathbb { m }$ and FedDyn $\lVert \dot { \boldsymbol { 3 6 } } \rVert$ we choose the regularization constant to be 0.1. The momentum parameters for FedGLOMO $\pm \textcircled { 1 8 } \textcircled { 1 }$ and MIME $\mathbb { \ m }$ are set based on the choices given in the respective papers. Specifically, for FedGLOMO we choose the parameter $\beta _ { k } = 0 . 2$ and design the momentum gradient using a damping factor given in Appendix A.4 of FedGLOMO $\mathbb { \left[ \left[ 8 \right] \right] }$ . Moreover, for MIME we choose the momentum parameter as 0.9. For the rest of the algorithms (including FedAvg and SCAFFOLD), the step-size is tuned from the set $\{ 1 0 ^ { 1 } , 1 0 ^ { 0 } , 1 0 ^ { - 1 } , \hat { 1 0 } ^ { - 2 } \}$ .
|
| 246 |
+
|
| 247 |
+
Discussion: We evaluate the training and testing performance of STEM against multiple algorithms for different heterogeneity settings, minibatch sizes, and number of local updates. In Tables $\bigstar$ $\boxed { 2 \mathbf { b } }$ and $\bigstar ,$ we compare the training and testing accuracy of STEM to that of other algorithms on the CIFAR-10 dataset. Specific, heterogeneity settings, the choices of minibatches, and number of local updates are stated along with the tables. Note that STEM performs uniformly well under all the conditions. Moreover, note from Table $2 { \mathbf { b } }$ that FedGLOMO diverges once the number of local updates are high. Also, note from Table $\textcircled { 3 }$ that FedProx and STEM adapt well to high heterogeneity. Finally, with the next set of experiments we emphasize the importance of choosing $b$ and $I$ carefully. In Figure $\bigstar ,$ we compare the training and testing performance of STEM, FedAvg and SCAFFOLD, against the number of samples accessed at each WN for the classification task on MNIST dataset with moderate heterogeneity. We fix $b = 8$ and conduct experiments under two settings, one with $I = 6 7$ , and the other with $I = 5 3 6$ local updates at each WN. Note that although a large number of local updates might lead to fewer communication rounds but it can make the sample complexity extremely high as is demonstrated by Figure $2 .$ For example, Figure $\bigtriangledown$ shows that to reach testing accuracy of $9 6 - 9 7 \%$ with $I = 6 7$ , STEM requires approximately $\overline { { 5 0 } } 0 0 - 6 0 0 0$ samples, in contrast with $I = 5 3 6$ it requires more than 25000 samples at each WN. Similar behavior can be observed if we fix $I > 1$ and increase the local batch sizes. This implies not choosing the local updates and the batch sizes judiciously might lead to increased sample complexity. Additional experiments are included in the supplementary material to further evaluate the performance of the proposed algorithms.
|
| 248 |
+
|
| 249 |
+
# Conclusion
|
| 250 |
+
|
| 251 |
+
In this work, we proposed a novel algorithm STEM, for distributed stochastic non-convex optimization with applications to FL. We showed that STEM reaches an $\epsilon$ -stationary point with $\tilde { \mathcal O } ( \epsilon ^ { - 3 / 2 } )$ sample complexity while achieving linear speed-up with the number of WNs. Moreover, the algorithm achieves a communication complexity of $\tilde { \mathcal { O } } ( \epsilon ^ { - 1 } )$ . We established a (optimal) trade-off that allows interpolation between varying choices of local updates and the batch sizes at each WN while maintaining (near optimal) sample and communication complexities. We showed that FedAvg (a.k.a LocalSGD) also exhibits a similar trade-off while achieving worse complexities. Our results provide guidelines to carefully choose the number of local updates, update directions, and minibatch sizes to achieve the best performance. The future directions of this work include developing lower bounds on communication complexity that establishes the tightness of the analysis conducted in this work.
|
| 252 |
+
|
| 253 |
+
# Acknowledgement
|
| 254 |
+
|
| 255 |
+
We thank the anonymous reviewers for their valuable comments and suggestions. The work of Prashant Khanduri and Mingyi Hong was supported by NSF grant CMMI-1727757, AFOSR grant 19RT0424 and ARO grant W911NF-19-1-0247. The work of Mingyi Hong was also supported by an IBM Faculty Research award. The work of Jia Liu has been supported in part by NSF grants CAREER CNS-2110259, CNS-2112471, CNS-2102233, CCF-2110252, ECCS-2140277, and a Google Faculty Research Award.
|
| 256 |
+
|
| 257 |
+
References
|
| 258 |
+
[1] J. Konecnˇ y, H. B. McMahan, D. Ramage, and P. Richtárik, “Federated optimization: Distributed \` machine learning for on-device intelligence,” arXiv preprint arXiv:1610.02527, 2016.
|
| 259 |
+
[2] M. Li, D. G. Andersen, A. J. Smola, and K. Yu, “Communication efficient distributed machine learning with the parameter server,” in Advances in Neural Information Processing Systems 27, Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, Eds. Curran Associates, Inc., 2014, pp. 19–27.
|
| 260 |
+
[3] J. Dean, G. Corrado, R. Monga, K. Chen, M. Devin, M. Mao, M. Ranzato, A. Senior, P. Tucker, K. Yang et al., “Large scale distributed deep networks,” in Advances in neural information processing systems, 2012, pp. 1223–1231.
|
| 261 |
+
[4] T. Léauté and B. Faltings, “Protecting privacy through distributed computation in multi-agent decision making,” Journal of Artificial Intelligence Research, vol. 47, pp. 649–695, 2013.
|
| 262 |
+
[5] C. Fang, C. J. Li, Z. Lin, and T. Zhang, “Spider: Near-optimal non-convex optimization via stochastic path-integrated differential estimator,” in Advances in Neural Information Processing Systems, 2018, pp. 689–699.
|
| 263 |
+
[6] D. Zhou, P. Xu, and Q. Gu, “Stochastic nested variance reduction for nonconvex optimization,” arXiv preprint arXiv:1806.07811, 2018.
|
| 264 |
+
[7] A. Cutkosky and F. Orabona, “Momentum-based variance reduction in non-convex SGD,” in Advances in Neural Information Processing Systems 32. Curran Associates, Inc., 2019, pp. 15 236–15 245.
|
| 265 |
+
[8] Q. Tran-Dinh, N. H. Pham, D. T. Phan, and L. M. Nguyen, “Hybrid stochastic gradient descent algorithms for stochastic nonconvex optimization,” arXiv preprint arXiv:1905.05920, 2019.
|
| 266 |
+
[9] X. Zhang, M. Hong, S. Dhople, W. Yin, and Y. Liu, “Fedpd: A federated learning framework with adaptivity to non-iid data,” IEEE Transactions on Signal Processing, pp. 1–1, 2021.
|
| 267 |
+
[10] T. Li, A. K. Sahu, M. Zaheer, M. Sanjabi, A. Talwalkar, and V. Smith, “Federated optimization in heterogeneous networks,” arXiv preprint arXiv:1812.06127, 2018.
|
| 268 |
+
[11] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial Intelligence and Statistics. PMLR, 2017, pp. 1273–1282.
|
| 269 |
+
[12] H. Yu, S. Yang, and S. Zhu, “Parallel restarted sgd with faster convergence and less communication: Demystifying why model averaging works for deep learning,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, 2019, pp. 5693–5700.
|
| 270 |
+
[13] B. Woodworth, K. K. Patel, and N. Srebro, “Minibatch vs local sgd for heterogeneous distributed learning,” arXiv preprint arXiv:2006.04735, 2020.
|
| 271 |
+
[14] H. Yu, R. Jin, and S. Yang, “On the linear speedup analysis of communication efficient momentum sgd for distributed non-convex optimization,” in International Conference on Machine Learning. PMLR, 2019, pp. 7184–7193.
|
| 272 |
+
[15] S. P. Karimireddy, S. Kale, M. Mohri, S. Reddi, S. Stich, and A. T. Suresh, “Scaffold: Stochastic controlled averaging for federated learning,” in International Conference on Machine Learning. PMLR, 2020, pp. 5132–5143.
|
| 273 |
+
[16] H. Yang, M. Fang, and J. Liu, “Achieving linear speedup with partial worker participation in non-iid federated learning,” arXiv preprint arXiv:2101.11203, 2021.
|
| 274 |
+
[17] S. P. Karimireddy, M. Jaggi, S. Kale, M. Mohri, S. J. Reddi, S. U. Stich, and A. T. Suresh, “Mime: Mimicking centralized stochastic algorithms in federated learning,” arXiv preprint arXiv:2008.03606, 2020.
|
| 275 |
+
[18] R. Das, A. Hashemi, S. Sanghavi, and I. S. Dhillon, “Improved convergence rates for non-convex federated learning with compression,” arXiv preprint arXiv:2012.04061, 2020.
|
| 276 |
+
[19] B. Woodworth, K. K. Patel, S. U. Stich, Z. Dai, B. Bullins, H. B. McMahan, O. Shamir, and N. Srebro, “Is local sgd better than minibatch sgd?” arXiv preprint arXiv:2002.07839, 2020.
|
| 277 |
+
[20] H. Yu and R. Jin, “On the computation and communication complexity of parallel sgd with dynamic batch sizes for stochastic non-convex optimization,” in International Conference on Machine Learning. PMLR, 2019, pp. 7174–7183.
|
| 278 |
+
[21] J. Wang and G. Joshi, “Cooperative sgd: A unified framework for the design and analysis of local-update sgd algorithms,” Journal of Machine Learning Research, vol. 22, no. 213, pp. 1–50, 2021.
|
| 279 |
+
[22] A. Khaled, K. Mishchenko, and P. Richtárik, “Better communication complexity for local sgd,” arXiv, 2019.
|
| 280 |
+
[23] S. U. Stich, “Local sgd converges fast and communicates little,” arXiv preprint arXiv:1805.09767, 2018.
|
| 281 |
+
[24] T. Lin, S. U. Stich, K. K. Patel, and M. Jaggi, “Don’t use large mini-batches, use local sgd,” in International Conference on Learning Representations, 2020.
|
| 282 |
+
[25] F. Zhou and G. Cong, “On the convergence properties of a k-step averaging stochastic gradient descent algorithm for nonconvex optimization,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, 7 2018, pp. 3219–3227.
|
| 283 |
+
[26] F. Sattler, S. Wiedemann, K.-R. Müller, and W. Samek, “Robust and communication-efficient federated learning from non-iid data,” IEEE transactions on neural networks and learning systems, vol. 31, no. 9, pp. 3400–3413, 2019.
|
| 284 |
+
[27] Y. Zhao, M. Li, L. Lai, N. Suda, D. Civin, and V. Chandra, “Federated learning with non-iid data,” arXiv preprint arXiv:1806.00582, 2018.
|
| 285 |
+
[28] J. Wang, V. Tantia, N. Ballas, and M. Rabbat, “Slowmo: Improving communication-efficient distributed sgd with slow momentum,” arXiv preprint arXiv:1910.00643, 2019.
|
| 286 |
+
[29] X. Liang, S. Shen, J. Liu, Z. Pan, E. Chen, and Y. Cheng, “Variance reduced local sgd with lower communication complexity,” arXiv preprint arXiv:1912.12844, 2019.
|
| 287 |
+
[30] P. Sharma, P. Khanduri, S. Bulusu, K. Rajawat, and P. K. Varshney, “Parallel restarted SPIDER – communication efficient distributed nonconvex optimization with optimal computation complexity,” arXiv preprint arXiv:1912.06036, 2019.
|
| 288 |
+
[31] S. J. Reddi, S. Kale, and S. Kumar, “On the convergence of adam and beyond,” arXiv preprint arXiv:1904.09237, 2019.
|
| 289 |
+
[32] A. Koloskova, N. Loizou, S. Boreiri, M. Jaggi, and S. Stich, “A unified theory of decentralized sgd with changing topology and local updates,” in International Conference on Machine Learning. PMLR, 2020, pp. 5381–5393.
|
| 290 |
+
[33] R. Johnson and T. Zhang, “Accelerating stochastic gradient descent using predictive variance reduction,” in Advances in Neural Information Processing Systems 26. Curran Associates, Inc., 2013, pp. 315–323.
|
| 291 |
+
[34] L. Bottou, F. E. Curtis, and J. Nocedal, “Optimization methods for large-scale machine learning,” SIAM Review, vol. 60, no. 2, pp. 223–311, 2018.
|
| 292 |
+
[35] Y. Drori and O. Shamir, “The complexity of finding stationary points with stochastic gradient descent,” in International Conference on Machine Learning. PMLR, 2020, pp. 2658–2667.
|
| 293 |
+
[36] D. A. E. Acar, Y. Zhao, R. Matas, M. Mattina, P. Whatmough, and V. Saligrama, “Federated learning based on dynamic regularization,” in International Conference on Learning Representations, 2020.
|
| 294 |
+
[37] S. Caldas, S. M. K. Duddu, P. Wu, T. Li, J. Konecnˇ ý, H. B. McMahan, V. Smith, and A. Talwalkar, “Leaf: A benchmark for federated settings,” 2019.
|
parse/train/gEzN9bBbLt8/gEzN9bBbLt8_content_list.json
ADDED
|
@@ -0,0 +1,1234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ving Near-Optimal Sample and Communication Complexities for Federated Learning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
122,
|
| 9 |
+
823,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Prashant Khanduri University of Minnesota khand095@umn.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
269,
|
| 19 |
+
251,
|
| 20 |
+
429,
|
| 21 |
+
292
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Pranay Sharma Carnegie Mellon University pranaysh@andrew.cmu.edu ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
529,
|
| 30 |
+
251,
|
| 31 |
+
730,
|
| 32 |
+
292
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Haibo Yang The Ohio State University yang.5952@buckeyemail.osu.edu ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
186,
|
| 41 |
+
314,
|
| 42 |
+
436,
|
| 43 |
+
356
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Mingyi Hong⇤ University of Minnesota mhong@umn.edu ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
455,
|
| 52 |
+
314,
|
| 53 |
+
617,
|
| 54 |
+
356
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Jia Liu The Ohio State University liu@ece.osu.edu ",
|
| 61 |
+
"bbox": [
|
| 62 |
+
637,
|
| 63 |
+
314,
|
| 64 |
+
812,
|
| 65 |
+
356
|
| 66 |
+
],
|
| 67 |
+
"page_idx": 0
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"type": "text",
|
| 71 |
+
"text": "Ketan Rajawat Indian Institute of Technology Kanpur ketan@iitk.ac.in ",
|
| 72 |
+
"bbox": [
|
| 73 |
+
253,
|
| 74 |
+
377,
|
| 75 |
+
508,
|
| 76 |
+
419
|
| 77 |
+
],
|
| 78 |
+
"page_idx": 0
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"type": "text",
|
| 82 |
+
"text": "Pramod K. Varshney Syracuse University varshney@syr.edu ",
|
| 83 |
+
"bbox": [
|
| 84 |
+
593,
|
| 85 |
+
377,
|
| 86 |
+
743,
|
| 87 |
+
420
|
| 88 |
+
],
|
| 89 |
+
"page_idx": 0
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "text",
|
| 93 |
+
"text": "Abstract ",
|
| 94 |
+
"text_level": 1,
|
| 95 |
+
"bbox": [
|
| 96 |
+
462,
|
| 97 |
+
455,
|
| 98 |
+
535,
|
| 99 |
+
472
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "Federated Learning (FL) refers to the paradigm where multiple worker nodes (WNs) build a joint model by using local data. Despite extensive research, for a generic non-convex FL problem, it is not clear, how to choose the WNs’ and the server’s update directions, the minibatch sizes, and the number of local updates, so that the WNs use the minimum number of samples and communication rounds to achieve the desired solution. This work addresses the above question and considers a class of stochastic algorithms where the WNs perform a few local updates before communication. We show that when both the WN’s and the server’s directions are chosen based on certain stochastic momentum estimator, the algorithm requires $\\tilde { \\mathcal O } ( \\epsilon ^ { - 3 / 2 } )$ samples and $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ communication rounds to compute an $\\epsilon$ -stationary solution. To the best of our knowledge, this is the first FL algorithm that achieves such near-optimal sample and communication complexities simultaneously. Further, we show that there is a trade-off curve between the number of local updates and the minibatch sizes, on which the above sample and communication complexities can be maintained. Finally, we show that for the classical FedAvg (a.k.a. Local SGD, which is a momentum-less special case of the STEM), a similar trade-off curve exists, albeit with worse sample and communication complexities. Our insights on this trade-off provides guidelines for choosing the four important design elements for FL algorithms, the number of local updates, WNs’ and server’s update directions, and minibatch sizes to achieve the best performance. ",
|
| 106 |
+
"bbox": [
|
| 107 |
+
232,
|
| 108 |
+
486,
|
| 109 |
+
766,
|
| 110 |
+
765
|
| 111 |
+
],
|
| 112 |
+
"page_idx": 0
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"type": "text",
|
| 116 |
+
"text": "1 Introduction ",
|
| 117 |
+
"text_level": 1,
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
790,
|
| 121 |
+
310,
|
| 122 |
+
808
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "In Federated Learning (FL), multiple worker nodes (WNs) collaborate with the goal of learning a joint model, by only using local data. Therefore it has become popular for machine learning problems where datasets are massively distributed [1]. In FL, the data is often collected at or off-loaded to multiple WNs which in collaboration with a server node (SN) jointly aim to learn a centralized model [2, 3]. The local WNs share the computational load and since the data is local to each WN, FL also provides some level of data privacy $\\mathbb { H }$ . A classical distributed optimization problem that $K$ WNs aim to solve: ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
174,
|
| 131 |
+
821,
|
| 132 |
+
823,
|
| 133 |
+
877
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/8b109c70673d05d4fb4863253d56729a5c2b37b6a73924b30a5e660d7b6d1078.jpg",
|
| 140 |
+
"image_caption": [
|
| 141 |
+
"Figure 1: The 3D surface in (a) plots the communication complexity of the proposed STEM for different minibatch sizes and number of local updates. The surface is generated such that each point represents STEM with a particular choice of $( b , I )$ , so that it requires $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ samples to achieve $\\epsilon$ -stationarity. Plot (b) shows the optimal trade off between the minibatch sizes and the number of local updates at each WN (i.e., achieving the lowest communication and sample complexities). Both plots are generated for an accuracy of $\\epsilon = 1 0 ^ { - 3 }$ and all the constants dependent on system parameters (variance of stochastic gradients, heterogeneity parameter, optimality gap, Lipschitz constants, etc.) are assumed to be 1. Fed STEM is a special case of STEM where $\\mathcal { O } ( 1 )$ minibatch is used; Minibatch STEM is a special case of STEM where $\\mathcal { O } ( 1 )$ local updates are used. "
|
| 142 |
+
],
|
| 143 |
+
"image_footnote": [],
|
| 144 |
+
"bbox": [
|
| 145 |
+
205,
|
| 146 |
+
92,
|
| 147 |
+
772,
|
| 148 |
+
261
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
398,
|
| 158 |
+
826,
|
| 159 |
+
440
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "equation",
|
| 165 |
+
"img_path": "images/2805a58b3a852bb789307ddca3e7e2aea04c24beb34df4fd0d38807ed0628944.jpg",
|
| 166 |
+
"text": "$$\n\\operatorname* { m i n } _ { x \\in \\mathbb { R } ^ { d } } \\bigg \\{ f ( x ) : = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } f ^ { ( k ) } ( x ) : = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } \\mathbb { E } _ { \\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) } } \\big [ f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) \\big ] \\bigg \\} .\n$$",
|
| 167 |
+
"text_format": "latex",
|
| 168 |
+
"bbox": [
|
| 169 |
+
266,
|
| 170 |
+
444,
|
| 171 |
+
730,
|
| 172 |
+
488
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 1
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "where $f ^ { ( k ) } : \\mathbb { R } ^ { d } \\mathbb { R }$ denotes the smooth (possibly non-convex) objective function and $\\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) }$ represents the sample/s drawn from distribution $\\mathcal { D } ^ { ( k ) }$ at the $k ^ { \\mathrm { { t h } } }$ WN with $k \\in [ K ]$ . When the distributions $\\mathcal { D } ^ { ( k ) }$ are different across the WNs, it is referred to as the heterogeneous data setting. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
493,
|
| 182 |
+
825,
|
| 183 |
+
539
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 1
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "The optimization performance of non-convex FL algorithms is typically measured by the total number of samples accessed (cf. Definition $\\boxed { 2 . 2 }$ and the total rounds of communication (cf. Definition $2 . 3 )$ required by each WN to achieve an $\\epsilon$ -stationary solution (cf. Definition $\\boxed { 2 . 1 }$ . To minimize the sample and the communication complexities, FL algorithms rely on the following four key design elements: (i) the WNs’ local model update directions, (ii) Minibatch size to compute each local direction, (iii) the number of local updates before WNs share their parameters, and (iv) the SN’s update direction. How to find effective FL algorithms by (optimally) designing these parameters has received significant research interest recently. ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
545,
|
| 193 |
+
825,
|
| 194 |
+
657
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 1
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Contributions. The main contributions of this work are listed below: ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
174,
|
| 203 |
+
662,
|
| 204 |
+
629,
|
| 205 |
+
676
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 1
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "text",
|
| 211 |
+
"text": "1) We propose the Stochastic Two-Sided Momentum (STEM) algorithm, that utilizes certain momentum-assisted stochastic gradient directions for both the WNs and SN updates. We show that there exists an optimal trade off between the minibatch sizes and number of local updates, such that on the trade-off curve STEM requires $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } ) ^ { 2 }$ samples and $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ communication rounds to reach an $\\epsilon$ -stationary solution; see Figure $\\bigstar$ for an illustration. These complexity results are the best achievable for first-order stochastic FL algorithms (under certain assumptions, cf. Assumption $\\bigstar \\bigstar$ ; see $\\pm \\boxed { 5 } \\boxed { 8 } \\parallel$ and $\\mathbb { B } \\mathbb { n o }$ , as well as Remark $\\checkmark$ of this paper for discussions regarding optimality. To the best of our knowledge, STEM is the first algorithm which – (i) simultaneously achieves the optimal sample and communication complexities for FL and (ii) can optimally trade off the minibatch sizes and the number of local updates. ",
|
| 212 |
+
"bbox": [
|
| 213 |
+
173,
|
| 214 |
+
683,
|
| 215 |
+
825,
|
| 216 |
+
824
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "2) A momentum-less special case of our STEM result further reveals some interesting insights of the classical FedAvg algorithm (a.k.a. the Local SGD) [11–13]. Specifically, we show that for FedAvg, there also exists a trade-off between the minibatch sizes and the number of local updates, such that it requires $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ samples and $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ communication rounds to achieve an $\\epsilon$ -stationary solution. ",
|
| 223 |
+
"bbox": [
|
| 224 |
+
174,
|
| 225 |
+
830,
|
| 226 |
+
825,
|
| 227 |
+
887
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "table",
|
| 233 |
+
"img_path": "images/c128a8f8c828914de2ebd0394fe1679cfb1eb64efae4ae9cdf73ecbb43acff9d.jpg",
|
| 234 |
+
"table_caption": [],
|
| 235 |
+
"table_footnote": [
|
| 236 |
+
"Table 1: Comparison of FedAvg and STEM with different FL algorithms for various choices of the minibatch sizes $( b )$ and the number of per node local updates between two rounds of communication $( I )$ . $^ \\circ \\nu \\in [ 0 , 1 ]$ trades off $^ { b }$ and $I$ ; $\\nu = 1$ (resp. $\\nu = 0$ ) uses multiple (resp. $\\mathcal { O } ( 1 ) .$ ) local updates and $\\mathcal { O } ( 1 )$ (resp. multiple) samples. Fed STEM and Minibatch STEM are two variants of the proposed STEM. ‡The data heterogeneity assumption is weaker than Assumption $2$ (please see $\\bigstar \\bigstar$ for details). †Requires bounded Hessian dissimilarity to model data heterogeneity across WNs. ⇤Guarantees for Minibatch STEM with $I = 1$ and SCAFFOLD are independent of the data heterogeneity. "
|
| 237 |
+
],
|
| 238 |
+
"table_body": "<table><tr><td>Algorithm</td><td>Work</td><td>Sample</td><td>Comm.</td><td>Minibatch (b)</td><td>Local Updates (I) /round</td></tr><tr><td>FedAvg</td><td>国园 国国</td><td>0(€-2)</td><td>0(c-3/2) 0(c-2)</td><td>0(1) 0(1) 2(1-v)</td><td>0(c-1/2) 0(1) 3v</td></tr><tr><td>SCAFFOLD*</td><td>this work 国</td><td>0(c-2)</td><td>O(e-3/2) 0(c-2)</td><td>O(c 4-v) 0(1)</td><td>O(c−2(4-D)) 0(1)</td></tr><tr><td>FedPD/FedProx*</td><td>四/□</td><td>O(c-2)</td><td>0(e-1)</td><td>0(1)</td><td>0(e-1)</td></tr><tr><td>MIME†/FedGLOMO</td><td>/8</td><td>0(c-3/2)</td><td>O(€-3/2)</td><td>0(1)</td><td>0(1)</td></tr><tr><td>STEM Fed STEM Minibatch STEM*</td><td> this work</td><td>O(€-3/2)</td><td>O(e-1)</td><td>( 0(1) O(e-1/2)</td><td>O(∈−(3)) O(∈-1/2) 0(1)</td></tr></table>",
|
| 239 |
+
"bbox": [
|
| 240 |
+
173,
|
| 241 |
+
88,
|
| 242 |
+
830,
|
| 243 |
+
266
|
| 244 |
+
],
|
| 245 |
+
"page_idx": 2
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"type": "text",
|
| 249 |
+
"text": "Collectively, our insights on the trade-offs provide practical guidelines for choosing different design elements for FL algorithms. ",
|
| 250 |
+
"bbox": [
|
| 251 |
+
176,
|
| 252 |
+
405,
|
| 253 |
+
823,
|
| 254 |
+
433
|
| 255 |
+
],
|
| 256 |
+
"page_idx": 2
|
| 257 |
+
},
|
| 258 |
+
{
|
| 259 |
+
"type": "text",
|
| 260 |
+
"text": "Related Works. FL algorithms were first proposed in the form of FedAvg [11], where the local update directions at each WN were chosen to be the SGD updates. Earlier works analyzed these algorithms in the homogeneous data setting [19–25], while many recent studies have focused on designing new algorithms to deal with heterogeneous data settings, as well as problems where the local loss functions are non-convex [9, 10, 12–16, 18, 26–32]. In $\\bar { \\mathbb { E } 2 } \\mathbb { I }$ , the authors showed that Parallel Restarted SGD (Local SGD or FedAvg [11]) achieves linear speed up while requiring $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ samples and $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ rounds of communication to reach an $\\epsilon$ -stationary solution. In $\\bar { \\textregistered }$ , a Momentum SGD was proposed, which achieved the same sample and communication complexities as Parallel Restarted SGD $\\mathbb { \\lVert 1 2 \\rVert }$ , without requiring that the second moments of the gradients be bounded. Further, it was shown that under the homogeneous data setting, the communication complexity can be improved to $\\mathcal { O } ( \\epsilon ^ { - 1 } )$ while maintaining the same sample complexity. The works in $\\boxed { 1 5 } \\boxed { 1 6 }$ conducted tighter analysis for FedAvg with partial WN participation with $\\mathcal { O } ( 1 )$ local updates and batch sizes. Their analysis showed that FedAvg’s sample and communication complexities are both $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ . Additionally, SCAFFOLD was proposed in $\\bar { \\| 1 5 \\| }$ , which utilized variance reduction based local update directions $\\mathbb { \\lVert 3 3 \\rVert }$ to achieve the same sample and communication complexities as FedAvg. Similarly, VRL-SGD proposed in $\\left[ \\left[ 2 9 \\right] \\right]$ also utilized variance reduction and showed improved communication complexity of $\\mathcal { O } ( \\epsilon ^ { - 1 } )$ , while requiring the same computations as FedAvg. Importantly, both SCAFFOLD and VRL-SGD’s guarantees were independent of the data heterogeneity. The FedProx proposed in $\\mathbb { I O } ]$ used a penalty based method to improve the communication complexity of FedAvg (i.e., the Parallel Restarted and Momentum SGD [14, $\\mathbb { L } 2 \\mathbb { I }$ ) to $\\mathcal { O } ( \\epsilon ^ { - 1 } )$ . FedProx used a gradient similarity assumption to model data heterogeneity which can be stringent for many practical applications. This assumption was relaxed by FedPD proposed in $\\mathbb { \\left[ 9 \\right] }$ . ",
|
| 261 |
+
"bbox": [
|
| 262 |
+
173,
|
| 263 |
+
439,
|
| 264 |
+
825,
|
| 265 |
+
743
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "Recently, the works [17, 18] proposed to utilize hybrid momentum gradient estimators [7, 8]. The MIME algorithm $\\mathbb { \\ m }$ matched the optimal sample complexity (under certain smoothness assumptions) of $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ of the centralized non-convex stochastic optimization algorithms [5–8]. Similarly, Fed-GLOMO $[ \\overline { { 1 8 } } ]$ achieved the same sample complexity while employing compression to further reduce communication. Both MIME and Fed-GLOMO required $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ communication rounds to achieve an $\\epsilon$ -stationary solution. Please see Table $\\bigtriangledown$ for a summary of the above discussion. ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
174,
|
| 274 |
+
748,
|
| 275 |
+
825,
|
| 276 |
+
837
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "The comparison of Local SGD (FedAvg) to Minibatch SGD for convex and strongly convex problems with homogeneous data setting was first conducted in $\\mathbb { \\underline { { \\ m } } }$ and later extended to heterogeneous setting in $\\mathbb { \\lVert \\rVert 3 \\rVert }$ . It was shown that Minibatch SGD almost always dominates the Local SGD. In contrast, it was shown in $\\pmb { \\Vert 2 4 \\Vert }$ that Local SGD dominates Minibatch SGD in terms of generalization performance. Although existing FL results are rich, but they are somehow ad hoc and there is a lack of principled understanding of the algorithms. We note that the proposed STEM algorithmic framework provides a theoretical framework that unifies all existing $\\mathrm { F L }$ results on sample and communication complexities. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
842,
|
| 286 |
+
825,
|
| 287 |
+
911
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "",
|
| 294 |
+
"bbox": [
|
| 295 |
+
171,
|
| 296 |
+
90,
|
| 297 |
+
825,
|
| 298 |
+
119
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 3
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "Notations. The expected value of a random variable $X$ is denoted by $\\mathbb { E } [ X ]$ and its expectation conditioned on an Event $A$ is denoted as $\\mathbb { E } [ X | \\mathrm { E v e n t ~ } A ]$ . We denote by $\\mathbb { R }$ (and $\\mathbb { R } ^ { d }$ ) the real line (and the $d$ -dimensional Euclidean space). The set of natural numbers is denoted by $\\mathbb { N }$ . Given a positive integer $K \\in \\mathbb N$ , we denote $[ K ] \\triangleq \\{ 1 , 2 , \\dots , K \\}$ . Notation $\\| \\cdot \\|$ denotes the $\\ell _ { 2 }$ -norm and $\\langle \\cdot , \\cdot \\rangle$ the Euclidean inner product. For a discrete set $\\boldsymbol { B }$ , $| B |$ denotes the cardinality of the set. Uniform distribution over a discrete set $\\{ 1 , \\ldots , T \\}$ is denoted as ${ \\dot { \\mathcal { U } } } \\{ 1 , \\dots , T \\}$ . ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
173,
|
| 307 |
+
126,
|
| 308 |
+
825,
|
| 309 |
+
213
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 3
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "2 Preliminaries ",
|
| 316 |
+
"text_level": 1,
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
231,
|
| 320 |
+
318,
|
| 321 |
+
248
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "Before we proceed to the algorithms, we make the following assumptions about problem $( 1 )$ . ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
171,
|
| 330 |
+
262,
|
| 331 |
+
782,
|
| 332 |
+
277
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "Assumption 1 (Sample Gradient Lipschitz Smoothness). The stochastic functions $f ^ { ( k ) } ( \\cdot , \\xi ^ { ( k ) } )$ with $\\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) }$ for all $k \\in [ K ]$ , satisfy the mean squared smoothness property, i.e, we have ",
|
| 339 |
+
"bbox": [
|
| 340 |
+
171,
|
| 341 |
+
281,
|
| 342 |
+
823,
|
| 343 |
+
313
|
| 344 |
+
],
|
| 345 |
+
"page_idx": 3
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"type": "equation",
|
| 349 |
+
"img_path": "images/a3cfe57005b8e58ae1bfc3b55d7cca26c0bbb487296b4468bd38bfdc42e09c0e.jpg",
|
| 350 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { E } \\| \\nabla f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) - \\nabla f ^ { ( k ) } ( y ; \\xi ^ { ( k ) } ) \\| ^ { 2 } \\leq L ^ { 2 } \\| x - y \\| ^ { 2 } \\mathrm { ~ f o r ~ a l l ~ } x , y \\in \\mathbb { R } ^ { d } . } \\end{array}\n$$",
|
| 351 |
+
"text_format": "latex",
|
| 352 |
+
"bbox": [
|
| 353 |
+
259,
|
| 354 |
+
318,
|
| 355 |
+
736,
|
| 356 |
+
338
|
| 357 |
+
],
|
| 358 |
+
"page_idx": 3
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"type": "text",
|
| 362 |
+
"text": "Assumption 2 (Unbiased gradient and Variance Bounds). (i) Unbiased Gradient. The stochastic gradients computed at each WN are unbiased ",
|
| 363 |
+
"bbox": [
|
| 364 |
+
176,
|
| 365 |
+
343,
|
| 366 |
+
823,
|
| 367 |
+
372
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "equation",
|
| 373 |
+
"img_path": "images/f06c119c8d26c099d56bae28e2fa443fdee4af7121660da108f532b9c8355105.jpg",
|
| 374 |
+
"text": "$$\n\\mathbb { E } [ \\nabla f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) ] = \\nabla f ^ { ( k ) } ( x ) , \\forall \\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) } , \\forall k \\in [ K ] .\n$$",
|
| 375 |
+
"text_format": "latex",
|
| 376 |
+
"bbox": [
|
| 377 |
+
302,
|
| 378 |
+
377,
|
| 379 |
+
696,
|
| 380 |
+
396
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 3
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "(ii) Intra- and inter- node Variance Bound. The following bounds hold: ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
171,
|
| 389 |
+
400,
|
| 390 |
+
638,
|
| 391 |
+
415
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "equation",
|
| 397 |
+
"img_path": "images/b27d78c5e7a746fe9622599d0a5137acd7faea00d13d76004e33686cafb79bc5.jpg",
|
| 398 |
+
"text": "$$\n\\begin{array} { r } { \\mathbb { \\tilde { z } } \\| \\nabla f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) - \\nabla f ^ { ( k ) } ( x ) \\| ^ { 2 } \\leq \\sigma ^ { 2 } , \\| \\nabla f ^ { ( k ) } ( x ) - \\nabla f ^ { ( \\ell ) } ( x ) \\| ^ { 2 } \\leq \\zeta ^ { 2 } , \\forall \\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) } , \\forall k , \\ell \\in [ K ] . } \\end{array}\n$$",
|
| 399 |
+
"text_format": "latex",
|
| 400 |
+
"bbox": [
|
| 401 |
+
181,
|
| 402 |
+
420,
|
| 403 |
+
834,
|
| 404 |
+
441
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Note that Assumption $^ 1$ is stronger than directly assuming $f ^ { ( k ) }$ ’s are Lipschitz smooth (which we will refer to as the averaged gradient Lipschitz smooth condition), but it is still a rather standard assumption in SGD analysis. For example it has been used in analyzing centralized SGD algorithms such as SPIDER $ { \\mathbb { I } }$ , SNVRG $\\pmb { \\Vert 6 \\Vert }$ , STORM $\\mathbb { [ [ \\big ] ] }$ (and many others) as well as in FL algorithms such as MIME $ { \\mathbb { I } } ^ { [ 1 2 ] }$ and Fed-GLOMO $\\pm \\textcircled { 1 8 } \\textcircled { 1 }$ . The second relation in Assumption $2 \\cdot$ (ii) quantifies the data heterogeneity, and we call $\\zeta > 0$ as the heterogeneity parameter. This is a typical assumption required to evaluate the performance of FL algorithms. If data distributions across individual WNs are identical, i.e., $\\mathcal { D } ^ { ( k ) } \\stackrel { = } { = } \\mathcal { D } ^ { ( \\ell ) }$ for all $k , \\ell \\in [ K ]$ then we have $\\zeta = 0$ . ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
453,
|
| 414 |
+
826,
|
| 415 |
+
569
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "Next, we define the $\\epsilon$ -stationary solution for non-convex optimization problems, as well as quantify the computation and communication complexities to achieve an $\\epsilon$ -stationary point. ",
|
| 422 |
+
"bbox": [
|
| 423 |
+
174,
|
| 424 |
+
574,
|
| 425 |
+
821,
|
| 426 |
+
603
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 3
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "Definition 2.1 $\\epsilon$ -Stationary Point). A point $x$ is called $\\epsilon$ -stationary if $\\| \\nabla f ( x ) \\| ^ { 2 } \\leq \\epsilon$ . Moreover, a stochastic algorithm is said to achieve an $\\epsilon$ -stationary point in $t$ iterations if $\\begin{array} { r } { \\ddot { \\mathbb { E } } [ \\| \\nabla f ( x _ { t } ) \\| ^ { 2 } ] \\le \\epsilon . } \\end{array}$ where the expectation is over the stochasticity of the algorithm until time instant $t$ . ",
|
| 433 |
+
"bbox": [
|
| 434 |
+
173,
|
| 435 |
+
606,
|
| 436 |
+
826,
|
| 437 |
+
648
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "Definition 2.2 (Sample complexity). We assume an Incremental First-order Oracle (IFO) framework $\\pmb { \\Vert 3 4 \\Vert }$ where, given a sample $\\xi ^ { ( k ) } \\sim \\mathcal { D } ^ { ( k ) }$ at the $k ^ { \\mathrm { { t h } } }$ node and iterate $x$ , the oracle returns $( f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) , \\nabla f ^ { ( k ) } ( x ; \\xi ^ { ( k ) } ) )$ . Each access to the oracle is counted as a single IFO operation. We measure the sample (and computational) complexity in terms of the total number of calls to the IFO by all WNs to achieve an $\\epsilon$ -stationary point given in Definition 2.1. ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
173,
|
| 446 |
+
652,
|
| 447 |
+
825,
|
| 448 |
+
727
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Definition 2.3 (Communication complexity). We define a communication round as a one back-andforth sharing of parameters between the WNs and the SN. Then the communication complexity is defined to be the total number of communication rounds between any WN and the SN required to achieve an $\\epsilon$ -stationary point given in Definition 2.1. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
173,
|
| 457 |
+
728,
|
| 458 |
+
825,
|
| 459 |
+
786
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "3 The STEM algorithm and the trade-off analysis ",
|
| 466 |
+
"text_level": 1,
|
| 467 |
+
"bbox": [
|
| 468 |
+
174,
|
| 469 |
+
803,
|
| 470 |
+
602,
|
| 471 |
+
821
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "text",
|
| 477 |
+
"text": "In this section, we discuss the proposed algorithm and present the main results. The key in the algorithm design is to carefully balance all the four design elements mentioned in Sec. $^ { 1 , }$ so that sufficient and useful progress can be made between two rounds of communication. ",
|
| 478 |
+
"bbox": [
|
| 479 |
+
174,
|
| 480 |
+
835,
|
| 481 |
+
825,
|
| 482 |
+
877
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 3
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "Let us discuss the key steps of STEM, listed in Algorithm $\\nsupseteq$ In Step 10, each node locally updates its model parameters using the local direction $d _ { t } ^ { k }$ , computed by using $b$ stochastic gradients at two ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
173,
|
| 491 |
+
882,
|
| 492 |
+
821,
|
| 493 |
+
912
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 3
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "1: Input: Parameters: $c > 0$ , the number of local updates $I$ , batch size $b$ , stepsizes $\\{ \\eta _ { t } \\}$ . \n2: Initialize: Iterate $\\begin{array} { r } { x _ { 1 } ^ { ( k ) } = \\bar { x } _ { 1 } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } x _ { 1 } ^ { ( k ) } } \\end{array}$ , descent direction $\\begin{array} { r } { d _ { 1 } ^ { ( k ) } = \\bar { d } _ { 1 } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } d _ { 1 } ^ { ( k ) } } \\end{array}$ \nwith $\\begin{array} { r } { d _ { 1 } ^ { ( k ) } = \\frac { 1 } { B } \\sum _ { \\xi _ { 1 } ^ { ( k ) } \\in \\mathcal { B } _ { 1 } ^ { ( k ) } } \\nabla f ^ { ( k ) } ( x _ { 1 } ^ { ( k ) } ; \\xi _ { 1 } ^ { ( k ) } ) } \\end{array}$ and $| B _ { 1 } ^ { ( k ) } | = B$ for $k \\in [ K ]$ . \n3: Perform: $x _ { 2 } ^ { ( k ) } = x _ { 1 } ^ { k } - \\eta _ { 1 } d _ { 1 } ^ { ( k ) }$ , $\\forall k \\in [ K ]$ \n4: for $t = 1$ to $T$ do \n5: for $k = 1$ to $K$ do #at the WN \n6: $\\mathcal { d } _ { t + 1 } ^ { ( k ) } = \\frac { 1 } { b } \\sum _ { \\xi _ { t + 1 } ^ { ( k ) } \\in \\mathcal { B } _ { t + 1 } ^ { ( k ) } } ^ { \\pi \\Delta } \\nabla f ^ { ( k ) } ( x _ { t + 1 } ^ { ( k ) } ; \\xi _ { t + 1 } ^ { ( k ) } ) + \\left( 1 - a _ { t + 1 } \\right) \\bigg ( d _ { t } ^ { ( k ) } - \\frac { 1 } { b } \\sum _ { \\xi _ { t + 1 } ^ { ( k ) } \\in \\mathcal { B } _ { t + 1 } ^ { ( k ) } } \\nabla f ^ { ( k ) } ( x _ { t } ^ { ( k ) } ; \\xi _ { t + 1 } ^ { ( k ) } ) \\bigg )$ \nwhere we choose $| B _ { t + 1 } ^ { ( k ) } | = b$ , and $a _ { t + 1 } = c \\cdot \\eta _ { t } ^ { 2 }$ ; \n7: 8: if $t$ $I = 0$ #at the SN \n$\\begin{array} { r } { d _ { t + 1 } ^ { ( k ) } = \\bar { d } _ { t + 1 } : = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } d _ { t + 1 } ^ { ( k ) } } \\end{array}$ \n9: 10: e $\\begin{array} { r l } & { x _ { t + 2 } ^ { ( k ) ^ { \\bot } } : = \\bar { x } _ { t + 1 } - \\eta _ { t + 1 } \\bar { d } _ { t + 1 } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } x _ { t + 1 } ^ { ( k ) } - \\eta _ { t + 1 } \\bar { d } _ { t + 1 } } \\end{array}$ $x _ { t + 2 } ^ { ( k ) } = x _ { t + 1 } ^ { ( k ) } - \\eta _ { t + 1 } d _ { t + 1 } ^ { ( k ) }$ #server-side momentum \n11: end if \n12: end for \n13: end for \n14: Return: $\\scriptstyle { \\bar { x } } _ { a }$ where $a \\sim \\mathcal { U } \\{ 1 , . . . , T \\}$ . ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
178,
|
| 502 |
+
108,
|
| 503 |
+
826,
|
| 504 |
+
393
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "text",
|
| 510 |
+
"text": "consecutive iterates $x _ { t + 1 } ^ { ( k ) }$ and $x _ { t } ^ { ( k ) }$ . After every $I$ local steps, the WNs share their current local models $\\{ x _ { t + 1 } ^ { ( k ) } \\} _ { k = 1 } ^ { K }$ and directions $\\{ d _ { t + 1 } ^ { ( k ) } \\} _ { k = 1 } ^ { K }$ with the SN. The SN aggregates these quantities, and performs a server-side momentum step, before returning $\\bar { x } _ { t + 1 }$ and $\\bar { d } _ { t + 1 }$ to all the WNs. Because both the WNs and the SN perform momentum based updates, we call the algorithm a stochastic two-sided momentum algorithm. The key parameters are: $b$ the minibatch size, $I$ the local update steps between two communication rounds, $\\eta _ { t }$ the stepsizes, and $a _ { t }$ the momentum parameters. ",
|
| 511 |
+
"bbox": [
|
| 512 |
+
173,
|
| 513 |
+
420,
|
| 514 |
+
825,
|
| 515 |
+
515
|
| 516 |
+
],
|
| 517 |
+
"page_idx": 4
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"type": "text",
|
| 521 |
+
"text": "One key technical innovation of our algorithm design is to identify the most suitable way to incorporate momentum based directions in FL algorithms. Although the momentum-based gradient estimator itself is not new and has been used in the literature before (see e.g., in $\\mathbb { \\left[ \\bigstar \\bigstar \\right] }$ and $\\lVert \\overline { { 1 7 } } \\rVert \\overline { { 1 8 } } \\rVert$ to improve the sample complexities of centralized and decentralized stochastic optimization problems, respectively), it is by no means clear if and how it can contribute to improve the communication complexity of FL algorithms. We show that in the FL setting, the local directions together with the local models have to be aggregated by the SN so to avoid being influenced too much by the local data. More importantly, besides the WNs, the SN also needs to perform updates using the (aggregated) momentum directions. Finally, such two-sided momentum updates have to be done carefully with the correct choice of minibatch size $b$ , and the number of local updates $I$ . Overall, it is the judicious choice of all these design elements that results in the optimal sample and communication complexities. ",
|
| 522 |
+
"bbox": [
|
| 523 |
+
173,
|
| 524 |
+
520,
|
| 525 |
+
826,
|
| 526 |
+
672
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 4
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "Next, we present the convergence guarantees of the STEM algorithm. ",
|
| 533 |
+
"bbox": [
|
| 534 |
+
174,
|
| 535 |
+
678,
|
| 536 |
+
630,
|
| 537 |
+
693
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 4
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "3.1 Main results: convergence guarantees for STEM ",
|
| 544 |
+
"text_level": 1,
|
| 545 |
+
"bbox": [
|
| 546 |
+
174,
|
| 547 |
+
712,
|
| 548 |
+
549,
|
| 549 |
+
727
|
| 550 |
+
],
|
| 551 |
+
"page_idx": 4
|
| 552 |
+
},
|
| 553 |
+
{
|
| 554 |
+
"type": "text",
|
| 555 |
+
"text": "In this section, we analyze the performance of STEM. We first present our main result, and then provide discussions about a few parameter choices. In the next subsection, we discuss a special case of STEM related to the classical FedAvg and minibatch SGD algorithms. ",
|
| 556 |
+
"bbox": [
|
| 557 |
+
174,
|
| 558 |
+
738,
|
| 559 |
+
825,
|
| 560 |
+
781
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "Theorem 3.1. Under the Assumptions 1 and 2, suppose the stepsize sequence is chosen as: ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
168,
|
| 569 |
+
785,
|
| 570 |
+
769,
|
| 571 |
+
801
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "equation",
|
| 577 |
+
"img_path": "images/c7b9d663b7230014554f849f65c327948834a1aadf2fddbf4fd4727068678b71.jpg",
|
| 578 |
+
"text": "$$\n\\eta _ { t } = \\frac { \\bar { \\kappa } } { ( w _ { t } + \\sigma ^ { 2 } t ) ^ { 1 / 3 } } ,\n$$",
|
| 579 |
+
"text_format": "latex",
|
| 580 |
+
"bbox": [
|
| 581 |
+
428,
|
| 582 |
+
809,
|
| 583 |
+
568,
|
| 584 |
+
842
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "where we define : ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
851,
|
| 594 |
+
289,
|
| 595 |
+
864
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "equation",
|
| 601 |
+
"img_path": "images/1ab3f1b7115347d40a7bc1f3343dd7707b65537827e4b8370ab97442863fcfd1.jpg",
|
| 602 |
+
"text": "$$\n\\bar { \\kappa } = \\frac { ( b K ) ^ { 2 / 3 } \\sigma ^ { 2 / 3 } } { L } , \\quad w _ { t } = \\operatorname * { m a x } \\bigg \\{ 2 \\sigma ^ { 2 } , 4 0 9 6 L ^ { 3 } I ^ { 3 } \\bar { \\kappa } ^ { 3 } - \\sigma ^ { 2 } t , \\frac { c ^ { 3 } \\bar { \\kappa } ^ { 3 } } { 4 0 9 6 L ^ { 3 } I ^ { 3 } } \\bigg \\} .\n$$",
|
| 603 |
+
"text_format": "latex",
|
| 604 |
+
"bbox": [
|
| 605 |
+
253,
|
| 606 |
+
873,
|
| 607 |
+
738,
|
| 608 |
+
910
|
| 609 |
+
],
|
| 610 |
+
"page_idx": 4
|
| 611 |
+
},
|
| 612 |
+
{
|
| 613 |
+
"type": "text",
|
| 614 |
+
"text": "Further, let us set $\\begin{array} { r } { c = \\frac { 6 4 L ^ { 2 } } { b K } + \\frac { \\sigma ^ { 2 } } { 2 4 \\bar { \\kappa } ^ { 3 } L I } = L ^ { 2 } \\bigg ( \\frac { 6 4 } { b K } + \\frac { 1 } { 2 4 ( b K ) ^ { 2 } I } \\bigg ) } \\end{array}$ and set the initial batch size as $B = b I$ ; set the local updates $I$ and minibatch size b as follows: ",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
88,
|
| 618 |
+
825,
|
| 619 |
+
133
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "equation",
|
| 625 |
+
"img_path": "images/571cd8b7f6de9fecec247a32a77a5fc7ff44b9b1a1446281dd4865af343e8ec8.jpg",
|
| 626 |
+
"text": "$$\nI = \\mathcal { O } \\big ( ( T / K ^ { 2 } ) ^ { \\nu / 3 } \\big ) , \\quad b = \\mathcal { O } \\big ( ( T / K ^ { 2 } ) ^ { 1 / 2 - \\nu / 2 } \\big )\n$$",
|
| 627 |
+
"text_format": "latex",
|
| 628 |
+
"bbox": [
|
| 629 |
+
336,
|
| 630 |
+
141,
|
| 631 |
+
660,
|
| 632 |
+
161
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 5
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "where $\\nu$ satisfies $\\nu \\in [ 0 , 1 ]$ . Then for STEM the following holds: ",
|
| 639 |
+
"bbox": [
|
| 640 |
+
173,
|
| 641 |
+
167,
|
| 642 |
+
607,
|
| 643 |
+
185
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 5
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "(i) For $\\scriptstyle { \\bar { x } } _ { a }$ chosen according to Algorithm $\\perp$ we have: ",
|
| 650 |
+
"bbox": [
|
| 651 |
+
176,
|
| 652 |
+
195,
|
| 653 |
+
532,
|
| 654 |
+
212
|
| 655 |
+
],
|
| 656 |
+
"page_idx": 5
|
| 657 |
+
},
|
| 658 |
+
{
|
| 659 |
+
"type": "equation",
|
| 660 |
+
"img_path": "images/e2c146df205c691e32ce24c2ee693fb97ea38edc895ba31bbeb511db58c5a452.jpg",
|
| 661 |
+
"text": "$$\n\\mathbb { E } \\Vert \\nabla f ( \\bar { x } _ { a } ) \\Vert ^ { 2 } = \\mathcal { O } \\Bigg ( \\frac { f ( \\bar { x } _ { 1 } ) - f ^ { * } } { K ^ { 2 \\nu / 3 } T ^ { 1 - \\nu / 3 } } \\Bigg ) + \\tilde { \\mathcal { O } } \\Bigg ( \\frac { \\sigma ^ { 2 } } { K ^ { 2 \\nu / 3 } T ^ { 1 - \\nu / 3 } } \\Bigg ) + \\tilde { \\mathcal { O } } \\Bigg ( \\frac { \\zeta ^ { 2 } } { K ^ { 2 \\nu / 3 } T ^ { 1 - \\nu / 3 } } \\Bigg ) .\n$$",
|
| 662 |
+
"text_format": "latex",
|
| 663 |
+
"bbox": [
|
| 664 |
+
223,
|
| 665 |
+
218,
|
| 666 |
+
782,
|
| 667 |
+
253
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 5
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "(ii) For any $\\nu \\in [ 0 , 1 ]$ , we have ",
|
| 674 |
+
"bbox": [
|
| 675 |
+
173,
|
| 676 |
+
267,
|
| 677 |
+
382,
|
| 678 |
+
284
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "Sample Complexity: The sample complexity of STEM is $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ . This implies that each WN requires at most $\\tilde { \\mathcal { O } } ( K ^ { - 1 } \\epsilon ^ { - 3 / 2 } )$ gradient computations, thereby achieving linear speedup with the number of WNs present in the network. ",
|
| 685 |
+
"bbox": [
|
| 686 |
+
176,
|
| 687 |
+
284,
|
| 688 |
+
825,
|
| 689 |
+
329
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "Communication Complexity: The communication complexity of STEM is $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ . ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
202,
|
| 698 |
+
329,
|
| 699 |
+
745,
|
| 700 |
+
344
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "The proof of this result is relegated to the Supplemental Material. A few remarks are in order. ",
|
| 707 |
+
"bbox": [
|
| 708 |
+
174,
|
| 709 |
+
356,
|
| 710 |
+
785,
|
| 711 |
+
371
|
| 712 |
+
],
|
| 713 |
+
"page_idx": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"type": "text",
|
| 717 |
+
"text": "Remark 1 (Near-Optimal sample and communication complexities). Theorem $3 . 1$ suggests that when $I$ and $b$ are selected appropriately, then STEM achieves $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ and $\\tilde { \\mathcal { O } } ( \\overline { { \\epsilon ^ { - 1 } } } )$ sample and communication complexities. Taking them separately, these complexity bounds are the best achievable by the existing FL algorithms (upto logarithmic factors regardless of sample or batch Lipschitz smooth assumption) $[ [ 3 5 ] ]$ ; see Table $\\bigstar \\bigstar$ We note that the $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ complexity is the best possible that can be achieved by centralized SGD with the sample Lipschitz gradient assumption; see $\\pmb { \\Vert 5 \\Vert }$ . On the other hand, the $\\bar { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ complexity bound is also likely to be the optimal, since in $\\mathbb { P }$ the authors showed that even when the local steps use a class of (deterministic) first-order algorithms, $\\mathcal { O } ( \\epsilon ^ { - 1 } )$ is the best achievable communication complexity. The only difference is that $\\pmb { \\mathbb { Q } } \\|$ does not explicitly assume the inter-node variance bound (i.e., the second relation in Assumption $2 \\cdot$ -(ii)). We leave the precise characterization of the communication lower bound with inter-node variance as future work. □ ",
|
| 718 |
+
"bbox": [
|
| 719 |
+
173,
|
| 720 |
+
372,
|
| 721 |
+
825,
|
| 722 |
+
527
|
| 723 |
+
],
|
| 724 |
+
"page_idx": 5
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"type": "text",
|
| 728 |
+
"text": "Remark 2 (Large Batch Sizes and/or Local Updates). At first glance, it may seem that the requirement of STEM to compute large mini-batches and/or local updates (cf. Table $^ { 1 ) }$ to achieve this (near) optimal performance is a drawback, however, we note that it is in fact an advantage of STEM that it allows the WNs to perform larger number of local updates (or compute large minibatches) without communicating often. This follows from the fact that irrespective of the number of local updates (or batch sizes) STEM achieves near-optimal communication complexity while attaining optimal overall sample complexity. Moreover, note that even with $b = I = \\mathcal { O } ( 1 )$ (i.e., $b$ and $I$ are chosen as constants), STEM achieves the same (optimal) sample and communication complexities as achieved by FedGLOMO [18] and MIME [17]. We further note that to the best of our knowledge the algorithms that achieve the communication complexity of $\\mathcal { O } ( \\epsilon ^ { - 1 } )$ either require the number of local updates or the batch-sizes that depend on the solution accuracy $\\epsilon$ . For example, FedProx $\\mathbb { \\ m }$ , FedPD $\\pmb { \\mathbb { Q } } \\mathbf { \\| }$ , and FedDyn $\\textcircled { \\lvert 3 6 \\rvert }$ rely on solving the “local problems\" to achieve an $\\epsilon$ -accuracy, which implies that the number of local updates (or the batch sizes) implicitly depends on the desired solution accuracy $\\epsilon$ , as is the case for STEM. Similarly, as shown in $\\bar { \\lVert 1 2 \\rVert }$ and $\\bar { \\lVert 1 4 \\rVert }$ the communication complexity of FedAvg and its momentum version can be improved from $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ to $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ when the number of local updates (or batch size) is chosen as $\\mathcal { O } ( \\epsilon ^ { - 1 / 2 } )$ (cf. Section $\\boxed { 3 . 2 }$ for a more detailed discussion). ",
|
| 729 |
+
"bbox": [
|
| 730 |
+
173,
|
| 731 |
+
531,
|
| 732 |
+
825,
|
| 733 |
+
753
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 5
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "Remark 3 (The Optimal Batch Sizes and Local Updates Trade-off). The parameter $\\nu \\in [ 0 , 1 ]$ is used to balance the local minibatch sizes $b$ , and the number of local updates $I$ . Eqs. in $( 3 )$ suggest that when $\\nu$ increases from 0 to 1, $b$ decreases and $I$ increases. Specifically, if $\\nu = 1$ , then $b$ is a constant but $I = \\mathcal { O } ( T ^ { 1 / 3 } / K ^ { 2 / 3 } )$ . In this case, each WN chooses a small minibatch while executing multiple local updates, and STEM resembles a FedAvg (a.k.a. Local SGD) algorithm but with double-sided momentum update directions, and is referred to as Fed STEM. In contrast, if $\\nu = 0$ , then $b = \\mathcal { O } ( T ^ { 1 / 2 } / K )$ but $I$ is a constant. In this case, each WN chooses a large batch size while executing only a few, or even one, local updates, and STEM resembles the Minibatch SGD, but again with different update directions, and is referred to as Minibatch STEM. Such a trade-off can be seen in Fig. 1b. Due to space limitation, these two special cases will be precisely stated in the supplementary materials as corollaries of Theorem 3.1. □ ",
|
| 740 |
+
"bbox": [
|
| 741 |
+
173,
|
| 742 |
+
756,
|
| 743 |
+
825,
|
| 744 |
+
912
|
| 745 |
+
],
|
| 746 |
+
"page_idx": 5
|
| 747 |
+
},
|
| 748 |
+
{
|
| 749 |
+
"type": "text",
|
| 750 |
+
"text": "Algorithm 2 The FedAvg Algorithm ",
|
| 751 |
+
"text_level": 1,
|
| 752 |
+
"bbox": [
|
| 753 |
+
174,
|
| 754 |
+
90,
|
| 755 |
+
416,
|
| 756 |
+
106
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 6
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "1: Input: $\\{ \\eta _ { t } \\} _ { t = 0 } ^ { T } ; I$ , the # of local updates per communication round; $b$ , the minibatch sizes. \n2: for $t = 1$ to $T$ do \n3: 4: 5: for $\\begin{array} { r l } & { \\mathcal { \\kappa } _ { t } ^ { = } \\stackrel { \\mathrm { ~ L ~ U ~ O ~ } \\Lambda } { = } \\mathbf { 0 } } \\\\ & { d _ { t } ^ { ( k ) } = \\frac { 1 } { b } \\sum _ { \\xi _ { t } ^ { ( k ) } \\in \\mathcal { B } _ { t } ^ { ( k ) } } \\nabla f ^ { ( k ) } ( x _ { t } ^ { ( k ) } ; \\xi _ { t } ^ { ( k ) } ) \\mathrm { ~ w i t h ~ } | \\mathcal { B } _ { t } ^ { ( k ) } | = b } \\\\ & { x _ { t + 1 } ^ { ( k ) } = x _ { t } ^ { ( k ) } - \\eta _ { t } d _ { t } ^ { ( k ) } } \\\\ & { \\mathbf { i f } t \\operatorname* { m o d } I = 0 \\mathbf { \\Lambda } \\mathbf { t h e n } } \\\\ & { ~ x _ { t + 1 } ^ { ( k ) } = \\bar { x } _ { t + 1 } = \\frac { 1 } { K } \\sum _ { k = 1 } ^ { K } x _ { t + 1 } ^ { ( k ) } } \\\\ & { \\mathbf { e n d } \\mathbf { \\Phi } \\mathbf { i f } } \\end{array}$ $k = 1$ $K$ \n6: \n7: \n8: \n9: end for \n10: end for \n11: Return: $\\scriptstyle { \\bar { x } } _ { a }$ where $a \\sim \\mathcal { U } \\{ 1 , . . . , T \\}$ . ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
178,
|
| 765 |
+
111,
|
| 766 |
+
795,
|
| 767 |
+
276
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "text",
|
| 773 |
+
"text": "Remark 4 (The Sub-Optimal Batch Sizes and Local Updates Trade-off). From our proof (Theorem ${ \\bf C . 1 0 }$ included in the supplemental material), we can see that STEM requires $\\bar { \\tilde { O } } ( \\operatorname* { m a x } \\big \\{ ( b \\cdot$ $I ) \\epsilon ^ { - 1 } , K ^ { - 1 } \\epsilon ^ { - 3 / 2 } \\rbrace )$ samples and $\\tilde { \\mathcal { O } } \\big ( \\operatorname* { m a x } \\big \\{ \\epsilon ^ { - 1 } , ( b \\cdot I ) ^ { - 1 } K ^ { - 1 } \\epsilon ^ { - 3 / 2 } \\big \\} \\big )$ \u0000 and communication rounds. According to the above expressions, if $b \\cdot I$ increases beyond $\\mathcal { O } ( K ^ { - 1 } \\epsilon ^ { - 1 / 2 } )$ , then the sample complexity will increase from the optimal $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ ; otherwise, the optimal sample complexity $\\tilde { \\mathcal O } ( \\epsilon ^ { - 3 / 2 } )$ is maintained. On the other hand, if $b \\cdot I$ decreases beyond $\\mathcal { O } ( K ^ { - 1 } \\epsilon ^ { - 1 / 2 } )$ , the communication complexity increases from $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ . For instance, if we choose $b = \\mathcal { O } ( 1 )$ and $I = { \\mathcal { O } } ( 1 )$ the communication complexity becomes $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ while the optimal sample complexity $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 3 / 2 } )$ is maintained. This trade-off is illustrated in Figure $\\boxed { 1 \\mathrm { a } }$ where we maintain the optimal sample complexity, while changing $b$ and $I$ to generate the trade-off surface. □ ",
|
| 774 |
+
"bbox": [
|
| 775 |
+
173,
|
| 776 |
+
306,
|
| 777 |
+
826,
|
| 778 |
+
463
|
| 779 |
+
],
|
| 780 |
+
"page_idx": 6
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"type": "text",
|
| 784 |
+
"text": "Remark 5 (Data Heterogeneity). The term $\\begin{array} { r } { \\tilde { \\mathcal { O } } \\biggl ( \\frac { \\zeta ^ { 2 } } { K ^ { 2 \\nu / 3 } T ^ { 1 - \\nu / 3 } } \\biggr ) } \\end{array}$ in the gradient bound $\\textcircled{4}$ captures the effect of the heterogeneity of data across WNs, where $\\zeta$ is the parameter characterizing the intra-node variance and has been defined in Assumption $\\bigstar$ (ii). Highly heterogeneous data with large $\\zeta ^ { 2 }$ can adversely impact the performance of STEM. Note that such a dependency on $\\zeta$ also appears in other existing FL algorithms, such as $\\boxed { 9 } \\boxed { 1 4 } \\boxed { 1 8 }$ . However, there is one special case of STEM that does not depend on the parameter $\\zeta$ . This is the case where $I = 1$ , i.e., the minibatch SGD counterpart of STEM where only a single local iteration is performed between two communication rounds. We have the following corollary. □ ",
|
| 785 |
+
"bbox": [
|
| 786 |
+
173,
|
| 787 |
+
465,
|
| 788 |
+
826,
|
| 789 |
+
585
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 6
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "Corollary 1 (Minibatch STEM). Under Assumptions $\\boldsymbol { I } a n d \\boldsymbol { 2 }$ , and choose the algorithm parameters as in Theorem $\\boxed { 3 . I }$ At each WN, choose $I = 1$ , $b = ( T / K ^ { 2 } ) ^ { 1 / 2 }$ , and the initial batch size $B = \\boldsymbol { b } \\cdot \\boldsymbol { I }$ . Then STEM satisfies: ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
174,
|
| 798 |
+
589,
|
| 799 |
+
826,
|
| 800 |
+
636
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 6
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "text",
|
| 806 |
+
"text": "(i) For $\\bar { x } _ { a }$ chosen according to Algorithm $\\perp$ we have ",
|
| 807 |
+
"bbox": [
|
| 808 |
+
176,
|
| 809 |
+
646,
|
| 810 |
+
529,
|
| 811 |
+
662
|
| 812 |
+
],
|
| 813 |
+
"page_idx": 6
|
| 814 |
+
},
|
| 815 |
+
{
|
| 816 |
+
"type": "equation",
|
| 817 |
+
"img_path": "images/fe27c5ca3c886c333d5add660b12f630bb6023b83b7450c21e97035dfce670f9.jpg",
|
| 818 |
+
"text": "$$\n\\mathbb { E } \\| \\nabla f ( \\bar { x } _ { a } ) \\| ^ { 2 } = \\mathcal { O } \\Big ( \\frac { f ( \\bar { x } _ { 1 } ) - f ^ { * } } { T } \\Big ) + \\tilde { \\mathcal { O } } \\Big ( \\frac { \\sigma ^ { 2 } } { T } \\Big ) .\n$$",
|
| 819 |
+
"text_format": "latex",
|
| 820 |
+
"bbox": [
|
| 821 |
+
359,
|
| 822 |
+
671,
|
| 823 |
+
665,
|
| 824 |
+
704
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 6
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "(ii) Minibatch STEM achieves $\\tilde { \\mathcal O } ( \\epsilon ^ { - 3 / 2 } )$ sample and $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ communication complexity. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
168,
|
| 833 |
+
719,
|
| 834 |
+
761,
|
| 835 |
+
738
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 6
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Next, we show that FedAvg also exhibits a trade-off similar to that of STEM but with worse sample and communication complexities. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
748,
|
| 845 |
+
826,
|
| 846 |
+
777
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "3.2 Special cases: The FedAvg algorithm ",
|
| 853 |
+
"text_level": 1,
|
| 854 |
+
"bbox": [
|
| 855 |
+
174,
|
| 856 |
+
796,
|
| 857 |
+
470,
|
| 858 |
+
813
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 6
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "text",
|
| 864 |
+
"text": "We briefly discuss another interesting special case of STEM, where the local momentum update is replaced by the conventional SGD (i.e., $a _ { t } = 1 , ~ \\forall ~ t )$ , while the server does not perform the momentum update (i.e., $\\bar { d } _ { t } = 0 , \\forall t )$ . This is essentially the classical FedAvg algorithm, just that it balances the number of local updates $I$ and the minibatch size $b$ . We show that this algorithm also exhibits a trade-off between $b$ and $I$ and on the trade-off curve it achieves $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ sample complexity and $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ communication complexity. ",
|
| 865 |
+
"bbox": [
|
| 866 |
+
174,
|
| 867 |
+
823,
|
| 868 |
+
825,
|
| 869 |
+
910
|
| 870 |
+
],
|
| 871 |
+
"page_idx": 6
|
| 872 |
+
},
|
| 873 |
+
{
|
| 874 |
+
"type": "table",
|
| 875 |
+
"img_path": "images/6bf0f1ad1737bddbd1a909e1c507f78edccdbe2e2cf8c63393f03d6b14335b18.jpg",
|
| 876 |
+
"table_caption": [],
|
| 877 |
+
"table_footnote": [
|
| 878 |
+
"(a) Mild heterogeneity, $b = 6 4$ , and $I = 7$ . "
|
| 879 |
+
],
|
| 880 |
+
"table_body": "<table><tr><td>Algorithm</td><td> Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>78.2</td><td>74.1</td></tr><tr><td>FedProx</td><td>79.2</td><td>74.8</td></tr><tr><td>FedDyn</td><td>68.9</td><td>66.0</td></tr><tr><td>SCAFFOLD</td><td>71.9</td><td>74.0</td></tr><tr><td>MIME</td><td>82.6</td><td>76.8</td></tr><tr><td>FedGLOMO</td><td>76.1</td><td>72.8</td></tr><tr><td> STEM</td><td>80.1</td><td>78.8</td></tr></table>",
|
| 881 |
+
"bbox": [
|
| 882 |
+
173,
|
| 883 |
+
88,
|
| 884 |
+
500,
|
| 885 |
+
233
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 7
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "table",
|
| 891 |
+
"img_path": "images/b0513e337be144b5f857c24b8a10281f3fd33f9a14e65f9ee342f421e0353331.jpg",
|
| 892 |
+
"table_caption": [],
|
| 893 |
+
"table_footnote": [
|
| 894 |
+
"(b) Moderate heterogeneity, $b = 8$ , and $I = 6 1$ "
|
| 895 |
+
],
|
| 896 |
+
"table_body": "<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>73.6</td><td>75.4</td></tr><tr><td>FedProx</td><td>80.0</td><td>75.2</td></tr><tr><td>FedDyn</td><td>76.1</td><td>71.3</td></tr><tr><td>SCAFFOLD</td><td>72.5</td><td>73.7</td></tr><tr><td>MIME</td><td>61.5</td><td>58.6</td></tr><tr><td>FedGLOMO</td><td>10.0</td><td>10.0</td></tr><tr><td>STEM</td><td>81.1</td><td>78.5</td></tr></table>",
|
| 897 |
+
"bbox": [
|
| 898 |
+
524,
|
| 899 |
+
88,
|
| 900 |
+
849,
|
| 901 |
+
233
|
| 902 |
+
],
|
| 903 |
+
"page_idx": 7
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"type": "text",
|
| 907 |
+
"text": "Table 2: Training and testing accuracy of different algorithms on CIFAR-10 dataset for different batch-sizes, number of local updates, and heteregeneity settings. ",
|
| 908 |
+
"bbox": [
|
| 909 |
+
173,
|
| 910 |
+
261,
|
| 911 |
+
823,
|
| 912 |
+
290
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 7
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "Theorem 3.2 (The FedAvg Algorithm). Under Assumptions 1 and 2, suppose the stepsize is chosen as: $\\begin{array} { r } { \\eta = \\sqrt { \\frac { b K } { T } } } \\end{array}$ ; Let us set: ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
173,
|
| 921 |
+
324,
|
| 922 |
+
825,
|
| 923 |
+
362
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 7
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "equation",
|
| 929 |
+
"img_path": "images/614827bc2783d2a130099b5dcc25a039f7d6ca4f991f27f94b6b9f6e8cc8d82c.jpg",
|
| 930 |
+
"text": "$$\nI = \\mathcal { O } \\big ( ( T / K ^ { 3 } ) ^ { \\nu / 4 } \\big ) , \\quad b = \\mathcal { O } \\big ( ( T / K ^ { 3 } ) ^ { 1 / 3 - \\nu / 3 } \\big )\n$$",
|
| 931 |
+
"text_format": "latex",
|
| 932 |
+
"bbox": [
|
| 933 |
+
336,
|
| 934 |
+
369,
|
| 935 |
+
660,
|
| 936 |
+
391
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 7
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "where $\\nu \\in [ 0 , 1 ]$ is a constant. Then for FedAvg with $T \\geq 8 1 L ^ { 2 } I ^ { 2 } b K$ , the following holds ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
171,
|
| 945 |
+
397,
|
| 946 |
+
759,
|
| 947 |
+
414
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 7
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "(i) For $\\scriptstyle { \\bar { x } } _ { a }$ chosen according to Algorithm $2 ,$ we have ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
176,
|
| 956 |
+
424,
|
| 957 |
+
527,
|
| 958 |
+
440
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 7
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "equation",
|
| 964 |
+
"img_path": "images/fcbbd1eccd40989ffc376397736fd5950f8008a4dccca06a87727fb72022e909.jpg",
|
| 965 |
+
"text": "$$\n\\mathbb { E } \\Vert \\nabla f ( \\bar { x } _ { a } ) \\Vert ^ { 2 } = \\mathcal { O } \\Bigg ( \\frac { f ( \\bar { x } _ { 1 } ) - f ^ { * } } { K ^ { \\nu / 2 } T ^ { 2 / 3 - \\nu / 6 } } \\Bigg ) + \\mathcal { O } \\Bigg ( \\frac { \\sigma ^ { 2 } } { K ^ { \\nu / 2 } T ^ { 2 / 3 - \\nu / 6 } } \\Bigg ) + \\mathcal { O } \\Bigg ( \\frac { \\zeta ^ { 2 } } { K ^ { \\nu / 2 } T ^ { 2 / 3 - \\nu / 6 } } \\Bigg ) .\n$$",
|
| 966 |
+
"text_format": "latex",
|
| 967 |
+
"bbox": [
|
| 968 |
+
223,
|
| 969 |
+
446,
|
| 970 |
+
802,
|
| 971 |
+
482
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 7
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "(ii) For any choice of $\\nu \\in [ 0 , 1 ]$ we have: ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
173,
|
| 980 |
+
494,
|
| 981 |
+
446,
|
| 982 |
+
510
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 7
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "Sample Complexity: The sample complexity of FedAvg is $\\mathcal { O } ( \\epsilon ^ { - 2 } )$ . This implies that each WN requires at most $\\tilde { \\mathcal { O } } ( K ^ { - 1 } \\epsilon ^ { - 2 } )$ gradient computations, thereby achieving linear speedup with the number of WNs in the network. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
196,
|
| 991 |
+
508,
|
| 992 |
+
825,
|
| 993 |
+
549
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 7
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Communication Complexity: The communication complexity of FedAvg is $\\mathcal { O } ( \\epsilon ^ { - 3 / 2 } )$ . ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
202,
|
| 1002 |
+
550,
|
| 1003 |
+
761,
|
| 1004 |
+
565
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 7
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Note that the requirement on $T$ being lower bounded is only relevant for theoretical purposes, a similar requirement was also imposed in $[ \\mathbb { 1 4 } ]$ to prove convergence. Again, the parameter $\\nu \\in [ 0 , 1 ]$ in the statement of Theorem $\\boxed { 3 . 2 }$ balances $I$ and $b$ at each WN while maintaining state-of-the-art sample and communication complexities; please see Table $\\bigstar$ for a comparison of those bounds with existing FedAvg bounds. For $\\nu = 1$ , FedAvg (cf. Theorem $3 . 2 )$ reduces to FedAvg proposed in [12, 14] and for $\\nu = 0$ , the algorithm can be viewed as a large batch FedAvg with constant local updates [15, 16]. Note that similar to STEM, it is known that for $I = 1$ , the Minibatch SGD’s performance is independent of the heterogeneity parameter, $\\zeta \\equiv \\mathbb { I I } 3 \\mathbb { I }$ . We also point out that if Algorithm $\\perp$ uses Nesterov’s or Polyak’s momentum $[ \\textcircled { 1 4 } ]$ at local WNs instead of the recursive momentum estimator we get the same guarantees as in Theorem $\\underline { { \\boldsymbol { \\vert 3 . 2 \\vert } } }$ ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
173,
|
| 1013 |
+
577,
|
| 1014 |
+
825,
|
| 1015 |
+
717
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 7
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "In summary, this section established that once the WN’s and the SN’s update directions (SGD in FedAvg and momentum based directions in STEM) are fixed, there exists a sequence of optimal choices of the number of local updates $I$ , and the batch sizes $b$ , which guarantees the best possible sample and communication complexities for the particular algorithm. The trade-off analysis presented in this section provides some useful guidelines for how to best select $b$ and $I$ in practice. Our subsequent numerical results will also verify that if $b$ or $I$ are not chosen judiciously, then the practical performance of the algorithms can degrade significantly. ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
174,
|
| 1024 |
+
722,
|
| 1025 |
+
825,
|
| 1026 |
+
819
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 7
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "4 Numerical results ",
|
| 1033 |
+
"text_level": 1,
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
176,
|
| 1036 |
+
838,
|
| 1037 |
+
352,
|
| 1038 |
+
854
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 7
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "In this section, we validate the proposed STEM algorithm and compare its performance with the de facto standard FedAvg [11], and the algorithms stated in Table $^ { 1 . }$ Note that instead of FedPD we include the performance comparison with FedDyn $\\left[ \\left[ 3 6 \\right] \\right]$ since they are known to be very closely related. The goal of our experiments are three-fold: (1) To show that STEM performs on par, if not better, compared to other algorithms in different heterogeneity settings, (2) there are multiple ways to reach the desired solution accuracy, one can either choose a large batch size and perform only a few local updates or select a smaller batch size and perform multiple local updates, and finally, (3) if the local updates and the batch sizes are not chosen appropriately, the WNs might need to perform excessive computations to achieve the desired solution accuracy, thereby slowing down convergence. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
174,
|
| 1047 |
+
868,
|
| 1048 |
+
823,
|
| 1049 |
+
911
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 7
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "table",
|
| 1055 |
+
"img_path": "images/dcdc37cb3965642ea8fadecde08dc3a78e268deb8860ba74a94a052f25763bcd.jpg",
|
| 1056 |
+
"table_caption": [
|
| 1057 |
+
"Table 3: Training and testing accuracy on CIFAR-10 dataset for high heterogeneity, $b =$ 128 and $I = 6$ . "
|
| 1058 |
+
],
|
| 1059 |
+
"table_footnote": [],
|
| 1060 |
+
"table_body": "<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>57.6</td><td>57.1</td></tr><tr><td>FedProx</td><td>59.1</td><td>58.5</td></tr><tr><td>FedDyn</td><td>51.2</td><td>51.3</td></tr><tr><td>SCAFFOLD</td><td>53.1</td><td>54.7</td></tr><tr><td>MIME</td><td>56.1</td><td>55.1</td></tr><tr><td>FedGLOMO</td><td>56.8</td><td>56.1</td></tr><tr><td> STEM</td><td>58.5</td><td>57.4</td></tr></table>",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
173,
|
| 1063 |
+
88,
|
| 1064 |
+
500,
|
| 1065 |
+
233
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 8
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "table",
|
| 1071 |
+
"img_path": "images/a8ee7b8ff04d3f8e652b073870044e3954f021e10e2ae94f2132f7ce72b56ed4.jpg",
|
| 1072 |
+
"table_caption": [
|
| 1073 |
+
"Table 4: Training and testing accuracy on Shakespeare dataset. "
|
| 1074 |
+
],
|
| 1075 |
+
"table_footnote": [],
|
| 1076 |
+
"table_body": "<table><tr><td>Algorithm</td><td>Training Acc.</td><td>Testing Acc.</td></tr><tr><td>FedAvg</td><td>40.1</td><td>39.2</td></tr><tr><td>FedProx</td><td>43.5</td><td>43.2</td></tr><tr><td>FedDyn</td><td>43.7</td><td>43.2</td></tr><tr><td>SCAFFOLD</td><td>40.3</td><td>41.3</td></tr><tr><td>MIME</td><td>32.1</td><td>32.1</td></tr><tr><td>FedGLOMO</td><td>40.3</td><td>40.1</td></tr><tr><td> STEM</td><td>44.5</td><td>43.8</td></tr></table>",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
527,
|
| 1079 |
+
88,
|
| 1080 |
+
854,
|
| 1081 |
+
233
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 8
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "image",
|
| 1087 |
+
"img_path": "images/1a3649642909a08bbdd852d92b8ec00817216ffd484e8ea8263d27aa9fb977f4.jpg",
|
| 1088 |
+
"image_caption": [
|
| 1089 |
+
"Figure 2: Training loss and the testing accuracy for classification on MNIST data set against the number of samples accessed at each WN for moderate heterogeneity setting with $b = 8$ . "
|
| 1090 |
+
],
|
| 1091 |
+
"image_footnote": [],
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
186,
|
| 1094 |
+
320,
|
| 1095 |
+
790,
|
| 1096 |
+
491
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 8
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
558,
|
| 1106 |
+
825,
|
| 1107 |
+
641
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 8
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "Data and Parameter Settings: We compare the algorithms for image classification tasks on CIFAR10 and MNIST data sets with 100 WNs, and for next character prediction task on Shakespeare dataset $\\pmb { \\Vert 3 7 } \\Vert$ with 143 WNs in the network. For both CIFAR-10 and MNIST, each WN implements a two-hidden-layer convolutional neural network (CNN) architecture followed by three linear layers for CIFAR-10 and two for MNIST. For CIFAR-10 (and MNIST) datset, we consider three settings with mild, moderate and high heterogeneity. For all the three settings, the data is partitioned into disjoint sets among the WNs. In the mild heterogeneity setting, the WNs have access to partitioned data from all the classes. In the moderate (resp. high) heterogeneity setting the data is partitioned such that each WN can access data from only 5 (resp. 2) out of 10 classes. For CIFAR-10 (resp. MNIST), each WN has access to 490 (resp. 540) samples for training and 90 (resp. 80) samples for testing purposes. ",
|
| 1114 |
+
"bbox": [
|
| 1115 |
+
173,
|
| 1116 |
+
647,
|
| 1117 |
+
825,
|
| 1118 |
+
786
|
| 1119 |
+
],
|
| 1120 |
+
"page_idx": 8
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"type": "text",
|
| 1124 |
+
"text": "We also compare the performance of algorithms on a popular FL benchmarking dataset, Shakespeare dataset $\\mathbb { B } \\mathbb { Z }$ . For this task, we adopt the settings from $\\dot { \\left[ \\left| 1 0 \\right| \\right] }$ and utilize a 2-Layer LSTM network with 100 hidden units and an 8-D embedding layer at each WN. Each WN has access to 3616 samples on average, and the samples are randomly split into an $80 \\%$ training set and a $20 \\%$ testing set. We randomly sample 10 nodes out of 143 for the training purpose. All the experiments are implemented on a single NVIDIA Quadro RTX 5000 GPU. More details are provided in appendix. ",
|
| 1125 |
+
"bbox": [
|
| 1126 |
+
174,
|
| 1127 |
+
792,
|
| 1128 |
+
825,
|
| 1129 |
+
876
|
| 1130 |
+
],
|
| 1131 |
+
"page_idx": 8
|
| 1132 |
+
},
|
| 1133 |
+
{
|
| 1134 |
+
"type": "text",
|
| 1135 |
+
"text": "For the proposed STEM algorithm, recall that the step-size is $\\eta _ { t } = \\bar { \\kappa } / ( w _ { t } + \\sigma ^ { 2 } t ) ^ { 1 / 3 }$ with momentum parameter defined as $a _ { t } = { c } \\eta _ { t } ^ { 2 }$ . The step-size is used to update the iterates while the momentum parameter is used to construct the stochastic gradient estimate (cf. Algorithm 1 and Theorem $\\boxed { 3 . 1 }$ . For the experiments, we set $w _ { t } = \\sigma ^ { 2 } = 1$ and $c \\doteq \\bar { c } / \\bar { \\kappa } ^ { 2 }$ and tune for $\\bar { \\kappa } \\in [ 1 0 ^ { - 1 } , 1 0 ^ { - 2 } ]$ for the CIFAR-10 dataset and for ${ \\bar { \\kappa } } \\in \\{ 1 0 ^ { 1 } , 1 0 ^ { 0 } , 1 0 ^ { - 1 } , 1 0 ^ { - 2 } \\}$ for the Shakespeare dataset. For both the datasets we tune for $\\bar { c }$ in the range [1, 10]. For FedProx $\\mathbb { m }$ and FedDyn $\\lVert \\dot { \\boldsymbol { 3 6 } } \\rVert$ we choose the regularization constant to be 0.1. The momentum parameters for FedGLOMO $\\pm \\textcircled { 1 8 } \\textcircled { 1 }$ and MIME $\\mathbb { \\ m }$ are set based on the choices given in the respective papers. Specifically, for FedGLOMO we choose the parameter $\\beta _ { k } = 0 . 2$ and design the momentum gradient using a damping factor given in Appendix A.4 of FedGLOMO $\\mathbb { \\left[ \\left[ 8 \\right] \\right] }$ . Moreover, for MIME we choose the momentum parameter as 0.9. For the rest of the algorithms (including FedAvg and SCAFFOLD), the step-size is tuned from the set $\\{ 1 0 ^ { 1 } , 1 0 ^ { 0 } , 1 0 ^ { - 1 } , \\hat { 1 0 } ^ { - 2 } \\}$ . ",
|
| 1136 |
+
"bbox": [
|
| 1137 |
+
174,
|
| 1138 |
+
882,
|
| 1139 |
+
821,
|
| 1140 |
+
911
|
| 1141 |
+
],
|
| 1142 |
+
"page_idx": 8
|
| 1143 |
+
},
|
| 1144 |
+
{
|
| 1145 |
+
"type": "text",
|
| 1146 |
+
"text": "",
|
| 1147 |
+
"bbox": [
|
| 1148 |
+
174,
|
| 1149 |
+
90,
|
| 1150 |
+
825,
|
| 1151 |
+
217
|
| 1152 |
+
],
|
| 1153 |
+
"page_idx": 9
|
| 1154 |
+
},
|
| 1155 |
+
{
|
| 1156 |
+
"type": "text",
|
| 1157 |
+
"text": "Discussion: We evaluate the training and testing performance of STEM against multiple algorithms for different heterogeneity settings, minibatch sizes, and number of local updates. In Tables $\\bigstar$ $\\boxed { 2 \\mathbf { b } }$ and $\\bigstar ,$ we compare the training and testing accuracy of STEM to that of other algorithms on the CIFAR-10 dataset. Specific, heterogeneity settings, the choices of minibatches, and number of local updates are stated along with the tables. Note that STEM performs uniformly well under all the conditions. Moreover, note from Table $2 { \\mathbf { b } }$ that FedGLOMO diverges once the number of local updates are high. Also, note from Table $\\textcircled { 3 }$ that FedProx and STEM adapt well to high heterogeneity. Finally, with the next set of experiments we emphasize the importance of choosing $b$ and $I$ carefully. In Figure $\\bigstar ,$ we compare the training and testing performance of STEM, FedAvg and SCAFFOLD, against the number of samples accessed at each WN for the classification task on MNIST dataset with moderate heterogeneity. We fix $b = 8$ and conduct experiments under two settings, one with $I = 6 7$ , and the other with $I = 5 3 6$ local updates at each WN. Note that although a large number of local updates might lead to fewer communication rounds but it can make the sample complexity extremely high as is demonstrated by Figure $2 .$ For example, Figure $\\bigtriangledown$ shows that to reach testing accuracy of $9 6 - 9 7 \\%$ with $I = 6 7$ , STEM requires approximately $\\overline { { 5 0 } } 0 0 - 6 0 0 0$ samples, in contrast with $I = 5 3 6$ it requires more than 25000 samples at each WN. Similar behavior can be observed if we fix $I > 1$ and increase the local batch sizes. This implies not choosing the local updates and the batch sizes judiciously might lead to increased sample complexity. Additional experiments are included in the supplementary material to further evaluate the performance of the proposed algorithms. ",
|
| 1158 |
+
"bbox": [
|
| 1159 |
+
173,
|
| 1160 |
+
229,
|
| 1161 |
+
826,
|
| 1162 |
+
492
|
| 1163 |
+
],
|
| 1164 |
+
"page_idx": 9
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"type": "text",
|
| 1168 |
+
"text": "Conclusion ",
|
| 1169 |
+
"text_level": 1,
|
| 1170 |
+
"bbox": [
|
| 1171 |
+
174,
|
| 1172 |
+
512,
|
| 1173 |
+
269,
|
| 1174 |
+
529
|
| 1175 |
+
],
|
| 1176 |
+
"page_idx": 9
|
| 1177 |
+
},
|
| 1178 |
+
{
|
| 1179 |
+
"type": "text",
|
| 1180 |
+
"text": "In this work, we proposed a novel algorithm STEM, for distributed stochastic non-convex optimization with applications to FL. We showed that STEM reaches an $\\epsilon$ -stationary point with $\\tilde { \\mathcal O } ( \\epsilon ^ { - 3 / 2 } )$ sample complexity while achieving linear speed-up with the number of WNs. Moreover, the algorithm achieves a communication complexity of $\\tilde { \\mathcal { O } } ( \\epsilon ^ { - 1 } )$ . We established a (optimal) trade-off that allows interpolation between varying choices of local updates and the batch sizes at each WN while maintaining (near optimal) sample and communication complexities. We showed that FedAvg (a.k.a LocalSGD) also exhibits a similar trade-off while achieving worse complexities. Our results provide guidelines to carefully choose the number of local updates, update directions, and minibatch sizes to achieve the best performance. The future directions of this work include developing lower bounds on communication complexity that establishes the tightness of the analysis conducted in this work. ",
|
| 1181 |
+
"bbox": [
|
| 1182 |
+
173,
|
| 1183 |
+
542,
|
| 1184 |
+
826,
|
| 1185 |
+
685
|
| 1186 |
+
],
|
| 1187 |
+
"page_idx": 9
|
| 1188 |
+
},
|
| 1189 |
+
{
|
| 1190 |
+
"type": "text",
|
| 1191 |
+
"text": "Acknowledgement ",
|
| 1192 |
+
"text_level": 1,
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
176,
|
| 1195 |
+
704,
|
| 1196 |
+
330,
|
| 1197 |
+
722
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 9
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "We thank the anonymous reviewers for their valuable comments and suggestions. The work of Prashant Khanduri and Mingyi Hong was supported by NSF grant CMMI-1727757, AFOSR grant 19RT0424 and ARO grant W911NF-19-1-0247. The work of Mingyi Hong was also supported by an IBM Faculty Research award. The work of Jia Liu has been supported in part by NSF grants CAREER CNS-2110259, CNS-2112471, CNS-2102233, CCF-2110252, ECCS-2140277, and a Google Faculty Research Award. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
174,
|
| 1206 |
+
736,
|
| 1207 |
+
825,
|
| 1208 |
+
819
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 9
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "References \n[1] J. Konecnˇ y, H. B. McMahan, D. Ramage, and P. Richtárik, “Federated optimization: Distributed \\` machine learning for on-device intelligence,” arXiv preprint arXiv:1610.02527, 2016. \n[2] M. Li, D. G. Andersen, A. J. Smola, and K. Yu, “Communication efficient distributed machine learning with the parameter server,” in Advances in Neural Information Processing Systems 27, Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, Eds. Curran Associates, Inc., 2014, pp. 19–27. \n[3] J. Dean, G. Corrado, R. Monga, K. Chen, M. Devin, M. Mao, M. Ranzato, A. Senior, P. Tucker, K. Yang et al., “Large scale distributed deep networks,” in Advances in neural information processing systems, 2012, pp. 1223–1231. \n[4] T. Léauté and B. Faltings, “Protecting privacy through distributed computation in multi-agent decision making,” Journal of Artificial Intelligence Research, vol. 47, pp. 649–695, 2013. \n[5] C. Fang, C. J. Li, Z. Lin, and T. Zhang, “Spider: Near-optimal non-convex optimization via stochastic path-integrated differential estimator,” in Advances in Neural Information Processing Systems, 2018, pp. 689–699. \n[6] D. Zhou, P. Xu, and Q. Gu, “Stochastic nested variance reduction for nonconvex optimization,” arXiv preprint arXiv:1806.07811, 2018. \n[7] A. Cutkosky and F. Orabona, “Momentum-based variance reduction in non-convex SGD,” in Advances in Neural Information Processing Systems 32. Curran Associates, Inc., 2019, pp. 15 236–15 245. \n[8] Q. Tran-Dinh, N. H. Pham, D. T. Phan, and L. M. Nguyen, “Hybrid stochastic gradient descent algorithms for stochastic nonconvex optimization,” arXiv preprint arXiv:1905.05920, 2019. \n[9] X. Zhang, M. Hong, S. Dhople, W. Yin, and Y. Liu, “Fedpd: A federated learning framework with adaptivity to non-iid data,” IEEE Transactions on Signal Processing, pp. 1–1, 2021. \n[10] T. Li, A. K. Sahu, M. Zaheer, M. Sanjabi, A. Talwalkar, and V. Smith, “Federated optimization in heterogeneous networks,” arXiv preprint arXiv:1812.06127, 2018. \n[11] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial Intelligence and Statistics. PMLR, 2017, pp. 1273–1282. \n[12] H. Yu, S. Yang, and S. Zhu, “Parallel restarted sgd with faster convergence and less communication: Demystifying why model averaging works for deep learning,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 01, 2019, pp. 5693–5700. \n[13] B. Woodworth, K. K. Patel, and N. Srebro, “Minibatch vs local sgd for heterogeneous distributed learning,” arXiv preprint arXiv:2006.04735, 2020. \n[14] H. Yu, R. Jin, and S. Yang, “On the linear speedup analysis of communication efficient momentum sgd for distributed non-convex optimization,” in International Conference on Machine Learning. PMLR, 2019, pp. 7184–7193. \n[15] S. P. Karimireddy, S. Kale, M. Mohri, S. Reddi, S. Stich, and A. T. Suresh, “Scaffold: Stochastic controlled averaging for federated learning,” in International Conference on Machine Learning. PMLR, 2020, pp. 5132–5143. \n[16] H. Yang, M. Fang, and J. Liu, “Achieving linear speedup with partial worker participation in non-iid federated learning,” arXiv preprint arXiv:2101.11203, 2021. \n[17] S. P. Karimireddy, M. Jaggi, S. Kale, M. Mohri, S. J. Reddi, S. U. Stich, and A. T. Suresh, “Mime: Mimicking centralized stochastic algorithms in federated learning,” arXiv preprint arXiv:2008.03606, 2020. \n[18] R. Das, A. Hashemi, S. Sanghavi, and I. S. Dhillon, “Improved convergence rates for non-convex federated learning with compression,” arXiv preprint arXiv:2012.04061, 2020. \n[19] B. Woodworth, K. K. Patel, S. U. Stich, Z. Dai, B. Bullins, H. B. McMahan, O. Shamir, and N. Srebro, “Is local sgd better than minibatch sgd?” arXiv preprint arXiv:2002.07839, 2020. \n[20] H. Yu and R. Jin, “On the computation and communication complexity of parallel sgd with dynamic batch sizes for stochastic non-convex optimization,” in International Conference on Machine Learning. PMLR, 2019, pp. 7174–7183. \n[21] J. Wang and G. Joshi, “Cooperative sgd: A unified framework for the design and analysis of local-update sgd algorithms,” Journal of Machine Learning Research, vol. 22, no. 213, pp. 1–50, 2021. \n[22] A. Khaled, K. Mishchenko, and P. Richtárik, “Better communication complexity for local sgd,” arXiv, 2019. \n[23] S. U. Stich, “Local sgd converges fast and communicates little,” arXiv preprint arXiv:1805.09767, 2018. \n[24] T. Lin, S. U. Stich, K. K. Patel, and M. Jaggi, “Don’t use large mini-batches, use local sgd,” in International Conference on Learning Representations, 2020. \n[25] F. Zhou and G. Cong, “On the convergence properties of a k-step averaging stochastic gradient descent algorithm for nonconvex optimization,” in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI-18, 7 2018, pp. 3219–3227. \n[26] F. Sattler, S. Wiedemann, K.-R. Müller, and W. Samek, “Robust and communication-efficient federated learning from non-iid data,” IEEE transactions on neural networks and learning systems, vol. 31, no. 9, pp. 3400–3413, 2019. \n[27] Y. Zhao, M. Li, L. Lai, N. Suda, D. Civin, and V. Chandra, “Federated learning with non-iid data,” arXiv preprint arXiv:1806.00582, 2018. \n[28] J. Wang, V. Tantia, N. Ballas, and M. Rabbat, “Slowmo: Improving communication-efficient distributed sgd with slow momentum,” arXiv preprint arXiv:1910.00643, 2019. \n[29] X. Liang, S. Shen, J. Liu, Z. Pan, E. Chen, and Y. Cheng, “Variance reduced local sgd with lower communication complexity,” arXiv preprint arXiv:1912.12844, 2019. \n[30] P. Sharma, P. Khanduri, S. Bulusu, K. Rajawat, and P. K. Varshney, “Parallel restarted SPIDER – communication efficient distributed nonconvex optimization with optimal computation complexity,” arXiv preprint arXiv:1912.06036, 2019. \n[31] S. J. Reddi, S. Kale, and S. Kumar, “On the convergence of adam and beyond,” arXiv preprint arXiv:1904.09237, 2019. \n[32] A. Koloskova, N. Loizou, S. Boreiri, M. Jaggi, and S. Stich, “A unified theory of decentralized sgd with changing topology and local updates,” in International Conference on Machine Learning. PMLR, 2020, pp. 5381–5393. \n[33] R. Johnson and T. Zhang, “Accelerating stochastic gradient descent using predictive variance reduction,” in Advances in Neural Information Processing Systems 26. Curran Associates, Inc., 2013, pp. 315–323. \n[34] L. Bottou, F. E. Curtis, and J. Nocedal, “Optimization methods for large-scale machine learning,” SIAM Review, vol. 60, no. 2, pp. 223–311, 2018. \n[35] Y. Drori and O. Shamir, “The complexity of finding stationary points with stochastic gradient descent,” in International Conference on Machine Learning. PMLR, 2020, pp. 2658–2667. \n[36] D. A. E. Acar, Y. Zhao, R. Matas, M. Mattina, P. Whatmough, and V. Saligrama, “Federated learning based on dynamic regularization,” in International Conference on Learning Representations, 2020. \n[37] S. Caldas, S. M. K. Duddu, P. Wu, T. Li, J. Konecnˇ ý, H. B. McMahan, V. Smith, and A. Talwalkar, “Leaf: A benchmark for federated settings,” 2019. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
173,
|
| 1217 |
+
90,
|
| 1218 |
+
828,
|
| 1219 |
+
920
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 10
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
171,
|
| 1228 |
+
68,
|
| 1229 |
+
828,
|
| 1230 |
+
909
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 11
|
| 1233 |
+
}
|
| 1234 |
+
]
|
parse/train/gEzN9bBbLt8/gEzN9bBbLt8_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/gEzN9bBbLt8/gEzN9bBbLt8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/lMgDDWb1ULW/lMgDDWb1ULW.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hash Layers For Large Sparse Models
|
| 2 |
+
|
| 3 |
+
# Stephen Roller Sainbayar Sukhbaatar Arthur Szlam Jason Weston
|
| 4 |
+
|
| 5 |
+
Facebook AI Research
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
We investigate the training of sparse layers that use different parameters for different inputs based on hashing in large Transformer models. Specifically, we modify the feedforward layer to hash to different sets of weights depending on the current token, over all tokens in the sequence. We show that this procedure either outperforms or is competitive with learning-to-route mixture-of-expert methods such as Switch Transformers and BASE Layers, while requiring no routing parameters or extra terms in the objective function such as a load balancing loss, and no sophisticated assignment algorithm. We study the performance of different hashing techniques, hash sizes and input features, and show that balanced and random hashes focused on the most local features work best, compared to either learning clusters or using longer-range context. We show our approach works well both on large language modeling and dialogue tasks, and on downstream fine-tuning tasks.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Recent studies of Transformer models have shown a clear trend towards improvements with scale in data and model size [1], mirroring the same trend in Machine Learning more generally. However, when architected naively, larger (in terms of parameter count) models are slower to train and to evaluate; and at extreme scale, with current computer systems, necessitate complex engineering to facilitate communication between workers. To address these challenges, researchers have studied Mixtures-of-Experts (MoE) models [2, 3, 4, 5, 6, 7, 8], where a “gater” routes computation through a sparse subset of the weights of the model (the “expert modules”). Specifically in the setting of Transformers for Natural Language Processing (NLP), recent approaches have led to state of the art performance in language modeling [8]. MoE models allow increasing the number of parameters in the model while holding steady the number of computations that affect a given sample.
|
| 14 |
+
|
| 15 |
+
A key component to a MoE model is the routing (gating) strategy. While MoE models can be computationally advantageous per parameter compared to a dense model, they might be functionally less powerful per parameter. A poor routing strategy might lead to expert modules that are not properly specialized (essentially making a stochastic ensemble model); or overly specialized, using the data assignment function to overfit. Meanwhile, the routing strategy itself must be efficient.
|
| 16 |
+
|
| 17 |
+
A standard approach is to train a layer of weights that makes the routing decision based upon the input to the layer to be routed. Classically, this may have been implemented with a softmax over the choice of expert modules, and fitted via backpropagation. However, a dense softmax requires all expert modules to run on all data points at train time, which negates the computational savings. Several works have shown that sparsity can be maintained during training, e.g. [9, 7, 8, 10]. In particular, Switch Transformers [8] select the top expert per token using a softmax over the token’s hidden state, but require a load balancing term in the objective function or they can become imbalanced or degenerate, giving poor results. BASE Layers [10] employ a linear assignment algorithm to try to resolve the same problem.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: Overview of the Hash Layer. Tokens are routed to fixed expert modules based on their hash.
|
| 21 |
+
|
| 22 |
+
In this work, we describe a simple, sparse, efficient routing strategy based on hashing input tokens that is effective in the Transformers-for-NLP setting. We show this approach is effective on a number of datasets, comparing favorably to both Switch Transformers and BASE Layers. As the routing strategy requires no extra parameters, no change to the objective function or assignment algorithm, its simplicity means it is robust, fast and easy to implement. We provide detailed analysis to explain why our method works, and in which conditions. Given that when training very large models one may typically have only one shot given the required compute budget, and experimenters will be unable to try many parameter choices, we hence advocate our approach as a strong candidate for such a setting.
|
| 23 |
+
|
| 24 |
+
# 2 Background
|
| 25 |
+
|
| 26 |
+
Let us first introduce the Mixture-of-Experts setting where we apply our hash-based routing strategy. We use the same setting as [11, 8, 10] where a feedforward network (FFN) in a Transformer is replaced by its MoE version. Given a tokenized input sequence $\{ x _ { 1 } , x _ { 2 } , \dots , x _ { T } \}$ of $T$ tokens, a representation for each token is computed in parallel by a standard Transformer [12]
|
| 27 |
+
|
| 28 |
+
$$
|
| 29 |
+
\mathbf { h } _ { 1 } ^ { L } , \mathbf { h } _ { 2 } ^ { L } , \ldots , \mathbf { h } _ { T } ^ { L } = \mathrm { T R A N S F O R M E R } ( x _ { 1 } , x _ { 2 } , \ldots , x _ { T } ) .
|
| 30 |
+
$$
|
| 31 |
+
|
| 32 |
+
The Transformer consists of $L$ layers that computes final hidden states for each token, and each layer is composed of self-attention and FFN sublayers, where FFNs are two-layer fully connected networks
|
| 33 |
+
|
| 34 |
+
$$
|
| 35 |
+
\bar { \mathbf { h } } _ { t } ^ { l } = \mathrm { S e l f A t t n } ( \mathbf { h } _ { t } ^ { l - 1 } ) \qquad \mathbf { h } _ { t } ^ { l } = \mathrm { F F N } ( \bar { \mathbf { h } } _ { t } ^ { l } ) .
|
| 36 |
+
$$
|
| 37 |
+
|
| 38 |
+
Here we omit skip-connections and normalization for brevity. We can then replace one or more of the FFN sublayers with expert modules. Replacing the FNN at layer $l$ with $K$ expert FFNs, their output is then mixed with some gating function $g ( \cdot )$ :
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\mathbf h _ { t } ^ { l } = \mathrm { F F N } ( \bar { \mathbf h } _ { t } ^ { l } ) \quad \to \quad \mathbf h _ { t } ^ { l } = \sum _ { i = 1 } ^ { K } g _ { i } ( \bar { \mathbf h } _ { t } ^ { l } ) \mathrm { F F N } _ { i } ( \bar { \mathbf h } _ { t } ^ { l } ) , \quad t = 1 , \dots , T ,
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where importantly each token is routed to a different mixture of experts, as the gating function depends on the token’s specific hidden state $\bar { \mathbf { h } } _ { t } ^ { l }$ .
|
| 45 |
+
|
| 46 |
+
Sparse MoE methods assume gating values $g _ { i }$ are often zero, so only a few experts need to be computed for better efficiency. As expert FFNs do not share parameters, the number of parameters increases with $K$ while the amount of computations per input token stays the same if the MoE FFN only routes to a single expert, and computation of $g _ { i }$ is cheap. While this allows training of large capacity models with small compute budget, optimizing $g _ { i }$ in the sparse setting can be tricky.
|
| 47 |
+
|
| 48 |
+
# 3 Method
|
| 49 |
+
|
| 50 |
+
In this paper we propose a simple gating mechanism that is especially efficient because only one expert is active, and it has no routing network parameters to be learnt. Recent work [11, 8, 10] has to learn parameters that determine the routing to expert modules based on hidden states, which have to be optimized in tandem with the expert weights themselves. This can potentially cause difficulty because during training membership for each expert is changing while it is trying to learn the mapping for those members. We instead advocate for a fixed mapping to experts. Namely, by hashing the tokens into a fixed number of buckets, each bucket corresponding to an expert:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\mathbf { h } _ { t } ^ { l } = \mathrm { F F N } _ { \mathrm { h a s h } ( x _ { t } ) } ( \bar { \mathbf { h } } _ { t } ^ { l } ) , \quad t = 1 , \ldots , T .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
While the FFN still takes the hidden state $\bar { \mathbf { h } } _ { t } ^ { l }$ as input, our routing function uses the original input token $x _ { t }$ rather than the hidden state, see Figure 1 for a graphical depiction. We are free to choose from various possible hash functions, which we will consider below. However, for training purposes, the hash function is fixed in advance, and in this way, our routing mechanism requires no training and has no adjustable parameters.
|
| 57 |
+
|
| 58 |
+
# 3.1 Hash Functions
|
| 59 |
+
|
| 60 |
+
Hash functions have long been employed throughout Computer Science [13], and can take a variety of forms. In our work, we generally employ pre-computed hash functions, which use a lookup table during learning – precomputed in advance – to map tokens to expert modules.
|
| 61 |
+
|
| 62 |
+
We consider several kinds of hash functions as possible choices for routing tokens to expert modules. The simplest is Random Hash, wherein we assign every token to a fixed, random expert at initialization. Due to the Zipfian distribution of token frequency, this naturally produces imbalance across the different expert modules. As balancing has been previously shown to be important for training MoE models [8, 10], we also consider Balanced assignment. In this method, we build the lookup table before training the model using the training data distribution by greedily assigning the most frequent tokens to the emptiest buckets. The resulting assignment structure is significantly more balanced than Random Hashing, but not perfect, as the frequency of some tokens exceeds the ideal distribution.
|
| 63 |
+
|
| 64 |
+
Random and Balanced hashing exploit the inductive bias of auto-regressive models and hash on the input token, but we also consider other possibilities: Bigram Hash uses the current and previous token $( x _ { t - 1 } , x _ { t } )$ rather than only the current token, while Previous Token Hash uses the previous token $x _ { t - 1 }$ , ignoring the current input. We also consider a sanity check which hashes based on the Position in the sequence, which we expect to have little impact, as absolute positions carry little information in natural language. Each of these hash functions is used to assess the value of the information being routed-on in our subsequent experimental analysis.
|
| 65 |
+
|
| 66 |
+
As an upper baseline, we also evaluate using an Oracle Future Hash, which hashes based on the output token $x _ { t + 1 }$ , rather than input token. This Oracle Hash checks how powerful routing decisions can be in solving a task. Similarly, we also consider Predicted Future Token Hash, which utilizes a baseline Transformer to make a prediction of the output token, and then hashes over this prediction.
|
| 67 |
+
|
| 68 |
+
Clustered Hashes Based on the intuition that similar tokens may want to be routed to the same expert, we also experiment with Clustered Hashes. We obtain clusters by performing k-means clustering with a fixed number of clusters using token embeddings from a baseline Transformer model. Each expert is assigned a centroid, and tokens are assigned to their closest cluster.
|
| 69 |
+
|
| 70 |
+
Dispersed Hashes We also consider the opposite hypothesis: that similar-tokens should be placed in different buckets, where the assumption is that very similar tokens need fine distinctions which requires more model capacity (hence assigning to different experts). To do this, we use the same $\mathbf { k }$ -means clusters as before, but distribute all tokens within each cluster equally across all buckets.
|
| 71 |
+
|
| 72 |
+
# 3.2 MultiHash Layers
|
| 73 |
+
|
| 74 |
+
In the standard FFN MoE approach, all $K$ expert modules have independent parameters, but here we consider another option. It is known in the hashing literature that multiple hashes can provide better allocations in many contexts [14]. We consider such schemes in the context of sparse routing. Let us assume we are given $N$ different hashing functions, and for a given input token $x$ we compute these hashes, denoted as $k _ { m } = { \mathrm { h a s h } _ { m } } ( x )$ , $m = 1 , \ldots , N$ . Assuming the usual expert FFN is a function $B ( \mathrm { r e l u } ( A ( { \bf h } ) ) )$ where $A : \mathbb { R } ^ { d } \mathbb { R } ^ { D }$ and $B : \mathbb { R } ^ { D } \mathbb { R } ^ { d }$ , we split the linear layers into $N$ segments, $A _ { m } : \mathbb { R } ^ { d } \mathbb { R } ^ { D / N }$ and $B _ { m } : \mathbb { R } ^ { D } \mathbb { R } ^ { d / N }$ . Then we compute:
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathbf { v } = \mathrm { r e l u } ( [ A _ { k _ { 1 } } ( \mathbf { h } ) , \dots , A _ { k _ { N } } ( \mathbf { h } ) ] ) \qquad \mathrm { F F N } _ { \mathrm { M H } } ( \mathbf { h } ) = [ B _ { k _ { 1 } } ( \mathbf { v } ) , \dots , B _ { k _ { N } } ( \mathbf { v } ) ] .
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
That is, use hashing to select the parameters we are going to use for each segment, and then concatenate them together. The advantage is that we are now no longer reliant on the quality of a single hash function, but have multiple chances to produce good quality partitions. This perhaps can also be seen as analogous to the multi-head attention process already used in Transformers.
|
| 81 |
+
|
| 82 |
+
# 4 Related Work
|
| 83 |
+
|
| 84 |
+
Sparse MoE models, where only a few expert modules are active for any input, in particular in the context of NLP, have been studied recently in [6, 11]. In these works, the gating is learned via backpropagation, perhaps with a regularizer to encourage load balancing across experts. [8] showed that models in [11] can be successfully trained with each input assigned to exactly one expert. Another such approach for Transformers, where the routing is learned via solving a linear assignment problem, is studied in [10]. [15] uses a different approach, where product keys enable nearest neighbor search to select parameters. More generally, using MoE to trade off compute time (at the cost of possible data fragmentation) has a long history, see e.g. [3, 7].
|
| 85 |
+
|
| 86 |
+
The approach in this work is different from all of these in that the assignments use no learning whatsoever, and instead make use of the inductive biases possible in the setting of natural language. In particular, we use the fact that $n$ -grams are themselves decent language models [16]. Thus this work is related to previous work attempting to combine neural and $n$ -gram language models [17, 18, 19, 20, 21, 22].
|
| 87 |
+
|
| 88 |
+
Our work is also related to feature hashing in linear models and kernel methods [23, 24], where word or n-gram features are hashed to provide a new lower dimensional feature space. [23] showed that when performing such feature hashing the interaction between random subspaces is negligible with high probability. [25] uses hashing to compress neural networks, rather than increase their parameters as we do here. Work on long-context Transformers has recently used hashing techniques to speed up access to long-range token history via sparse self-attention patterns, particularly in Routing Transformers [26] and the Reformer [27]. In contrast, our work uses hashing to access a large set of parameters via sparse routing, rather than sparse access to input features.
|
| 89 |
+
|
| 90 |
+
# 5 Experiments
|
| 91 |
+
|
| 92 |
+
# 5.1 Tasks
|
| 93 |
+
|
| 94 |
+
Pushshift.io Reddit We use a variant of Reddit discussions, which has also been used in several existing studies, see e.g. [28, 29, 30, 31]. Following [32], we use a previously existing Reddit dataset extracted and obtained by a third party and made available on pushshift.io [33], training to generate a comment conditioned on the full thread leading up to the comment, spanning 1.5B training examples. We use the same BPE dictionary as [34], comprising of 8008 tokens.
|
| 95 |
+
|
| 96 |
+
RoBERTa+cc100en Data We use the same data used to train BASE [10], which consists of approximately 100B tokens, combining corpora used in RoBERTa [35] with the English subset of the CC100 corpus [36]. The GPT2 dictionary, of size 51200, is used for tokenization. For our seq2seq experiments, we arrange this data splitting by sentence to predict the next turn. We consider it as the originally intended language modeling task in our experiments comparing with BASE [10].
|
| 97 |
+
|
| 98 |
+
Wikitext-103 Wikitext-103 is a smaller language modeling benchmark [37] consisting of a collection of Wikipedia articles of over 100 million tokens, and a fixed vocabulary size of 270K tokens is provided. We view this as a seq2seq task in our experiments, again splitting by sentence.
|
| 99 |
+
|
| 100 |
+
Downstream BST tasks Finally, we use the Blended Skill Talk (BST) dialogue tasks used in [34] after pushshift.io Reddit pre-training to evaluate fine-tuning performance of dense vs. sparse models.
|
| 101 |
+
|
| 102 |
+
# 5.2 Experimental Setup
|
| 103 |
+
|
| 104 |
+
Seq2Seq Setup The majority of our experiments are carried out in ParlAI1 platform using an encoder-decoder Transformer framework. We first train several standard (dense) Transformers, with
|
| 105 |
+
|
| 106 |
+
Table 1: Comparison of Models on pushshift.io Reddit. We show three sizes of dense Transformer compared to Switch Transformers and using Hash Layers with various numbers of modules and sparse layers, e.g. $5 \mathrm { x } 1 6$ means 5 sparse layers with 16 modules each. All Switch and Hash Layer modules are built to the same computational complexity as the 11 layer baseline Transformer, but have more parameters; the larger dense models have similar total parameters, but use more compute.
|
| 107 |
+
|
| 108 |
+
<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=11,d=1024,D=4096</td><td>222M</td><td>24.90</td><td>24.96</td></tr><tr><td>Wider Transformer (more compute)</td><td>layers=11,d=2048,D=6144</td><td>755M</td><td>23.32</td><td>23.38</td></tr><tr><td>Deeper Transformer (more compute)</td><td>layers=22,d=1536,D=4096</td><td>755M</td><td>22.72</td><td>22.78</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.65</td><td>23.73</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x64</td><td>751M</td><td>23.16</td><td>23.23</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.52</td><td>23.58</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x128</td><td>1.28B</td><td>22.89</td><td>22.95</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=5x16,load_bal=0.01</td><td>852M</td><td>23.19</td><td>23.25</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=5x16,load_bal=0.1</td><td>852M</td><td>23.00</td><td>22.93</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=5x16</td><td>852M</td><td>23.21</td><td>23.27</td></tr></table>
|
| 109 |
+
|
| 110 |
+
Table 2: Comparison of Models on RoBERTa $^ +$ cc100en Data. We compare a dense transformer with the same parameters as our sparse models, except with 1 sparse layer with 64 modules (1x64).
|
| 111 |
+
|
| 112 |
+
<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=11,d=1024,D=4096</td><td>266M</td><td>28.85</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>795M</td><td>27.41</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x64</td><td>794M</td><td>26.99</td></tr></table>
|
| 113 |
+
|
| 114 |
+
2 encoder layers and either 11 or 22 decoder layers, following the structure in [34] for training on pushshift.io Reddit. We refer to the one with 11 layers and embedding size of $d = 1 0 2 4$ and FFN hidden layer size of $D = 4 0 9 6$ as our Baseline Transformer. We also train a "Wider" model with $D = 6 1 4 4$ , and a "Deeper" model with 22 decoder layers, and $D = 4 0 9 6$ . The Baseline model has 222M parameters, and the "Wider" and "Deeper" are selected to both have ${ 7 5 5 } \mathbf { M }$ parameters each. These models are compared to the Hash Layer methods detailed in section 3 and to Switch Transformers of the same sizes and settings. The load balancing for Switch is optimized on the validation set. For both Hash and Switch we use the "Baseline" Transformer size detailed above as the architecture that we add sparse routing layers to by replacing one or more of the original dense layers. All experiments are run for 100k updates; a table of hyperparameters is provided in subsection B.1.
|
| 115 |
+
|
| 116 |
+
BASE Comparison While most of our analysis takes place in the setup described above with models up to 1.28B parameters, to test our methods at scale on larger sparse models, we adopt the BASE Layer setup [10] and code base2 instead where we compare 4.5B parameter Hash and BASE Layer models. This setting uses pure language models rather than the Seq2Seq setup above. We use the architecture, data (RoBERTa+cc100en), and hyperparameters directly from [10], using either a single sparse routing layer consisting of 3 stacked FFNs $D = 8 1 9 2$ ) on the middle layer of a 25 layer network, or 3 routing layers evenly spaced in the network. In order to compare with BASE directly, we keep all hyperparameters fixed and only change the routing method; we use a balanced assignment Hash Layer in this case. We trained until 40k steps had been reached. A table of hyperparameters is provided in subsection B.2.
|
| 117 |
+
|
| 118 |
+
# 5.3 Results and Analysis
|
| 119 |
+
|
| 120 |
+
# 5.3.1 Comparison between Hash, Switch and Dense models
|
| 121 |
+
|
| 122 |
+
Hash vs. Switch routing on a single layer We first compare a Hash layer (with balanced hash) to a Switch layer, on an otherwise dense Transformer, where sparse routing is performed on layer 7 of the decoder. Both methods use 64 expert FFNs with 751M total parameters. Results on pushshift.io Reddit are given in Table 1 (rows 4 and 5) and on the RoBERTa+cc100en data in Table 2 (rows 2 and 3). We find Hash Layers outperforming Switch on both datasets by about 0.4-0.5 perplexity.
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
Figure 2: Comparison of Hash Layers with other models. (left) Validation perplexity of a baseline Transformer, Switch Transformer, and Hash Layer on the pushshift.io Reddit dataset with 128 modules. (right) Validation perplexity of BASE, Hash Layer, and a deeper Hash Layer model on the RoBERTa+cc100en dataset. All sparse models have the same number of parameters.
|
| 126 |
+
|
| 127 |
+

|
| 128 |
+
Figure 3: Comparing Different Number of Expert Modules and Layer Position. We compare (left) the validation perplexity wrt. the number of expert modules on the pushshift.io Reddit task for a Hash or Switch Layer on layer 7 of an 11 layer decoder in a Transformer. The baseline Transformer obtains a perplexity of 24.9. We compare the performance when adjusting the layer position of a 64 module Hash Layer on the same task (right). Placing on later layers works best.
|
| 129 |
+
|
| 130 |
+
Dense vs. Sparse Models Both Hash and Switch sparse models outperform the dense Baseline (222M parameters) they are based on, as well as the Wider Transformer (755M parameters). However, the Deeper Transformer (755M parameters) outperforms the sparse models which have a similar number of parameters. However, we note that due to its dense rather than conditional compute it is slower in inference speed. We see this as a general trend: good dense models can get more power out of the same number of parameters than sparse models. However, sparse models, although more wasteful in memory, give better perplexity for the same speed (i.e, we should compare to the Baseline Transformer in this case, which has roughly the same amount of computation).
|
| 131 |
+
|
| 132 |
+
Hash layer module size We conduct the same pushshift.io Reddit experiments as above, but altering the number of expert modules in both Hash and Switch. Increasing from 64 to 128 modules (1.28B parameters total) sees an even larger improvement of Hash over Switch (about 0.6 perplexity), see Table 1 (rows 6 and 7), and Figure 2 (left). Trying smaller numbers of modules, 16 and 32, and plotting all the results in Figure 3 (left) we see that for small numbers of modules Hash and Switch perform similarly, but the gap grows larger as the number of modules increases. For small numbers of modules, we hypothesize that learning to route, as Switch does, would be more important to be performant with those choices, but with larger numbers of modules many routing choices could work. Hence, Hash layers can work well in that setting, and learning to route becomes less important.
|
| 133 |
+
|
| 134 |
+
Hash layer position We also experiment to find the best position layer-wise for the sparse routing to take place. In Figure 3 (right) we plot perplexity for the 64 module Hash Layer, placing on different layers of the decoder. We find that later layers perform better, but even the worst performing choice (layer 1) is still performing well compared to other baselines: as good as Switch Transformers using later layers in fact. We note that analysis of BASE Layers [10] showed a similar trend that later layers work well. Hypothesizing that conditional compute gives the ability to make fine-grained specializations, it follows that it is worth making those distinctions after more obvious features have first been extracted. We will return to this argument in later experiments.
|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
Figure 4: Relative frequency for 64 expert modules with Random Hash (left) and Balanced Hash (right). The Zipfian distribution makes perfect balance impossible, but Balanced Hash is closer.
|
| 138 |
+
|
| 139 |
+
Multi-layer routing We evaluate placing sparse routing every other layer, 16 different modules each in Table 1 (rows 8-10). Switch and Hash perform similarly in this setting, with Switch outperforming with the optimal choice of 0.1 load balancing (23.00 vs. 23.21), and the same performance (23.19) for balancing parameter 0.01. Given the results of Figure 3 (left), the small number of modules in this case may make performance close.
|
| 140 |
+
|
| 141 |
+
Downstream fine-tuning We compare several of the pushshift.io Reddit models for the goal of fine-tuning on downstream tasks. We experiment with either fine-tuning the whole model, or freezing some parts of the model during fine-tuning, as well as altering the load balancing for Switch at fine-tune time. Results are given in Appendix A. We find that the fine-tune results generally agree with the original performance on the pre-training pushshift.io Reddit task, and the order of methods is retained. Hash outperforms Switch slightly, both outperform the Baseline model, and the larger dense models perform better, as expected. Freezing parts of the model generally hurts fine-tuning, unless the part frozen is the sparse part of the model. It appears in that case just fine-tuning the dense parts of the model is sufficient for good performance. Only tuning the sparse part of the model, on the other hand, hurts performance, perhaps because the majority of the capacity of the model lies there.
|
| 142 |
+
|
| 143 |
+
# 5.3.2 Hash Function Analysis
|
| 144 |
+
|
| 145 |
+
We evaluate the different choices of hashing function detailed in subsection 3.1. The overall results are given in Table 3 on the pushshift.io Reddit dataset using a 64 module Hash Layer.
|
| 146 |
+
|
| 147 |
+
Random and Balanced Hash Functions We find that fixed random assignment (row 3) and balanced assignment (row 2) perform similarly well in terms of perplexity (23.22 vs. 23.16 valid perplexity). However, balanced assignment, as its name suggests, is more balanced, see Figure 4, which may render it more efficient in terms of distributed training schemes.
|
| 148 |
+
|
| 149 |
+
Clustering Hash Functions Interestingly, using cluster based hashes (“Token clustering”, row 4) performs clearly worse than randomized hashes (23.90 vs. 23.22). We hypothesize that if the goal of conditional computation is to make fine distinctions, then those distinctions are more likely to appear between tokens within the same cluster, hence they should be in different hashes (parts of the compute graph), not the same one. We provide partial evidence for this by hashing within token clusters instead (“Dispersed Hash”, row 5), which restores the performance to be similar to random hashes (23.17 vs. 23.22). We note that learn-to-route methods such as Switch Transformers and BASE use simple functions of the hidden state to perform routing, which generally provide clustered expert modules [10], which could hence be a disadvantage for those methods.
|
| 150 |
+
|
| 151 |
+
Table 4: Comparison of Models on Wikitext-103. We compare a baseline dense Transformer to our sparse models, which have 1 sparse layer with 16 modules (1x16). We show results with two different dictionaries, the BB [34] BPE dictionary (8008 tokens) and the standard one for the task (267,739 tokens). As these are different dictionaries, perplexities are not comparable across columns.
|
| 152 |
+
|
| 153 |
+
<table><tr><td>Model</td><td>Configuration</td><td>Std. Dict Valid PPL</td><td>BB Dict Valid PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=8,d=512,D=512</td><td>33.09</td><td>12.58</td></tr><tr><td>Switch Transformer</td><td>layers=8,modules=1x16,load_bal=0.1</td><td>31.76</td><td>11.67</td></tr><tr><td>Hash Layer</td><td>layers=8,modules=1x16</td><td>32.32</td><td>11.58</td></tr></table>
|
| 154 |
+
|
| 155 |
+
Position-based Hash Function We conduct experiments hashing based on sequence position only. We consider this experiment as a sanity check, we did not expect choosing conditional compute based on position in the output sequence to help. Indeed, it turns out that this is no better than the dense Transformer baseline. Thus it appears that routing based on input content is much more important.
|
| 156 |
+
|
| 157 |
+
Bigram Hash Function Hashing based on the last two tokens (bigrams) performs worse than using only the last token (24.19 vs. 23.16). We hypothesize there are two reasons for this: (1) first, the last token is clearly the most pertinent, and bigrams add a less relevant feature; (2) this creates too many hashes, which performs less well. Subsequent experiments will help test these claims.
|
| 158 |
+
|
| 159 |
+
Previous Token Hashing Hashing based on the previous token is clearly worse than using the current token (24.16 vs. 23.16), and gives similar performance to using bigrams, helping confirm the first part of our above bigram hypothesis.
|
| 160 |
+
|
| 161 |
+
Dictionary size We perform experiments on Wikitext-103 in two settings: using the given dictionary of 267k tokens, or using the 8k dictionary we use in our pushshift.io Reddit experiments, following [34]. The results, comparing to Switch and a baseline Transformer, are given in Table 4. We find that Hash works well for the small dictionary, slightly outperforming Switch. However, on the larger dictionary, it performs worse than Switch. As this is the same data but just the tokenization has changed we conclude the hashing induced from the smaller dictionary is easier to learn from, helping confirm the second part of our above bigram hypothesis.
|
| 162 |
+
|
| 163 |
+
Oracle Future Token Hashing We evaluate hashing using the oracle next token that is to be predicted. This yields a perplexity of 1.9. Using oracle information just to choose between modules is sufficient to essentially solve a task.
|
| 164 |
+
|
| 165 |
+
Predicted Future Token Hashing The last result poses the question: if we can predict the next token, and hash based on that prediction instead – will it be better than hashing on the current token? We thus tried hashing using the Baseline Transformer to predict labels, yielding a perplexity of 25.02 – which does not actually beat the Baseline itself. It appears that the bias of the token predictions limits the ability of the sparse routing to improve.
|
| 166 |
+
|
| 167 |
+
Multi-hashing We evaluate the multi-hashing technique described in subsection 3.2. Results are given in Appendix A, comparing to Switch and standard hashing. Even though the same number of parameters is used in all cases, we see improvements for splitting the hash into 2, 4 or 8 different hashes compared to a single hash, with steadily improving results for both 16 or 32 modules.
|
| 168 |
+
|
| 169 |
+
# 5.3.3 Switch Transformer Analysis
|
| 170 |
+
|
| 171 |
+
Switch load balancing We show the performance of Switch for different values of the load balancing parameter on pushshift.io Reddit in Appendix A. Clearly the choice of parameter is important, with results varying over a 1 perplexity point range.
|
| 172 |
+
|
| 173 |
+
Switch with Token-based Routing Given our analysis of oracle and predicted token hashing in subsection 5.3.2, we hypothesize that the hidden representations in layers of the Transformer, being biased towards the predictions of the model, may be suboptimal for routing. We therefore experiment with a hybrid between Switch and Hash Layers: on the sparse layer, instead of using hidden state as the Switch router input, we use the current token instead. To convert the token to a vector we use an extra lookup table, i.e., an extra set of learnable parameters that is the size of the dictionary. These parameters are independent of the hidden state and are only used by the router to learn the best route. Results are given in Table 6. We find this brings some small improvements to Switch for 64 and 128 modules on a single layer, affirming the usefulness of token-based routing.
|
| 174 |
+
|
| 175 |
+
Table 5: Multi-hashing experiments on pushshift.io Reddit. When multi-hashing, the same number of parameters is used, but the FFN weights are split and indexed into multiple hashes and then concatenated together for the forward step.
|
| 176 |
+
|
| 177 |
+
<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x32,load_bal=0.1</td><td>483M</td><td>23.79</td><td>23.84</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x32</td><td>483M</td><td>23.58</td><td>23.65</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=2</td><td>483M</td><td>23.48</td><td>23.53</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=4</td><td>483M</td><td>23.38</td><td>23.45</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=8</td><td>483M</td><td>23.28</td><td>23.34</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 6: Switch Transformers with Token-Based Routing on pushshift.io Reddit. We compare standard Switch which routes based on the hidden state to token feature-routing (‘Token Switch’).
|
| 180 |
+
|
| 181 |
+
<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.65</td><td>23.73</td></tr><tr><td>Token Switch</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.43</td><td>23.43</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.52</td><td>23.58</td></tr><tr><td>Token Switch</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.26</td><td>23.32</td></tr></table>
|
| 182 |
+
|
| 183 |
+
# 5.3.4 Comparison to BASE Layers
|
| 184 |
+
|
| 185 |
+
We next compare to BASE Layers. Using the BASE Layer code base, we implement Hash Layers in exactly the same setup, changing only the routing method, and leaving everything else fixed. Figure 2 (right) shows results comparing Hash with BASE for 4.5B parameter models. Across the entire run, we see that Hash outperforms BASE at each training step. During early parts of training, Hash would presumably have an advantage in being able to specialize expert modules earlier, while BASE must learn membership for each of the expert modules. Later in training, BASE becomes mildly unstable presumably as expert assignments shift, while Hash performance continues to improve smoothly.
|
| 186 |
+
|
| 187 |
+
Additionally, to demonstrate Hash Layers remain performant when stacked, we trained a model with 3 Hash Layers (using random hashes), but fewer parameters per expert module so the total parameters remained constant at 4.5B (see subsection B.2). We find that using multiple Hash Layers gives a small but consistent improvement, suggesting Hash Layers will be effective at even more depth.
|
| 188 |
+
|
| 189 |
+
In addition to performance gains compared to BASE, we also find that Hash Layers are more efficient in total computation. In particular, BASE requires two all-to-all communications: the first de-correlates batches in order to make assignment balancing more stochastic, and the second routes states to their assigned expert. As Hash Layers use fixed, pre-computed assignments they avoid the decorrelation step. In practice, we find this gives an improvement of about $11 \%$ in updates-per-second. As the number of expert layers increases, this difference will become more exaggerated.
|
| 190 |
+
|
| 191 |
+
# 6 Conclusion
|
| 192 |
+
|
| 193 |
+
We have introduced a simple and efficient approach to sparse models in the Transformers-for-NLP setting based on hash layers. We showed on a variety of datasets and with analysis in various settings that this approach is highly competitive with existing methods such as Switch Transformers and BASE Layers, whilst being robust and far simpler – requiring no extra learning parameters, assignment algorithm or changes to the objective function. Given that researchers typically have only one opportunity to train very large models, this makes our approach a strong candidate for such runs. While our experiments scale up to 4.5B parameters, we do not reach the scales of large industrial works such as [8], and we hope to see future work conduct such experiments. Finally, given that our routing approach is learning free, our results perhaps suggest that none of the current approaches are routing particularly well. We thus believe learning-to-route should continue to be the study of future work, and consider our work a strong baseline for such research.
|
| 194 |
+
|
| 195 |
+
References
|
| 196 |
+
[1] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020.
|
| 197 |
+
[2] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991.
|
| 198 |
+
[3] Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. A neural probabilistic language model. The journal of machine learning research, 3:1137–1155, 2003.
|
| 199 |
+
[4] Seniha Esen Yuksel, Joseph N Wilson, and Paul D Gader. Twenty years of mixture of experts. IEEE transactions on neural networks and learning systems, 23(8):1177–1193, 2012.
|
| 200 |
+
[5] David Eigen, Marc’Aurelio Ranzato, and Ilya Sutskever. Learning factored representations in a deep mixture of experts. arXiv preprint arXiv:1312.4314, 2013.
|
| 201 |
+
[6] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017.
|
| 202 |
+
[7] Sam Gross, Marc’Aurelio Ranzato, and Arthur Szlam. Hard mixtures of experts for large scale weakly supervised vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6865–6873, 2017.
|
| 203 |
+
[8] William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. arXiv preprint arXiv:2101.03961, 2021.
|
| 204 |
+
[9] Ronan Collobert, Yoshua Bengio, and Samy Bengio. Scaling large learning problems with hard parallel mixtures. International Journal of pattern recognition and artificial intelligence, 17 (03):349–365, 2003.
|
| 205 |
+
[10] Mike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal, and Luke Zettlemoyer. Base layers: Simplifying training of large, sparse models. arXiv preprint arXiv:2103.16716, 2021.
|
| 206 |
+
[11] Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. Gshard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668, 2020.
|
| 207 |
+
[12] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
|
| 208 |
+
[13] Thomas H Cormen, Charles E Leiserson, Ronald L Rivest, and Clifford Stein. Introduction to algorithms. MIT press, 2009.
|
| 209 |
+
[14] Andrei Z Broder and Anna R Karlin. Multilevel adaptive hashing. In Proceedings of the first annual ACM-SIAM symposium on Discrete algorithms, pages 43–53, 1990.
|
| 210 |
+
[15] Guillaume Lample, Alexandre Sablayrolles, Marc’Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Large memory layers with product keys. In Advances in Neural Information Processing Systems, pages 8548–8559, 2019.
|
| 211 |
+
[16] Reinhard Kneser and Hermann Ney. Improved backing-off for m-gram language modeling. In 1995 international conference on acoustics, speech, and signal processing, volume 1, pages 181–184. IEEE, 1995.
|
| 212 |
+
[17] Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernock ˇ y, and Sanjeev Khudanpur. Recur- \` rent neural network based language model. In Eleventh annual conference of the international speech communication association, 2010.
|
| 213 |
+
[18] Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013.
|
| 214 |
+
|
| 215 |
+
[19] Graham Neubig and Chris Dyer. Generalizing and hybridizing count-based and neural language models. arXiv preprint arXiv:1606.00499, 2016.
|
| 216 |
+
|
| 217 |
+
[20] Sébastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary for neural machine translation. arXiv preprint arXiv:1412.2007, 2014.
|
| 218 |
+
|
| 219 |
+
[21] Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou, et al. Efficient softmax approximation for gpus. In International Conference on Machine Learning, pages 1302–1310. PMLR, 2017.
|
| 220 |
+
|
| 221 |
+
[22] Anton Bakhtin, Arthur Szlam, Marc’Aurelio Ranzato, and Edouard Grave. Lightweight adaptive mixture of neural and n-gram language models. arXiv preprint arXiv:1804.07705, 2018.
|
| 222 |
+
|
| 223 |
+
[23] Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In Proceedings of the 26th annual international conference on machine learning, pages 1113–1120, 2009.
|
| 224 |
+
|
| 225 |
+
[24] Bing Bai, Jason Weston, David Grangier, Ronan Collobert, Kunihiko Sadamasa, Yanjun Qi, Olivier Chapelle, and Kilian Weinberger. Learning to rank with (a lot of) word features. Information retrieval, 13(3):291–314, 2010.
|
| 226 |
+
|
| 227 |
+
[25] Wenlin Chen, James Wilson, Stephen Tyree, Kilian Weinberger, and Yixin Chen. Compressing neural networks with the hashing trick. In International conference on machine learning, pages 2285–2294. PMLR, 2015.
|
| 228 |
+
|
| 229 |
+
[26] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021.
|
| 230 |
+
|
| 231 |
+
[27] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020.
|
| 232 |
+
|
| 233 |
+
[28] Yinfei Yang, Steve Yuan, Daniel Cer, Sheng-yi Kong, Noah Constant, Petr Pilar, Heming Ge, Yun-Hsuan Sung, Brian Strope, and Ray Kurzweil. Learning semantic textual similarity from conversations. In Proceedings of The Third Workshop on Representation Learning for NLP, pages 164–174, Melbourne, Australia, July 2018. Association for Computational Linguistics.
|
| 234 |
+
|
| 235 |
+
[29] Pierre-Emmanuel Mazaré, Samuel Humeau, Martin Raison, and Antoine Bordes. Training millions of personalized dialogue agents. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2775–2779, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics.
|
| 236 |
+
|
| 237 |
+
[30] Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. CTRL: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019.
|
| 238 |
+
|
| 239 |
+
[31] Kurt Shuster, Da Ju, Stephen Roller, Emily Dinan, Y-Lan Boureau, and Jason Weston. The dialogue dodecathlon: Open-domain knowledge and image grounded conversational agents, 2019.
|
| 240 |
+
|
| 241 |
+
[32] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. Poly-encoders: Architectures and pre-training strategies for fast and accurate multi-sentence scoring. In Proceedings of the International Conference on Learning Representations, 2019.
|
| 242 |
+
|
| 243 |
+
[33] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. The pushshift reddit dataset. arXiv preprint arXiv:2001.08435, 2020.
|
| 244 |
+
|
| 245 |
+
[34] Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M Smith, et al. Recipes for building an open-domain chatbot. arXiv preprint arXiv:2004.13637, 2020.
|
| 246 |
+
|
| 247 |
+
[35] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 248 |
+
|
| 249 |
+
[36] Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116, 2019.
|
| 250 |
+
|
| 251 |
+
[37] Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016.
|
| 252 |
+
|
| 253 |
+
[38] Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. arXiv preprint arXiv:1904.01038, 2019.
|
parse/train/lMgDDWb1ULW/lMgDDWb1ULW_content_list.json
ADDED
|
@@ -0,0 +1,1270 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Hash Layers For Large Sparse Models ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
263,
|
| 8 |
+
122,
|
| 9 |
+
735,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Stephen Roller Sainbayar Sukhbaatar Arthur Szlam Jason Weston ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
238,
|
| 20 |
+
200,
|
| 21 |
+
758,
|
| 22 |
+
215
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Facebook AI Research ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
424,
|
| 31 |
+
228,
|
| 32 |
+
573,
|
| 33 |
+
242
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Abstract ",
|
| 40 |
+
"text_level": 1,
|
| 41 |
+
"bbox": [
|
| 42 |
+
462,
|
| 43 |
+
279,
|
| 44 |
+
535,
|
| 45 |
+
295
|
| 46 |
+
],
|
| 47 |
+
"page_idx": 0
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"type": "text",
|
| 51 |
+
"text": "We investigate the training of sparse layers that use different parameters for different inputs based on hashing in large Transformer models. Specifically, we modify the feedforward layer to hash to different sets of weights depending on the current token, over all tokens in the sequence. We show that this procedure either outperforms or is competitive with learning-to-route mixture-of-expert methods such as Switch Transformers and BASE Layers, while requiring no routing parameters or extra terms in the objective function such as a load balancing loss, and no sophisticated assignment algorithm. We study the performance of different hashing techniques, hash sizes and input features, and show that balanced and random hashes focused on the most local features work best, compared to either learning clusters or using longer-range context. We show our approach works well both on large language modeling and dialogue tasks, and on downstream fine-tuning tasks. ",
|
| 52 |
+
"bbox": [
|
| 53 |
+
233,
|
| 54 |
+
314,
|
| 55 |
+
766,
|
| 56 |
+
479
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "1 Introduction ",
|
| 63 |
+
"text_level": 1,
|
| 64 |
+
"bbox": [
|
| 65 |
+
176,
|
| 66 |
+
515,
|
| 67 |
+
310,
|
| 68 |
+
532
|
| 69 |
+
],
|
| 70 |
+
"page_idx": 0
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"type": "text",
|
| 74 |
+
"text": "Recent studies of Transformer models have shown a clear trend towards improvements with scale in data and model size [1], mirroring the same trend in Machine Learning more generally. However, when architected naively, larger (in terms of parameter count) models are slower to train and to evaluate; and at extreme scale, with current computer systems, necessitate complex engineering to facilitate communication between workers. To address these challenges, researchers have studied Mixtures-of-Experts (MoE) models [2, 3, 4, 5, 6, 7, 8], where a “gater” routes computation through a sparse subset of the weights of the model (the “expert modules”). Specifically in the setting of Transformers for Natural Language Processing (NLP), recent approaches have led to state of the art performance in language modeling [8]. MoE models allow increasing the number of parameters in the model while holding steady the number of computations that affect a given sample. ",
|
| 75 |
+
"bbox": [
|
| 76 |
+
174,
|
| 77 |
+
550,
|
| 78 |
+
825,
|
| 79 |
+
689
|
| 80 |
+
],
|
| 81 |
+
"page_idx": 0
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"type": "text",
|
| 85 |
+
"text": "A key component to a MoE model is the routing (gating) strategy. While MoE models can be computationally advantageous per parameter compared to a dense model, they might be functionally less powerful per parameter. A poor routing strategy might lead to expert modules that are not properly specialized (essentially making a stochastic ensemble model); or overly specialized, using the data assignment function to overfit. Meanwhile, the routing strategy itself must be efficient. ",
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
695,
|
| 89 |
+
825,
|
| 90 |
+
763
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "A standard approach is to train a layer of weights that makes the routing decision based upon the input to the layer to be routed. Classically, this may have been implemented with a softmax over the choice of expert modules, and fitted via backpropagation. However, a dense softmax requires all expert modules to run on all data points at train time, which negates the computational savings. Several works have shown that sparsity can be maintained during training, e.g. [9, 7, 8, 10]. In particular, Switch Transformers [8] select the top expert per token using a softmax over the token’s hidden state, but require a load balancing term in the objective function or they can become imbalanced or degenerate, giving poor results. BASE Layers [10] employ a linear assignment algorithm to try to resolve the same problem. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
771,
|
| 100 |
+
825,
|
| 101 |
+
895
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "image",
|
| 107 |
+
"img_path": "images/ff2e0ac739f989887c380d02586f285cef622333df54066fd01369ec580f27ee.jpg",
|
| 108 |
+
"image_caption": [
|
| 109 |
+
"Figure 1: Overview of the Hash Layer. Tokens are routed to fixed expert modules based on their hash. "
|
| 110 |
+
],
|
| 111 |
+
"image_footnote": [],
|
| 112 |
+
"bbox": [
|
| 113 |
+
259,
|
| 114 |
+
90,
|
| 115 |
+
740,
|
| 116 |
+
224
|
| 117 |
+
],
|
| 118 |
+
"page_idx": 1
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"type": "text",
|
| 122 |
+
"text": "In this work, we describe a simple, sparse, efficient routing strategy based on hashing input tokens that is effective in the Transformers-for-NLP setting. We show this approach is effective on a number of datasets, comparing favorably to both Switch Transformers and BASE Layers. As the routing strategy requires no extra parameters, no change to the objective function or assignment algorithm, its simplicity means it is robust, fast and easy to implement. We provide detailed analysis to explain why our method works, and in which conditions. Given that when training very large models one may typically have only one shot given the required compute budget, and experimenters will be unable to try many parameter choices, we hence advocate our approach as a strong candidate for such a setting. ",
|
| 123 |
+
"bbox": [
|
| 124 |
+
174,
|
| 125 |
+
282,
|
| 126 |
+
825,
|
| 127 |
+
395
|
| 128 |
+
],
|
| 129 |
+
"page_idx": 1
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"type": "text",
|
| 133 |
+
"text": "2 Background ",
|
| 134 |
+
"text_level": 1,
|
| 135 |
+
"bbox": [
|
| 136 |
+
174,
|
| 137 |
+
412,
|
| 138 |
+
308,
|
| 139 |
+
430
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "Let us first introduce the Mixture-of-Experts setting where we apply our hash-based routing strategy. We use the same setting as [11, 8, 10] where a feedforward network (FFN) in a Transformer is replaced by its MoE version. Given a tokenized input sequence $\\{ x _ { 1 } , x _ { 2 } , \\dots , x _ { T } \\}$ of $T$ tokens, a representation for each token is computed in parallel by a standard Transformer [12] ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
173,
|
| 148 |
+
444,
|
| 149 |
+
825,
|
| 150 |
+
501
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "equation",
|
| 156 |
+
"img_path": "images/f119da0704e1fba4ccc12883757ee32ccc3c3b3379de43a9243fc505059b54f6.jpg",
|
| 157 |
+
"text": "$$\n\\mathbf { h } _ { 1 } ^ { L } , \\mathbf { h } _ { 2 } ^ { L } , \\ldots , \\mathbf { h } _ { T } ^ { L } = \\mathrm { T R A N S F O R M E R } ( x _ { 1 } , x _ { 2 } , \\ldots , x _ { T } ) .\n$$",
|
| 158 |
+
"text_format": "latex",
|
| 159 |
+
"bbox": [
|
| 160 |
+
323,
|
| 161 |
+
506,
|
| 162 |
+
674,
|
| 163 |
+
525
|
| 164 |
+
],
|
| 165 |
+
"page_idx": 1
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"type": "text",
|
| 169 |
+
"text": "The Transformer consists of $L$ layers that computes final hidden states for each token, and each layer is composed of self-attention and FFN sublayers, where FFNs are two-layer fully connected networks ",
|
| 170 |
+
"bbox": [
|
| 171 |
+
173,
|
| 172 |
+
531,
|
| 173 |
+
821,
|
| 174 |
+
559
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 1
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "equation",
|
| 180 |
+
"img_path": "images/4280057934e902022650b0c2b21c2fcb7cb5502e86493f6c05309c94b9b1f030.jpg",
|
| 181 |
+
"text": "$$\n\\bar { \\mathbf { h } } _ { t } ^ { l } = \\mathrm { S e l f A t t n } ( \\mathbf { h } _ { t } ^ { l - 1 } ) \\qquad \\mathbf { h } _ { t } ^ { l } = \\mathrm { F F N } ( \\bar { \\mathbf { h } } _ { t } ^ { l } ) .\n$$",
|
| 182 |
+
"text_format": "latex",
|
| 183 |
+
"bbox": [
|
| 184 |
+
361,
|
| 185 |
+
565,
|
| 186 |
+
635,
|
| 187 |
+
584
|
| 188 |
+
],
|
| 189 |
+
"page_idx": 1
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"type": "text",
|
| 193 |
+
"text": "Here we omit skip-connections and normalization for brevity. We can then replace one or more of the FFN sublayers with expert modules. Replacing the FNN at layer $l$ with $K$ expert FFNs, their output is then mixed with some gating function $g ( \\cdot )$ : ",
|
| 194 |
+
"bbox": [
|
| 195 |
+
174,
|
| 196 |
+
590,
|
| 197 |
+
826,
|
| 198 |
+
633
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 1
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "equation",
|
| 204 |
+
"img_path": "images/ea2f5b6cdf647772e57df243828c8ee710371973936bd98702a5aa5d86d15180.jpg",
|
| 205 |
+
"text": "$$\n\\mathbf h _ { t } ^ { l } = \\mathrm { F F N } ( \\bar { \\mathbf h } _ { t } ^ { l } ) \\quad \\to \\quad \\mathbf h _ { t } ^ { l } = \\sum _ { i = 1 } ^ { K } g _ { i } ( \\bar { \\mathbf h } _ { t } ^ { l } ) \\mathrm { F F N } _ { i } ( \\bar { \\mathbf h } _ { t } ^ { l } ) , \\quad t = 1 , \\dots , T ,\n$$",
|
| 206 |
+
"text_format": "latex",
|
| 207 |
+
"bbox": [
|
| 208 |
+
274,
|
| 209 |
+
638,
|
| 210 |
+
718,
|
| 211 |
+
683
|
| 212 |
+
],
|
| 213 |
+
"page_idx": 1
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"type": "text",
|
| 217 |
+
"text": "where importantly each token is routed to a different mixture of experts, as the gating function depends on the token’s specific hidden state $\\bar { \\mathbf { h } } _ { t } ^ { l }$ . ",
|
| 218 |
+
"bbox": [
|
| 219 |
+
174,
|
| 220 |
+
688,
|
| 221 |
+
823,
|
| 222 |
+
717
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 1
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "Sparse MoE methods assume gating values $g _ { i }$ are often zero, so only a few experts need to be computed for better efficiency. As expert FFNs do not share parameters, the number of parameters increases with $K$ while the amount of computations per input token stays the same if the MoE FFN only routes to a single expert, and computation of $g _ { i }$ is cheap. While this allows training of large capacity models with small compute budget, optimizing $g _ { i }$ in the sparse setting can be tricky. ",
|
| 229 |
+
"bbox": [
|
| 230 |
+
174,
|
| 231 |
+
722,
|
| 232 |
+
825,
|
| 233 |
+
792
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 1
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "text",
|
| 239 |
+
"text": "3 Method ",
|
| 240 |
+
"text_level": 1,
|
| 241 |
+
"bbox": [
|
| 242 |
+
174,
|
| 243 |
+
810,
|
| 244 |
+
271,
|
| 245 |
+
827
|
| 246 |
+
],
|
| 247 |
+
"page_idx": 1
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"type": "text",
|
| 251 |
+
"text": "In this paper we propose a simple gating mechanism that is especially efficient because only one expert is active, and it has no routing network parameters to be learnt. Recent work [11, 8, 10] has to learn parameters that determine the routing to expert modules based on hidden states, which have to be optimized in tandem with the expert weights themselves. This can potentially cause difficulty because during training membership for each expert is changing while it is trying to learn the mapping for those members. We instead advocate for a fixed mapping to experts. Namely, by hashing the tokens into a fixed number of buckets, each bucket corresponding to an expert: ",
|
| 252 |
+
"bbox": [
|
| 253 |
+
174,
|
| 254 |
+
842,
|
| 255 |
+
825,
|
| 256 |
+
911
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 1
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "",
|
| 263 |
+
"bbox": [
|
| 264 |
+
171,
|
| 265 |
+
90,
|
| 266 |
+
823,
|
| 267 |
+
119
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 2
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "equation",
|
| 273 |
+
"img_path": "images/cfe98bfcd0bfc15878217a14dc8c8690b111a0a42206bc31be1edf515dbee074.jpg",
|
| 274 |
+
"text": "$$\n\\mathbf { h } _ { t } ^ { l } = \\mathrm { F F N } _ { \\mathrm { h a s h } ( x _ { t } ) } ( \\bar { \\mathbf { h } } _ { t } ^ { l } ) , \\quad t = 1 , \\ldots , T .\n$$",
|
| 275 |
+
"text_format": "latex",
|
| 276 |
+
"bbox": [
|
| 277 |
+
366,
|
| 278 |
+
127,
|
| 279 |
+
632,
|
| 280 |
+
150
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 2
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "While the FFN still takes the hidden state $\\bar { \\mathbf { h } } _ { t } ^ { l }$ as input, our routing function uses the original input token $x _ { t }$ rather than the hidden state, see Figure 1 for a graphical depiction. We are free to choose from various possible hash functions, which we will consider below. However, for training purposes, the hash function is fixed in advance, and in this way, our routing mechanism requires no training and has no adjustable parameters. ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
159,
|
| 290 |
+
825,
|
| 291 |
+
229
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 2
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "3.1 Hash Functions ",
|
| 298 |
+
"text_level": 1,
|
| 299 |
+
"bbox": [
|
| 300 |
+
174,
|
| 301 |
+
247,
|
| 302 |
+
323,
|
| 303 |
+
262
|
| 304 |
+
],
|
| 305 |
+
"page_idx": 2
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"type": "text",
|
| 309 |
+
"text": "Hash functions have long been employed throughout Computer Science [13], and can take a variety of forms. In our work, we generally employ pre-computed hash functions, which use a lookup table during learning – precomputed in advance – to map tokens to expert modules. ",
|
| 310 |
+
"bbox": [
|
| 311 |
+
174,
|
| 312 |
+
272,
|
| 313 |
+
825,
|
| 314 |
+
315
|
| 315 |
+
],
|
| 316 |
+
"page_idx": 2
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"type": "text",
|
| 320 |
+
"text": "We consider several kinds of hash functions as possible choices for routing tokens to expert modules. The simplest is Random Hash, wherein we assign every token to a fixed, random expert at initialization. Due to the Zipfian distribution of token frequency, this naturally produces imbalance across the different expert modules. As balancing has been previously shown to be important for training MoE models [8, 10], we also consider Balanced assignment. In this method, we build the lookup table before training the model using the training data distribution by greedily assigning the most frequent tokens to the emptiest buckets. The resulting assignment structure is significantly more balanced than Random Hashing, but not perfect, as the frequency of some tokens exceeds the ideal distribution. ",
|
| 321 |
+
"bbox": [
|
| 322 |
+
173,
|
| 323 |
+
321,
|
| 324 |
+
825,
|
| 325 |
+
433
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 2
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "Random and Balanced hashing exploit the inductive bias of auto-regressive models and hash on the input token, but we also consider other possibilities: Bigram Hash uses the current and previous token $( x _ { t - 1 } , x _ { t } )$ rather than only the current token, while Previous Token Hash uses the previous token $x _ { t - 1 }$ , ignoring the current input. We also consider a sanity check which hashes based on the Position in the sequence, which we expect to have little impact, as absolute positions carry little information in natural language. Each of these hash functions is used to assess the value of the information being routed-on in our subsequent experimental analysis. ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
173,
|
| 334 |
+
438,
|
| 335 |
+
825,
|
| 336 |
+
536
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 2
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "text",
|
| 342 |
+
"text": "As an upper baseline, we also evaluate using an Oracle Future Hash, which hashes based on the output token $x _ { t + 1 }$ , rather than input token. This Oracle Hash checks how powerful routing decisions can be in solving a task. Similarly, we also consider Predicted Future Token Hash, which utilizes a baseline Transformer to make a prediction of the output token, and then hashes over this prediction. ",
|
| 343 |
+
"bbox": [
|
| 344 |
+
173,
|
| 345 |
+
542,
|
| 346 |
+
825,
|
| 347 |
+
598
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "Clustered Hashes Based on the intuition that similar tokens may want to be routed to the same expert, we also experiment with Clustered Hashes. We obtain clusters by performing k-means clustering with a fixed number of clusters using token embeddings from a baseline Transformer model. Each expert is assigned a centroid, and tokens are assigned to their closest cluster. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
614,
|
| 357 |
+
825,
|
| 358 |
+
670
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "Dispersed Hashes We also consider the opposite hypothesis: that similar-tokens should be placed in different buckets, where the assumption is that very similar tokens need fine distinctions which requires more model capacity (hence assigning to different experts). To do this, we use the same $\\mathbf { k }$ -means clusters as before, but distribute all tokens within each cluster equally across all buckets. ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
686,
|
| 368 |
+
825,
|
| 369 |
+
742
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "3.2 MultiHash Layers ",
|
| 376 |
+
"text_level": 1,
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
761,
|
| 380 |
+
339,
|
| 381 |
+
776
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 2
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "In the standard FFN MoE approach, all $K$ expert modules have independent parameters, but here we consider another option. It is known in the hashing literature that multiple hashes can provide better allocations in many contexts [14]. We consider such schemes in the context of sparse routing. Let us assume we are given $N$ different hashing functions, and for a given input token $x$ we compute these hashes, denoted as $k _ { m } = { \\mathrm { h a s h } _ { m } } ( x )$ , $m = 1 , \\ldots , N$ . Assuming the usual expert FFN is a function $B ( \\mathrm { r e l u } ( A ( { \\bf h } ) ) )$ where $A : \\mathbb { R } ^ { d } \\mathbb { R } ^ { D }$ and $B : \\mathbb { R } ^ { D } \\mathbb { R } ^ { d }$ , we split the linear layers into $N$ segments, $A _ { m } : \\mathbb { R } ^ { d } \\mathbb { R } ^ { D / N }$ and $B _ { m } : \\mathbb { R } ^ { D } \\mathbb { R } ^ { d / N }$ . Then we compute: ",
|
| 388 |
+
"bbox": [
|
| 389 |
+
173,
|
| 390 |
+
786,
|
| 391 |
+
826,
|
| 392 |
+
888
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "equation",
|
| 398 |
+
"img_path": "images/15d3fe78a5c6a5ff67eec19e6531d67c90caaee6684124b657dc78c3fab5316f.jpg",
|
| 399 |
+
"text": "$$\n\\mathbf { v } = \\mathrm { r e l u } ( [ A _ { k _ { 1 } } ( \\mathbf { h } ) , \\dots , A _ { k _ { N } } ( \\mathbf { h } ) ] ) \\qquad \\mathrm { F F N } _ { \\mathrm { M H } } ( \\mathbf { h } ) = [ B _ { k _ { 1 } } ( \\mathbf { v } ) , \\dots , B _ { k _ { N } } ( \\mathbf { v } ) ] .\n$$",
|
| 400 |
+
"text_format": "latex",
|
| 401 |
+
"bbox": [
|
| 402 |
+
245,
|
| 403 |
+
895,
|
| 404 |
+
751,
|
| 405 |
+
912
|
| 406 |
+
],
|
| 407 |
+
"page_idx": 2
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"type": "text",
|
| 411 |
+
"text": "That is, use hashing to select the parameters we are going to use for each segment, and then concatenate them together. The advantage is that we are now no longer reliant on the quality of a single hash function, but have multiple chances to produce good quality partitions. This perhaps can also be seen as analogous to the multi-head attention process already used in Transformers. ",
|
| 412 |
+
"bbox": [
|
| 413 |
+
174,
|
| 414 |
+
92,
|
| 415 |
+
825,
|
| 416 |
+
147
|
| 417 |
+
],
|
| 418 |
+
"page_idx": 3
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"type": "text",
|
| 422 |
+
"text": "4 Related Work ",
|
| 423 |
+
"text_level": 1,
|
| 424 |
+
"bbox": [
|
| 425 |
+
174,
|
| 426 |
+
165,
|
| 427 |
+
321,
|
| 428 |
+
183
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "Sparse MoE models, where only a few expert modules are active for any input, in particular in the context of NLP, have been studied recently in [6, 11]. In these works, the gating is learned via backpropagation, perhaps with a regularizer to encourage load balancing across experts. [8] showed that models in [11] can be successfully trained with each input assigned to exactly one expert. Another such approach for Transformers, where the routing is learned via solving a linear assignment problem, is studied in [10]. [15] uses a different approach, where product keys enable nearest neighbor search to select parameters. More generally, using MoE to trade off compute time (at the cost of possible data fragmentation) has a long history, see e.g. [3, 7]. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
174,
|
| 437 |
+
196,
|
| 438 |
+
825,
|
| 439 |
+
309
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 3
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "The approach in this work is different from all of these in that the assignments use no learning whatsoever, and instead make use of the inductive biases possible in the setting of natural language. In particular, we use the fact that $n$ -grams are themselves decent language models [16]. Thus this work is related to previous work attempting to combine neural and $n$ -gram language models [17, 18, 19, 20, 21, 22]. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
314,
|
| 449 |
+
825,
|
| 450 |
+
383
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "Our work is also related to feature hashing in linear models and kernel methods [23, 24], where word or n-gram features are hashed to provide a new lower dimensional feature space. [23] showed that when performing such feature hashing the interaction between random subspaces is negligible with high probability. [25] uses hashing to compress neural networks, rather than increase their parameters as we do here. Work on long-context Transformers has recently used hashing techniques to speed up access to long-range token history via sparse self-attention patterns, particularly in Routing Transformers [26] and the Reformer [27]. In contrast, our work uses hashing to access a large set of parameters via sparse routing, rather than sparse access to input features. ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
174,
|
| 459 |
+
390,
|
| 460 |
+
825,
|
| 461 |
+
501
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "5 Experiments ",
|
| 468 |
+
"text_level": 1,
|
| 469 |
+
"bbox": [
|
| 470 |
+
174,
|
| 471 |
+
520,
|
| 472 |
+
312,
|
| 473 |
+
537
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 3
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "5.1 Tasks ",
|
| 480 |
+
"text_level": 1,
|
| 481 |
+
"bbox": [
|
| 482 |
+
174,
|
| 483 |
+
550,
|
| 484 |
+
253,
|
| 485 |
+
565
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "Pushshift.io Reddit We use a variant of Reddit discussions, which has also been used in several existing studies, see e.g. [28, 29, 30, 31]. Following [32], we use a previously existing Reddit dataset extracted and obtained by a third party and made available on pushshift.io [33], training to generate a comment conditioned on the full thread leading up to the comment, spanning 1.5B training examples. We use the same BPE dictionary as [34], comprising of 8008 tokens. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
575,
|
| 495 |
+
825,
|
| 496 |
+
646
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "RoBERTa+cc100en Data We use the same data used to train BASE [10], which consists of approximately 100B tokens, combining corpora used in RoBERTa [35] with the English subset of the CC100 corpus [36]. The GPT2 dictionary, of size 51200, is used for tokenization. For our seq2seq experiments, we arrange this data splitting by sentence to predict the next turn. We consider it as the originally intended language modeling task in our experiments comparing with BASE [10]. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
656,
|
| 506 |
+
825,
|
| 507 |
+
727
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 3
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "Wikitext-103 Wikitext-103 is a smaller language modeling benchmark [37] consisting of a collection of Wikipedia articles of over 100 million tokens, and a fixed vocabulary size of 270K tokens is provided. We view this as a seq2seq task in our experiments, again splitting by sentence. ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
174,
|
| 516 |
+
737,
|
| 517 |
+
825,
|
| 518 |
+
780
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 3
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Downstream BST tasks Finally, we use the Blended Skill Talk (BST) dialogue tasks used in [34] after pushshift.io Reddit pre-training to evaluate fine-tuning performance of dense vs. sparse models. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
171,
|
| 527 |
+
790,
|
| 528 |
+
825,
|
| 529 |
+
819
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "5.2 Experimental Setup ",
|
| 536 |
+
"text_level": 1,
|
| 537 |
+
"bbox": [
|
| 538 |
+
174,
|
| 539 |
+
834,
|
| 540 |
+
351,
|
| 541 |
+
849
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "Seq2Seq Setup The majority of our experiments are carried out in ParlAI1 platform using an encoder-decoder Transformer framework. We first train several standard (dense) Transformers, with ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
859,
|
| 551 |
+
823,
|
| 552 |
+
888
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 3
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "table",
|
| 558 |
+
"img_path": "images/51ccfffda1227951052731fae1b053f304a0df67380dae64b46ea1b7ca842984.jpg",
|
| 559 |
+
"table_caption": [
|
| 560 |
+
"Table 1: Comparison of Models on pushshift.io Reddit. We show three sizes of dense Transformer compared to Switch Transformers and using Hash Layers with various numbers of modules and sparse layers, e.g. $5 \\mathrm { x } 1 6$ means 5 sparse layers with 16 modules each. All Switch and Hash Layer modules are built to the same computational complexity as the 11 layer baseline Transformer, but have more parameters; the larger dense models have similar total parameters, but use more compute. "
|
| 561 |
+
],
|
| 562 |
+
"table_footnote": [],
|
| 563 |
+
"table_body": "<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=11,d=1024,D=4096</td><td>222M</td><td>24.90</td><td>24.96</td></tr><tr><td>Wider Transformer (more compute)</td><td>layers=11,d=2048,D=6144</td><td>755M</td><td>23.32</td><td>23.38</td></tr><tr><td>Deeper Transformer (more compute)</td><td>layers=22,d=1536,D=4096</td><td>755M</td><td>22.72</td><td>22.78</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.65</td><td>23.73</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x64</td><td>751M</td><td>23.16</td><td>23.23</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.52</td><td>23.58</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x128</td><td>1.28B</td><td>22.89</td><td>22.95</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=5x16,load_bal=0.01</td><td>852M</td><td>23.19</td><td>23.25</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=5x16,load_bal=0.1</td><td>852M</td><td>23.00</td><td>22.93</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=5x16</td><td>852M</td><td>23.21</td><td>23.27</td></tr></table>",
|
| 564 |
+
"bbox": [
|
| 565 |
+
176,
|
| 566 |
+
165,
|
| 567 |
+
826,
|
| 568 |
+
321
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 4
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "table",
|
| 574 |
+
"img_path": "images/737e284eca309f74133b928e170e11b5f87f5ee97407038ed3e4b919c7158402.jpg",
|
| 575 |
+
"table_caption": [
|
| 576 |
+
"Table 2: Comparison of Models on RoBERTa $^ +$ cc100en Data. We compare a dense transformer with the same parameters as our sparse models, except with 1 sparse layer with 64 modules (1x64). "
|
| 577 |
+
],
|
| 578 |
+
"table_footnote": [],
|
| 579 |
+
"table_body": "<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=11,d=1024,D=4096</td><td>266M</td><td>28.85</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>795M</td><td>27.41</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x64</td><td>794M</td><td>26.99</td></tr></table>",
|
| 580 |
+
"bbox": [
|
| 581 |
+
241,
|
| 582 |
+
371,
|
| 583 |
+
754,
|
| 584 |
+
433
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "2 encoder layers and either 11 or 22 decoder layers, following the structure in [34] for training on pushshift.io Reddit. We refer to the one with 11 layers and embedding size of $d = 1 0 2 4$ and FFN hidden layer size of $D = 4 0 9 6$ as our Baseline Transformer. We also train a \"Wider\" model with $D = 6 1 4 4$ , and a \"Deeper\" model with 22 decoder layers, and $D = 4 0 9 6$ . The Baseline model has 222M parameters, and the \"Wider\" and \"Deeper\" are selected to both have ${ 7 5 5 } \\mathbf { M }$ parameters each. These models are compared to the Hash Layer methods detailed in section 3 and to Switch Transformers of the same sizes and settings. The load balancing for Switch is optimized on the validation set. For both Hash and Switch we use the \"Baseline\" Transformer size detailed above as the architecture that we add sparse routing layers to by replacing one or more of the original dense layers. All experiments are run for 100k updates; a table of hyperparameters is provided in subsection B.1. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
173,
|
| 593 |
+
459,
|
| 594 |
+
825,
|
| 595 |
+
598
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "text",
|
| 601 |
+
"text": "BASE Comparison While most of our analysis takes place in the setup described above with models up to 1.28B parameters, to test our methods at scale on larger sparse models, we adopt the BASE Layer setup [10] and code base2 instead where we compare 4.5B parameter Hash and BASE Layer models. This setting uses pure language models rather than the Seq2Seq setup above. We use the architecture, data (RoBERTa+cc100en), and hyperparameters directly from [10], using either a single sparse routing layer consisting of 3 stacked FFNs $D = 8 1 9 2$ ) on the middle layer of a 25 layer network, or 3 routing layers evenly spaced in the network. In order to compare with BASE directly, we keep all hyperparameters fixed and only change the routing method; we use a balanced assignment Hash Layer in this case. We trained until 40k steps had been reached. A table of hyperparameters is provided in subsection B.2. ",
|
| 602 |
+
"bbox": [
|
| 603 |
+
173,
|
| 604 |
+
611,
|
| 605 |
+
825,
|
| 606 |
+
750
|
| 607 |
+
],
|
| 608 |
+
"page_idx": 4
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"type": "text",
|
| 612 |
+
"text": "5.3 Results and Analysis ",
|
| 613 |
+
"text_level": 1,
|
| 614 |
+
"bbox": [
|
| 615 |
+
174,
|
| 616 |
+
767,
|
| 617 |
+
356,
|
| 618 |
+
782
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "text",
|
| 624 |
+
"text": "5.3.1 Comparison between Hash, Switch and Dense models ",
|
| 625 |
+
"text_level": 1,
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
792,
|
| 629 |
+
596,
|
| 630 |
+
808
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "Hash vs. Switch routing on a single layer We first compare a Hash layer (with balanced hash) to a Switch layer, on an otherwise dense Transformer, where sparse routing is performed on layer 7 of the decoder. Both methods use 64 expert FFNs with 751M total parameters. Results on pushshift.io Reddit are given in Table 1 (rows 4 and 5) and on the RoBERTa+cc100en data in Table 2 (rows 2 and 3). We find Hash Layers outperforming Switch on both datasets by about 0.4-0.5 perplexity. ",
|
| 637 |
+
"bbox": [
|
| 638 |
+
174,
|
| 639 |
+
818,
|
| 640 |
+
825,
|
| 641 |
+
888
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "image",
|
| 647 |
+
"img_path": "images/38e3adf8c3e5c944343b8a66221296c62f3dd6aaa50568bd72a04b8f80797965.jpg",
|
| 648 |
+
"image_caption": [
|
| 649 |
+
"Figure 2: Comparison of Hash Layers with other models. (left) Validation perplexity of a baseline Transformer, Switch Transformer, and Hash Layer on the pushshift.io Reddit dataset with 128 modules. (right) Validation perplexity of BASE, Hash Layer, and a deeper Hash Layer model on the RoBERTa+cc100en dataset. All sparse models have the same number of parameters. "
|
| 650 |
+
],
|
| 651 |
+
"image_footnote": [],
|
| 652 |
+
"bbox": [
|
| 653 |
+
207,
|
| 654 |
+
92,
|
| 655 |
+
789,
|
| 656 |
+
222
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 5
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "image",
|
| 662 |
+
"img_path": "images/e9821b650a8cee3619053871c71f76b3a3a1e1fdd770c0d62211166988012056.jpg",
|
| 663 |
+
"image_caption": [
|
| 664 |
+
"Figure 3: Comparing Different Number of Expert Modules and Layer Position. We compare (left) the validation perplexity wrt. the number of expert modules on the pushshift.io Reddit task for a Hash or Switch Layer on layer 7 of an 11 layer decoder in a Transformer. The baseline Transformer obtains a perplexity of 24.9. We compare the performance when adjusting the layer position of a 64 module Hash Layer on the same task (right). Placing on later layers works best. "
|
| 665 |
+
],
|
| 666 |
+
"image_footnote": [],
|
| 667 |
+
"bbox": [
|
| 668 |
+
189,
|
| 669 |
+
310,
|
| 670 |
+
810,
|
| 671 |
+
424
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 5
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Dense vs. Sparse Models Both Hash and Switch sparse models outperform the dense Baseline (222M parameters) they are based on, as well as the Wider Transformer (755M parameters). However, the Deeper Transformer (755M parameters) outperforms the sparse models which have a similar number of parameters. However, we note that due to its dense rather than conditional compute it is slower in inference speed. We see this as a general trend: good dense models can get more power out of the same number of parameters than sparse models. However, sparse models, although more wasteful in memory, give better perplexity for the same speed (i.e, we should compare to the Baseline Transformer in this case, which has roughly the same amount of computation). ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
173,
|
| 680 |
+
536,
|
| 681 |
+
825,
|
| 682 |
+
648
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 5
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Hash layer module size We conduct the same pushshift.io Reddit experiments as above, but altering the number of expert modules in both Hash and Switch. Increasing from 64 to 128 modules (1.28B parameters total) sees an even larger improvement of Hash over Switch (about 0.6 perplexity), see Table 1 (rows 6 and 7), and Figure 2 (left). Trying smaller numbers of modules, 16 and 32, and plotting all the results in Figure 3 (left) we see that for small numbers of modules Hash and Switch perform similarly, but the gap grows larger as the number of modules increases. For small numbers of modules, we hypothesize that learning to route, as Switch does, would be more important to be performant with those choices, but with larger numbers of modules many routing choices could work. Hence, Hash layers can work well in that setting, and learning to route becomes less important. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
173,
|
| 691 |
+
661,
|
| 692 |
+
825,
|
| 693 |
+
786
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 5
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "Hash layer position We also experiment to find the best position layer-wise for the sparse routing to take place. In Figure 3 (right) we plot perplexity for the 64 module Hash Layer, placing on different layers of the decoder. We find that later layers perform better, but even the worst performing choice (layer 1) is still performing well compared to other baselines: as good as Switch Transformers using later layers in fact. We note that analysis of BASE Layers [10] showed a similar trend that later layers work well. Hypothesizing that conditional compute gives the ability to make fine-grained specializations, it follows that it is worth making those distinctions after more obvious features have first been extracted. We will return to this argument in later experiments. ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
173,
|
| 702 |
+
801,
|
| 703 |
+
825,
|
| 704 |
+
912
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 5
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "image",
|
| 710 |
+
"img_path": "images/f711c252dacc82166509d939efebb2d7892082b0388b8acfd9f97b522bb19c2a.jpg",
|
| 711 |
+
"image_caption": [
|
| 712 |
+
"Figure 4: Relative frequency for 64 expert modules with Random Hash (left) and Balanced Hash (right). The Zipfian distribution makes perfect balance impossible, but Balanced Hash is closer. "
|
| 713 |
+
],
|
| 714 |
+
"image_footnote": [],
|
| 715 |
+
"bbox": [
|
| 716 |
+
209,
|
| 717 |
+
109,
|
| 718 |
+
789,
|
| 719 |
+
395
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "Multi-layer routing We evaluate placing sparse routing every other layer, 16 different modules each in Table 1 (rows 8-10). Switch and Hash perform similarly in this setting, with Switch outperforming with the optimal choice of 0.1 load balancing (23.00 vs. 23.21), and the same performance (23.19) for balancing parameter 0.01. Given the results of Figure 3 (left), the small number of modules in this case may make performance close. ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
465,
|
| 729 |
+
825,
|
| 730 |
+
535
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "Downstream fine-tuning We compare several of the pushshift.io Reddit models for the goal of fine-tuning on downstream tasks. We experiment with either fine-tuning the whole model, or freezing some parts of the model during fine-tuning, as well as altering the load balancing for Switch at fine-tune time. Results are given in Appendix A. We find that the fine-tune results generally agree with the original performance on the pre-training pushshift.io Reddit task, and the order of methods is retained. Hash outperforms Switch slightly, both outperform the Baseline model, and the larger dense models perform better, as expected. Freezing parts of the model generally hurts fine-tuning, unless the part frozen is the sparse part of the model. It appears in that case just fine-tuning the dense parts of the model is sufficient for good performance. Only tuning the sparse part of the model, on the other hand, hurts performance, perhaps because the majority of the capacity of the model lies there. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
174,
|
| 739 |
+
547,
|
| 740 |
+
825,
|
| 741 |
+
686
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 6
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "5.3.2 Hash Function Analysis ",
|
| 748 |
+
"text_level": 1,
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
702,
|
| 752 |
+
392,
|
| 753 |
+
717
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 6
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "We evaluate the different choices of hashing function detailed in subsection 3.1. The overall results are given in Table 3 on the pushshift.io Reddit dataset using a 64 module Hash Layer. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
173,
|
| 762 |
+
727,
|
| 763 |
+
823,
|
| 764 |
+
755
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 6
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Random and Balanced Hash Functions We find that fixed random assignment (row 3) and balanced assignment (row 2) perform similarly well in terms of perplexity (23.22 vs. 23.16 valid perplexity). However, balanced assignment, as its name suggests, is more balanced, see Figure 4, which may render it more efficient in terms of distributed training schemes. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
762,
|
| 774 |
+
825,
|
| 775 |
+
819
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 6
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Clustering Hash Functions Interestingly, using cluster based hashes (“Token clustering”, row 4) performs clearly worse than randomized hashes (23.90 vs. 23.22). We hypothesize that if the goal of conditional computation is to make fine distinctions, then those distinctions are more likely to appear between tokens within the same cluster, hence they should be in different hashes (parts of the compute graph), not the same one. We provide partial evidence for this by hashing within token clusters instead (“Dispersed Hash”, row 5), which restores the performance to be similar to random hashes (23.17 vs. 23.22). We note that learn-to-route methods such as Switch Transformers and BASE use simple functions of the hidden state to perform routing, which generally provide clustered expert modules [10], which could hence be a disadvantage for those methods. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
828,
|
| 785 |
+
823,
|
| 786 |
+
911
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 6
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "table",
|
| 792 |
+
"img_path": "images/a1885d12a41d26cbdca0641f965a3c0c62f37adb94d4952140eec7183a7a8ec7.jpg",
|
| 793 |
+
"table_caption": [
|
| 794 |
+
"Table 4: Comparison of Models on Wikitext-103. We compare a baseline dense Transformer to our sparse models, which have 1 sparse layer with 16 modules (1x16). We show results with two different dictionaries, the BB [34] BPE dictionary (8008 tokens) and the standard one for the task (267,739 tokens). As these are different dictionaries, perplexities are not comparable across columns. "
|
| 795 |
+
],
|
| 796 |
+
"table_footnote": [],
|
| 797 |
+
"table_body": "<table><tr><td>Model</td><td>Configuration</td><td>Std. Dict Valid PPL</td><td>BB Dict Valid PPL</td></tr><tr><td>Baseline Transformer</td><td>layers=8,d=512,D=512</td><td>33.09</td><td>12.58</td></tr><tr><td>Switch Transformer</td><td>layers=8,modules=1x16,load_bal=0.1</td><td>31.76</td><td>11.67</td></tr><tr><td>Hash Layer</td><td>layers=8,modules=1x16</td><td>32.32</td><td>11.58</td></tr></table>",
|
| 798 |
+
"bbox": [
|
| 799 |
+
218,
|
| 800 |
+
151,
|
| 801 |
+
779,
|
| 802 |
+
232
|
| 803 |
+
],
|
| 804 |
+
"page_idx": 7
|
| 805 |
+
},
|
| 806 |
+
{
|
| 807 |
+
"type": "text",
|
| 808 |
+
"text": "",
|
| 809 |
+
"bbox": [
|
| 810 |
+
176,
|
| 811 |
+
257,
|
| 812 |
+
825,
|
| 813 |
+
299
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 7
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "Position-based Hash Function We conduct experiments hashing based on sequence position only. We consider this experiment as a sanity check, we did not expect choosing conditional compute based on position in the output sequence to help. Indeed, it turns out that this is no better than the dense Transformer baseline. Thus it appears that routing based on input content is much more important. ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
174,
|
| 822 |
+
308,
|
| 823 |
+
825,
|
| 824 |
+
363
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 7
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "Bigram Hash Function Hashing based on the last two tokens (bigrams) performs worse than using only the last token (24.19 vs. 23.16). We hypothesize there are two reasons for this: (1) first, the last token is clearly the most pertinent, and bigrams add a less relevant feature; (2) this creates too many hashes, which performs less well. Subsequent experiments will help test these claims. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
371,
|
| 834 |
+
825,
|
| 835 |
+
426
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 7
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Previous Token Hashing Hashing based on the previous token is clearly worse than using the current token (24.16 vs. 23.16), and gives similar performance to using bigrams, helping confirm the first part of our above bigram hypothesis. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
174,
|
| 844 |
+
435,
|
| 845 |
+
825,
|
| 846 |
+
477
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 7
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "text",
|
| 852 |
+
"text": "Dictionary size We perform experiments on Wikitext-103 in two settings: using the given dictionary of 267k tokens, or using the 8k dictionary we use in our pushshift.io Reddit experiments, following [34]. The results, comparing to Switch and a baseline Transformer, are given in Table 4. We find that Hash works well for the small dictionary, slightly outperforming Switch. However, on the larger dictionary, it performs worse than Switch. As this is the same data but just the tokenization has changed we conclude the hashing induced from the smaller dictionary is easier to learn from, helping confirm the second part of our above bigram hypothesis. ",
|
| 853 |
+
"bbox": [
|
| 854 |
+
174,
|
| 855 |
+
484,
|
| 856 |
+
825,
|
| 857 |
+
583
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 7
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "Oracle Future Token Hashing We evaluate hashing using the oracle next token that is to be predicted. This yields a perplexity of 1.9. Using oracle information just to choose between modules is sufficient to essentially solve a task. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
176,
|
| 866 |
+
590,
|
| 867 |
+
821,
|
| 868 |
+
632
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 7
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "Predicted Future Token Hashing The last result poses the question: if we can predict the next token, and hash based on that prediction instead – will it be better than hashing on the current token? We thus tried hashing using the Baseline Transformer to predict labels, yielding a perplexity of 25.02 – which does not actually beat the Baseline itself. It appears that the bias of the token predictions limits the ability of the sparse routing to improve. ",
|
| 875 |
+
"bbox": [
|
| 876 |
+
173,
|
| 877 |
+
640,
|
| 878 |
+
825,
|
| 879 |
+
710
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 7
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "Multi-hashing We evaluate the multi-hashing technique described in subsection 3.2. Results are given in Appendix A, comparing to Switch and standard hashing. Even though the same number of parameters is used in all cases, we see improvements for splitting the hash into 2, 4 or 8 different hashes compared to a single hash, with steadily improving results for both 16 or 32 modules. ",
|
| 886 |
+
"bbox": [
|
| 887 |
+
174,
|
| 888 |
+
718,
|
| 889 |
+
825,
|
| 890 |
+
773
|
| 891 |
+
],
|
| 892 |
+
"page_idx": 7
|
| 893 |
+
},
|
| 894 |
+
{
|
| 895 |
+
"type": "text",
|
| 896 |
+
"text": "5.3.3 Switch Transformer Analysis ",
|
| 897 |
+
"text_level": 1,
|
| 898 |
+
"bbox": [
|
| 899 |
+
174,
|
| 900 |
+
789,
|
| 901 |
+
428,
|
| 902 |
+
803
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 7
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "Switch load balancing We show the performance of Switch for different values of the load balancing parameter on pushshift.io Reddit in Appendix A. Clearly the choice of parameter is important, with results varying over a 1 perplexity point range. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
176,
|
| 911 |
+
806,
|
| 912 |
+
825,
|
| 913 |
+
848
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 7
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "Switch with Token-based Routing Given our analysis of oracle and predicted token hashing in subsection 5.3.2, we hypothesize that the hidden representations in layers of the Transformer, being biased towards the predictions of the model, may be suboptimal for routing. We therefore experiment with a hybrid between Switch and Hash Layers: on the sparse layer, instead of using hidden state as the Switch router input, we use the current token instead. To convert the token to a vector we use an extra lookup table, i.e., an extra set of learnable parameters that is the size of the dictionary. These parameters are independent of the hidden state and are only used by the router to learn the best route. Results are given in Table 6. We find this brings some small improvements to Switch for 64 and 128 modules on a single layer, affirming the usefulness of token-based routing. ",
|
| 920 |
+
"bbox": [
|
| 921 |
+
174,
|
| 922 |
+
854,
|
| 923 |
+
823,
|
| 924 |
+
911
|
| 925 |
+
],
|
| 926 |
+
"page_idx": 7
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"type": "table",
|
| 930 |
+
"img_path": "images/140e7040321133d0dbe99bda94e7377f690c2c7a58e7bc7eb04955cf09402561.jpg",
|
| 931 |
+
"table_caption": [
|
| 932 |
+
"Table 5: Multi-hashing experiments on pushshift.io Reddit. When multi-hashing, the same number of parameters is used, but the FFN weights are split and indexed into multiple hashes and then concatenated together for the forward step. "
|
| 933 |
+
],
|
| 934 |
+
"table_footnote": [],
|
| 935 |
+
"table_body": "<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x32,load_bal=0.1</td><td>483M</td><td>23.79</td><td>23.84</td></tr><tr><td>Hash Layer</td><td>layers=11,modules=1x32</td><td>483M</td><td>23.58</td><td>23.65</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=2</td><td>483M</td><td>23.48</td><td>23.53</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=4</td><td>483M</td><td>23.38</td><td>23.45</td></tr><tr><td>MultiHash Layer</td><td>layers=11,modules=1x32,hashes=8</td><td>483M</td><td>23.28</td><td>23.34</td></tr></table>",
|
| 936 |
+
"bbox": [
|
| 937 |
+
215,
|
| 938 |
+
133,
|
| 939 |
+
781,
|
| 940 |
+
218
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 8
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "table",
|
| 946 |
+
"img_path": "images/38122f27648ccac53166bdb5d0440b3bc4eeeee6edac63a8dedfe6e4270f411d.jpg",
|
| 947 |
+
"table_caption": [
|
| 948 |
+
"Table 6: Switch Transformers with Token-Based Routing on pushshift.io Reddit. We compare standard Switch which routes based on the hidden state to token feature-routing (‘Token Switch’). "
|
| 949 |
+
],
|
| 950 |
+
"table_footnote": [],
|
| 951 |
+
"table_body": "<table><tr><td>Model</td><td>Configuration</td><td>Params</td><td>Valid PPL</td><td>Test PPL</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.65</td><td>23.73</td></tr><tr><td>Token Switch</td><td>layers=11,modules=1x64,load_bal=0.1</td><td>751M</td><td>23.43</td><td>23.43</td></tr><tr><td>Switch Transformer</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.52</td><td>23.58</td></tr><tr><td>Token Switch</td><td>layers=11,modules=1x128,load_bal=0.1</td><td>1.28B</td><td>23.26</td><td>23.32</td></tr></table>",
|
| 952 |
+
"bbox": [
|
| 953 |
+
212,
|
| 954 |
+
262,
|
| 955 |
+
785,
|
| 956 |
+
342
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 8
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "",
|
| 963 |
+
"bbox": [
|
| 964 |
+
174,
|
| 965 |
+
367,
|
| 966 |
+
825,
|
| 967 |
+
436
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 8
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "5.3.4 Comparison to BASE Layers ",
|
| 974 |
+
"text_level": 1,
|
| 975 |
+
"bbox": [
|
| 976 |
+
174,
|
| 977 |
+
450,
|
| 978 |
+
426,
|
| 979 |
+
465
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 8
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "We next compare to BASE Layers. Using the BASE Layer code base, we implement Hash Layers in exactly the same setup, changing only the routing method, and leaving everything else fixed. Figure 2 (right) shows results comparing Hash with BASE for 4.5B parameter models. Across the entire run, we see that Hash outperforms BASE at each training step. During early parts of training, Hash would presumably have an advantage in being able to specialize expert modules earlier, while BASE must learn membership for each of the expert modules. Later in training, BASE becomes mildly unstable presumably as expert assignments shift, while Hash performance continues to improve smoothly. ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
173,
|
| 988 |
+
468,
|
| 989 |
+
825,
|
| 990 |
+
564
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 8
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Additionally, to demonstrate Hash Layers remain performant when stacked, we trained a model with 3 Hash Layers (using random hashes), but fewer parameters per expert module so the total parameters remained constant at 4.5B (see subsection B.2). We find that using multiple Hash Layers gives a small but consistent improvement, suggesting Hash Layers will be effective at even more depth. ",
|
| 997 |
+
"bbox": [
|
| 998 |
+
174,
|
| 999 |
+
570,
|
| 1000 |
+
825,
|
| 1001 |
+
626
|
| 1002 |
+
],
|
| 1003 |
+
"page_idx": 8
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"type": "text",
|
| 1007 |
+
"text": "In addition to performance gains compared to BASE, we also find that Hash Layers are more efficient in total computation. In particular, BASE requires two all-to-all communications: the first de-correlates batches in order to make assignment balancing more stochastic, and the second routes states to their assigned expert. As Hash Layers use fixed, pre-computed assignments they avoid the decorrelation step. In practice, we find this gives an improvement of about $11 \\%$ in updates-per-second. As the number of expert layers increases, this difference will become more exaggerated. ",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
174,
|
| 1010 |
+
632,
|
| 1011 |
+
825,
|
| 1012 |
+
715
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 8
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "6 Conclusion ",
|
| 1019 |
+
"text_level": 1,
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
174,
|
| 1022 |
+
734,
|
| 1023 |
+
299,
|
| 1024 |
+
752
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 8
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "We have introduced a simple and efficient approach to sparse models in the Transformers-for-NLP setting based on hash layers. We showed on a variety of datasets and with analysis in various settings that this approach is highly competitive with existing methods such as Switch Transformers and BASE Layers, whilst being robust and far simpler – requiring no extra learning parameters, assignment algorithm or changes to the objective function. Given that researchers typically have only one opportunity to train very large models, this makes our approach a strong candidate for such runs. While our experiments scale up to 4.5B parameters, we do not reach the scales of large industrial works such as [8], and we hope to see future work conduct such experiments. Finally, given that our routing approach is learning free, our results perhaps suggest that none of the current approaches are routing particularly well. We thus believe learning-to-route should continue to be the study of future work, and consider our work a strong baseline for such research. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
174,
|
| 1033 |
+
758,
|
| 1034 |
+
825,
|
| 1035 |
+
911
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 8
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "References \n[1] Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. \n[2] Robert A Jacobs, Michael I Jordan, Steven J Nowlan, and Geoffrey E Hinton. Adaptive mixtures of local experts. Neural computation, 3(1):79–87, 1991. \n[3] Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. A neural probabilistic language model. The journal of machine learning research, 3:1137–1155, 2003. \n[4] Seniha Esen Yuksel, Joseph N Wilson, and Paul D Gader. Twenty years of mixture of experts. IEEE transactions on neural networks and learning systems, 23(8):1177–1193, 2012. \n[5] David Eigen, Marc’Aurelio Ranzato, and Ilya Sutskever. Learning factored representations in a deep mixture of experts. arXiv preprint arXiv:1312.4314, 2013. \n[6] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, 2017. \n[7] Sam Gross, Marc’Aurelio Ranzato, and Arthur Szlam. Hard mixtures of experts for large scale weakly supervised vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 6865–6873, 2017. \n[8] William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. arXiv preprint arXiv:2101.03961, 2021. \n[9] Ronan Collobert, Yoshua Bengio, and Samy Bengio. Scaling large learning problems with hard parallel mixtures. International Journal of pattern recognition and artificial intelligence, 17 (03):349–365, 2003. \n[10] Mike Lewis, Shruti Bhosale, Tim Dettmers, Naman Goyal, and Luke Zettlemoyer. Base layers: Simplifying training of large, sparse models. arXiv preprint arXiv:2103.16716, 2021. \n[11] Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. Gshard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668, 2020. \n[12] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017. \n[13] Thomas H Cormen, Charles E Leiserson, Ronald L Rivest, and Clifford Stein. Introduction to algorithms. MIT press, 2009. \n[14] Andrei Z Broder and Anna R Karlin. Multilevel adaptive hashing. In Proceedings of the first annual ACM-SIAM symposium on Discrete algorithms, pages 43–53, 1990. \n[15] Guillaume Lample, Alexandre Sablayrolles, Marc’Aurelio Ranzato, Ludovic Denoyer, and Hervé Jégou. Large memory layers with product keys. In Advances in Neural Information Processing Systems, pages 8548–8559, 2019. \n[16] Reinhard Kneser and Hermann Ney. Improved backing-off for m-gram language modeling. In 1995 international conference on acoustics, speech, and signal processing, volume 1, pages 181–184. IEEE, 1995. \n[17] Tomáš Mikolov, Martin Karafiát, Lukáš Burget, Jan Cernock ˇ y, and Sanjeev Khudanpur. Recur- \\` rent neural network based language model. In Eleventh annual conference of the international speech communication association, 2010. \n[18] Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. arXiv preprint arXiv:1312.3005, 2013. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
171,
|
| 1044 |
+
64,
|
| 1045 |
+
828,
|
| 1046 |
+
917
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 9
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "[19] Graham Neubig and Chris Dyer. Generalizing and hybridizing count-based and neural language models. arXiv preprint arXiv:1606.00499, 2016. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
171,
|
| 1055 |
+
90,
|
| 1056 |
+
823,
|
| 1057 |
+
119
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 10
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "[20] Sébastien Jean, Kyunghyun Cho, Roland Memisevic, and Yoshua Bengio. On using very large target vocabulary for neural machine translation. arXiv preprint arXiv:1412.2007, 2014. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
174,
|
| 1066 |
+
127,
|
| 1067 |
+
823,
|
| 1068 |
+
157
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 10
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "[21] Armand Joulin, Moustapha Cissé, David Grangier, Hervé Jégou, et al. Efficient softmax approximation for gpus. In International Conference on Machine Learning, pages 1302–1310. PMLR, 2017. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
174,
|
| 1077 |
+
165,
|
| 1078 |
+
825,
|
| 1079 |
+
208
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 10
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "[22] Anton Bakhtin, Arthur Szlam, Marc’Aurelio Ranzato, and Edouard Grave. Lightweight adaptive mixture of neural and n-gram language models. arXiv preprint arXiv:1804.07705, 2018. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
174,
|
| 1088 |
+
217,
|
| 1089 |
+
825,
|
| 1090 |
+
246
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 10
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "[23] Kilian Weinberger, Anirban Dasgupta, John Langford, Alex Smola, and Josh Attenberg. Feature hashing for large scale multitask learning. In Proceedings of the 26th annual international conference on machine learning, pages 1113–1120, 2009. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
174,
|
| 1099 |
+
253,
|
| 1100 |
+
825,
|
| 1101 |
+
297
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 10
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "[24] Bing Bai, Jason Weston, David Grangier, Ronan Collobert, Kunihiko Sadamasa, Yanjun Qi, Olivier Chapelle, and Kilian Weinberger. Learning to rank with (a lot of) word features. Information retrieval, 13(3):291–314, 2010. ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
174,
|
| 1110 |
+
305,
|
| 1111 |
+
823,
|
| 1112 |
+
348
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 10
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "[25] Wenlin Chen, James Wilson, Stephen Tyree, Kilian Weinberger, and Yixin Chen. Compressing neural networks with the hashing trick. In International conference on machine learning, pages 2285–2294. PMLR, 2015. ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
174,
|
| 1121 |
+
356,
|
| 1122 |
+
823,
|
| 1123 |
+
400
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 10
|
| 1126 |
+
},
|
| 1127 |
+
{
|
| 1128 |
+
"type": "text",
|
| 1129 |
+
"text": "[26] Aurko Roy, Mohammad Saffar, Ashish Vaswani, and David Grangier. Efficient content-based sparse attention with routing transformers. Transactions of the Association for Computational Linguistics, 9:53–68, 2021. ",
|
| 1130 |
+
"bbox": [
|
| 1131 |
+
174,
|
| 1132 |
+
407,
|
| 1133 |
+
825,
|
| 1134 |
+
450
|
| 1135 |
+
],
|
| 1136 |
+
"page_idx": 10
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"type": "text",
|
| 1140 |
+
"text": "[27] Nikita Kitaev, Łukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. arXiv preprint arXiv:2001.04451, 2020. ",
|
| 1141 |
+
"bbox": [
|
| 1142 |
+
173,
|
| 1143 |
+
458,
|
| 1144 |
+
821,
|
| 1145 |
+
488
|
| 1146 |
+
],
|
| 1147 |
+
"page_idx": 10
|
| 1148 |
+
},
|
| 1149 |
+
{
|
| 1150 |
+
"type": "text",
|
| 1151 |
+
"text": "[28] Yinfei Yang, Steve Yuan, Daniel Cer, Sheng-yi Kong, Noah Constant, Petr Pilar, Heming Ge, Yun-Hsuan Sung, Brian Strope, and Ray Kurzweil. Learning semantic textual similarity from conversations. In Proceedings of The Third Workshop on Representation Learning for NLP, pages 164–174, Melbourne, Australia, July 2018. Association for Computational Linguistics. ",
|
| 1152 |
+
"bbox": [
|
| 1153 |
+
174,
|
| 1154 |
+
496,
|
| 1155 |
+
826,
|
| 1156 |
+
553
|
| 1157 |
+
],
|
| 1158 |
+
"page_idx": 10
|
| 1159 |
+
},
|
| 1160 |
+
{
|
| 1161 |
+
"type": "text",
|
| 1162 |
+
"text": "[29] Pierre-Emmanuel Mazaré, Samuel Humeau, Martin Raison, and Antoine Bordes. Training millions of personalized dialogue agents. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2775–2779, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. ",
|
| 1163 |
+
"bbox": [
|
| 1164 |
+
174,
|
| 1165 |
+
561,
|
| 1166 |
+
826,
|
| 1167 |
+
618
|
| 1168 |
+
],
|
| 1169 |
+
"page_idx": 10
|
| 1170 |
+
},
|
| 1171 |
+
{
|
| 1172 |
+
"type": "text",
|
| 1173 |
+
"text": "[30] Nitish Shirish Keskar, Bryan McCann, Lav R Varshney, Caiming Xiong, and Richard Socher. CTRL: A conditional transformer language model for controllable generation. arXiv preprint arXiv:1909.05858, 2019. ",
|
| 1174 |
+
"bbox": [
|
| 1175 |
+
174,
|
| 1176 |
+
626,
|
| 1177 |
+
821,
|
| 1178 |
+
670
|
| 1179 |
+
],
|
| 1180 |
+
"page_idx": 10
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"type": "text",
|
| 1184 |
+
"text": "[31] Kurt Shuster, Da Ju, Stephen Roller, Emily Dinan, Y-Lan Boureau, and Jason Weston. The dialogue dodecathlon: Open-domain knowledge and image grounded conversational agents, 2019. ",
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
174,
|
| 1187 |
+
678,
|
| 1188 |
+
825,
|
| 1189 |
+
719
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 10
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "[32] Samuel Humeau, Kurt Shuster, Marie-Anne Lachaux, and Jason Weston. Poly-encoders: Architectures and pre-training strategies for fast and accurate multi-sentence scoring. In Proceedings of the International Conference on Learning Representations, 2019. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
728,
|
| 1199 |
+
825,
|
| 1200 |
+
772
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 10
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "[33] Jason Baumgartner, Savvas Zannettou, Brian Keegan, Megan Squire, and Jeremy Blackburn. The pushshift reddit dataset. arXiv preprint arXiv:2001.08435, 2020. ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
169,
|
| 1209 |
+
780,
|
| 1210 |
+
825,
|
| 1211 |
+
810
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 10
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "text",
|
| 1217 |
+
"text": "[34] Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M Smith, et al. Recipes for building an open-domain chatbot. arXiv preprint arXiv:2004.13637, 2020. ",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
171,
|
| 1220 |
+
818,
|
| 1221 |
+
825,
|
| 1222 |
+
861
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 10
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "[35] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
868,
|
| 1232 |
+
826,
|
| 1233 |
+
911
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 10
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "[36] Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmán, Edouard Grave, Myle Ott, Luke Zettlemoyer, and Veselin Stoyanov. Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116, 2019. ",
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
174,
|
| 1242 |
+
90,
|
| 1243 |
+
826,
|
| 1244 |
+
146
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 11
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "text",
|
| 1250 |
+
"text": "[37] Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. ",
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
168,
|
| 1253 |
+
156,
|
| 1254 |
+
825,
|
| 1255 |
+
184
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 11
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "[38] Myle Ott, Sergey Edunov, Alexei Baevski, Angela Fan, Sam Gross, Nathan Ng, David Grangier, and Michael Auli. fairseq: A fast, extensible toolkit for sequence modeling. arXiv preprint arXiv:1904.01038, 2019. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
173,
|
| 1264 |
+
194,
|
| 1265 |
+
823,
|
| 1266 |
+
236
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 11
|
| 1269 |
+
}
|
| 1270 |
+
]
|
parse/train/lMgDDWb1ULW/lMgDDWb1ULW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/lMgDDWb1ULW/lMgDDWb1ULW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|