Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/8yKEo06dKNo/8yKEo06dKNo.md +0 -0
- parse/train/8yKEo06dKNo/8yKEo06dKNo_content_list.json +0 -0
- parse/train/8yKEo06dKNo/8yKEo06dKNo_middle.json +0 -0
- parse/train/8yKEo06dKNo/8yKEo06dKNo_model.json +0 -0
- parse/train/BJlRs34Fvr/BJlRs34Fvr.md +350 -0
- parse/train/BJlRs34Fvr/BJlRs34Fvr_content_list.json +1793 -0
- parse/train/BJlRs34Fvr/BJlRs34Fvr_middle.json +0 -0
- parse/train/BJlRs34Fvr/BJlRs34Fvr_model.json +0 -0
- parse/train/HJeKCi0qYX/HJeKCi0qYX.md +348 -0
- parse/train/HJeKCi0qYX/HJeKCi0qYX_middle.json +0 -0
- parse/train/HJflg30qKX/HJflg30qKX.md +860 -0
- parse/train/HJflg30qKX/HJflg30qKX_content_list.json +0 -0
- parse/train/HJflg30qKX/HJflg30qKX_middle.json +0 -0
- parse/train/HJflg30qKX/HJflg30qKX_model.json +0 -0
- parse/train/HJgEMpVFwB/HJgEMpVFwB.md +274 -0
- parse/train/HJgEMpVFwB/HJgEMpVFwB_content_list.json +1413 -0
- parse/train/HJgEMpVFwB/HJgEMpVFwB_middle.json +0 -0
- parse/train/HJgEMpVFwB/HJgEMpVFwB_model.json +0 -0
- parse/train/HJlnC1rKPB/HJlnC1rKPB.md +433 -0
- parse/train/HJlnC1rKPB/HJlnC1rKPB_content_list.json +0 -0
- parse/train/HJlnC1rKPB/HJlnC1rKPB_middle.json +0 -0
- parse/train/HJlnC1rKPB/HJlnC1rKPB_model.json +0 -0
- parse/train/HJx38iC5KX/HJx38iC5KX.md +303 -0
- parse/train/HJx38iC5KX/HJx38iC5KX_content_list.json +1572 -0
- parse/train/HJx38iC5KX/HJx38iC5KX_middle.json +0 -0
- parse/train/HJx38iC5KX/HJx38iC5KX_model.json +0 -0
- parse/train/HyxKIiAqYQ/HyxKIiAqYQ.md +254 -0
- parse/train/HyxKIiAqYQ/HyxKIiAqYQ_content_list.json +1369 -0
- parse/train/HyxKIiAqYQ/HyxKIiAqYQ_middle.json +0 -0
- parse/train/HyxKIiAqYQ/HyxKIiAqYQ_model.json +0 -0
- parse/train/NjF772F4ZZR/NjF772F4ZZR.md +398 -0
- parse/train/NjF772F4ZZR/NjF772F4ZZR_content_list.json +2171 -0
- parse/train/NjF772F4ZZR/NjF772F4ZZR_middle.json +0 -0
- parse/train/NjF772F4ZZR/NjF772F4ZZR_model.json +0 -0
- parse/train/S1ewjhEFwr/S1ewjhEFwr.md +357 -0
- parse/train/S1ewjhEFwr/S1ewjhEFwr_content_list.json +1794 -0
- parse/train/S1ewjhEFwr/S1ewjhEFwr_middle.json +0 -0
- parse/train/S1ewjhEFwr/S1ewjhEFwr_model.json +0 -0
- parse/train/rkxt8oC9FQ/rkxt8oC9FQ.md +305 -0
- parse/train/rkxt8oC9FQ/rkxt8oC9FQ_content_list.json +1479 -0
- parse/train/rkxt8oC9FQ/rkxt8oC9FQ_middle.json +0 -0
- parse/train/rkxt8oC9FQ/rkxt8oC9FQ_model.json +0 -0
- parse/train/vYVI1CHPaQg/vYVI1CHPaQg.md +601 -0
- parse/train/vYVI1CHPaQg/vYVI1CHPaQg_content_list.json +0 -0
- parse/train/vYVI1CHPaQg/vYVI1CHPaQg_middle.json +0 -0
- parse/train/vYVI1CHPaQg/vYVI1CHPaQg_model.json +0 -0
- parse/train/y4-e1K23GLC/y4-e1K23GLC.md +508 -0
- parse/train/y4-e1K23GLC/y4-e1K23GLC_content_list.json +0 -0
- parse/train/y4-e1K23GLC/y4-e1K23GLC_middle.json +0 -0
- parse/train/y4-e1K23GLC/y4-e1K23GLC_model.json +0 -0
parse/train/8yKEo06dKNo/8yKEo06dKNo.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/8yKEo06dKNo/8yKEo06dKNo_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/8yKEo06dKNo/8yKEo06dKNo_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/8yKEo06dKNo/8yKEo06dKNo_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlRs34Fvr/BJlRs34Fvr.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SKIP CONNECTIONS MATTER: ON THE TRANSFERABILITY OF ADVERSARIAL EXAMPLES GENERATED WITH RESNETS
|
| 2 |
+
|
| 3 |
+
Dongxian $\mathbf { W _ { u } } ^ { 1 , 3 }$ Yisen $\mathbf { W a n g } ^ { 2 \dagger }$ Shu-Tao $\mathbf { X _ { i a } ^ { \bullet , 1 , 3 } }$ James Bailey4 Xingjun Ma4
|
| 4 |
+
|
| 5 |
+
1Tsinghua University
|
| 6 |
+
2Shanghai Jiao Tong University
|
| 7 |
+
3PCL Research Center of Networks and Communications, Peng Cheng Laboratory
|
| 8 |
+
4The University of Melbourne
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
Skip connections are an essential component of current state-of-the-art deep neural networks (DNNs) such as ResNet, WideResNet, DenseNet, and ResNeXt. Despite their huge success in building deeper and more powerful DNNs, we identify a surprising security weakness of skip connections in this paper. Use of skip connections allows easier generation of highly transferable adversarial examples. Specifically, in ResNet-like (with skip connections) neural networks, gradients can backpropagate through either skip connections or residual modules. We find that using more gradients from the skip connections rather than the residual modules according to a decay factor, allows one to craft adversarial examples with high transferability. Our method is termed Skip Gradient Method (SGM). We conduct comprehensive transfer attacks against state-of-the-art DNNs including ResNets, DenseNets, Inceptions, Inception-ResNet, Squeeze-and-Excitation Network (SENet) and robustly trained DNNs. We show that employing SGM on the gradient flow can greatly improve the transferability of crafted attacks in almost all cases. Furthermore, SGM can be easily combined with existing black-box attack techniques, and obtain high improvements over state-of-the-art transferability methods. Our findings not only motivate new research into the architectural vulnerability of DNNs, but also open up further challenges for the design of secure DNN architectures.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
In deep neural networks (DNNs), a skip connection builds a short-cut from a shallow layer to a deep layer by connecting the input of a convolutional block (also known as the residual module) directly to its output. While different layers of a neural network learn different “levels” of features, skip connections can help preserve low-level features and avoid performance degradation when adding more layers. This has been shown to be crucial for building very deep and powerful DNNs such as ResNet (He et al., 2016a;b), WideResNet (Zagoruyko & Komodakis, 2016), DenseNet (Huang et al., 2017) and ResNeXt (Xie et al., 2017). In the meantime, despite their superior performance, DNNs have been found extremely vulnerable to adversarial examples (or attacks), which are input examples slightly perturbed with an intention to fool the network to make a wrong prediction (Szegedy et al., 2013; Goodfellow et al., 2014; Ma et al., 2018; Bai et al., 2019; Wang et al., 2019; 2020). Adversarial examples often appear imperceptible to human observers, and are transferable across different models (Liu et al., 2017). This has raised security concerns on the deployment of DNNs in security critical scenarios, such as face recognition (Sharif et al., 2016), autonomous driving (Evtimov et al., 2018), video analysis (Jiang et al., 2019) and medical diagnosis (Ma et al., 2019).
|
| 17 |
+
|
| 18 |
+
Adversarial examples can be crafted following either a white-box setting (the adversary has full access to the target model) or a black-box setting (the adversary has no information of the target model). White-box methods such as Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2014), Basic Iterative Method (BIM) (Kurakin et al., 2016), Projected Gradient Decent (PGD) (Madry et al., 2018) and Carlini and Wagner (CW) (Carlini & Wagner, 2017) often suffer from low transferability in a black-box setting, thus posing only limited threats to DNN models which are usually kept secret in practice (Dong et al., 2018; Xie et al., 2019). Several techniques have been proposed to improve the transferability of black-box attacks crafted on a surrogate model, such as momentum boosting (Dong et al., 2018), diverse input (Xie et al., 2019) and translation invariance (Dong et al., 2019). Although these techniques are effective, they (as well as white-box methods) all treat the entire network (either the target model or the surrogate model) as a single component while ignore its inner architectural characteristics. The question of whether or not the DNN architecture itself can expose more transferability of adversarial attacks is an unexplored problem.
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+
Figure 1: Left: Illustration of the last 3 skip connections (green lines) and residual modules (black boxes) of a ImageNet-trained ResNet-18. Right: The success rate (in the form of “white-box/blackbox”) of adversarial attacks crafted using gradients flowing through either a skip connection (going upwards) or a residual module (going leftwards) at each junction point (circle). Three example backpropagation paths are highlighted in different colors, with the green path skipping over the last two residual modules having the best attack success rate while the red path through all 3 residual modules having the worst attack success rate. The attacks are crafted by BIM on 5000 ImageNet validation images under maximum $L _ { \infty }$ perturbation $\epsilon \ : = \ : 1 6$ (pixel values are in [0, 255]). The black-box success rate is tested against a VGG19 target model.
|
| 22 |
+
|
| 23 |
+
In this paper, we identify one such weakness about the skip connections used by many state-of-theart DNNs. We first conduct a toy experiment with the BIM attack and ResNet-18 on the ImageNet validation dataset (Deng et al., 2009) to investigate how skip connections affect the adversarial strength of attacks crafted on the network. At each of the last 3 skip connections and residual modules of ResNet-18, we illustrate the success rate of attacks crafted using gradients backpropagate through either the skip connection or the residual module in Figure 1. As can be observed, the success rate drops more drastically whenever using gradients from a residual module instead of the skip connection. This implies that gradients from the skip connections are more vulnerable (high success rate). In addition, we surprisingly find that skip connections expose more transferable information. For example, the black-box success rate was even improved from $5 2 . 5 2 \%$ to $6 2 . 1 0 \%$ when the attack skips the last two residual modules (following the path in green color).
|
| 24 |
+
|
| 25 |
+
Motivated by the above observations, in this paper, we propose the Skip Gradient Method (SGM) to generate adversarial examples using gradients more from the skip connections rather than the residual modules. In particular, SGM utilizes a decay factor to reduce gradients from the residual modules. We find that this simple adjustment on the gradient flow can generate highly transferable adversarial examples, and the more skip connections in a network, the more transferable are the crafted attacks. This is in sharp contrast to the design principles (e.g., “going deeper” with skip connections) underpinning many modern DNNs. In particular, our main contributions are:
|
| 26 |
+
|
| 27 |
+
• We identify one surprising property of skip connections in ResNet-like neural networks, i.e., they allow an easy generation of highly transferable adversarial examples.
|
| 28 |
+
• We propose the Skip Gradient Method (SGM) to craft adversarial examples using gradients more from the skip connections. Using a single decay factor on gradients, SGM is an appealingly simple and generic technique that can be used by any existing gradient-based attack methods.
|
| 29 |
+
• We provide comprehensive transfer attack experiments, from different source models against 10 state-of-the-art DNNs, showing that SGM can greatly improve the transferability of crafted adversarial examples. When combined with existing transfer techniques, SGM improves the state-ofthe-art transferability benchmarks by a large margin.
|
| 30 |
+
|
| 31 |
+
# 2 RELATED WORK
|
| 32 |
+
|
| 33 |
+
Existing adversarial attacks can be categorized into two groups: 1) white-box attacks and 2) blackbox attacks. In the white-box setting, the adversary has full access to the parameters of the target model, while in the black-box setting, the target model is kept secret from the adversary.
|
| 34 |
+
|
| 35 |
+
# 2.1 WHITE-BOX ATTACKS
|
| 36 |
+
|
| 37 |
+
Given a clean example $_ { \textbf { \em x } }$ with class label $y$ and a target DNN model $f$ , the goal of an adversary is to find an adversarial example $\mathbf { { x } } _ { a d v }$ that fools the network into making an incorrect prediction (eg. $f ( { \pmb x } _ { a d v } ) \neq y )$ , while still remaining in the $\epsilon$ -ball centered at $_ { \textbf { \em x } }$ (eg. $\| \pmb { x } _ { a d v } - \pmb { x } \| _ { \infty } \leq \bar { \epsilon } )$ .
|
| 38 |
+
|
| 39 |
+
Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2014). FGSM perturbs clean example $_ { \textbf { \em x } }$ for one step by the amount of $\epsilon$ along the gradient direction:
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\begin{array} { r } { \pmb { x } _ { a d v } = \pmb { x } + \epsilon \cdot \mathrm { s i g n } \big ( \nabla _ { \pmb { x } } \ell ( f ( \pmb { x } ) , y ) \big ) . } \end{array}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
The Basic Iterative Method (BIM) (Kurakin et al., 2016) is an iterative version of FGSM that perturbs for $T$ steps with step size $\epsilon / T$ .
|
| 46 |
+
|
| 47 |
+
Projected Gradient Descent (PGD) (Madry et al., 2018). PGD perturbs normal example $_ { \textbf { \em x } }$ for $T$ steps with smaller step size. After each step of perturbation, PGD projects the adversarial example back onto the $\epsilon$ -ball of $_ { \textbf { \em x } }$ , if it goes beyond the $\epsilon$ -ball:
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\begin{array} { r } { \pmb { x } _ { a d v } ^ { t + 1 } = \Pi _ { \epsilon } \big ( \pmb { x } _ { a d v } ^ { t } + \alpha \cdot \mathrm { s i g n } ( \nabla _ { \pmb { x } } \ell ( f ( \pmb { x } _ { a d v } ^ { t } ) , y ) ) \big ) , } \end{array}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where $\Pi _ { \epsilon } ( \cdot )$ is the projection operation. Different to BIM, PGD allows step size $\alpha > \epsilon / T$
|
| 54 |
+
|
| 55 |
+
There are also other types of white-box attacks including sparsity-based methods such as Jacobianbased Saliency Map Attack (JSMA) (Papernot et al., 2016), sparse attack (Modas et al., 2019), onepixel attack (Su et al., 2019), and optimization-based methods such as Carlini and Wagner (CW) (Carlini & Wagner, 2017) and elastic-net (EAD) (Chen et al., 2018).
|
| 56 |
+
|
| 57 |
+
# 2.2 BLACK-BOX ATTACKS
|
| 58 |
+
|
| 59 |
+
Black-box attacks can be generated by either attacking a surrogate model or using gradient estimation methods in combination with queries to the target model. Gradient estimation methods estimate the gradients of the target model using black-box optimization methods such as Finite Differences (FD) (Chen et al., 2017; Bhagoji et al., 2018) or Natural Evolution Strategies (NES) (Ilyas et al., 2018; Jiang et al., 2019). These methods all require a large number of queries to the target model, which not only reduces efficiency but also potentially exposes the attack. Alternatively, black-box adversarial examples can be crafted on a surrogate model then applied to attack the target model. Although the white-box methods can be directly applied on the surrogate model, they are far less effective in the black-box setting (Dong et al., 2018; Xie et al., 2019). Several transfer techniques have been proposed to improve the transferability of black-box attacks.
|
| 60 |
+
|
| 61 |
+
Momentum Iterative boosting (MI) (Dong et al., 2018). MI incorporates a momentum term into the gradient to boost the transferability:
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
\begin{array} { r } { \pmb { x } _ { a d v } ^ { t + 1 } = \Pi _ { \epsilon } \big ( \pmb { x } _ { a d v } ^ { t } + \alpha \cdot \mathrm { s i g n } ( \pmb { g } ^ { t + 1 } ) \big ) , \pmb { g } ^ { t + 1 } = \mu \cdot \pmb { g } ^ { t } + \frac { \nabla _ { \mathbf { x } } \ell \left( f \left( \pmb { x } _ { a d v } ^ { t } \right) , \pmb { y } \right) } { \| \nabla _ { \mathbf { x } } \ell \left( f \left( \pmb { x } _ { a d v } ^ { t } \right) , \pmb { y } \right) \| _ { 1 } } , } \end{array}
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
where $g ^ { t }$ is the adversarial gradient at the $t$ -th step, $\alpha = \epsilon / T$ is the step size for a total of $T$ steps, $\mu$ is a decay factor, and $\| \cdot \| _ { 1 }$ is the $L _ { 1 }$ norm.
|
| 68 |
+
|
| 69 |
+
Diverse Input $\mathbf { \Pi } ( \mathbf { D } \mathbf { I } )$ (Xie et al., 2019). DI proposes to craft adversarial exampels using gradient with respect to the randomly-transformed input example:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\pmb { x } _ { a d v } ^ { t + 1 } = \Pi _ { \epsilon } \big ( \pmb { x } _ { a d v } ^ { t } + \alpha \cdot \mathrm { s i g n } \big ( \nabla _ { \pmb { x } } \ell \big ( f \big ( H ( \pmb { x } _ { a d v } ^ { t } ; p ) \big ) , y \big ) \big ) \big ) ,
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
where $H ( \boldsymbol { \mathbf { x } } _ { a d v } ^ { t } ; \boldsymbol { p } )$ is a stochastic transformation function on $\scriptstyle { \pmb { x } } _ { a d v } ^ { t }$ for a given probability $p$
|
| 76 |
+
|
| 77 |
+
Translation Invariant (TI) (Dong et al., 2019). TI targets to evade robustly trained DNNs by generating adversarial examples that are less sensitive to the discriminative regions of the surrogate model. More specifically, $\mathrm { T I }$ computes the gradients with respect to a set of translated versions of the original input:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\pmb { x } _ { a d v } ^ { t + 1 } = \Pi _ { \epsilon } \bigl ( \pmb { x } _ { a d v } ^ { t } + \alpha \cdot \mathrm { s i g n } ( W * \nabla _ { \pmb { x } } \ell ( f ( \pmb { x } _ { a d v } ^ { t } ) , y ) ) \bigr ) ,
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $W$ is a predefined kernel (e.g., uniform, linear, and Gaussian) matrix of size $( 2 k + 1 ) ( 2 k +$ 1) $k$ being the maximal number of pixels to shift). This kernel convolution is equivalent to the weighted sum of gradients over $( 2 k + 1 ) ^ { 2 }$ number of shifted input examples.
|
| 84 |
+
|
| 85 |
+
Furthermore, there are other studies focusing on intermediate feature representations. For example, Activation Attack (Inkawhich et al., 2019) drives the activation of a specified layer on a given image towards the layer of a target image, to yield a highly transferable targeted example. Intermediate Level Attack (Huang et al., 2019) attempts to fine-tune an existing adversarial example for greater black-box transferability by increasing its perturbation on a pre-specified layer of the source model.
|
| 86 |
+
|
| 87 |
+
Although the above transfer techniques are effective, they (including white-box attacks) either 1) treat the network (either the surrogate model or the target model) as a single component or 2) only use the intermediate layer output of the network. In other words, they do not directly consider the effects of different DNN architectural characteristics. Li et al. (2018) investigated the use of skip connections and dropout layers for sampling networks, which generates a huge set of ghost networks to perform an ensemble attack. Here, we focus on the architectural property of skip connections from the gradient view without modifying or generating any extra networks.
|
| 88 |
+
|
| 89 |
+
# 3 PROPOSED SKIP GRADIENT ATTACK
|
| 90 |
+
|
| 91 |
+
In this section, we first introduce the gradient decomposition of skip connection and residual module. Following that, we propose our Skip Gradient Method (SGM), then demonstrate the adversarial transferability property of skip connection via a case study.
|
| 92 |
+
|
| 93 |
+
# 3.1 GRADIENT DECOMPOSITION WITH SKIP CONNECTIONS
|
| 94 |
+
|
| 95 |
+
In ResNet-like neural networks, a skip connection uses identity mapping to bypass residual layers, allowing data flow from a shallow layer directly to subsequent deep layers. Thus, we can decompose the network into a collection of paths of different lengths (Veit et al., 2016). We denote a skip connection together with its associated residual module as a building block (residual block) of a network. Considering three successive building blocks (eg. $z _ { i + 1 } = z _ { i } + f _ { i + 1 } ( z _ { i } ) )$ in a residual network from input $z _ { \mathrm { 0 } }$ to output $z _ { 3 }$ , the output $z _ { 3 }$ can be expanded as:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { r l } & { z _ { 3 } = z _ { 2 } + f _ { 3 } ( z _ { 2 } ) = [ z _ { 1 } + f _ { 2 } ( z _ { 1 } ) ] + f _ { 3 } ( z _ { 1 } + f _ { 2 } ( z _ { 1 } ) ) } \\ & { \quad = [ z _ { 0 } + f _ { 1 } ( z _ { 0 } ) + f _ { 2 } ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) ] + f _ { 3 } \big ( ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) + f _ { 2 } ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) \big ) . } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
According to the chain rule in calculus, the gradient of a loss function $\ell$ with respect to input $z _ { \mathrm { 0 } }$ can then be decomposed as,
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\frac { \partial \ell } { \partial z _ { 0 } } = \frac { \partial \ell } { \partial z _ { 3 } } \frac { \partial z _ { 3 } } { \partial z _ { 2 } } \frac { \partial z _ { 2 } } { \partial z _ { 1 } } \frac { \partial z _ { 1 } } { \partial z _ { 0 } } = \frac { \partial \ell } { \partial z _ { 3 } } ( 1 + \frac { \partial f _ { 3 } } { \partial z _ { 2 } } ) ( 1 + \frac { \partial f _ { 2 } } { \partial z _ { 1 } } ) ( 1 + \frac { \partial f _ { 1 } } { \partial z _ { 0 } } ) .
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
Extending this toy example to a network with $L$ residual blocks, the gradient can be decomposed from $L$ -th to the $( l + 1 )$ -th $( 0 \leq l < L )$ ) residual block as,
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\frac { \partial \ell } { \partial \pmb { x } } = \frac { \partial \ell } { \partial z _ { L } } \prod _ { i = l } ^ { L - 1 } \big ( \frac { \partial f _ { i + 1 } } { \partial z _ { i } } + 1 \big ) \frac { \partial z _ { l } } { \partial \pmb { x } } .
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
The example illustrated in Figure 1 is a the above decomposition of a ResNet-18 at the last 3 building blocks $( l = L - 3 )$ .
|
| 114 |
+
|
| 115 |
+
# 3.2 SKIP GRADIENT METHOD (SGM)
|
| 116 |
+
|
| 117 |
+
In order to use more gradient from the skip connections, here, we introduce a decay parameter into the decomposed gradient to reduce the gradient from the residual modules. Following the decomposition in Equation (8), the “skipped” gradient is,
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\nabla _ { \pmb { x } } \ell = \frac { \partial \ell } { \partial z _ { L } } \prod _ { i = 0 } ^ { L - 1 } \big ( \gamma \frac { \partial f _ { i + 1 } } { \partial z _ { i } } + 1 \big ) \frac { \partial z _ { 0 } } { \partial \pmb { x } } ,
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where ${ \boldsymbol { z } } _ { 0 } = { \boldsymbol { x } }$ is the input of the network, and $\gamma \in ( 0 , 1 ]$ is the decay parameter. Accordingly, given a clean example $_ { \textbf { \em x } }$ and a DNN model $f$ , an adversarial example can be crafted iteratively by,
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\pmb { x } _ { a d v } ^ { t + 1 } = \Pi _ { \epsilon } \Bigl ( \pmb { x } _ { a d v } ^ { t } + \alpha \cdot \mathrm { s i g n } \bigl ( \frac { \partial \ell } { \partial z _ { L } } \prod _ { i = 0 } ^ { L - 1 } ( \gamma \frac { \partial f _ { i + 1 } } { \partial z _ { i } } + 1 ) \frac { \partial z _ { 0 } } { \partial x } \bigr ) \Bigr ) .
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
Table 1: The success rates ( $\%$ ±std over 5 random runs) of black-box attacks (untargeted) crafted by PGD and its “skip gradient” (SGM) version, on different source models against a Inception V3 target model. The best results are in bold.
|
| 130 |
+
|
| 131 |
+
<table><tr><td></td><td>RN18 RN34</td><td>RN50 RN101 RN152</td><td>DN121 DN169</td><td>DN201</td></tr><tr><td>PGD</td><td>23.23±0.69 24.38±0.41</td><td>22.80±0.55 22.98±0.83 26.56±0.75</td><td></td><td>30.71±0.60 30.90±0.31 36.01±0.59</td></tr><tr><td>SGM</td><td>28.92±0.45 43.43±0.32</td><td>36.71±0.55 38.38±0.53 44.84±0.14</td><td>57.38±0.14 60.45±0.42 65.48±0.23</td><td></td></tr></table>
|
| 132 |
+
|
| 133 |
+
SGM is a generic technique that can be easily implemented on any neural network that has skip connections. During the backpropagation process, SGM simply multiplies the decay parameter to the gradient whenever it passes a residual module. Therefore, SGM does not require any computation overhead, and works efficiently even on densely connected networks such as DenseNets. The reduction of residual gradients is accumulated along the backpropagation path, that is, the residual gradients at lower layers will be reduced more times than those at higher layers. This is because, compared to high-level features, low-level features have already been well preserved by skip connections (see feature decompositions in Equation (6)).
|
| 134 |
+
|
| 135 |
+
# 3.3 ADVERSARIAL TRANSFERABILITY WITH SKIP CONNECTIONS: A CASE STUDY
|
| 136 |
+
|
| 137 |
+
To demonstrate the adversarial transferability of skip connections, we conduct a case study on 10- step PGD, and their corresponding SGM versions, to investigate the success rates of black-box attacks crafted with or without manipulating the skip connections. The black-box attacks are generated on 8 different source (surrogate) models ResNet(RN)-18/34/50/101/152 and DenseNet(DN)- 121/169/201, then applied to attack a Inception V3 target model. All models were trained on ImageNet training set. We randomly select 5000 ImageNet validation images that are correctly classified by all source models, and craft untargeted attacks under maximum $L _ { \infty }$ perturbation $\epsilon = 1 6$ , which is a typical black-box setting (Dong et al., 2018; Xie et al., 2019; Dong et al., 2019). The step size of PGD was set to $\alpha = 2$ , and the decay parameter of SGM was set to $\gamma = 0 . 5$ .
|
| 138 |
+
|
| 139 |
+
We run the attack for 5 times with different random seeds, and report the success rates (transferability) of different methods in Table 1. As can be seen, when the skip connections are manipulated with our SGM, the transferability of PGD is greatly improved across all source models. On all source models except RN18, the improvements are more than $1 3 \%$ . Without SGM, the best transferability against the Inception-V3 target model is $3 5 . 4 8 \%$ which is achieved by PGD on DN201, however, this is improved further by our proposed SGM to $6 5 . 3 8 \%$ $( > 2 9 \%$ gain). This not only highlights the surprising property of skip connections in terms of the generation of highly transferable attacks, but also indicates the significance of this property, as such a huge boost in transferability only takes a single decay factor.
|
| 140 |
+
|
| 141 |
+
The 8 source models can be interpreted as from 3 ResNet families: 1) RN18/34 are ResNets with normal residual blocks, 2) RN50/101/152 are ResNets with “bottleneck” residual blocks, and 3) DN121/169/201 are densely connected ResNets. Another important observation is that when there are more skip connections in a network within the same ResNet family (e.g., $\mathrm { R N } 3 4 > \mathrm { R N } 1 8$ , $\mathrm { R N } 1 5 2 > \mathrm { R N } 1 0 1 > \mathrm { R N } 5 0$ , and $\mathrm { D N } 2 0 1 > \mathrm { D N } 1 6 9 > \mathrm { D N } 1 2 1 )$ , or from ResNets to DenseNets (e.g. $\mathrm { D N } 1 2 1 / 1 6 9 / 2 0 1 > \mathrm { R N } 1 8 / 3 4$ and $\mathrm { D N } 1 2 1 / 1 6 9 / 2 0 1 > \mathrm { R N } 5 0 / 1 0 1 / 1 5 2 )$ , the crafted adversarial examples become more transferable, especially when the skip connections are manipulated by our SGM. This raises questions about the design principle behind many state-of-the-art DNNs: “going deeper” with techniques like skip connection and $1 \times 1$ convolution.
|
| 142 |
+
|
| 143 |
+
# 4 COMPARISON TO EXISTING TRANSFER ATTACKS
|
| 144 |
+
|
| 145 |
+
In this section, we compare the transferability of adversarial examples crafted by our proposed SGM and existing methods on ImageNet against both unsecured and secured target models.
|
| 146 |
+
|
| 147 |
+
Baselines. We compare SGM with FGSM, PGD, and 3 state-of-the-art transfer attacks: (1) Momentum Iterative (MI) (Dong et al., 2018), (2) Diverse Input (DI) (Xie et al., 2019), and (3) Transition Invariant (TI) (Dong et al., 2019). Note that the TI attack was originally proposed to attack secured models, although here we include TI to attack both unsecured models and secured models. For TI and our SGM, we test both the one-step and the iterative version, however, the other methods DI and MI only have an iterative version. The iteration step is set to 10 and 20 for unsecured and secured target models respectively. For all iterative methods PGD, TI and our SGM, the step size is set to $\alpha = 2$ . For our proposed SGM, the decay parameter is set to $\gamma = 0 . 2$ (0.5) and $\bar { \gamma } = 0 . 5$ (0.7)
|
| 148 |
+
|
| 149 |
+
on ResNet and DenseNet source models in PGD (FGSM) respectively. For simplicity, we utilize SGM to indicate $\mathrm { F G S M + S G M }$ in one-step attacks, and $\mathrm { P G D + S G M }$ in multi-step attacks. Other parameters of existing methods are configured as in their original papers.
|
| 150 |
+
|
| 151 |
+
Threat Model. We adopt a black-box threat model in which adversarial examples are generated by attacking a source model and then applied to attack the target model. The target model is of a different architecture (indicated by the model name) to the source model, expect when the source and target models are of the same architecture, where we directly use the source model as the target model (equivalent to a white-box setting). The attacks are crafted on 5000 randomly selected ImageNet validation images that are classified correctly by all source models, and are repeated for 5 times with different random seeds. For all attack methods, we follow the standard setting (Dong et al., 2018; Xie et al., 2019) to craft untargeted attacks under maximum $L _ { \infty }$ perturbation $\epsilon = 1 6$ with respect to pixel values in [0, 255].
|
| 152 |
+
|
| 153 |
+
Target Models. We consider two types of target models: 1) unsecured models that are trained on ImageNet training set using traditional training; and 2) secured models trained using adversarial training. For unsecured target model, we choose 7 state-of-the-art DNNs: VGG19 (with batch normalization) (Simonyan & Zisserman, 2015), ResNet-152 (RN152) (He et al., 2016a), DenseNet201 (DN152), 154 layer Squeeze-and-Excitation network (SE154) (Hu et al., 2018), Inception V3 (IncV3) (Szegedy et al., 2016), Inception V4 (IncV3) (Szegedy et al., 2017) and Inception-ResNet V2 (IncResV2) (Szegedy et al., 2017). For secured target models, we consider 3 robustly trained DNNs using ensemble adversarial training (Tramer et al., 2018):\` $\mathrm { I n c V } 3 _ { e n s 3 }$ (ensemble of $3 \ \mathrm { I n c V 3 }$ networks), $\mathrm { I n c V } 3 _ { e n s 4 }$ (ensemble of 4 IncV3 networks) and IncRes $\mathrm { V } 2 _ { e n s 3 }$ (ensemble of 3 IncResV2 networks).
|
| 154 |
+
|
| 155 |
+
Source Models. We choose 8 different source models from the ResNet family: ResNet(RN)- 18/34/50/101/152 and DenseNet(DN)-121/169/201. Whenever the input size of the source model does not match the target model, we resize the crafted adversarial images to the input size of the target model. For VGG19, ResNet and DenseNet models, images are cropped and resized to $2 2 4 \times 2 2 4$ , while for Inception/Inception-ResNet models, images are cropped and resized to $2 9 9 \times 2 9 9$ .
|
| 156 |
+
|
| 157 |
+
# 4.1 TRANSFERABILITY AGAINST UNSECURED MODELS
|
| 158 |
+
|
| 159 |
+
We first investigate the transferability of all attack methods against 7 unsecured models, which is to find the best method that can generate the most transferable attacks on one source model against all target models.
|
| 160 |
+
|
| 161 |
+
One-step Transferability. The one-step transferability is measured by the success rate of one-step attacks, as reported in Table 2. Here, we only show the results on two source models: 1) RN152 which is the best ResNet source model with the highest success rate on average against all target models, and 2) DN201 which is the best DenseNet source model. Also note that, when the source and target models are the same, the result represents the white-box success rate. Overall, adversarial examples crafted on DN201 have significantly better transferability than those crafted on RN152, especially for our SGM method. This is because there are $\sim 3 0 \times$ more skip connections that can be manipulated by our SGM in DN201 compared to RN152. In comparison to to both FGSM and TI, transferability is improved considerably by SGM in almost all test scenarios, except when transferring from RN152 to VGG19/IncV3/IncV4 where SGM is outperformed by TI. This implies that, when transfereing across different architectures (eg. ResNet VGG/Inception), translation adaptation may help increase the transferability of one-step perturbations. However, this advantage of TI disappears when there are more skip connections, as is the case for the DN201 source model.
|
| 162 |
+
|
| 163 |
+
Table 2: One-step transferability: the success rates ( $\% \pm$ std over 5 random runs) of black-box attacks crafted by different methods on 2 source models against 7 unsecured target models. The best results are in bold.
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncResV2</td></tr><tr><td rowspan="3">RN152</td><td>FGSM</td><td>41.96±0.52</td><td>71.53±0.34</td><td>37.49±0.10</td><td>30.00±0.56</td><td>25.66±0.07</td><td>21.55±0.16</td><td>19.90±0.49</td></tr><tr><td>TI</td><td>49.61±0.11</td><td>49.33±0.35</td><td>36.87±0.42</td><td>29.95±0.32</td><td>33.59±0.73</td><td>29.05±0.34</td><td>20.62±0.09</td></tr><tr><td>SGM</td><td>47.54±0.14</td><td>76.90±0.60</td><td>43.73±0.21</td><td>31.16±0.45</td><td>29.41±0.24</td><td>25.11±0.20</td><td>22.63±0.15</td></tr><tr><td rowspan="3">DN201</td><td>FGSM</td><td>49.87±0.17</td><td>38.89±0.29</td><td>81.51±0.33</td><td>34.94±0.53</td><td>31.21±0.47</td><td>27.08±0.23</td><td>23.87±0.45</td></tr><tr><td>TI</td><td>54.37±0.58</td><td>33.49±0.18</td><td>57.71±0.05</td><td>34.46±0.47</td><td>34.45±0.25</td><td>30.17±0.23</td><td>20.36±0.33</td></tr><tr><td>SGM</td><td>56.97±0.25</td><td>47.54±0.14</td><td>87.73±0.76</td><td>42.31±0.67</td><td>37.91±0.56</td><td>32.83±0.38</td><td>29.64±0.25</td></tr></table>
|
| 166 |
+
|
| 167 |
+

|
| 168 |
+
Figure 2: The attack success rates of black-box attacks crafted by different attack methods on 8 source models against 3 unsecured target models: VGG19 (left), SE154 (middle) and IncV3 (right).
|
| 169 |
+
|
| 170 |
+
Table 3: Multi-step transferability: the success rates ( $\% \pm$ std over 5 random runs) of black-box attacks crafted by different methods on 2 source models against 7 unsecured target models. The best results are in bold.
|
| 171 |
+
|
| 172 |
+
<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td rowspan="5">RN152</td><td>PGD</td><td>45.03±0.21</td><td>99.91±0.04 51.49±0.51</td><td></td><td>29.35±0.49</td><td>26.56±0.75</td><td>21.03±0.19</td><td>19.10±0.37</td></tr><tr><td>TI</td><td>54.59±0.63</td><td>99.73±0.11</td><td>63.77±0.93</td><td>41.89±0.58 37.97±0.39</td><td></td><td></td><td>36.25±1.13 28.90±0.52</td></tr><tr><td>MI</td><td>65.42±0.60</td><td>99.77±0.02</td><td>75.79±0.69</td><td>53.07±0.44</td><td>50.22±0.07</td><td>43.32±0.27</td><td>41.71±0.36</td></tr><tr><td>DI</td><td>74.01±0.48</td><td>99.90±0.02</td><td>277.81±0.80</td><td>57.49±1.22</td><td>53.95±0.68</td><td>47.16±0.52</td><td>43.47±0.30</td></tr><tr><td>SGM</td><td>79.90±0.69</td><td>99.87±0.03</td><td>81.56±0.35</td><td>61.83±0.17</td><td>57.22±0.51</td><td>48.57±0.09</td><td>45.44±0.36</td></tr><tr><td rowspan="5">DN201</td><td>PGD</td><td>57.61±0.82</td><td>59.84±0.76</td><td>99.89±0.02</td><td>39.78±0.69</td><td>36.01±0.59</td><td>31.76±0.27</td><td>25.92±0.13</td></tr><tr><td>TI</td><td>54.90±0.75</td><td>50.63±1.02</td><td>99.64±0.07</td><td>40.40±0.31</td><td>39.13±0.52</td><td>37.03±1.00</td><td>28.83±0.49</td></tr><tr><td>MI</td><td>75.09±0.80</td><td>76.39±0.61</td><td>99.84±0.05</td><td>64.38±0.69</td><td>59.62±0.36</td><td>54.85±0.56</td><td>50.05±0.25</td></tr><tr><td>DI</td><td>78.11±0.56 78.18±0.91</td><td></td><td>99.81±0.05</td><td>61.75±0.88</td><td>60.04±0.81</td><td>56.15±0.36 49.00±0.83</td><td></td></tr><tr><td>SGM</td><td>82.66±0.29</td><td>86.65±0.50</td><td>99.67±0.08</td><td>72.03±0.53</td><td>65.48±0.23</td><td>58.77±0.78</td><td>54.97±0.25</td></tr></table>
|
| 173 |
+
|
| 174 |
+
Multi-step Transferability. First we provide a detailed study about the transferability of all attack methods from the 8 source models to the 3 representative unsecured target models. We then compare different attack methods on two best source models against all unsecured target models: the best ResNet source model and the best DenseNet source model. The multi-step (e.g., 10 step) transferability from all source models to three representative target models (VGG19, SE154 and IncV3) is illustrated in Figure 2. In all transfer scenarios, our proposed SGM outperforms existing methods consistently on almost all source models except RN18. Adversarial attacks crafted by SGM become more transferable when there are more skip connections in the source model (e.g., from RN18 to DN201). An interesting observation is that, when the target model is shallow such as VGG19 (left figure in Figure 2), shallow source models transfer better, however, when the target model is deep such as SE154 and IncV3 (middle and right figures in Figure 2), deeper source models tend to have better transferability. We suspect this is due to the architectural similarities shared by the target and source models. Note that against the VGG19 target model, the success rate of baseline methods all drop significantly when the ResNet source models become more complex (from RN18 to RN152). The small variations at RN50 and DN121 source models may be caused by the architectural difference between RN18/34 which consist of normal residual blocks, RN50/101/152 which consist of “bottleneck” residual blocks and DN121/169/201 which has dense skip connections.
|
| 175 |
+
|
| 176 |
+
Results for the best source models RN152 and DN201 against unsecured target models are reported in Table 3. The proposed SGM attack outperforms existing methods by a large margin consistently against different target models. Particularly, for transfer $\mathrm { D N } 2 0 1 \mathrm { S E } 1 5 4$ (a recent state-of-the-art DNN with only $2 . 2 5 1 \%$ top-5 error on ImageNet), SGM achieves a success rate of $7 2 . 0 3 \%$ , which is $> 7 \%$ and $> 1 0 \%$ higher than MI and DI respectively.
|
| 177 |
+
|
| 178 |
+
Combining with Existing Methods. We further demonstrate that the adversarial transferability of skip connections can be exploited in combination with existing techniques. The experiments are conducted on DN201 (the best source model in the above multi-step experiments), and TI attack is excluded as it was originally proposed against secured models and demonstrates limited improvement over PGD against unsecured models. The results are reported in Table $4 ^ { * }$ . The transferability of MI and DI is improved remarkably of $1 1 . 9 8 \% \sim 2 1 . 9 8 \%$ by SGM. When combined with both MI and DI, SGM improves the state-of-the-art $\left( \mathrm { M I + D I } \right)$ transferability by a huge margin consistently against all target models. In particular, SGM pushes the new state-of-the-art to at least $8 0 . 5 2 \%$ which previously was only $71 \%$ . This illustrates that skip connections can be easily manipulated to craft highly transferable attacks against many state-of-the-art DNN models.
|
| 179 |
+
|
| 180 |
+
Table 4: Combined with existing methods: the success rates $( \% )$ of attacks crafted on source model DN201 against 7 unsecured target models. The best results are in bold and $^ +$ indicates improvement.
|
| 181 |
+
|
| 182 |
+
<table><tr><td>Attack\Target</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td>MI</td><td>75.09</td><td>76.39</td><td>99.84</td><td>64.38</td><td>59.62</td><td>54.85</td><td>50.05</td></tr><tr><td>MI+SGM DI</td><td>+12.01 78.11</td><td>+13.24 78.18</td><td>99.52 99.81</td><td>+17.16 61.75</td><td>+21.88 60.04</td><td>+15.57 56.15</td><td>+18.35 49.00</td></tr><tr><td>DI+SGM</td><td>+12.28</td><td>+13.76</td><td>99.52</td><td>+20.92</td><td>+17.66</td><td>+15.78</td><td>+20.20</td></tr><tr><td>MI+DI</td><td>87.16</td><td>87.28</td><td>99.76</td><td>79.80</td><td>76.68</td><td>75.20</td><td>71.05</td></tr><tr><td>MI+DI+SGM</td><td>93.00</td><td>93.92</td><td>99.42</td><td>89.86</td><td>85.72</td><td></td><td>80.50</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>81.23</td><td></td></tr></table>
|
| 183 |
+
|
| 184 |
+
Table 5: Transferability against secured models: the success rates $\% \pm$ std over 5 random runs) of multi-step attacks crafted on RN152 and DN201 source models against 3 secured models. The best results are in bold.
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Source</td><td>Attack</td><td>IncV3ens3</td><td>IncVens4</td><td>IncResens3</td></tr><tr><td rowspan="2">RN152</td><td>PGD TI</td><td>12.47±1.27 45.36±0.97</td><td>10.72±1.37 45.81±0.93</td><td>6.97±0.71 38.19±0.81</td></tr><tr><td>MI DI</td><td>24.20±1.15 28.48±1.21</td><td>22.04±0.98 24.19±1.22</td><td>16.10±0.56</td></tr><tr><td rowspan="2"></td><td>SGM</td><td>31.57±0.55</td><td>27.77±0.47</td><td>17.31±0.77 20.02±0.66</td></tr><tr><td>TI+SGM</td><td>52.62±0.40</td><td>52.80±0.79</td><td>43.96±0.62</td></tr><tr><td rowspan="2"></td><td>PGD TI</td><td>18.16±0.56</td><td>15.30±0.62</td><td>10.40±0.49</td></tr><tr><td>MI</td><td>42.76±0.91</td><td>42.01±0.79</td><td>34.28±0.88</td></tr><tr><td rowspan="4">DN201</td><td>DI</td><td>31.79±0.83</td><td>28.21±0.15</td><td>20.60±0.38</td></tr><tr><td></td><td>34.84±1.35</td><td>29.23±0.83</td><td>21.64±0.80</td></tr><tr><td>SGM</td><td>41.45±0.30</td><td>37.85±0.22</td><td>29.41±0.02</td></tr><tr><td>TI+SGM</td><td>46.11±1.23</td><td>47.38±0.89</td><td>39.32±0.80</td></tr></table>
|
| 187 |
+
|
| 188 |
+
# 4.2 TRANSFERABILITY AGAINST ROBUSTLY TRAINED MODELS
|
| 189 |
+
|
| 190 |
+
The success rates of our SGM and other baseline methods against the 3 secured target models are reported in Table 5. Overall, with translation adaptation specifically designed for evading adversarially trained models, TI achieves the best standalone transferability, while SGM is the second best with higher success rates than either PGD, MI or DI. When combined with TI, SGM also improves the TI attack by a considerable margin across all transfer scenarios. This indicates that, although manipulating the skip connections alone may not sufficient to attack secured models, it still can make existing attacks more powerful. One interesting observation is that attacks crafted here on RN152 are more transferable than those crafted on DN201, which is quite the opposite to attacking unsecured models.
|
| 191 |
+
|
| 192 |
+
# 4.3 A CLOSER LOOK AT SGM
|
| 193 |
+
|
| 194 |
+
In this part, we conduct more experiments to investigate the gradient decay factor of our proposed SGM, and explore the potential use of SGM for ensemble-based attacks and white-box attacks.
|
| 195 |
+
|
| 196 |
+
Effect of Residual Gradient Decay $\gamma$ . We test the transferability of our proposed SGM with varying decay parameter $\gamma \in \ [ 0 . 1 , 1 . 0 ]$ , where $\gamma = 1 . 0$ means no decay on the residual gradients. The attacks are crafted by 10-step SGM on 5000 random ImageNet validation images. The results against 3 target models (VGG19, SE154 and IncV3) are illustrated in Figure 3. As can be observed, the trends are very consistent against different target models. On DenseNet source models, decreasing decay parameter (increasing decay strength) tends to improve transferability until it exceeds a certain threshold, e.g., $\gamma = 0 . 5$ . This is because the decay encourages the attack to focus on more transferable low-level information, however, it becomes less sufficient if all high-level class-relevant information is ignored. On ResNet source models, decreasing decay parameter can constantly improve transferability for $\gamma \geq 0 . 2$ . Compared to DenseNet source models, ResNets require more decay on the residual gradients. Recalling that skip connections reveal more transferable information of the source model, ResNets require more penalty on the residual gradients to increase the importance of skip gradients that reveal more transferable information of the source model.
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 3: Parameter tuning: the success rates of black-box attacks crafted by 10-step SGM with varying decay parameter $\gamma \in [ 0 . 1 , 1 . 0 ]$ . The solid and dash curves represent results on ResNet and DenseNet source models respectively.
|
| 200 |
+
|
| 201 |
+
Table 6: Multi-step transferability of ensemble-based attack: the success rates ( $\%$ ±std over 5 random runs) of multi-step attacks crafted by different methods on an ensemble of 3 source models (e.g. RN34, RN152 and DN201) against 7 unsecured target models. The best results are in bold.
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td rowspan="2">RN34</td><td>PGD</td><td>86.69±0.20</td><td>99.99±0.01</td><td>99.99±0.02</td><td>69.65±0.71</td><td>65.95±0.35</td><td>59.30±0.32</td><td>53.91±0.40</td></tr><tr><td>TI</td><td>84.35±0.21</td><td>99.59±0.11</td><td>99.77±0.06</td><td>571.67±0.19</td><td>67.22±0.82</td><td></td><td>66.02±0.66 56.83±0.89</td></tr><tr><td>+ RN152</td><td>MI</td><td>92.86±0.19</td><td>99.91±0.04</td><td>99.91±0.06</td><td>86.11±0.38</td><td>83.25±0.35</td><td>79.25±1.16</td><td>76.53±0.66</td></tr><tr><td>+</td><td>DI</td><td>96.34±0.23</td><td>99.84±0.20</td><td>99.84±0.20</td><td>89.72±0.52</td><td>87.53±0.29</td><td>85.04±0.75</td><td>81.11±0.44</td></tr><tr><td rowspan="2">DN201</td><td>SGM</td><td>97.36±0.17</td><td>99.87±0.07</td><td>99.86±0.09</td><td>90.40±0.26</td><td>87.86±0.51</td><td>82.97±0.71</td><td>80.93±0.55</td></tr><tr><td>DI+SGM</td><td>98.65±0.08</td><td>99.84±0.04</td><td>99.86±0.04</td><td>94.36±0.19</td><td>93.08±0.41</td><td>89.56±0.07</td><td>88.27±0.43</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 7: Transferability of ensemble-based attack against secured models: the success rates (%±std over 5 random runs) of black-box attacks crafted on an ensemble of 3 source models (e.g. RN34, RN152 and DN201). The best results are in bold.
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Source</td><td>Attack</td><td>IncV3ens3</td><td>IncVens4</td><td>IncResens3</td></tr><tr><td rowspan="3">RN34 +</td><td>PGD</td><td>37.63±0.37</td><td>32.69±0.62</td><td>23.49±0.55</td></tr><tr><td>TI</td><td>75.04±0.50</td><td>75.94±0.63</td><td>66.24±0.45</td></tr><tr><td>MI</td><td>54.68±0.27</td><td>50.24±0.48</td><td>39.27±0.33</td></tr><tr><td>RN152 +</td><td>DI</td><td>65.29±0.31</td><td>57.48±0.45</td><td>46.41±0.42</td></tr><tr><td rowspan="2">DN201</td><td>SGM</td><td>66.08±0.42</td><td>62.22±0.73</td><td>51.16±0.12</td></tr><tr><td>TI+SGM</td><td>87.65±1.00</td><td>85.11±0.27</td><td>77.75±0.41</td></tr></table>
|
| 208 |
+
|
| 209 |
+
As for the selection of $\gamma$ under a scenario without knowing the target model, from Figure 3 and Appendix C, we can see that the influence of $\gamma$ is more related to the source model rather than the target model, that is, given a source model, the best $\gamma$ against different target models are generally the same. This makes the selection of $\gamma$ quite straightforward: choosing the best $\gamma$ on the source model(s). For instance, in Figure 3, suppose the unknown target model is SE154 (middle figure), the adversary could tune $\gamma$ on source model DN201 to attack VGG19 (left figure) and find the best $\gamma = 0 . 5$ . The attacks crafted on DN201 with $\gamma = 0 . 5$ indeed achieved the best success rate against the SE154 target model (and other target models).
|
| 210 |
+
|
| 211 |
+
Ensemble-based Attacks. It has been shown that attacking multiple source models simultaneously can improve the transferability of the crafted adversarial examples, and is commonly adopted in practice. We follow the ensemble-based strategy (Liu et al., 2017) and craft attacks on an ensemble of RN34, RN152 and DN201. According to the discussion above, we select the best $\gamma$ individually for each source model: choose $\gamma$ for source RN34 and RN152 against target DN201, and $\gamma$ for source DN201 against target RN152. The success rates (transferability) against 7 unsecured models and 3 secured models are reported in Table 6 and Table 7 respectively. Similar to the results of single source model attacks, against unsecured target models, SGM has a similar standalone performance with DI, better than the others (except the two “white-box” scenarios against RN152 and DN201). When combined with other methods, e.g. DI, it improves the success rates again by a large margin.
|
| 212 |
+
|
| 213 |
+

|
| 214 |
+
Figure 4: White-box success rate for FGSM versus SGM. In (b) and (c), each color corresponds to one model, with FGSM is represented by solid curve and SGM is represented by dashed curve.
|
| 215 |
+
|
| 216 |
+
Against secured models, SGM achieves the second best standalone transferability, with TI is still the best. When combined with TI, SGM improves the success rate by $\sim 1 0 \%$ consistently against all secured target models. In particular, against $\mathrm { I n c V } 3 _ { e n s 3 }$ , $\mathrm { T I } { + } \mathrm { S G M }$ achieves higher success rate $( 8 7 . 6 5 \% )$ than reported in (Dong et al., 2019) $( 8 4 . 8 \% )$ , even if only 3 source models are used here and the source models (e.g. RN34, RN152 and DN201) are all of different architecture to IncV3 target model ((Dong et al., 2019) uses 6 source models including even the IncV3 model). From all aspects analyzed above, the existence of skip connections makes transferable attacks much easier to craft in practice.
|
| 217 |
+
|
| 218 |
+
Improving Weak White-box Attacks. In addition to the black-box transferability, we next show that SGM can also improve the weak (one-step) white-box attack FGSM. Note that the one-step version of SGM is equivalent to FGSM plus residual gradient decay. Our experiments are conducted on the 8 source models, and the white-box success rates under maximum $L _ { \infty }$ perturbation $\epsilon = 8$ (a typical white-box setting) are shown in Figure 4a. As can be observed, using SGM can help improve the adversarial strength (i.e., higher success rate). We then vary the maximum perturbation $\epsilon \dot { \in } [ 1 , 6 4 ]$ , and show the results on ResNet and DenseNet models separately in Figure 4b and Figure $_ \mathrm { 4 c }$ . Compared to FGSM, SGM can always give better adversarial strength, except when $\epsilon$ is extremely small $( \epsilon \leq 2 )$ ). When the perturbation space becomes infinitely small, the loss landscape within the space becomes flat and the gradient points to the optimal perturbation direction. However, when the perturbation space expands, one-step gradient becomes less accurate due to changes in the loss landscape (success rate decreases as $\epsilon$ increases from 4 to 16), and in this case, the skip gradient which contains more low-level information is more reliable than the residual gradient (the improvement is more significant for $\epsilon \in [ 4 , 1 6 ]$ ). Another interesting observation is that adversarial strength decreases when the model becomes more complex from RN18 to RN152, or DN121 to DN201. This is likely because the loss landscape of complex models is steeper than shallow models, making one-step gradient less reliable.
|
| 219 |
+
|
| 220 |
+
# 5 CONCLUSION
|
| 221 |
+
|
| 222 |
+
In this paper, we have identified a surprising property of the skip connections used by many state-ofthe-art ResNet-like neural networks, that is, they can be easily used to generate highly transferable adversarial examples. To demonstrate this architectural “weakness”, we proposed the Skip Gradient Method (SGM) to craft adversarial examples using more gradients from the skip connections rather than the residual ones, via a decay factor on gradients. We conducted a series of transfer attack experiments with 8 source models and 10 target models including 7 unsecured and 3 secured models, and showed that attacks crafted by SGM have significantly better transferability than those crafted by existing methods. When combined with existing techniques, SGM can also boost state-of-the-art transferability by a huge margin. We believe the high adversarial transferability of skip connections is due to the fact that they expose extra low-level information which is more transferable across different DNNs. Our findings in this paper not only remind researchers in adversarial research to pay attention to the architectural vulnerability of DNNs, but also raise new challenges for secure DNN architecture design.
|
| 223 |
+
|
| 224 |
+
# ACKNOWLEDGEMENT
|
| 225 |
+
|
| 226 |
+
Shu-Tao Xia is supported in part by National Key Research and Development Program of China under Grant 2018YFB1800204, National Natural Science Foundation of China under Grant 61771273, R&D Program of Shenzhen under Grant JCYJ20180508152204044, and research fund of PCL Future Regional Network Facilities for Large-scale Experiments and Applications (PCL2018KP001).
|
| 227 |
+
|
| 228 |
+
# REFERENCES
|
| 229 |
+
|
| 230 |
+
Yang Bai, Yan Feng, Yisen Wang, Tao Dai, Shu-Tao Xia, and Yong Jiang. Hilbert-based generative defense for adversarial examples. In ICCV, 2019.
|
| 231 |
+
|
| 232 |
+
Arjun Nitin Bhagoji, Warren He, Bo Li, and Dawn Song. Practical black-box attacks on deep neural networks using efficient query mechanisms. In ECCV, 2018.
|
| 233 |
+
|
| 234 |
+
Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In S&P, 2017.
|
| 235 |
+
|
| 236 |
+
Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In AISec, 2017.
|
| 237 |
+
|
| 238 |
+
Pin-Yu Chen, Yash Sharma, Huan Zhang, Jinfeng Yi, and Cho-Jui Hsieh. Ead: elastic-net attacks to deep neural networks via adversarial examples. In AAAI, 2018.
|
| 239 |
+
|
| 240 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009.
|
| 241 |
+
|
| 242 |
+
Gavin Weiguang Ding, Luyu Wang, and Xiaomeng Jin. AdverTorch v0.1: An adversarial robustness toolbox based on pytorch. arXiv preprint arXiv:1902.07623, 2019.
|
| 243 |
+
|
| 244 |
+
Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In CVPR, 2018.
|
| 245 |
+
|
| 246 |
+
Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Evading defenses to transferable adversarial examples by translation-invariant attacks. In CVPR, 2019.
|
| 247 |
+
|
| 248 |
+
Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on deep learning models. In CVPR, 2018.
|
| 249 |
+
|
| 250 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2014.
|
| 251 |
+
|
| 252 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016a.
|
| 253 |
+
|
| 254 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016b.
|
| 255 |
+
|
| 256 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018.
|
| 257 |
+
|
| 258 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017.
|
| 259 |
+
|
| 260 |
+
Qian Huang, Isay Katsman, Horace He, Zeqi Gu, Serge Belongie, and Ser-Nam Lim. Enhancing adversarial example transferability with an intermediate level attack. In ICCV, 2019.
|
| 261 |
+
|
| 262 |
+
Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. In ICML, 2018.
|
| 263 |
+
|
| 264 |
+
Nathan Inkawhich, Wei Wen, Hai Helen Li, and Yiran Chen. Feature space perturbations yield more transferable adversarial examples. In CVPR, 2019.
|
| 265 |
+
|
| 266 |
+
Linxi Jiang, Xingjun Ma, Shaoxiang Chen, James Bailey, and Yu-Gang Jiang. Black-box adversarial attacks on video recognition models. In ACM MM, 2019.
|
| 267 |
+
|
| 268 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In ICLR, 2016.
|
| 269 |
+
|
| 270 |
+
Yingwei Li, Song Bai, Yuyin Zhou, Cihang Xie, Zhishuai Zhang, and Alan Yuille. Learning transferable adversarial examples via ghost networks. arXiv preprint arXiv:1812.03413, 2018.
|
| 271 |
+
|
| 272 |
+
Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017.
|
| 273 |
+
|
| 274 |
+
Xingjun Ma, Bo Li, Yisen Wang, Sarah M Erfani, Sudanthi Wijewickrema, Grant Schoenebeck, Dawn Song, Michael E Houle, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In ICLR, 2018.
|
| 275 |
+
|
| 276 |
+
Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu. Understanding adversarial attacks on deep learning based medical image analysis systems. arXiv preprint arXiv:1907.10456, 2019.
|
| 277 |
+
|
| 278 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018.
|
| 279 |
+
|
| 280 |
+
Apostolos Modas, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Sparsefool: a few pixels make a big difference. In CVPR, 2019.
|
| 281 |
+
|
| 282 |
+
Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In EuroS&P, 2016.
|
| 283 |
+
|
| 284 |
+
Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In CCS, 2016.
|
| 285 |
+
|
| 286 |
+
Carl-Johann Simon-Gabriel, Yann Ollivier, Leon Bottou, Bernhard Scholkopf, and David Lopez- ¨ Paz. First-order adversarial vulnerability of neural networks and input dimension. In ICML, 2019.
|
| 287 |
+
|
| 288 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
|
| 289 |
+
|
| 290 |
+
Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. In IEEE Transactions on Evolutionary Computation. IEEE, 2019.
|
| 291 |
+
|
| 292 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2013.
|
| 293 |
+
|
| 294 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016.
|
| 295 |
+
|
| 296 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, 2017.
|
| 297 |
+
|
| 298 |
+
Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \` Daniel. Ensemble adversarial training: Attacks and defenses. In ICLR, 2018.
|
| 299 |
+
|
| 300 |
+
Andreas Veit, Michael J Wilber, and Serge Belongie. Residual networks behave like ensembles of relatively shallow networks. In NeurIPS, 2016.
|
| 301 |
+
|
| 302 |
+
Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu. On the convergence and robustness of adversarial training. In ICML, 2019.
|
| 303 |
+
|
| 304 |
+
Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Quanquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020.
|
| 305 |
+
|
| 306 |
+
Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In CVPR, 2019.
|
| 307 |
+
|
| 308 |
+
Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual trans-´ formations for deep neural networks. In CVPR, 2017.
|
| 309 |
+
|
| 310 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 311 |
+
|
| 312 |
+
# A VISUALIZATION OF ADVERSARIAL EXAMPLES CRAFTED BY SGM
|
| 313 |
+
|
| 314 |
+
In this section, we visualize 6 clean images and their corresponding adversarial examples crafted using our SGM on either a ResNet-152 or a DenseNet201 in Figure 5. These visualization results show that the generated adversarial perturbations are human imperceptible.
|
| 315 |
+
|
| 316 |
+

|
| 317 |
+
Figure 5: Visualization of 6 clean images and their corresponding adversarial examples. The clean images are shown in the top row, adversarial images crafted on ResNet-152 are shown in the middle row, while those crafted on DenseNet-201 are shown in the bottom row. All adversarial images are crafted using our proposed SGM (10-step) under maximum perturbation $\epsilon = 1 6$ .
|
| 318 |
+
|
| 319 |
+
# B COMPARISON WITH PREVIOUSLY PUBLISHED RESULTS
|
| 320 |
+
|
| 321 |
+
In this section, we compare the experimental settings in previous and our works, and discuss some small discrepancies of the baseline performance reported in ours and previous works.
|
| 322 |
+
|
| 323 |
+
Table 8 and 9 summarizes these differences for single-source and ensemble-based attack respectively. Out of all these works (Dong et al., 2018; 2019; Xie et al., 2019), results reported in (Xie et al., 2019) are more complete. Our reported success rate of baseline attacks (e.g. MI and DI) matches that reported in (Xie et al., 2019), sometimes even higher. The slight discrepancy is caused by the difference in experimental settings. Table 10 summarizes the different source models used by baseline attacks, and Table 11 summarizes the difference in dataset, number of test images, input image size, maximum $L _ { \infty }$ perturbation $\epsilon$ , number of attack steps $N$ and attack step size $\alpha$ . Compared to $2 9 9 \times 2 9 9$ image size, here we use a more standard image size $2 2 4 \times 2 2 4$ on ImageNet. The use of smaller input size may reduce the effectiveness of existing attacks (Simon-Gabriel et al., 2019).
|
| 324 |
+
|
| 325 |
+
In another work by Liu et al. (2017), $81 \%$ success rate was reported for optimization-based attack crafted on ResNet-152 against target VGG16, which is higher than our $6 5 . 5 2 \%$ from ResNet-152 to VGG19. This is because they did not restrict the maximum perturbation $\epsilon$ . The root mean square deviation (RMSD) of their attacks is 22.83,which indicates that many pixels are perturbed more than 16 pixel values. In our experiments, the RMSD is 6.29 for PGD, 7.71 for SGM, and 12.55 for MI. This appears to be another reason for the performance discrepancy. Note that the advantage of bounded small perturbation is increasing imperceptibility to human observers (see Figure 5).
|
| 326 |
+
|
| 327 |
+
Table 8: Previously reported attack success rates $( \% )$ of baseline single-source attacks against 6 target models. “-” means no results were reported.
|
| 328 |
+
|
| 329 |
+
<table><tr><td>Reference</td><td>Attack</td><td>IncV3</td><td>IncV4</td><td>IncRes</td><td>IncV3ens3</td><td>IncV3ens4</td><td>IncResens3</td></tr><tr><td rowspan="3">Dong et al. (2018)</td><td>FGSM</td><td>35.0</td><td>28.2</td><td>27.5</td><td>14.6</td><td>13.2</td><td>7.5</td></tr><tr><td>BIM</td><td>26.7</td><td>22.7</td><td>21.2</td><td>9.3</td><td>8.9</td><td>6.2</td></tr><tr><td>MI</td><td>53.6</td><td>48.9</td><td>44.7</td><td>22.1</td><td>21.7</td><td>12.9</td></tr><tr><td rowspan="3">Dong et al. (2019)</td><td>FGSM</td><td>-</td><td>-</td><td>-</td><td>20.2</td><td>17.7</td><td>9.9</td></tr><tr><td>MI</td><td>=</td><td>1</td><td>-</td><td>25.1</td><td>23.7</td><td>13.3</td></tr><tr><td>DI</td><td>-</td><td>-</td><td>-</td><td>40.5</td><td>36.0</td><td>24.1</td></tr><tr><td rowspan="4">Xie et al. (2019)</td><td>FGSM</td><td>34.4</td><td>28.50</td><td>27.1</td><td>12.4</td><td>11.0</td><td>6.0</td></tr><tr><td>PGD</td><td>20.8</td><td>17.2</td><td>14.9</td><td>5.4</td><td>4.6</td><td>2.8</td></tr><tr><td>MI</td><td>50.1</td><td>44.1</td><td>42.2</td><td>18.2</td><td>15.2</td><td>9.0</td></tr><tr><td>DI</td><td>53.8</td><td>49.0</td><td>44.8</td><td>13.0</td><td>11.1</td><td>6.9</td></tr><tr><td rowspan="4">Ours</td><td>FGSM</td><td>26.56</td><td>21.03</td><td>19.10</td><td>1</td><td>-</td><td>1</td></tr><tr><td>PGD</td><td>26.56</td><td>21.03</td><td>19.10</td><td>12.47</td><td>10.72</td><td>6.97</td></tr><tr><td>MI</td><td>50.22</td><td>43.32</td><td>41.71</td><td>24.20</td><td>22.04</td><td>16.10</td></tr><tr><td>DI</td><td>53.95</td><td>47.16</td><td>43.47</td><td>34.84</td><td>29.23</td><td>21.64</td></tr></table>
|
| 330 |
+
|
| 331 |
+
Table 9: Previously reported attack success rates $( \% )$ of ensemble-based baseline attacks against 6 target models. “-” means no results were reported.
|
| 332 |
+
|
| 333 |
+
<table><tr><td>Reference</td><td>Attack</td><td>IncV3</td><td>IncV4</td><td>IncRes</td><td>IncV3ens3</td><td>IncV3ens4</td><td>IncResens3</td></tr><tr><td rowspan="3">Dong et al. (2018)</td><td>FGSM</td><td>45.7</td><td>39.9</td><td>38.8</td><td>15.4</td><td>15.0</td><td>6.4</td></tr><tr><td>BIM</td><td>72.1</td><td>61.0</td><td>54.4</td><td>18.6</td><td>18.7</td><td>9.9</td></tr><tr><td>MI</td><td>87.9</td><td>81.2</td><td>76.5</td><td>37.6</td><td>40.3</td><td>23.3</td></tr><tr><td rowspan="4">Dong et al. (2019)</td><td>FGSM</td><td>-</td><td>-</td><td>-</td><td>27.5</td><td>23.7</td><td>13.4</td></tr><tr><td>MI</td><td></td><td>1</td><td>1</td><td>50.5</td><td>48.3</td><td>32.8</td></tr><tr><td>DI</td><td>-</td><td>-</td><td>-</td><td>66.0</td><td>63.3</td><td>45.9</td></tr><tr><td>TI+DI</td><td>-</td><td>-</td><td>-</td><td>84.8</td><td>82.7</td><td>78.0</td></tr><tr><td rowspan="4">Xie et al. (2019)</td><td>PGD</td><td>43.7</td><td>36.4</td><td>33.3</td><td>12.9</td><td>15.1</td><td>8.8</td></tr><tr><td>MI</td><td>69.9</td><td>67.9</td><td>64.1</td><td>36.3</td><td>35.0</td><td>30.4</td></tr><tr><td>DI</td><td>71.4</td><td>65.9</td><td>64.6</td><td>22.8</td><td>26.1</td><td>15.8</td></tr><tr><td>DI+MI</td><td>80.7</td><td>80.6</td><td>80.7</td><td>44.6</td><td>44.5</td><td>39.4</td></tr><tr><td rowspan="5">Ours</td><td>PGD</td><td>65.95</td><td>59.30</td><td>53.91</td><td>37.63</td><td>32.69</td><td>23.49</td></tr><tr><td>MI</td><td>83.25</td><td>79.25</td><td>76.53</td><td>54.68</td><td>50.24</td><td>39.27</td></tr><tr><td>DI</td><td>87.53</td><td>85.04</td><td>81.11</td><td>65.29</td><td>57.48</td><td>46.41</td></tr><tr><td>DI+SGM</td><td>93.08</td><td>89.56</td><td>88.27</td><td>80.14</td><td>76.52</td><td>66.40</td></tr><tr><td>TI+SGM</td><td>-</td><td>-</td><td>-</td><td>87.65</td><td>85.11</td><td>77.75</td></tr></table>
|
| 334 |
+
|
| 335 |
+
Table 10: Source models used by existing single-source and ensemble-based black-box attacks. “Hold-out” refers to the hold-out target model from the group, with all remaining models are used as source models. Group 1 consists of ResNet-v2-152, IncV3, IncV4 and IncRes, while group 2 consists of ResNet-v2-152, IncV3, IncV4, IncRes, $\mathrm { I n c V } 3 _ { e n s 3 }$ , $\mathrm { I n c V } 3 _ { e n s 4 }$ and $\mathrm { I n c R e s } _ { e n s 3 }$ .
|
| 336 |
+
|
| 337 |
+
<table><tr><td>Reference</td><td>Single-source attack</td><td>Ensemble-basedattack</td></tr><tr><td>Dong et al. (2018)</td><td>ResNet-v2-152</td><td>hold-out from group 1 or group 2</td></tr><tr><td>Dong et al. (2019)</td><td>ResNet-v2-152</td><td>hold-out from group 1</td></tr><tr><td>Xie et al. (2019)</td><td>ResNet-v2-152</td><td>hold-out from group 2</td></tr><tr><td>Ours</td><td>RN152</td><td>RN34+RN152+DN201</td></tr></table>
|
| 338 |
+
|
| 339 |
+
For proper implementation, we use open-source codes and pretrained models for our experiments, e.g., AdverTorch (Ding et al., 2019) for FGSM, PGD and MI, and source/target models from two GitHub repositories†‡§ for all models. We reproduced DI and TI in PyTorch.
|
| 340 |
+
|
| 341 |
+
Table 11: Difference in experimental settings of our work compared to previous works.“NeurIPS 2017” indicates the dataset used for NeurIPS 2017 adversarial competition. : maximum per-pixel perturbation; $N$ : number of attack steps; $\alpha$ : attack step size.
|
| 342 |
+
|
| 343 |
+
<table><tr><td>Reference</td><td>Dataset</td><td>Number</td><td>Input size</td><td>E</td><td>N</td><td>α</td></tr><tr><td>Dong et al. (2018)</td><td>ImageNet</td><td>1000</td><td>299 × 299</td><td>16</td><td>10</td><td>1.6</td></tr><tr><td>Dong et al. (2019)</td><td>NeurIPS 2017</td><td>1000</td><td>299 × 299</td><td>16</td><td>10</td><td>1.6</td></tr><tr><td>Xie et al. (2019)</td><td>ImageNet</td><td>5000</td><td>299×299</td><td>15</td><td>19</td><td>1.0</td></tr><tr><td>Ours</td><td>ImageNet</td><td>5000</td><td>224×224</td><td>16</td><td>10/20</td><td>2.0</td></tr></table>
|
| 344 |
+
|
| 345 |
+
# C TRANSFERABILITY OF DECAY PARAMETER $\gamma$
|
| 346 |
+
|
| 347 |
+
In this section, we study the “transferability” of decay parameter $\gamma$ across different target models. RN152 and DN201 are used as the source model, and the target model are varying to observe trends. As indicated in Figure 6, all black-box target models share the same best selection of $\gamma$ , which makes $\gamma$ selection quite simple. Even if the true target model is unknown, the adversary can tune the gamma for a resnet-like neural network through another model and obtain the best selection as well.
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
Figure 6: “Transferability” of decay parameter: the success rates of black-box attacks crafted by 10-step SGM with varying decay parameter $\gamma \in \ [ 0 . 1 , 1 . 0 ]$ . The curves represent results against different target models respectively.
|
parse/train/BJlRs34Fvr/BJlRs34Fvr_content_list.json
ADDED
|
@@ -0,0 +1,1793 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SKIP CONNECTIONS MATTER: ON THE TRANSFERABILITY OF ADVERSARIAL EXAMPLES GENERATED WITH RESNETS ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
170
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Dongxian $\\mathbf { W _ { u } } ^ { 1 , 3 }$ Yisen $\\mathbf { W a n g } ^ { 2 \\dagger }$ Shu-Tao $\\mathbf { X _ { i a } ^ { \\bullet , 1 , 3 } }$ James Bailey4 Xingjun Ma4 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
193,
|
| 20 |
+
722,
|
| 21 |
+
208
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1Tsinghua University \n2Shanghai Jiao Tong University \n3PCL Research Center of Networks and Communications, Peng Cheng Laboratory \n4The University of Melbourne ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
210,
|
| 31 |
+
725,
|
| 32 |
+
266
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
303,
|
| 43 |
+
544,
|
| 44 |
+
318
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Skip connections are an essential component of current state-of-the-art deep neural networks (DNNs) such as ResNet, WideResNet, DenseNet, and ResNeXt. Despite their huge success in building deeper and more powerful DNNs, we identify a surprising security weakness of skip connections in this paper. Use of skip connections allows easier generation of highly transferable adversarial examples. Specifically, in ResNet-like (with skip connections) neural networks, gradients can backpropagate through either skip connections or residual modules. We find that using more gradients from the skip connections rather than the residual modules according to a decay factor, allows one to craft adversarial examples with high transferability. Our method is termed Skip Gradient Method (SGM). We conduct comprehensive transfer attacks against state-of-the-art DNNs including ResNets, DenseNets, Inceptions, Inception-ResNet, Squeeze-and-Excitation Network (SENet) and robustly trained DNNs. We show that employing SGM on the gradient flow can greatly improve the transferability of crafted attacks in almost all cases. Furthermore, SGM can be easily combined with existing black-box attack techniques, and obtain high improvements over state-of-the-art transferability methods. Our findings not only motivate new research into the architectural vulnerability of DNNs, but also open up further challenges for the design of secure DNN architectures. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
333,
|
| 54 |
+
764,
|
| 55 |
+
590
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
611,
|
| 66 |
+
336,
|
| 67 |
+
626
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "In deep neural networks (DNNs), a skip connection builds a short-cut from a shallow layer to a deep layer by connecting the input of a convolutional block (also known as the residual module) directly to its output. While different layers of a neural network learn different “levels” of features, skip connections can help preserve low-level features and avoid performance degradation when adding more layers. This has been shown to be crucial for building very deep and powerful DNNs such as ResNet (He et al., 2016a;b), WideResNet (Zagoruyko & Komodakis, 2016), DenseNet (Huang et al., 2017) and ResNeXt (Xie et al., 2017). In the meantime, despite their superior performance, DNNs have been found extremely vulnerable to adversarial examples (or attacks), which are input examples slightly perturbed with an intention to fool the network to make a wrong prediction (Szegedy et al., 2013; Goodfellow et al., 2014; Ma et al., 2018; Bai et al., 2019; Wang et al., 2019; 2020). Adversarial examples often appear imperceptible to human observers, and are transferable across different models (Liu et al., 2017). This has raised security concerns on the deployment of DNNs in security critical scenarios, such as face recognition (Sharif et al., 2016), autonomous driving (Evtimov et al., 2018), video analysis (Jiang et al., 2019) and medical diagnosis (Ma et al., 2019). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
636,
|
| 77 |
+
825,
|
| 78 |
+
825
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Adversarial examples can be crafted following either a white-box setting (the adversary has full access to the target model) or a black-box setting (the adversary has no information of the target model). White-box methods such as Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2014), Basic Iterative Method (BIM) (Kurakin et al., 2016), Projected Gradient Decent (PGD) (Madry et al., 2018) and Carlini and Wagner (CW) (Carlini & Wagner, 2017) often suffer from low transferability in a black-box setting, thus posing only limited threats to DNN models which are usually kept secret in practice (Dong et al., 2018; Xie et al., 2019). Several techniques have been proposed to improve the transferability of black-box attacks crafted on a surrogate model, such as momentum boosting (Dong et al., 2018), diverse input (Xie et al., 2019) and translation invariance (Dong et al., 2019). Although these techniques are effective, they (as well as white-box methods) all treat the entire network (either the target model or the surrogate model) as a single component while ignore its inner architectural characteristics. The question of whether or not the DNN architecture itself can expose more transferability of adversarial attacks is an unexplored problem. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
832,
|
| 88 |
+
823,
|
| 89 |
+
900
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/89948fe9f78fd82465425cf0071bf4e77b2e8e2b2ab3eab2c46f940ffe2c3249.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Left: Illustration of the last 3 skip connections (green lines) and residual modules (black boxes) of a ImageNet-trained ResNet-18. Right: The success rate (in the form of “white-box/blackbox”) of adversarial attacks crafted using gradients flowing through either a skip connection (going upwards) or a residual module (going leftwards) at each junction point (circle). Three example backpropagation paths are highlighted in different colors, with the green path skipping over the last two residual modules having the best attack success rate while the red path through all 3 residual modules having the worst attack success rate. The attacks are crafted by BIM on 5000 ImageNet validation images under maximum $L _ { \\infty }$ perturbation $\\epsilon \\ : = \\ : 1 6$ (pixel values are in [0, 255]). The black-box success rate is tested against a VGG19 target model. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
191,
|
| 102 |
+
102,
|
| 103 |
+
805,
|
| 104 |
+
246
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
410,
|
| 114 |
+
825,
|
| 115 |
+
518
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "In this paper, we identify one such weakness about the skip connections used by many state-of-theart DNNs. We first conduct a toy experiment with the BIM attack and ResNet-18 on the ImageNet validation dataset (Deng et al., 2009) to investigate how skip connections affect the adversarial strength of attacks crafted on the network. At each of the last 3 skip connections and residual modules of ResNet-18, we illustrate the success rate of attacks crafted using gradients backpropagate through either the skip connection or the residual module in Figure 1. As can be observed, the success rate drops more drastically whenever using gradients from a residual module instead of the skip connection. This implies that gradients from the skip connections are more vulnerable (high success rate). In addition, we surprisingly find that skip connections expose more transferable information. For example, the black-box success rate was even improved from $5 2 . 5 2 \\%$ to $6 2 . 1 0 \\%$ when the attack skips the last two residual modules (following the path in green color). ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
525,
|
| 125 |
+
825,
|
| 126 |
+
674
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "Motivated by the above observations, in this paper, we propose the Skip Gradient Method (SGM) to generate adversarial examples using gradients more from the skip connections rather than the residual modules. In particular, SGM utilizes a decay factor to reduce gradients from the residual modules. We find that this simple adjustment on the gradient flow can generate highly transferable adversarial examples, and the more skip connections in a network, the more transferable are the crafted attacks. This is in sharp contrast to the design principles (e.g., “going deeper” with skip connections) underpinning many modern DNNs. In particular, our main contributions are: ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
173,
|
| 135 |
+
681,
|
| 136 |
+
825,
|
| 137 |
+
776
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "• We identify one surprising property of skip connections in ResNet-like neural networks, i.e., they allow an easy generation of highly transferable adversarial examples. \n• We propose the Skip Gradient Method (SGM) to craft adversarial examples using gradients more from the skip connections. Using a single decay factor on gradients, SGM is an appealingly simple and generic technique that can be used by any existing gradient-based attack methods. \n• We provide comprehensive transfer attack experiments, from different source models against 10 state-of-the-art DNNs, showing that SGM can greatly improve the transferability of crafted adversarial examples. When combined with existing transfer techniques, SGM improves the state-ofthe-art transferability benchmarks by a large margin. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
173,
|
| 146 |
+
789,
|
| 147 |
+
825,
|
| 148 |
+
924
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 RELATED WORK ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
102,
|
| 159 |
+
344,
|
| 160 |
+
117
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 2
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Existing adversarial attacks can be categorized into two groups: 1) white-box attacks and 2) blackbox attacks. In the white-box setting, the adversary has full access to the parameters of the target model, while in the black-box setting, the target model is kept secret from the adversary. ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
173,
|
| 169 |
+
126,
|
| 170 |
+
825,
|
| 171 |
+
167
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 2
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "2.1 WHITE-BOX ATTACKS ",
|
| 178 |
+
"text_level": 1,
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
175,
|
| 182 |
+
369,
|
| 183 |
+
189
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "Given a clean example $_ { \\textbf { \\em x } }$ with class label $y$ and a target DNN model $f$ , the goal of an adversary is to find an adversarial example $\\mathbf { { x } } _ { a d v }$ that fools the network into making an incorrect prediction (eg. $f ( { \\pmb x } _ { a d v } ) \\neq y )$ , while still remaining in the $\\epsilon$ -ball centered at $_ { \\textbf { \\em x } }$ (eg. $\\| \\pmb { x } _ { a d v } - \\pmb { x } \\| _ { \\infty } \\leq \\bar { \\epsilon } )$ . ",
|
| 190 |
+
"bbox": [
|
| 191 |
+
173,
|
| 192 |
+
196,
|
| 193 |
+
825,
|
| 194 |
+
239
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 2
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "text",
|
| 200 |
+
"text": "Fast Gradient Sign Method (FGSM) (Goodfellow et al., 2014). FGSM perturbs clean example $_ { \\textbf { \\em x } }$ for one step by the amount of $\\epsilon$ along the gradient direction: ",
|
| 201 |
+
"bbox": [
|
| 202 |
+
171,
|
| 203 |
+
244,
|
| 204 |
+
823,
|
| 205 |
+
272
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "equation",
|
| 211 |
+
"img_path": "images/8d64ab0344ffcd26240cb240fda5ca70a20eeb0701be03fe9e3d778006a6e438.jpg",
|
| 212 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { x } _ { a d v } = \\pmb { x } + \\epsilon \\cdot \\mathrm { s i g n } \\big ( \\nabla _ { \\pmb { x } } \\ell ( f ( \\pmb { x } ) , y ) \\big ) . } \\end{array}\n$$",
|
| 213 |
+
"text_format": "latex",
|
| 214 |
+
"bbox": [
|
| 215 |
+
377,
|
| 216 |
+
279,
|
| 217 |
+
620,
|
| 218 |
+
295
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "The Basic Iterative Method (BIM) (Kurakin et al., 2016) is an iterative version of FGSM that perturbs for $T$ steps with step size $\\epsilon / T$ . ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
171,
|
| 227 |
+
300,
|
| 228 |
+
823,
|
| 229 |
+
329
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "Projected Gradient Descent (PGD) (Madry et al., 2018). PGD perturbs normal example $_ { \\textbf { \\em x } }$ for $T$ steps with smaller step size. After each step of perturbation, PGD projects the adversarial example back onto the $\\epsilon$ -ball of $_ { \\textbf { \\em x } }$ , if it goes beyond the $\\epsilon$ -ball: ",
|
| 236 |
+
"bbox": [
|
| 237 |
+
173,
|
| 238 |
+
334,
|
| 239 |
+
825,
|
| 240 |
+
377
|
| 241 |
+
],
|
| 242 |
+
"page_idx": 2
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"type": "equation",
|
| 246 |
+
"img_path": "images/d8287fe52c2380fa68a3a31e0f3c279e44102082c8cd35c56332af58e92a100b.jpg",
|
| 247 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { x } _ { a d v } ^ { t + 1 } = \\Pi _ { \\epsilon } \\big ( \\pmb { x } _ { a d v } ^ { t } + \\alpha \\cdot \\mathrm { s i g n } ( \\nabla _ { \\pmb { x } } \\ell ( f ( \\pmb { x } _ { a d v } ^ { t } ) , y ) ) \\big ) , } \\end{array}\n$$",
|
| 248 |
+
"text_format": "latex",
|
| 249 |
+
"bbox": [
|
| 250 |
+
336,
|
| 251 |
+
382,
|
| 252 |
+
658,
|
| 253 |
+
402
|
| 254 |
+
],
|
| 255 |
+
"page_idx": 2
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"type": "text",
|
| 259 |
+
"text": "where $\\Pi _ { \\epsilon } ( \\cdot )$ is the projection operation. Different to BIM, PGD allows step size $\\alpha > \\epsilon / T$ ",
|
| 260 |
+
"bbox": [
|
| 261 |
+
176,
|
| 262 |
+
407,
|
| 263 |
+
763,
|
| 264 |
+
422
|
| 265 |
+
],
|
| 266 |
+
"page_idx": 2
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"type": "text",
|
| 270 |
+
"text": "There are also other types of white-box attacks including sparsity-based methods such as Jacobianbased Saliency Map Attack (JSMA) (Papernot et al., 2016), sparse attack (Modas et al., 2019), onepixel attack (Su et al., 2019), and optimization-based methods such as Carlini and Wagner (CW) (Carlini & Wagner, 2017) and elastic-net (EAD) (Chen et al., 2018). ",
|
| 271 |
+
"bbox": [
|
| 272 |
+
174,
|
| 273 |
+
429,
|
| 274 |
+
825,
|
| 275 |
+
484
|
| 276 |
+
],
|
| 277 |
+
"page_idx": 2
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"type": "text",
|
| 281 |
+
"text": "2.2 BLACK-BOX ATTACKS ",
|
| 282 |
+
"text_level": 1,
|
| 283 |
+
"bbox": [
|
| 284 |
+
176,
|
| 285 |
+
491,
|
| 286 |
+
369,
|
| 287 |
+
506
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Black-box attacks can be generated by either attacking a surrogate model or using gradient estimation methods in combination with queries to the target model. Gradient estimation methods estimate the gradients of the target model using black-box optimization methods such as Finite Differences (FD) (Chen et al., 2017; Bhagoji et al., 2018) or Natural Evolution Strategies (NES) (Ilyas et al., 2018; Jiang et al., 2019). These methods all require a large number of queries to the target model, which not only reduces efficiency but also potentially exposes the attack. Alternatively, black-box adversarial examples can be crafted on a surrogate model then applied to attack the target model. Although the white-box methods can be directly applied on the surrogate model, they are far less effective in the black-box setting (Dong et al., 2018; Xie et al., 2019). Several transfer techniques have been proposed to improve the transferability of black-box attacks. ",
|
| 294 |
+
"bbox": [
|
| 295 |
+
173,
|
| 296 |
+
512,
|
| 297 |
+
825,
|
| 298 |
+
650
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "Momentum Iterative boosting (MI) (Dong et al., 2018). MI incorporates a momentum term into the gradient to boost the transferability: ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
173,
|
| 307 |
+
655,
|
| 308 |
+
823,
|
| 309 |
+
683
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "equation",
|
| 315 |
+
"img_path": "images/6157f4b88c172666fbec43a63df0b2350b915a9ec072aa2539389b1314e7141f.jpg",
|
| 316 |
+
"text": "$$\n\\begin{array} { r } { \\pmb { x } _ { a d v } ^ { t + 1 } = \\Pi _ { \\epsilon } \\big ( \\pmb { x } _ { a d v } ^ { t } + \\alpha \\cdot \\mathrm { s i g n } ( \\pmb { g } ^ { t + 1 } ) \\big ) , \\pmb { g } ^ { t + 1 } = \\mu \\cdot \\pmb { g } ^ { t } + \\frac { \\nabla _ { \\mathbf { x } } \\ell \\left( f \\left( \\pmb { x } _ { a d v } ^ { t } \\right) , \\pmb { y } \\right) } { \\| \\nabla _ { \\mathbf { x } } \\ell \\left( f \\left( \\pmb { x } _ { a d v } ^ { t } \\right) , \\pmb { y } \\right) \\| _ { 1 } } , } \\end{array}\n$$",
|
| 317 |
+
"text_format": "latex",
|
| 318 |
+
"bbox": [
|
| 319 |
+
246,
|
| 320 |
+
689,
|
| 321 |
+
750,
|
| 322 |
+
724
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "where $g ^ { t }$ is the adversarial gradient at the $t$ -th step, $\\alpha = \\epsilon / T$ is the step size for a total of $T$ steps, $\\mu$ is a decay factor, and $\\| \\cdot \\| _ { 1 }$ is the $L _ { 1 }$ norm. ",
|
| 329 |
+
"bbox": [
|
| 330 |
+
174,
|
| 331 |
+
729,
|
| 332 |
+
823,
|
| 333 |
+
758
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "Diverse Input $\\mathbf { \\Pi } ( \\mathbf { D } \\mathbf { I } )$ (Xie et al., 2019). DI proposes to craft adversarial exampels using gradient with respect to the randomly-transformed input example: ",
|
| 340 |
+
"bbox": [
|
| 341 |
+
171,
|
| 342 |
+
765,
|
| 343 |
+
823,
|
| 344 |
+
792
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "equation",
|
| 350 |
+
"img_path": "images/c06c8e715314122b4576842d9d139a7d15f0bde93c4cc194d80777ba1905afb1.jpg",
|
| 351 |
+
"text": "$$\n\\pmb { x } _ { a d v } ^ { t + 1 } = \\Pi _ { \\epsilon } \\big ( \\pmb { x } _ { a d v } ^ { t } + \\alpha \\cdot \\mathrm { s i g n } \\big ( \\nabla _ { \\pmb { x } } \\ell \\big ( f \\big ( H ( \\pmb { x } _ { a d v } ^ { t } ; p ) \\big ) , y \\big ) \\big ) \\big ) ,\n$$",
|
| 352 |
+
"text_format": "latex",
|
| 353 |
+
"bbox": [
|
| 354 |
+
315,
|
| 355 |
+
799,
|
| 356 |
+
681,
|
| 357 |
+
819
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "where $H ( \\boldsymbol { \\mathbf { x } } _ { a d v } ^ { t } ; \\boldsymbol { p } )$ is a stochastic transformation function on $\\scriptstyle { \\pmb { x } } _ { a d v } ^ { t }$ for a given probability $p$ ",
|
| 364 |
+
"bbox": [
|
| 365 |
+
169,
|
| 366 |
+
824,
|
| 367 |
+
771,
|
| 368 |
+
840
|
| 369 |
+
],
|
| 370 |
+
"page_idx": 2
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"type": "text",
|
| 374 |
+
"text": "Translation Invariant (TI) (Dong et al., 2019). TI targets to evade robustly trained DNNs by generating adversarial examples that are less sensitive to the discriminative regions of the surrogate model. More specifically, $\\mathrm { T I }$ computes the gradients with respect to a set of translated versions of the original input: ",
|
| 375 |
+
"bbox": [
|
| 376 |
+
174,
|
| 377 |
+
844,
|
| 378 |
+
825,
|
| 379 |
+
901
|
| 380 |
+
],
|
| 381 |
+
"page_idx": 2
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"type": "equation",
|
| 385 |
+
"img_path": "images/cd574f93f89df63ceb544a6e24a122c069a8c4acc24182f82096aebd6e467011.jpg",
|
| 386 |
+
"text": "$$\n\\pmb { x } _ { a d v } ^ { t + 1 } = \\Pi _ { \\epsilon } \\bigl ( \\pmb { x } _ { a d v } ^ { t } + \\alpha \\cdot \\mathrm { s i g n } ( W * \\nabla _ { \\pmb { x } } \\ell ( f ( \\pmb { x } _ { a d v } ^ { t } ) , y ) ) \\bigr ) ,\n$$",
|
| 387 |
+
"text_format": "latex",
|
| 388 |
+
"bbox": [
|
| 389 |
+
318,
|
| 390 |
+
906,
|
| 391 |
+
676,
|
| 392 |
+
926
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "where $W$ is a predefined kernel (e.g., uniform, linear, and Gaussian) matrix of size $( 2 k + 1 ) ( 2 k +$ 1) $k$ being the maximal number of pixels to shift). This kernel convolution is equivalent to the weighted sum of gradients over $( 2 k + 1 ) ^ { 2 }$ number of shifted input examples. ",
|
| 399 |
+
"bbox": [
|
| 400 |
+
173,
|
| 401 |
+
103,
|
| 402 |
+
823,
|
| 403 |
+
145
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 3
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "text",
|
| 409 |
+
"text": "Furthermore, there are other studies focusing on intermediate feature representations. For example, Activation Attack (Inkawhich et al., 2019) drives the activation of a specified layer on a given image towards the layer of a target image, to yield a highly transferable targeted example. Intermediate Level Attack (Huang et al., 2019) attempts to fine-tune an existing adversarial example for greater black-box transferability by increasing its perturbation on a pre-specified layer of the source model. ",
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
151,
|
| 413 |
+
825,
|
| 414 |
+
219
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "Although the above transfer techniques are effective, they (including white-box attacks) either 1) treat the network (either the surrogate model or the target model) as a single component or 2) only use the intermediate layer output of the network. In other words, they do not directly consider the effects of different DNN architectural characteristics. Li et al. (2018) investigated the use of skip connections and dropout layers for sampling networks, which generates a huge set of ghost networks to perform an ensemble attack. Here, we focus on the architectural property of skip connections from the gradient view without modifying or generating any extra networks. ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
227,
|
| 424 |
+
825,
|
| 425 |
+
323
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "3 PROPOSED SKIP GRADIENT ATTACK ",
|
| 432 |
+
"text_level": 1,
|
| 433 |
+
"bbox": [
|
| 434 |
+
174,
|
| 435 |
+
330,
|
| 436 |
+
509,
|
| 437 |
+
347
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "In this section, we first introduce the gradient decomposition of skip connection and residual module. Following that, we propose our Skip Gradient Method (SGM), then demonstrate the adversarial transferability property of skip connection via a case study. ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
176,
|
| 446 |
+
356,
|
| 447 |
+
823,
|
| 448 |
+
397
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "3.1 GRADIENT DECOMPOSITION WITH SKIP CONNECTIONS ",
|
| 455 |
+
"text_level": 1,
|
| 456 |
+
"bbox": [
|
| 457 |
+
174,
|
| 458 |
+
404,
|
| 459 |
+
599,
|
| 460 |
+
419
|
| 461 |
+
],
|
| 462 |
+
"page_idx": 3
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"type": "text",
|
| 466 |
+
"text": "In ResNet-like neural networks, a skip connection uses identity mapping to bypass residual layers, allowing data flow from a shallow layer directly to subsequent deep layers. Thus, we can decompose the network into a collection of paths of different lengths (Veit et al., 2016). We denote a skip connection together with its associated residual module as a building block (residual block) of a network. Considering three successive building blocks (eg. $z _ { i + 1 } = z _ { i } + f _ { i + 1 } ( z _ { i } ) )$ in a residual network from input $z _ { \\mathrm { 0 } }$ to output $z _ { 3 }$ , the output $z _ { 3 }$ can be expanded as: ",
|
| 467 |
+
"bbox": [
|
| 468 |
+
173,
|
| 469 |
+
425,
|
| 470 |
+
825,
|
| 471 |
+
508
|
| 472 |
+
],
|
| 473 |
+
"page_idx": 3
|
| 474 |
+
},
|
| 475 |
+
{
|
| 476 |
+
"type": "equation",
|
| 477 |
+
"img_path": "images/b4afc7842942f6a150be39aebffe07d1f892a8d4032eb132b894c8dcf557ada5.jpg",
|
| 478 |
+
"text": "$$\n\\begin{array} { r l } & { z _ { 3 } = z _ { 2 } + f _ { 3 } ( z _ { 2 } ) = [ z _ { 1 } + f _ { 2 } ( z _ { 1 } ) ] + f _ { 3 } ( z _ { 1 } + f _ { 2 } ( z _ { 1 } ) ) } \\\\ & { \\quad = [ z _ { 0 } + f _ { 1 } ( z _ { 0 } ) + f _ { 2 } ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) ] + f _ { 3 } \\big ( ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) + f _ { 2 } ( z _ { 0 } + f _ { 1 } ( z _ { 0 } ) ) \\big ) . } \\end{array}\n$$",
|
| 479 |
+
"text_format": "latex",
|
| 480 |
+
"bbox": [
|
| 481 |
+
228,
|
| 482 |
+
511,
|
| 483 |
+
766,
|
| 484 |
+
550
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 3
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "According to the chain rule in calculus, the gradient of a loss function $\\ell$ with respect to input $z _ { \\mathrm { 0 } }$ can then be decomposed as, ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
176,
|
| 493 |
+
551,
|
| 494 |
+
823,
|
| 495 |
+
580
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "equation",
|
| 501 |
+
"img_path": "images/3746d31c6e7ef3deaccc511c3473155a352180984b4a17b01ac3f962c151529a.jpg",
|
| 502 |
+
"text": "$$\n\\frac { \\partial \\ell } { \\partial z _ { 0 } } = \\frac { \\partial \\ell } { \\partial z _ { 3 } } \\frac { \\partial z _ { 3 } } { \\partial z _ { 2 } } \\frac { \\partial z _ { 2 } } { \\partial z _ { 1 } } \\frac { \\partial z _ { 1 } } { \\partial z _ { 0 } } = \\frac { \\partial \\ell } { \\partial z _ { 3 } } ( 1 + \\frac { \\partial f _ { 3 } } { \\partial z _ { 2 } } ) ( 1 + \\frac { \\partial f _ { 2 } } { \\partial z _ { 1 } } ) ( 1 + \\frac { \\partial f _ { 1 } } { \\partial z _ { 0 } } ) .\n$$",
|
| 503 |
+
"text_format": "latex",
|
| 504 |
+
"bbox": [
|
| 505 |
+
277,
|
| 506 |
+
583,
|
| 507 |
+
720,
|
| 508 |
+
617
|
| 509 |
+
],
|
| 510 |
+
"page_idx": 3
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"type": "text",
|
| 514 |
+
"text": "Extending this toy example to a network with $L$ residual blocks, the gradient can be decomposed from $L$ -th to the $( l + 1 )$ -th $( 0 \\leq l < L )$ ) residual block as, ",
|
| 515 |
+
"bbox": [
|
| 516 |
+
174,
|
| 517 |
+
626,
|
| 518 |
+
823,
|
| 519 |
+
655
|
| 520 |
+
],
|
| 521 |
+
"page_idx": 3
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"type": "equation",
|
| 525 |
+
"img_path": "images/e87816afa62c5f9c8f8a46f0eec78c39e411a0a5f0cf0f81f9fe1e0e171b5f44.jpg",
|
| 526 |
+
"text": "$$\n\\frac { \\partial \\ell } { \\partial \\pmb { x } } = \\frac { \\partial \\ell } { \\partial z _ { L } } \\prod _ { i = l } ^ { L - 1 } \\big ( \\frac { \\partial f _ { i + 1 } } { \\partial z _ { i } } + 1 \\big ) \\frac { \\partial z _ { l } } { \\partial \\pmb { x } } .\n$$",
|
| 527 |
+
"text_format": "latex",
|
| 528 |
+
"bbox": [
|
| 529 |
+
383,
|
| 530 |
+
659,
|
| 531 |
+
614,
|
| 532 |
+
702
|
| 533 |
+
],
|
| 534 |
+
"page_idx": 3
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"type": "text",
|
| 538 |
+
"text": "The example illustrated in Figure 1 is a the above decomposition of a ResNet-18 at the last 3 building blocks $( l = L - 3 )$ . ",
|
| 539 |
+
"bbox": [
|
| 540 |
+
174,
|
| 541 |
+
704,
|
| 542 |
+
825,
|
| 543 |
+
733
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "3.2 SKIP GRADIENT METHOD (SGM) ",
|
| 550 |
+
"text_level": 1,
|
| 551 |
+
"bbox": [
|
| 552 |
+
176,
|
| 553 |
+
739,
|
| 554 |
+
450,
|
| 555 |
+
753
|
| 556 |
+
],
|
| 557 |
+
"page_idx": 3
|
| 558 |
+
},
|
| 559 |
+
{
|
| 560 |
+
"type": "text",
|
| 561 |
+
"text": "In order to use more gradient from the skip connections, here, we introduce a decay parameter into the decomposed gradient to reduce the gradient from the residual modules. Following the decomposition in Equation (8), the “skipped” gradient is, ",
|
| 562 |
+
"bbox": [
|
| 563 |
+
174,
|
| 564 |
+
761,
|
| 565 |
+
825,
|
| 566 |
+
803
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 3
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "equation",
|
| 572 |
+
"img_path": "images/3d77627ff2acda389bf120df9bca12e0af02b1b05beba09101e6ce1eeaba6b4a.jpg",
|
| 573 |
+
"text": "$$\n\\nabla _ { \\pmb { x } } \\ell = \\frac { \\partial \\ell } { \\partial z _ { L } } \\prod _ { i = 0 } ^ { L - 1 } \\big ( \\gamma \\frac { \\partial f _ { i + 1 } } { \\partial z _ { i } } + 1 \\big ) \\frac { \\partial z _ { 0 } } { \\partial \\pmb { x } } ,\n$$",
|
| 574 |
+
"text_format": "latex",
|
| 575 |
+
"bbox": [
|
| 576 |
+
374,
|
| 577 |
+
806,
|
| 578 |
+
622,
|
| 579 |
+
849
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 3
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "where ${ \\boldsymbol { z } } _ { 0 } = { \\boldsymbol { x } }$ is the input of the network, and $\\gamma \\in ( 0 , 1 ]$ is the decay parameter. Accordingly, given a clean example $_ { \\textbf { \\em x } }$ and a DNN model $f$ , an adversarial example can be crafted iteratively by, ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
173,
|
| 588 |
+
853,
|
| 589 |
+
823,
|
| 590 |
+
882
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 3
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "equation",
|
| 596 |
+
"img_path": "images/cc96adf4049f5957637b3b2a37c6c735bf27ce6d5c265b78b1505f1a3e99a8b4.jpg",
|
| 597 |
+
"text": "$$\n\\pmb { x } _ { a d v } ^ { t + 1 } = \\Pi _ { \\epsilon } \\Bigl ( \\pmb { x } _ { a d v } ^ { t } + \\alpha \\cdot \\mathrm { s i g n } \\bigl ( \\frac { \\partial \\ell } { \\partial z _ { L } } \\prod _ { i = 0 } ^ { L - 1 } ( \\gamma \\frac { \\partial f _ { i + 1 } } { \\partial z _ { i } } + 1 ) \\frac { \\partial z _ { 0 } } { \\partial x } \\bigr ) \\Bigr ) .\n$$",
|
| 598 |
+
"text_format": "latex",
|
| 599 |
+
"bbox": [
|
| 600 |
+
297,
|
| 601 |
+
886,
|
| 602 |
+
699,
|
| 603 |
+
928
|
| 604 |
+
],
|
| 605 |
+
"page_idx": 3
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"type": "table",
|
| 609 |
+
"img_path": "images/a24f16087c784b162fcc267993f3aad4dd8e332204f3f51ae70a147ba503903a.jpg",
|
| 610 |
+
"table_caption": [
|
| 611 |
+
"Table 1: The success rates ( $\\%$ ±std over 5 random runs) of black-box attacks (untargeted) crafted by PGD and its “skip gradient” (SGM) version, on different source models against a Inception V3 target model. The best results are in bold. "
|
| 612 |
+
],
|
| 613 |
+
"table_footnote": [],
|
| 614 |
+
"table_body": "<table><tr><td></td><td>RN18 RN34</td><td>RN50 RN101 RN152</td><td>DN121 DN169</td><td>DN201</td></tr><tr><td>PGD</td><td>23.23±0.69 24.38±0.41</td><td>22.80±0.55 22.98±0.83 26.56±0.75</td><td></td><td>30.71±0.60 30.90±0.31 36.01±0.59</td></tr><tr><td>SGM</td><td>28.92±0.45 43.43±0.32</td><td>36.71±0.55 38.38±0.53 44.84±0.14</td><td>57.38±0.14 60.45±0.42 65.48±0.23</td><td></td></tr></table>",
|
| 615 |
+
"bbox": [
|
| 616 |
+
173,
|
| 617 |
+
154,
|
| 618 |
+
828,
|
| 619 |
+
205
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 4
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "SGM is a generic technique that can be easily implemented on any neural network that has skip connections. During the backpropagation process, SGM simply multiplies the decay parameter to the gradient whenever it passes a residual module. Therefore, SGM does not require any computation overhead, and works efficiently even on densely connected networks such as DenseNets. The reduction of residual gradients is accumulated along the backpropagation path, that is, the residual gradients at lower layers will be reduced more times than those at higher layers. This is because, compared to high-level features, low-level features have already been well preserved by skip connections (see feature decompositions in Equation (6)). ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
173,
|
| 628 |
+
227,
|
| 629 |
+
825,
|
| 630 |
+
337
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "3.3 ADVERSARIAL TRANSFERABILITY WITH SKIP CONNECTIONS: A CASE STUDY ",
|
| 637 |
+
"text_level": 1,
|
| 638 |
+
"bbox": [
|
| 639 |
+
176,
|
| 640 |
+
344,
|
| 641 |
+
756,
|
| 642 |
+
358
|
| 643 |
+
],
|
| 644 |
+
"page_idx": 4
|
| 645 |
+
},
|
| 646 |
+
{
|
| 647 |
+
"type": "text",
|
| 648 |
+
"text": "To demonstrate the adversarial transferability of skip connections, we conduct a case study on 10- step PGD, and their corresponding SGM versions, to investigate the success rates of black-box attacks crafted with or without manipulating the skip connections. The black-box attacks are generated on 8 different source (surrogate) models ResNet(RN)-18/34/50/101/152 and DenseNet(DN)- 121/169/201, then applied to attack a Inception V3 target model. All models were trained on ImageNet training set. We randomly select 5000 ImageNet validation images that are correctly classified by all source models, and craft untargeted attacks under maximum $L _ { \\infty }$ perturbation $\\epsilon = 1 6$ , which is a typical black-box setting (Dong et al., 2018; Xie et al., 2019; Dong et al., 2019). The step size of PGD was set to $\\alpha = 2$ , and the decay parameter of SGM was set to $\\gamma = 0 . 5$ . ",
|
| 649 |
+
"bbox": [
|
| 650 |
+
174,
|
| 651 |
+
366,
|
| 652 |
+
825,
|
| 653 |
+
488
|
| 654 |
+
],
|
| 655 |
+
"page_idx": 4
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"type": "text",
|
| 659 |
+
"text": "We run the attack for 5 times with different random seeds, and report the success rates (transferability) of different methods in Table 1. As can be seen, when the skip connections are manipulated with our SGM, the transferability of PGD is greatly improved across all source models. On all source models except RN18, the improvements are more than $1 3 \\%$ . Without SGM, the best transferability against the Inception-V3 target model is $3 5 . 4 8 \\%$ which is achieved by PGD on DN201, however, this is improved further by our proposed SGM to $6 5 . 3 8 \\%$ $( > 2 9 \\%$ gain). This not only highlights the surprising property of skip connections in terms of the generation of highly transferable attacks, but also indicates the significance of this property, as such a huge boost in transferability only takes a single decay factor. ",
|
| 660 |
+
"bbox": [
|
| 661 |
+
173,
|
| 662 |
+
494,
|
| 663 |
+
825,
|
| 664 |
+
617
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "The 8 source models can be interpreted as from 3 ResNet families: 1) RN18/34 are ResNets with normal residual blocks, 2) RN50/101/152 are ResNets with “bottleneck” residual blocks, and 3) DN121/169/201 are densely connected ResNets. Another important observation is that when there are more skip connections in a network within the same ResNet family (e.g., $\\mathrm { R N } 3 4 > \\mathrm { R N } 1 8$ , $\\mathrm { R N } 1 5 2 > \\mathrm { R N } 1 0 1 > \\mathrm { R N } 5 0$ , and $\\mathrm { D N } 2 0 1 > \\mathrm { D N } 1 6 9 > \\mathrm { D N } 1 2 1 )$ , or from ResNets to DenseNets (e.g. $\\mathrm { D N } 1 2 1 / 1 6 9 / 2 0 1 > \\mathrm { R N } 1 8 / 3 4$ and $\\mathrm { D N } 1 2 1 / 1 6 9 / 2 0 1 > \\mathrm { R N } 5 0 / 1 0 1 / 1 5 2 )$ , the crafted adversarial examples become more transferable, especially when the skip connections are manipulated by our SGM. This raises questions about the design principle behind many state-of-the-art DNNs: “going deeper” with techniques like skip connection and $1 \\times 1$ convolution. ",
|
| 671 |
+
"bbox": [
|
| 672 |
+
173,
|
| 673 |
+
623,
|
| 674 |
+
825,
|
| 675 |
+
746
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "4 COMPARISON TO EXISTING TRANSFER ATTACKS ",
|
| 682 |
+
"text_level": 1,
|
| 683 |
+
"bbox": [
|
| 684 |
+
174,
|
| 685 |
+
756,
|
| 686 |
+
611,
|
| 687 |
+
771
|
| 688 |
+
],
|
| 689 |
+
"page_idx": 4
|
| 690 |
+
},
|
| 691 |
+
{
|
| 692 |
+
"type": "text",
|
| 693 |
+
"text": "In this section, we compare the transferability of adversarial examples crafted by our proposed SGM and existing methods on ImageNet against both unsecured and secured target models. ",
|
| 694 |
+
"bbox": [
|
| 695 |
+
171,
|
| 696 |
+
780,
|
| 697 |
+
823,
|
| 698 |
+
808
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 4
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "Baselines. We compare SGM with FGSM, PGD, and 3 state-of-the-art transfer attacks: (1) Momentum Iterative (MI) (Dong et al., 2018), (2) Diverse Input (DI) (Xie et al., 2019), and (3) Transition Invariant (TI) (Dong et al., 2019). Note that the TI attack was originally proposed to attack secured models, although here we include TI to attack both unsecured models and secured models. For TI and our SGM, we test both the one-step and the iterative version, however, the other methods DI and MI only have an iterative version. The iteration step is set to 10 and 20 for unsecured and secured target models respectively. For all iterative methods PGD, TI and our SGM, the step size is set to $\\alpha = 2$ . For our proposed SGM, the decay parameter is set to $\\gamma = 0 . 2$ (0.5) and $\\bar { \\gamma } = 0 . 5$ (0.7) ",
|
| 705 |
+
"bbox": [
|
| 706 |
+
174,
|
| 707 |
+
814,
|
| 708 |
+
825,
|
| 709 |
+
924
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "on ResNet and DenseNet source models in PGD (FGSM) respectively. For simplicity, we utilize SGM to indicate $\\mathrm { F G S M + S G M }$ in one-step attacks, and $\\mathrm { P G D + S G M }$ in multi-step attacks. Other parameters of existing methods are configured as in their original papers. ",
|
| 716 |
+
"bbox": [
|
| 717 |
+
174,
|
| 718 |
+
103,
|
| 719 |
+
823,
|
| 720 |
+
145
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 5
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "text",
|
| 726 |
+
"text": "Threat Model. We adopt a black-box threat model in which adversarial examples are generated by attacking a source model and then applied to attack the target model. The target model is of a different architecture (indicated by the model name) to the source model, expect when the source and target models are of the same architecture, where we directly use the source model as the target model (equivalent to a white-box setting). The attacks are crafted on 5000 randomly selected ImageNet validation images that are classified correctly by all source models, and are repeated for 5 times with different random seeds. For all attack methods, we follow the standard setting (Dong et al., 2018; Xie et al., 2019) to craft untargeted attacks under maximum $L _ { \\infty }$ perturbation $\\epsilon = 1 6$ with respect to pixel values in [0, 255]. ",
|
| 727 |
+
"bbox": [
|
| 728 |
+
174,
|
| 729 |
+
151,
|
| 730 |
+
825,
|
| 731 |
+
275
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 5
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "text",
|
| 737 |
+
"text": "Target Models. We consider two types of target models: 1) unsecured models that are trained on ImageNet training set using traditional training; and 2) secured models trained using adversarial training. For unsecured target model, we choose 7 state-of-the-art DNNs: VGG19 (with batch normalization) (Simonyan & Zisserman, 2015), ResNet-152 (RN152) (He et al., 2016a), DenseNet201 (DN152), 154 layer Squeeze-and-Excitation network (SE154) (Hu et al., 2018), Inception V3 (IncV3) (Szegedy et al., 2016), Inception V4 (IncV3) (Szegedy et al., 2017) and Inception-ResNet V2 (IncResV2) (Szegedy et al., 2017). For secured target models, we consider 3 robustly trained DNNs using ensemble adversarial training (Tramer et al., 2018):\\` $\\mathrm { I n c V } 3 _ { e n s 3 }$ (ensemble of $3 \\ \\mathrm { I n c V 3 }$ networks), $\\mathrm { I n c V } 3 _ { e n s 4 }$ (ensemble of 4 IncV3 networks) and IncRes $\\mathrm { V } 2 _ { e n s 3 }$ (ensemble of 3 IncResV2 networks). ",
|
| 738 |
+
"bbox": [
|
| 739 |
+
173,
|
| 740 |
+
281,
|
| 741 |
+
825,
|
| 742 |
+
416
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 5
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Source Models. We choose 8 different source models from the ResNet family: ResNet(RN)- 18/34/50/101/152 and DenseNet(DN)-121/169/201. Whenever the input size of the source model does not match the target model, we resize the crafted adversarial images to the input size of the target model. For VGG19, ResNet and DenseNet models, images are cropped and resized to $2 2 4 \\times 2 2 4$ , while for Inception/Inception-ResNet models, images are cropped and resized to $2 9 9 \\times 2 9 9$ . ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
422,
|
| 752 |
+
825,
|
| 753 |
+
491
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 5
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "4.1 TRANSFERABILITY AGAINST UNSECURED MODELS ",
|
| 760 |
+
"text_level": 1,
|
| 761 |
+
"bbox": [
|
| 762 |
+
174,
|
| 763 |
+
498,
|
| 764 |
+
571,
|
| 765 |
+
513
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 5
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "We first investigate the transferability of all attack methods against 7 unsecured models, which is to find the best method that can generate the most transferable attacks on one source model against all target models. ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
176,
|
| 774 |
+
521,
|
| 775 |
+
825,
|
| 776 |
+
563
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "text",
|
| 782 |
+
"text": "One-step Transferability. The one-step transferability is measured by the success rate of one-step attacks, as reported in Table 2. Here, we only show the results on two source models: 1) RN152 which is the best ResNet source model with the highest success rate on average against all target models, and 2) DN201 which is the best DenseNet source model. Also note that, when the source and target models are the same, the result represents the white-box success rate. Overall, adversarial examples crafted on DN201 have significantly better transferability than those crafted on RN152, especially for our SGM method. This is because there are $\\sim 3 0 \\times$ more skip connections that can be manipulated by our SGM in DN201 compared to RN152. In comparison to to both FGSM and TI, transferability is improved considerably by SGM in almost all test scenarios, except when transferring from RN152 to VGG19/IncV3/IncV4 where SGM is outperformed by TI. This implies that, when transfereing across different architectures (eg. ResNet VGG/Inception), translation adaptation may help increase the transferability of one-step perturbations. However, this advantage of TI disappears when there are more skip connections, as is the case for the DN201 source model. ",
|
| 783 |
+
"bbox": [
|
| 784 |
+
174,
|
| 785 |
+
569,
|
| 786 |
+
825,
|
| 787 |
+
744
|
| 788 |
+
],
|
| 789 |
+
"page_idx": 5
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"type": "table",
|
| 793 |
+
"img_path": "images/c2ffcf5d9007489fed95a5a624aa0fb7b07925966f8211b1fffc537ebfabfbe0.jpg",
|
| 794 |
+
"table_caption": [
|
| 795 |
+
"Table 2: One-step transferability: the success rates ( $\\% \\pm$ std over 5 random runs) of black-box attacks crafted by different methods on 2 source models against 7 unsecured target models. The best results are in bold. "
|
| 796 |
+
],
|
| 797 |
+
"table_footnote": [],
|
| 798 |
+
"table_body": "<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncResV2</td></tr><tr><td rowspan=\"3\">RN152</td><td>FGSM</td><td>41.96±0.52</td><td>71.53±0.34</td><td>37.49±0.10</td><td>30.00±0.56</td><td>25.66±0.07</td><td>21.55±0.16</td><td>19.90±0.49</td></tr><tr><td>TI</td><td>49.61±0.11</td><td>49.33±0.35</td><td>36.87±0.42</td><td>29.95±0.32</td><td>33.59±0.73</td><td>29.05±0.34</td><td>20.62±0.09</td></tr><tr><td>SGM</td><td>47.54±0.14</td><td>76.90±0.60</td><td>43.73±0.21</td><td>31.16±0.45</td><td>29.41±0.24</td><td>25.11±0.20</td><td>22.63±0.15</td></tr><tr><td rowspan=\"3\">DN201</td><td>FGSM</td><td>49.87±0.17</td><td>38.89±0.29</td><td>81.51±0.33</td><td>34.94±0.53</td><td>31.21±0.47</td><td>27.08±0.23</td><td>23.87±0.45</td></tr><tr><td>TI</td><td>54.37±0.58</td><td>33.49±0.18</td><td>57.71±0.05</td><td>34.46±0.47</td><td>34.45±0.25</td><td>30.17±0.23</td><td>20.36±0.33</td></tr><tr><td>SGM</td><td>56.97±0.25</td><td>47.54±0.14</td><td>87.73±0.76</td><td>42.31±0.67</td><td>37.91±0.56</td><td>32.83±0.38</td><td>29.64±0.25</td></tr></table>",
|
| 799 |
+
"bbox": [
|
| 800 |
+
168,
|
| 801 |
+
820,
|
| 802 |
+
833,
|
| 803 |
+
920
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 5
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "image",
|
| 809 |
+
"img_path": "images/ddd5746ae51d7c4389a483eff0be8007bf1101f993b029921ace4f8de190fd80.jpg",
|
| 810 |
+
"image_caption": [
|
| 811 |
+
"Figure 2: The attack success rates of black-box attacks crafted by different attack methods on 8 source models against 3 unsecured target models: VGG19 (left), SE154 (middle) and IncV3 (right). "
|
| 812 |
+
],
|
| 813 |
+
"image_footnote": [],
|
| 814 |
+
"bbox": [
|
| 815 |
+
181,
|
| 816 |
+
101,
|
| 817 |
+
810,
|
| 818 |
+
209
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 6
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "table",
|
| 824 |
+
"img_path": "images/69c26b17fcba1a9f1aa5fca9f4f4c8e1096eb67fefc3420d0b0d7a44ca003dd1.jpg",
|
| 825 |
+
"table_caption": [
|
| 826 |
+
"Table 3: Multi-step transferability: the success rates ( $\\% \\pm$ std over 5 random runs) of black-box attacks crafted by different methods on 2 source models against 7 unsecured target models. The best results are in bold. "
|
| 827 |
+
],
|
| 828 |
+
"table_footnote": [],
|
| 829 |
+
"table_body": "<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td rowspan=\"5\">RN152</td><td>PGD</td><td>45.03±0.21</td><td>99.91±0.04 51.49±0.51</td><td></td><td>29.35±0.49</td><td>26.56±0.75</td><td>21.03±0.19</td><td>19.10±0.37</td></tr><tr><td>TI</td><td>54.59±0.63</td><td>99.73±0.11</td><td>63.77±0.93</td><td>41.89±0.58 37.97±0.39</td><td></td><td></td><td>36.25±1.13 28.90±0.52</td></tr><tr><td>MI</td><td>65.42±0.60</td><td>99.77±0.02</td><td>75.79±0.69</td><td>53.07±0.44</td><td>50.22±0.07</td><td>43.32±0.27</td><td>41.71±0.36</td></tr><tr><td>DI</td><td>74.01±0.48</td><td>99.90±0.02</td><td>277.81±0.80</td><td>57.49±1.22</td><td>53.95±0.68</td><td>47.16±0.52</td><td>43.47±0.30</td></tr><tr><td>SGM</td><td>79.90±0.69</td><td>99.87±0.03</td><td>81.56±0.35</td><td>61.83±0.17</td><td>57.22±0.51</td><td>48.57±0.09</td><td>45.44±0.36</td></tr><tr><td rowspan=\"5\">DN201</td><td>PGD</td><td>57.61±0.82</td><td>59.84±0.76</td><td>99.89±0.02</td><td>39.78±0.69</td><td>36.01±0.59</td><td>31.76±0.27</td><td>25.92±0.13</td></tr><tr><td>TI</td><td>54.90±0.75</td><td>50.63±1.02</td><td>99.64±0.07</td><td>40.40±0.31</td><td>39.13±0.52</td><td>37.03±1.00</td><td>28.83±0.49</td></tr><tr><td>MI</td><td>75.09±0.80</td><td>76.39±0.61</td><td>99.84±0.05</td><td>64.38±0.69</td><td>59.62±0.36</td><td>54.85±0.56</td><td>50.05±0.25</td></tr><tr><td>DI</td><td>78.11±0.56 78.18±0.91</td><td></td><td>99.81±0.05</td><td>61.75±0.88</td><td>60.04±0.81</td><td>56.15±0.36 49.00±0.83</td><td></td></tr><tr><td>SGM</td><td>82.66±0.29</td><td>86.65±0.50</td><td>99.67±0.08</td><td>72.03±0.53</td><td>65.48±0.23</td><td>58.77±0.78</td><td>54.97±0.25</td></tr></table>",
|
| 830 |
+
"bbox": [
|
| 831 |
+
168,
|
| 832 |
+
321,
|
| 833 |
+
833,
|
| 834 |
+
474
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 6
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Multi-step Transferability. First we provide a detailed study about the transferability of all attack methods from the 8 source models to the 3 representative unsecured target models. We then compare different attack methods on two best source models against all unsecured target models: the best ResNet source model and the best DenseNet source model. The multi-step (e.g., 10 step) transferability from all source models to three representative target models (VGG19, SE154 and IncV3) is illustrated in Figure 2. In all transfer scenarios, our proposed SGM outperforms existing methods consistently on almost all source models except RN18. Adversarial attacks crafted by SGM become more transferable when there are more skip connections in the source model (e.g., from RN18 to DN201). An interesting observation is that, when the target model is shallow such as VGG19 (left figure in Figure 2), shallow source models transfer better, however, when the target model is deep such as SE154 and IncV3 (middle and right figures in Figure 2), deeper source models tend to have better transferability. We suspect this is due to the architectural similarities shared by the target and source models. Note that against the VGG19 target model, the success rate of baseline methods all drop significantly when the ResNet source models become more complex (from RN18 to RN152). The small variations at RN50 and DN121 source models may be caused by the architectural difference between RN18/34 which consist of normal residual blocks, RN50/101/152 which consist of “bottleneck” residual blocks and DN121/169/201 which has dense skip connections. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
173,
|
| 843 |
+
503,
|
| 844 |
+
825,
|
| 845 |
+
733
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 6
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "text",
|
| 851 |
+
"text": "Results for the best source models RN152 and DN201 against unsecured target models are reported in Table 3. The proposed SGM attack outperforms existing methods by a large margin consistently against different target models. Particularly, for transfer $\\mathrm { D N } 2 0 1 \\mathrm { S E } 1 5 4$ (a recent state-of-the-art DNN with only $2 . 2 5 1 \\%$ top-5 error on ImageNet), SGM achieves a success rate of $7 2 . 0 3 \\%$ , which is $> 7 \\%$ and $> 1 0 \\%$ higher than MI and DI respectively. ",
|
| 852 |
+
"bbox": [
|
| 853 |
+
174,
|
| 854 |
+
741,
|
| 855 |
+
823,
|
| 856 |
+
809
|
| 857 |
+
],
|
| 858 |
+
"page_idx": 6
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"type": "text",
|
| 862 |
+
"text": "Combining with Existing Methods. We further demonstrate that the adversarial transferability of skip connections can be exploited in combination with existing techniques. The experiments are conducted on DN201 (the best source model in the above multi-step experiments), and TI attack is excluded as it was originally proposed against secured models and demonstrates limited improvement over PGD against unsecured models. The results are reported in Table $4 ^ { * }$ . The transferability of MI and DI is improved remarkably of $1 1 . 9 8 \\% \\sim 2 1 . 9 8 \\%$ by SGM. When combined with both MI and DI, SGM improves the state-of-the-art $\\left( \\mathrm { M I + D I } \\right)$ transferability by a huge margin consistently against all target models. In particular, SGM pushes the new state-of-the-art to at least $8 0 . 5 2 \\%$ which previously was only $71 \\%$ . This illustrates that skip connections can be easily manipulated to craft highly transferable attacks against many state-of-the-art DNN models. ",
|
| 863 |
+
"bbox": [
|
| 864 |
+
174,
|
| 865 |
+
815,
|
| 866 |
+
825,
|
| 867 |
+
897
|
| 868 |
+
],
|
| 869 |
+
"page_idx": 6
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"type": "table",
|
| 873 |
+
"img_path": "images/821c387e6e42df108d6a92eafb5d0af66ed5071df28136a9ed10a4b715a8502e.jpg",
|
| 874 |
+
"table_caption": [
|
| 875 |
+
"Table 4: Combined with existing methods: the success rates $( \\% )$ of attacks crafted on source model DN201 against 7 unsecured target models. The best results are in bold and $^ +$ indicates improvement. "
|
| 876 |
+
],
|
| 877 |
+
"table_footnote": [],
|
| 878 |
+
"table_body": "<table><tr><td>Attack\\Target</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td>MI</td><td>75.09</td><td>76.39</td><td>99.84</td><td>64.38</td><td>59.62</td><td>54.85</td><td>50.05</td></tr><tr><td>MI+SGM DI</td><td>+12.01 78.11</td><td>+13.24 78.18</td><td>99.52 99.81</td><td>+17.16 61.75</td><td>+21.88 60.04</td><td>+15.57 56.15</td><td>+18.35 49.00</td></tr><tr><td>DI+SGM</td><td>+12.28</td><td>+13.76</td><td>99.52</td><td>+20.92</td><td>+17.66</td><td>+15.78</td><td>+20.20</td></tr><tr><td>MI+DI</td><td>87.16</td><td>87.28</td><td>99.76</td><td>79.80</td><td>76.68</td><td>75.20</td><td>71.05</td></tr><tr><td>MI+DI+SGM</td><td>93.00</td><td>93.92</td><td>99.42</td><td>89.86</td><td>85.72</td><td></td><td>80.50</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td>81.23</td><td></td></tr></table>",
|
| 879 |
+
"bbox": [
|
| 880 |
+
223,
|
| 881 |
+
140,
|
| 882 |
+
769,
|
| 883 |
+
243
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "table",
|
| 889 |
+
"img_path": "images/70b27106a8feddc593e669cab46a342f866414497794a8d92b594e8ba481dbfe.jpg",
|
| 890 |
+
"table_caption": [
|
| 891 |
+
"Table 5: Transferability against secured models: the success rates $\\% \\pm$ std over 5 random runs) of multi-step attacks crafted on RN152 and DN201 source models against 3 secured models. The best results are in bold. "
|
| 892 |
+
],
|
| 893 |
+
"table_footnote": [],
|
| 894 |
+
"table_body": "<table><tr><td>Source</td><td>Attack</td><td>IncV3ens3</td><td>IncVens4</td><td>IncResens3</td></tr><tr><td rowspan=\"2\">RN152</td><td>PGD TI</td><td>12.47±1.27 45.36±0.97</td><td>10.72±1.37 45.81±0.93</td><td>6.97±0.71 38.19±0.81</td></tr><tr><td>MI DI</td><td>24.20±1.15 28.48±1.21</td><td>22.04±0.98 24.19±1.22</td><td>16.10±0.56</td></tr><tr><td rowspan=\"2\"></td><td>SGM</td><td>31.57±0.55</td><td>27.77±0.47</td><td>17.31±0.77 20.02±0.66</td></tr><tr><td>TI+SGM</td><td>52.62±0.40</td><td>52.80±0.79</td><td>43.96±0.62</td></tr><tr><td rowspan=\"2\"></td><td>PGD TI</td><td>18.16±0.56</td><td>15.30±0.62</td><td>10.40±0.49</td></tr><tr><td>MI</td><td>42.76±0.91</td><td>42.01±0.79</td><td>34.28±0.88</td></tr><tr><td rowspan=\"4\">DN201</td><td>DI</td><td>31.79±0.83</td><td>28.21±0.15</td><td>20.60±0.38</td></tr><tr><td></td><td>34.84±1.35</td><td>29.23±0.83</td><td>21.64±0.80</td></tr><tr><td>SGM</td><td>41.45±0.30</td><td>37.85±0.22</td><td>29.41±0.02</td></tr><tr><td>TI+SGM</td><td>46.11±1.23</td><td>47.38±0.89</td><td>39.32±0.80</td></tr></table>",
|
| 895 |
+
"bbox": [
|
| 896 |
+
289,
|
| 897 |
+
309,
|
| 898 |
+
705,
|
| 899 |
+
492
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 7
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
518,
|
| 909 |
+
825,
|
| 910 |
+
574
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 7
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "4.2 TRANSFERABILITY AGAINST ROBUSTLY TRAINED MODELS ",
|
| 917 |
+
"text_level": 1,
|
| 918 |
+
"bbox": [
|
| 919 |
+
174,
|
| 920 |
+
580,
|
| 921 |
+
627,
|
| 922 |
+
594
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 7
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "The success rates of our SGM and other baseline methods against the 3 secured target models are reported in Table 5. Overall, with translation adaptation specifically designed for evading adversarially trained models, TI achieves the best standalone transferability, while SGM is the second best with higher success rates than either PGD, MI or DI. When combined with TI, SGM also improves the TI attack by a considerable margin across all transfer scenarios. This indicates that, although manipulating the skip connections alone may not sufficient to attack secured models, it still can make existing attacks more powerful. One interesting observation is that attacks crafted here on RN152 are more transferable than those crafted on DN201, which is quite the opposite to attacking unsecured models. ",
|
| 929 |
+
"bbox": [
|
| 930 |
+
173,
|
| 931 |
+
602,
|
| 932 |
+
825,
|
| 933 |
+
724
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 7
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "4.3 A CLOSER LOOK AT SGM ",
|
| 940 |
+
"text_level": 1,
|
| 941 |
+
"bbox": [
|
| 942 |
+
176,
|
| 943 |
+
732,
|
| 944 |
+
398,
|
| 945 |
+
746
|
| 946 |
+
],
|
| 947 |
+
"page_idx": 7
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"type": "text",
|
| 951 |
+
"text": "In this part, we conduct more experiments to investigate the gradient decay factor of our proposed SGM, and explore the potential use of SGM for ensemble-based attacks and white-box attacks. ",
|
| 952 |
+
"bbox": [
|
| 953 |
+
173,
|
| 954 |
+
753,
|
| 955 |
+
823,
|
| 956 |
+
781
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 7
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "Effect of Residual Gradient Decay $\\gamma$ . We test the transferability of our proposed SGM with varying decay parameter $\\gamma \\in \\ [ 0 . 1 , 1 . 0 ]$ , where $\\gamma = 1 . 0$ means no decay on the residual gradients. The attacks are crafted by 10-step SGM on 5000 random ImageNet validation images. The results against 3 target models (VGG19, SE154 and IncV3) are illustrated in Figure 3. As can be observed, the trends are very consistent against different target models. On DenseNet source models, decreasing decay parameter (increasing decay strength) tends to improve transferability until it exceeds a certain threshold, e.g., $\\gamma = 0 . 5$ . This is because the decay encourages the attack to focus on more transferable low-level information, however, it becomes less sufficient if all high-level class-relevant information is ignored. On ResNet source models, decreasing decay parameter can constantly improve transferability for $\\gamma \\geq 0 . 2$ . Compared to DenseNet source models, ResNets require more decay on the residual gradients. Recalling that skip connections reveal more transferable information of the source model, ResNets require more penalty on the residual gradients to increase the importance of skip gradients that reveal more transferable information of the source model. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
787,
|
| 966 |
+
825,
|
| 967 |
+
924
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 7
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "image",
|
| 973 |
+
"img_path": "images/77df147172ccb0b33b337486c0853bc3dac36248c6d98f8856e7b9983faf5869.jpg",
|
| 974 |
+
"image_caption": [
|
| 975 |
+
"Figure 3: Parameter tuning: the success rates of black-box attacks crafted by 10-step SGM with varying decay parameter $\\gamma \\in [ 0 . 1 , 1 . 0 ]$ . The solid and dash curves represent results on ResNet and DenseNet source models respectively. "
|
| 976 |
+
],
|
| 977 |
+
"image_footnote": [],
|
| 978 |
+
"bbox": [
|
| 979 |
+
181,
|
| 980 |
+
99,
|
| 981 |
+
812,
|
| 982 |
+
210
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 8
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "table",
|
| 988 |
+
"img_path": "images/d36bd178b49149c10430fadf9ae1c68a9032c061bbb4bec53b3f863a91e245f2.jpg",
|
| 989 |
+
"table_caption": [
|
| 990 |
+
"Table 6: Multi-step transferability of ensemble-based attack: the success rates ( $\\%$ ±std over 5 random runs) of multi-step attacks crafted by different methods on an ensemble of 3 source models (e.g. RN34, RN152 and DN201) against 7 unsecured target models. The best results are in bold. "
|
| 991 |
+
],
|
| 992 |
+
"table_footnote": [],
|
| 993 |
+
"table_body": "<table><tr><td>Source</td><td>Attack</td><td>VGG19</td><td>RN152</td><td>DN201</td><td>SE154</td><td>IncV3</td><td>IncV4</td><td>IncRes</td></tr><tr><td rowspan=\"2\">RN34</td><td>PGD</td><td>86.69±0.20</td><td>99.99±0.01</td><td>99.99±0.02</td><td>69.65±0.71</td><td>65.95±0.35</td><td>59.30±0.32</td><td>53.91±0.40</td></tr><tr><td>TI</td><td>84.35±0.21</td><td>99.59±0.11</td><td>99.77±0.06</td><td>571.67±0.19</td><td>67.22±0.82</td><td></td><td>66.02±0.66 56.83±0.89</td></tr><tr><td>+ RN152</td><td>MI</td><td>92.86±0.19</td><td>99.91±0.04</td><td>99.91±0.06</td><td>86.11±0.38</td><td>83.25±0.35</td><td>79.25±1.16</td><td>76.53±0.66</td></tr><tr><td>+</td><td>DI</td><td>96.34±0.23</td><td>99.84±0.20</td><td>99.84±0.20</td><td>89.72±0.52</td><td>87.53±0.29</td><td>85.04±0.75</td><td>81.11±0.44</td></tr><tr><td rowspan=\"2\">DN201</td><td>SGM</td><td>97.36±0.17</td><td>99.87±0.07</td><td>99.86±0.09</td><td>90.40±0.26</td><td>87.86±0.51</td><td>82.97±0.71</td><td>80.93±0.55</td></tr><tr><td>DI+SGM</td><td>98.65±0.08</td><td>99.84±0.04</td><td>99.86±0.04</td><td>94.36±0.19</td><td>93.08±0.41</td><td>89.56±0.07</td><td>88.27±0.43</td></tr></table>",
|
| 994 |
+
"bbox": [
|
| 995 |
+
161,
|
| 996 |
+
334,
|
| 997 |
+
843,
|
| 998 |
+
433
|
| 999 |
+
],
|
| 1000 |
+
"page_idx": 8
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"type": "table",
|
| 1004 |
+
"img_path": "images/180ed7f6ae99cffeddb5918970b5bef0e4367234eae6f55e3ef3883633289abf.jpg",
|
| 1005 |
+
"table_caption": [
|
| 1006 |
+
"Table 7: Transferability of ensemble-based attack against secured models: the success rates (%±std over 5 random runs) of black-box attacks crafted on an ensemble of 3 source models (e.g. RN34, RN152 and DN201). The best results are in bold. "
|
| 1007 |
+
],
|
| 1008 |
+
"table_footnote": [],
|
| 1009 |
+
"table_body": "<table><tr><td>Source</td><td>Attack</td><td>IncV3ens3</td><td>IncVens4</td><td>IncResens3</td></tr><tr><td rowspan=\"3\">RN34 +</td><td>PGD</td><td>37.63±0.37</td><td>32.69±0.62</td><td>23.49±0.55</td></tr><tr><td>TI</td><td>75.04±0.50</td><td>75.94±0.63</td><td>66.24±0.45</td></tr><tr><td>MI</td><td>54.68±0.27</td><td>50.24±0.48</td><td>39.27±0.33</td></tr><tr><td>RN152 +</td><td>DI</td><td>65.29±0.31</td><td>57.48±0.45</td><td>46.41±0.42</td></tr><tr><td rowspan=\"2\">DN201</td><td>SGM</td><td>66.08±0.42</td><td>62.22±0.73</td><td>51.16±0.12</td></tr><tr><td>TI+SGM</td><td>87.65±1.00</td><td>85.11±0.27</td><td>77.75±0.41</td></tr></table>",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
289,
|
| 1012 |
+
500,
|
| 1013 |
+
704,
|
| 1014 |
+
598
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
176,
|
| 1023 |
+
625,
|
| 1024 |
+
823,
|
| 1025 |
+
665
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "As for the selection of $\\gamma$ under a scenario without knowing the target model, from Figure 3 and Appendix C, we can see that the influence of $\\gamma$ is more related to the source model rather than the target model, that is, given a source model, the best $\\gamma$ against different target models are generally the same. This makes the selection of $\\gamma$ quite straightforward: choosing the best $\\gamma$ on the source model(s). For instance, in Figure 3, suppose the unknown target model is SE154 (middle figure), the adversary could tune $\\gamma$ on source model DN201 to attack VGG19 (left figure) and find the best $\\gamma = 0 . 5$ . The attacks crafted on DN201 with $\\gamma = 0 . 5$ indeed achieved the best success rate against the SE154 target model (and other target models). ",
|
| 1032 |
+
"bbox": [
|
| 1033 |
+
173,
|
| 1034 |
+
671,
|
| 1035 |
+
825,
|
| 1036 |
+
781
|
| 1037 |
+
],
|
| 1038 |
+
"page_idx": 8
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"type": "text",
|
| 1042 |
+
"text": "Ensemble-based Attacks. It has been shown that attacking multiple source models simultaneously can improve the transferability of the crafted adversarial examples, and is commonly adopted in practice. We follow the ensemble-based strategy (Liu et al., 2017) and craft attacks on an ensemble of RN34, RN152 and DN201. According to the discussion above, we select the best $\\gamma$ individually for each source model: choose $\\gamma$ for source RN34 and RN152 against target DN201, and $\\gamma$ for source DN201 against target RN152. The success rates (transferability) against 7 unsecured models and 3 secured models are reported in Table 6 and Table 7 respectively. Similar to the results of single source model attacks, against unsecured target models, SGM has a similar standalone performance with DI, better than the others (except the two “white-box” scenarios against RN152 and DN201). When combined with other methods, e.g. DI, it improves the success rates again by a large margin. ",
|
| 1043 |
+
"bbox": [
|
| 1044 |
+
173,
|
| 1045 |
+
787,
|
| 1046 |
+
825,
|
| 1047 |
+
924
|
| 1048 |
+
],
|
| 1049 |
+
"page_idx": 8
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"type": "image",
|
| 1053 |
+
"img_path": "images/fd7af6e1000782748912c2d39b08b3926209699706aa20993c284144c2df03b2.jpg",
|
| 1054 |
+
"image_caption": [
|
| 1055 |
+
"Figure 4: White-box success rate for FGSM versus SGM. In (b) and (c), each color corresponds to one model, with FGSM is represented by solid curve and SGM is represented by dashed curve. "
|
| 1056 |
+
],
|
| 1057 |
+
"image_footnote": [],
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
179,
|
| 1060 |
+
99,
|
| 1061 |
+
812,
|
| 1062 |
+
226
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 9
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "Against secured models, SGM achieves the second best standalone transferability, with TI is still the best. When combined with TI, SGM improves the success rate by $\\sim 1 0 \\%$ consistently against all secured target models. In particular, against $\\mathrm { I n c V } 3 _ { e n s 3 }$ , $\\mathrm { T I } { + } \\mathrm { S G M }$ achieves higher success rate $( 8 7 . 6 5 \\% )$ than reported in (Dong et al., 2019) $( 8 4 . 8 \\% )$ , even if only 3 source models are used here and the source models (e.g. RN34, RN152 and DN201) are all of different architecture to IncV3 target model ((Dong et al., 2019) uses 6 source models including even the IncV3 model). From all aspects analyzed above, the existence of skip connections makes transferable attacks much easier to craft in practice. ",
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
174,
|
| 1071 |
+
277,
|
| 1072 |
+
825,
|
| 1073 |
+
386
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 9
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "Improving Weak White-box Attacks. In addition to the black-box transferability, we next show that SGM can also improve the weak (one-step) white-box attack FGSM. Note that the one-step version of SGM is equivalent to FGSM plus residual gradient decay. Our experiments are conducted on the 8 source models, and the white-box success rates under maximum $L _ { \\infty }$ perturbation $\\epsilon = 8$ (a typical white-box setting) are shown in Figure 4a. As can be observed, using SGM can help improve the adversarial strength (i.e., higher success rate). We then vary the maximum perturbation $\\epsilon \\dot { \\in } [ 1 , 6 4 ]$ , and show the results on ResNet and DenseNet models separately in Figure 4b and Figure $_ \\mathrm { 4 c }$ . Compared to FGSM, SGM can always give better adversarial strength, except when $\\epsilon$ is extremely small $( \\epsilon \\leq 2 )$ ). When the perturbation space becomes infinitely small, the loss landscape within the space becomes flat and the gradient points to the optimal perturbation direction. However, when the perturbation space expands, one-step gradient becomes less accurate due to changes in the loss landscape (success rate decreases as $\\epsilon$ increases from 4 to 16), and in this case, the skip gradient which contains more low-level information is more reliable than the residual gradient (the improvement is more significant for $\\epsilon \\in [ 4 , 1 6 ]$ ). Another interesting observation is that adversarial strength decreases when the model becomes more complex from RN18 to RN152, or DN121 to DN201. This is likely because the loss landscape of complex models is steeper than shallow models, making one-step gradient less reliable. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
393,
|
| 1083 |
+
825,
|
| 1084 |
+
625
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 9
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "text",
|
| 1090 |
+
"text": "5 CONCLUSION ",
|
| 1091 |
+
"text_level": 1,
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
176,
|
| 1094 |
+
633,
|
| 1095 |
+
318,
|
| 1096 |
+
648
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 9
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "In this paper, we have identified a surprising property of the skip connections used by many state-ofthe-art ResNet-like neural networks, that is, they can be easily used to generate highly transferable adversarial examples. To demonstrate this architectural “weakness”, we proposed the Skip Gradient Method (SGM) to craft adversarial examples using more gradients from the skip connections rather than the residual ones, via a decay factor on gradients. We conducted a series of transfer attack experiments with 8 source models and 10 target models including 7 unsecured and 3 secured models, and showed that attacks crafted by SGM have significantly better transferability than those crafted by existing methods. When combined with existing techniques, SGM can also boost state-of-the-art transferability by a huge margin. We believe the high adversarial transferability of skip connections is due to the fact that they expose extra low-level information which is more transferable across different DNNs. Our findings in this paper not only remind researchers in adversarial research to pay attention to the architectural vulnerability of DNNs, but also raise new challenges for secure DNN architecture design. ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
174,
|
| 1105 |
+
659,
|
| 1106 |
+
825,
|
| 1107 |
+
834
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 9
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "text",
|
| 1113 |
+
"text": "ACKNOWLEDGEMENT ",
|
| 1114 |
+
"text_level": 1,
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
176,
|
| 1117 |
+
845,
|
| 1118 |
+
357,
|
| 1119 |
+
859
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 9
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "text",
|
| 1125 |
+
"text": "Shu-Tao Xia is supported in part by National Key Research and Development Program of China under Grant 2018YFB1800204, National Natural Science Foundation of China under Grant 61771273, R&D Program of Shenzhen under Grant JCYJ20180508152204044, and research fund of PCL Future Regional Network Facilities for Large-scale Experiments and Applications (PCL2018KP001). ",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
174,
|
| 1128 |
+
869,
|
| 1129 |
+
823,
|
| 1130 |
+
924
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 9
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "REFERENCES ",
|
| 1137 |
+
"text_level": 1,
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
176,
|
| 1140 |
+
102,
|
| 1141 |
+
287,
|
| 1142 |
+
118
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 10
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Yang Bai, Yan Feng, Yisen Wang, Tao Dai, Shu-Tao Xia, and Yong Jiang. Hilbert-based generative defense for adversarial examples. In ICCV, 2019. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
173,
|
| 1151 |
+
126,
|
| 1152 |
+
823,
|
| 1153 |
+
155
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 10
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Arjun Nitin Bhagoji, Warren He, Bo Li, and Dawn Song. Practical black-box attacks on deep neural networks using efficient query mechanisms. In ECCV, 2018. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
171,
|
| 1162 |
+
164,
|
| 1163 |
+
823,
|
| 1164 |
+
193
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 10
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In S&P, 2017. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
171,
|
| 1173 |
+
202,
|
| 1174 |
+
823,
|
| 1175 |
+
231
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 10
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "Pin-Yu Chen, Huan Zhang, Yash Sharma, Jinfeng Yi, and Cho-Jui Hsieh. Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In AISec, 2017. ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
173,
|
| 1184 |
+
239,
|
| 1185 |
+
823,
|
| 1186 |
+
281
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 10
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "Pin-Yu Chen, Yash Sharma, Huan Zhang, Jinfeng Yi, and Cho-Jui Hsieh. Ead: elastic-net attacks to deep neural networks via adversarial examples. In AAAI, 2018. ",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
169,
|
| 1195 |
+
290,
|
| 1196 |
+
823,
|
| 1197 |
+
320
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 10
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. ",
|
| 1204 |
+
"bbox": [
|
| 1205 |
+
171,
|
| 1206 |
+
328,
|
| 1207 |
+
823,
|
| 1208 |
+
358
|
| 1209 |
+
],
|
| 1210 |
+
"page_idx": 10
|
| 1211 |
+
},
|
| 1212 |
+
{
|
| 1213 |
+
"type": "text",
|
| 1214 |
+
"text": "Gavin Weiguang Ding, Luyu Wang, and Xiaomeng Jin. AdverTorch v0.1: An adversarial robustness toolbox based on pytorch. arXiv preprint arXiv:1902.07623, 2019. ",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
173,
|
| 1217 |
+
366,
|
| 1218 |
+
823,
|
| 1219 |
+
396
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 10
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "Yinpeng Dong, Fangzhou Liao, Tianyu Pang, Hang Su, Jun Zhu, Xiaolin Hu, and Jianguo Li. Boosting adversarial attacks with momentum. In CVPR, 2018. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
174,
|
| 1228 |
+
404,
|
| 1229 |
+
823,
|
| 1230 |
+
433
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 10
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "Yinpeng Dong, Tianyu Pang, Hang Su, and Jun Zhu. Evading defenses to transferable adversarial examples by translation-invariant attacks. In CVPR, 2019. ",
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
173,
|
| 1239 |
+
441,
|
| 1240 |
+
823,
|
| 1241 |
+
470
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 10
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "Ivan Evtimov, Kevin Eykholt, Earlence Fernandes, Tadayoshi Kohno, Bo Li, Atul Prakash, Amir Rahmati, and Dawn Song. Robust physical-world attacks on deep learning models. In CVPR, 2018. ",
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
174,
|
| 1250 |
+
479,
|
| 1251 |
+
823,
|
| 1252 |
+
522
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 10
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "text",
|
| 1258 |
+
"text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In ICLR, 2014. ",
|
| 1259 |
+
"bbox": [
|
| 1260 |
+
173,
|
| 1261 |
+
530,
|
| 1262 |
+
823,
|
| 1263 |
+
560
|
| 1264 |
+
],
|
| 1265 |
+
"page_idx": 10
|
| 1266 |
+
},
|
| 1267 |
+
{
|
| 1268 |
+
"type": "text",
|
| 1269 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016a. ",
|
| 1270 |
+
"bbox": [
|
| 1271 |
+
173,
|
| 1272 |
+
568,
|
| 1273 |
+
821,
|
| 1274 |
+
598
|
| 1275 |
+
],
|
| 1276 |
+
"page_idx": 10
|
| 1277 |
+
},
|
| 1278 |
+
{
|
| 1279 |
+
"type": "text",
|
| 1280 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016b. ",
|
| 1281 |
+
"bbox": [
|
| 1282 |
+
174,
|
| 1283 |
+
606,
|
| 1284 |
+
821,
|
| 1285 |
+
636
|
| 1286 |
+
],
|
| 1287 |
+
"page_idx": 10
|
| 1288 |
+
},
|
| 1289 |
+
{
|
| 1290 |
+
"type": "text",
|
| 1291 |
+
"text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In CVPR, 2018. ",
|
| 1292 |
+
"bbox": [
|
| 1293 |
+
173,
|
| 1294 |
+
643,
|
| 1295 |
+
718,
|
| 1296 |
+
660
|
| 1297 |
+
],
|
| 1298 |
+
"page_idx": 10
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"type": "text",
|
| 1302 |
+
"text": "Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In CVPR, 2017. ",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
171,
|
| 1305 |
+
667,
|
| 1306 |
+
821,
|
| 1307 |
+
698
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 10
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "Qian Huang, Isay Katsman, Horace He, Zeqi Gu, Serge Belongie, and Ser-Nam Lim. Enhancing adversarial example transferability with an intermediate level attack. In ICCV, 2019. ",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
173,
|
| 1316 |
+
705,
|
| 1317 |
+
823,
|
| 1318 |
+
736
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 10
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "Andrew Ilyas, Logan Engstrom, Anish Athalye, and Jessy Lin. Black-box adversarial attacks with limited queries and information. In ICML, 2018. ",
|
| 1325 |
+
"bbox": [
|
| 1326 |
+
173,
|
| 1327 |
+
744,
|
| 1328 |
+
821,
|
| 1329 |
+
773
|
| 1330 |
+
],
|
| 1331 |
+
"page_idx": 10
|
| 1332 |
+
},
|
| 1333 |
+
{
|
| 1334 |
+
"type": "text",
|
| 1335 |
+
"text": "Nathan Inkawhich, Wei Wen, Hai Helen Li, and Yiran Chen. Feature space perturbations yield more transferable adversarial examples. In CVPR, 2019. ",
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
174,
|
| 1338 |
+
781,
|
| 1339 |
+
821,
|
| 1340 |
+
810
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "Linxi Jiang, Xingjun Ma, Shaoxiang Chen, James Bailey, and Yu-Gang Jiang. Black-box adversarial attacks on video recognition models. In ACM MM, 2019. ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
173,
|
| 1349 |
+
819,
|
| 1350 |
+
821,
|
| 1351 |
+
848
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 10
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial examples in the physical world. In ICLR, 2016. ",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
176,
|
| 1360 |
+
858,
|
| 1361 |
+
821,
|
| 1362 |
+
886
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 10
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "Yingwei Li, Song Bai, Yuyin Zhou, Cihang Xie, Zhishuai Zhang, and Alan Yuille. Learning transferable adversarial examples via ghost networks. arXiv preprint arXiv:1812.03413, 2018. ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
174,
|
| 1371 |
+
895,
|
| 1372 |
+
820,
|
| 1373 |
+
924
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 10
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "text",
|
| 1379 |
+
"text": "Yanpei Liu, Xinyun Chen, Chang Liu, and Dawn Song. Delving into transferable adversarial examples and black-box attacks. In ICLR, 2017. ",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
173,
|
| 1382 |
+
103,
|
| 1383 |
+
823,
|
| 1384 |
+
132
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 11
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "Xingjun Ma, Bo Li, Yisen Wang, Sarah M Erfani, Sudanthi Wijewickrema, Grant Schoenebeck, Dawn Song, Michael E Houle, and James Bailey. Characterizing adversarial subspaces using local intrinsic dimensionality. In ICLR, 2018. ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
178,
|
| 1393 |
+
140,
|
| 1394 |
+
821,
|
| 1395 |
+
183
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 11
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "text",
|
| 1401 |
+
"text": "Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu. Understanding adversarial attacks on deep learning based medical image analysis systems. arXiv preprint arXiv:1907.10456, 2019. ",
|
| 1402 |
+
"bbox": [
|
| 1403 |
+
174,
|
| 1404 |
+
190,
|
| 1405 |
+
821,
|
| 1406 |
+
233
|
| 1407 |
+
],
|
| 1408 |
+
"page_idx": 11
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"type": "text",
|
| 1412 |
+
"text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In ICLR, 2018. ",
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
171,
|
| 1415 |
+
241,
|
| 1416 |
+
823,
|
| 1417 |
+
270
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 11
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "text",
|
| 1423 |
+
"text": "Apostolos Modas, Seyed-Mohsen Moosavi-Dezfooli, and Pascal Frossard. Sparsefool: a few pixels make a big difference. In CVPR, 2019. ",
|
| 1424 |
+
"bbox": [
|
| 1425 |
+
173,
|
| 1426 |
+
279,
|
| 1427 |
+
823,
|
| 1428 |
+
308
|
| 1429 |
+
],
|
| 1430 |
+
"page_idx": 11
|
| 1431 |
+
},
|
| 1432 |
+
{
|
| 1433 |
+
"type": "text",
|
| 1434 |
+
"text": "Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z Berkay Celik, and Ananthram Swami. The limitations of deep learning in adversarial settings. In EuroS&P, 2016. ",
|
| 1435 |
+
"bbox": [
|
| 1436 |
+
173,
|
| 1437 |
+
315,
|
| 1438 |
+
823,
|
| 1439 |
+
344
|
| 1440 |
+
],
|
| 1441 |
+
"page_idx": 11
|
| 1442 |
+
},
|
| 1443 |
+
{
|
| 1444 |
+
"type": "text",
|
| 1445 |
+
"text": "Mahmood Sharif, Sruti Bhagavatula, Lujo Bauer, and Michael K Reiter. Accessorize to a crime: Real and stealthy attacks on state-of-the-art face recognition. In CCS, 2016. ",
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
171,
|
| 1448 |
+
352,
|
| 1449 |
+
821,
|
| 1450 |
+
382
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 11
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "Carl-Johann Simon-Gabriel, Yann Ollivier, Leon Bottou, Bernhard Scholkopf, and David Lopez- ¨ Paz. First-order adversarial vulnerability of neural networks and input dimension. In ICML, 2019. ",
|
| 1457 |
+
"bbox": [
|
| 1458 |
+
174,
|
| 1459 |
+
390,
|
| 1460 |
+
823,
|
| 1461 |
+
431
|
| 1462 |
+
],
|
| 1463 |
+
"page_idx": 11
|
| 1464 |
+
},
|
| 1465 |
+
{
|
| 1466 |
+
"type": "text",
|
| 1467 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. ",
|
| 1468 |
+
"bbox": [
|
| 1469 |
+
171,
|
| 1470 |
+
439,
|
| 1471 |
+
823,
|
| 1472 |
+
469
|
| 1473 |
+
],
|
| 1474 |
+
"page_idx": 11
|
| 1475 |
+
},
|
| 1476 |
+
{
|
| 1477 |
+
"type": "text",
|
| 1478 |
+
"text": "Jiawei Su, Danilo Vasconcellos Vargas, and Kouichi Sakurai. One pixel attack for fooling deep neural networks. In IEEE Transactions on Evolutionary Computation. IEEE, 2019. ",
|
| 1479 |
+
"bbox": [
|
| 1480 |
+
171,
|
| 1481 |
+
477,
|
| 1482 |
+
823,
|
| 1483 |
+
506
|
| 1484 |
+
],
|
| 1485 |
+
"page_idx": 11
|
| 1486 |
+
},
|
| 1487 |
+
{
|
| 1488 |
+
"type": "text",
|
| 1489 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In ICLR, 2013. ",
|
| 1490 |
+
"bbox": [
|
| 1491 |
+
173,
|
| 1492 |
+
513,
|
| 1493 |
+
823,
|
| 1494 |
+
544
|
| 1495 |
+
],
|
| 1496 |
+
"page_idx": 11
|
| 1497 |
+
},
|
| 1498 |
+
{
|
| 1499 |
+
"type": "text",
|
| 1500 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In CVPR, 2016. ",
|
| 1501 |
+
"bbox": [
|
| 1502 |
+
174,
|
| 1503 |
+
551,
|
| 1504 |
+
823,
|
| 1505 |
+
580
|
| 1506 |
+
],
|
| 1507 |
+
"page_idx": 11
|
| 1508 |
+
},
|
| 1509 |
+
{
|
| 1510 |
+
"type": "text",
|
| 1511 |
+
"text": "Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, 2017. ",
|
| 1512 |
+
"bbox": [
|
| 1513 |
+
174,
|
| 1514 |
+
588,
|
| 1515 |
+
823,
|
| 1516 |
+
617
|
| 1517 |
+
],
|
| 1518 |
+
"page_idx": 11
|
| 1519 |
+
},
|
| 1520 |
+
{
|
| 1521 |
+
"type": "text",
|
| 1522 |
+
"text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \\` Daniel. Ensemble adversarial training: Attacks and defenses. In ICLR, 2018. ",
|
| 1523 |
+
"bbox": [
|
| 1524 |
+
176,
|
| 1525 |
+
626,
|
| 1526 |
+
821,
|
| 1527 |
+
654
|
| 1528 |
+
],
|
| 1529 |
+
"page_idx": 11
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"type": "text",
|
| 1533 |
+
"text": "Andreas Veit, Michael J Wilber, and Serge Belongie. Residual networks behave like ensembles of relatively shallow networks. In NeurIPS, 2016. ",
|
| 1534 |
+
"bbox": [
|
| 1535 |
+
174,
|
| 1536 |
+
662,
|
| 1537 |
+
823,
|
| 1538 |
+
691
|
| 1539 |
+
],
|
| 1540 |
+
"page_idx": 11
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"type": "text",
|
| 1544 |
+
"text": "Yisen Wang, Xingjun Ma, James Bailey, Jinfeng Yi, Bowen Zhou, and Quanquan Gu. On the convergence and robustness of adversarial training. In ICML, 2019. ",
|
| 1545 |
+
"bbox": [
|
| 1546 |
+
174,
|
| 1547 |
+
699,
|
| 1548 |
+
821,
|
| 1549 |
+
728
|
| 1550 |
+
],
|
| 1551 |
+
"page_idx": 11
|
| 1552 |
+
},
|
| 1553 |
+
{
|
| 1554 |
+
"type": "text",
|
| 1555 |
+
"text": "Yisen Wang, Difan Zou, Jinfeng Yi, James Bailey, Xingjun Ma, and Quanquan Gu. Improving adversarial robustness requires revisiting misclassified examples. In ICLR, 2020. ",
|
| 1556 |
+
"bbox": [
|
| 1557 |
+
174,
|
| 1558 |
+
736,
|
| 1559 |
+
821,
|
| 1560 |
+
765
|
| 1561 |
+
],
|
| 1562 |
+
"page_idx": 11
|
| 1563 |
+
},
|
| 1564 |
+
{
|
| 1565 |
+
"type": "text",
|
| 1566 |
+
"text": "Cihang Xie, Zhishuai Zhang, Yuyin Zhou, Song Bai, Jianyu Wang, Zhou Ren, and Alan L Yuille. Improving transferability of adversarial examples with input diversity. In CVPR, 2019. ",
|
| 1567 |
+
"bbox": [
|
| 1568 |
+
174,
|
| 1569 |
+
773,
|
| 1570 |
+
823,
|
| 1571 |
+
803
|
| 1572 |
+
],
|
| 1573 |
+
"page_idx": 11
|
| 1574 |
+
},
|
| 1575 |
+
{
|
| 1576 |
+
"type": "text",
|
| 1577 |
+
"text": "Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual trans-´ formations for deep neural networks. In CVPR, 2017. ",
|
| 1578 |
+
"bbox": [
|
| 1579 |
+
173,
|
| 1580 |
+
810,
|
| 1581 |
+
823,
|
| 1582 |
+
839
|
| 1583 |
+
],
|
| 1584 |
+
"page_idx": 11
|
| 1585 |
+
},
|
| 1586 |
+
{
|
| 1587 |
+
"type": "text",
|
| 1588 |
+
"text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
|
| 1589 |
+
"bbox": [
|
| 1590 |
+
174,
|
| 1591 |
+
848,
|
| 1592 |
+
825,
|
| 1593 |
+
876
|
| 1594 |
+
],
|
| 1595 |
+
"page_idx": 11
|
| 1596 |
+
},
|
| 1597 |
+
{
|
| 1598 |
+
"type": "text",
|
| 1599 |
+
"text": "A VISUALIZATION OF ADVERSARIAL EXAMPLES CRAFTED BY SGM ",
|
| 1600 |
+
"text_level": 1,
|
| 1601 |
+
"bbox": [
|
| 1602 |
+
171,
|
| 1603 |
+
102,
|
| 1604 |
+
761,
|
| 1605 |
+
118
|
| 1606 |
+
],
|
| 1607 |
+
"page_idx": 12
|
| 1608 |
+
},
|
| 1609 |
+
{
|
| 1610 |
+
"type": "text",
|
| 1611 |
+
"text": "In this section, we visualize 6 clean images and their corresponding adversarial examples crafted using our SGM on either a ResNet-152 or a DenseNet201 in Figure 5. These visualization results show that the generated adversarial perturbations are human imperceptible. ",
|
| 1612 |
+
"bbox": [
|
| 1613 |
+
174,
|
| 1614 |
+
127,
|
| 1615 |
+
826,
|
| 1616 |
+
170
|
| 1617 |
+
],
|
| 1618 |
+
"page_idx": 12
|
| 1619 |
+
},
|
| 1620 |
+
{
|
| 1621 |
+
"type": "image",
|
| 1622 |
+
"img_path": "images/6643c5baa262f9dea9b86ebf084c63e78bd350983d85de61b79faf17880fc5c9.jpg",
|
| 1623 |
+
"image_caption": [
|
| 1624 |
+
"Figure 5: Visualization of 6 clean images and their corresponding adversarial examples. The clean images are shown in the top row, adversarial images crafted on ResNet-152 are shown in the middle row, while those crafted on DenseNet-201 are shown in the bottom row. All adversarial images are crafted using our proposed SGM (10-step) under maximum perturbation $\\epsilon = 1 6$ . "
|
| 1625 |
+
],
|
| 1626 |
+
"image_footnote": [],
|
| 1627 |
+
"bbox": [
|
| 1628 |
+
174,
|
| 1629 |
+
224,
|
| 1630 |
+
825,
|
| 1631 |
+
496
|
| 1632 |
+
],
|
| 1633 |
+
"page_idx": 12
|
| 1634 |
+
},
|
| 1635 |
+
{
|
| 1636 |
+
"type": "text",
|
| 1637 |
+
"text": "B COMPARISON WITH PREVIOUSLY PUBLISHED RESULTS ",
|
| 1638 |
+
"text_level": 1,
|
| 1639 |
+
"bbox": [
|
| 1640 |
+
174,
|
| 1641 |
+
626,
|
| 1642 |
+
666,
|
| 1643 |
+
642
|
| 1644 |
+
],
|
| 1645 |
+
"page_idx": 12
|
| 1646 |
+
},
|
| 1647 |
+
{
|
| 1648 |
+
"type": "text",
|
| 1649 |
+
"text": "In this section, we compare the experimental settings in previous and our works, and discuss some small discrepancies of the baseline performance reported in ours and previous works. ",
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
171,
|
| 1652 |
+
651,
|
| 1653 |
+
821,
|
| 1654 |
+
679
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 12
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"text": "Table 8 and 9 summarizes these differences for single-source and ensemble-based attack respectively. Out of all these works (Dong et al., 2018; 2019; Xie et al., 2019), results reported in (Xie et al., 2019) are more complete. Our reported success rate of baseline attacks (e.g. MI and DI) matches that reported in (Xie et al., 2019), sometimes even higher. The slight discrepancy is caused by the difference in experimental settings. Table 10 summarizes the different source models used by baseline attacks, and Table 11 summarizes the difference in dataset, number of test images, input image size, maximum $L _ { \\infty }$ perturbation $\\epsilon$ , number of attack steps $N$ and attack step size $\\alpha$ . Compared to $2 9 9 \\times 2 9 9$ image size, here we use a more standard image size $2 2 4 \\times 2 2 4$ on ImageNet. The use of smaller input size may reduce the effectiveness of existing attacks (Simon-Gabriel et al., 2019). ",
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
173,
|
| 1663 |
+
685,
|
| 1664 |
+
825,
|
| 1665 |
+
821
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 12
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"text": "In another work by Liu et al. (2017), $81 \\%$ success rate was reported for optimization-based attack crafted on ResNet-152 against target VGG16, which is higher than our $6 5 . 5 2 \\%$ from ResNet-152 to VGG19. This is because they did not restrict the maximum perturbation $\\epsilon$ . The root mean square deviation (RMSD) of their attacks is 22.83,which indicates that many pixels are perturbed more than 16 pixel values. In our experiments, the RMSD is 6.29 for PGD, 7.71 for SGM, and 12.55 for MI. This appears to be another reason for the performance discrepancy. Note that the advantage of bounded small perturbation is increasing imperceptibility to human observers (see Figure 5). ",
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
173,
|
| 1674 |
+
828,
|
| 1675 |
+
825,
|
| 1676 |
+
924
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 12
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "table",
|
| 1682 |
+
"img_path": "images/329e8d96e4e1374a5e642e48cb7e93465b9f561584e4f3c7a7aee073aecd6e2f.jpg",
|
| 1683 |
+
"table_caption": [
|
| 1684 |
+
"Table 8: Previously reported attack success rates $( \\% )$ of baseline single-source attacks against 6 target models. “-” means no results were reported. "
|
| 1685 |
+
],
|
| 1686 |
+
"table_footnote": [],
|
| 1687 |
+
"table_body": "<table><tr><td>Reference</td><td>Attack</td><td>IncV3</td><td>IncV4</td><td>IncRes</td><td>IncV3ens3</td><td>IncV3ens4</td><td>IncResens3</td></tr><tr><td rowspan=\"3\">Dong et al. (2018)</td><td>FGSM</td><td>35.0</td><td>28.2</td><td>27.5</td><td>14.6</td><td>13.2</td><td>7.5</td></tr><tr><td>BIM</td><td>26.7</td><td>22.7</td><td>21.2</td><td>9.3</td><td>8.9</td><td>6.2</td></tr><tr><td>MI</td><td>53.6</td><td>48.9</td><td>44.7</td><td>22.1</td><td>21.7</td><td>12.9</td></tr><tr><td rowspan=\"3\">Dong et al. (2019)</td><td>FGSM</td><td>-</td><td>-</td><td>-</td><td>20.2</td><td>17.7</td><td>9.9</td></tr><tr><td>MI</td><td>=</td><td>1</td><td>-</td><td>25.1</td><td>23.7</td><td>13.3</td></tr><tr><td>DI</td><td>-</td><td>-</td><td>-</td><td>40.5</td><td>36.0</td><td>24.1</td></tr><tr><td rowspan=\"4\">Xie et al. (2019)</td><td>FGSM</td><td>34.4</td><td>28.50</td><td>27.1</td><td>12.4</td><td>11.0</td><td>6.0</td></tr><tr><td>PGD</td><td>20.8</td><td>17.2</td><td>14.9</td><td>5.4</td><td>4.6</td><td>2.8</td></tr><tr><td>MI</td><td>50.1</td><td>44.1</td><td>42.2</td><td>18.2</td><td>15.2</td><td>9.0</td></tr><tr><td>DI</td><td>53.8</td><td>49.0</td><td>44.8</td><td>13.0</td><td>11.1</td><td>6.9</td></tr><tr><td rowspan=\"4\">Ours</td><td>FGSM</td><td>26.56</td><td>21.03</td><td>19.10</td><td>1</td><td>-</td><td>1</td></tr><tr><td>PGD</td><td>26.56</td><td>21.03</td><td>19.10</td><td>12.47</td><td>10.72</td><td>6.97</td></tr><tr><td>MI</td><td>50.22</td><td>43.32</td><td>41.71</td><td>24.20</td><td>22.04</td><td>16.10</td></tr><tr><td>DI</td><td>53.95</td><td>47.16</td><td>43.47</td><td>34.84</td><td>29.23</td><td>21.64</td></tr></table>",
|
| 1688 |
+
"bbox": [
|
| 1689 |
+
189,
|
| 1690 |
+
140,
|
| 1691 |
+
805,
|
| 1692 |
+
348
|
| 1693 |
+
],
|
| 1694 |
+
"page_idx": 13
|
| 1695 |
+
},
|
| 1696 |
+
{
|
| 1697 |
+
"type": "table",
|
| 1698 |
+
"img_path": "images/f8ca3f2d5ad24f2895d93c96920aca4c84541b5e1421666d3fde702a5d6c670f.jpg",
|
| 1699 |
+
"table_caption": [
|
| 1700 |
+
"Table 9: Previously reported attack success rates $( \\% )$ of ensemble-based baseline attacks against 6 target models. “-” means no results were reported. "
|
| 1701 |
+
],
|
| 1702 |
+
"table_footnote": [],
|
| 1703 |
+
"table_body": "<table><tr><td>Reference</td><td>Attack</td><td>IncV3</td><td>IncV4</td><td>IncRes</td><td>IncV3ens3</td><td>IncV3ens4</td><td>IncResens3</td></tr><tr><td rowspan=\"3\">Dong et al. (2018)</td><td>FGSM</td><td>45.7</td><td>39.9</td><td>38.8</td><td>15.4</td><td>15.0</td><td>6.4</td></tr><tr><td>BIM</td><td>72.1</td><td>61.0</td><td>54.4</td><td>18.6</td><td>18.7</td><td>9.9</td></tr><tr><td>MI</td><td>87.9</td><td>81.2</td><td>76.5</td><td>37.6</td><td>40.3</td><td>23.3</td></tr><tr><td rowspan=\"4\">Dong et al. (2019)</td><td>FGSM</td><td>-</td><td>-</td><td>-</td><td>27.5</td><td>23.7</td><td>13.4</td></tr><tr><td>MI</td><td></td><td>1</td><td>1</td><td>50.5</td><td>48.3</td><td>32.8</td></tr><tr><td>DI</td><td>-</td><td>-</td><td>-</td><td>66.0</td><td>63.3</td><td>45.9</td></tr><tr><td>TI+DI</td><td>-</td><td>-</td><td>-</td><td>84.8</td><td>82.7</td><td>78.0</td></tr><tr><td rowspan=\"4\">Xie et al. (2019)</td><td>PGD</td><td>43.7</td><td>36.4</td><td>33.3</td><td>12.9</td><td>15.1</td><td>8.8</td></tr><tr><td>MI</td><td>69.9</td><td>67.9</td><td>64.1</td><td>36.3</td><td>35.0</td><td>30.4</td></tr><tr><td>DI</td><td>71.4</td><td>65.9</td><td>64.6</td><td>22.8</td><td>26.1</td><td>15.8</td></tr><tr><td>DI+MI</td><td>80.7</td><td>80.6</td><td>80.7</td><td>44.6</td><td>44.5</td><td>39.4</td></tr><tr><td rowspan=\"5\">Ours</td><td>PGD</td><td>65.95</td><td>59.30</td><td>53.91</td><td>37.63</td><td>32.69</td><td>23.49</td></tr><tr><td>MI</td><td>83.25</td><td>79.25</td><td>76.53</td><td>54.68</td><td>50.24</td><td>39.27</td></tr><tr><td>DI</td><td>87.53</td><td>85.04</td><td>81.11</td><td>65.29</td><td>57.48</td><td>46.41</td></tr><tr><td>DI+SGM</td><td>93.08</td><td>89.56</td><td>88.27</td><td>80.14</td><td>76.52</td><td>66.40</td></tr><tr><td>TI+SGM</td><td>-</td><td>-</td><td>-</td><td>87.65</td><td>85.11</td><td>77.75</td></tr></table>",
|
| 1704 |
+
"bbox": [
|
| 1705 |
+
181,
|
| 1706 |
+
401,
|
| 1707 |
+
812,
|
| 1708 |
+
636
|
| 1709 |
+
],
|
| 1710 |
+
"page_idx": 13
|
| 1711 |
+
},
|
| 1712 |
+
{
|
| 1713 |
+
"type": "table",
|
| 1714 |
+
"img_path": "images/9aa418b3ed798a926221bfde59d88db2ca7a4f4fff08a1bd168c736abcd7d965.jpg",
|
| 1715 |
+
"table_caption": [
|
| 1716 |
+
"Table 10: Source models used by existing single-source and ensemble-based black-box attacks. “Hold-out” refers to the hold-out target model from the group, with all remaining models are used as source models. Group 1 consists of ResNet-v2-152, IncV3, IncV4 and IncRes, while group 2 consists of ResNet-v2-152, IncV3, IncV4, IncRes, $\\mathrm { I n c V } 3 _ { e n s 3 }$ , $\\mathrm { I n c V } 3 _ { e n s 4 }$ and $\\mathrm { I n c R e s } _ { e n s 3 }$ . "
|
| 1717 |
+
],
|
| 1718 |
+
"table_footnote": [],
|
| 1719 |
+
"table_body": "<table><tr><td>Reference</td><td>Single-source attack</td><td>Ensemble-basedattack</td></tr><tr><td>Dong et al. (2018)</td><td>ResNet-v2-152</td><td>hold-out from group 1 or group 2</td></tr><tr><td>Dong et al. (2019)</td><td>ResNet-v2-152</td><td>hold-out from group 1</td></tr><tr><td>Xie et al. (2019)</td><td>ResNet-v2-152</td><td>hold-out from group 2</td></tr><tr><td>Ours</td><td>RN152</td><td>RN34+RN152+DN201</td></tr></table>",
|
| 1720 |
+
"bbox": [
|
| 1721 |
+
253,
|
| 1722 |
+
717,
|
| 1723 |
+
740,
|
| 1724 |
+
790
|
| 1725 |
+
],
|
| 1726 |
+
"page_idx": 13
|
| 1727 |
+
},
|
| 1728 |
+
{
|
| 1729 |
+
"type": "text",
|
| 1730 |
+
"text": "For proper implementation, we use open-source codes and pretrained models for our experiments, e.g., AdverTorch (Ding et al., 2019) for FGSM, PGD and MI, and source/target models from two GitHub repositories†‡§ for all models. We reproduced DI and TI in PyTorch. ",
|
| 1731 |
+
"bbox": [
|
| 1732 |
+
174,
|
| 1733 |
+
816,
|
| 1734 |
+
825,
|
| 1735 |
+
859
|
| 1736 |
+
],
|
| 1737 |
+
"page_idx": 13
|
| 1738 |
+
},
|
| 1739 |
+
{
|
| 1740 |
+
"type": "table",
|
| 1741 |
+
"img_path": "images/15ce5c402d154ebf3f4a08213563eea1040b6857e47b41c7ba7a9f816e10b98a.jpg",
|
| 1742 |
+
"table_caption": [
|
| 1743 |
+
"Table 11: Difference in experimental settings of our work compared to previous works.“NeurIPS 2017” indicates the dataset used for NeurIPS 2017 adversarial competition. \u000f: maximum per-pixel perturbation; $N$ : number of attack steps; $\\alpha$ : attack step size. "
|
| 1744 |
+
],
|
| 1745 |
+
"table_footnote": [],
|
| 1746 |
+
"table_body": "<table><tr><td>Reference</td><td>Dataset</td><td>Number</td><td>Input size</td><td>E</td><td>N</td><td>α</td></tr><tr><td>Dong et al. (2018)</td><td>ImageNet</td><td>1000</td><td>299 × 299</td><td>16</td><td>10</td><td>1.6</td></tr><tr><td>Dong et al. (2019)</td><td>NeurIPS 2017</td><td>1000</td><td>299 × 299</td><td>16</td><td>10</td><td>1.6</td></tr><tr><td>Xie et al. (2019)</td><td>ImageNet</td><td>5000</td><td>299×299</td><td>15</td><td>19</td><td>1.0</td></tr><tr><td>Ours</td><td>ImageNet</td><td>5000</td><td>224×224</td><td>16</td><td>10/20</td><td>2.0</td></tr></table>",
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
236,
|
| 1749 |
+
154,
|
| 1750 |
+
756,
|
| 1751 |
+
227
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 14
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "text",
|
| 1757 |
+
"text": "C TRANSFERABILITY OF DECAY PARAMETER $\\gamma$ ",
|
| 1758 |
+
"text_level": 1,
|
| 1759 |
+
"bbox": [
|
| 1760 |
+
173,
|
| 1761 |
+
251,
|
| 1762 |
+
581,
|
| 1763 |
+
267
|
| 1764 |
+
],
|
| 1765 |
+
"page_idx": 14
|
| 1766 |
+
},
|
| 1767 |
+
{
|
| 1768 |
+
"type": "text",
|
| 1769 |
+
"text": "In this section, we study the “transferability” of decay parameter $\\gamma$ across different target models. RN152 and DN201 are used as the source model, and the target model are varying to observe trends. As indicated in Figure 6, all black-box target models share the same best selection of $\\gamma$ , which makes $\\gamma$ selection quite simple. Even if the true target model is unknown, the adversary can tune the gamma for a resnet-like neural network through another model and obtain the best selection as well. ",
|
| 1770 |
+
"bbox": [
|
| 1771 |
+
173,
|
| 1772 |
+
275,
|
| 1773 |
+
826,
|
| 1774 |
+
344
|
| 1775 |
+
],
|
| 1776 |
+
"page_idx": 14
|
| 1777 |
+
},
|
| 1778 |
+
{
|
| 1779 |
+
"type": "image",
|
| 1780 |
+
"img_path": "images/300f0293aa251c6b51c2049a3d1a099b4b5c4e8f2ff590b6125950515a93bfe7.jpg",
|
| 1781 |
+
"image_caption": [
|
| 1782 |
+
"Figure 6: “Transferability” of decay parameter: the success rates of black-box attacks crafted by 10-step SGM with varying decay parameter $\\gamma \\in \\ [ 0 . 1 , 1 . 0 ]$ . The curves represent results against different target models respectively. "
|
| 1783 |
+
],
|
| 1784 |
+
"image_footnote": [],
|
| 1785 |
+
"bbox": [
|
| 1786 |
+
200,
|
| 1787 |
+
358,
|
| 1788 |
+
789,
|
| 1789 |
+
506
|
| 1790 |
+
],
|
| 1791 |
+
"page_idx": 14
|
| 1792 |
+
}
|
| 1793 |
+
]
|
parse/train/BJlRs34Fvr/BJlRs34Fvr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/BJlRs34Fvr/BJlRs34Fvr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJeKCi0qYX/HJeKCi0qYX.md
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Recently there has been a surge of interest in designing graph embedding methods. Few, if any, can scale to a large-sized graph with millions of nodes due to both computational complexity and memory requirements. In this paper, we relax this limitation by introducing the MultI-Level Embedding (MILE) framework – a generic methodology allowing contemporary graph embedding methods to scale to large graphs. MILE repeatedly coarsens the graph into smaller ones using a hybrid matching technique to maintain the backbone structure of the graph. It then applies existing embedding methods on the coarsest graph and refines the embeddings to the original graph through a graph convolution neural network that it learns. The proposed MILE framework is agnostic to the underlying graph embedding techniques and can be applied to many existing graph embedding methods without modifying them. We employ our framework on several popular graph embedding techniques and conduct embedding for real-world graphs. Experimental results on five large-scale datasets demonstrate that MILE significantly boosts the speed (order of magnitude) of graph embedding while generating embeddings of better quality, for the task of node classification. MILE can comfortably scale to a graph with 9 million nodes and 40 million edges, on which existing methods run out of memory or take too long to compute on a modern workstation.
|
| 8 |
+
|
| 9 |
+
# 1 Introduction
|
| 10 |
+
|
| 11 |
+
In recent years, graph embedding has attracted much interest due to its broad applicability for various tasks (Perozzi et al., 2014; Wang et al., 2016; Henderson et al., 2012). However, such methods rarely scale to large datasets (e.g., graphs with over 1 million nodes) since they are computationally expensive and often memory intensive. For example, random-walkbased embedding techniques require a large amount of CPU time to generate a sufficient number of walks and train the embedding model. As another example, embedding methods based on matrix factorization, including GraRep (Cao et al., 2015) and NetMF (Qiu et al., 2018), requires constructing an enormous objective matrix (usually much denser than adjacency matrix), on which matrix factorization is performed. Even a medium-size graph with 100K nodes can easily require hundreds of GB of memory using those methods. On the other hand, many graph datasets in the real world tend to be large-scale with millions or even billions of nodes. To the best of our knowledge, none of the existing efforts examines how to scale up graph embedding in a generic way. We make the first attempt to close this gap. We are also interested in the related question of whether the quality of such embeddings can be improved along the way. Specifically, we ask:
|
| 12 |
+
|
| 13 |
+
1) Can we scale up the existing embedding techniques in an agnostic manner so that they can be directly applied to larger datasets?
|
| 14 |
+
|
| 15 |
+
2) Can the quality of such embedding methods be strengthened by incorporating the holistic view of the graph?
|
| 16 |
+
|
| 17 |
+
To tackle these problems, we propose a MultI-Level Embedding (MILE) framework for graph embedding. Our approach relies on a three-step process: first, we repeatedly coarsen the original graph into smaller ones by employing a hybrid matching strategy; second, we compute the embeddings on the coarsest graph using an existing embedding techniques - and third, we propose a novel refinement model based on learning a graph convolution network to refine the embeddings from the coarsest graph to the original graph – learning a graph convolution network allows us to compute a refinement procedure that levers the dependencies inherent to the graph structure and the embedding method of choice. To summarize, we find that:
|
| 18 |
+
|
| 19 |
+
• MILE is generalizable : Our MILE framework is agnostic to the underlying graph embedding techniques and treats them as black boxes. • MILE is scalable : MILE can significantly improve the scalability of the embedding methods (up to 30-fold), by reducing the running time and memory consumption. • MILE generates high-quality embeddings : In many cases, we find that the quality of embeddings improves by levering MILE (in some cases is in excess of $1 0 \%$ ).
|
| 20 |
+
|
| 21 |
+
# 2 Related Work
|
| 22 |
+
|
| 23 |
+
Many techniques for graph or network embedding have been proposed in recent years. DeepWalk and Node2Vec generate truncated random walks on graphs and apply the Skip Gram by treating the walks as sentences (Perozzi et al., 2014; Grover & Leskovec, 2016). LINE learns the node embeddings by preserving the first-order and second-order proximities (Tang et al., 2015). Following LINE, SDNE leverages deep neural networks to capture the highly non-linear structure (Wang et al., 2016). Other methods construct a particular objective matrix and use matrix factorization techniques to generate embeddings, e.g., GraRep (Cao et al., 2015) and NetMF (Qiu et al., 2018). This also led to the proliferation of network embedding methods for information-rich graphs, including heterogeneous information networks (Chang et al., 2015; Dong et al., 2017) and attributed graphs (Pan et al., 2016; Liang et al., 2018; Yang et al., 2015; Kipf & Welling, 2017).
|
| 24 |
+
|
| 25 |
+
On the other hand, there are very few efforts, focusing on the scalability of network embedding (Yang et al., 2017; Huang et al., 2017). First, such efforts are specific to a particular embedding strategy and do not generalize. Second, the scalability of such efforts is limited to moderately sized datasets. Finally, and notably, these efforts at scalability are actually orthogonal to our strategy and can potentially be employed along with our efforts to afford even greater speedup.
|
| 26 |
+
|
| 27 |
+
The closest work to this paper is the very recently proposed HARP (Chen et al., 2018), which proposes a hierarchical paradigm for graph embedding based on iterative learning methods (e.g., DeepWalk and Node2Vec). However, HARP focuses on improving the quality of embeddings by using the learned embeddings from the previous level as the initialized embeddings for the next level, which introduces a huge computational overhead. Moreover, it is not immediately obvious how a HARP like methodology would be extended to other graph embedding techniques (e.g., GraRep and NetMF) in an agnostic manner since such an approach would necessarily require one to modify the embedding methods to preset their initialized embeddings. In this paper, we focus on designing a general-purpose framework to scale up embedding methods treating them as black boxes.
|
| 28 |
+
|
| 29 |
+
# 3 Problem Formulation
|
| 30 |
+
|
| 31 |
+
Let $\mathcal { G } = ( V , E )$ be the input graph where $V$ and $E$ are respectively the node set and edge set. Let $A$ be the adjacency matrix of the graph and we assume $\mathcal { G }$ is undirected, though our problem can be easily extended (Chung, 2005; Gleich, 2006; Satuluri & Parthasarathy, 2011) to directed graph. We first define graph embedding:
|
| 32 |
+
|
| 33 |
+
Definition 3.1 Graph Embedding Given a graph $\mathcal { G } = ( V , E )$ and a dimensionality $d$ $d \ll | V | ,$ , the problem of graph embedding is to learn a $d$ -dimension vector representation for each node in $\mathcal { G }$ so that graph properties are best preserved.
|
| 34 |
+
|
| 35 |
+
Following this, a graph embedding method is essentially a mapping function $f : \mathbb { R } ^ { | V | \times | V | } \mapsto$ $\mathbb { R } ^ { | V | \times d }$ , whose input is the adjacency matrix $A$ (or $\mathcal { G }$ ) and output is a lower dimension matrix. Motivated by the fact that the majority of graph embedding methods cannot scale to large datasets, we seek to speed up existing graph embedding methods without sacrificing quality. We formulate the problem as:
|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
Figure 1: MILE framework
|
| 39 |
+
|
| 40 |
+
Given a graph $\mathcal { G } = ( V , E )$ and a graph embedding method $f ( \cdot )$ , we aim to realize a strengthened graph embedding method ${ \hat { f } } ( \cdot )$ so that it is more scalable than $f ( \cdot )$ while generating embeddings of comparable or even better quality.
|
| 41 |
+
|
| 42 |
+
# 4 Methodology
|
| 43 |
+
|
| 44 |
+
MILE framework consists of three key phases: graph coarsening, base embedding, and embeddings refining. Figure 1a shows the overview.
|
| 45 |
+
|
| 46 |
+
# 4.1 Graph Coarsening
|
| 47 |
+
|
| 48 |
+
In this phase, the input graph $\mathcal { G }$ (or $\mathscr { G } _ { 0 }$ ) is repeatedly coarsened into a series of smaller graphs $\zeta _ { 1 }$ , $\zeta _ { 2 }$ , ..., $\mathcal { G } _ { m }$ such that $| V _ { 0 } | > | V _ { 1 } | > \ldots > | V _ { m } |$ . In order to coarsen a graph from $\beta _ { i }$ to $\mathscr { G } _ { i + 1 }$ , multiple nodes in $\beta _ { i }$ are collapsed to form super-nodes in $\mathscr { G } _ { i + 1 }$ , and the edges incident on a super-node are the union of the edges on the original nodes in $\beta _ { i }$ . Here the set of nodes forming a super-node is called a matching. We propose a hybrid matching technique containing two matching strategies that can efficiently coarsen the graph while retaining the global structure. An example is shared in Figure 2.
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 2: Toy example for illustrating graph coarsening. (a) shows the process of applying Structural Equivalence Matching (SEM) and Normalized Heavy Edge Matching (NHEM) for graph coarsening. (b) presents the adjacency matrix $A _ { 0 }$ of the input graph, the matching matrix $M _ { 0 , 1 }$ corresponding to the SEM and NHEM matchings, and the derivation of the adjacency matrix $A _ { 1 }$ of the coarsened graph using Eq. 2.
|
| 52 |
+
|
| 53 |
+
Structural Equivalence Matching (SEM) : Given two vertices $u$ and $v$ in an unweighted graph $\mathcal { G }$ , we call they are structurally equivalent if they are incident on the same set of neighborhoods. In figure 2a, node D and E are structurally equivalent. The intuition of matching structually equivalent nodes is that if two vertices are structurally equivalent, then their node embeddings will be similar.
|
| 54 |
+
|
| 55 |
+
Normalized Heavy Edge Matching (NHEM) : Heavy edge matching is a popular matching method for graph coarsening (Karypis & Kumar, 1998). For an unmatched node $u$ in $\beta _ { i }$ , its heavy edge matching is a pair of vertices $( u , v )$ such that the weight of the edge between $u$ and $v$ is the largest. In this paper, we propose to normalize the edge weights when applying heavy edge matching using the formula as follows
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
W _ { i } ( u , v ) = \frac { A _ { i } ( u , v ) } { \sqrt { D _ { i } ( u , u ) \cdot D _ { i } ( v , v ) } } .
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Here, the weight of an edge is normalized by the degree of the two vertices on which the edge is incident. Intuitively, it penalizes the weights of edges connected with high-degree nodes. As we will show in Sec. 4.3, this normalization is tightly connected with the graph convolution kernel.
|
| 62 |
+
|
| 63 |
+
Hybrid Matching Method : We use a hybrid of two matching methods above for graph coarsening. To construct $\mathscr { G } _ { i + 1 }$ from $\beta _ { i }$ , we first find out all the structural equivalence matching (SEM) $\mathcal { M } _ { 1 }$ , where $\beta _ { i }$ is treated as an unweighted graph. This is followed by the searching of the normalized heavy edge matching (NHEM) $\mathcal { M } _ { 2 }$ on $\mathcal { G } _ { i }$ . Nodes in each matching are then collapsed into a super-node in $\mathcal { G } _ { i + 1 }$ . Note that some nodes might not be matched at all and they will be directly copied to $\mathscr { G } _ { i + 1 }$ .
|
| 64 |
+
|
| 65 |
+
Formally, we build the adjacency matrix $A _ { i + 1 }$ of $\mathscr { G } _ { i + 1 }$ through matrix operations. To this end, we define the matching matrix storing the matching information from graph $\mathscr { G } _ { i }$ to $\mathcal { G } _ { i + 1 }$ as a binary matrix $M _ { i , i + 1 } \in \{ 0 , 1 \} ^ { | V _ { i } | \times | V _ { i + 1 } | }$ . The $r$ -th row and $c$ -th column of $M _ { i , i + 1 }$ is set to $^ { 1 }$ if node $r$ in $\beta _ { i }$ will be collapsed to super-node $c$ in $\mathscr { G } _ { i + 1 }$ , and is set to $0$ if otherwise. Each column of $M _ { i , i + 1 }$ represents a matching with the 1s representing the nodes in it. Each unmatched vertex appears as an individual column in $M _ { i , i + 1 }$ with merely one entry set to 1. Following this formulation, we construct the adjacency matrix of $\mathscr { G } _ { i + 1 }$ by using
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
A _ { i + 1 } = M _ { i , i + 1 } ^ { T } A _ { i } M _ { i , i + 1 } .
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
# 4.2 Base Embedding on Coarsened Graph
|
| 72 |
+
|
| 73 |
+
The size of the graph reduces drastically after each iteration of coarsening, halving the size of the graph in the best case. We coarsen the graph for $m$ iterations and apply the graph embedding method $f ( \cdot )$ on the coarsest graph $\mathcal { G } _ { m }$ . Denoting the embeddings on $\mathcal { G } _ { m }$ as ${ \mathcal { E } } _ { m }$ , we have ${ \mathcal { E } } _ { m } = f ( { \mathcal { G } } _ { m } \mathbf { \theta } )$ . Since our framework is agnostic to the adopted graph embedding method, we can use any graph embedding algorithm for base embedding.
|
| 74 |
+
|
| 75 |
+
# 4.3 Refinement of Embeddings
|
| 76 |
+
|
| 77 |
+
The final phase of MILE is the embeddings refinement phase. Given a series of coarsened graph $\mathcal { G } _ { 0 } , \mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } , . . . , \mathcal { G } _ { m }$ , their corresponding matching matrix $M _ { 0 , 1 } , M _ { 1 , 2 } , . . . , M _ { m - 1 , m }$ , and the node embeddings ${ \mathcal { E } } _ { m }$ on $\mathcal { G } _ { m }$ , we seek to develop an approach to derive the node embeddings of $\mathscr { G } _ { 0 }$ from $\mathcal { G } _ { m }$ . To this end, we first study an easier subtask: given a graph $\beta _ { i }$ , its coarsened graph $\mathcal { G } _ { i + 1 }$ , the matching matrix $M _ { i , i + 1 }$ and the node embeddings $\mathcal { E } _ { i + 1 }$ on $\mathscr { G } _ { i + 1 }$ , how to infer the embeddings $\mathcal { E } _ { i }$ on graph $\beta _ { i }$ . Once we solved this subtask, we can then iteratively apply the technique on each pair of consecutive graphs from $\mathcal { G } _ { m }$ to $\mathscr { G } _ { 0 }$ and eventually derive the node embeddings on $\mathscr { G } _ { 0 }$ . In this work, we propose to use a graph-based neural network model to perform embeddings refinement.
|
| 78 |
+
|
| 79 |
+
Graph Convolution Network for Refinement Learning : Since we know the matching information between the two consecutive graphs $\beta _ { i }$ and $\mathscr { G } _ { i + 1 }$ , we can easily project the node embeddings from the coarse-grained graph $\mathscr { G } _ { i + 1 }$ to the fine-grained graph $\beta _ { i }$ using
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathcal { E } _ { i } ^ { p } = M _ { i , i + 1 } \mathcal { E } _ { i + 1 }
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
In this case, embedding of a super-node is directly copied to its original node(s). We call $\mathcal { E } _ { i } ^ { p }$ the projected embeddings from $\mathscr { G } _ { i + 1 }$ to $\beta _ { i }$ , or simply projected embeddings without ambiguity. While this way of simple projection maintains some information of node embeddings, it has obvious limitations that nodes will share the same embeddings if they are matched and collapsed into a super-node during the coarsening phase. This problem will be more serious when the embedding refinement is performed iteratively from $\mathcal { G } _ { m }$ , ..., $\mathscr { G } _ { 0 }$ . To address this issue, we propose to use a graph convolution network for embedding refinement. Specifically, we design a graph-based neural network model $\mathcal { E } _ { i } = \mathcal { R } ( \mathcal { E } _ { i } ^ { p } , A _ { i } )$ , which derives the embeddings $\mathcal { E } _ { i }$ on graph $\mathscr { G } _ { i }$ based on the projected embeddings $\mathcal { E } _ { i } ^ { p }$ and the graph adjacency matrix $A _ { i }$ .
|
| 86 |
+
|
| 87 |
+
Given graph $G$ with adjacency matrix $A$ , we consider the fast approximation of graph convolution from (Kipf $\&$ Welling, 2017). The $k$ -th layer of this neural network model is
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
H ^ { ( k ) } ( X , A ) = \sigma \left( \tilde { D } ^ { - \frac { 1 } { 2 } } \tilde { A } \tilde { D } ^ { - \frac { 1 } { 2 } } H ^ { ( k - 1 ) } ( X , A ) \Theta ^ { ( k ) } \right)
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $\sigma ( \cdot )$ is an activation function, $\Theta ^ { ( k ) }$ is a layer-specific trainable weight matrix, and $H ^ { ( 0 ) } ( X , A ) = X$ . In this paper, we define our embedding refinement model as a $\it l$ -layer graph convolution model
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\mathcal { E } _ { i } = \mathcal { R } \left( \mathcal { E } _ { i } ^ { p } , A _ { i } \right) \equiv H ^ { ( l ) } \left( \mathcal { E } _ { i } ^ { p } , A _ { i } \right) .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
The architecture of the refinement model is shown in Figure 1b. The intuition behind this refinement model is to integrate the structural information of the current graph $\mathcal { G } _ { i }$ into the projected embedding $\mathcal { E } _ { i } ^ { p }$ by repeatedly performing the spectral graph convolution. Each layer of graph convolution network in Eq. 4 can be regarded as one iteration of embedding propagation in the graph following the re-normalized adjacency matrix $\tilde { D } ^ { - \frac { 1 } { 2 } } \tilde { A } \tilde { D } ^ { - \frac { 1 } { 2 } }$ . Note that this re-normalized matrix is well aligned with the way we conduct normalized heavy edge matching in Eq. 1. We next discuss how the weight matrix $\Theta ^ { ( k ) }$ is learned.
|
| 100 |
+
|
| 101 |
+
Intricacies of Refinement Learning : The learning of the refinement model is essentially learning $\Theta ^ { ( k ) }$ for each $k \in \left[ 1 , l \right]$ according to Eq. 4. Here we study how to design the learning task and construct the loss function. Since the graph convolution model $H ^ { ( l ) } ( \cdot )$ aims to predict the embeddings $\mathcal { E } _ { i }$ on graph $\mathcal { G } _ { i }$ , we can directly run a base embedding on $\mathscr { G } _ { i }$ to generate the “ground-truth” embeddings and use the difference between these embeddings and the predicted ones as the loss function for training. We propose to learn $\Theta ^ { ( k ) }$ on the coarsest graph and reuse them across all the levels for refinement. Specifically, we can define the loss function as the mean square error as follows
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
L = \frac { 1 } { | V _ { m } | } \left\| \mathcal { E } _ { m } - H ^ { ( l ) } ( M _ { m , m + 1 } \mathcal { E } _ { m + 1 } , A _ { m } ) \right\| ^ { 2 } .
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
We refer to the learning task associated with the above loss function as double-base embedding learning. We point out, however, there are two key drawbacks to this method. First of all, the above loss function requires one more level of coarsening to construct $\mathcal { G } _ { m + 1 }$ and an extra base embedding on $\mathcal { G } _ { m + 1 }$ . These two steps, especially the latter, introduce nonnegligible overheads to the MILE framework, which contradicts our motivation of scaling up graph embedding. More importantly, ${ \mathcal { E } } _ { m }$ might not be a desirable “ground truth” for the refined embeddings. This is because most of the embedding methods are invariant to an orthogonal transformation of the embeddings, i.e., the embeddings can be rotated by an arbitrary orthogonal matrix (Hamilton et al., 2017). In other words, the embedding spaces of graph $\mathcal { G } _ { m }$ and $\mathcal { G } _ { m + 1 }$ can be totally different since the two base embeddings are learned independently. Even if we follow the paradigm in (Chen et al., 2018) and conduct base embedding on $\mathcal { G } _ { m }$ using the simple projected embeddings from $\mathcal { G } _ { m + 1 }$ ( $\mathcal { E } _ { m } ^ { p }$ ) as initialization, the embedding space does not naturally generalize and can drift during re-training. One possible solution is to use an alignment procedure to force the embeddings to be aligned between the two graphs (Hamilton et al., 2016). But it could be very expensive.
|
| 108 |
+
|
| 109 |
+
In this paper, we propose a very simple method to address the above issues. Instead of conducting an additional level of coarsening, we construct a dummy coarsened graph by simply copying $\mathcal { G } _ { m }$ , i.e., $M _ { m , m + 1 } = I$ and $\mathcal { G } _ { m + 1 } = \mathcal { G } _ { m }$ . By doing this, we not only reduce one iteration of graph coarsening, but also avoid performing base embedding on $\mathcal { G } _ { m + 1 }$ simply because $\mathcal { E } _ { m + 1 } = \mathcal { E } _ { m }$ . Moreover, the embeddings of $\mathcal { G } _ { m }$ and $\mathcal { G } _ { m + 1 }$ are guaranteed to be in the same space in this case without any drift. With this strategy, we change the loss function for model learning as follows
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
L = \frac { 1 } { | V _ { m } | } \left\| \mathcal { E } _ { m } - H ^ { ( l ) } ( \mathcal { E } _ { m } , A _ { m } ) \right\| ^ { 2 } .
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
With the above loss function, we adopt gradient descent with back-propagation to learn the parameters $\Theta ^ { ( k ) }$ , $k \in [ 1 , l ]$ . In the subsequent refinement steps, we apply the same set of parameters $\Theta ^ { ( k ) }$ to infer the refined embeddings. We point out that the training of the refinement model is rather efficient as it is done on the coarsest graph. The embeddings refinement process involves merely sparse matrix multiplications using Eq. 5 and is relatively affordable compared to conducting embedding on the original graph. With these different components, we summarize the whole algorithm of our MILE framework in Algorithm 1. The appendix contains the time complexity of the algorithm in Section A.2
|
| 116 |
+
|
| 117 |
+
# Algorithm 1 Multi-Level Algorithm for Graph Embedding
|
| 118 |
+
|
| 119 |
+
Input: A input graph $\mathcal { G } _ { 0 } = ( V _ { 0 } , E _ { 0 } )$ , $\#$ coarsening levels $m$ , and a base embedding method $f ( \cdot )$ Output: Graph embeddings $\dot { \varepsilon _ { \mathrm { 0 } } }$ on $\mathscr { G } _ { 0 }$ .
|
| 120 |
+
|
| 121 |
+
1: Coarsen $\mathscr { G } _ { 0 }$ into $\mathcal { G } _ { 1 } , \mathcal { G } _ { 2 } , . . . , \mathcal { G } _ { m }$ using proposed hybrid matching method.
|
| 122 |
+
2: Perform base embedding on the coarsest graph $\mathcal { G } _ { m }$ (See Section. 4.2).
|
| 123 |
+
3: Learn the weights $\Theta ^ { ( k ) }$ using the loss function in Eq. 7.
|
| 124 |
+
4: for $i = ( m - 1 ) . . . 0$ do
|
| 125 |
+
5: Compute the projected embeddings $\mathcal { E } _ { i } ^ { p }$ on $\beta _ { i }$ .
|
| 126 |
+
6: Use Eq. 4 and Eq. 5 to compute refined embeddings $\xi _ { i }$ .
|
| 127 |
+
7: Return graph embeddings $\dot { \varepsilon _ { \mathrm { 0 } } }$ on $\mathscr { G } _ { 0 }$ .
|
| 128 |
+
|
| 129 |
+
# 5 Experiments and Analysis
|
| 130 |
+
|
| 131 |
+
# 5.1 Experimental Configuration
|
| 132 |
+
|
| 133 |
+
The datasets used in our experiments is shown in Table 1. Yelp dataset is preprocessed by us following similar procedures in (Huang et al., 2017)1. To demonstrate that MILE can work with different graph embedding methods , we explore several popular methods for graph embedding, mainly, DeepWalk (Perozzi et al., 2014), Node2vec (Grover & Leskovec, 2016), Line (Tang et al., 2015), GraRep (Cao et al., 2015) and NetMF (Qiu et al., 2018). To evaluate the quality of the embeddings, we follow the typical method in existing work to perform multi-label node classification (Perozzi et al., 2014; Grover & Leskovec, 2016).
|
| 134 |
+
|
| 135 |
+
Table 1: Dataset Information
|
| 136 |
+
|
| 137 |
+
<table><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>#Nodes</td><td rowspan=1 colspan=1># Edges</td><td rowspan=1 colspan=1># Classes</td></tr><tr><td rowspan=1 colspan=1>PPI</td><td rowspan=1 colspan=1>3,852</td><td rowspan=1 colspan=1>38,705</td><td rowspan=1 colspan=1>50</td></tr><tr><td rowspan=1 colspan=1>Blog</td><td rowspan=1 colspan=1>10,312</td><td rowspan=1 colspan=1>333,983</td><td rowspan=1 colspan=1>39</td></tr><tr><td rowspan=1 colspan=1>Flickr</td><td rowspan=1 colspan=1>80,513</td><td rowspan=1 colspan=1>5,899,882</td><td rowspan=1 colspan=1>195</td></tr><tr><td rowspan=1 colspan=1>YouTube</td><td rowspan=1 colspan=1>1,134,890</td><td rowspan=1 colspan=1>2,987,624</td><td rowspan=1 colspan=1>47</td></tr><tr><td rowspan=1 colspan=1>Yelp</td><td rowspan=1 colspan=1>8,938,630</td><td rowspan=1 colspan=1>39,821,123</td><td rowspan=1 colspan=1>22</td></tr></table>
|
| 138 |
+
|
| 139 |
+
# 5.2 MILE Framework Performance
|
| 140 |
+
|
| 141 |
+
We first evaluate the performance of our MILE framework when applied to different graph embedding methods. Figure 3 summarizes the performance of MILE on different datasets with various base embedding methods on various coarsening levels $^ 2$ (exact numbers can be seen in Table 3 of Appendix). Note that $m { = } 0$ corresponds to original embedding method. We make the following observations:
|
| 142 |
+
|
| 143 |
+
• MILE is scalable. MILE greatly boosts the speed of the explored embedding methods. With a single level of coarsening ( $_ { \mathbf { \nabla } ^ { \prime } \mathbf { \nabla } ^ { \prime } } \psi _ { \mathbf { \nabla } ^ { \prime } }$ =1), we are able to achieve speedup ranging from $1 . 5 \times$ to 3.4 $\times$ (on PPI, Blog, and Flickr) while improving qualitative performance. Larger speedups are typically observed on GraRep and NetMF. Increasing the coarsening level $m$ to 2, the speedup increases further (up to $1 4 . 4 \times$ ), while the quality of the embeddings is comparable with the original methods reflected by Micro-F1. On YouTube, for the coarsening levels 6 and 8, we observe more than $1 0 \times$ speedup for DeepWalk, Node2Vec and LINE. For NetMF on YouTube, the speedup is even larger – original NetMF runs out of memory within 9.5 hours while MILE (NetMF) only takes around 20 minutes ( $m = 8$ ).
|
| 144 |
+
|
| 145 |
+
• MILE improves quality. For the smaller coarsening levels across all the datasets and methods, MILE-enhanced embeddings almost always offer a qualitative improvement over the original embedding method as evaluated by the Micro-F1 score (as high as $2 4 . 2 \%$ while many others also show a $1 0 \% +$ increase). Examples include MILE (DeepWalk, $m = 1$ ) on Blog/PPI, MILE (Line, $m = 1$ ) on PPI and MILE (NetMF, $m = 1$ ) on PPI/Blog/Flickr. Even with higher number of coarsening level ( $m = 2$ for PPI/Blog/Flickr; $m = 6 , 8$ for YouTube), MILE in addition to being much faster can still improve, qualitatively, over the original methods on most of the datasets, e.g., MILE(NetMF, $m = 2$ ) $\gg$ NETMF on PPI, Blog, and Flickr. We conjecture the observed improvement on quality is because the embeddings begin to rely on a more holistic view of the graph.
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 3: Changes in performance as the number of coarsening levels in MILE increases (best viewed in color). Micro-F1 and running-time are reported in the first and second row respectively. Running time in minutes is shown in logarithm scale. Note that # level = 0 represents the original embedding method without using MILE. Lines/points are missing for algorithms that use over 128 GB of RAM.
|
| 149 |
+
|
| 150 |
+
• MILE supports multiple embedding strategies. We make some embedding-specific observations here. We observe that MILE consistently improves both the quality and the efficiency of NetMF on all four datasets (for YouTube, NetMF runs out of memory). For the largest dataset, the speedups afforded exceed 30-fold. We observe that for GraRep, while speedups with MILE are consistently observed, the qualitative improvements, if any, are smaller (for both YouTube and Flickr, the base method runs out of memory). For Line, even though its time complexity is linear to the number of edges (Tang et al., 2015), applying MILE framework on top of it still generates significant speed-up (likely due to the fact that the complexity of Line contains a larger constant factor $k$ than MILE). On the other hand, MILE on top of Line generates better quality of embeddings on PPI and YouTube while falling a bit short on Blog and Flickr. For DeepWalk and Node2Vec, we again observe consistent improvements in scalability (up to 11-fold on the larger datasets) as well as quality using MILE with a few levels of coarsening. However, when the coarsening level is increased, the additional speedup afforded (up to 17-fold) comes at a mixed cost to quality (micro-F1 drops slightly).
|
| 151 |
+
|
| 152 |
+
• Impact of varying coarsening levels on MILE. When coarsening level $m$ is small, MILE tends to significantly improve the quality of embeddings while taking much less time. From $m = 0$ to $m = 1$ , we see a clear jump of the Micro-F1 score on all the datasets across the base embedding methods. This observation is more evident on larger datasets (Flickr and YouTube). On YouTube, MILE (DeepWalk) with $m { = } 1$ increases the Micro-F1 score by $5 . 3 \%$ while only consuming half of the time compared to the original DeepWalk. MILE (DeepWalk) continues to generate embeddings of better quality than DeepWalk until $m = 7$ , where the speedup is $1 3 \times$ . As the coarsening level $m$ in MILE increases, the running time drops dramatically while the quality of embeddings only decreases slightly.
|
| 153 |
+
|
| 154 |
+
Table 2: MILE vs. HARP
|
| 155 |
+
|
| 156 |
+
<table><tr><td></td><td colspan="2">PPI</td><td colspan="2">Blog</td></tr><tr><td>DeepWalk (DW)</td><td>Mi-F1 23.0</td><td>Time</td><td>Mi-F1</td><td>Time 8.0</td></tr><tr><td>MILE (DW) HARP (DW) Node2Vec (NV)</td><td>25.6 24.1 24.3</td><td>2.4 1.2 3.0 4.0</td><td>37.0 42.9 41.3 39.1</td><td>4.6 9.8 13.0</td></tr><tr><td>MILE (NV)</td><td>25.9</td><td>1.7</td><td>42.8</td><td>6.9</td></tr><tr><td>HARP (NV)</td><td>22.3</td><td>3.9</td><td>36.2</td><td>13.16</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td colspan="2">Flickr</td><td colspan="2">YouTube</td></tr><tr><td></td><td>Mi-F1</td><td>Time</td><td>Mi-F1</td><td>Time</td></tr><tr><td>DeepWalk</td><td>40.0</td><td>50.0</td><td>45.2</td><td>604.8</td></tr><tr><td>MILE (DW)</td><td>40.4</td><td>34.4</td><td>46.1</td><td>55.2</td></tr><tr><td>HARP (DW)</td><td>40.6</td><td>78.2</td><td>46.6</td><td>1727.7</td></tr><tr><td>Node2Vec</td><td>40.5</td><td>78.2</td><td>45.5</td><td>951.2</td></tr><tr><td>MILE (NV)</td><td>40.7</td><td>50.5</td><td>46.3</td><td>83.5</td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td>HARP (NV)</td><td>40.5</td><td>101.1</td><td>47.2</td><td>1981.3</td></tr></table>
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 4: Running MILE on Yelp dataset.
|
| 160 |
+
|
| 161 |
+
The running time decreases at an almost exponential rate (logarithm scale on the y-axis in the second row of Figure 3). On the other hand, the Micro-F1 score descends much more slowly (the first row of Figure 3). most of which are still better than the original methods. This shows that MILE can not only consolidates the existing embedding methods, but also provides nice trade-off between effectiveness and efficency.
|
| 162 |
+
|
| 163 |
+
# 5.3 Comparing MILE with HARP
|
| 164 |
+
|
| 165 |
+
HARP is a multi-level method primarily for improving the quality of graph embeddings. We compare HARP with our MILE framework using DeepWalk and Node2vec as the base embedding methods3. Table 2 shows the performance of these two methods on the four datasets (coarsening level is 1 on PPI/Blog/Flickr and 6 on YouTube). From the table we can observe that MILE generates embeddings of comparable quality with HARP. MILE performs much better than HARP on PPI and Blog, marginally better on Flickr and marginally worse on YouTube. However, MILE is significantly faster than HARP on all the four datasets (e.g. on YouTube, MILE affords a $3 1 \times$ speedup). This is because HARP requires running the whole embedding algorithm on each coarsened graph, which introduces a huge computational overhead. Note that for PPI and BLOG – MILE with NetMF (not shown) as its base embeddings produces the best micro-F1 of 26.9 and 43.8, respectively. This shows another advantage of MILE - agnostic to the base embedding when compared with HARP.
|
| 166 |
+
|
| 167 |
+
# 5.4 MILE: Large Graph Embedding
|
| 168 |
+
|
| 169 |
+
We now explore the scalability of MILE on the large Yelp dataset. None of the five graph embedding methods studied in this paper can successfully conduct graph embedding on Yelp within 60 hours on a modern machine with 28 cores and 128 GB RAM. Even extending the run-time deadline to 100 hours, we see DeepWalk and Line barely finish. Leveraging the proposed MILE framework now makes it much easier to perform graph embedding on this scale of datasets (see Figure 4 for the results). We observe that MILE significantly reduces the running time and improves the Micro-F1 score. For example, Micro-F1 score of original DeepWalk and Line are 0.640 and 0.625 respectively, which all take more than 80 hours. But using MILE with $m = 4$ , the micro-F1 score improves to 0.643 (DeepWalk) and 0.642 (Line) while achiving speedups of around $1 . 6 \times$ . Moreover, MILE reduces the running time of DeepWalk from 53 hours (coarsening level 4) to 2 hours (coarsening level 22) while reducing the Micro-F1 score just by $1 \%$ (from 0.643 to 0.634). Meanwhile, there is no change in the Micro-F1 score from coarsening level 4 to 10, where the running time is improved by a factor of two. These results affirm the power of the proposed MILE framework on scaling up graph embedding algorithms while generating quality embeddings.
|
| 170 |
+
|
| 171 |
+
# 6 Conclusion
|
| 172 |
+
|
| 173 |
+
In this work, we propose a novel multi-level embedding (MILE) framework to scale up graph embedding techniques, without modifying them. Our framework incorporates existing embedding techniques as black boxes, and significantly improves the scalability of extant methods by reducing both the running time and memory consumption. Additionally, MILE also provides a lift in the quality of node embeddings in most of the cases. A fundamental contribution of MILE is its ability to learn a refinement strategy that depends on both the underlying graph properties and the embedding method in use. In the future, we plan to generalize MILE for information-rich graphs and employing MILE for more applications.
|
| 174 |
+
|
| 175 |
+
# References
|
| 176 |
+
|
| 177 |
+
Sanjeev Arora, Yuanzhi Li, Yingyu Liang, Tengyu Ma, and Andrej Risteski. A latent variable model approach to pmi-based word embeddings. In TACL, 2016.
|
| 178 |
+
|
| 179 |
+
Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In CIKM, 2015.
|
| 180 |
+
|
| 181 |
+
Shiyu Chang, Wei Han, Jiliang Tang, Guo-Jun Qi, Charu C Aggarwal, and Thomas S Huang. Heterogeneous network embedding via deep architectures. In KDD, pp. 119–128. ACM, 2015.
|
| 182 |
+
|
| 183 |
+
Haochen Chen, Bryan Perozzi, Yifan Hu, and Steven Skiena. Harp: Hierarchical representation learning for networks. In AAAI, 2018.
|
| 184 |
+
|
| 185 |
+
Fan Chung. Laplacians and the cheeger inequality for directed graphs. Annals of Combinatorics, 9(1):1–19, 2005.
|
| 186 |
+
|
| 187 |
+
Yuxiao Dong, Nitesh V Chawla, and Ananthram Swami. metapath2vec: Scalable representation learning for heterogeneous networks. In KDD, 2017.
|
| 188 |
+
|
| 189 |
+
David Gleich. Hierarchical directed spectral graph partitioning. Information Networks, 2006.
|
| 190 |
+
|
| 191 |
+
Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In KDD, 2016.
|
| 192 |
+
|
| 193 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NIPS, 2017.
|
| 194 |
+
|
| 195 |
+
William L Hamilton, Jure Leskovec, and Dan Jurafsky. Diachronic word embeddings reveal statistical laws of semantic change. In ACL, 2016.
|
| 196 |
+
|
| 197 |
+
Keith Henderson, Brian Gallagher, Tina Eliassi-Rad, Hanghang Tong, Sugato Basu, Leman Akoglu, Danai Koutra, Christos Faloutsos, and Lei Li. Rolx: structural role extraction $\&$ mining in large graphs. In KDD, pp. 1231–1239. ACM, 2012.
|
| 198 |
+
|
| 199 |
+
Xiao Huang, Jundong Li, and Xia Hu. Accelerated attributed network embedding. In SDM, 2017.
|
| 200 |
+
|
| 201 |
+
George Karypis and Vipin Kumar. Multilevel k-way partitioning scheme for irregular graphs. In JPDC, 1998.
|
| 202 |
+
|
| 203 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
|
| 204 |
+
|
| 205 |
+
Omer Levy and Yoav Goldberg. Neural word embedding as implicit matrix factorization. In NIPS, 2014.
|
| 206 |
+
|
| 207 |
+
Jiongqian Liang, Peter Jacobs, Jiankai Sun, and Srinivasan Parthasarathy. Semi-supervised embedding in attributed networks with outliers. In SDM, 2018.
|
| 208 |
+
|
| 209 |
+
Shirui Pan, Jia Wu, Xingquan Zhu, Chengqi Zhang, and Yang Wang. Tri-party deep network representation. In IJCAI, 2016.
|
| 210 |
+
|
| 211 |
+
Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In KDD, 2014.
|
| 212 |
+
|
| 213 |
+
Jiezhong Qiu, Yuxiao Dong, Hao Ma, Jian Li, Kuansan Wang, and Jie Tang. Network embedding as matrix factorization: Unifying deepwalk, line, pte, and node2vec. In WSDM, 2018.
|
| 214 |
+
|
| 215 |
+
Venu Satuluri and Srinivasan Parthasarathy. Symmetrizations for clustering directed graphs. In Proceedings of the 14th International Conference on Extending Database Technology, pp. 343–354. ACM, 2011.
|
| 216 |
+
|
| 217 |
+
Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In WWW, 2015.
|
| 218 |
+
|
| 219 |
+
Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In KDD, 2016.
|
| 220 |
+
|
| 221 |
+
Cheng Yang, Zhiyuan Liu, Deli Zhao, Maosong Sun, and Edward Y Chang. Network representation learning with rich text information. In IJCAI, 2015.
|
| 222 |
+
|
| 223 |
+
Cheng Yang, Maosong Sun, Zhiyuan Liu, and Cunchao Tu. Fast network embedding enhancement via high order proximity approximation. In IJCAI, 2017.
|
| 224 |
+
|
| 225 |
+
# A Appendix
|
| 226 |
+
|
| 227 |
+
A.1 Experimental Configuration Details
|
| 228 |
+
|
| 229 |
+
A.1.1 Datasets
|
| 230 |
+
|
| 231 |
+
The details about the datasets used in our experiments are :
|
| 232 |
+
|
| 233 |
+
• PPI is a Protein-Protein Interaction graph constructed based on the interplay activity between proteins of Homo Sapiens, where the labels represent biological states.
|
| 234 |
+
• Blog is a network of social relationship of bloggers on BlogCatalog and the labels indicate interests of the bloggers.
|
| 235 |
+
• Flickr is a social network of the contacts between users on flickr.com with labels denoting the interest groups.
|
| 236 |
+
• YouTube is a social network between users on YouTube, where labels represent genres of groups subscribed by users.
|
| 237 |
+
• Yelp is a social network of friends on Yelp and labels indicate the business categories on which the users review.
|
| 238 |
+
|
| 239 |
+
# A.1.2 Baseline Methods
|
| 240 |
+
|
| 241 |
+
Baseline Methods: To demonstrate that MILE can work with different graph embedding methods, we explore several popular methods for graph embedding.
|
| 242 |
+
|
| 243 |
+
• DeepWalk (DW) (Perozzi et al., 2014): Following the original work (Perozzi et al., 2014), we set the length of random walks as 80, number of walks per node as 10, and context windows size as 10.
|
| 244 |
+
• Node2Vec (NV) (Grover & Leskovec, 2016): We use the same setting as DeepWalk for those common hyper-parameters while setting $p = 4 . 0$ and $q = 1 . 0$ , which we found empirically to generate better results across all the datasets.
|
| 245 |
+
• Line (LN) (Tang et al., 2015): This method aims at preserving first-order and secondorder proximities and has been applied on large-scale graph. We learn the first-order and second-order embeddings respectively and concatenate them to a unified embedding.
|
| 246 |
+
• GraRep (GR) (Cao et al., 2015): This method considers different powers (up to $k$ ) of the adjacency matrix to preserve higher-order graph proximity for graph embedding. It uses SVD decomposition to generate the low-dimensional representation of nodes. We set $k = 4$ as suggested in the original work.
|
| 247 |
+
• NetMF (NM) (Qiu et al., 2018): It is a recent effort that supports graph embedding via matrix factorization. We set the window size to 10 and the rank $h$ to 1024, and lever the approximate version, as suggested and reported by the authors.
|
| 248 |
+
|
| 249 |
+
# A.1.3 MILE-specific Settings
|
| 250 |
+
|
| 251 |
+
For all the above base embedding methods, we set the embedding dimensionality $d$ as 128. When applying our MILE framework, we vary the coarsening levels $m$ from 1 to 10 whenever possible. For the graph convolution network model, the self-loop weight $\lambda$ is set to 0.05, the number of hidden layers $\it l$ is 2, and tanh $( \cdot )$ is used as the activation function, the learning rate is set to 0.001 and the number of training epochs is 200. The Adam Optimizer is used for model training.
|
| 252 |
+
|
| 253 |
+
# A.1.4 System Specification
|
| 254 |
+
|
| 255 |
+
The experiments were conducted on a machine running Linux with an Intel Xeon E5-2680 CPU (28 cores, 2.40GHz) and 128 GB of RAM. We implement our MILE framework in Python. Our code and data are will be available for the replicability purpose. For all the five base embedding methods, we adapt the original code from the authors4. We additionally use TensorFlow package for the embeddings refinement learning component. We lever the available parallelism (on 28 cores) for each method (e.g., the generation of random walks in DeepWalk and Node2Vec, the training of the refinement model in MILE, etc.).
|
| 256 |
+
|
| 257 |
+
# A.1.5 Evaluation Metrics
|
| 258 |
+
|
| 259 |
+
To evaluate the quality of the embeddings, we follow the typical method in existing work to perform multi-label node classification (Perozzi et al., 2014; Grover & Leskovec, 2016). Specifically, after the graph embeddings are learned for nodes (label is not used for this part), we run a 10-fold cross validation using the embeddings as features and report the average Micro-F1 and average Macro-F1. We also record the end-to-end wallclock time consumed by each method for scalability comparisons.
|
| 260 |
+
|
| 261 |
+
# A.2 Time Complexity
|
| 262 |
+
|
| 263 |
+
It is non-trivial to derive the exact time complexity of MILE as it is dependent on the graph structure, the chosen base embedding method, and the convergence rate of the GCN model training. Here, we provide a rough estimation of the time complexity. For simplicity, we assume the number of vertices and the number of edges are reduced by factor $\alpha$ and $\beta$ respectively at each step of coarsening ( $\alpha > 1 . 0$ and $\beta > 1 . 0$ ), i.e., $\begin{array} { r } { V _ { i } ~ = ~ \frac { 1 } { \alpha } V _ { i - 1 } } \end{array}$ and $\begin{array} { r } { E _ { i } = \frac { 1 } { \beta } E _ { i - 1 } } \end{array}$ . (we found $\alpha$ and $\beta$ in range [1.5, 2.0], empirically). With $m$ levels of coarsening, the coarsening complexity is approximately ${ \cal O } ( ( 1 - 1 / \beta ^ { \mathrm { m } } ) / ( 1 - 1 / \beta ) \times E ) \}$ and since $1 / \beta ^ { \mathrm { m } }$ is small, the complexity reduces to $\scriptstyle O ( { \frac { \beta } { \beta - 1 } } \times E )$ . For the base embedding phase, if the embeddiphase is m has time complexity of . For the refinement ph $T ( V , E )$ , the complexity of the base embedding time complexity can be divided into $\begin{array} { r } { T ( \frac { V } { \alpha ^ { m } } , \frac { E } { \beta ^ { m } } ) } \end{array}$
|
| 264 |
+
two parts, i.e. the GCN model training and the embedding inference applying the GCN $\begin{array} { r } { O ( k _ { 1 } * { \frac { E } { \beta ^ { m } } } ) } \end{array}$ e forme (Kipf $\&$ has similar complexity Welling, 2017), where $k _ { 1 }$ the original GCN and can be denoted asis a small constant related to embedding dimensionality and the number of training epochs. The embedding inference part is simply sparse matrix multiplication using Eq. 4 with time complexity $O ( k _ { 2 } * E _ { i } )$ when refining the embeddings on graph $\beta _ { i }$ , where $k _ { 2 }$ is an even smaller constant $( k _ { 2 } < k _ { 1 }$ ). As a result, the time complexity of the whole refinement phase is $\begin{array} { r } { O ( k _ { 1 } * \frac { E } { \beta ^ { m } } + k _ { 2 } * ( E + \frac { E } { \beta ^ { 1 } } . . . + \frac { E } { \beta ^ { m - 1 } } ) ) \approx O ( k _ { 3 } * E ) } \end{array}$ where $k _ { 3 }$ is a small constant.
|
| 265 |
+
|
| 266 |
+
reduce it to be Overall, for an embedding algorithm of time complexity $\begin{array} { r } { T ( \frac { V } { \alpha ^ { m } } , \frac { E } { \beta ^ { m } } ) + O ( k * E ) } \end{array}$ . This is a significant improvement considering $T ( V , E )$ , the MILE framework can $T ( V , E )$ is usually very large. The reduction in time complexity is attributed to the fact that we run the embedding learning and refinement model training at the coarsest graph. In addition, the overhead introduced by the coarsening phase and recursive embedding refinement is relatively small (linear to the number of edges $E$ ). Note that the constant factor $k$ in the complexity term is usually small and we empirically found it to be in the scale of tens. Because of this, even when the complexity of the original embedding algorithm is linear to $E$ , our MILE framework could still potentially speed up the embedding process because the complexity of MILE contains a smaller constant factor $k$ (see Sec. 5.2 for the experiment of applying MILE on LINE).
|
| 267 |
+
|
| 268 |
+
Furthermore, it is worth noting that many of the existing embedding strategies involve hyperparameters tunning for the best performance, especially for those methods based on neural networks (e.g., DeepWalk, Node2Vec, etc.). This in turn requires the algorithm to be run repeatedly – hence any savings in runtime by applying MILE are magnified across multiple runs of the algorithm with different hyper-parameter settings.
|
| 269 |
+
|
| 270 |
+
# A.3 MILE Performance
|
| 271 |
+
|
| 272 |
+
The detailed information about performance evaluation is available in Table 3.
|
| 273 |
+
(a) PPI Dataset
|
| 274 |
+
|
| 275 |
+
<table><tr><td>Method</td><td>Micro-F1</td><td>Macro-F1</td><td>Time (mins)</td></tr><tr><td>DeepWalk MILE (DeepWalk,m =1) MILE(DeepWalk,m =2)</td><td>23.0 25.6(11.3%↑) 25.5(10.9%↑)</td><td>18.6 20.4(9.7%1) 20.7(11.3%↑)</td><td>2.42 1.22(2.0×) 0.67(3.6x)</td></tr><tr><td>Node2Vec MILE (Node2Vec,m =1) MILE (Node2Vec,m=2)</td><td>24.3 25.9(6.6%↑) 26.0(7.0%↑)</td><td>19.6 20.6(5.1%↑) 21.1(7.7%↑)</td><td>4.01 1.77(2.3×) 0.98(4.1x)</td></tr><tr><td>Line MILE (Line, m = 1) MILE (Line, m = 2)</td><td>25.0 25.8 (3.2%↑) 24.7 (-1.2%↓)</td><td>19.5 19.8 (1.5%↑) 19.0 (-2.6%↓)</td><td>2.27 1.22 (1.9×) 0.68 (3.3x)</td></tr><tr><td>GraRep</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td></td><td>25.3(-0.8%↓)</td><td></td><td>1.11(2.7×)</td></tr><tr><td>MILE (GraRep, m = 1)</td><td>25.5</td><td>20.0</td><td>2.99</td></tr><tr><td></td><td>25.6(0.4%↑)</td><td>19.8(-1.0%↓)</td><td></td></tr><tr><td>MILE(GraRep,m=2)</td><td></td><td></td><td></td></tr><tr><td></td><td></td><td>19.5(-2.5%↓)</td><td>0.43(6.9x)</td></tr><tr><td>NetMF</td><td>24.6</td><td>20.1</td><td>0.65</td></tr><tr><td>MILE (NetMF, m = 1)</td><td>26.9(9.3%↑)</td><td></td><td></td></tr><tr><td></td><td></td><td>21.6(7.5%↑)</td><td>0.27(2.5×)</td></tr><tr><td>MILE (NetMF,m=2)</td><td>26.7(8.5%↑)</td><td>21.1(5.0%↑)</td><td>0.17(3.9×)</td></tr></table>
|
| 276 |
+
|
| 277 |
+
<table><tr><td>Method</td><td>Micro-F1</td><td>Macro-F1</td><td>Time (mins)</td></tr><tr><td>DeepWalk MILE (DeepWalk,m =1)</td><td>37.0 42.9(15.9%↑)</td><td>21.0 27.0(28.6%↑)</td><td>8.02 4.69(1.7×)</td></tr><tr><td>MILE (DeepWalk,m= 2) Node2Vec MILE (Node2Vec, m = 1)</td><td>39.4(6.5%↑) 39.1 42.8(9.5%↑)</td><td>23.5(11.9%↑) 23.0 26.4(14.8%↑)</td><td>2.71(3.0×) 13.04 6.99(1.9×)</td></tr><tr><td>MILE(Node2Vec,m=2) Line</td><td>40.2(2.8%↑) 39.1</td><td>23.9(3.9%↑)</td><td>3.89(3.4×)</td></tr><tr><td></td><td></td><td>22.6</td><td>5.95</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>MILE (Line,m=1)</td><td>38.4 (-1.8%↓)</td><td>21.0 (-7.0%↓)</td><td></td></tr><tr><td></td><td></td><td></td><td>3.84 (1.55x)</td></tr><tr><td>MILE (Line,m=2)</td><td>37.3 (-4.6%↓)</td><td>19.6 (-13.2%↓)</td><td>2.58 (2.31x)</td></tr><tr><td>GraRep</td><td></td><td></td><td></td></tr><tr><td></td><td>40.6</td><td>23.3</td><td>28.76</td></tr><tr><td>MILE (GraRep,m =1)</td><td>41.7(2.7%↑)</td><td>24.0(3.0%↑)</td><td>12.25(2.3×)</td></tr><tr><td>MILE(GraRep,m=2)</td><td>38.3(-5.7%↓)</td><td>20.4(-12.4%↓)</td><td>4.22(6.8x)</td></tr><tr><td>NetMF</td><td>41.4</td><td>25.0</td><td>2.64</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>MILE (NetMF,m=1)</td><td>43.8(5.8%↑)</td><td>27.6(10.4%↑)</td><td>1.98(1.3×)</td></tr><tr><td>MILE(NetMF,m=2)</td><td>42.4(2.4%↑)</td><td>25.5(2.0%↑)</td><td>1.27(2.1×)</td></tr></table>
|
| 278 |
+
|
| 279 |
+
(b) Blog Dataset
|
| 280 |
+
|
| 281 |
+
<table><tr><td>Method</td><td>Micro-F1</td><td>Macro-F1</td><td>Time (mins)</td></tr><tr><td>DeepWalk MILE (DeepWalk, m = 1)</td><td>40.0 40.4(1.0%↑)</td><td>26.5 27.3(3.0%↑)</td><td>50.08 34.48(1.5×)</td></tr><tr><td>MILE (DeepWalk,m=2)</td><td>39.3(-1.8%↓)</td><td>26.1(-1.5%)</td><td>26.88(1.9x)</td></tr><tr><td>Node2Vec</td><td>40.5</td><td>27.3</td><td>78.21</td></tr><tr><td></td><td></td><td></td><td></td></tr><tr><td>MILE (Node2Vec, m = 1)</td><td>40.7(0.5%↑)</td><td>27.7(1.5%↑)</td><td>50.54(1.5x)</td></tr><tr><td>MILE(Node2Vec,m=2)</td><td>38.8(-4.2%↓)</td><td>25.8(-5.5%)</td><td>36.85(2.1x)</td></tr><tr><td>Line</td><td>34.0</td><td>14.5</td><td>60.42</td></tr><tr><td>MILE (Line, m =1)</td><td>33.9 (-0.3%↓)</td><td>13.8 (-4.8%↓)</td><td>30.24 (2.00×)</td></tr><tr><td>MILE (Line, m= 2)</td><td>33.3 (-2.1%↓)</td><td>12.9 (-11.0%↓)</td><td>19.05 (3.17×)</td></tr><tr><td>GraRep</td><td>N/A</td><td>N/A</td><td>>2343.37</td></tr><tr><td>MILE (GraRep,m =1)</td><td>36.7</td><td>18.6</td><td>697.39(>3.4×)</td></tr><tr><td>MILE (GraRep,m=2)</td><td>36.3</td><td>18.6</td><td>163.05(>14.4×)</td></tr><tr><td>NetMF</td><td>31.8</td><td>14.0</td><td></td></tr><tr><td></td><td></td><td></td><td>69.72</td></tr><tr><td>MILE (NetMF, m=1)</td><td>39.3(23.6%↑)</td><td>24.5(75.0%↑)</td><td>24.03(2.9×)</td></tr><tr><td>MILE (NetMF,m= 2)</td><td>39.5(24.2%↑)</td><td>25.9(85.0%↑)</td><td>15.84(4.4×)</td></tr></table>
|
| 282 |
+
|
| 283 |
+
(c) Flickr Dataset
|
| 284 |
+
|
| 285 |
+
<table><tr><td>Method</td><td>Micro-F1</td><td>Macro-F1</td><td>Time (mins)</td></tr><tr><td>DeepWalk MILE (DeepWalk,m = 6)</td><td>45.2 46.1(2.0%↑)</td><td>34.7 38.5(11.0%↑)</td><td>604.83 55.20(11.0×)</td></tr><tr><td>MILE (DeepWalk,m = 8) Node2Vec</td><td>44.3(-2.0%↓)</td><td>35.3(1.7%↑)</td><td>37.35(16.2x)</td></tr><tr><td>MILE (Node2Vec, m = 6)</td><td>45.5</td><td>34.6</td><td>951.27</td></tr><tr><td></td><td>46.3(1.8%↑)</td><td>38.3(10.7%↑)</td><td>83.52(11.4×)</td></tr><tr><td>MILE (Node2Vec,m=8)</td><td></td><td>35.8(3.5%↑)</td><td></td></tr><tr><td></td><td>44.3(-2.6%↓)</td><td></td><td>55.55(17.1×)</td></tr><tr><td>Line</td><td>46.0</td><td>35.0</td><td>583.37</td></tr><tr><td>MILE (Line, m = 6)</td><td>46.2 (0.4%↑)</td><td>36.2 (3.4%↑)</td><td>53.97 (10.81x)</td></tr><tr><td>MILE (Line,m=8)</td><td>44.4 (-3.5%↓)</td><td>35.7 (2.0%↑)</td><td>33.41 (17.46×)</td></tr><tr><td>GraRep</td><td>N/A</td><td>N/A</td><td>>3167.00</td></tr><tr><td></td><td>43.2</td><td>32.7</td><td></td></tr><tr><td>MILE(GraRep,m=6)</td><td></td><td></td><td>1644.89(>1.9×)</td></tr><tr><td>MILE(GraRep,m=8)</td><td>42.3</td><td>30.9</td><td>673.95(>4.7×)</td></tr><tr><td>NetMF</td><td>N/A</td><td>N/A</td><td>> 574.75</td></tr><tr><td>MILE (NetMF,m=6)</td><td>40.9</td><td>27.8</td><td>35.22(>16.3×)</td></tr><tr><td>MILE (NetMF,m=8)</td><td>39.2</td><td>25.5</td><td>19.22(>29.9×)</td></tr></table>
|
| 286 |
+
|
| 287 |
+
(d) YouTube Dataset
|
| 288 |
+
|
| 289 |
+
Table 3: Performance of MILE. DeepWalk, Node2Vec, GraRep, and NetMF denotes the original method without using our MILE framework. $m$ is the number of coarsening levels. The numbers within the parenthesis by the reported Micro-F1 and Macro-F1 scores are the relative percentage of change compared to the original method Numbers along with “ $\times$ ” is the speedup compared to the original method. “N/A” indicates the method runs out of memory and we show the amount of running time spent when it happens.
|
| 290 |
+
|
| 291 |
+
# A.4 MILE Drilldown: Design Choices
|
| 292 |
+
|
| 293 |
+
We now study the role of the design choices we make within the MILE framework related to the coarsening and refinement procedures described. To this end, we examine alternative design choices and systematically examine their performance. The alternatives we consider are:
|
| 294 |
+
|
| 295 |
+
• Random Matching (MILE-rm): For each iteration of coarsening, we repeatedly pick a random pair of connected nodes as a match and merge them into a super-node until no more matching can be found. The rest of the algorithm is the same as our MILE.
|
| 296 |
+
• Simple Projection (MILE-proj): We replace our embedding refinement model with a simple projection method. In other words, we directly copy the embedding of a super-node to its original node(s) without any refinement (see Eq. 3).
|
| 297 |
+
• Averaging Neighborhoods (MILE-avg): For this baseline method, the refined embedding of each node is a weighted average node embeddings of its neighborhoods (weighted by the edge weights). This can be regarded as an embeddings propagation method. We add self-loop to each node $_ 6$ and conduct the embeddings propagation for two rounds.
|
| 298 |
+
• Untrained Refinement Model (MILE-untr): Instead of training the refinement model to minimize the loss defined in Eq. 7, this baseline merely uses a fixed set of values for parameters $\Theta ^ { ( k ) }$ without training (values are randomly generated; other parts of the model in Eq. 4 are the same, including $\tilde { A }$ and $\tilde { D }$ ).
|
| 299 |
+
|
| 300 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=2>PPI</td><td rowspan=1 colspan=3>Blog</td><td rowspan=1 colspan=2>Flickr</td><td rowspan=1 colspan=2>YouTube</td></tr><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Mi-F1</td><td rowspan=1 colspan=1>Time</td><td rowspan=1 colspan=2>Mi-F1</td><td rowspan=1 colspan=1>Time</td><td rowspan=1 colspan=1>Mi-F1</td><td rowspan=1 colspan=1>Time</td><td rowspan=1 colspan=1>Mi-F1</td><td rowspan=1 colspan=1>Time</td></tr><tr><td rowspan=3 colspan=1>DeepWalkMILE (DW)MILE-rm (DW)</td><td rowspan=1 colspan=1>23.0</td><td rowspan=1 colspan=1>2.42</td><td rowspan=1 colspan=2>37.0</td><td rowspan=1 colspan=1>8.02</td><td rowspan=1 colspan=1>40.0</td><td rowspan=1 colspan=1>50.08</td><td rowspan=1 colspan=1>45.2</td><td rowspan=1 colspan=1>604.83</td></tr><tr><td rowspan=1 colspan=1>25.6</td><td rowspan=1 colspan=1>1.22</td><td rowspan=1 colspan=2>42.9</td><td rowspan=1 colspan=1>4.69</td><td rowspan=1 colspan=1>40.4</td><td rowspan=1 colspan=1>34.48</td><td rowspan=1 colspan=1>46.1</td><td rowspan=1 colspan=1>55.20</td></tr><tr><td rowspan=1 colspan=1>25.3</td><td rowspan=1 colspan=1>1.01</td><td rowspan=1 colspan=2>40.4</td><td rowspan=1 colspan=1>3.62</td><td rowspan=1 colspan=1>38.9</td><td rowspan=1 colspan=1>26.67</td><td rowspan=1 colspan=1>44.9</td><td rowspan=1 colspan=1>55.10</td></tr><tr><td rowspan=2 colspan=1>MILE-proj (DW)MILE-avg (DW)</td><td rowspan=1 colspan=1>20.9</td><td rowspan=1 colspan=1>1.12</td><td rowspan=1 colspan=2>34.5</td><td rowspan=1 colspan=1>3.92</td><td rowspan=1 colspan=1>35.5</td><td rowspan=1 colspan=1>25.99</td><td rowspan=1 colspan=1>40.7</td><td rowspan=1 colspan=1>53.97</td></tr><tr><td rowspan=1 colspan=1>23.5</td><td rowspan=1 colspan=1>1.07</td><td rowspan=1 colspan=2>37.7</td><td rowspan=1 colspan=1>3.86</td><td rowspan=1 colspan=1>37.2</td><td rowspan=1 colspan=1>25.99</td><td rowspan=1 colspan=1>41.4</td><td rowspan=4 colspan=1>55.2654.5294.74394.72</td></tr><tr><td rowspan=3 colspan=1>MILE-untr (DW)MILE-2base (DW)MILE-gs (DW)</td><td rowspan=1 colspan=1>23.5</td><td rowspan=1 colspan=1>1.08</td><td rowspan=1 colspan=2>35.5</td><td rowspan=1 colspan=1>3.96</td><td rowspan=1 colspan=1>37.6</td><td rowspan=1 colspan=1>26.02</td><td rowspan=3 colspan=1>41.841.643.6</td></tr><tr><td rowspan=2 colspan=1>25.422.4</td><td rowspan=2 colspan=1>2.222.03</td><td rowspan=2 colspan=2>35.635.3</td><td rowspan=1 colspan=1>.6</td><td rowspan=1 colspan=1>6.74</td><td rowspan=2 colspan=1>37.736.4</td><td rowspan=2 colspan=1>53.3244.81</td></tr><tr><td rowspan=1 colspan=1>6.44</td></tr><tr><td rowspan=8 colspan=1>NetMFMILE (NM)MILE-rm (NM)MILE-proj (NM)MILE-avg (NM)MILE-untr (NM)MILE-2base (NM)MILE-gs(NM)</td><td rowspan=1 colspan=1>24.6</td><td rowspan=1 colspan=1>0.65</td><td rowspan=1 colspan=2>41.4</td><td rowspan=1 colspan=1>2.64</td><td rowspan=1 colspan=1>31.8</td><td rowspan=1 colspan=1>69.72</td><td rowspan=1 colspan=1>N/A</td><td rowspan=1 colspan=1>>574</td></tr><tr><td rowspan=1 colspan=1>26.9</td><td rowspan=1 colspan=1>0.27</td><td rowspan=1 colspan=2>43.8</td><td rowspan=1 colspan=1>1.98</td><td rowspan=1 colspan=1>39.3</td><td rowspan=1 colspan=1>24.03</td><td rowspan=1 colspan=1>40.9</td><td rowspan=1 colspan=1>35.22</td></tr><tr><td rowspan=2 colspan=1>25.223.5</td><td rowspan=2 colspan=1>0.220.12</td><td rowspan=2 colspan=2>41.038.7</td><td rowspan=1 colspan=1>1.69</td><td rowspan=1 colspan=1>37.6</td><td rowspan=1 colspan=1>20.00</td><td rowspan=2 colspan=1>39.626.4</td><td rowspan=2 colspan=1>33.5226.48</td></tr><tr><td rowspan=1 colspan=1>1.06</td><td rowspan=1 colspan=1>34.5</td><td rowspan=1 colspan=1>15.10</td></tr><tr><td rowspan=1 colspan=1>24.5</td><td rowspan=1 colspan=1>0.13</td><td rowspan=1 colspan=2>39.9</td><td rowspan=1 colspan=1>1.05</td><td rowspan=1 colspan=1>36.4</td><td rowspan=1 colspan=1>14.86</td><td rowspan=2 colspan=1>26.430.2</td><td rowspan=3 colspan=1>27.7127.2055.18</td></tr><tr><td rowspan=1 colspan=1>24.8</td><td rowspan=1 colspan=1>0.13</td><td rowspan=1 colspan=2>39.4</td><td rowspan=1 colspan=1>1.08</td><td rowspan=1 colspan=1>36.4</td><td rowspan=1 colspan=1>15.23</td><td rowspan=1 colspan=1>30.2</td></tr><tr><td rowspan=2 colspan=1>26.624.8</td><td rowspan=1 colspan=1>0.29</td><td rowspan=1 colspan=2>41.3</td><td rowspan=1 colspan=1>2.33</td><td rowspan=1 colspan=1>37.7</td><td rowspan=1 colspan=1>31.65</td><td rowspan=1 colspan=1>34.7</td></tr><tr><td rowspan=1 colspan=1>1.08</td><td rowspan=1 colspan=2>40.0</td><td rowspan=1 colspan=1>3.70</td><td rowspan=1 colspan=1>35.1</td><td rowspan=1 colspan=1>34.25</td><td rowspan=1 colspan=1>36.4</td><td rowspan=1 colspan=1>345.28</td></tr></table>
|
| 301 |
+
|
| 302 |
+
Table 4: Comparisons of graph embeddings between MILE and its variants. Except for the original methods (DeepWalk and NetMF), the number of coarsening level $m$ is set to 1 on PPI/Blog/Flickr and 6 on YouTube. Mi-F1 is the Micro-F1 score in $1 0 ^ { - 2 }$ scale while Time column shows the running time of the method in minutes. “N/A” denotes the method consumes more than 128 GB RAM.
|
| 303 |
+
|
| 304 |
+
• Double-base Embedding for Refinement Training (MILE-2base): This method replaces the loss function in Eq. 7 with the alternative one in Eq. 6 for model training. It conducts one more layer of coarsening and base embedding (level $m + 1$ ), from which the embeddings are projected to level $m$ and used as the input for model training.
|
| 305 |
+
|
| 306 |
+
• GraphSAGE as Refinement Model (MILE-gs): It replaces the graph convolution network in our refinement method with GraphSAGE (Hamilton et al., 2017)7. We choose max-pooling for aggregation and set the number of sampled neighbors as 100, as suggested by the authors. Also, concatenation is conducted instead of replacement during the process of propagation.
|
| 307 |
+
|
| 308 |
+
Table 4 shows the comparison of performance on these methods across the four datasets. Here, we focus on using DeepWalk and NetMF for base embedding with a smaller coarsening level ( $m = 1$ for PPI, Blog, and Flickr; $m = 6$ for YouTube). Results are similar for the other embedding options we consider. We hereby summarize the key information derived from Table 4 as follows:
|
| 309 |
+
|
| 310 |
+
• The matching methods used within MILE offer a qualitative benefit at a minimal cost to execution time. Comparing MILE with MILE-rm for all the datasets, we can see that MILE generates better embeddings than MILE-rm using either DeepWalk or NetMF as the base embedding method. Though MILE-rm is slightly faster than MILE due to its random matching, its Micro-F1 score and Macro-F1 score are consistently lower than of MILE.
|
| 311 |
+
|
| 312 |
+
• The graph convolution based refinement learning methodology in MILE is particularly effective. Simple projection-based MILE-proj, performs significantly worse than MILE. The other two variants (MILE-avg and MILE-untr) which do not train the refinement model at all, also perform much worse than the proposed method. Note MILE-untr is the same as MILE except it uses a default set of parameters instead of learning those parameters. Clearly, the model learning part of our refinement method is a fundamental contributing factor to the effectiveness of MILE. Through training, the refinement model is tailored to the specific graph under the base embedding method in use. The overhead cost of this learning (comparing MILE with MILE-untr), can vary depending on the base embedding employed (for instance on the YouTube dataset, it is
|
| 313 |
+
|
| 314 |
+

|
| 315 |
+
|
| 316 |
+
Figure 5: Memory consumption of MILE (GraRep) and MILE (NetMF) on Blog with varied coarsening levels.
|
| 317 |
+
|
| 318 |
+
an insignificant $1 . 2 \%$ on DeepWalk - while being up to $2 0 \%$ on NetMF) but is still worth it due to qualitative benefits (Micro-F1 up from 30.2 to 40.9 with NetMF on YouTube).
|
| 319 |
+
|
| 320 |
+
• Graph convolution refinement learning outperforms GraphSAGE. Replacing the graph convolution network with GraphSAGE for embeddings refinement, MILE-gs does not perform as well as MILE. It is also computationally more expensive, partially due to its reliance on embeddings concatenation, instead of replacement, during the process the embeddings propagation (higher model complexity).
|
| 321 |
+
|
| 322 |
+
• Double-base embedding learning is not effective. In Sec. 4.3, we discuss the issues with unaligned embeddings of the double-base embedding method for the refinement model learning. The performance gap between MILE and MILE-2base in Table 4 provides empirical evidence supporting our argument. This gap is likely caused by the fact that the base embeddings of level $m$ and level $m + 1$ might not lie in the same embedding space (rotated by some orthogonal matrix) (Hamilton et al., 2017). As a result, using the projected embeddings $\mathcal { E } _ { m } ^ { p }$ as input for model training (MILE-2base) is not as good as directly using ${ \mathcal { E } } _ { m }$ (MILE). Moreover, Table 4 shows that the additional round of base embedding in MILE-2base introduces a non-trivial overhead. On YouTube, the running time of MILE-2base is 1.6 times as much as MILE.
|
| 323 |
+
|
| 324 |
+
# A.5 MILE Drilldown: Memory Consumption
|
| 325 |
+
|
| 326 |
+
We also study the impact of MILE on reducing memory consumption. For this purpose, we focus on MILE (GraRep) and MILE (NetMF), with GraRep and NetMF as base embedding methods respectively. Both of these are embedding methods based on matrix factorization, which possibly involves a dense objective matrix and could be rather memory expensive. We do not explore DeepWalk and Node2Vec here since their embedding learning methods generate truncated random walks (training data) on the fly with almost negligible memory consumption (compared to the space storing the graph and the embeddings). Figure 5 shows the memory consumption of MILE (GraRep) and MILE(NetMF) as the coarsening level increases on Blog (results on other datasets are similar). We observe that MILE significantly reduces the memory consumption as the coarsening level increases. Even with one level of coarsening, the memory consumption of GraRep and NetMF reduces by $6 4 \%$ and $4 2 \%$ respectively. The dramatic reduction continues as the coarsening level increases until it reaches 4, where the memory consumption is mainly contributed by the storage of the graph and the embeddings. This memory reduction is consistent with our intuition, since both # rows and # columns in the objective matrix reduce almost by half with one level of coarsening.
|
| 327 |
+
|
| 328 |
+
# A.6 MILE Drilldown: Discussion on reusing $\Theta ^ { ( k ) }$ across all levels
|
| 329 |
+
|
| 330 |
+
Similar to GCN, $\Theta ^ { ( k ) }$ is a matrix of filter parameters and is of size $d * d$ (where $d$ is the embedding dimensionality). Eq. 4 in this paper defines how the embeddings are propagated during embedding refinements, parameterized by $\Theta ^ { ( k ) }$ . Intuitively, $\Theta ^ { ( k ) }$ defines how different embedding dimensions interact with each other during the embedding propagation. This interaction is dependent on graph structure and base embedding method, which can be learned from the coarsest level. Ideally, we would like to learn this parameter $\Theta ^ { ( k ) }$ on every two consecutive levels. But this is not practical since this could be expensive as the graph get more fine-grained (and defeat our purpose of scaling up graph embedding). This trick of “sharing” parameters across different levels is the trade-off between efficiency and effectiveness. To some extent, it is similar to the original GCN (Kipf & Welling, 2017), where the authors share the same filter parameters $\Theta ^ { ( k ) }$ over the whole graph (as opposed to using different $\Theta ^ { ( k ) }$ for different nodes; see Eq (6) and (7) in(Kipf & Welling, 2017)). Moreover, we empirically found this works good enough and much more efficient. Table 4 shows that if we do not share $\Theta ^ { ( k ) }$ values and use random values for $\Theta ^ { ( k ) }$ during refinements, the quality of embedding is much worse (see baseline MILE-untr).
|
| 331 |
+
|
| 332 |
+
# A.7 MILE Drilldown: Discussion on choice of embedding methods
|
| 333 |
+
|
| 334 |
+
We wish to point out that we chose the base embedding methods as they are either recently proposed NetMF (introduced in 2018) or are widely used (DeepWalk, Node2Vec, LINE). By showing the performance gain of using MILE on top of these methods, we want to ensure the contribution of this work is of broad interest to the community. We also want to reiterate that these methods are quite different in nature:
|
| 335 |
+
|
| 336 |
+
• DeepWalk (DW) and Node2vec (N2V) rely on the use of random walks for latent representation of features.
|
| 337 |
+
• LINE learns an embedding that directly optimizes a carefully constructed objective function that preserves both first/second order proximity among nodes in the embedding space. GraRep constructs multiple objective matrices based on high orders of random walk laplacians, factories each objective matrix to generate embeddings and then concatenates the generated embeddings to form final embedding.
|
| 338 |
+
• NetMF constructs an objective matrix based on random walk Laplacian and factorizes the objective matrix in order to generate the embeddings.
|
| 339 |
+
|
| 340 |
+
Indeed NetMF (Qiu et al., 2018; Levy & Goldberg, 2014) with an appropriately constructed objective matrix has been shown to approximate DW, N2V and LINE allowing such be conducting implicit matrix factorization of approximated matrices. There are limitations to such approximations (shown in a related context by (Arora et al., 2016)) - the most important one is the requirement of a sufficiently large embedding dimensionality. Additionally, we note that while unification is possible under such a scenario, the methods based on matrix factorization are quite different from the original methods and do place a much larger premium on space (memory consumption) - in fact this is observed by the fact we are unable to run NetMF and GraRep in many cases without incorporating them within MILE.
|
| 341 |
+
|
| 342 |
+
A.8 MILE Drilldown: Discussion on extending MILE to directed graphs
|
| 343 |
+
|
| 344 |
+
Note that as pointed out by (Chung, 2005), one can construct random-walk Laplacians for a directed graph thus incorporating approaches like NetMF to accommodate such solutions. Another simple solution is to symmetrize the graph while accounting for directionality. Once the graph is symmetrized, any of the embedding strategies we discuss can be employed within the MILE framework (including the coarsening technique). There are many ideas for symmetrization of directed graphs (see for example work described by (Gleich, 2006) or (Satuluri & Parthasarathy, 2011).
|
| 345 |
+
|
| 346 |
+
# A.9 MILE Drilldown: Discussion on effectiveness of SEM
|
| 347 |
+
|
| 348 |
+
The effectiveness of structurally equivalent matching (SEM) is highly dependent on graph structure but in general 5% - $2 0 \%$ of nodes are structurally equivalent (most of which are low-degree nodes). For example, during the first level of coarsening, YouTube has 172,906 nodes (or 86,453 pairs) out of 1,134,890 nodes that are found to be SEM (around $1 5 \%$ ); Yelp has 875,236 nodes (or 437,618 pairs) out of 8,938,630 nodes are SEM (around $1 0 \%$ ). In fact, more nodes are involved in SEM as SEM is run iteratively at each coarsening level.
|
parse/train/HJeKCi0qYX/HJeKCi0qYX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJflg30qKX/HJflg30qKX.md
ADDED
|
@@ -0,0 +1,860 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
This paper establishes risk convergence and asymptotic weight matrix alignment —a form of implicit regularization — of gradient flow and gradient descent when applied to deep linear networks on linearly separable data. In more detail, for gradient flow applied to strictly decreasing loss functions (with similar results for gradient descent with particular decreasing step sizes): (i) the risk converges to O; (ii) the normalized $\bar { i } ^ { \mathrm { { t h } } }$ weight matrix asymptotically equals its rank-1 approximation $u _ { i } v _ { i } ^ { \top }$ ; (ii) these rank-1 matrices are aligned across layers, meaning $| v _ { i + 1 } ^ { \top } u _ { i } | 1$ . In the case of the logistic loss (binary cross entropy), more can be said: the linear function induced by the network — the product of its weight matrices — converges to the same direction as the maximum margin solution. This last property was identified in prior work, but only under assumptions on gradient descent which here are implied by the alignment phenomenon.
|
| 8 |
+
|
| 9 |
+
# 1INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Efforts to explain the effectiveness of gradient descent in deep learning have uncovered an exciting possibility: it not only finds solutions with low error, but also biases the search for low complexity solutions which generalize well(Zhang et al.,2O17; Bartlett et al., 2O17; Soudry et al., 2017; Gunasekar et al., 2018).
|
| 12 |
+
|
| 13 |
+
This paper analyzes the implicit regularization of gradient descent and gradient flow on deep linear networks and linearly separable data. For strictly decreasing losses,the optimum is at infinity,and we establish various alignment phenomena:
|
| 14 |
+
|
| 15 |
+
· For each weight matrix $W _ { i }$ , the corresponding normalized weight matrix $W _ { i } / | | W _ { i } | | _ { F }$ asymptotically equals its rank-1 approximation $u _ { i } v _ { i } ^ { \top }$ ,where the Frobenius norm $\| W _ { i } \| _ { F }$ satisfies $\| \boldsymbol { W } _ { i } \| _ { F } \infty$ .In other words, $\| W _ { i } \| _ { 2 } / \| W _ { i } \| _ { F } ~ \to ~ 1$ ,and asymptotically only the rank-1 approximation of $W _ { i }$ contributes to the final predictor,a form of implicit regularization. · Adjacent rank-1 weight matrix approximations are aligned: $| v _ { i + 1 } ^ { \top } u _ { i } | 1$ For the logistic loss,the first right singular vector $v _ { 1 }$ of $W _ { 1 }$ is aligned with the data, meaning $v _ { 1 }$ converges to the unique maximum margin predictor $\bar { u }$ defined by the data.Moreover, the linear predictor induced by the network, $w _ { \mathrm { p r o d } } : = W _ { L } \cdot \cdot \cdot W _ { 1 }$ ,is also aligned with the data, meaning $w _ { \mathrm { p r o d } } / \| w _ { \mathrm { p r o d } } \| \bar { u }$ :
|
| 16 |
+
|
| 17 |
+
Simultaneously, this work proves that the risk is globally optimized: it asymptotes to 0. Alignment and risk convergence are proved simultaneously; the phenomena are coupled within the proofs.
|
| 18 |
+
|
| 19 |
+
Since the layers align, they can be viewed as a minimum norm solution: they do not“waste norm” on components which are killed off when the layers are multiplied together. Said another way, given data $( ( x _ { i } , y _ { i } ) ) _ { i = 1 } ^ { n }$ , the normalized matrices $\left( W _ { 1 } \middle / \Vert W _ { 1 } \Vert _ { F } , \dotsc , W _ { L } \middle / \Vert W _ { L } \Vert _ { F } \right)$ asymptotically solve a maximum margin problem which demands all weight matrices be small, not merely their product:
|
| 20 |
+
|
| 21 |
+
$$
|
| 22 |
+
\operatorname* { m a x } _ { \substack { W _ { L } \in \mathbb { R } ^ { 1 \times d _ { L - 1 } } } } \cdots \operatorname* { m a x } _ { \substack { W _ { 1 } \in \mathbb { R } ^ { d _ { 1 } \times d _ { 0 } } } } \operatorname* { m i n } _ { i } y _ { i } ( W _ { L } \cdot \cdot \cdot W _ { 1 } ) x _ { i } .
|
| 23 |
+
$$
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Visualization of margin maximization and self-regularization of layers on synthetic data with a 4-layer linear network compared to a 1-layer network (a linear predictor). Figure la shows the convergence of 1-layer and 4-layer networks to the same margin-maximizing linear predictor on positive (blue) and negative (red) separable data. Figure 1b shows the convergence of $\| W _ { i } \| _ { 2 } / \| W _ { i } \| _ { F }$ to 1 on each layer, plotted against the risk.
|
| 27 |
+
|
| 28 |
+
The paper is organized as follows.This introduction continues with related work,notation,and assumptions in Sections 1.1 and 1.2. The analysis of gradient flow is in Section 2,and gradient descent is analyzed in Section 3. The paper closes with future directions in Section 4; a particular highlight is a preliminary experiment on CIFAR-1O which establishes empirically that a form of the alignment phenomenon occurs on the standard nonlinear network AlexNet.
|
| 29 |
+
|
| 30 |
+
# 1.1RELATED WORK
|
| 31 |
+
|
| 32 |
+
On the implicit regularization of gradient descent, Soudry et al. (2O17) show that for linear predictors and linearly separable data, the gradient descent iterates converge to the same direction as the maximum margin solution. Ji & Telgarsky (2O18) further characterize such an implicit bias for general nonseparable data. Gunasekar et al. (2O18) consider gradient descent on fully connected linear networks and linear convolutional networks. In particular, for the exponential loss,assuming the risk is minimized to O and the gradients converge in direction,they show that the whole network converges in direction to the maximum margin solution. These two assumptions are on the gradient descent process itself,and specifically the second one might be hard to interpret and justify. Compared with Gunasekar et al. (2O18), this paper proves that the risk converges to O and the weight matrices align; moreover the proof here proves the properties simultaneously, rather than assuming one and deriving the other. Lastly,Arora et al. (2O18) show for deep linear networks (and later Du et al. (2018) for ReLU networks) that gradient flow does not change the difference between squared Frobenius norms of any two layers. We use a few of these tools in our proofs; please see Sections 2 and 3 for details.
|
| 33 |
+
|
| 34 |
+
For a smooth (nonconvex) function,Lee et al. (2O16) show that any strict saddle can be avoided almost surely with small step sizes.If there are only countably many saddle points and they are all strict,and if gradient descent iterates converge, then this implies (almost surely) they converge to a local minimum. In the present work, since there is no finite local minimum, gradient descent will go to infinity and never converge,and thus these results of Lee et al. (2Ol6)do not show that the risk converges to 0.
|
| 35 |
+
|
| 36 |
+
There has been a rich literature on linear networks. Saxe et al. (2O13) analyze the learning dynamics of deep linear networks,showing that they exhibit some learning paterns similar to nonlinear networks,such as a long plateau followed by a rapid risk drop. Arora et al. (2O18) show that depth can help accelerate optimization. On the landscape properties of deep linear networks,Lu & Kawaguchi (2017); Laurent & von Brecht (2O17) show that under various structural assumptions, all local optima are global. Zhou & Liang (2O18) give a necessary and sufficient characterization of critical points for deep linear networks.
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
Figure 2: A visualization of inter-layer alignment on data consisting of two well-separated circles with a 3-layer linear network. Figure 2a depicts,as in Figure la, that optimizing $1 \mathrm { - }$ and 3-layer linear networks finds the same maximum margin solution.The other three plots show the data as it is mapped through progressively more and more layers. Due to alignment, the product $W _ { i } \cdots W _ { 1 }$ becomes $u _ { i } \bar { u } ^ { \top }$ ,where $u _ { i }$ is the top left singular vector of $W _ { i }$ , which means that asymptotically the mapped data wil be well separated and lie along the span of $u _ { i }$ , as depicted by the flattening in Figures 2b to 2d. Additionally, these three subfigures show that the top right singular vector $v _ { i + 1 }$ of the subsequent layer is aligned with this $u _ { i }$ ,which in these plots (with principal component axes) corresponds to following a horizontal line.
|
| 40 |
+
|
| 41 |
+
# 1.2NOTATION,SETTING,AND ASSUMPTIONS
|
| 42 |
+
|
| 43 |
+
Consider a data set $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n }$ , where $x _ { i } \in \mathbb { R } ^ { d }$ , $\| x _ { i } \| \leq 1$ ,and $y _ { i } \in \{ - 1 , + 1 \}$ . The data set is assumed to be linearly separable,i.e.,there exists a unit vector $u$ which correctly classifies every data point: for any $1 \leq i \leq n$ $y _ { i } \langle u , x _ { i } \rangle > 0$ .Furthermore, let $\begin{array} { r } { \gamma : = \operatorname* { m a x } _ { \| u \| = 1 } \operatorname* { m i n } _ { 1 \leq i \leq n } y _ { i } \langle u , x _ { i } \rangle > 0 } \end{array}$ denote the maximum margin, and $\begin{array} { r } { \bar { u } : = \mathrm { \ a r g { m a x } } _ { \| u \| = 1 } \operatorname* { m i n } _ { 1 \leq i \leq n } { y _ { i } \langle u , x _ { i } \rangle } } \end{array}$ denote the maximum margin solution (the solution to the hard-margin SVM).
|
| 44 |
+
|
| 45 |
+
A linear network of depth $L$ is parameterized by weight matrices $W _ { L } , \ldots , W _ { 1 }$ ,where $W _ { k } \in \mathsf { \Gamma }$ $\mathbb { R } ^ { d _ { k } \times d _ { k - 1 } }$ , $d _ { 0 } = d$ ,and $d _ { L } = 1$ Let $W = ( W _ { L } , \dots , W _ { 1 } )$ denote all parameters of the network. The (empirical) risk induced by the network is given by
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
{ \mathcal R } ( W ) = { \mathcal R } \left( W _ { L } , \dots , W _ { 1 } \right) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell \left( y _ { i } W _ { L } \cdots W _ { 1 } x _ { i } \right) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) ,
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
where $w _ { \mathrm { p r o d } } : = ( W _ { L } \cdot \cdot \cdot W _ { 1 } ) ^ { \top }$ ,and $z _ { i } : = y _ { i } x _ { i }$
|
| 52 |
+
|
| 53 |
+
The loss $\ell$ is assumed to be continuously differentiable,unbounded, and strictly decreasing to 0. Examples include the exponential loss $\dot { \ell _ { \mathrm { e x p } } ( x ) } = e ^ { - x }$ and the logistic loss $\ell _ { \log } ( x ) = \ln \left( 1 + \bar { e } ^ { - x } \right)$ :
|
| 54 |
+
|
| 55 |
+
Assumption 1. $\ell ^ { \prime } < 0$ is continuous, $\begin{array} { r } { \operatorname* { l i m } _ { x - \infty } \ell ( x ) = \infty } \end{array}$ and $\scriptstyle \operatorname* { l i m } _ { x \to \infty } \ell ( x ) = 0$
|
| 56 |
+
|
| 57 |
+
This paper considers gradient flow and gradient descent, where gradient flow $\{ W ( t ) | t \geq 0 , t \in \mathbb { R } \}$ can be interpreted as gradient descent with infinitesimal step sizes. It starts from some $W ( 0 )$ at
|
| 58 |
+
|
| 59 |
+
$t = 0$ , and proceeds as
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\frac { \mathrm { d } W ( t ) } { \mathrm { d } t } = - \nabla \mathcal { R } \left( W ( t ) \right) .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
By contrast, gradient descent $\{ W ( t ) | t \geq 0 , t \in \mathbb { Z } \}$ is a discrete-time process given by
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\begin{array} { r } { W ( t + 1 ) = W ( t ) - \eta _ { t } \nabla \mathcal { R } \left( W ( t ) \right) , } \end{array}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $\eta _ { t }$ is the step size at time $t$
|
| 72 |
+
|
| 73 |
+
We assume that the initialization of the network is not a critical point and induces a risk no larger than the risk of the trivial linear predictor O.
|
| 74 |
+
|
| 75 |
+
Assumption 2. The initialization $W ( 0 )$ satisfies $\nabla \mathcal { R } \left( W ( 0 ) \right) \neq 0$ and $\begin{array} { r } { \mathcal { R } \left( W ( 0 ) \right) \leq \mathcal { R } ( 0 ) = \ell ( 0 ) . } \end{array}$
|
| 76 |
+
|
| 77 |
+
It is natural to require that the initialization is not a critical point, since otherwise gradient flow/descent will never make a progress. The requirement $\mathcal { R } \left( \hat { W ( 0 ) } \right) \leq \mathcal { R } ( 0 )$ can be easily satisfied, for example,by making $W _ { 1 } ( 0 ) = 0$ and $W _ { L } ( 0 ) \cdot \cdot \cdot W _ { 2 } ( 0 ) \not = 0$ .On the other hand,if $\mathcal { R } \left( W ( 0 ) \right) > \mathcal { R } ( 0 )$ , gradient flow/descent may never minimize the risk to O. Proofs of those claims are given in Appendix A.
|
| 78 |
+
|
| 79 |
+
# 2RESULTS FOR GRADIENT FLOW
|
| 80 |
+
|
| 81 |
+
In this section,we consider gradient flow. Although impractical when compared with gradient descent, gradient flow can simplify the analysis and highlight proof ideas. For convenience,we usually use $W$ $W _ { k }$ ,and $w _ { \mathrm { p r o d } }$ ,but they all change with (the continuous time) $t$ . Only proof sketches are given here; detailed proofs are deferred to Appendix B.
|
| 82 |
+
|
| 83 |
+
# 2.1RISK CONVERGENCE
|
| 84 |
+
|
| 85 |
+
One key property of gradient flow is that it never increases the risk:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\frac { \mathrm { d } \mathcal { R } ( W ) } { \mathrm { d } t } = \left. \nabla \mathcal { R } ( W ) , \frac { \mathrm { d } W } { \mathrm { d } t } \right. = - \| \nabla \mathcal { R } ( W ) \| ^ { 2 } = - \sum _ { k = 1 } ^ { L } \biggl \| \frac { \partial \mathcal { R } } { \partial W _ { k } } \biggr \| _ { F } ^ { 2 } \leq 0 .
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
We now state the main result: under Assumptions 1 and 2, gradient flow minimizes the risk, $W _ { k }$ and $w _ { \mathrm { p r o d } }$ all go to infinity,and the alignment phenomenon occurs.
|
| 92 |
+
|
| 93 |
+
Theorem 1. Under Assumptions 1 and 2, gradient flow iterates satisfy the following properties:
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \mathcal { R } ( W ) = 0 . } \end{array}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
· For any $1 \le k \le L$ $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \| W _ { k } \| _ { F } = \infty . } \end{array}$
|
| 100 |
+
|
| 101 |
+
· For any $1 \leq k \leq L$ letting $( u _ { k } , v _ { k } )$ denote the first left and right singular vectors of $W _ { k }$ ,
|
| 102 |
+
|
| 103 |
+
$$
|
| 104 |
+
\operatorname* { l i m } _ { t \to \infty } \left\| \frac { W _ { k } } { \| W _ { k } \| _ { F } } - u _ { k } v _ { k } ^ { \top } \right\| _ { F } = 0 .
|
| 105 |
+
$$
|
| 106 |
+
|
| 107 |
+
Moreover, for any $\begin{array} { r } { 1 \leq k < L , \operatorname* { l i m } _ { t \infty } | \langle v _ { k + 1 } , u _ { k } \rangle | = 1 } \end{array}$ As a result,
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\operatorname* { l i m } _ { t \to \infty } \left. \left. \frac { w _ { \mathrm { p r o d } } } { \prod _ { k = 1 } ^ { L } \| W _ { k } \| _ { F } } , v _ { 1 } \right. \right. = 1 ,
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
and thus $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \| w _ { \mathrm { p r o d } } \| = \infty } \end{array}$
|
| 114 |
+
|
| 115 |
+
Theorem 1 is proved using two lemmas,which may be of independent interest. To show the ideas, let us first introduce a little more notation. Recall that $\mathcal { R } ( W )$ denotes the empirical risk induced by the deep linear network $W$ . Abusing the notation a little, for any linear predictor $w \in \mathbb { R } ^ { d }$ , we also use $\mathcal { R } ( w )$ to denote the risk induced by $w$ . With this notation, $\begin{array} { r } { \dot { \mathcal { R } } ( W ) = \mathbf { \bar { \mathcal { R } } } ( w _ { \mathrm { p r o d } } ) } \end{array}$ ,while
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) z _ { i } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( W _ { L } \cdot \cdot \cdot W _ { 1 } z _ { i } \right) z _ { i }
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
is in $\mathbb { R } ^ { d }$ and different from $\nabla \mathcal { R } ( W )$ , which has $\scriptstyle \sum _ { k = 1 } ^ { L } d _ { k } d _ { k - 1 }$ entries, as given below:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\frac { \partial \mathcal { R } } { \partial W _ { k } } = W _ { k + 1 } ^ { \top } \cdot \cdot \cdot W _ { L } ^ { \top } \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) ^ { \top } W _ { 1 } ^ { \top } \cdot \cdot \cdot W _ { k - 1 } ^ { \top } .
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
Furthermore, for any $R > 0$ ,let
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
B ( R ) = \left\{ W \bigg | \operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq R \right\} .
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
The first lemma shows that for any $R > 0$ , the time spent by gradient flow in $B ( R )$ is finite.
|
| 134 |
+
|
| 135 |
+
Lemma 1. Under Assumption $^ { l }$ and 2, for any $R > 0$ ,there exists a constant $\epsilon ( R ) > 0$ ,such that for any $t \geq 1$ and any $W \in B ( R )$ , $\| \partial \mathcal { R } / \partial W _ { 1 } \| _ { F } \geq \epsilon ( R )$ 、As a result, gradient flow spends a finite amount of time in $B ( R )$ for any $R > 0$ ,and $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F }$ is unbounded.
|
| 136 |
+
|
| 137 |
+
Here is the proof sketch. If $\| W _ { k } \| _ { F }$ are bounded, then $\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \|$ will be lower bounded by a positive constant, therefore if $\| \partial \mathcal { R } / \partial W _ { 1 } \| _ { F } = \| W _ { L } \cdot \cdot \cdot W _ { 2 } \| \| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \|$ can be arbitrarily small, then $\| W _ { L } \cdot \cdot \cdot W _ { 2 } \|$ and $\lVert w _ { \mathrm { p r o d } } \rVert$ can also be arbitrarily small, and thus $\mathcal { R } ( W )$ can be arbitrarily close to $\mathcal { R } ( 0 )$ . This cannot happen after $t = 1$ ,otherwise it will contradict Assumption 2 and eq. (1).
|
| 138 |
+
|
| 139 |
+
To proceed, we need the folowing properties of linear networks from prior work (Arora et al., 2018; Du et al.,2018). For any time $t \geq 0$ and any $1 \leq k < L$
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\begin{array} { r } { W _ { k + 1 } ^ { \top } ( t ) W _ { k + 1 } ( t ) - W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) = W _ { k } ( t ) W _ { k } ^ { \top } ( t ) - W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) . } \end{array}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
To see this, just notice that
|
| 146 |
+
|
| 147 |
+
$$
|
| 148 |
+
\boldsymbol { W } _ { k + 1 } ^ { \top } \frac { \partial \boldsymbol { \mathcal { R } } } { \partial \boldsymbol { W } _ { k + 1 } } = \boldsymbol { W } _ { k + 1 } ^ { \top } \cdot \cdot \cdot \boldsymbol { W } _ { L } ^ { \top } \nabla \boldsymbol { \mathcal { R } } ( \boldsymbol { w } _ { \mathrm { p r o d } } ) ^ { \top } \boldsymbol { W } _ { 1 } ^ { \top } \cdot \cdot \cdot \boldsymbol { W } _ { k } ^ { \top } = \frac { \partial \boldsymbol { \mathcal { R } } } { \partial \boldsymbol { W } _ { k } } \boldsymbol { W } _ { k } ^ { \top } .
|
| 149 |
+
$$
|
| 150 |
+
|
| 151 |
+
Taking the trace on both sides of eq. (2), we have
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\left\| W _ { k + 1 } ( t ) \right\| _ { F } ^ { 2 } - \left\| W _ { k + 1 } ( 0 ) \right\| _ { F } ^ { 2 } = \left\| W _ { k } ( t ) \right\| _ { F } ^ { 2 } - \left\| W _ { k } ( 0 ) \right\| _ { F } ^ { 2 } .
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
In other words, the diference between the squares of Frobenius norms of any two layers remains a constant. Together with Lemma 1,it implies that all $\| W _ { k } \| _ { F }$ are unbounded.
|
| 158 |
+
|
| 159 |
+
However, even if $\| W _ { k } \| _ { F }$ are large, it does not follow necessarily that $\lVert w _ { \mathrm { p r o d } } \rVert$ is also large. Lemma 2 shows that this is indeed true: for gradient flow, as $\| W _ { k } \| _ { F }$ get larger,adjacent layers also get more aligned to each other, which ensures that their product also has a large norm.
|
| 160 |
+
|
| 161 |
+
For $1 \le k \le L$ ,let $\sigma _ { k } , u _ { k }$ ,and $v _ { k }$ denote the first singular value (the 2-norm), the first left singular vector, and the first right singular vector of $W _ { k }$ ,respectively. Furthermore, define
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
D : = \bigg ( \operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } ( 0 ) \| _ { F } ^ { 2 } \bigg ) - \| W _ { L } ( 0 ) \| _ { F } ^ { 2 } + \sum _ { k = 1 } ^ { L - 1 } \Big \| W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) - W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) \Big \| _ { 2 } ,
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
which depends onlyonthe initialization.Ifforany $\begin{array} { r } { 1 \leq k < L , W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) = W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) , } \end{array}$ then $D = 0$
|
| 168 |
+
|
| 169 |
+
Lemma 2. The gradient flow iterates satisfy the following properties:
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\begin{array} { r } { \bullet \bullet \ s u p p o s e \ \operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \infty , t h e n \Big | \Big \langle w _ { \mathrm { p r o d } } \big / \prod _ { k = 1 } ^ { L } \| W _ { k } \| _ { F } , v _ { 1 } \Big \rangle \Big | 1 . } \end{array}
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
The profis based oneq.(2)andeq.(3).If $W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) = W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 )$ , then eq.(2) gives that $W _ { k + 1 }$ and $W _ { k }$ have the same singular values, and $W _ { k + 1 }$ 's right singular vectors and $W _ { k }$ 's left singular vectors are the same. If it is true for any two adjacent layers, since $W _ { L }$ is a row vector, all layers have rank 1.With general initialization,we have similar results when $\| W _ { k } \| _ { F }$ is large enough so that the initialization is negligible. Careful calculations give the exact results in Lemma 2.
|
| 176 |
+
|
| 177 |
+
An interesting point is that the implicit regularization result in Lemma 2 helps establish risk convergence in Theorem 1. Specifically,by Lemma 2, if all layers have large norms, $\| W _ { L } \cdot \cdot \cdot W _ { 2 } \|$ will be large. If the risk is not minimized to $0$ , $\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \|$ will be lower bounded by a positive constant, and thus $\| \partial \mathcal { R } / \partial W _ { 1 } \| _ { F } = \| W _ { L } \cdot \cdot \cdot W _ { 2 } \| \| \nabla \mathcal { R } ( \dot { w } _ { \mathrm { p r o d } } ) \|$ will be large. Invoking eq. (1),Lemma l and eq. (3)gives a contradiction. Since the risk has no finite optimum, $\| W _ { k } \| _ { F } \to \infty$
|
| 178 |
+
|
| 179 |
+
Here we focus on the exponential loss $\ell _ { \mathrm { e x p } } ( x ) = e ^ { - x }$ and the logistic loss $\ell _ { \log } ( x ) = \ln ( 1 + e ^ { - x } )$ In addition to risk convergence, these two losses also enable gradient descent to find the maximum margin solution.
|
| 180 |
+
|
| 181 |
+
To get such a strong convergence, we need one more assumption on the data set. Recall that $\gamma =$ $\begin{array} { r } { \operatorname* { m a x } _ { \| u \| = 1 } \operatorname* { m i n } _ { 1 \leq i \leq n } \langle u , z _ { i } \rangle > 0 } \end{array}$ denotes the maximum margin,and $\bar { u }$ denotes the unique maximum margin predictor which attains this margin $\gamma$ . Those data points $z _ { i }$ for which $\langle \bar { u } , z _ { i } \rangle = \gamma$ are called support vectors.
|
| 182 |
+
|
| 183 |
+
Assumption 3. The support vectors span the whole space $\mathbb { R } ^ { d }$
|
| 184 |
+
|
| 185 |
+
Assumption 3 appears in prior work Soudry et al. (2O17),and can be satisfied in many cases: for example, it is almost surely true if the number of support vectors is larger than or equal to $d$ and the data set is sampled from some density w.r.t. the Lebesgue measure. It can also be relaxed to the situation that the support vectors and the whole data set span the same space; in this case $\nabla \mathcal { R } ( w _ { \mathrm { p r o d } } )$ will never leave this space,and we can always restrict our attention to this space.
|
| 186 |
+
|
| 187 |
+
With Assumption 3,we can state the main theorem.
|
| 188 |
+
|
| 189 |
+
Theorem 2. Under Assumptions 2 and 3, for almost all data and for losses $\ell _ { \mathrm { e x p } }$ and $\ell _ { \mathrm { l o g } }$ then $\mathrm { l i m } _ { t \infty } | \langle v _ { 1 } , \bar { u } \rangle | ~ = ~ 1$ ,where $v _ { 1 }$ is the first right singular vector of $W _ { 1 }$ As a result, $\begin{array} { r } { \operatorname* { l i m } _ { t \to \infty } w _ { \mathrm { p r o d } } \Big / \prod _ { k = 1 } ^ { L } \| W _ { k } \| _ { F } = \bar { u } . } \end{array}$
|
| 190 |
+
|
| 191 |
+
Before summarizing the proof, we can simplify both theorems into the following minimum norm property mentioned in the introduction.
|
| 192 |
+
|
| 193 |
+
Corollary 1. Under Assumptions 2 and 3,for almost alldata and for losses $\ell _ { \mathrm { e x p } }$ and $\ell _ { \mathrm { l o g } ; }$
|
| 194 |
+
|
| 195 |
+
$$
|
| 196 |
+
\operatorname* { m i n } _ { i } y _ { i } \left( \frac { W _ { L } } { \| W _ { L } \| _ { F } } \cdots \frac { W _ { 1 } } { \| W _ { 1 } \| _ { F } } \right) x _ { i } \ \quad \xrightarrow [ t \to \infty ] { } \quad \operatorname* { m a x } _ { \begin{array} { c } { A _ { L } \in \mathbb { R } ^ { 1 \times d _ { L - 1 } } } \cdots \operatorname* { m a x } _ { \begin{array} { c } { A _ { 1 } \in \mathbb { R } ^ { d _ { 1 } \times d _ { 0 } } } \end{array} } \operatorname* { m i n } _ { i } y _ { i } \left( A _ { L } \cdots A _ { 1 } \right) x _ { i } . } \\ { \left\| A _ { L } \right\| _ { F } = 1 \ \qquad \left\| A _ { 1 } \right\| _ { F } = 1 } \end{array}
|
| 197 |
+
$$
|
| 198 |
+
|
| 199 |
+
Theorem 2 relies on two structural lemmas.The first one is based on a similar almost-all argument due to Soudry et al. (2017, Lemma 12). Let $S \subset \{ 1 , \ldots , n \}$ denote the set of indices of support vectors.
|
| 200 |
+
|
| 201 |
+
Lemma 3. Under Assumption $^ 3$ , if the data set is sampled from some density w.r.t. the Lebesgue measure,then with probability 1,
|
| 202 |
+
|
| 203 |
+
$$
|
| 204 |
+
\alpha : = \operatorname* { m i n } _ { | \xi | = 1 , \xi \perp \bar { u } } \operatorname* { m a x } _ { i \in S } \langle \xi , z _ { i } \rangle > 0 .
|
| 205 |
+
$$
|
| 206 |
+
|
| 207 |
+
Let $\bar { u } ^ { \perp }$ denote the orthogonal complement of $\mathrm { s p a n } ( \bar { u } )$ ,and let $\Pi _ { \perp }$ denote the projection onto $\bar { u } ^ { \perp }$ We prove that if $\Vert \Pi _ { \perp } w \Vert$ is large enough, gradient flow starting from $w$ will tend to decrease $\Vert \Pi _ { \perp } w \Vert$ : Lemma 4. Under Assumption 3, for almost all data, $\ell _ { \mathrm { e x p } }$ and $\ell _ { \mathrm { l o g } }$ ,and any $w \in \mathbb { R } ^ { d }$ , $i f \left. w , \bar { u } \right. \geq 0$ and $\Vert \Pi _ { \perp } w \Vert$ is larger than $1 + \ln ( n ) / \alpha$ for $\ell _ { \mathrm { e x p } } o r ^ { 2 n } / e \alpha$ for $\ell _ { \mathrm { l o g } }$ then $\langle \Pi _ { \perp } w , \nabla \mathcal { R } ( w ) \rangle \geq 0$
|
| 208 |
+
|
| 209 |
+
With Lemma 3 and Lemma 4 in hand, we can prove Theorem 2. Let $\Pi _ { \perp } W _ { 1 }$ denote the projection of rows of $W _ { 1 }$ onto $\bar { u } ^ { \perp }$ . Notice that
|
| 210 |
+
|
| 211 |
+
$$
|
| 212 |
+
\Pi _ { \perp } w _ { \mathrm { p r o d } } = \big ( W _ { L } \ldots W _ { 2 } ( \Pi _ { \perp } W _ { 1 } ) \big ) ^ { \top } \quad \mathrm { a n d } \quad \frac { \mathrm { d } \| \Pi _ { \perp } W _ { 1 } \| _ { F } ^ { 2 } } { \mathrm { d } t } = - 2 \langle \Pi _ { \perp } w _ { \mathrm { p r o d } } , \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \rangle .
|
| 213 |
+
$$
|
| 214 |
+
|
| 215 |
+
If $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F }$ is large compared with $\| W _ { 1 } \| _ { F }$ , since layers become aligned, $\| \Pi _ { \perp } w _ { \mathrm { p r o d } } \|$ will also be large,and then Lemma 4 implies that $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F }$ will not increase. At the same time, $\| W _ { 1 } \| _ { F } \to \infty$ , and thus for large enough $t$ , $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F }$ must be very small compared with $\| W _ { 1 } \| _ { F }$ . Many details need to be handled to make this intuition exact; the proof is given in Appendix B.
|
| 216 |
+
|
| 217 |
+
# 3RESULTS FOR GRADIENT DESCENT
|
| 218 |
+
|
| 219 |
+
One key property of gradient flow which is used in the previous proofs is that it never increases the risk, which is not necessarily true for gradient descent. However, for smooth losses (i.e, with
|
| 220 |
+
|
| 221 |
+
Lipschitz continuous derivatives),we can design some decaying step sizes, with which gradient descent never increases the risk, and basically the same results hold as in the gradient flow case. Deferred proofs are given in Appendix C.
|
| 222 |
+
|
| 223 |
+
We make the following aditionalassumption on the loss which is satisfiedbythe logistic loss $\ell _ { \mathrm { l o g } }$ Assumption 4. $\ell ^ { \prime }$ is $\beta$ -Lipschitz (i.e, $\ell$ is $\beta$ -smooth), and $| \ell ^ { \prime } | \leq G$ (i.e., $\ell$ is $G$ -Lipschitz).
|
| 224 |
+
|
| 225 |
+
Under Assumption 4, the risk is also a smooth function of $W$ , if all layers are bounded.
|
| 226 |
+
|
| 227 |
+
Lemma 5. Suppose $\ell$ is $\beta$ -smooth. If $R \geq 1$ ,then $\beta ( R ) = 2 L ^ { 2 } R ^ { 2 L - 2 } ( \beta + G )$ and $\mathcal { R } ( W )$ is $a$ $\beta ( R )$ -smooth function on the set $B ( R ) = \big \{ W \big | \| W _ { k } \| _ { F } \leq R , 1 \leq k \leq L \big \}$ :
|
| 228 |
+
|
| 229 |
+
Smoothness ensures that for any $W , V ~ \in ~ B ( R )$ , $\mathcal { R } ( W ) \mathrm { ~ - ~ } \mathcal { R } ( V ) \leq \langle \nabla \mathcal { R } ( V ) , W \mathrm { ~ - ~ } V \rangle \mathrm { ~ + ~ }$ $\beta ( R ) \| W { - } V \| ^ { 2 } \big / 2$ (see Bubeck et al. (2015) Lemma 3.4). In particular, if we choose some $R$ and set a constant step size $\eta _ { t } = 1 / \beta ( R )$ , then as long as $W ( t + 1 )$ and $W ( t )$ are both in $B ( R )$
|
| 230 |
+
|
| 231 |
+
$$
|
| 232 |
+
\begin{array} { r l } & { \mathcal { R } \left( W ( t + 1 ) \right) - \mathcal { R } \left( W ( t ) \right) \leq \left. \nabla \mathcal { R } \left( W ( t ) \right) , - \eta _ { t } \nabla \mathcal { R } \left( W ( t ) \right) \right. + \frac { \beta ( R ) \eta _ { t } ^ { 2 } } { 2 } \Big \Vert \nabla \mathcal { R } \left( W ( t ) \right) \Big \Vert ^ { 2 } } \\ & { \quad \quad \quad \quad \quad = - \frac { 1 } { 2 \beta ( R ) } \Big \Vert \nabla \mathcal { R } \left( W ( t ) \right) \Big \Vert ^ { 2 } = - \frac { \eta _ { t } } { 2 } \Big \Vert \nabla \mathcal { R } \left( W ( t ) \right) \Big \Vert ^ { 2 } . } \end{array}
|
| 233 |
+
$$
|
| 234 |
+
|
| 235 |
+
In other words,the risk does not increase at this step. However, similar to gradient flow, the gradient descent iterate will eventually escape $B ( R )$ ,which may increase the risk.
|
| 236 |
+
|
| 237 |
+
Lemma 6. Under Assumption $^ { l }$ , 2 and 4, suppose gradient descent is run with a constant step size $1 / \beta ( R )$ . Then there exists a time $t$ when $W ( t ) \not \in B ( R )$ , in other words, $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } ( t ) \| _ { F } ^ { - } > R$
|
| 238 |
+
|
| 239 |
+
Fortunately,this issue can be handled by adaptively increasing $R$ and correspondingly decreasing the step sizes,formalized in the following assumption.
|
| 240 |
+
|
| 241 |
+
Assumption 5. The step size $\eta _ { t } = \operatorname* { m i n } \{ 1 / \beta ( R _ { t } ) , 1 \}$ , where $R _ { t }$ satisfies $W ( t ) \in B ( R _ { t } - 1 )$ ,and if$W ( t + \bar { 1 } ) \in B ( R _ { t } - 1 )$ , $R _ { t + 1 } = R _ { t }$ :
|
| 242 |
+
|
| 243 |
+
Assumption 5 can be satisfied by a line search, which ensures that the gradient descent update is not too aggressive and the boundary $R$ is increased properly.
|
| 244 |
+
|
| 245 |
+
With the additional Assumptions 4 and 5,exactly the same theorems can be proved for gradient descent. We restate them briefly here.
|
| 246 |
+
|
| 247 |
+
Theorem 3. Under Assumption 1, 2, 4, and 5, gradient descent satisfies
|
| 248 |
+
|
| 249 |
+
· $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \mathcal { R } ( W ( t ) ) = 0 . } \end{array}$
|
| 250 |
+
· For any $\begin{array} { r } { 1 \leq k \leq L , \operatorname* { l i m } _ { t \infty } \| W _ { k } ( t ) \| _ { F } = \infty . } \end{array}$ $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \Big | \Big \langle w _ { \mathrm { p r o d } } ( t ) \big / \prod _ { k = 1 } ^ { L } \| W _ { k } ( t ) \| _ { F } , v _ { 1 } ( t ) \big \rangle \Big | = 1 } \end{array}$ where $v _ { 1 } ( t )$ isthe first right singuar vector of $W _ { 1 } ( t )$
|
| 251 |
+
|
| 252 |
+
Theorem 4. Under Assumptions 2, 3 and 5, for the logistic loss $\ell _ { \mathrm { l o g } }$ and almost all data, $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } \big \lvert \langle v _ { 1 } ( t ) , \bar { u } \rangle \big \rvert = 1 } \end{array}$ ,and $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } w _ { \mathrm { p r o d } } ( t ) \big / \prod _ { k = 1 } ^ { L } \| W _ { k } ( t ) \| _ { F } = \bar { u } . } \end{array}$
|
| 253 |
+
|
| 254 |
+
Corollary 2. Under Assumptions 2, 3 and $5$ for the logistic loss $\ell _ { \mathrm { l o g } }$ and almost all data,
|
| 255 |
+
|
| 256 |
+
$$
|
| 257 |
+
\operatorname* { m i n } _ { i } \ y _ { i } \left( \frac { W _ { L } } { \| W _ { L } \| _ { F } } \cdots \frac { W _ { 1 } } { \| W _ { 1 } \| _ { F } } \right) x _ { i } \ \quad \xrightarrow [ t \to \infty ] { } \quad \operatorname* { m a x } _ { \begin{array} { c } { A _ { L } \in \mathbb { R } ^ { 1 \times d _ { L - 1 } } } \\ { \| A _ { L } \| _ { F } = 1 } \end{array} } \cdots \operatorname* { m a x } _ { \begin{array} { c } { A _ { 1 } \in \mathbb { R } ^ { d _ { 1 } \times d _ { 0 } } } \\ { \| A _ { 1 } \| _ { F } = 1 } \end{array} } \operatorname* { m i n } _ { \begin{array} { c } { j _ { i } \left( A _ { L } \cdot \cdot \cdot A _ { 1 } \right) x _ { i } } \\ { i } \end{array} } .
|
| 258 |
+
$$
|
| 259 |
+
|
| 260 |
+
Proofs of Theorem 3 and 4 are given in Appendix C,and are basically the same as the gradient flow profsTheeydienceistrf $\begin{array} { r } { \sum _ { t = 0 } ^ { \infty } \eta _ { t } ^ { 2 } \| \nabla \mathcal { R } ( W ( t ) ) \| ^ { 2 } } \end{array}$ Wwil be introduced in many parts of the proof. However, it is bounded in light of eq. (4):
|
| 261 |
+
|
| 262 |
+
$$
|
| 263 |
+
\sum _ { t = 0 } ^ { \infty } \eta _ { t } ^ { 2 } \Big \| \nabla \mathcal { R } \left( W ( t ) \right) \Big \| ^ { 2 } \leq \sum _ { t = 0 } ^ { \infty } \eta _ { t } \Big \| \nabla \mathcal { R } \left( W ( t ) \right) \Big \| ^ { 2 } \leq 2 \mathcal { R } \left( W ( 0 ) \right) .
|
| 264 |
+
$$
|
| 265 |
+
|
| 266 |
+
Since all weight matrices go to infinity, such a bounded error does not mater asymptotically, and thus proofs still go through.
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Figure 3: Risk and alignment of dense layers (the ratio $\| W _ { i } \| _ { 2 } / \| W _ { i } \| _ { F } )$ of (nonlinear!) AlexNet on CIFAR-10.Figure 3a uses default PyTorch initialization,while Figure 3b forces initial Frobenius norms to be equal amongst dense layers.
|
| 270 |
+
|
| 271 |
+
# 4SUMMARY AND FUTURE DIRECTIONS
|
| 272 |
+
|
| 273 |
+
This paper rigorously proves that, for deep linear networks on linearly separable data, gradient flow and gradient descent minimize the risk to O,align adjacent weight matrices,and align the first right singular vector of the first layer to the maximum margin solution determined by the data. There are many potential future directions;a few are as follows.
|
| 274 |
+
|
| 275 |
+
Convergence rates and practical step sizes. This paper only proves asymptotic convergence, moreover for adaptive step sizes depending on the current weight matrix norms. A refined analysis with rates for practical step sizes (e.g. constant step sizes) would allow the algorithm to be compared to other methods which also globally optimize this objective, would suggest ways to improve step sizes and initialization,and ideally even exhibit a sensitivity to the network architecture and suggest how it could be improved.
|
| 276 |
+
|
| 277 |
+
Nonseparable data and nonlinear networks. Real-world data is generally not linearly separable, but nonlinear deep networks can reliably decrease the risk to O,even with random labels (Zhang et al.,2017). This seems to suggest that a nonlinear notion of separability is at play; is there some way to adapt the present analysis?
|
| 278 |
+
|
| 279 |
+
The present analysis is crucially tied to the alignment of weight matrices: alignment and risk are analyzed simultaneously. Motivated by this, consider a preliminary experiment, presented in Figure 3, where stochastic gradient descent was used to minimize the risk of a standard AlexNet on CIFAR-10 (Krizhevsky et al., 2012; Krizhevsky & Hinton, 2009).
|
| 280 |
+
|
| 281 |
+
Even though there are ReLUs,max-pooling layers,and convolutional layers,the alignment phenomenon is occurring in a reduced form on the dense layers (the last three layers of the network). Specificall, despite these weight matrices having shape (1024,4096), (4096,4096),and $( 4 0 9 6 , 1 0 )$ the key alignment ratios $\| \bar { W } _ { i } \| _ { 2 } / \| W _ { i } \| _ { F }$ are much larger than their respective lower bounds $( \mathrm { { 1 0 2 4 ^ { - 1 / 2 } , 4 0 9 6 ^ { - 1 / 2 } , 1 0 ^ { - 1 / 2 } } } )$ Two initializations were tried: default PyTorch initialization,and a Gaussan initialization forcing all initial Frobenius norms to be just 4, which is suggested by the norm preservation property in the analysis and removes noise in the weights.
|
| 282 |
+
|
| 283 |
+
# ACKNOWLEDGEMENTS
|
| 284 |
+
|
| 285 |
+
The authors are grateful for support from the NSF under grant IIS-175OO51. This grant allowed them to focus on research,and when combined with an NVIDIA GPU grant, led to the creation of their beloved GPU machine DUTCHCRUNCH.
|
| 286 |
+
|
| 287 |
+
# REFERENCES
|
| 288 |
+
|
| 289 |
+
Sanjeev Arora,Nadav Cohen,and Elad Hazan. On the optimization of deep networks: Implicit acceleration by overparameterization. arXiv preprint arXiv:1802.06509,2018.
|
| 290 |
+
Peter Bartlett, Dylan Foster,and Matus Telgarsky. Spectrally-normalized margin bounds for neural networks.NIPS,2017.
|
| 291 |
+
Sebastien Bubeck et al. Convex optimization:_ Algorithms and complexity. Foundations and Trends $\textsuperscript { \textregistered }$ in Machine Learning, 8(3-4):231-357,2015.
|
| 292 |
+
Simon S Du, Wei Hu, and Jason D Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. arXiv preprint arXiv:1806.00900,2018.
|
| 293 |
+
Suriya Gunasekar, Jason Lee, Daniel Soudry, and Nathan Srebro. Implicit bias of gradient descent on linear convolutional networks. arXiv preprint arXiv:1806.00468, 2018.
|
| 294 |
+
Ziwei Ji and Matus Telgarsky. Risk and parameter convergence of logistic regression. arXiv preprint arXiv:1803.07300,2018.
|
| 295 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 296 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffery Hinton. Imagenet classification with deep convolutional neural networks. In NIPS,2012.
|
| 297 |
+
Thomas Laurent and James von Brecht. Deep linear neural networks with arbitrary loss: All local minima are global. arXiv preprint arXiv:1712.01473,2017.
|
| 298 |
+
Jason D Lee, Max Simchowitz, Michael I Jordan, and Benjamin Recht. Gradient descent converges to minimizers. arXiv preprint arXiv:1602.04915,2016.
|
| 299 |
+
Haihao Lu and Kenji Kawaguchi.Depth creates no bad local minima.arXiv preprint arXiv:1702.08580,2017.
|
| 300 |
+
Andrew M Saxe, James L McClelland,and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6l20, 2013.
|
| 301 |
+
Daniel Soudry,Elad Hofer, and Nathan Srebro.The implicit bias of gradient descent on separable data. arXiv preprint arXiv:1710.10345v3,2017.
|
| 302 |
+
Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2017.
|
| 303 |
+
Yi Zhou and Yingbin Liang. Critical points of linear neural networks: Analytical forms and landscape properties.2018.
|
| 304 |
+
|
| 305 |
+
# AREGARDING ASSUMPTION 2
|
| 306 |
+
|
| 307 |
+
Suppose $W _ { 1 } ( 0 ) = 0$ while $W _ { L } ( 0 ) \cdot \cdot \cdot W _ { 2 } ( 0 ) \neq 0$ First of all, $W _ { L } ( 0 ) \cdot \cdot \cdot W _ { 1 } ( 0 ) = 0$ and thus $\mathcal { R } \left( W ( 0 ) \right) = \mathcal { R } ( 0 )$ . Moreover,
|
| 308 |
+
|
| 309 |
+
$$
|
| 310 |
+
\left. \nabla \mathcal { R } \left( w _ { \mathrm { p r o d } } ( 0 ) \right) , \bar { u } \right. = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } ( 0 ) \langle z _ { i } , \bar { u } \rangle \leq \ell ^ { \prime } ( 0 ) \gamma < 0 ,
|
| 311 |
+
$$
|
| 312 |
+
|
| 313 |
+
which implies $\nabla \mathcal { R } \left( w _ { \mathrm { p r o d } } ( 0 ) \right) \neq 0$ and $\begin{array} { r } { \partial \mathcal { R } / \partial W _ { 1 } = \left( W _ { L } ( 0 ) \cdots W _ { 2 } ( 0 ) \right) ^ { \top } \nabla \mathcal { R } \left( w _ { \mathrm { p r o d } } ( 0 ) \right) ^ { \top } \neq 0 . } \end{array}$
|
| 314 |
+
|
| 315 |
+
On the other hand, if $\mathcal { R } \left( W ( 0 ) \right) > \mathcal { R } ( 0 )$ , gradient flow/descent may never minimize the risk to 0. For example,suppose the network has two layers, and both the input and output have dimension 1; the network just computes the dot product of two vectors $w _ { 1 }$ and $w _ { 2 }$ .Consider minimizing $\mathcal { R } ( w _ { 1 } , w _ { 2 } ) \stackrel { - } { = } \exp \left( - \langle w _ { 1 } , w _ { 2 } \rangle \right)$ .If $w _ { 1 } ( 0 ) = - w _ { 2 } ( 0 ) \neq 0$ ,then $\mathcal { R } \left( w _ { 1 } ( 0 ) , w _ { 2 } ( 0 ) \right) \ =$ $\exp \left( \Vert w _ { 1 } \Vert ^ { 2 } \right) > \exp ( 0 )$ . It is easy to verify that for any $t$ , $w _ { 1 } ( t ) = - w _ { 2 } ( t )$ ,and $\mathcal { R } \left( w _ { 1 } ( t ) , w _ { 2 } ( t ) \right) \geq$ $\exp ( 0 ) > 0$ 、:
|
| 316 |
+
|
| 317 |
+
# BOMITTED PROOFS FROM SECTION 2
|
| 318 |
+
|
| 319 |
+
Proof of Lemma $^ { l }$ Fix an arbitrary $R > 0$ . If the claim is not true, then for any $\epsilon > 0$ , there exists some $t \geq 1$ such that $\| W _ { k } \| _ { F } \leq R$ for all $k$ while $\left\| \partial \mathcal { R } / \partial W _ { 1 } \right\| _ { F } ^ { 2 } \leq \epsilon ^ { 2 }$ , which means
|
| 320 |
+
|
| 321 |
+
$$
|
| 322 |
+
\left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } \right\| _ { F } ^ { 2 } = \left\| W _ { 2 } ^ { \top } \cdot \cdot \cdot W _ { L } ^ { \top } \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) ^ { \top } \right\| _ { F } ^ { 2 } = \left\| W _ { L } \cdot \cdot \cdot W _ { 2 } \right\| ^ { 2 } \left\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \right\| ^ { 2 } \leq \epsilon ^ { 2 } .
|
| 323 |
+
$$
|
| 324 |
+
|
| 325 |
+
Since $\| w _ { \mathrm { p r o d } } \| \leq R ^ { L }$ , we have
|
| 326 |
+
|
| 327 |
+
$$
|
| 328 |
+
\left. \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) , \bar { u } \right. = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) \left. z _ { i } , \bar { u } \right. \leq \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) \gamma \leq - M \gamma ,
|
| 329 |
+
$$
|
| 330 |
+
|
| 331 |
+
where $- M = \mathrm { m a x } _ { - R ^ { L } \leq x \leq R ^ { L } } \ell ^ { \prime } ( x )$ Since $\ell ^ { \prime }$ is continuous and the domain is bounded, the maximum is attained and negative, and thus $M \ > \ 0$ .Therefore $\left\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \right\| \ \ge \ M \gamma$ ,and thus $\| W _ { L } \cdot \cdot \cdot W _ { 2 } \| \le \epsilon / M \gamma$ .Since $\| W _ { 1 } \| _ { F } \leq R$ ,we further have $\lVert w _ { \mathrm { p r o d } } \rVert \leq \epsilon R / M \gamma$ . In other words, after $t = 1 , \| w _ { \mathrm { p r o d } } \|$ may be arbitrarily small, which implies $\mathcal { R } \left( w _ { \mathrm { p r o d } } \right)$ can be arbitrarily close to $\mathcal { R } \left( 0 \right)$ :
|
| 332 |
+
|
| 333 |
+
On the other hand, by Assumption 2, $\mathrm { d } \mathscr { R } ( W ) / \mathrm { d } t = - \| \nabla \mathscr { R } ( W ) \| ^ { 2 } < 0$ at $t = 0$ . This implies that $\mathcal { R } \left( W ( 1 ) \right) < \mathcal { R } \left( W ( 0 ) \right)$ , and for any $t \geq 1$ $\mathcal { R } \left( W ( t ) \right) \leq \mathcal { R } \left( W ( 1 ) \right) < \mathcal { R } \left( W ( 0 ) \right) \leq \mathcal { R } ( 0 )$ , which is a contradiction.
|
| 334 |
+
|
| 335 |
+
Since the risk is always positive, we have
|
| 336 |
+
|
| 337 |
+
$$
|
| 338 |
+
\begin{array} { r l } { \mathcal { R } \left( W ( 0 ) \right) \geq \displaystyle \int _ { t = 0 } ^ { \infty } \displaystyle \sum _ { k = 1 } ^ { L } \left\| \frac { \partial \mathcal { R } } { \partial W _ { k } } \right\| _ { F } ^ { 2 } \mathrm { d } t } & { } \\ { \geq \displaystyle \int _ { t = 0 } ^ { \infty } \left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } \right\| _ { F } ^ { 2 } \mathrm { d } t } \\ { \geq \displaystyle \int _ { t = 0 } ^ { \infty } \left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } \right\| _ { T } ^ { 2 } \displaystyle \mathbf { 1 } \left[ \frac { \operatorname* { m a x } } { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq R \right] \mathrm { d } t } & { } \\ { \geq \displaystyle \int _ { t = 1 } ^ { \infty } \left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } \right\| _ { T } ^ { 2 } \displaystyle \left[ \frac { \operatorname* { m a x } } { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq R \right] \mathrm { d } t } & { } \\ { \geq \epsilon ( R ) ^ { 2 } \displaystyle \int _ { t = 1 } ^ { \infty } \mathbb { 1 } \left[ \frac { \operatorname* { m a x } } { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq R \right] \mathrm { d } t , } & { } \end{array}
|
| 339 |
+
$$
|
| 340 |
+
|
| 341 |
+
which implies gradient flow only spends a fnite amount of time in $\left\{ W \middle | \operatorname* { m a x } _ { 1 \leq k \leq L } \Vert W _ { k } \Vert _ { F } \leq R \right\}$ This directly implies that $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F }$ is unbounded. □
|
| 342 |
+
|
| 343 |
+
Proof of Lemma 2. The first claim is true for $k = L$ since $W _ { L }$ is a row vector. For any $1 \le k < L$ recall that Arora et al. (2018); Du et al. (2018) give the following relation:
|
| 344 |
+
|
| 345 |
+
$$
|
| 346 |
+
\begin{array} { r } { W _ { k + 1 } ^ { \top } ( t ) W _ { k + 1 } ( t ) - W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) = W _ { k } ( t ) W _ { k } ^ { \top } ( t ) - W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) . } \end{array}
|
| 347 |
+
$$
|
| 348 |
+
|
| 349 |
+
Let $A _ { k , k + 1 } = W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) - W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 )$ . By eq. (5)and the definition of singular vectors and singular values, we have
|
| 350 |
+
|
| 351 |
+
$$
|
| 352 |
+
\begin{array} { r l } & { \sigma _ { k } ^ { 2 } \geq v _ { k + 1 } ^ { \top } W _ { k } W _ { k } ^ { \top } v _ { k + 1 } } \\ & { \quad = v _ { k + 1 } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } v _ { k + 1 } + v _ { k + 1 } ^ { \top } A _ { k , k + 1 } v _ { k + 1 } } \\ & { \quad = \sigma _ { k + 1 } ^ { 2 } + v _ { k + 1 } ^ { \top } A _ { k , k + 1 } v _ { k + 1 } } \\ & { \quad \geq \sigma _ { k + 1 } ^ { 2 } - \| A _ { k , k + 1 } \| _ { 2 } . } \end{array}
|
| 353 |
+
$$
|
| 354 |
+
|
| 355 |
+
Moreover, by taking the trace on both sides of eq. (5), we have
|
| 356 |
+
|
| 357 |
+
$$
|
| 358 |
+
\begin{array} { r l } & { \| \boldsymbol { W } _ { k } \| _ { F } ^ { 2 } = \operatorname { t r } \Big ( \boldsymbol { W } _ { k } \boldsymbol { W } _ { k } ^ { \top } \Big ) = \operatorname { t r } \Big ( \boldsymbol { W } _ { k + 1 } ^ { \top } \boldsymbol { W } _ { k + 1 } \Big ) + \operatorname { t r } \Big ( \boldsymbol { W } _ { k } ( 0 ) \boldsymbol { W } _ { k } ^ { \top } ( 0 ) \Big ) - \operatorname { t r } \Big ( \boldsymbol { W } _ { k + 1 } ^ { \top } ( 0 ) \boldsymbol { W } _ { k + 1 } ( 0 ) \Big ) } \\ & { \qquad = \| \boldsymbol { W } _ { k + 1 } \| _ { F } ^ { 2 } + \| \boldsymbol { W } _ { k } ( 0 ) \| _ { F } ^ { 2 } - \| \boldsymbol { W } _ { k + 1 } ( 0 ) \| _ { F } ^ { 2 } . } \end{array}
|
| 359 |
+
$$
|
| 360 |
+
|
| 361 |
+
Summing eq. (6) and eq. (7) from $k$ to $L - 1$ , we get
|
| 362 |
+
|
| 363 |
+
$$
|
| 364 |
+
\| W _ { k } \| _ { F } ^ { 2 } - \| W _ { k } \| _ { 2 } ^ { 2 } \leq \| W _ { k } ( 0 ) \| _ { F } ^ { 2 } - \| W _ { L } ( 0 ) \| _ { F } ^ { 2 } + \sum _ { k ^ { \prime } = k } ^ { L - 1 } \| A _ { k ^ { \prime } , k ^ { \prime } + 1 } \| _ { 2 } \leq D .
|
| 365 |
+
$$
|
| 366 |
+
|
| 367 |
+
Next we prove that singular vectors get aligned. Consider $u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } u _ { k }$ . On one hand, similar to eq. (6), we can get that
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
\begin{array} { r l } & { u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } u _ { k } = u _ { k } ^ { \top } W _ { k } W _ { k } ^ { \top } u _ { k } - u _ { k } ^ { \top } W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) u _ { k } + u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) u _ { k } } \\ & { \qquad \geq u _ { k } ^ { \top } W _ { k } W _ { k } ^ { \top } u _ { k } - u _ { k } ^ { \top } W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) u _ { k } } \\ & { \qquad \geq \sigma _ { k } ^ { 2 } - \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } . } \end{array}
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
On the other hand, it follows from the definition of singular vectors and eq. (8) that
|
| 374 |
+
|
| 375 |
+
$$
|
| 376 |
+
\begin{array} { r l } & { u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } u _ { k } = \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + u _ { k } ^ { \top } \left( W _ { k + 1 } ^ { \top } W _ { k + 1 } - v _ { k + 1 } \sigma _ { k + 1 } ^ { 2 } v _ { k + 1 } ^ { \top } \right) u _ { k } } \\ & { \qquad \leq \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + \| W _ { k + 1 } \| _ { F } ^ { 2 } - \| W _ { k + 1 } \| _ { 2 } ^ { 2 } } \\ & { \qquad \leq \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + D . } \end{array}
|
| 377 |
+
$$
|
| 378 |
+
|
| 379 |
+
Combining eq. (9) and eq. (10), we get
|
| 380 |
+
|
| 381 |
+
$$
|
| 382 |
+
\sigma _ { k } ^ { 2 } \le \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + D + \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } .
|
| 383 |
+
$$
|
| 384 |
+
|
| 385 |
+
Similar to eq. (9), we can get
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\begin{array} { r } { \sigma _ { k } ^ { 2 } \geq v _ { k + 1 } ^ { \top } W _ { k } W _ { k } ^ { \top } v _ { k + 1 } \geq \sigma _ { k + 1 } ^ { 2 } - \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } . } \end{array}
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
Therefore
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\frac { \sigma _ { k } ^ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } \geq 1 - \frac { \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } .
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
Combining eq. (11) and eq. (12), we finally get
|
| 398 |
+
|
| 399 |
+
$$
|
| 400 |
+
\langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \geq 1 - \frac { D + \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } + \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } .
|
| 401 |
+
$$
|
| 402 |
+
|
| 403 |
+
Regarding the last claim, first recall that since the difference between the squares of Frobenius norms of any two layers is a constant, $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \to \infty$ implies $\| W _ { k } \| _ { F } \to \infty$ for any $k$ : We further have the following.
|
| 404 |
+
|
| 405 |
+
· Since $\| W _ { k } \| _ { 2 } \to \infty$ $| \langle u _ { k } , v _ { k + 1 } \rangle | 1$
|
| 406 |
+
|
| 407 |
+
As a result,
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\begin{array} { r l r } & { } & { \frac { w _ { \mathrm { p r o d } } } { \prod _ { k = 1 } ^ { L } W _ { k } _ { F } } , v _ { 1 } = \displaystyle \prod _ { k = 1 } ^ { L } \frac { W _ { k } } { W _ { k } _ { F } } , v _ { 1 } } \\ & { } & { \displaystyle \prod _ { k = 1 } ^ { L } u _ { i } v _ { i } ^ { \top } , v _ { 1 } } \\ & { } & { 1 . } \end{array}
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
Proof of Theorem $^ { l }$ . Suppose for some $\epsilon > 0$ , $\mathcal { R } \left( W \right) \geq \epsilon$ for any $t$ Then there exists some $1 \leq j \leq n$ such that $\ell \left( \langle w _ { \mathrm { p r o d } } , z _ { j } \rangle \right) \geq \epsilon$ , and thus $\langle w _ { \mathrm { p r o d } } , z _ { j } \rangle \leq \ell ^ { - 1 } ( \epsilon )$ .On the other hand, since $\mathcal { R } ( W ) \leq \mathcal { R } ( 0 ) = \ell ( 0 )$ , $\ell \left( \langle w _ { \mathrm { p r o d } } , z _ { j } \rangle \right) \leq n \ell ( 0 )$ ,and thus $\langle w _ { \mathrm { p r o d } } , z _ { j } \rangle \geq \ell ^ { - 1 } \left( n \ell ( 0 ) \right)$ . Let $\begin{array} { r } { - M = \operatorname* { m a x } _ { \ell ^ { - 1 } \left( n \ell ( 0 ) \right) \leq x \leq \ell ^ { - 1 } \left( \epsilon / n \right) } \ell ^ { \prime } ( x ) < 0 } \end{array}$ , we have for any $t$ ,
|
| 414 |
+
|
| 415 |
+
$$
|
| 416 |
+
\begin{array} { r l } & { \langle \nabla { \mathcal R } ( w _ { \mathrm { p r o d } } ) , { \bar { u } } \rangle = \displaystyle \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) \left. z _ { i } , { \bar { u } } \right. } \\ & { \quad \quad \quad \quad \quad \quad \quad \leq \displaystyle \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { i } \right. \right) \gamma } \\ & { \quad \quad \quad \quad \quad \quad \leq \displaystyle \frac { 1 } { n } \ell ^ { \prime } \left( \left. w _ { \mathrm { p r o d } } , z _ { j } \right. \right) \gamma } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \leq \displaystyle \frac { - M \gamma } { n } < 0 , } \end{array}
|
| 417 |
+
$$
|
| 418 |
+
|
| 419 |
+
and thus $\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \| \ge M \gamma / n$
|
| 420 |
+
|
| 421 |
+
Similar to the proof of Lemma 2, we can show that if $\| W _ { k } \| _ { F } \to \infty$ ,
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
| \frac { ( W _ { L } \cdot \cdot \cdot W _ { 2 } ) ^ { \top } } { \| W _ { k } \| _ { F } \cdot \cdot \cdot \| W _ { 2 } \| _ { F } } , v _ { 2 } | 1 .
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
In other words, there exists some $C > 0$ , such that when $\begin{array} { r } { \operatorname* { m i n } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } > C , \| W _ { L } \cdot \cdot \cdot W _ { 2 } \| \geq } \end{array}$ $\| W _ { k } \| _ { F } \cdot \cdot \cdot \| W _ { 2 } \| _ { F } / 2 > C ^ { L } / 2$
|
| 428 |
+
|
| 429 |
+
Lemma 1 shows that gradient flow spends a finite amount of time in $\left\{ W \big | \operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq R \right\}$ for any $R > 0$ .Since the difference between the squares of Frobenius norms of any two layers is a constant, gradient flow also spends a finite amount of time in $\left\{ W \big | \operatorname* { m i n } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \leq \dot { C } \right\}$ . Now we have
|
| 430 |
+
|
| 431 |
+
$$
|
| 432 |
+
\begin{array} { r l } { \mathcal { R } ( W ( 0 ) ) \geq \displaystyle \int _ { t = 0 } ^ { \infty } \displaystyle \sum _ { k = 1 } ^ { L } \| \frac { \partial \mathcal { R } } { \partial W _ { k } } \| _ { \Gamma } ^ { 2 } \mathrm { d } t } \\ { \geq \displaystyle \int _ { t = 0 } ^ { \infty } \| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } \| _ { \Gamma } ^ { 2 } \mathrm { d } t } \\ { } & { = \displaystyle \int _ { t = 0 } ^ { \infty } \| W _ { L } \cdots W _ { 2 } \| ^ { 2 } \| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \| ^ { 2 } \mathrm { d } t } \\ { } & { \geq \displaystyle \int _ { t = 0 } ^ { \infty } \| W _ { L } \cdots W _ { 2 } \| ^ { 2 } \| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \| ^ { 2 } [ W \displaystyle | \operatorname* { m i n } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } > C ] \mathrm { d } t } \\ { } & { \geq ( \frac { \mathcal { M } \gamma } { n } ) ^ { 2 } ( \frac { C ^ { L } } { 2 } ) ^ { 2 } \displaystyle \int _ { t = 0 } ^ { \infty } \Im [ W \displaystyle | \operatorname* { m i n } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } > C ] \mathrm { d } t } \\ { } & { = \displaystyle \infty , } \end{array}
|
| 433 |
+
$$
|
| 434 |
+
|
| 435 |
+
which is a contradiction. Therefore $\mathcal { R } ( \epsilon ) 0$ . This further implies $\| W _ { k } \| _ { F } \to \infty$ ,since $\mathcal { R } ( W )$ has no finite optimum. Finally, invoking Lemma 2 proves the final claim of Theorem 1. □
|
| 436 |
+
|
| 437 |
+
Proof of Lemma 3. Soudry et al. (2017) Lemma 12 proves that, with probability 1,there are at most $d$ support vectors,and moreover, the $i$ -th support vector $z _ { i }$ has a positive dual variable $\alpha _ { i }$ ,such that $\textstyle \sum _ { i \in S } \alpha _ { i } z _ { i } = { \bar { u } }$ ,
|
| 438 |
+
|
| 439 |
+
Suppose there exists some $\xi \perp \bar { u }$ , such that $\operatorname* { m a x } _ { i \in S } \langle \xi , z _ { i } \rangle \leq 0$ Since
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
\sum _ { i \in S } \alpha _ { i } \langle \xi , z _ { i } \rangle = \left. \xi , \sum _ { i \in S } \alpha _ { i } z _ { i } \right. = \langle \xi , \bar { u } \rangle = 0 ,
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
we actually have $\langle \xi , z _ { i } \rangle = 0$ for all $i \in S$ . This is impossible under Assumption 3, since the support vectors span the whole space. □
|
| 446 |
+
|
| 447 |
+
Proof of Lemma 4. For the sake of presentation, we leave out the subscript in $z _ { i }$ and denote a data point by $z$ generally. For any data point $z$ and predictor $w$ ,let $z _ { \bot }$ and $w _ { \perp }$ denote their projection onto $\bar { u } ^ { \perp }$ . Let $z ^ { \prime } \in \arg \operatorname* { m a x } _ { i \in S } \langle - w _ { \bot } , z \rangle$ , and thus $\langle - w _ { \perp } , z ^ { \prime } \rangle \geq \alpha \Vert w _ { \perp } \Vert$ :
|
| 448 |
+
|
| 449 |
+
For $\ell _ { \mathrm { e x p } }$ , we have
|
| 450 |
+
|
| 451 |
+
$$
|
| 452 |
+
\begin{array} { r l } & { \langle w _ { \perp } , \nabla { \mathcal R } ( w ) \rangle = \displaystyle \sum _ { z } \frac { 1 } { n } \left[ - \exp \left( - \langle w , z \rangle \right) \right] \langle w _ { \perp } , z _ { \perp } \rangle } \\ & { \quad \quad \quad = \displaystyle \sum _ { z } \frac { 1 } { n } \left[ \exp \left( \langle - w , z \rangle \right) \right] \langle - w _ { \perp } , z _ { \perp } \rangle } \\ & { \quad \quad \quad \geq \displaystyle \frac { 1 } { n } \exp \left( \langle - w , z ^ { \prime } \rangle \right) \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle + \displaystyle \sum _ { \langle z _ { \perp } , w _ { \perp } \rangle \geq 0 } \frac { 1 } { n } \exp \left( \langle - w , z \rangle \right) \langle - w _ { \perp } , z _ { \perp } \rangle . } \end{array}
|
| 453 |
+
$$
|
| 454 |
+
|
| 455 |
+
The first part can be lower bounded as below (recall that $\langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle = \langle - w _ { \perp } , z ^ { \prime } \rangle \geq \alpha \| w _ { \perp } \| )$
|
| 456 |
+
|
| 457 |
+
$$
|
| 458 |
+
\begin{array} { r l } & { \frac { 1 } { n } \exp \left( \left. - w , z ^ { \prime } \right. \right) \left. - w _ { \perp } , z _ { \perp } ^ { \prime } \right. = \displaystyle \frac { 1 } { n } \exp \left( \left. - w , \gamma \bar { u } \right. \right) \exp \left( \left. - w _ { \perp } , z _ { \perp } ^ { \prime } \right. \right) \left. - w _ { \perp } , z _ { \perp } ^ { \prime } \right. } \\ & { \phantom { \frac { 1 } { n } } \geq \displaystyle \frac { 1 } { n } \exp \left( - \left. w , \gamma \bar { u } \right. \right) \exp \left( \alpha \| w _ { \perp } \| \right) \alpha \| w _ { \perp } \| . } \end{array}
|
| 459 |
+
$$
|
| 460 |
+
|
| 461 |
+
To bound the second part,frst notice that since we assume $\langle w , \bar { u } \rangle \geq 0$ ,for any $z$ ,
|
| 462 |
+
|
| 463 |
+
$$
|
| 464 |
+
\langle w , z - \gamma \bar { u } \rangle = \langle w , z _ { \perp } \rangle + \langle w , z - \gamma \bar { u } - z _ { \perp } \rangle \ge \langle w , z _ { \perp } \rangle = \langle w _ { \perp } , z _ { \perp } \rangle .
|
| 465 |
+
$$
|
| 466 |
+
|
| 467 |
+
The reason is that every data point has margin at least $\gamma$ ,and thus $z - \gamma \bar { u } - z _ { \bot } = c \bar { u }$ for some $c \geq 0$ Using eq. (15), we can bound the second part of eq. (13).
|
| 468 |
+
|
| 469 |
+
$$
|
| 470 |
+
\begin{array} { r l } & { \underset { ( \varepsilon _ { \perp } , w , \lambda ) \geq 0 } { \sum } \frac { 1 } { n } \exp ( ( - w , z ) ) \langle - w _ { \perp } , z _ { \perp } \rangle } \\ & { = \underset { ( \varepsilon _ { \perp } , w , \lambda ) \geq 0 } { \sum } \frac { 1 } { n } \exp ( ( - w , \gamma \tilde { u } ) ) \exp ( ( - w , z - \gamma \tilde { u } ) ) \langle - w _ { \perp } , z _ { \perp } \rangle } \\ & { \underset { ( \varepsilon _ { \perp } , w , \lambda ) \geq 0 } { \geq } \frac { 1 } { n } \exp ( ( - w , \gamma \tilde { u } ) ) \exp ( ( - w _ { \perp } , z _ { \perp } ) \big \langle - w _ { \perp } , z _ { \perp } \big \rangle } \\ & { \sum _ { ( \varepsilon _ { \perp } , w , \lambda ) \geq 0 } \frac { 1 } { n } \exp ( ( - w , \gamma \tilde { u } ) ) ( - \frac { 1 } { e } ) } \\ & { \underset { ( \varepsilon _ { \perp } , w , \lambda ) \geq 0 } { \geq } \frac { 1 } { n } \exp ( ( - w , \gamma \tilde { u } ) ) ( - \frac { 1 } { e } ) } \\ & { \leq \ \exp ( ( - w , \gamma \tilde { u } ) ) ( - \frac { 1 } { e } ) . } \end{array}
|
| 471 |
+
$$
|
| 472 |
+
|
| 473 |
+
On the third line eq. (15) is applied. The fourth line applies the property that $f ( x ) = - x e ^ { - x } \geq - 1 / e$ when $x \geq 0$ ,
|
| 474 |
+
|
| 475 |
+
Combining eq. (13), eq. (14) and eq. (16), we get
|
| 476 |
+
|
| 477 |
+
$$
|
| 478 |
+
\langle w _ { \perp } , \nabla { \mathcal R } ( w ) \rangle \geq \exp \left( \langle - w , \gamma { \bar { u } } \rangle \right) \left( { \frac { 1 } { n } } \exp \left( \alpha \| w _ { \perp } \| \right) \alpha \| w _ { \perp } \| - { \frac { 1 } { e } } \right) .
|
| 479 |
+
$$
|
| 480 |
+
|
| 481 |
+
As long as $\| w _ { \perp } \| \ge ( 1 + \ln ( n ) ) / \alpha , \langle w _ { \perp } , \nabla { \mathcal { R } } ( w ) \rangle \ge 0$
|
| 482 |
+
|
| 483 |
+
For $\ell _ { \mathrm { l o g } }$ , similar to eq. (13), we have
|
| 484 |
+
|
| 485 |
+
$$
|
| 486 |
+
\begin{array} { r l } & { \langle w _ { \perp } , \nabla { \mathcal { R } } ( w ) \rangle \geq \displaystyle \frac { 1 } { n } \displaystyle \frac { \exp \left( \langle - w , z ^ { \prime } \rangle \right) } { 1 + \exp \left( \langle - w , z ^ { \prime } \rangle \right) } \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle + \displaystyle \sum _ { \langle z _ { \perp } , w _ { \perp } \rangle \geq 0 } \frac { 1 } { n } \displaystyle \frac { \exp \left( \langle - w , z \rangle \right) } { 1 + \exp \left( \langle - w , z \rangle \right) } \langle - w _ { \perp } , z _ { \perp } \rangle } \\ & { \qquad \geq \displaystyle \frac { 1 } { n } \displaystyle \frac { \exp \left( \langle - w , z ^ { \prime } \rangle \right) } { 1 + \exp \left( \langle - w , z ^ { \prime } \rangle \right) } \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle + \displaystyle \sum _ { \langle z _ { \perp } , w _ { \perp } \rangle \geq 0 } \frac { 1 } { n } \exp \left( \langle - w , z \rangle \right) \langle - w _ { \perp } , z _ { \perp } \rangle . } \end{array}
|
| 487 |
+
$$
|
| 488 |
+
|
| 489 |
+
The second part of eq. (17) can be bounded again by eq. (16). To bound the first part of eq. (17), first notice that (recali $\langle w , \bar { u } \rangle \geq 0 \mathrm { ~ }$
|
| 490 |
+
|
| 491 |
+
$$
|
| 492 |
+
\begin{array} { r } { \exp \left( \langle - w , z ^ { \prime } \rangle \right) = \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \exp \left( \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle \right) \leq \exp \left( \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle \right) . } \end{array}
|
| 493 |
+
$$
|
| 494 |
+
|
| 495 |
+
Using eq. (18), and recall that $\begin{array} { r } { \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle = \langle - w _ { \perp } , z ^ { \prime } \rangle \geq \alpha \| w _ { \perp } \| \geq 0 , } \end{array}$ , we can bound the first part of eq.(17) as below.
|
| 496 |
+
|
| 497 |
+
$$
|
| 498 |
+
\begin{array} { r l } & { \frac { 1 } { n } \displaystyle \frac { \exp \left( \langle - w , z ^ { \prime } \rangle \right) } { 1 + \exp \left( \langle - w , z ^ { \prime } \rangle \right) } \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle = \displaystyle \frac { 1 } { n } \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \displaystyle \frac { \exp \left( \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle \right) } { 1 + \exp \left( \langle - w , z ^ { \prime } \rangle \right) } \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle } \\ & { \quad \quad \quad \geq \displaystyle \frac { 1 } { n } \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \displaystyle \frac { \exp \left( \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle \right) } { 1 + \exp \left( \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle \right) } \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle } \\ & { \quad \quad \quad \geq \displaystyle \frac { 1 } { 2 n } \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \langle - w _ { \perp } , z _ { \perp } ^ { \prime } \rangle } \\ & { \quad \quad \quad \geq \displaystyle \frac { 1 } { 2 n } \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \alpha \| w _ { \perp } \| . } \end{array}
|
| 499 |
+
$$
|
| 500 |
+
|
| 501 |
+
Combining eq. (17),eq. (19) and eq. (16), we get
|
| 502 |
+
|
| 503 |
+
$$
|
| 504 |
+
\langle w _ { \perp } , \nabla { \mathcal R } ( w ) \rangle \geq \exp \left( \langle - w , \gamma \bar { u } \rangle \right) \left( \frac { 1 } { 2 n } \alpha \| w _ { \perp } \| - \frac { 1 } { e } \right) .
|
| 505 |
+
$$
|
| 506 |
+
|
| 507 |
+
As long as $\| w _ { \perp } \| \ge 2 n / e \alpha , \langle w _ { \perp } , \nabla \mathcal { R } ( w ) \rangle \ge 0 .$
|
| 508 |
+
|
| 509 |
+
Proof of Theorem 2. Recall that
|
| 510 |
+
|
| 511 |
+
$$
|
| 512 |
+
\frac { \mathrm d W _ { 1 } } { \mathrm d t } = - \frac { \partial \mathcal R } { \partial W _ { 1 } } = - W _ { 2 } ^ { \top } \cdot \cdot \cdot W _ { L } ^ { \top } \nabla \mathcal R ( w _ { \mathrm { p r o d } } ) ^ { \top } ,
|
| 513 |
+
$$
|
| 514 |
+
|
| 515 |
+
and thus
|
| 516 |
+
|
| 517 |
+
$$
|
| 518 |
+
\frac { \mathrm { d } \| \boldsymbol { W } _ { 1 } \| _ { F } ^ { 2 } } { \mathrm { d } t } = \left. \boldsymbol { W } _ { 1 } , \frac { \mathrm { d } \boldsymbol { W } _ { 1 } } { \mathrm { d } t } \right. = - 2 \langle \boldsymbol { w } _ { \mathrm { p r o d } } , \nabla \mathcal { R } ( \boldsymbol { w } _ { \mathrm { p r o d } } ) \rangle .
|
| 519 |
+
$$
|
| 520 |
+
|
| 521 |
+
Let $\Pi _ { \bar { u } }$ denote the projection onto $\mathrm { s p a n } ( \bar { u } )$ ,and let $\Pi _ { \perp }$ denote the projection onto $\bar { u } ^ { \perp }$ .Also let $\Pi _ { \bar { u } } W _ { 1 }$ and $\Pi _ { \perp } W _ { 1 }$ denote the projection of rows of $W _ { 1 }$ onto span $( \bar { u } )$ and $\bar { u } ^ { \perp }$ , respectively. Notice that
|
| 522 |
+
|
| 523 |
+
$$
|
| 524 |
+
\Pi _ { \bar { u } } w _ { \mathrm { p r o d } } = \left( W _ { L } \cdot \cdot \cdot W _ { 2 } ( \Pi _ { \bar { u } } W _ { 1 } ) \right) ^ { \top } , \quad \mathrm { a n d } \quad \Pi _ { \perp } w _ { \mathrm { p r o d } } = \left( W _ { L } \cdot \cdot \cdot W _ { 2 } ( \Pi _ { \perp } W _ { 1 } ) \right) ^ { \top } .
|
| 525 |
+
$$
|
| 526 |
+
|
| 527 |
+
We further have
|
| 528 |
+
|
| 529 |
+
$$
|
| 530 |
+
\frac { \mathrm { d } \| \Pi _ { \perp } W _ { 1 } \| _ { F } ^ { 2 } } { \mathrm { d } t } = - 2 \langle \Pi _ { \perp } w _ { \mathrm { p r o d } } , \nabla { \mathcal { R } } ( w _ { \mathrm { p r o d } } ) \rangle .
|
| 531 |
+
$$
|
| 532 |
+
|
| 533 |
+
Let $W _ { 1 } = u _ { 1 } \sigma _ { 1 } v _ { 1 } ^ { \top } + S$ .We have $\| S \| _ { 2 } \leq \sigma _ { 1 , 2 } \leq \sqrt { \sigma _ { 1 , 2 } ^ { 2 } } \leq \sqrt { \| W _ { 1 } \| _ { F } ^ { 2 } - \| W _ { 1 } \| _ { 2 } ^ { 2 } } \leq \sqrt { D }$ where $\sigma _ { 1 , 2 }$ is the second singular value of $W _ { 1 }$ and $D$ is the constant introduced in Lemma 2. Then
|
| 534 |
+
|
| 535 |
+
$$
|
| 536 |
+
\Pi _ { \perp } W _ { 1 } = u _ { 1 } \sigma _ { 1 } \left( \Pi _ { \perp } v _ { 1 } \right) ^ { \top } + \Pi _ { \perp } S ,
|
| 537 |
+
$$
|
| 538 |
+
|
| 539 |
+
and
|
| 540 |
+
|
| 541 |
+
$$
|
| 542 |
+
\begin{array} { r } { \| \Pi _ { \bot } W _ { 1 } \| _ { F } \leq \left\| u _ { 1 } \sigma _ { 1 } \left( \Pi _ { \bot } v _ { 1 } \right) ^ { \top } \right\| _ { F } + \| \Pi _ { \bot } S \| _ { F } = \sigma _ { 1 } \| \Pi _ { \bot } v _ { 1 } \| + \| \Pi _ { \bot } S \| _ { F } \leq \sigma _ { 1 } \| \Pi _ { \bot } v _ { 1 } \| + \sqrt { d D } . } \end{array}
|
| 543 |
+
$$
|
| 544 |
+
|
| 545 |
+
It follows that
|
| 546 |
+
|
| 547 |
+
$$
|
| 548 |
+
\| \Pi _ { \bot } v _ { 1 } \| \ge \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \sigma _ { 1 } } - \frac { \sqrt { d D } } { \sigma _ { 1 } } \ge \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \| W _ { 1 } \| _ { F } } - \frac { \sqrt { d D } } { \| W _ { 1 } \| _ { 2 } } .
|
| 549 |
+
$$
|
| 550 |
+
|
| 551 |
+
Fix an arbitrary $\epsilon > 0$ . By Theorem 1, we can find some $t _ { 0 }$ large enough such that for any $t \geq t _ { 0 }$
|
| 552 |
+
|
| 553 |
+
1. $\sqrt { d D } / \| W _ { 1 } \| _ { 2 } \leq \epsilon / 3$
|
| 554 |
+
2. $\begin{array} { r } { \| w _ { \mathrm { p r o d } } \ / \| W _ { L } \| _ { F } \cdots \| W _ { 1 } \| _ { F } - v _ { 1 } \| \le \epsilon / 3 , \mathrm { o r } \| | w _ { \mathrm { p r o d } } \ / \| W _ { L } \| _ { F } \cdots \| W _ { 1 } \| _ { F } + v _ { 1 } \| \le \epsilon / 3 . } \end{array}$
|
| 555 |
+
3. $\| W _ { L } \| _ { F } \cdot \cdot \cdot \| W _ { 1 } \| _ { F } \geq 3 K / \epsilon$ where $K$ is the threshold given in Lemma 4, i.e., $1 + \ln ( n ) / \alpha$ for $\ell _ { \mathrm { e x p } } , { 2 n } / { e \alpha }$ for $\ell _ { \mathrm { l o g } }$
|
| 556 |
+
4. $\mathcal { R } ( W ) \leq \ell ( 0 ) / n$ ,which implies $\langle w _ { \mathrm { p r o d } } , z _ { i } \rangle \geq 0$ for all $1 \leq i \leq n$ . By Lemma 3, there always exists a support vector $z$ for which $\langle \Pi _ { \perp } w _ { \mathrm { p r o d } } , z \rangle \le 0$ ,and therefore $\langle w _ { \mathrm { p r o d } } , \bar { u } \rangle \geq 0$ :
|
| 557 |
+
|
| 558 |
+
Suppose for some $t \geq t _ { 0 }$ , $\| \Pi _ { \perp } W _ { 1 } \| _ { F } / \| W _ { 1 } \| _ { F } \ge \epsilon$ By eq. (22) and bullet 1 above, $\| \Pi _ { \perp } v _ { 1 } \| \ge$ $2 \epsilon / 3$ Bullet 2 above then gives $\left\| \Pi _ { \perp } w _ { \mathrm { p r o d } } \middle / \left\| W _ { L } \right\| _ { F } \cdots \left\| W _ { 1 } \right\| _ { F } \right\| \ \geq \ \epsilon / 3$ ,which together with bulet 3 above implies $\| \Pi _ { \bot } w _ { \mathrm { p r o d } } \| \ge K$ . Since also $\langle w _ { \mathrm { p r o d } } , \bar { u } \rangle \geq 0$ ,we can apply Lemma 4 and get that $\langle \Pi _ { \perp } w _ { \mathrm { p r o d } } , \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \rangle \geq 0 $ In light of eq. (21), $\mathrm { d } \| \Pi _ { \perp } W _ { 1 } \| _ { F } ^ { 2 } / \mathrm { d } t \leq 0$ :
|
| 559 |
+
|
| 560 |
+
On the other hand, since after $t \geq t _ { 0 }$ , $\langle w _ { \mathrm { p r o d } } , z _ { i } \rangle \geq 0$ ,we have $\mathrm { d } \| W _ { 1 } \| _ { F } ^ { 2 } / \mathrm { d } t \geq 0$ by eq. (20). Therefore $\| \Pi _ { \perp } W _ { 1 } \| _ { F } / \| W _ { 1 } \| _ { F }$ will not increase, and since $\| W _ { 1 } \| _ { F } \stackrel { \cdot \cdot } { } \infty$ , it will eventually drop below $\epsilon$ ,and will never exceed $\epsilon$ again. Therefore,
|
| 561 |
+
|
| 562 |
+
$$
|
| 563 |
+
\operatorname* { l i m } _ { t \to \infty } { \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \| W _ { 1 } \| _ { F } } } \leq \epsilon .
|
| 564 |
+
$$
|
| 565 |
+
|
| 566 |
+
Since $\epsilon$ is arbitrary, we have
|
| 567 |
+
|
| 568 |
+
$$
|
| 569 |
+
\operatorname* { l i m } _ { t \to \infty } { \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \| W _ { 1 } \| _ { F } } } = 0 ,
|
| 570 |
+
$$
|
| 571 |
+
|
| 572 |
+
and thus $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } | \langle v _ { 1 } , \bar { u } \rangle | = 1 } \end{array}$ . An application of Theorem 1 gives the other part of Theorem 2.[
|
| 573 |
+
|
| 574 |
+
Proof of Corollary $^ { l }$ By Theorem 2,
|
| 575 |
+
|
| 576 |
+
$$
|
| 577 |
+
\operatorname* { m i n } _ { i } y _ { i } \left( \frac { W _ { L } } { \| W _ { L } \| _ { F } } \cdots \frac { W _ { 1 } } { \| W _ { 1 } \| _ { F } } \right) x _ { i } \quad \longrightarrow \quad \operatorname* { m i n } _ { i } ^ { } y _ { i } \bar { u } ^ { \top } x _ { i } .
|
| 578 |
+
$$
|
| 579 |
+
|
| 580 |
+
Next, pick arbitrary unit vectors $a _ { i } \in \mathbb { R } ^ { d _ { i } }$ , and note
|
| 581 |
+
|
| 582 |
+
$$
|
| 583 |
+
\begin{array} { r l } & { \displaystyle \operatorname* { m a x } _ { 1 _ { 1 } \in \mathbb { R } ^ { d _ { 1 } \times d _ { 0 } } } \cdots \cdot \operatorname* { m a x } _ { A _ { L } \in \mathbb { R } ^ { 1 \times d _ { L - 1 } } } \operatorname* { m i n } _ { i } y _ { i } \left( A _ { L } \cdot \cdot \cdot A _ { 1 } \right) x _ { i } \geq \operatorname* { m i n } _ { i } y _ { i } \left( ( 1 a _ { L - 1 } ^ { \top } ) ( a _ { L - 1 } a _ { L - 2 } ^ { \top } ) \cdot \cdot \cdot ( a _ { 2 } a _ { 1 } ^ { \top } ) ( a _ { 1 } \bar { u } ^ { \top } ) \right) } \\ & { \| A _ { 1 } \| _ { F } = 1 \qquad \| A _ { L } \| _ { F } = 1 } \\ & { \qquad = \displaystyle \operatorname* { m i n } _ { i } y _ { i } \bar { u } ^ { \top } x _ { i } . } \end{array}
|
| 584 |
+
$$
|
| 585 |
+
|
| 586 |
+
On the other hand, if matrices $( A _ { L } , \ldots , A _ { 1 } )$ are feasible, then
|
| 587 |
+
|
| 588 |
+
$$
|
| 589 |
+
\begin{array} { r } { \| A _ { L } \cdot \cdot \cdot A _ { 1 } \| _ { 2 } \leq \| A _ { L } \| _ { 2 } \cdot \cdot \cdot \| A _ { 2 } \| _ { 2 } \| A _ { 1 } \| _ { F } \leq \| A _ { L } \| _ { F } \cdot \cdot \cdot \| A _ { 1 } \| _ { F } \leq 1 , } \end{array}
|
| 590 |
+
$$
|
| 591 |
+
|
| 592 |
+
whereby
|
| 593 |
+
|
| 594 |
+
$$
|
| 595 |
+
\begin{array} { r l } & { \underset { i } { \operatorname* { m i n } } y _ { i } ( A _ { L } \cdot \cdot \cdot A _ { 1 } ) x _ { i } \leq \| A _ { L } \cdot \cdot \cdot A _ { 1 } \| _ { 2 } \underset { i } { \operatorname* { m i n } } y _ { i } \left( \frac { A _ { L } \cdot \cdot \cdot A _ { 1 } } { \| A _ { L } \cdot \cdot \cdot A _ { 1 } \| _ { 2 } } \right) x _ { i } } \\ & { \qquad \leq 1 \cdot \underset { \| w \| _ { 2 } = 1 } { \operatorname* { m a x } } \underset { i } { \operatorname* { m i n } } y _ { i } w ^ { \top } x _ { i } } \\ & { \qquad = \underset { i } { \operatorname* { m i n } } y _ { i } \bar { u } ^ { \top } x _ { i } . } \end{array}
|
| 596 |
+
$$
|
| 597 |
+
|
| 598 |
+
# COMITTED PROOFS FROM SECTION 3
|
| 599 |
+
|
| 600 |
+
Proof of Lemma 5. Given $W , V \in B ( R )$ , we need to show that $\begin{array} { r } { \| \nabla \mathcal { R } ( W ) - \nabla \mathcal { R } ( V ) \| \leq \beta ( R ) \| W - } \end{array}$ $V \|$ for some $\beta ( R )$
|
| 601 |
+
|
| 602 |
+
Consider $k \ = \ 1$ first.Let $w ~ = ~ ( W _ { L } \cdot \cdot \cdot W _ { 1 } ) ^ { \top }$ ,and $v ~ = ~ ( V _ { L } \cdot \cdot \cdot V _ { 1 } ) ^ { \top }$ .Since $| \ell ^ { \prime } | \ \leq \ G$ $\| \nabla \mathcal { R } ( w ) \| , \| \nabla \mathcal { R } ( v ) \| \le G$ . We have
|
| 603 |
+
|
| 604 |
+
$$
|
| 605 |
+
\begin{array} { r l } { \displaystyle \left\| \frac { \partial { \mathcal R } } { \partial W _ { 1 } } - \frac { \partial { \mathcal R } } { \partial V _ { 1 } } \right\| = } & { \displaystyle \left\| W _ { 2 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) - V _ { 2 } ^ { \top } \cdots V _ { L } ^ { \top } \nabla { \mathcal R } ( v ) \right\| } \\ & { \leq \left\| W _ { 2 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) - V _ { 2 } ^ { \top } W _ { 3 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) \right\| } \\ & { \quad + \displaystyle \left\| V _ { 2 } ^ { \top } W _ { 3 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) - V _ { 2 } ^ { \top } \cdots V _ { L } ^ { \top } \nabla { \mathcal R } ( v ) \right\| } \\ & { \leq R ^ { L - 2 } G \| W _ { 2 } - V _ { 2 } \| } \\ & { \quad + \left\| V _ { 2 } ^ { \top } W _ { 3 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) - V _ { 2 } ^ { \top } \cdots V _ { L } ^ { \top } \nabla { \mathcal R } ( v ) \right\| } \\ & { \leq R ^ { L - 2 } G \| W - V \| } \\ & { \quad + \displaystyle \left\| V _ { 2 } ^ { \top } W _ { 3 } ^ { \top } \cdots W _ { L } ^ { \top } \nabla { \mathcal R } ( w ) - V _ { 2 } ^ { \top } \cdots V _ { L } ^ { \top } \nabla { \mathcal R } ( v ) \right\| . } \end{array}
|
| 606 |
+
$$
|
| 607 |
+
|
| 608 |
+
Proceeding in this way, we can get
|
| 609 |
+
|
| 610 |
+
$$
|
| 611 |
+
\left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } - \frac { \partial \mathcal { R } } { \partial V _ { 1 } } \right\| \leq ( L - 1 ) R ^ { L - 2 } G \| W - V \| + R ^ { L - 1 } \| \nabla \mathcal { R } ( w ) - \nabla \mathcal { R } ( v ) \| .
|
| 612 |
+
$$
|
| 613 |
+
|
| 614 |
+
Since $\| z _ { i } \| \leq 1 , \ell ^ { \prime }$ is $\beta$ -Lipschitz, we have
|
| 615 |
+
|
| 616 |
+
$$
|
| 617 |
+
\| \nabla \mathcal { R } ( w ) - \nabla \mathcal { R } ( v ) \| \leq \beta \| w - v \| \leq \beta L R ^ { L - 1 } \| W - V \| ,
|
| 618 |
+
$$
|
| 619 |
+
|
| 620 |
+
where the last inequality follows from a similar one-by-one replacement procedure as in eq. (23). Combining eq. (24) and eq. (25), we get for $R \geq 1$ ,
|
| 621 |
+
|
| 622 |
+
$$
|
| 623 |
+
\left\| \frac { \partial \mathcal { R } } { \partial W _ { 1 } } - \frac { \partial \mathcal { R } } { \partial V _ { 1 } } \right\| \leq \left( ( L - 1 ) R ^ { L - 2 } G + \beta L R ^ { 2 L - 2 } \right) \| W - V \| \leq 2 L R ^ { 2 L - 2 } ( \beta + G ) \| W - V \| .
|
| 624 |
+
$$
|
| 625 |
+
|
| 626 |
+
The same procedure can be done for other layers, and together
|
| 627 |
+
|
| 628 |
+
$$
|
| 629 |
+
\begin{array} { r } { \| \nabla \mathcal { R } ( W ) - \nabla \mathcal { R } ( V ) \| \le 2 L ^ { 2 } R ^ { 2 L - 2 } ( \beta + G ) \| W - V \| . } \end{array}
|
| 630 |
+
$$
|
| 631 |
+
|
| 632 |
+
Proof of Lemma $6$ Recall that if $W ( t ) , W ( t + 1 ) \in B ( R )$ and $\eta _ { t } = 1 / \beta ( R )$ ,
|
| 633 |
+
|
| 634 |
+
$$
|
| 635 |
+
\begin{array} { r l } & { \mathcal { R } \left( W ( t + 1 ) \right) - \mathcal { R } \left( W ( t ) \right) \leq \left. \nabla \mathcal { R } \left( W ( t ) \right) , - \eta _ { t } \nabla \mathcal { R } \left( W ( t ) \right) \right. + \frac { \beta ( R ) \eta _ { t } ^ { 2 } } { 2 } \left. \nabla \mathcal { R } \left( W ( t ) \right) \right. ^ { 2 } } \\ & { \quad \quad \quad = - \frac { 1 } { 2 \beta ( R ) } \left. \nabla \mathcal { R } \left( W ( t ) \right) \right. ^ { 2 } } \\ & { \quad \quad \quad = - \frac { \eta _ { t } } { 2 } \left. \nabla \mathcal { R } \left( W ( t ) \right) \right. ^ { 2 } . } \end{array}
|
| 636 |
+
$$
|
| 637 |
+
|
| 638 |
+
Suppose $W ( t ) \in B ( R )$ for all $t$ By Assumption 2 and eq. (26),
|
| 639 |
+
|
| 640 |
+
$$
|
| 641 |
+
\mathcal { R } \left( W ( 1 ) \right) \leq \mathcal { R } \left( W ( 0 ) \right) - \frac { 1 } { 2 \beta ( R ) } \Big \| \nabla \mathcal { R } \left( W ( 0 ) \right) \Big \| ^ { 2 } < \mathcal { R } \left( W ( 0 ) \right) .
|
| 642 |
+
$$
|
| 643 |
+
|
| 644 |
+
By eq.(26),gradient descent never increases the risk,and thus for all $t ~ \geq ~ 1$ , $\mathcal { R } \left( W ( t ) \right) \ \leq$ $\mathcal { R } \left( W ( 1 ) \right) \ < \ \mathcal { R } \left( W ( 0 ) \right)$ . In exactly the same way as in the proof of Lemma 1, one can show that there exists some constant $\epsilon ( R ) > 0$ ,so that $\Vert \partial \mathcal { R } / \partial W _ { 1 } ( t ) \Vert _ { F } \geq \epsilon ( R )$ for all $t$ Invoking eq. (26) again, we will get
|
| 645 |
+
|
| 646 |
+
$$
|
| 647 |
+
\mathcal { R } \left( W ( 0 ) \right) \geq \sum _ { t = 0 } ^ { \infty } \frac { 1 } { 2 \beta ( R ) } \epsilon ( R ) ^ { 2 } = \infty ,
|
| 648 |
+
$$
|
| 649 |
+
|
| 650 |
+
which is a contradiction. Therefore $W ( t )$ must go out of $B ( R )$ at some time.
|
| 651 |
+
|
| 652 |
+
Next we prove Theorem 3 and 4. The proofs depend on several lemmas which are similar to the gradient flow ones. The following Lemma 7 is similar to Lemma 1.
|
| 653 |
+
|
| 654 |
+
Lemma 7. Under Assumption 1,2, 4, and 5, gradient descent ensures that
|
| 655 |
+
|
| 656 |
+
· $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } ( t ) \| _ { F }$ is unbounded. · $\textstyle \sum _ { t = 0 } ^ { \infty } \eta _ { t } = \infty .$ · For any $R > 0$ $\sum _ { t : W ( t ) \in B ( R ) } \eta _ { t } < \infty .$
|
| 657 |
+
|
| 658 |
+
Proof. By Assumption5, wealways have that $W ( t ) \in B ( R _ { t } )$ . Since $\beta ( R _ { t } ) = 2 L ^ { 2 } R _ { t } ^ { 2 L - 2 } ( \beta + G ) \geq$ $R _ { t } ^ { L - 1 } G$ , we have for any $1 \le k \le L$ ,
|
| 659 |
+
|
| 660 |
+
$$
|
| 661 |
+
\begin{array} { r l } { \| W _ { k } ( t + 1 ) \| _ { F } \leq \| W _ { k } ( t ) \| _ { F } + \eta _ { t } \bigg \| \frac { \partial \mathcal { R } } { \partial W _ { k } ( t ) } \bigg \| _ { F } } & { } \\ { \leq \| W _ { k } ( t ) \| _ { F } + \frac { 1 } { \beta ( R _ { t } ) } \bigg \| \frac { \partial \mathcal { R } } { \partial W _ { k } ( t ) } \bigg \| _ { F } } & { } \\ { \leq \| W _ { k } ( t ) \| _ { F } + \frac { 1 } { \beta ( R _ { t } ) } R _ { t } ^ { L - 1 } G } & { } \\ { \leq \| W _ { k } ( t ) \| _ { F } + 1 . } \end{array}
|
| 662 |
+
$$
|
| 663 |
+
|
| 664 |
+
Moreover, Lemma 6 shows that $R _ { t } \to \infty$ . Since $R _ { t + 1 } = R _ { t }$ as long as $W ( t + 1 ) \in B ( R _ { t } - 1 )$ , $\operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } ( t ) \| _ { F }$ is unbounded.
|
| 665 |
+
|
| 666 |
+
It then follows that for any $t$ , by Cauchy-Schwarz,
|
| 667 |
+
|
| 668 |
+
$$
|
| 669 |
+
( \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ) ( \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } \Big \Vert \nabla \mathcal { R } ( W ( \tau ) ) \Big \Vert ^ { 2 } ) \geq ( \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } \Big \Vert \nabla \mathcal { R } ( W ( \tau ) ) \Big \Vert ) ^ { 2 } \infty .
|
| 670 |
+
$$
|
| 671 |
+
|
| 672 |
+
since by eq. (26),
|
| 673 |
+
|
| 674 |
+
$$
|
| 675 |
+
\sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } \Big \lVert \nabla \mathcal { R } \left( W ( \tau ) \right) \Big \rVert ^ { 2 } \leq 2 \mathcal { R } \left( W ( 0 ) \right) - 2 \mathcal { R } \left( W ( t ) \right) \leq 2 \mathcal { R } \left( W ( 0 ) \right) ,
|
| 676 |
+
$$
|
| 677 |
+
|
| 678 |
+
we have $\textstyle \sum _ { t = 0 } ^ { \infty } \eta _ { t } = \infty$
|
| 679 |
+
|
| 680 |
+
Since under Assumptions 4 and 5 gradient descent never increases the risk,it can be shown in exactly the same as in the proof of Lemma 1 that, for $W ( t ) \in B ( R )$ , $\Vert \partial \mathcal { R } / \partial W _ { 1 } ( t ) \Vert _ { F } \geq \epsilon ( R )$ for some constant $\epsilon ( R ) > 0$ . Invoking eq. (26)again,we get that $\sum _ { t : W ( t ) \in B ( R ) } \eta _ { t } < \infty$ , □
|
| 681 |
+
|
| 682 |
+
The next lemma is an analogy to Lemma 2.
|
| 683 |
+
|
| 684 |
+
Lemma 8. Under Assumption l and 4, the gradient descent iterates satisfy the following properties:
|
| 685 |
+
|
| 686 |
+
$$
|
| 687 |
+
\begin{array} { r } { \bullet \bullet \ s u p p o s e \ \operatorname* { m a x } _ { 1 \leq k \leq L } \| W _ { k } \| _ { F } \infty , t h e n \Big | \Big \langle w _ { \mathrm { p r o d } } \big / \prod _ { k = 1 } ^ { L } \| W _ { k } \| _ { F } , v _ { 1 } \Big \rangle \Big | 1 . } \end{array}
|
| 688 |
+
$$
|
| 689 |
+
|
| 690 |
+
Proof. Recall that for any $W$ ,
|
| 691 |
+
|
| 692 |
+
$$
|
| 693 |
+
\boldsymbol { W } _ { k + 1 } ^ { \top } \frac { \partial \boldsymbol { \mathcal { R } } } { \partial \boldsymbol { W } _ { k + 1 } } = \boldsymbol { W } _ { k + 1 } ^ { \top } \cdot \cdot \cdot \boldsymbol { W } _ { L } ^ { \top } \nabla \boldsymbol { \mathcal { R } } ( \boldsymbol { w } _ { \mathrm { p r o d } } ) ^ { \top } \boldsymbol { W } _ { 1 } ^ { \top } \cdot \cdot \cdot \boldsymbol { W } _ { k } ^ { \top } = \frac { \partial \boldsymbol { \mathcal { R } } } { \partial \boldsymbol { W } _ { k } } \boldsymbol { W } _ { k } ^ { \top } .
|
| 694 |
+
$$
|
| 695 |
+
|
| 696 |
+
For gradient descent iterates, summing eq. (28) from O to $t - 1$ , we get
|
| 697 |
+
|
| 698 |
+
$$
|
| 699 |
+
\begin{array} { r l } & { W _ { k + 1 } ^ { \top } ( t ) W _ { k + 1 } ( t ) - W _ { k + 1 } ^ { \top } ( 0 ) W _ { k + 1 } ( 0 ) + \displaystyle \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \left( \frac { \partial \mathcal { R } } { \partial W _ { k + 1 } ( \tau ) } \right) ^ { \top } \left( \frac { \partial \mathcal { R } } { \partial W _ { k + 1 } ( \tau ) } \right) } \\ { = } & { W _ { k } ( t ) W _ { k } ^ { \top } ( t ) - W _ { k } ( 0 ) W _ { k } ^ { \top } ( 0 ) + \displaystyle \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) ^ { \top } . } \end{array}
|
| 700 |
+
$$
|
| 701 |
+
|
| 702 |
+
For any $1 \le k \le L$ and any $t$ let
|
| 703 |
+
|
| 704 |
+
$$
|
| 705 |
+
P _ { k } ( t ) = \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) ^ { \top } ,
|
| 706 |
+
$$
|
| 707 |
+
|
| 708 |
+
and
|
| 709 |
+
|
| 710 |
+
$$
|
| 711 |
+
Q _ { k } ( t ) = \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) ^ { \top } \left( \frac { \partial \mathcal { R } } { \partial W _ { k } ( \tau ) } \right) .
|
| 712 |
+
$$
|
| 713 |
+
|
| 714 |
+
We have $\| P _ { k } ( t ) \| _ { 2 } = \| Q _ { k } ( t ) \| _ { 2 } \leq \operatorname { t r } \big ( Q _ { k } ( t ) \big ) = \operatorname { t r } \big ( P _ { k } ( t ) \big )$ . Moreover, invoking eq. (26),
|
| 715 |
+
|
| 716 |
+
$$
|
| 717 |
+
\begin{array} { r l r } { { \sum _ { k = 1 } ^ { L } \operatorname { t r } ( P _ { k } ( t ) ) = \sum _ { k = 1 } ^ { L } \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \bigg \Vert \frac { \partial R } { \partial W _ { k } ( \tau ) } \bigg \Vert _ { F } ^ { 2 } } } \\ & { } & { = \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } ^ { 2 } \Big \Vert \nabla \cdot ( W ( \tau ) ) \Big \Vert ^ { 2 } } \\ & { } & { \leq \sum _ { \tau = 0 } ^ { t - 1 } \eta _ { \tau } \Big \Vert \nabla \cdot ( W ( \tau ) ) \Big \Vert ^ { 2 } } \\ & { } & { \leq 2 \mathcal { R } ( W ( 0 ) ) - 2 \mathcal { R } ( W ( t ) ) } \\ & { } & { \leq 2 \mathcal { R } ( W ( 0 ) ) . } \end{array}
|
| 718 |
+
$$
|
| 719 |
+
|
| 720 |
+
Still let $\sigma _ { k } ( t ) , u _ { k } ( t )$ and $v _ { k } ( t )$ denote the first singular value,left singular vector and right singular vector of $W _ { k } ( t )$ . We can then proceed basically in the same way as in the proof of Lemma 2. For example,eq.(6) becomes
|
| 721 |
+
|
| 722 |
+
$$
|
| 723 |
+
\sigma _ { k } ^ { 2 } ( t ) \geq \sigma _ { k + 1 } ^ { 2 } ( t ) - \| A _ { k , k + 1 } ( t ) \| _ { 2 } - \| P _ { k } ( t ) \| _ { 2 } \geq \sigma _ { k + 1 } ^ { 2 } ( t ) - \| A _ { k , k + 1 } ( t ) \| _ { 2 } - \operatorname { t r } \left( P _ { k } ( t ) \right) ,
|
| 724 |
+
$$
|
| 725 |
+
|
| 726 |
+
while eq. (7) becomes
|
| 727 |
+
|
| 728 |
+
$$
|
| 729 |
+
\begin{array} { r } { \| W _ { k } ( t ) \| _ { F } ^ { 2 } = \| W _ { k + 1 } ( t ) \| _ { F } ^ { 2 } + \| W _ { k } ( 0 ) \| _ { F } ^ { 2 } - \| W _ { k + 1 } ( 0 ) \| _ { F } ^ { 2 } - \operatorname { t r } \big ( P _ { k } ( t ) \big ) + \operatorname { t r } \big ( Q _ { k + 1 } ( t ) \big ) . } \end{array}
|
| 730 |
+
$$
|
| 731 |
+
|
| 732 |
+
Summing eq. (31) and eq. (32) from $k$ t0 $L - 1$ , and invoke eq. (30), we get
|
| 733 |
+
|
| 734 |
+
$$
|
| 735 |
+
\| W _ { k } ( t ) \| _ { F } ^ { 2 } - \| W _ { k } ( t ) \| _ { 2 } ^ { 2 } \leq D - \operatorname { t r } \left( P _ { k } ( t ) \right) + \operatorname { t r } \left( Q _ { L } ( t ) \right) + \sum _ { k ^ { \prime } = k } ^ { L - 1 } \operatorname { t r } \left( P _ { k ^ { \prime } } ( t ) \right) \leq D + 2 \mathcal { R } \left( W ( 0 ) \right) .
|
| 736 |
+
$$
|
| 737 |
+
|
| 738 |
+
To prove singular vectors get aligned, we can stillproceed in nearly the same way as in the proof of Lemma 2.eq. (9) becomes
|
| 739 |
+
|
| 740 |
+
$$
|
| 741 |
+
u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } u _ { k } \geq \sigma _ { k } ^ { 2 } - \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } - \| Q _ { k + 1 } ( t ) \| _ { 2 } ,
|
| 742 |
+
$$
|
| 743 |
+
|
| 744 |
+
while eq. (10) becomes
|
| 745 |
+
|
| 746 |
+
$$
|
| 747 |
+
u _ { k } ^ { \top } W _ { k + 1 } ^ { \top } W _ { k + 1 } u _ { k } \leq \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + D + 2 \mathcal { R } \left( W ( 0 ) \right) .
|
| 748 |
+
$$
|
| 749 |
+
|
| 750 |
+
Combining eq. (33) and eq. (34)
|
| 751 |
+
|
| 752 |
+
$$
|
| 753 |
+
\sigma _ { k } ^ { 2 } \leq \langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \sigma _ { k + 1 } ^ { 2 } + D + 2 \mathcal { R } \left( W ( 0 ) \right) + \| Q _ { k + 1 } ( t ) \| _ { 2 } + \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } .
|
| 754 |
+
$$
|
| 755 |
+
|
| 756 |
+
Similar to eq. (33), we can get
|
| 757 |
+
|
| 758 |
+
$$
|
| 759 |
+
\sigma _ { k } ^ { 2 } \geq v _ { k + 1 } ^ { \top } W _ { k } W _ { k } ^ { \top } v _ { k + 1 } \geq \sigma _ { k + 1 } ^ { 2 } - \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } - \| P _ { k } ( t ) \| _ { 2 } ,
|
| 760 |
+
$$
|
| 761 |
+
|
| 762 |
+
and thus eq.(12) becomes
|
| 763 |
+
|
| 764 |
+
$$
|
| 765 |
+
\frac { \sigma _ { k } ^ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } \geq 1 - \frac { \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } + \| P _ { k } ( t ) \| _ { 2 } } { \sigma _ { k + 1 } ^ { 2 } } .
|
| 766 |
+
$$
|
| 767 |
+
|
| 768 |
+
Combining eq. (35) and eq. (36), we get
|
| 769 |
+
|
| 770 |
+
$$
|
| 771 |
+
\langle u _ { k } , v _ { k + 1 } \rangle ^ { 2 } \geq 1 - \frac { D + \| W _ { k } ( 0 ) \| _ { 2 } ^ { 2 } + \| W _ { k + 1 } ( 0 ) \| _ { 2 } ^ { 2 } + 3 \mathcal { R } \left( W ( 0 ) \right) } { \sigma _ { k + 1 } ^ { 2 } } .
|
| 772 |
+
$$
|
| 773 |
+
|
| 774 |
+
The final claim of Lemma 8 can be proved in exactly the same way as Lemma 2.
|
| 775 |
+
|
| 776 |
+
Proof of Theorem 3. Summing eq. (32), we know that for any two different layers $j > k$ ,
|
| 777 |
+
|
| 778 |
+
$$
|
| 779 |
+
\begin{array} { r } { \| W _ { k } ( t ) \| _ { F } ^ { 2 } - \| W _ { j } ( t ) \| _ { F } ^ { 2 } = \| W _ { k } ( 0 ) \| _ { F } ^ { 2 } - \| W _ { j } ( 0 ) \| _ { F } ^ { 2 } - \operatorname { t r } \big ( P _ { k } ( t ) \big ) + \operatorname { t r } \big ( Q _ { j } ( t ) \big ) . } \end{array}
|
| 780 |
+
$$
|
| 781 |
+
|
| 782 |
+
Recall eq. (30), we know that
|
| 783 |
+
|
| 784 |
+
$$
|
| 785 |
+
\left| \left( \| W _ { k } ( t ) \| _ { F } ^ { 2 } - \| W _ { j } ( t ) \| _ { F } ^ { 2 } \right) - \left( \| W _ { k } ( 0 ) \| _ { F } ^ { 2 } - \| W _ { j } ( 0 ) \| _ { F } ^ { 2 } \right) \right| \le 2 \mathcal { R } \left( W ( 0 ) \right) .
|
| 786 |
+
$$
|
| 787 |
+
|
| 788 |
+
In other words,the difference between the squares of Frobenius norms of any two layers is still bounded.
|
| 789 |
+
|
| 790 |
+
The proof then goes in the same way as the proof of Theorem 1. Suppose the risk is always above $\epsilon > 0$ . Then there exists some $c ( \epsilon ) > 0$ such that $\| \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) \| \ge c ( \epsilon )$ . By Lemma 8, there exists some $C$ such that if $\mathrm { m i n } _ { 1 \leq k \leq L } \| W _ { k } ( t ) \| _ { F } > C$ , $\| W _ { L } ( t ) \cdot \cdot \cdot W _ { 2 } ( t ) \| \ge C ^ { L } / 2$ By eq. (37) and Lemma 7, $\sum _ { t : \| W _ { k } ( t ) \| _ { F } \leq C }$ for some $ { k } ^ { \eta _ { t } }$ isfinite.Ontheoternd,y7 $\textstyle \sum _ { i = 0 } ^ { \infty } \eta _ { t } = \infty$ ,and thus $\sum _ { t : \| W _ { k } ( t ) \| _ { F } > C }$ for all $_ k \eta _ { t } = \infty$ Therefore wehave,byinvokingeq.(26),
|
| 791 |
+
|
| 792 |
+
$$
|
| 793 |
+
\begin{array} { r l r } { { 2 \mathcal { R } ( W ( 0 ) ) \geq \sum _ { t = 0 } ^ { \infty } \eta _ { t } \Big \Vert \mathcal { R } ( W ( t ) ) \Big \Vert ^ { 2 } } } \\ & { } & { \geq \displaystyle \sum _ { t = 0 } ^ { \infty } \eta _ { t } \bigg \Vert \frac { \partial \mathcal { R } } { \partial W _ { 1 } ( t ) } \bigg \Vert ^ { 2 } } \\ & { } & { \geq c ( \epsilon ) \frac { C ^ { L } } { 2 } \sum _ { t : \| W _ { k } ( t ) \| _ { F } > C \mathrm { f o r a l l } \ k } \eta _ { t } } \\ & { } & { = \infty , } \end{array}
|
| 794 |
+
$$
|
| 795 |
+
|
| 796 |
+
which is a contradiction. Therefore $\mathcal { R } ( W ( t ) ) 0$ ,and since it has no finite optimum, $\Vert W _ { k } \Vert _ { F } $ $\infty$ . The other results follow from Lemma 7. □
|
| 797 |
+
|
| 798 |
+
Proof of Theorem 4. Recall that
|
| 799 |
+
|
| 800 |
+
$$
|
| 801 |
+
\frac { \partial \mathcal { R } } { \partial W _ { 1 } } = W _ { 2 } ^ { \top } \cdot \cdot \cdot W _ { L } ^ { \top } \nabla \mathcal { R } ( w _ { \mathrm { p r o d } } ) ,
|
| 802 |
+
$$
|
| 803 |
+
|
| 804 |
+
and thus
|
| 805 |
+
|
| 806 |
+
$$
|
| 807 |
+
\begin{array} { l } { \displaystyle \| W _ { 1 } ( t + 1 ) \| _ { F } ^ { 2 } = \| W _ { 1 } ( t ) \| _ { F } ^ { 2 } - 2 \eta _ { t } \left. W _ { 1 } ( t ) , \frac { \partial { \mathcal R } } { \partial W _ { 1 } ( t ) } \right. + \eta _ { t } ^ { 2 } \bigg \| \frac { \partial { \mathcal R } } { \partial W _ { 1 } ( t ) } \bigg \| _ { F } ^ { 2 } } \\ { = \| W _ { 1 } ( t ) \| _ { F } ^ { 2 } - 2 \eta _ { t } \left. w _ { \mathrm { p r o d } } ( t ) , \nabla { \mathcal R } \left( w _ { \mathrm { p r o d } } ( t ) \right) \right. + \eta _ { t } ^ { 2 } \bigg \| \frac { \partial { \mathcal R } } { \partial W _ { 1 } ( t ) } \bigg \| _ { F } ^ { 2 } . } \end{array}
|
| 808 |
+
$$
|
| 809 |
+
|
| 810 |
+
If $\langle w _ { \mathrm { p r o d } } , z _ { i } \rangle \geq 0$ for all $i$ ,then $\| W _ { 1 } ( t + 1 ) \| _ { F } \geq \| W _ { 1 } ( t ) \| _ { F }$
|
| 811 |
+
|
| 812 |
+
Also recall that $\Pi _ { \perp } W _ { 1 } ( t )$ denote the projection of rows of $W _ { 1 } ( t )$ onto $\bar { u } ^ { \perp }$ , the orthogonal complement of $\mathrm { s p a n } ( \bar { u } )$ . We have
|
| 813 |
+
|
| 814 |
+
$$
|
| 815 |
+
\begin{array} { r l } & { \| \Pi _ { \bot } W _ { 1 } ( t + 1 ) \| _ { F } ^ { 2 } \leq \| \Pi _ { \bot } W _ { 1 } ( t ) \| _ { F } ^ { 2 } - 2 \eta _ { t } \left. \Pi _ { \bot } W _ { 1 } ( t ) , \frac { \partial { \mathcal { R } } } { \partial W _ { 1 } ( t ) } \right. + \eta _ { t } ^ { 2 } \bigg \| \frac { \partial { \mathcal { R } } } { \partial W _ { 1 } ( t ) } \bigg \| _ { F } ^ { 2 } } \\ & { \qquad = \| \Pi _ { \bot } W _ { 1 } ( t ) \| _ { F } ^ { 2 } - 2 \eta _ { t } \left. \Pi _ { \bot } w _ { \mathrm { p r o d } } ( t ) , \nabla { \mathcal { R } } \left( w _ { \mathrm { p r o d } } ( t ) \right) \right. + \eta _ { t } ^ { 2 } \bigg \| \frac { \partial { \mathcal { R } } } { \partial W _ { 1 } ( t ) } \bigg \| _ { F } ^ { 2 } . } \end{array}
|
| 816 |
+
$$
|
| 817 |
+
|
| 818 |
+
Invoking eq. (26) again gives
|
| 819 |
+
|
| 820 |
+
$$
|
| 821 |
+
\eta _ { t } ^ { 2 } \left. \frac { \partial \mathcal { R } } { \partial W _ { 1 } ( t ) } \right. _ { F } ^ { 2 } \le \eta _ { t } \left. \nabla \mathcal { R } \left( W ( t ) \right) \right. ^ { 2 } \le 2 \left( \mathcal { R } \left( W ( t ) \right) - \mathcal { R } \left( W ( t + 1 ) \right) \right) .
|
| 822 |
+
$$
|
| 823 |
+
|
| 824 |
+
The proof then goes in almost the same way as the proof of Theorem 2. For any $\epsilon > 0$ , we can find some large enough time $t _ { 0 }$ ,such that for any $t \geq t _ { 0 }$ ,
|
| 825 |
+
|
| 826 |
+
1 $\| \Pi _ { \bot } W _ { 1 } ( t ) \| _ { F } / \| W _ { 1 } ( t ) \| F \geq \epsilon$ implies hat $\left. \Pi _ { \perp } w _ { \mathrm { p r o d } } ( t ) , \nabla \mathcal { R } \left( w _ { \mathrm { p r o d } } ( t ) \right) \right. \geq 0 .$
|
| 827 |
+
|
| 828 |
+
2. $\langle w _ { \mathrm { p r o d } } ( t ) , z _ { i } \rangle \geq 0$ for all $i$ , and thus $\| W _ { 1 } ( t + 1 ) \| _ { F } \geq \| W _ { 1 } ( t ) \| _ { F }$
|
| 829 |
+
|
| 830 |
+
3. $\| W _ { 1 } ( t ) \| _ { F } \ge 1 + \sqrt { 2 \mathcal { R } ( W ( 0 ) ) } \big / \epsilon .$
|
| 831 |
+
|
| 832 |
+
Suppose at some time $t _ { 1 } ~ \geq ~ t _ { 0 }$ , $\| \Pi _ { \perp } W _ { 1 } ( t _ { 1 } ) \| _ { F } / \| W _ { 1 } ( t _ { 1 } ) \| _ { F } ~ \ge ~ \epsilon \qquad $ ,As long as this still holds,in light of bullet (1) above, eq. (38)and eq. (39), $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F } ^ { 2 }$ will increase by at most $2 \mathcal { R } \left( W ( t _ { 1 } ) \right) \leq$ $2 \mathcal { R } \left( W ( 0 ) \right)$ .On the other hand, $\| W _ { 1 } \| _ { F } \to \infty$ ,and thus there exists some $t _ { 2 } ~ > ~ t _ { 1 }$ such that $\| \Pi _ { \perp } \mathbf { \dot { \boldsymbol { W } } } _ { 1 } ( t _ { 2 } ) \| _ { F } / \| \boldsymbol { W } _ { 1 } ( t _ { 2 } ) \| F < \epsilon$
|
| 833 |
+
|
| 834 |
+
Let $t _ { 3 }$ denote the smallest time after $t _ { 2 }$ such that $\| \Pi _ { \perp } W _ { 1 } ( t _ { 3 } ) \| _ { F } / \| W _ { 1 } ( t _ { 3 } ) \| _ { F } \ge \epsilon$ (if it exists). Recall that $\| W _ { 1 } ( t + 1 ) \| _ { F } \leq \| W _ { 1 } ( t ) \| _ { F } + 1$ for any $t \geq 0$ ,and $\| W _ { 1 } ( t + 1 ) \| _ { F } \geq \| W _ { 1 } ( t ) \| _ { F }$ for any $t \geq t _ { 0 }$ , we have
|
| 835 |
+
|
| 836 |
+
$$
|
| 837 |
+
\frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 3 } ) \| _ { F } } { \| W _ { 1 } ( t _ { 3 } ) \| _ { F } } \leq \frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 3 } ) \| _ { F } } { \| W _ { 1 } ( t _ { 3 } - 1 ) \| _ { F } } \leq \frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 3 } - 1 ) \| _ { F } + 1 } { \| W _ { 1 } ( t _ { 3 } - 1 ) \| _ { F } } < \epsilon + \frac { 1 } { \| W _ { 1 } ( t _ { 3 } - 1 ) \| _ { F } } .
|
| 838 |
+
$$
|
| 839 |
+
|
| 840 |
+
After $t _ { 3 }$ , $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F } ^ { 2 }$ will increase by at most $2 \mathcal { R } \left( W ( 0 ) \right)$ , and thus $\Vert \Pi _ { \perp } W _ { 1 } \Vert _ { F }$ will increase by at most $\sqrt { 2 \mathcal { R } \left( W ( 0 ) \right) }$ . Therefore, for any $t _ { 4 } \geq t _ { 3 }$ , as long as $\| \Pi _ { \bot } W _ { 1 } ( t _ { 4 } ) \| _ { F } / \| W _ { 1 } ( t _ { 4 } ) \| _ { F } \ge \epsilon$ we have
|
| 841 |
+
|
| 842 |
+
$$
|
| 843 |
+
\begin{array} { r l } { \displaystyle \frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 4 } ) \| _ { F } } { \| W _ { 1 } ( t _ { 4 } ) \| _ { F } } \leq \frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 4 } ) \| _ { F } } { \| W _ { 1 } ( t _ { 3 } ) \| _ { F } } } & { } \\ & { \leq \frac { \| \Pi _ { \bot } W _ { 1 } ( t _ { 3 } ) \| _ { F } + \sqrt { 2 \mathcal { R } \left( W ( 0 ) \right) } } { \| W _ { 1 } ( t _ { 3 } ) \| _ { F } } } \\ & { \leq \epsilon + \frac { 1 } { \| W _ { 1 } ( t _ { 3 } - 1 ) \| _ { F } } + \frac { \sqrt { 2 \mathcal { R } \left( W ( 0 ) \right) } } { \| W _ { 1 } ( t _ { 3 } ) \| _ { F } } \leq 2 \epsilon , } \end{array}
|
| 844 |
+
$$
|
| 845 |
+
|
| 846 |
+
since $\| W _ { 1 } ( t ) \| _ { F } \ge 1 + \sqrt { 2 \mathcal { R } ( W ( 0 ) ) } \big / \epsilon$ after $t _ { 0 }$ . In other words,
|
| 847 |
+
|
| 848 |
+
$$
|
| 849 |
+
\operatorname* { l i m } _ { t \to \infty } { \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \| W _ { 1 } \| _ { F } } } \leq 2 \epsilon .
|
| 850 |
+
$$
|
| 851 |
+
|
| 852 |
+
Since $\epsilon$ is arbitrary, we have
|
| 853 |
+
|
| 854 |
+
$$
|
| 855 |
+
\operatorname* { l i m } _ { t \to \infty } { \frac { \| \Pi _ { \bot } W _ { 1 } \| _ { F } } { \| W _ { 1 } \| _ { F } } } = 0 ,
|
| 856 |
+
$$
|
| 857 |
+
|
| 858 |
+
and thus $\begin{array} { r } { \operatorname* { l i m } _ { t \infty } | \langle v _ { 1 } , \bar { u } \rangle | = 1 } \end{array}$
|
| 859 |
+
|
| 860 |
+
Proof of Corollary 2. The proof is analogous to that of Corollary 1, except using Theorem 4 in place of Theorem 2. □
|
parse/train/HJflg30qKX/HJflg30qKX_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJflg30qKX/HJflg30qKX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJflg30qKX/HJflg30qKX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgEMpVFwB/HJgEMpVFwB.md
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ADVERSARIAL POLICIES: ATTACKING DEEP REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Adam Gleave1 Michael Dennis Cody Wild Neel Kant Sergey Levine Stuart Russell University of California, Berkeley
|
| 4 |
+
|
| 5 |
+
ABSTRACT
|
| 6 |
+
|
| 7 |
+
Deep reinforcement learning (RL) policies are known to be vulnerable to adversarial perturbations to their observations, similar to adversarial examples for classifiers. However, an attacker is not usually able to directly modify another agent’s observations. This might lead one to wonder: is it possible to attack an RL agent simply by choosing an adversarial policy acting in a multi-agent environment so as to create natural observations that are adversarial? We demonstrate the existence of adversarial policies in zero-sum games between simulated humanoid robots with proprioceptive observations, against state-of-the-art victims trained via self-play to be robust to opponents. The adversarial policies reliably win against the victims but generate seemingly random and uncoordinated behavior. We find that these policies are more successful in high-dimensional environments, and induce substantially different activations in the victim policy network than when the victim plays against a normal opponent. Fine-tuning protects a victim against a specific adversary, but the attack method can be successfully reapplied to find a new adversarial policy. Videos are available at https://adversarialpolicies.github.io/.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The discovery of adversarial examples for image classifiers prompted a new field of research into adversarial attacks and defenses (Szegedy et al., 2014). Recent work has shown that deep RL policies are also vulnerable to adversarial perturbations of image observations (Huang et al., 2017; Kos and Song, 2017). However, real-world RL agents inhabit natural environments populated by other agents, including humans, who can only modify another agent’s observations via their actions. We explore whether it’s possible to attack a victim policy by building an adversarial policy that takes actions in a shared environment, inducing natural observations which have adversarial effects on the victim.
|
| 12 |
+
|
| 13 |
+
RL has been applied in settings as varied as autonomous driving (Dosovitskiy et al., 2017), negotiation (Lewis et al., 2017) and automated trading (Noonan, 2017). In domains such as these, an attacker cannot usually directly modify the victim policy’s input. For example, in autonomous driving pedestrians and other drivers can take actions in the world that affect the camera image, but only in a physically realistic fashion. They cannot add noise to arbitrary pixels, or make a building disappear. Similarly, in financial trading an attacker can send orders to an exchange which will appear in the victim’s market data feed, but the attacker cannot modify observations of a third party’s orders.
|
| 14 |
+
|
| 15 |
+
As a proof of concept, we show the existence of adversarial policies in zero-sum simulated robotics games with proprioceptive observations (Bansal et al., 2018a). The state-of-the-art victim policies were trained via self-play to be robust to opponents. We train each adversarial policy using model-free RL against a fixed black-box victim. We find the adversarial policies reliably beat their victim, despite training for less than $3 \%$ of the timesteps initially used to train the victim policies.
|
| 16 |
+
|
| 17 |
+
Critically, we find the adversaries win by creating natural observations that are adversarial, and not by becoming generally strong opponents. Qualitatively, the adversaries fall to the ground in contorted positions, as illustrated in Figure 1, rather than learning to run, kick or block like normal opponents. This strategy does not work when the victim is ‘masked’ and cannot see the adversary’s position, suggesting that the adversary succeeds by manipulating a victim’s observations through its actions.
|
| 18 |
+
|
| 19 |
+
Having observed these results, we wanted to understand the sensitivity of the attack to the dimensionality of the victim’s observations. We find that victim policies in higher-dimensional Humanoid environments are substantially more vulnerable to adversarial policies than in lower-dimensional Ant environments. To gain insight into why adversarial policies succeed, we analyze the activations of the victim’s policy network using a Gaussian Mixture Model and t-SNE (Maaten and Hinton, 2008). We find adversarial policies induce significantly different activations than normal opponents, and that the adversarial activations are typically more widely dispersed between timesteps than normal activations.
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Illustrative snapshots of a victim (in blue) against normal and adversarial opponents (in red). The victim wins if it crosses the finish line; otherwise, the opponent wins. Despite never standing up, the adversarial opponent wins $86 \%$ of episodes, far above the normal opponent’s $47 \%$ win rate.
|
| 23 |
+
|
| 24 |
+
A natural defense is to fine-tune the victim against the adversary. We find this protects against that particular adversary, but that repeating the attack method finds a new adversary the fine-tuned victim is vulnerable to. However, this new adversary differs qualitatively by physically interfering with the victim. This suggests repeated fine-tuning might provide protection against a range of adversaries.
|
| 25 |
+
|
| 26 |
+
Our paper makes three contributions. First, we propose a novel, physically realistic threat model for adversarial examples in RL. Second, we demonstrate the existence of adversarial policies in this threat model for several simulated robotics games. Our adversarial policies reliably beat the victim, despite training with less than $3 \%$ as many timesteps and generating seemingly random behavior. Third, we conduct a detailed analysis of why the adversarial policies work. We show they create natural observations that are adversarial to the victim and push the activations of the victim’s policy network off-distribution. Additionally, we find policies are easier to attack in high-dimensional environments.
|
| 27 |
+
|
| 28 |
+
As deep RL is increasingly deployed in environments with potential adversaries, we believe it is important that practitioners are aware of this previously unrecognized threat model. Moreover, even in benign settings, we believe adversarial policies can be a useful tool for uncovering unexpected policy failure modes. Finally, we are excited by the potential of adversarial training using adversarial policies, which could improve robustness relative to conventional self-play by training against adversaries that exploit weaknesses undiscovered by the distribution of similar opponents present during self-play.
|
| 29 |
+
|
| 30 |
+
# 2 RELATED WORK
|
| 31 |
+
|
| 32 |
+
Most study of adversarial examples has focused on small $\ell _ { p }$ norm perturbations to images, which Szegedy et al. (2014) discovered cause a variety of models to confidently misclassify the image, even though the changes are visually imperceptible to a human. Gilmer et al. (2018a) argued that attackers are not limited to small perturbations, and can instead construct new images or search for naturally misclassified images. Similarly, Uesato et al. (2018) argue that the near-ubiquitous $\ell _ { p }$ model is merely a convenient local approximation for the true worst-case risk. We follow Goodfellow et al. (2017) in viewing adversarial examples more broadly, as “inputs to machine learning models that an attacker has intentionally designed to cause the model to make a mistake.”
|
| 33 |
+
|
| 34 |
+
The little prior work studying adversarial examples in RL has assumed an $\ell _ { p }$ -norm threat model. Huang et al. (2017) and Kos and Song (2017) showed that deep RL policies are vulnerable to small perturbations in image observations. Recent work by Lin et al. (2017) generates a sequence of perturbations guiding the victim to a target state. Our work differs from these previous approaches by using a physically realistic threat model that disallows direct modification of the victim’s observations.
|
| 35 |
+
|
| 36 |
+
Lanctot et al. (2017) showed agents may become tightly coupled to the agents they were trained with. Like adversarial policies, this results in seemingly strong polices failing against new opponents. However, the victims we attack win against a range of opponents, and so are not coupled in this way.
|
| 37 |
+
|
| 38 |
+
Adversarial training is a common defense to adversarial examples, achieving state-of-the-art robustness in image classification (Xie et al., 2019). Prior work has also applied adversarial training to improve the robustness of deep RL policies, where the adversary exerts a force vector on the victim or varies dynamics parameters such as friction (Pinto et al., 2017; Mandlekar et al., 2017; Pattanaik et al., 2018). Our defense of fine-tuning the victim against the adversary is inspired by this work.
|
| 39 |
+
|
| 40 |
+
This work follows a rich tradition of worst-case analysis in RL. In robust MDPs, the transition function is chosen adversarially from an uncertainty set (Bagnell et al., 2001; Tamar et al., 2014). Doyle et al. (1996) solve the converse problem: finding the set of transition functions for which a policy is optimal. Methods also exist to verify controllers or find a counterexample to a specification. Bastani et al. (2018) verify decision trees distilled from RL policies, while Ghosh et al. (2018) test black-box closedloop simulations. Ravanbakhsh et al (2016) can even synthesize controllers robust to adversarial disturbances. Unfortunately, these techniques are only practical in simple environments with lowdimensional adversarial disturbances. By contrast, while our method lacks formal guarantees, it can test policies in complex multi-agent tasks and naturally scales with improvements in RL algorithms.
|
| 41 |
+
|
| 42 |
+
# 3 FRAMEWORK
|
| 43 |
+
|
| 44 |
+
We model the victim as playing against an opponent in a two-player Markov game (Shapley, 1953). Our threat model assumes the attacker can control the opponent, in which case we call the opponent an adversary. We denote the adversary and victim by subscript $\alpha$ and $\nu$ respectively. The game $M = ( S , ( \bar { A } _ { \alpha } , A _ { \nu } ) , T , ( R _ { \alpha } , R _ { \nu } ) )$ consists of state set $S$ , action sets $A _ { \alpha }$ and $A _ { \nu }$ , and a joint state transition function $T : S \times A _ { \alpha } \times A _ { \nu } \to \Delta ( S )$ where $\Delta \left( S \right)$ is a probability distribution on $S$ . The reward function $R _ { i } : S \times A _ { \alpha } \times A _ { \nu } \times S \to \mathbb { R }$ for player $i \in \{ \alpha , \nu \}$ depends on the current state, next state and both player’s actions. Each player wishes to maximize their (discounted) sum of rewards.
|
| 45 |
+
|
| 46 |
+
The adversary is allowed unlimited black-box access to actions sampled from $\pi _ { v }$ , but is not given any white-box information such as weights or activations. We further assume the victim agent follows a fixed stochastic policy $\pi _ { v }$ , corresponding to the common case of a pre-trained model deployed with static weights. Note that in safety critical systems, where attacks like these would be most concerning, it is standard practice to validate a model and then freeze it, so as to ensure that the deployed model does not develop any new issues due to retraining. Therefore, a fixed victim is a realistic reflection of what we might see with RL-trained policies in real-world settings, such as with autonomous vehicles.
|
| 47 |
+
|
| 48 |
+
Since the victim policy $\pi _ { \nu }$ is held fixed, the two-player Markov game $M$ reduces to a single-player MDP $M _ { \alpha } = ( S , A _ { \alpha } , T _ { \alpha } , R _ { \alpha } ^ { \prime } )$ that the attacker must solve. The state and action space of the adversary are the same as in $M$ , while the transition and reward function have the victim policy $\pi _ { \nu }$ embedded:
|
| 49 |
+
|
| 50 |
+
$$
|
| 51 |
+
T _ { \alpha } \left( s , a _ { \alpha } \right) = T \left( s , a _ { \alpha } , a _ { \nu } \right) \qquad \mathrm { a n d } \qquad R _ { \alpha } ^ { \prime } ( s , a _ { \alpha } , s ^ { \prime } ) = R _ { \alpha } ( s , a _ { \alpha } , a _ { \nu } , s ^ { \prime } ) ,
|
| 52 |
+
$$
|
| 53 |
+
|
| 54 |
+
where the victim’s action is sampled from the stochastic policy $a _ { \nu } \sim \pi _ { \nu } ( \cdot \mid s )$ . The goal of the attacker is to find an adversarial policy $\pi _ { \alpha }$ maximizing the sum of discounted rewards:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
\sum _ { t = 0 } ^ { \infty } \gamma ^ { t } R _ { \alpha } \big ( s ^ { ( t ) } , a _ { \alpha } ^ { ( t ) } , s ^ { ( t + 1 ) } \big ) , \quad \mathrm { w h e r e ~ } s ^ { ( t + 1 ) } \sim T _ { \alpha } \big ( s ^ { ( t ) } , a _ { \alpha } ^ { ( t ) } \big ) \mathrm { ~ a n d ~ } a _ { \alpha } \sim \pi _ { \alpha } \big ( \cdot \big \vert s ^ { ( t ) } \big ) .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
Note the MDP’s dynamics $T _ { \alpha }$ will be unknown even if the Markov game’s dynamics $T$ are known since the victim policy $\pi _ { \nu }$ is a black-box. Consequently, the attacker must solve an RL problem.
|
| 61 |
+
|
| 62 |
+
# 4 FINDING ADVERSARIAL POLICIES
|
| 63 |
+
|
| 64 |
+
We demonstrate the existence of adversarial policies in zero-sum simulated robotics games. First, we describe how the victim policies were trained and the environments they operate in. Subsequently, we provide details of our attack method in these environments, and describe several baselines. Finally, we present a quantitative and qualitative evaluation of the adversarial policies and baseline opponents.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: Illustrations of the zero-sum simulated robotics games from Bansal et al. (2018a) we use for evaluation. Environments are further described in Section 4.1.
|
| 68 |
+
|
| 69 |
+
# 4.1 ENVIRONMENTS AND VICTIM POLICIES
|
| 70 |
+
|
| 71 |
+
We attack victim policies for the zero-sum simulated robotics games created by Bansal et al. (2018a), illustrated in Figure 2. The victims were trained in pairs via self-play against random old versions of their opponent, for between 680 and 1360 million timesteps. We use the pre-trained policy weights released in the “agent zoo” of Bansal et al. (2018b). In symmetric environments, the zoo agents are labeled ZooN where $N$ is a random seed. In asymmetric environments, they are labeled ZooVN and ZooON representing the Victim and Opponent agents.
|
| 72 |
+
|
| 73 |
+
All environments are two-player games in the MuJoCo robotics simulator. Both agents observe the position, velocity and contact forces of joints in their body, and the position of their opponent’s joints. The episodes end when a win condition is triggered, or after a time limit, in which case the agents draw. We evaluate in all environments from Bansal et al. (2018a) except for Run to Goal, which we omit as the setup is identical to You Shall Not Pass except for the win condition. We describe the environments below, and specify the number of trained zoo policies and their type (MLP or LSTM):
|
| 74 |
+
|
| 75 |
+
Kick and Defend (3, LSTM). A soccer penalty shootout between two Humanoid robots. The positions of the kicker, goalie and ball are randomly initialized. The kicker wins if the ball goes between the goalposts; otherwise, the goalie wins, provided it remains within 3 units of the goal.
|
| 76 |
+
|
| 77 |
+
You Shall Not Pass (1, MLP). Two Humanoid agents are initialized facing each other. The runner wins if it reaches the finish line; the blocker wins if it does not.
|
| 78 |
+
|
| 79 |
+
Sumo Humans (3, LSTM). Two Humanoid agents compete on a round arena. The players’ positions are randomly initialized. A player wins by remaining standing after their opponent has fallen.2
|
| 80 |
+
|
| 81 |
+
Sumo Ants (4, LSTM). The same task as Sumo Humans, but with ‘Ant’ quadrupedal robot bodies.
|
| 82 |
+
We use this task in Section 5.2 to investigate the importance of dimensionality to this attack method.
|
| 83 |
+
|
| 84 |
+
# 4.2 METHODS EVALUATED
|
| 85 |
+
|
| 86 |
+
Following the RL formulation in Section 3, we train an adversarial policy to maximize Equation 1 using Proximal Policy Optimization (PPO; Schulman et al., 2017). We give a sparse reward at the end of the episode, positive when the adversary wins the game and negative when it loses or ties. Bansal et al. (2018a) trained the victim policies using a similar reward, with an additional dense component at the start of training. We train for 20 million timesteps using the PPO implementation from Stable Baselines (Hill et al., 2019). The hyperparameters were selected through a combination of manual tuning and a random search of 100 samples; see Section A in the appendix for details. We compare our methods to three baselines: a policy Rand taking random actions; a lifeless policy Zero that exerts zero control; and all pre-trained policies $\operatorname { Z O O } \star$ from Bansal et al. (2018a).
|
| 87 |
+
|
| 88 |
+
# 4.3 RESULTS
|
| 89 |
+
|
| 90 |
+
Quantitative Evaluation We find the adversarial policies reliably win against most victim policies, and outperform the pre-trained $\mathrm { { } } Z \circ \circ$ baseline for a majority of environments and victims. We report
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 3: Win rates while training adversary Adv against the median victim in each environment (based on the difference between the win rate for Adv and Zoo). The adversary outperforms the $\mathrm { { } ^ { \it { Z } O O } }$ baseline against the median victim in Kick and Defend and You Shall Not Pass, and is competitive on Sumo Humans. For full results, see figure 4 below or figure C.1 in the supplementary material.
|
| 94 |
+
|
| 95 |
+
Key: The solid line shows the median win rate for Adv across 5 random seeds, with the shaded region representing the minimum and maximum. The win rate is smoothed with a rolling average over 100 000 timesteps. Baselines are shown as horizontal dashed lines. Agents Rand and Zero take random and zero actions respectively. The $\mathrm { { } ^ { \it { Z } O O } }$ baseline is whichever ZooM (Sumo) or ZooOM (other environments) agent achieves the highest win rate. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the title above each figure.
|
| 96 |
+
|
| 97 |
+
the win rate over time against the median victim in each environment in Figure 3, with full results in Figure C.1 in the supplementary material. Win rates against all victims are summarized in Figure 4.
|
| 98 |
+
|
| 99 |
+
Qualitative Evaluation The adversarial policies beat the victim not by performing the intended task (e.g. blocking a goal), but rather by exploiting weaknesses in the victim’s policy. This effect is best seen by watching the videos at https://adversarialpolicies.github.io/. In Kick and Defend and You Shall Not Pass, the adversarial policy never stands up. The adversary instead wins by positioning their body to induce adversarial observations that cause the victim’s policy to take poor actions. A robust victim could easily win, a result we demonstrate in Section 5.1.
|
| 100 |
+
|
| 101 |
+
This flavor of attacks is impossible in Sumo Humans, since the adversarial policy immediately loses if it falls over. Faced with this control constraint, the adversarial policy learns a more high-level strategy: it kneels in the center in a stable position. Surprisingly, this is very effective against victim 1, which in $8 8 \%$ of cases falls over attempting to tackle the adversary. However, it proves less effective against victims 2 and 3, achieving only a $62 \%$ and $45 \%$ win rate, below $\mathrm { { } } Z \circ \circ$ baselines. We further explore the importance of the number of dimensions the adversary can safely manipulate in Section 5.2.
|
| 102 |
+
|
| 103 |
+
Distribution Shift One might wonder if the adversarial policies win because they are outside the training distribution of the victim. To test this, we evaluate victims against two simple off-distribution baselines: a random policy Rand (green) and a lifeless policy Zero (red). These baselines win as often as $30 \%$ to $50 \%$ in Kick and Defend, but less than $1 \%$ of the time in Sumo and You Shall Not Pass. This is well below the performance of our adversarial policies. We conclude that most victim policies are robust to off-distribution observations that are not adversarially optimized.
|
| 104 |
+
|
| 105 |
+
# 5 UNDERSTANDING ADVERSARIAL POLICIES
|
| 106 |
+
|
| 107 |
+
In the previous section we demonstrated adversarial policies exist for victims in a range of competitive simulated robotics environments. In this section, we focus on understanding why these policies exist. Specifically, we establish that adversarial policies manipulate the victim through their body position; that victims are more vulnerable to adversarial policies in high-dimensional environments; and that activations of the victim’s policy network differ substantially when playing an adversarial opponent.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 4: Percentage of games won by opponent (out of 1000), the maximal cell in each row is in red. Key: Agents ZooYN are pre-trained policies from Bansal et al. (2018a), where $Y \in \{ { } ^ { \cdot } V ^ { \prime } , { } ^ { \cdot } O ^ { \prime } , { } ^ { \cdot \prime } \}$ denotes the agent plays as (V)ictim, (O)pponent or either side, and $N$ is a random seed. Opponents AdvN are the best adversarial policy of 5 seeds trained against the corresponding Zoo[V]N. Agents Rand and $\mathtt { Z e r o }$ are baseline agents taking random and zero actions respectively. Defended victims ZooXYN, where $X \in \{ \cdot S ^ { \prime } , \cdot \bar { D ^ { \prime } } , \cdot M ^ { \prime } \}$ , are derived from ZooYN by fine-tuning against a (S)ingle opponent AdvN, $\mathbf { ( D ) }$ ual opponents AdvN and Zoo[O]N, or by (M)asking the observations.
|
| 111 |
+
|
| 112 |
+
(a) Gaussian Mixture Model (GMM): likelihood the activations of a victim’s policy network are “normal”. We collect activations for 20, 000 timesteps of victim Zoo[V]1 playing against each opponent. We fit a 20-component GMM to activations induced by Zoo[O]1. Error bars are a $9 5 \%$ confidence interval.
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
(b) t-SNE activations of Kick and Defend victim ZooV2 playing against different opponents. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. See Figures C.3 and C.4 in the supplementary results for visualizations of other environments and victims.
|
| 116 |
+
|
| 117 |
+
Figure 5: Analysis of activations of the victim’s policy network. Both figures show the adversary Adv induces off-distribution activations. Key: legends specify opponent the victim played against. Adv is the best adversary trained against the victim, and Rand is a policy taking random actions. $\mathrm { ~ Z 0 O } \star \mathrm { N }$ corresponds to ZooN (Sumo) or ZooON (otherwise). ${ \mathrm { 2 0 0 } } \star { \mathrm { 1 T } }$ and ${ \mathsf { Z } } { \mathsf { O } } { \mathsf { O } } \star { \mathsf { 1 } } { \mathsf { V } }$ are the train and validation datasets, drawn from Zoo1 (Sumo) or ZooO1 (otherwise).
|
| 118 |
+
|
| 119 |
+
# 5.1 MASKED POLICIES
|
| 120 |
+
|
| 121 |
+
We have previously shown that adversarial policies are able to reliably win against victims. In this section, we demonstrate that they win by taking actions to induce natural observations that are adversarial to the victim, and not by physically interfering with the victim. To test this, we introduce a ‘masked‘ victim (labeled ZooMN or ZooMVN) that is the same as the normal victim ZooN or ZooVN, except the observation of the adversary’s position is set to a static value corresponding to a typical initial position. We use the same adversarial policy against the normal and masked victim.
|
| 122 |
+
|
| 123 |
+
One would expect it to be beneficial to be able to see your opponent. Indeed, the masked victims do worse than a normal victim when playing normal opponents. For example, Figure 4b shows that in You Shall Not Pass the normal opponent ZooO1 wins $78 \%$ of the time against the masked victim ZooMV1 but only $47 \%$ of the time against the normal victim ZooV1. However, the relationship is reversed when playing an adversary. The normal victim $\mathrm { ~ Z o o V 1 }$ loses $86 \%$ of the time to adversary Adv1 whereas the masked victim ZooMV1 wins $9 9 \%$ of the time. This pattern is particularly clear in You Shall Not Pass, but the trend is similar in other environments.
|
| 124 |
+
|
| 125 |
+
This result is surprising as it implies highly non-transitive relationships may exist between policies even in games that seem to be transitive. A game is said to be transitive if policies can be ranked such that higher-ranked policies beat lower-ranked policies. Prima facie, the games in this paper seem transitive: professional human soccer players and sumo wrestlers can reliably beat amateurs. Despite this, there is a non-transitive relationship between adversarial policies, victims and masked victims. Consequently, we urge caution when using methods such as self-play that assume transitivity, and would recommend more general methods where practical (Balduzzi et al., 2019; Brown et al., 2019).
|
| 126 |
+
|
| 127 |
+
Our findings also suggest a trade-off in the size of the observation space. In benign environments, allowing more observation of the environment increases performance. However, this also makes the agent more vulnerable to adversaries. This is in contrast to an idealized Bayesian agent, where the value of information is always non-negative (Good, 1967). In the following section, we investigate further the connection between vulnerability to attack and the size of the observation space.
|
| 128 |
+
|
| 129 |
+
# 5.2 DIMENSIONALITY
|
| 130 |
+
|
| 131 |
+
A variety of work has concluded that classifiers are more vulnerable to adversarial examples on highdimensional inputs (Gilmer et al., 2018b; Khoury and Hadfield-Menell, 2018; Shafahi et al., 2019). We hypothesize a similar result for RL policies: the greater the dimensionality of the component $P$ of the observation space under control of the adversary, the more vulnerable the victim is to attack. We test this hypothesis in the Sumo environment, varying whether the agents are Ants or Humanoids. The results in Figures 4c and 4d support the hypothesis. The adversary has a much lower win-rate in the low-dimensional Sumo Ants (dim $1 P = 1 5$ ) environment than in the higher dimensional Sumo Humans (d $\operatorname* { l i m } P = 2 4$ ) environment, where $P$ is the position of the adversary’s joints.
|
| 132 |
+
|
| 133 |
+
# 5.3 VICTIM ACTIVATIONS
|
| 134 |
+
|
| 135 |
+
In Section 5.1 we showed that adversarial policies win by creating natural observations that are adversarial to the victim. In this section, we seek to better understand why these observations are adversarial. We record activations from each victim’s policy network playing a range of opponents, and analyze these using a Gaussian Mixture Model (GMM) and a t-SNE visualization. See Section B in the supplementary material for details of training and hyperparameters.
|
| 136 |
+
|
| 137 |
+
We fit a GMM on activations ${ \mathrm { Z o o } } \star 1 { \mathrm { T } }$ collected playing against a normal opponent, Zoo1 or ZooV1, holding out ${ \mathrm { 2 0 0 + 1 0 } }$ for validation. Figure 5a shows that the adversarial policy Adv induces activations with the lowest log-likelihood, with random baseline Rand only slightly more probable. Normal opponents ${ \mathrm { Z o o } } \star 2$ and $\mathrm { Z o o } { \star 3 }$ induce activations with almost as high likelihood as the validation set ${ \mathrm { 2 0 0 \star 1 0 } }$ , except in Sumo Humans where they are as unlikely as Rand.
|
| 138 |
+
|
| 139 |
+
We plot a t-SNE visualization of the activations of Kick and Defend victim ZooV2 in Figure 5b. As expected from the density model results, there is a clear separation between between Adv, Rand and the normal opponent ZooO2. Intriguingly, Adv induces activations more widely dispersed than the random policy Rand, which in turn are more widely dispersed than ZooO2. We report on the full set of victim policies in Figures C.3 and C.4 in the supplementary material.
|
| 140 |
+
|
| 141 |
+
# 6 DEFENDING AGAINST ADVERSARIAL POLICIES
|
| 142 |
+
|
| 143 |
+
The ease with which policies can be attacked highlights the need for effective defenses. A natural defense is to fine-tune the victim zoo policy against an adversary, which we term single training. We also investigate dual training, randomly picking either an adversary or a zoo policy at the start of each episode. The training procedure is otherwise the same as for adversaries, described in Section 4.2.
|
| 144 |
+
|
| 145 |
+
We report on the win rates in You Shall Not Pass in Figure 4b. We find both the single ZooSV1 and dual ZooDV1 fine-tuned victims are robust to adversary Adv1, with the adversary win rate dropping from $87 \%$ to around $10 \%$ . However, ZooSV1 catastrophically forgets how to play against the normal opponent ZooO1. The dual fine-tuned victim ZooDV1 fares better, with opponent ZooO1 winning only $57 \%$ of the time. However, this is still an increase from ZooO1’s $48 \%$ win rate against the original victim ZooV1. This suggests ZooV1 may use features that are helpful against a normal opponent but which are easily manipulable (Ilyas et al., 2019).
|
| 146 |
+
|
| 147 |
+
Although the fine-tuned victims are robust to the original adversarial policy Adv1, they are still vulnerable to our attack method. New adversaries AdvS1 and AdvD1 trained against ZooSV1 and ZooDV1 win at equal or greater rates than before, and transfer successfully to the original victim. However, the new adversaries AdvS1 and AdvD1 are qualitatively different, tripping the victim up by lying prone on the ground, whereas Adv1 causes ZooV1 to fall without ever touching it.
|
| 148 |
+
|
| 149 |
+
# 7 DISCUSSION
|
| 150 |
+
|
| 151 |
+
Contributions. Our paper makes three key contributions. First, we have proposed a novel threat model of natural adversarial observations produced by an adversarial policy taking actions in a shared environment. Second, we demonstrate that adversarial policies exist in a range of zero-sum simulated robotics games against state-of-the-art victims trained via self-play to be robust to adversaries. Third, we verify the adversarial policies win by confusing the victim, not by learning a generally strong policy. Specifically, we find the adversary induces highly off-distribution activations in the victim, and that victim performance increases when it is blind to the adversary’s position.
|
| 152 |
+
|
| 153 |
+
Self-play. While it may at first appear unsurprising that a policy trained as an adversary against another RL policy would be able to exploit it, we believe that this observation is highly significant. The policies we have attacked were explicitly trained via self-play to be robust. Although it is known that self-play with deep RL may not converge, or converge only to a local rather than global Nash, self-play has been used with great success in a number of works focused on playing adversarial games directly against humans (Silver et al., 2018; OpenAI, 2018). Our work shows that even apparently strong self-play policies can harbor serious but hard to find failure modes, demonstrating these theoretical limitations are practically relevant and highlighting the need for careful testing.
|
| 154 |
+
|
| 155 |
+
Our attack provides some amount of testing by constructively lower-bounding the exploitability of a victim policy – its performance against its worst-case opponent – by training an adversary. Since the victim’s win rate declines against our adversarial policy, we can confirm that the victim and its self-play opponent were not in a global Nash. Notably we expect our attack to succeed even for policies in a local Nash, as the adversary is trained starting from a random point that is likely outside the victim’s attractive basin.
|
| 156 |
+
|
| 157 |
+
Defense. We implemented a simple defense: fine-tuning the victim against the adversary. We find our attack can be successfully reapplied to beat this defense, suggesting adversarial policies are difficult to eliminate. However, the defense does appear to protect against attacks that rely on confusing the victim: the new adversarial policy is forced to instead trip the victim up. We therefore believe that scaling up this defense is a promising direction for future work. In particular, we envisage a variant of population-based training where new agents are continually added to the pool to promote diversity, and agents train against a fixed opponent for a prolonged period of time to avoid local equilibria.
|
| 158 |
+
|
| 159 |
+
Conclusion. Overall, we are excited about the implications the adversarial policy model has for the robustness, security and understanding of deep RL policies. Our results show the existence of a previously unrecognized problem in deep RL, and we hope this work encourages other researchers to investigate this area further. Videos and other supplementary material are available online at https://adversarialpolicies.github.io/ and our source code is available on GitHub at https://github.com/HumanCompatibleAI/adversarial-policies.
|
| 160 |
+
|
| 161 |
+
# ACKNOWLEDGMENTS
|
| 162 |
+
|
| 163 |
+
We thank Jakob Foerster, Matthew Rahtz, Dylan Hadfield-Menell, Catherine Olsson, Jan Leike, Rohin Shah, Victoria Krakovna, Daniel Filan, Steven Wang, Dawn Song, Sam Toyer and Dan Hendrycks for their suggestion and helpful feedback on earlier drafts of this paper. We thank Chris Northwood for assistance developing the website accompanying this paper. We are also grateful to our anonymous reviewers for valuable feedback and encouragement to explore defenses in this paper.
|
| 164 |
+
|
| 165 |
+
# REFERENCES
|
| 166 |
+
|
| 167 |
+
J. Andrew Bagnell, Andrew Y. Ng, and Jeff G. Schneider. Solving uncertain Markov decision processes. Technical Report CMU-RI-TR-01-25, August 2001.
|
| 168 |
+
David Balduzzi, Marta Garnelo, Yoram Bachrach, Wojciech M. Czarnecki, Julien Pérolat, Max Jaderberg, and Thore Graepel. Open-ended learning in symmetric zero-sum games. arXiv:1901.08106v1 [cs.LG], 2019.
|
| 169 |
+
Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. In Proceedings of the International Conference on Learning Representations (ICLR), 2018a.
|
| 170 |
+
Trapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Source code and model weights for emergent complexity via multi-agent competition, 2018b. URL https: //github.com/openai/multiagent-competition.
|
| 171 |
+
Osbert Bastani, Yewen Pu, and Armando Solar-Lezama. Verifiable reinforcement learning via policy extraction. In Advances in Neural Information Processing Systems (NeurIPS), pages 2494–2504. 2018.
|
| 172 |
+
Noam Brown, Adam Lerer, Sam Gross, and Tuomas Sandholm. Deep counterfactual regret minimization. In Proceedings of the International Conference on Machine Learning (ICML), 2019.
|
| 173 |
+
Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In Proceedings of the Conference on Robot Learning (CoRL), volume 78, pages 1–16, 2017.
|
| 174 |
+
John Doyle, James A. Primbs, Benjamin Shapiro, and Vesna Nevistic. Nonlinear games: examples ´ and counterexamples. In Proceedings of IEEE Conference on Decision and Control (CDC), volume 4, pages 3915–3920, 1996.
|
| 175 |
+
Shromona Ghosh, Felix Berkenkamp, Gireeja Ranade, Shaz Qadeer, and Ashish Kapoor. Verifying controllers against adversarial examples with Bayesian optimization. In IEEE International Conference on Robotics and Automation (ICRA), pages 7306–7313, 2018.
|
| 176 |
+
Justin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv:1807.06732v2 [cs.LG], 2018a.
|
| 177 |
+
Justin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. arXiv:1801.02774v3 [cs.CV], 2018b.
|
| 178 |
+
I.J. Good. On the principle of total evidence. The British Journal for the Philosophy of Science, 17 (4):319–321, 1967.
|
| 179 |
+
Ian Goodfellow, Nicolas Papernot, Sandy Huang, Yan Duan, Pieter Abbeel, and Jack Clark. Attacking machine learning with adversarial examples. https://openai.com/blog/ adversarial-example-research/, 2017.
|
| 180 |
+
Ashley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable Baselines. https://github.com/ hill-a/stable-baselines, 2019.
|
| 181 |
+
Sandy H. Huang, Nicolas Papernot, Ian J. Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv:1702.02284v1 [cs.LG], 2017.
|
| 182 |
+
|
| 183 |
+
Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. arXiv:1905.02175v4 [stat.ML], 2019.
|
| 184 |
+
|
| 185 |
+
Marc Khoury and Dylan Hadfield-Menell. On the geometry of adversarial examples. arXiv:1811.00525v1 [cs.LG], 2018.
|
| 186 |
+
|
| 187 |
+
Jernej Kos and Dawn Song. Delving into adversarial attacks on deep policies. arXiv:1705.06452v1 [stat.ML], 2017.
|
| 188 |
+
|
| 189 |
+
Marc Lanctot, Vinicius Zambaldi, Audrunas Gruslys, Angeliki Lazaridou, Karl Tuyls, Julien Perolat, David Silver, and Thore Graepel. A unified game-theoretic approach to multiagent reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pages 4190–4203, 2017.
|
| 190 |
+
|
| 191 |
+
Mike Lewis, Denis Yarats, Yann Dauphin, Devi Parikh, and Dhruv Batra. Deal or no deal? End-to-end learning of negotiation dialogues. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2017.
|
| 192 |
+
|
| 193 |
+
Yen-Chen Lin, Zhang-Wei Hong, Yuan-Hong Liao, Meng-Li Shih, Ming-Yu Liu, and Min Sun. Tactics of adversarial attack on deep reinforcement learning agents. In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), pages 3756–3762, 2017.
|
| 194 |
+
|
| 195 |
+
Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research (JMLR), 9(Nov):2579–2605, 2008.
|
| 196 |
+
|
| 197 |
+
Ajay Mandlekar, Yuke Zhu, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Adversarially robust policy learning: Active construction of physically-plausible perturbations. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 3932–3939, 2017.
|
| 198 |
+
|
| 199 |
+
Laura Noonan. JPMorgan develops robot to execute trades. Financial Times, July 2017.
|
| 200 |
+
|
| 201 |
+
OpenAI. OpenAI Five. https://blog.openai.com/openai-five/, 2018.
|
| 202 |
+
|
| 203 |
+
Anay Pattanaik, Zhenyi Tang, Shuijing Liu, Gautham Bommannan, and Girish Chowdhary. Robust deep reinforcement learning with adversarial attacks. In Proceedings of the International Conference on Autonomous Agents and MultiAgent System (AAMAS), pages 2040–2042, 2018.
|
| 204 |
+
|
| 205 |
+
Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Proceedings of the International Conference on Machine Learning (ICML), volume 70, pages 2817–2826, 2017.
|
| 206 |
+
|
| 207 |
+
Hadi Ravanbakhsh and Sriram Sankaranarayanan. Robust controller synthesis of switched systems using counterexample guided framework. In Proceedings of the International Conference on Embedded Software (EMSOFT), pages 8:1–8:10, 2016.
|
| 208 |
+
|
| 209 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv:1707.06347v2 [cs.LG], 2017.
|
| 210 |
+
|
| 211 |
+
Ali Shafahi, W. Ronny Huang, Christoph Studer, Soheil Feizi, and Tom Goldstein. Are adversarial examples inevitable? In Proceedings of the International Conference on Learning Representations (ICLR), 2019.
|
| 212 |
+
|
| 213 |
+
Lloyd S. Shapley. Stochastic games. Proceedings of the National Academy of Sciences, 39(10): 1095–1100, 1953.
|
| 214 |
+
|
| 215 |
+
David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140–1144, 2018.
|
| 216 |
+
|
| 217 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2014.
|
| 218 |
+
|
| 219 |
+
Aviv Tamar, Shie Mannor, and Huan Xu. Scaling up robust MDPs using function approximation. In Proceedings of the International Conference on Machine Learning (ICML), pages II–181–II–189, 2014.
|
| 220 |
+
|
| 221 |
+
Jonathan Uesato, Brendan O’Donoghue, Pushmeet Kohli, and Aaron van den Oord. Adversarial risk and the dangers of evaluating against weak attacks. In Proceedings of the International Conference on Machine Learning (ICML), volume 80, pages 5025–5034, 2018.
|
| 222 |
+
|
| 223 |
+
Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
|
| 224 |
+
|
| 225 |
+
A TRAINING: HYPERPARAMETERS AND COMPUTATIONAL INFRASTRUCTURE
|
| 226 |
+
Table A.1: Hyperparameters for Proximal Policy Optimization.
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Parameter</td><td>Value</td><td>Search Range</td><td>Search Distribution</td></tr><tr><td>Total Timesteps</td><td>20 ×106</td><td>[0,40 × 106]</td><td>Manual</td></tr><tr><td>Batch size</td><td>16 384</td><td>[2048, 65 536]</td><td>Log uniform</td></tr><tr><td>Number of environments</td><td>8</td><td>[1,16]</td><td>Manual</td></tr><tr><td>Mini-batches</td><td>4</td><td>[1,128]</td><td>Log uniform</td></tr><tr><td>Epochs per update</td><td>4</td><td>[1,11]</td><td>Uniform</td></tr><tr><td>Learning rate</td><td>3×10-4</td><td>[1 × i0-5,1 × 10-2]</td><td>Log uniform</td></tr><tr><td>Discount</td><td>0.99</td><td></td><td></td></tr><tr><td>Maximum Gradient Norm</td><td>0.5</td><td></td><td></td></tr><tr><td>Clip Range</td><td>0.2</td><td></td><td></td></tr><tr><td>Advantage Estimation Discount</td><td>0.95</td><td></td><td></td></tr><tr><td>Entropy coefficient</td><td>0.0</td><td></td><td></td></tr><tr><td>Value Function Loss Coefficient</td><td>0.5</td><td></td><td></td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table A.1 specifies the hyperparameters used for training. The number of environments was chosen for performance reasons after observing diminishing returns from using more than 8 parallel environments. The total timesteps was chosen by inspection after observing diminishing returns to additional training. The batch size, mini-batches, epochs per update, entropy coefficient and learning rate were tuned via a random search with 100 samples on two environments, Kick and Defend and Sumo Humans. All other hyperparameters are the defaults in the PPO2 implementation in Stable Baselines (Hill et al., 2019).
|
| 231 |
+
|
| 232 |
+
We repeated the hyperparameter sweep for fine-tuning victim policies for the defense experiments, but obtained similar results. For simplicity, we therefore chose to use the same hyperparameters throughout.
|
| 233 |
+
|
| 234 |
+
We used a mixture of in-house and cloud infrastructure to perform these experiments. It takes around 8 hours to train an adversary for a single victim using 4 cores of an Intel Xeon Platinum 8000 (Skylake) processor.
|
| 235 |
+
|
| 236 |
+
# B ACTIVATION ANALYSIS: T-SNE AND GMM
|
| 237 |
+
|
| 238 |
+
We collect activations from all feed forward layers of the victim’s policy network. This gives two 64-length vectors, which we concatenate into a single 128-dimension vector for analysis with a Gaussian Mixture Model and a t-SNE representation.
|
| 239 |
+
|
| 240 |
+
# B.1 T-SNE HYPERPARAMETER SELECTION
|
| 241 |
+
|
| 242 |
+
We fit models with perplexity 5, 10, 20, 50, 75, 100, 250 and 1000. We chose 250 since qualitatively it produced the clearest visualization of data with a moderate number of distinct clusters.
|
| 243 |
+
|
| 244 |
+
B.2 GAUSSIAN MIXTURE MODEL HYPERPARAMETER SELECTION
|
| 245 |
+
|
| 246 |
+
We fit models with 5, 10, 20, 40 and 80 components with a full (unrestricted) and diagonal covariance matrix. We used the Bayesian Information Criterion (BIC) and average log-likelihood on a heldout validation set as criteria for selecting hyperparameters. We found 20 components with a full covariance matrix achieved the lowest BIC and highest validation log-likelihood in the majority of environment-victim pairs, and was the runner-up in the remainder.
|
| 247 |
+
|
| 248 |
+
# C FIGURES
|
| 249 |
+
|
| 250 |
+
Supplementary figures are provided on the subsequent pages.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure C.1: Win rates while training adversary Adv. The adversary exceeds baseline win rates against most victims in Kick and Defend and You Shall Not Pass, is competitive on Sumo Humans, but performs poorly in the low-dimensional Sumo Ants environment. Key: The solid line shows the median win rate for Adv across 5 random seeds, with the shaded region representing the minimum and maximum. The win rate is smoothed with a rolling average over 100 000 timesteps. Baselines are shown as horizontal dashed lines. Agents Rand and Zero take random and zero actions respectively. The Zoo baseline is whichever ZooM (Sumo) or ZooOM (other environments) agent achieves the highest win rate. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the title above each figure.
|
| 254 |
+
|
| 255 |
+
(a) Kick and Defend
|
| 256 |
+
|
| 257 |
+
<table><tr><td></td><td colspan="7">Opponent Win</td><td colspan="7">Victim Win</td><td colspan="7">Ties</td><td></td><td></td><td></td></tr><tr><td>ZooV1</td><td>79 53 50</td><td></td><td></td><td>32</td><td>四</td><td>42</td><td>30 30</td><td>21</td><td>4650</td><td></td><td>67</td><td>10</td><td>57</td><td>6461</td><td>0</td><td></td><td>0</td><td>0</td><td>2</td><td>1</td><td>1</td><td>6</td><td>9</td><td>100</td></tr><tr><td>ZooV2</td><td>54</td><td>因</td><td>63</td><td>9</td><td>80</td><td>63</td><td>50 46</td><td>46</td><td>6</td><td>37</td><td>90</td><td>20</td><td>36</td><td>45 44</td><td>0</td><td>0</td><td>0</td><td></td><td>0</td><td>1</td><td>0</td><td>5 10</td><td></td><td>80</td></tr><tr><td>ZooV3</td><td>31 31</td><td></td><td>4</td><td>50</td><td>66</td><td>64</td><td>2629</td><td></td><td>68 67</td><td>回</td><td>47</td><td>33</td><td>35</td><td>68 62</td><td>1</td><td>2</td><td></td><td>0</td><td>3</td><td>0</td><td>2</td><td>5 8</td><td></td><td>60</td></tr><tr><td>ZooMV1</td><td>1517</td><td></td><td>18</td><td>58</td><td>四</td><td>31</td><td>12 13</td><td>84</td><td>83</td><td>82</td><td>40</td><td>19</td><td>69</td><td>8478</td><td>0</td><td>0</td><td></td><td>0</td><td>2</td><td>2</td><td>0</td><td>4 9</td><td></td><td>40</td></tr><tr><td>ZooMV2</td><td>2728</td><td></td><td>27</td><td>36</td><td>因</td><td>42</td><td>2521</td><td></td><td>73 72</td><td>73</td><td>63</td><td>24</td><td>58</td><td>72</td><td>72</td><td>0</td><td>0</td><td>0</td><td>1</td><td>4</td><td>0</td><td>4</td><td>8</td><td></td></tr><tr><td rowspan="3">ZooMV3</td><td>262423</td><td></td><td></td><td></td><td>47 50</td><td>61</td><td>2119</td><td>74</td><td>75</td><td>77</td><td></td><td>51 48</td><td>36</td><td>74 72</td><td></td><td>0</td><td>1</td><td>0</td><td>2</td><td>1</td><td>3</td><td>5</td><td>10</td><td>20</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>1</td><td></td><td></td><td></td><td></td><td></td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td></td><td>1</td><td>1</td><td></td><td>0</td></tr><tr><td>[APA</td><td>£APA</td><td>1000Z 7000Z</td><td></td><td></td><td>£000Z</td><td>purd</td><td></td><td></td><td>3</td><td>1000Z</td><td>7000Z</td><td>£000Z</td><td>Purd </td><td>[APV</td><td>2</td><td>3</td><td>1000Z</td><td>7000Z</td><td>£000Z</td><td>Pury</td><td></td><td></td><td></td></tr></table>
|
| 258 |
+
|
| 259 |
+
(b) You Shall Not Pass
|
| 260 |
+
|
| 261 |
+
<table><tr><td rowspan=1 colspan=1>ZooV1</td><td rowspan=1 colspan=1>87</td><td rowspan=1 colspan=1>81</td><td rowspan=1 colspan=1>76</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>19</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>52</td><td rowspan=1 colspan=1>97 99</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooSV1</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>99</td><td rowspan=1 colspan=1>84</td><td rowspan=1 colspan=1>84</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>18</td><td rowspan=1 colspan=1>91</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>16</td><td rowspan=1 colspan=1>16</td><td rowspan=1 colspan=1>88 82</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooDV1</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>91</td><td rowspan=1 colspan=1>88</td><td rowspan=1 colspan=1>57</td><td rowspan=1 colspan=2>8 6</td><td rowspan=1 colspan=1>89</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>43</td><td rowspan=1 colspan=1>9294</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooMV1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>83</td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>78</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>99</td><td rowspan=1 colspan=1>17</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>9999</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=3 colspan=2>1</td><td rowspan=3 colspan=1>ISAPT</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=2 colspan=1>A</td><td rowspan=2 colspan=1>0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=1 colspan=2>Pard o.I9z</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Pard o.az</td><td rowspan=1 colspan=1>APV</td><td rowspan=1 colspan=1>AAAPT</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td></td></tr></table>
|
| 262 |
+
|
| 263 |
+
(c) Sumo Humans
|
| 264 |
+
|
| 265 |
+
<table><tr><td></td><td colspan="6">Opponent Win</td><td colspan="6">Victim Win</td><td colspan="6">Ties</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Z001</td><td>87</td><td>9</td><td>37</td><td>15</td><td>80</td><td>80</td><td>0</td><td>0</td><td>12</td><td>91</td><td>63</td><td>85</td><td>19 18</td><td></td><td>100100</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>2</td><td></td><td>0</td><td>0</td><td></td><td>100</td></tr><tr><td>Z002</td><td>10</td><td>63</td><td>14</td><td>34</td><td>54</td><td>71</td><td>0</td><td>0</td><td>76</td><td>19</td><td>64</td><td>62</td><td>35 回</td><td></td><td>100100</td><td>141</td><td>18</td><td>22</td><td>4</td><td>11</td><td>13</td><td></td><td>0</td><td>0</td><td></td><td>80</td></tr><tr><td>Z003</td><td>1718</td><td></td><td>44</td><td>10 31</td><td></td><td>57</td><td>0</td><td>1</td><td>81</td><td>79</td><td>2</td><td>88</td><td>61</td><td>34</td><td>100 99</td><td>2</td><td>4</td><td>33</td><td></td><td>1</td><td>8</td><td>9</td><td>0</td><td>0</td><td></td><td>60</td></tr><tr><td>ZooM1</td><td></td><td>8724</td><td>58</td><td>9391 92</td><td></td><td></td><td>0</td><td>1</td><td>12</td><td>76</td><td>42</td><td>□</td><td>9</td><td>8</td><td>100 99</td><td>0</td><td>0</td><td></td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td></td><td>40</td></tr><tr><td>Z0oM2</td><td></td><td>3239</td><td>39</td><td>46</td><td></td><td>69</td><td>0</td><td>0</td><td>39</td><td>30</td><td>23</td><td>50</td><td>四</td><td>17</td><td>100100</td><td></td><td>29 3238</td><td></td><td></td><td>4</td><td>6</td><td>14</td><td>0</td><td>0</td><td></td><td>20</td></tr><tr><td>ZooM3</td><td></td><td>6268</td><td>75</td><td>66</td><td>82</td><td>四</td><td>1</td><td>1</td><td>30</td><td>20</td><td>10</td><td>31</td><td>13</td><td>□</td><td>99 99</td><td></td><td>9 1215</td><td></td><td></td><td>3</td><td>6</td><td>2</td><td>0</td><td>0</td><td></td><td></td></tr><tr><td colspan="2"></td><td></td><td></td><td></td><td></td><td></td><td>pury</td><td></td><td></td><td></td><td></td><td>[00Z</td><td>20</td><td>£00Z</td><td>puey</td><td></td><td></td><td></td><td></td><td>1</td><td></td><td>1</td><td></td><td></td><td></td><td>0</td></tr><tr><td></td><td>[APV</td><td>APA</td><td>1</td><td></td><td>2</td><td>2</td><td></td><td>0.I9z</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>00</td><td>[APV</td><td></td><td>3</td><td>[00Z</td><td>20</td><td>20</td><td>pued</td><td>20</td><td></td><td></td></tr></table>
|
| 266 |
+
|
| 267 |
+

|
| 268 |
+
Figure C.2: Percentage of episodes (out of 1000) won by the opponent, the victim or tied. The maximal opponent win rate in each row is in red. Victims are on the $y$ -axis and opponents on the $x$ -axis. Key: Agents ZooYN are pre-trained policies from Bansal et al. (2018a), where $Y \in \{ { } ^ { \cdot } V ^ { \prime } , { } ^ { \cdot } O ^ { \prime } , { } ^ { \cdot \prime } \}$ denotes the agent plays as (V)ictim, $\mathbf { \eta } ^ { ( \mathbf { 0 } ) }$ pponent or either side, and $N$ is a random seed. Opponents AdvN are the best adversarial policy of 5 seeds trained against the corresponding Zoo[V]N. Agents Rand and $\mathtt { Z e r o }$ are baseline agents taking random and zero actions respectively. Defended victims ZooXYN, where $X \in \{ \cdot S ^ { \prime } , \cdot \bar { D ^ { \prime } } , \cdot M ^ { \prime } \}$ , are derived from ZooYN by fine-tuning against a (S)ingle opponent AdvN, $\mathbf { ( D ) }$ ual opponents AdvN and Zoo[O]N, or by $\mathbf { \Psi } ^ { ( \mathbf { M } ) }$ asking the observations.
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure C.3: t-SNE activations of the victim when playing against different opponents. There is a clear separation between the activations induced by Adv and those of the normal opponent Zoo. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the figure caption. Opponent Adv is the best adversary trained against the victim. Opponent $\mathrm { { } ~ \ Z \ O O }$ corresponds to ZooN (Sumo) or ZooON (other environments). See Figure C.4 for activations for a single opponent at a time.
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
Figure C.4: t-SNE activations of victim Zoo1 (Sumo) or ZooV1 (other environments). The results are the same as in Figure C.3 but decomposed into individual opponents for clarity. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. Opponent Adv is the best adversary trained against the victim. Opponent Zoo is Zoo1 (Sumo) or ZooO1 (other environments). See Figure C.3 for results for other victims (one plot per victim).
|
parse/train/HJgEMpVFwB/HJgEMpVFwB_content_list.json
ADDED
|
@@ -0,0 +1,1413 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ADVERSARIAL POLICIES: ATTACKING DEEP REINFORCEMENT LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
633,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Adam Gleave1 Michael Dennis Cody Wild Neel Kant Sergey Levine Stuart Russell University of California, Berkeley ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
176,
|
| 19 |
+
165,
|
| 20 |
+
816,
|
| 21 |
+
195
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
454,
|
| 30 |
+
207,
|
| 31 |
+
544,
|
| 32 |
+
222
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Deep reinforcement learning (RL) policies are known to be vulnerable to adversarial perturbations to their observations, similar to adversarial examples for classifiers. However, an attacker is not usually able to directly modify another agent’s observations. This might lead one to wonder: is it possible to attack an RL agent simply by choosing an adversarial policy acting in a multi-agent environment so as to create natural observations that are adversarial? We demonstrate the existence of adversarial policies in zero-sum games between simulated humanoid robots with proprioceptive observations, against state-of-the-art victims trained via self-play to be robust to opponents. The adversarial policies reliably win against the victims but generate seemingly random and uncoordinated behavior. We find that these policies are more successful in high-dimensional environments, and induce substantially different activations in the victim policy network than when the victim plays against a normal opponent. Fine-tuning protects a victim against a specific adversary, but the attack method can be successfully reapplied to find a new adversarial policy. Videos are available at https://adversarialpolicies.github.io/. ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
232,
|
| 41 |
+
239,
|
| 42 |
+
766,
|
| 43 |
+
446
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "1 INTRODUCTION ",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
176,
|
| 53 |
+
476,
|
| 54 |
+
336,
|
| 55 |
+
491
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "The discovery of adversarial examples for image classifiers prompted a new field of research into adversarial attacks and defenses (Szegedy et al., 2014). Recent work has shown that deep RL policies are also vulnerable to adversarial perturbations of image observations (Huang et al., 2017; Kos and Song, 2017). However, real-world RL agents inhabit natural environments populated by other agents, including humans, who can only modify another agent’s observations via their actions. We explore whether it’s possible to attack a victim policy by building an adversarial policy that takes actions in a shared environment, inducing natural observations which have adversarial effects on the victim. ",
|
| 62 |
+
"bbox": [
|
| 63 |
+
174,
|
| 64 |
+
507,
|
| 65 |
+
825,
|
| 66 |
+
604
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "RL has been applied in settings as varied as autonomous driving (Dosovitskiy et al., 2017), negotiation (Lewis et al., 2017) and automated trading (Noonan, 2017). In domains such as these, an attacker cannot usually directly modify the victim policy’s input. For example, in autonomous driving pedestrians and other drivers can take actions in the world that affect the camera image, but only in a physically realistic fashion. They cannot add noise to arbitrary pixels, or make a building disappear. Similarly, in financial trading an attacker can send orders to an exchange which will appear in the victim’s market data feed, but the attacker cannot modify observations of a third party’s orders. ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
174,
|
| 75 |
+
612,
|
| 76 |
+
825,
|
| 77 |
+
709
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "As a proof of concept, we show the existence of adversarial policies in zero-sum simulated robotics games with proprioceptive observations (Bansal et al., 2018a). The state-of-the-art victim policies were trained via self-play to be robust to opponents. We train each adversarial policy using model-free RL against a fixed black-box victim. We find the adversarial policies reliably beat their victim, despite training for less than $3 \\%$ of the timesteps initially used to train the victim policies. ",
|
| 84 |
+
"bbox": [
|
| 85 |
+
174,
|
| 86 |
+
717,
|
| 87 |
+
823,
|
| 88 |
+
786
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "Critically, we find the adversaries win by creating natural observations that are adversarial, and not by becoming generally strong opponents. Qualitatively, the adversaries fall to the ground in contorted positions, as illustrated in Figure 1, rather than learning to run, kick or block like normal opponents. This strategy does not work when the victim is ‘masked’ and cannot see the adversary’s position, suggesting that the adversary succeeds by manipulating a victim’s observations through its actions. ",
|
| 95 |
+
"bbox": [
|
| 96 |
+
174,
|
| 97 |
+
792,
|
| 98 |
+
825,
|
| 99 |
+
863
|
| 100 |
+
],
|
| 101 |
+
"page_idx": 0
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"type": "text",
|
| 105 |
+
"text": "Having observed these results, we wanted to understand the sensitivity of the attack to the dimensionality of the victim’s observations. We find that victim policies in higher-dimensional Humanoid environments are substantially more vulnerable to adversarial policies than in lower-dimensional Ant environments. To gain insight into why adversarial policies succeed, we analyze the activations of the victim’s policy network using a Gaussian Mixture Model and t-SNE (Maaten and Hinton, 2008). We find adversarial policies induce significantly different activations than normal opponents, and that the adversarial activations are typically more widely dispersed between timesteps than normal activations. ",
|
| 106 |
+
"bbox": [
|
| 107 |
+
176,
|
| 108 |
+
869,
|
| 109 |
+
823,
|
| 110 |
+
898
|
| 111 |
+
],
|
| 112 |
+
"page_idx": 0
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"type": "image",
|
| 116 |
+
"img_path": "images/bed7c6d84ef604ab225fc38240a0734aa665e13269680754a2d339a48b73f268.jpg",
|
| 117 |
+
"image_caption": [
|
| 118 |
+
"Figure 1: Illustrative snapshots of a victim (in blue) against normal and adversarial opponents (in red). The victim wins if it crosses the finish line; otherwise, the opponent wins. Despite never standing up, the adversarial opponent wins $86 \\%$ of episodes, far above the normal opponent’s $47 \\%$ win rate. "
|
| 119 |
+
],
|
| 120 |
+
"image_footnote": [],
|
| 121 |
+
"bbox": [
|
| 122 |
+
171,
|
| 123 |
+
101,
|
| 124 |
+
813,
|
| 125 |
+
285
|
| 126 |
+
],
|
| 127 |
+
"page_idx": 1
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"type": "text",
|
| 131 |
+
"text": "",
|
| 132 |
+
"bbox": [
|
| 133 |
+
173,
|
| 134 |
+
366,
|
| 135 |
+
825,
|
| 136 |
+
450
|
| 137 |
+
],
|
| 138 |
+
"page_idx": 1
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"type": "text",
|
| 142 |
+
"text": "A natural defense is to fine-tune the victim against the adversary. We find this protects against that particular adversary, but that repeating the attack method finds a new adversary the fine-tuned victim is vulnerable to. However, this new adversary differs qualitatively by physically interfering with the victim. This suggests repeated fine-tuning might provide protection against a range of adversaries. ",
|
| 143 |
+
"bbox": [
|
| 144 |
+
174,
|
| 145 |
+
458,
|
| 146 |
+
825,
|
| 147 |
+
513
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "Our paper makes three contributions. First, we propose a novel, physically realistic threat model for adversarial examples in RL. Second, we demonstrate the existence of adversarial policies in this threat model for several simulated robotics games. Our adversarial policies reliably beat the victim, despite training with less than $3 \\%$ as many timesteps and generating seemingly random behavior. Third, we conduct a detailed analysis of why the adversarial policies work. We show they create natural observations that are adversarial to the victim and push the activations of the victim’s policy network off-distribution. Additionally, we find policies are easier to attack in high-dimensional environments. ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
520,
|
| 157 |
+
825,
|
| 158 |
+
618
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "text",
|
| 164 |
+
"text": "As deep RL is increasingly deployed in environments with potential adversaries, we believe it is important that practitioners are aware of this previously unrecognized threat model. Moreover, even in benign settings, we believe adversarial policies can be a useful tool for uncovering unexpected policy failure modes. Finally, we are excited by the potential of adversarial training using adversarial policies, which could improve robustness relative to conventional self-play by training against adversaries that exploit weaknesses undiscovered by the distribution of similar opponents present during self-play. ",
|
| 165 |
+
"bbox": [
|
| 166 |
+
174,
|
| 167 |
+
625,
|
| 168 |
+
825,
|
| 169 |
+
709
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "2 RELATED WORK ",
|
| 176 |
+
"text_level": 1,
|
| 177 |
+
"bbox": [
|
| 178 |
+
176,
|
| 179 |
+
729,
|
| 180 |
+
344,
|
| 181 |
+
746
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "Most study of adversarial examples has focused on small $\\ell _ { p }$ norm perturbations to images, which Szegedy et al. (2014) discovered cause a variety of models to confidently misclassify the image, even though the changes are visually imperceptible to a human. Gilmer et al. (2018a) argued that attackers are not limited to small perturbations, and can instead construct new images or search for naturally misclassified images. Similarly, Uesato et al. (2018) argue that the near-ubiquitous $\\ell _ { p }$ model is merely a convenient local approximation for the true worst-case risk. We follow Goodfellow et al. (2017) in viewing adversarial examples more broadly, as “inputs to machine learning models that an attacker has intentionally designed to cause the model to make a mistake.” ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
762,
|
| 191 |
+
825,
|
| 192 |
+
875
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "The little prior work studying adversarial examples in RL has assumed an $\\ell _ { p }$ -norm threat model. Huang et al. (2017) and Kos and Song (2017) showed that deep RL policies are vulnerable to small perturbations in image observations. Recent work by Lin et al. (2017) generates a sequence of perturbations guiding the victim to a target state. Our work differs from these previous approaches by using a physically realistic threat model that disallows direct modification of the victim’s observations. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
176,
|
| 201 |
+
882,
|
| 202 |
+
825,
|
| 203 |
+
924
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "",
|
| 210 |
+
"bbox": [
|
| 211 |
+
173,
|
| 212 |
+
103,
|
| 213 |
+
825,
|
| 214 |
+
132
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "Lanctot et al. (2017) showed agents may become tightly coupled to the agents they were trained with. Like adversarial policies, this results in seemingly strong polices failing against new opponents. However, the victims we attack win against a range of opponents, and so are not coupled in this way. ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
176,
|
| 223 |
+
138,
|
| 224 |
+
823,
|
| 225 |
+
181
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Adversarial training is a common defense to adversarial examples, achieving state-of-the-art robustness in image classification (Xie et al., 2019). Prior work has also applied adversarial training to improve the robustness of deep RL policies, where the adversary exerts a force vector on the victim or varies dynamics parameters such as friction (Pinto et al., 2017; Mandlekar et al., 2017; Pattanaik et al., 2018). Our defense of fine-tuning the victim against the adversary is inspired by this work. ",
|
| 232 |
+
"bbox": [
|
| 233 |
+
174,
|
| 234 |
+
188,
|
| 235 |
+
825,
|
| 236 |
+
257
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 2
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "This work follows a rich tradition of worst-case analysis in RL. In robust MDPs, the transition function is chosen adversarially from an uncertainty set (Bagnell et al., 2001; Tamar et al., 2014). Doyle et al. (1996) solve the converse problem: finding the set of transition functions for which a policy is optimal. Methods also exist to verify controllers or find a counterexample to a specification. Bastani et al. (2018) verify decision trees distilled from RL policies, while Ghosh et al. (2018) test black-box closedloop simulations. Ravanbakhsh et al (2016) can even synthesize controllers robust to adversarial disturbances. Unfortunately, these techniques are only practical in simple environments with lowdimensional adversarial disturbances. By contrast, while our method lacks formal guarantees, it can test policies in complex multi-agent tasks and naturally scales with improvements in RL algorithms. ",
|
| 243 |
+
"bbox": [
|
| 244 |
+
173,
|
| 245 |
+
263,
|
| 246 |
+
826,
|
| 247 |
+
390
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 2
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "3 FRAMEWORK ",
|
| 254 |
+
"text_level": 1,
|
| 255 |
+
"bbox": [
|
| 256 |
+
176,
|
| 257 |
+
410,
|
| 258 |
+
318,
|
| 259 |
+
425
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "We model the victim as playing against an opponent in a two-player Markov game (Shapley, 1953). Our threat model assumes the attacker can control the opponent, in which case we call the opponent an adversary. We denote the adversary and victim by subscript $\\alpha$ and $\\nu$ respectively. The game $M = ( S , ( \\bar { A } _ { \\alpha } , A _ { \\nu } ) , T , ( R _ { \\alpha } , R _ { \\nu } ) )$ consists of state set $S$ , action sets $A _ { \\alpha }$ and $A _ { \\nu }$ , and a joint state transition function $T : S \\times A _ { \\alpha } \\times A _ { \\nu } \\to \\Delta ( S )$ where $\\Delta \\left( S \\right)$ is a probability distribution on $S$ . The reward function $R _ { i } : S \\times A _ { \\alpha } \\times A _ { \\nu } \\times S \\to \\mathbb { R }$ for player $i \\in \\{ \\alpha , \\nu \\}$ depends on the current state, next state and both player’s actions. Each player wishes to maximize their (discounted) sum of rewards. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
440,
|
| 269 |
+
825,
|
| 270 |
+
537
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "The adversary is allowed unlimited black-box access to actions sampled from $\\pi _ { v }$ , but is not given any white-box information such as weights or activations. We further assume the victim agent follows a fixed stochastic policy $\\pi _ { v }$ , corresponding to the common case of a pre-trained model deployed with static weights. Note that in safety critical systems, where attacks like these would be most concerning, it is standard practice to validate a model and then freeze it, so as to ensure that the deployed model does not develop any new issues due to retraining. Therefore, a fixed victim is a realistic reflection of what we might see with RL-trained policies in real-world settings, such as with autonomous vehicles. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
544,
|
| 280 |
+
825,
|
| 281 |
+
643
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "Since the victim policy $\\pi _ { \\nu }$ is held fixed, the two-player Markov game $M$ reduces to a single-player MDP $M _ { \\alpha } = ( S , A _ { \\alpha } , T _ { \\alpha } , R _ { \\alpha } ^ { \\prime } )$ that the attacker must solve. The state and action space of the adversary are the same as in $M$ , while the transition and reward function have the victim policy $\\pi _ { \\nu }$ embedded: ",
|
| 288 |
+
"bbox": [
|
| 289 |
+
174,
|
| 290 |
+
648,
|
| 291 |
+
825,
|
| 292 |
+
691
|
| 293 |
+
],
|
| 294 |
+
"page_idx": 2
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"type": "equation",
|
| 298 |
+
"img_path": "images/56bc8b8d1ccbb03d81b6031c2b5128aeb8efa33d44c3496beeea3630fe691ff8.jpg",
|
| 299 |
+
"text": "$$\nT _ { \\alpha } \\left( s , a _ { \\alpha } \\right) = T \\left( s , a _ { \\alpha } , a _ { \\nu } \\right) \\qquad \\mathrm { a n d } \\qquad R _ { \\alpha } ^ { \\prime } ( s , a _ { \\alpha } , s ^ { \\prime } ) = R _ { \\alpha } ( s , a _ { \\alpha } , a _ { \\nu } , s ^ { \\prime } ) ,\n$$",
|
| 300 |
+
"text_format": "latex",
|
| 301 |
+
"bbox": [
|
| 302 |
+
253,
|
| 303 |
+
694,
|
| 304 |
+
741,
|
| 305 |
+
712
|
| 306 |
+
],
|
| 307 |
+
"page_idx": 2
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"type": "text",
|
| 311 |
+
"text": "where the victim’s action is sampled from the stochastic policy $a _ { \\nu } \\sim \\pi _ { \\nu } ( \\cdot \\mid s )$ . The goal of the attacker is to find an adversarial policy $\\pi _ { \\alpha }$ maximizing the sum of discounted rewards: ",
|
| 312 |
+
"bbox": [
|
| 313 |
+
176,
|
| 314 |
+
714,
|
| 315 |
+
823,
|
| 316 |
+
743
|
| 317 |
+
],
|
| 318 |
+
"page_idx": 2
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"type": "equation",
|
| 322 |
+
"img_path": "images/ad21be910b629356f0d71badbef7892f53b1838688ea7cf4eebeb074d95b9c2d.jpg",
|
| 323 |
+
"text": "$$\n\\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } R _ { \\alpha } \\big ( s ^ { ( t ) } , a _ { \\alpha } ^ { ( t ) } , s ^ { ( t + 1 ) } \\big ) , \\quad \\mathrm { w h e r e ~ } s ^ { ( t + 1 ) } \\sim T _ { \\alpha } \\big ( s ^ { ( t ) } , a _ { \\alpha } ^ { ( t ) } \\big ) \\mathrm { ~ a n d ~ } a _ { \\alpha } \\sim \\pi _ { \\alpha } \\big ( \\cdot \\big \\vert s ^ { ( t ) } \\big ) .\n$$",
|
| 324 |
+
"text_format": "latex",
|
| 325 |
+
"bbox": [
|
| 326 |
+
223,
|
| 327 |
+
747,
|
| 328 |
+
772,
|
| 329 |
+
786
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "Note the MDP’s dynamics $T _ { \\alpha }$ will be unknown even if the Markov game’s dynamics $T$ are known since the victim policy $\\pi _ { \\nu }$ is a black-box. Consequently, the attacker must solve an RL problem. ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
789,
|
| 339 |
+
825,
|
| 340 |
+
818
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "4 FINDING ADVERSARIAL POLICIES ",
|
| 347 |
+
"text_level": 1,
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
837,
|
| 351 |
+
491,
|
| 352 |
+
853
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 2
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "We demonstrate the existence of adversarial policies in zero-sum simulated robotics games. First, we describe how the victim policies were trained and the environments they operate in. Subsequently, we provide details of our attack method in these environments, and describe several baselines. Finally, we present a quantitative and qualitative evaluation of the adversarial policies and baseline opponents. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
867,
|
| 362 |
+
825,
|
| 363 |
+
924
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "image",
|
| 369 |
+
"img_path": "images/63ad992ade8713c264a87ecf74028ea92cf983b9f0479c76b2508ed9933371d0.jpg",
|
| 370 |
+
"image_caption": [
|
| 371 |
+
"Figure 2: Illustrations of the zero-sum simulated robotics games from Bansal et al. (2018a) we use for evaluation. Environments are further described in Section 4.1. "
|
| 372 |
+
],
|
| 373 |
+
"image_footnote": [],
|
| 374 |
+
"bbox": [
|
| 375 |
+
181,
|
| 376 |
+
101,
|
| 377 |
+
818,
|
| 378 |
+
212
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "text",
|
| 384 |
+
"text": "4.1 ENVIRONMENTS AND VICTIM POLICIES ",
|
| 385 |
+
"text_level": 1,
|
| 386 |
+
"bbox": [
|
| 387 |
+
176,
|
| 388 |
+
281,
|
| 389 |
+
490,
|
| 390 |
+
295
|
| 391 |
+
],
|
| 392 |
+
"page_idx": 3
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"type": "text",
|
| 396 |
+
"text": "We attack victim policies for the zero-sum simulated robotics games created by Bansal et al. (2018a), illustrated in Figure 2. The victims were trained in pairs via self-play against random old versions of their opponent, for between 680 and 1360 million timesteps. We use the pre-trained policy weights released in the “agent zoo” of Bansal et al. (2018b). In symmetric environments, the zoo agents are labeled ZooN where $N$ is a random seed. In asymmetric environments, they are labeled ZooVN and ZooON representing the Victim and Opponent agents. ",
|
| 397 |
+
"bbox": [
|
| 398 |
+
174,
|
| 399 |
+
308,
|
| 400 |
+
825,
|
| 401 |
+
391
|
| 402 |
+
],
|
| 403 |
+
"page_idx": 3
|
| 404 |
+
},
|
| 405 |
+
{
|
| 406 |
+
"type": "text",
|
| 407 |
+
"text": "All environments are two-player games in the MuJoCo robotics simulator. Both agents observe the position, velocity and contact forces of joints in their body, and the position of their opponent’s joints. The episodes end when a win condition is triggered, or after a time limit, in which case the agents draw. We evaluate in all environments from Bansal et al. (2018a) except for Run to Goal, which we omit as the setup is identical to You Shall Not Pass except for the win condition. We describe the environments below, and specify the number of trained zoo policies and their type (MLP or LSTM): ",
|
| 408 |
+
"bbox": [
|
| 409 |
+
174,
|
| 410 |
+
398,
|
| 411 |
+
825,
|
| 412 |
+
483
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 3
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Kick and Defend (3, LSTM). A soccer penalty shootout between two Humanoid robots. The positions of the kicker, goalie and ball are randomly initialized. The kicker wins if the ball goes between the goalposts; otherwise, the goalie wins, provided it remains within 3 units of the goal. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
176,
|
| 421 |
+
489,
|
| 422 |
+
823,
|
| 423 |
+
531
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 3
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "You Shall Not Pass (1, MLP). Two Humanoid agents are initialized facing each other. The runner wins if it reaches the finish line; the blocker wins if it does not. ",
|
| 430 |
+
"bbox": [
|
| 431 |
+
174,
|
| 432 |
+
537,
|
| 433 |
+
821,
|
| 434 |
+
566
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "Sumo Humans (3, LSTM). Two Humanoid agents compete on a round arena. The players’ positions are randomly initialized. A player wins by remaining standing after their opponent has fallen.2 ",
|
| 441 |
+
"bbox": [
|
| 442 |
+
174,
|
| 443 |
+
574,
|
| 444 |
+
821,
|
| 445 |
+
602
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "text",
|
| 451 |
+
"text": "Sumo Ants (4, LSTM). The same task as Sumo Humans, but with ‘Ant’ quadrupedal robot bodies. \nWe use this task in Section 5.2 to investigate the importance of dimensionality to this attack method. ",
|
| 452 |
+
"bbox": [
|
| 453 |
+
173,
|
| 454 |
+
608,
|
| 455 |
+
825,
|
| 456 |
+
637
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "4.2 METHODS EVALUATED ",
|
| 463 |
+
"text_level": 1,
|
| 464 |
+
"bbox": [
|
| 465 |
+
176,
|
| 466 |
+
656,
|
| 467 |
+
374,
|
| 468 |
+
670
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "Following the RL formulation in Section 3, we train an adversarial policy to maximize Equation 1 using Proximal Policy Optimization (PPO; Schulman et al., 2017). We give a sparse reward at the end of the episode, positive when the adversary wins the game and negative when it loses or ties. Bansal et al. (2018a) trained the victim policies using a similar reward, with an additional dense component at the start of training. We train for 20 million timesteps using the PPO implementation from Stable Baselines (Hill et al., 2019). The hyperparameters were selected through a combination of manual tuning and a random search of 100 samples; see Section A in the appendix for details. We compare our methods to three baselines: a policy Rand taking random actions; a lifeless policy Zero that exerts zero control; and all pre-trained policies $\\operatorname { Z O O } \\star$ from Bansal et al. (2018a). ",
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
683,
|
| 478 |
+
825,
|
| 479 |
+
809
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "4.3 RESULTS ",
|
| 486 |
+
"text_level": 1,
|
| 487 |
+
"bbox": [
|
| 488 |
+
174,
|
| 489 |
+
828,
|
| 490 |
+
277,
|
| 491 |
+
842
|
| 492 |
+
],
|
| 493 |
+
"page_idx": 3
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"type": "text",
|
| 497 |
+
"text": "Quantitative Evaluation We find the adversarial policies reliably win against most victim policies, and outperform the pre-trained $\\mathrm { { } } Z \\circ \\circ$ baseline for a majority of environments and victims. We report ",
|
| 498 |
+
"bbox": [
|
| 499 |
+
176,
|
| 500 |
+
854,
|
| 501 |
+
825,
|
| 502 |
+
883
|
| 503 |
+
],
|
| 504 |
+
"page_idx": 3
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"type": "image",
|
| 508 |
+
"img_path": "images/5fdb97b1cc131433ce97f556e45f0533c0970fc1aceba0d83f92e8aac651a348.jpg",
|
| 509 |
+
"image_caption": [
|
| 510 |
+
"Figure 3: Win rates while training adversary Adv against the median victim in each environment (based on the difference between the win rate for Adv and Zoo). The adversary outperforms the $\\mathrm { { } ^ { \\it { Z } O O } }$ baseline against the median victim in Kick and Defend and You Shall Not Pass, and is competitive on Sumo Humans. For full results, see figure 4 below or figure C.1 in the supplementary material. "
|
| 511 |
+
],
|
| 512 |
+
"image_footnote": [],
|
| 513 |
+
"bbox": [
|
| 514 |
+
171,
|
| 515 |
+
103,
|
| 516 |
+
815,
|
| 517 |
+
289
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Key: The solid line shows the median win rate for Adv across 5 random seeds, with the shaded region representing the minimum and maximum. The win rate is smoothed with a rolling average over 100 000 timesteps. Baselines are shown as horizontal dashed lines. Agents Rand and Zero take random and zero actions respectively. The $\\mathrm { { } ^ { \\it { Z } O O } }$ baseline is whichever ZooM (Sumo) or ZooOM (other environments) agent achieves the highest win rate. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the title above each figure. ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
173,
|
| 526 |
+
369,
|
| 527 |
+
825,
|
| 528 |
+
454
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "the win rate over time against the median victim in each environment in Figure 3, with full results in Figure C.1 in the supplementary material. Win rates against all victims are summarized in Figure 4. ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
174,
|
| 537 |
+
488,
|
| 538 |
+
823,
|
| 539 |
+
517
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "Qualitative Evaluation The adversarial policies beat the victim not by performing the intended task (e.g. blocking a goal), but rather by exploiting weaknesses in the victim’s policy. This effect is best seen by watching the videos at https://adversarialpolicies.github.io/. In Kick and Defend and You Shall Not Pass, the adversarial policy never stands up. The adversary instead wins by positioning their body to induce adversarial observations that cause the victim’s policy to take poor actions. A robust victim could easily win, a result we demonstrate in Section 5.1. ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
173,
|
| 548 |
+
523,
|
| 549 |
+
825,
|
| 550 |
+
608
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "This flavor of attacks is impossible in Sumo Humans, since the adversarial policy immediately loses if it falls over. Faced with this control constraint, the adversarial policy learns a more high-level strategy: it kneels in the center in a stable position. Surprisingly, this is very effective against victim 1, which in $8 8 \\%$ of cases falls over attempting to tackle the adversary. However, it proves less effective against victims 2 and 3, achieving only a $62 \\%$ and $45 \\%$ win rate, below $\\mathrm { { } } Z \\circ \\circ$ baselines. We further explore the importance of the number of dimensions the adversary can safely manipulate in Section 5.2. ",
|
| 557 |
+
"bbox": [
|
| 558 |
+
174,
|
| 559 |
+
614,
|
| 560 |
+
825,
|
| 561 |
+
698
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 4
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "text",
|
| 567 |
+
"text": "Distribution Shift One might wonder if the adversarial policies win because they are outside the training distribution of the victim. To test this, we evaluate victims against two simple off-distribution baselines: a random policy Rand (green) and a lifeless policy Zero (red). These baselines win as often as $30 \\%$ to $50 \\%$ in Kick and Defend, but less than $1 \\%$ of the time in Sumo and You Shall Not Pass. This is well below the performance of our adversarial policies. We conclude that most victim policies are robust to off-distribution observations that are not adversarially optimized. ",
|
| 568 |
+
"bbox": [
|
| 569 |
+
174,
|
| 570 |
+
704,
|
| 571 |
+
825,
|
| 572 |
+
789
|
| 573 |
+
],
|
| 574 |
+
"page_idx": 4
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"type": "text",
|
| 578 |
+
"text": "5 UNDERSTANDING ADVERSARIAL POLICIES ",
|
| 579 |
+
"text_level": 1,
|
| 580 |
+
"bbox": [
|
| 581 |
+
174,
|
| 582 |
+
818,
|
| 583 |
+
565,
|
| 584 |
+
833
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 4
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "In the previous section we demonstrated adversarial policies exist for victims in a range of competitive simulated robotics environments. In this section, we focus on understanding why these policies exist. Specifically, we establish that adversarial policies manipulate the victim through their body position; that victims are more vulnerable to adversarial policies in high-dimensional environments; and that activations of the victim’s policy network differ substantially when playing an adversarial opponent. ",
|
| 591 |
+
"bbox": [
|
| 592 |
+
174,
|
| 593 |
+
853,
|
| 594 |
+
825,
|
| 595 |
+
924
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 4
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "image",
|
| 601 |
+
"img_path": "images/6ec52e417bcb3e7267f3fb29820029d441bddf2af7832124fe38958859ecbb0c.jpg",
|
| 602 |
+
"image_caption": [
|
| 603 |
+
"Figure 4: Percentage of games won by opponent (out of 1000), the maximal cell in each row is in red. Key: Agents ZooYN are pre-trained policies from Bansal et al. (2018a), where $Y \\in \\{ { } ^ { \\cdot } V ^ { \\prime } , { } ^ { \\cdot } O ^ { \\prime } , { } ^ { \\cdot \\prime } \\}$ denotes the agent plays as (V)ictim, (O)pponent or either side, and $N$ is a random seed. Opponents AdvN are the best adversarial policy of 5 seeds trained against the corresponding Zoo[V]N. Agents Rand and $\\mathtt { Z e r o }$ are baseline agents taking random and zero actions respectively. Defended victims ZooXYN, where $X \\in \\{ \\cdot S ^ { \\prime } , \\cdot \\bar { D ^ { \\prime } } , \\cdot M ^ { \\prime } \\}$ , are derived from ZooYN by fine-tuning against a (S)ingle opponent AdvN, $\\mathbf { ( D ) }$ ual opponents AdvN and Zoo[O]N, or by (M)asking the observations. "
|
| 604 |
+
],
|
| 605 |
+
"image_footnote": [],
|
| 606 |
+
"bbox": [
|
| 607 |
+
178,
|
| 608 |
+
102,
|
| 609 |
+
823,
|
| 610 |
+
454
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 5
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "(a) Gaussian Mixture Model (GMM): likelihood the activations of a victim’s policy network are “normal”. We collect activations for 20, 000 timesteps of victim Zoo[V]1 playing against each opponent. We fit a 20-component GMM to activations induced by Zoo[O]1. Error bars are a $9 5 \\%$ confidence interval. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
174,
|
| 619 |
+
761,
|
| 620 |
+
490,
|
| 621 |
+
838
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 5
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "image",
|
| 627 |
+
"img_path": "images/ad1157c8cc95837c6beb757ea670845f8bdc73f610576c66c9a437afeabcc62f.jpg",
|
| 628 |
+
"image_caption": [
|
| 629 |
+
"(b) t-SNE activations of Kick and Defend victim ZooV2 playing against different opponents. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. See Figures C.3 and C.4 in the supplementary results for visualizations of other environments and victims. "
|
| 630 |
+
],
|
| 631 |
+
"image_footnote": [],
|
| 632 |
+
"bbox": [
|
| 633 |
+
176,
|
| 634 |
+
574,
|
| 635 |
+
808,
|
| 636 |
+
755
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 5
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Figure 5: Analysis of activations of the victim’s policy network. Both figures show the adversary Adv induces off-distribution activations. Key: legends specify opponent the victim played against. Adv is the best adversary trained against the victim, and Rand is a policy taking random actions. $\\mathrm { ~ Z 0 O } \\star \\mathrm { N }$ corresponds to ZooN (Sumo) or ZooON (otherwise). ${ \\mathrm { 2 0 0 } } \\star { \\mathrm { 1 T } }$ and ${ \\mathsf { Z } } { \\mathsf { O } } { \\mathsf { O } } \\star { \\mathsf { 1 } } { \\mathsf { V } }$ are the train and validation datasets, drawn from Zoo1 (Sumo) or ZooO1 (otherwise). ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
173,
|
| 645 |
+
849,
|
| 646 |
+
826,
|
| 647 |
+
920
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 5
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "5.1 MASKED POLICIES ",
|
| 654 |
+
"text_level": 1,
|
| 655 |
+
"bbox": [
|
| 656 |
+
176,
|
| 657 |
+
103,
|
| 658 |
+
346,
|
| 659 |
+
117
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 6
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "text",
|
| 665 |
+
"text": "We have previously shown that adversarial policies are able to reliably win against victims. In this section, we demonstrate that they win by taking actions to induce natural observations that are adversarial to the victim, and not by physically interfering with the victim. To test this, we introduce a ‘masked‘ victim (labeled ZooMN or ZooMVN) that is the same as the normal victim ZooN or ZooVN, except the observation of the adversary’s position is set to a static value corresponding to a typical initial position. We use the same adversarial policy against the normal and masked victim. ",
|
| 666 |
+
"bbox": [
|
| 667 |
+
174,
|
| 668 |
+
130,
|
| 669 |
+
825,
|
| 670 |
+
213
|
| 671 |
+
],
|
| 672 |
+
"page_idx": 6
|
| 673 |
+
},
|
| 674 |
+
{
|
| 675 |
+
"type": "text",
|
| 676 |
+
"text": "One would expect it to be beneficial to be able to see your opponent. Indeed, the masked victims do worse than a normal victim when playing normal opponents. For example, Figure 4b shows that in You Shall Not Pass the normal opponent ZooO1 wins $78 \\%$ of the time against the masked victim ZooMV1 but only $47 \\%$ of the time against the normal victim ZooV1. However, the relationship is reversed when playing an adversary. The normal victim $\\mathrm { ~ Z o o V 1 }$ loses $86 \\%$ of the time to adversary Adv1 whereas the masked victim ZooMV1 wins $9 9 \\%$ of the time. This pattern is particularly clear in You Shall Not Pass, but the trend is similar in other environments. ",
|
| 677 |
+
"bbox": [
|
| 678 |
+
174,
|
| 679 |
+
220,
|
| 680 |
+
825,
|
| 681 |
+
318
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "This result is surprising as it implies highly non-transitive relationships may exist between policies even in games that seem to be transitive. A game is said to be transitive if policies can be ranked such that higher-ranked policies beat lower-ranked policies. Prima facie, the games in this paper seem transitive: professional human soccer players and sumo wrestlers can reliably beat amateurs. Despite this, there is a non-transitive relationship between adversarial policies, victims and masked victims. Consequently, we urge caution when using methods such as self-play that assume transitivity, and would recommend more general methods where practical (Balduzzi et al., 2019; Brown et al., 2019). ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
324,
|
| 691 |
+
825,
|
| 692 |
+
422
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 6
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Our findings also suggest a trade-off in the size of the observation space. In benign environments, allowing more observation of the environment increases performance. However, this also makes the agent more vulnerable to adversaries. This is in contrast to an idealized Bayesian agent, where the value of information is always non-negative (Good, 1967). In the following section, we investigate further the connection between vulnerability to attack and the size of the observation space. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
174,
|
| 701 |
+
429,
|
| 702 |
+
825,
|
| 703 |
+
500
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 6
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "5.2 DIMENSIONALITY ",
|
| 710 |
+
"text_level": 1,
|
| 711 |
+
"bbox": [
|
| 712 |
+
176,
|
| 713 |
+
517,
|
| 714 |
+
339,
|
| 715 |
+
531
|
| 716 |
+
],
|
| 717 |
+
"page_idx": 6
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"type": "text",
|
| 721 |
+
"text": "A variety of work has concluded that classifiers are more vulnerable to adversarial examples on highdimensional inputs (Gilmer et al., 2018b; Khoury and Hadfield-Menell, 2018; Shafahi et al., 2019). We hypothesize a similar result for RL policies: the greater the dimensionality of the component $P$ of the observation space under control of the adversary, the more vulnerable the victim is to attack. We test this hypothesis in the Sumo environment, varying whether the agents are Ants or Humanoids. The results in Figures 4c and 4d support the hypothesis. The adversary has a much lower win-rate in the low-dimensional Sumo Ants (dim $1 P = 1 5$ ) environment than in the higher dimensional Sumo Humans (d $\\operatorname* { l i m } P = 2 4$ ) environment, where $P$ is the position of the adversary’s joints. ",
|
| 722 |
+
"bbox": [
|
| 723 |
+
174,
|
| 724 |
+
544,
|
| 725 |
+
826,
|
| 726 |
+
655
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 6
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "5.3 VICTIM ACTIVATIONS ",
|
| 733 |
+
"text_level": 1,
|
| 734 |
+
"bbox": [
|
| 735 |
+
176,
|
| 736 |
+
674,
|
| 737 |
+
367,
|
| 738 |
+
688
|
| 739 |
+
],
|
| 740 |
+
"page_idx": 6
|
| 741 |
+
},
|
| 742 |
+
{
|
| 743 |
+
"type": "text",
|
| 744 |
+
"text": "In Section 5.1 we showed that adversarial policies win by creating natural observations that are adversarial to the victim. In this section, we seek to better understand why these observations are adversarial. We record activations from each victim’s policy network playing a range of opponents, and analyze these using a Gaussian Mixture Model (GMM) and a t-SNE visualization. See Section B in the supplementary material for details of training and hyperparameters. ",
|
| 745 |
+
"bbox": [
|
| 746 |
+
174,
|
| 747 |
+
700,
|
| 748 |
+
825,
|
| 749 |
+
770
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 6
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "We fit a GMM on activations ${ \\mathrm { Z o o } } \\star 1 { \\mathrm { T } }$ collected playing against a normal opponent, Zoo1 or ZooV1, holding out ${ \\mathrm { 2 0 0 + 1 0 } }$ for validation. Figure 5a shows that the adversarial policy Adv induces activations with the lowest log-likelihood, with random baseline Rand only slightly more probable. Normal opponents ${ \\mathrm { Z o o } } \\star 2$ and $\\mathrm { Z o o } { \\star 3 }$ induce activations with almost as high likelihood as the validation set ${ \\mathrm { 2 0 0 \\star 1 0 } }$ , except in Sumo Humans where they are as unlikely as Rand. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
174,
|
| 758 |
+
777,
|
| 759 |
+
825,
|
| 760 |
+
847
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 6
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "We plot a t-SNE visualization of the activations of Kick and Defend victim ZooV2 in Figure 5b. As expected from the density model results, there is a clear separation between between Adv, Rand and the normal opponent ZooO2. Intriguingly, Adv induces activations more widely dispersed than the random policy Rand, which in turn are more widely dispersed than ZooO2. We report on the full set of victim policies in Figures C.3 and C.4 in the supplementary material. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
174,
|
| 769 |
+
853,
|
| 770 |
+
825,
|
| 771 |
+
924
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 6
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "6 DEFENDING AGAINST ADVERSARIAL POLICIES ",
|
| 778 |
+
"text_level": 1,
|
| 779 |
+
"bbox": [
|
| 780 |
+
173,
|
| 781 |
+
102,
|
| 782 |
+
601,
|
| 783 |
+
118
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 7
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "The ease with which policies can be attacked highlights the need for effective defenses. A natural defense is to fine-tune the victim zoo policy against an adversary, which we term single training. We also investigate dual training, randomly picking either an adversary or a zoo policy at the start of each episode. The training procedure is otherwise the same as for adversaries, described in Section 4.2. ",
|
| 790 |
+
"bbox": [
|
| 791 |
+
174,
|
| 792 |
+
133,
|
| 793 |
+
825,
|
| 794 |
+
189
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 7
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "text",
|
| 800 |
+
"text": "We report on the win rates in You Shall Not Pass in Figure 4b. We find both the single ZooSV1 and dual ZooDV1 fine-tuned victims are robust to adversary Adv1, with the adversary win rate dropping from $87 \\%$ to around $10 \\%$ . However, ZooSV1 catastrophically forgets how to play against the normal opponent ZooO1. The dual fine-tuned victim ZooDV1 fares better, with opponent ZooO1 winning only $57 \\%$ of the time. However, this is still an increase from ZooO1’s $48 \\%$ win rate against the original victim ZooV1. This suggests ZooV1 may use features that are helpful against a normal opponent but which are easily manipulable (Ilyas et al., 2019). ",
|
| 801 |
+
"bbox": [
|
| 802 |
+
174,
|
| 803 |
+
195,
|
| 804 |
+
825,
|
| 805 |
+
295
|
| 806 |
+
],
|
| 807 |
+
"page_idx": 7
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"type": "text",
|
| 811 |
+
"text": "Although the fine-tuned victims are robust to the original adversarial policy Adv1, they are still vulnerable to our attack method. New adversaries AdvS1 and AdvD1 trained against ZooSV1 and ZooDV1 win at equal or greater rates than before, and transfer successfully to the original victim. However, the new adversaries AdvS1 and AdvD1 are qualitatively different, tripping the victim up by lying prone on the ground, whereas Adv1 causes ZooV1 to fall without ever touching it. ",
|
| 812 |
+
"bbox": [
|
| 813 |
+
174,
|
| 814 |
+
301,
|
| 815 |
+
825,
|
| 816 |
+
371
|
| 817 |
+
],
|
| 818 |
+
"page_idx": 7
|
| 819 |
+
},
|
| 820 |
+
{
|
| 821 |
+
"type": "text",
|
| 822 |
+
"text": "7 DISCUSSION ",
|
| 823 |
+
"text_level": 1,
|
| 824 |
+
"bbox": [
|
| 825 |
+
176,
|
| 826 |
+
390,
|
| 827 |
+
310,
|
| 828 |
+
407
|
| 829 |
+
],
|
| 830 |
+
"page_idx": 7
|
| 831 |
+
},
|
| 832 |
+
{
|
| 833 |
+
"type": "text",
|
| 834 |
+
"text": "Contributions. Our paper makes three key contributions. First, we have proposed a novel threat model of natural adversarial observations produced by an adversarial policy taking actions in a shared environment. Second, we demonstrate that adversarial policies exist in a range of zero-sum simulated robotics games against state-of-the-art victims trained via self-play to be robust to adversaries. Third, we verify the adversarial policies win by confusing the victim, not by learning a generally strong policy. Specifically, we find the adversary induces highly off-distribution activations in the victim, and that victim performance increases when it is blind to the adversary’s position. ",
|
| 835 |
+
"bbox": [
|
| 836 |
+
174,
|
| 837 |
+
421,
|
| 838 |
+
825,
|
| 839 |
+
520
|
| 840 |
+
],
|
| 841 |
+
"page_idx": 7
|
| 842 |
+
},
|
| 843 |
+
{
|
| 844 |
+
"type": "text",
|
| 845 |
+
"text": "Self-play. While it may at first appear unsurprising that a policy trained as an adversary against another RL policy would be able to exploit it, we believe that this observation is highly significant. The policies we have attacked were explicitly trained via self-play to be robust. Although it is known that self-play with deep RL may not converge, or converge only to a local rather than global Nash, self-play has been used with great success in a number of works focused on playing adversarial games directly against humans (Silver et al., 2018; OpenAI, 2018). Our work shows that even apparently strong self-play policies can harbor serious but hard to find failure modes, demonstrating these theoretical limitations are practically relevant and highlighting the need for careful testing. ",
|
| 846 |
+
"bbox": [
|
| 847 |
+
174,
|
| 848 |
+
526,
|
| 849 |
+
825,
|
| 850 |
+
638
|
| 851 |
+
],
|
| 852 |
+
"page_idx": 7
|
| 853 |
+
},
|
| 854 |
+
{
|
| 855 |
+
"type": "text",
|
| 856 |
+
"text": "Our attack provides some amount of testing by constructively lower-bounding the exploitability of a victim policy – its performance against its worst-case opponent – by training an adversary. Since the victim’s win rate declines against our adversarial policy, we can confirm that the victim and its self-play opponent were not in a global Nash. Notably we expect our attack to succeed even for policies in a local Nash, as the adversary is trained starting from a random point that is likely outside the victim’s attractive basin. ",
|
| 857 |
+
"bbox": [
|
| 858 |
+
174,
|
| 859 |
+
645,
|
| 860 |
+
825,
|
| 861 |
+
728
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 7
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "Defense. We implemented a simple defense: fine-tuning the victim against the adversary. We find our attack can be successfully reapplied to beat this defense, suggesting adversarial policies are difficult to eliminate. However, the defense does appear to protect against attacks that rely on confusing the victim: the new adversarial policy is forced to instead trip the victim up. We therefore believe that scaling up this defense is a promising direction for future work. In particular, we envisage a variant of population-based training where new agents are continually added to the pool to promote diversity, and agents train against a fixed opponent for a prolonged period of time to avoid local equilibria. ",
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
736,
|
| 871 |
+
825,
|
| 872 |
+
833
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 7
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "Conclusion. Overall, we are excited about the implications the adversarial policy model has for the robustness, security and understanding of deep RL policies. Our results show the existence of a previously unrecognized problem in deep RL, and we hope this work encourages other researchers to investigate this area further. Videos and other supplementary material are available online at https://adversarialpolicies.github.io/ and our source code is available on GitHub at https://github.com/HumanCompatibleAI/adversarial-policies. ",
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
840,
|
| 882 |
+
825,
|
| 883 |
+
924
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 890 |
+
"text_level": 1,
|
| 891 |
+
"bbox": [
|
| 892 |
+
176,
|
| 893 |
+
104,
|
| 894 |
+
326,
|
| 895 |
+
117
|
| 896 |
+
],
|
| 897 |
+
"page_idx": 8
|
| 898 |
+
},
|
| 899 |
+
{
|
| 900 |
+
"type": "text",
|
| 901 |
+
"text": "We thank Jakob Foerster, Matthew Rahtz, Dylan Hadfield-Menell, Catherine Olsson, Jan Leike, Rohin Shah, Victoria Krakovna, Daniel Filan, Steven Wang, Dawn Song, Sam Toyer and Dan Hendrycks for their suggestion and helpful feedback on earlier drafts of this paper. We thank Chris Northwood for assistance developing the website accompanying this paper. We are also grateful to our anonymous reviewers for valuable feedback and encouragement to explore defenses in this paper. ",
|
| 902 |
+
"bbox": [
|
| 903 |
+
174,
|
| 904 |
+
127,
|
| 905 |
+
825,
|
| 906 |
+
196
|
| 907 |
+
],
|
| 908 |
+
"page_idx": 8
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"type": "text",
|
| 912 |
+
"text": "REFERENCES ",
|
| 913 |
+
"text_level": 1,
|
| 914 |
+
"bbox": [
|
| 915 |
+
174,
|
| 916 |
+
218,
|
| 917 |
+
285,
|
| 918 |
+
233
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 8
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "J. Andrew Bagnell, Andrew Y. Ng, and Jeff G. Schneider. Solving uncertain Markov decision processes. Technical Report CMU-RI-TR-01-25, August 2001. \nDavid Balduzzi, Marta Garnelo, Yoram Bachrach, Wojciech M. Czarnecki, Julien Pérolat, Max Jaderberg, and Thore Graepel. Open-ended learning in symmetric zero-sum games. arXiv:1901.08106v1 [cs.LG], 2019. \nTrapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Emergent complexity via multi-agent competition. In Proceedings of the International Conference on Learning Representations (ICLR), 2018a. \nTrapit Bansal, Jakub Pachocki, Szymon Sidor, Ilya Sutskever, and Igor Mordatch. Source code and model weights for emergent complexity via multi-agent competition, 2018b. URL https: //github.com/openai/multiagent-competition. \nOsbert Bastani, Yewen Pu, and Armando Solar-Lezama. Verifiable reinforcement learning via policy extraction. In Advances in Neural Information Processing Systems (NeurIPS), pages 2494–2504. 2018. \nNoam Brown, Adam Lerer, Sam Gross, and Tuomas Sandholm. Deep counterfactual regret minimization. In Proceedings of the International Conference on Machine Learning (ICML), 2019. \nAlexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In Proceedings of the Conference on Robot Learning (CoRL), volume 78, pages 1–16, 2017. \nJohn Doyle, James A. Primbs, Benjamin Shapiro, and Vesna Nevistic. Nonlinear games: examples ´ and counterexamples. In Proceedings of IEEE Conference on Decision and Control (CDC), volume 4, pages 3915–3920, 1996. \nShromona Ghosh, Felix Berkenkamp, Gireeja Ranade, Shaz Qadeer, and Ashish Kapoor. Verifying controllers against adversarial examples with Bayesian optimization. In IEEE International Conference on Robotics and Automation (ICRA), pages 7306–7313, 2018. \nJustin Gilmer, Ryan P. Adams, Ian Goodfellow, David Andersen, and George E. Dahl. Motivating the rules of the game for adversarial example research. arXiv:1807.06732v2 [cs.LG], 2018a. \nJustin Gilmer, Luke Metz, Fartash Faghri, Samuel S. Schoenholz, Maithra Raghu, Martin Wattenberg, and Ian Goodfellow. Adversarial spheres. arXiv:1801.02774v3 [cs.CV], 2018b. \nI.J. Good. On the principle of total evidence. The British Journal for the Philosophy of Science, 17 (4):319–321, 1967. \nIan Goodfellow, Nicolas Papernot, Sandy Huang, Yan Duan, Pieter Abbeel, and Jack Clark. Attacking machine learning with adversarial examples. https://openai.com/blog/ adversarial-example-research/, 2017. \nAshley Hill, Antonin Raffin, Maximilian Ernestus, Adam Gleave, Anssi Kanervisto, Rene Traore, Prafulla Dhariwal, Christopher Hesse, Oleg Klimov, Alex Nichol, Matthias Plappert, Alec Radford, John Schulman, Szymon Sidor, and Yuhuai Wu. Stable Baselines. https://github.com/ hill-a/stable-baselines, 2019. \nSandy H. Huang, Nicolas Papernot, Ian J. Goodfellow, Yan Duan, and Pieter Abbeel. Adversarial attacks on neural network policies. arXiv:1702.02284v1 [cs.LG], 2017. ",
|
| 925 |
+
"bbox": [
|
| 926 |
+
169,
|
| 927 |
+
233,
|
| 928 |
+
828,
|
| 929 |
+
924
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 8
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Andrew Ilyas, Shibani Santurkar, Dimitris Tsipras, Logan Engstrom, Brandon Tran, and Aleksander Madry. Adversarial examples are not bugs, they are features. arXiv:1905.02175v4 [stat.ML], 2019. ",
|
| 936 |
+
"bbox": [
|
| 937 |
+
171,
|
| 938 |
+
103,
|
| 939 |
+
825,
|
| 940 |
+
132
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 9
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "text",
|
| 946 |
+
"text": "Marc Khoury and Dylan Hadfield-Menell. On the geometry of adversarial examples. arXiv:1811.00525v1 [cs.LG], 2018. ",
|
| 947 |
+
"bbox": [
|
| 948 |
+
173,
|
| 949 |
+
141,
|
| 950 |
+
823,
|
| 951 |
+
170
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 9
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "text",
|
| 957 |
+
"text": "Jernej Kos and Dawn Song. Delving into adversarial attacks on deep policies. arXiv:1705.06452v1 [stat.ML], 2017. ",
|
| 958 |
+
"bbox": [
|
| 959 |
+
171,
|
| 960 |
+
179,
|
| 961 |
+
823,
|
| 962 |
+
208
|
| 963 |
+
],
|
| 964 |
+
"page_idx": 9
|
| 965 |
+
},
|
| 966 |
+
{
|
| 967 |
+
"type": "text",
|
| 968 |
+
"text": "Marc Lanctot, Vinicius Zambaldi, Audrunas Gruslys, Angeliki Lazaridou, Karl Tuyls, Julien Perolat, David Silver, and Thore Graepel. A unified game-theoretic approach to multiagent reinforcement learning. In Advances in Neural Information Processing Systems (NeurIPS), pages 4190–4203, 2017. ",
|
| 969 |
+
"bbox": [
|
| 970 |
+
173,
|
| 971 |
+
215,
|
| 972 |
+
826,
|
| 973 |
+
272
|
| 974 |
+
],
|
| 975 |
+
"page_idx": 9
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"type": "text",
|
| 979 |
+
"text": "Mike Lewis, Denis Yarats, Yann Dauphin, Devi Parikh, and Dhruv Batra. Deal or no deal? End-to-end learning of negotiation dialogues. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2017. ",
|
| 980 |
+
"bbox": [
|
| 981 |
+
174,
|
| 982 |
+
281,
|
| 983 |
+
825,
|
| 984 |
+
324
|
| 985 |
+
],
|
| 986 |
+
"page_idx": 9
|
| 987 |
+
},
|
| 988 |
+
{
|
| 989 |
+
"type": "text",
|
| 990 |
+
"text": "Yen-Chen Lin, Zhang-Wei Hong, Yuan-Hong Liao, Meng-Li Shih, Ming-Yu Liu, and Min Sun. Tactics of adversarial attack on deep reinforcement learning agents. In Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), pages 3756–3762, 2017. ",
|
| 991 |
+
"bbox": [
|
| 992 |
+
174,
|
| 993 |
+
332,
|
| 994 |
+
826,
|
| 995 |
+
376
|
| 996 |
+
],
|
| 997 |
+
"page_idx": 9
|
| 998 |
+
},
|
| 999 |
+
{
|
| 1000 |
+
"type": "text",
|
| 1001 |
+
"text": "Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research (JMLR), 9(Nov):2579–2605, 2008. ",
|
| 1002 |
+
"bbox": [
|
| 1003 |
+
173,
|
| 1004 |
+
383,
|
| 1005 |
+
823,
|
| 1006 |
+
414
|
| 1007 |
+
],
|
| 1008 |
+
"page_idx": 9
|
| 1009 |
+
},
|
| 1010 |
+
{
|
| 1011 |
+
"type": "text",
|
| 1012 |
+
"text": "Ajay Mandlekar, Yuke Zhu, Animesh Garg, Li Fei-Fei, and Silvio Savarese. Adversarially robust policy learning: Active construction of physically-plausible perturbations. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 3932–3939, 2017. ",
|
| 1013 |
+
"bbox": [
|
| 1014 |
+
174,
|
| 1015 |
+
421,
|
| 1016 |
+
826,
|
| 1017 |
+
478
|
| 1018 |
+
],
|
| 1019 |
+
"page_idx": 9
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"type": "text",
|
| 1023 |
+
"text": "Laura Noonan. JPMorgan develops robot to execute trades. Financial Times, July 2017. ",
|
| 1024 |
+
"bbox": [
|
| 1025 |
+
169,
|
| 1026 |
+
487,
|
| 1027 |
+
750,
|
| 1028 |
+
502
|
| 1029 |
+
],
|
| 1030 |
+
"page_idx": 9
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"type": "text",
|
| 1034 |
+
"text": "OpenAI. OpenAI Five. https://blog.openai.com/openai-five/, 2018. ",
|
| 1035 |
+
"bbox": [
|
| 1036 |
+
173,
|
| 1037 |
+
511,
|
| 1038 |
+
730,
|
| 1039 |
+
526
|
| 1040 |
+
],
|
| 1041 |
+
"page_idx": 9
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"type": "text",
|
| 1045 |
+
"text": "Anay Pattanaik, Zhenyi Tang, Shuijing Liu, Gautham Bommannan, and Girish Chowdhary. Robust deep reinforcement learning with adversarial attacks. In Proceedings of the International Conference on Autonomous Agents and MultiAgent System (AAMAS), pages 2040–2042, 2018. ",
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
174,
|
| 1048 |
+
535,
|
| 1049 |
+
826,
|
| 1050 |
+
578
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 9
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "Lerrel Pinto, James Davidson, Rahul Sukthankar, and Abhinav Gupta. Robust adversarial reinforcement learning. In Proceedings of the International Conference on Machine Learning (ICML), volume 70, pages 2817–2826, 2017. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
173,
|
| 1059 |
+
587,
|
| 1060 |
+
826,
|
| 1061 |
+
630
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 9
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "Hadi Ravanbakhsh and Sriram Sankaranarayanan. Robust controller synthesis of switched systems using counterexample guided framework. In Proceedings of the International Conference on Embedded Software (EMSOFT), pages 8:1–8:10, 2016. ",
|
| 1068 |
+
"bbox": [
|
| 1069 |
+
174,
|
| 1070 |
+
637,
|
| 1071 |
+
823,
|
| 1072 |
+
681
|
| 1073 |
+
],
|
| 1074 |
+
"page_idx": 9
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"type": "text",
|
| 1078 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv:1707.06347v2 [cs.LG], 2017. ",
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
169,
|
| 1081 |
+
689,
|
| 1082 |
+
823,
|
| 1083 |
+
719
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Ali Shafahi, W. Ronny Huang, Christoph Studer, Soheil Feizi, and Tom Goldstein. Are adversarial examples inevitable? In Proceedings of the International Conference on Learning Representations (ICLR), 2019. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
173,
|
| 1092 |
+
727,
|
| 1093 |
+
825,
|
| 1094 |
+
770
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Lloyd S. Shapley. Stochastic games. Proceedings of the National Academy of Sciences, 39(10): 1095–1100, 1953. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
169,
|
| 1103 |
+
777,
|
| 1104 |
+
825,
|
| 1105 |
+
808
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 9
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algorithm that masters chess, shogi, and Go through self-play. Science, 362(6419):1140–1144, 2018. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
174,
|
| 1114 |
+
815,
|
| 1115 |
+
826,
|
| 1116 |
+
872
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 9
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In Proceedings of the International Conference on Learning Representations (ICLR), 2014. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
174,
|
| 1125 |
+
882,
|
| 1126 |
+
825,
|
| 1127 |
+
924
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Aviv Tamar, Shie Mannor, and Huan Xu. Scaling up robust MDPs using function approximation. In Proceedings of the International Conference on Machine Learning (ICML), pages II–181–II–189, 2014. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
174,
|
| 1136 |
+
103,
|
| 1137 |
+
825,
|
| 1138 |
+
145
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 10
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Jonathan Uesato, Brendan O’Donoghue, Pushmeet Kohli, and Aaron van den Oord. Adversarial risk and the dangers of evaluating against weak attacks. In Proceedings of the International Conference on Machine Learning (ICML), volume 80, pages 5025–5034, 2018. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
174,
|
| 1147 |
+
155,
|
| 1148 |
+
823,
|
| 1149 |
+
196
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Cihang Xie, Yuxin Wu, Laurens van der Maaten, Alan Yuille, and Kaiming He. Feature denoising for improving adversarial robustness. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2019. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
207,
|
| 1159 |
+
825,
|
| 1160 |
+
248
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "table",
|
| 1166 |
+
"img_path": "images/99d96ecdc4823ee83c61884b27fb4eeac9e230e5980172f5ce90dbc65cc40b0e.jpg",
|
| 1167 |
+
"table_caption": [
|
| 1168 |
+
"A TRAINING: HYPERPARAMETERS AND COMPUTATIONAL INFRASTRUCTURE ",
|
| 1169 |
+
"Table A.1: Hyperparameters for Proximal Policy Optimization. "
|
| 1170 |
+
],
|
| 1171 |
+
"table_footnote": [],
|
| 1172 |
+
"table_body": "<table><tr><td>Parameter</td><td>Value</td><td>Search Range</td><td>Search Distribution</td></tr><tr><td>Total Timesteps</td><td>20 ×106</td><td>[0,40 × 106]</td><td>Manual</td></tr><tr><td>Batch size</td><td>16 384</td><td>[2048, 65 536]</td><td>Log uniform</td></tr><tr><td>Number of environments</td><td>8</td><td>[1,16]</td><td>Manual</td></tr><tr><td>Mini-batches</td><td>4</td><td>[1,128]</td><td>Log uniform</td></tr><tr><td>Epochs per update</td><td>4</td><td>[1,11]</td><td>Uniform</td></tr><tr><td>Learning rate</td><td>3×10-4</td><td>[1 × i0-5,1 × 10-2]</td><td>Log uniform</td></tr><tr><td>Discount</td><td>0.99</td><td></td><td></td></tr><tr><td>Maximum Gradient Norm</td><td>0.5</td><td></td><td></td></tr><tr><td>Clip Range</td><td>0.2</td><td></td><td></td></tr><tr><td>Advantage Estimation Discount</td><td>0.95</td><td></td><td></td></tr><tr><td>Entropy coefficient</td><td>0.0</td><td></td><td></td></tr><tr><td>Value Function Loss Coefficient</td><td>0.5</td><td></td><td></td></tr></table>",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
186,
|
| 1175 |
+
136,
|
| 1176 |
+
810,
|
| 1177 |
+
334
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 11
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "Table A.1 specifies the hyperparameters used for training. The number of environments was chosen for performance reasons after observing diminishing returns from using more than 8 parallel environments. The total timesteps was chosen by inspection after observing diminishing returns to additional training. The batch size, mini-batches, epochs per update, entropy coefficient and learning rate were tuned via a random search with 100 samples on two environments, Kick and Defend and Sumo Humans. All other hyperparameters are the defaults in the PPO2 implementation in Stable Baselines (Hill et al., 2019). ",
|
| 1184 |
+
"bbox": [
|
| 1185 |
+
173,
|
| 1186 |
+
377,
|
| 1187 |
+
825,
|
| 1188 |
+
474
|
| 1189 |
+
],
|
| 1190 |
+
"page_idx": 11
|
| 1191 |
+
},
|
| 1192 |
+
{
|
| 1193 |
+
"type": "text",
|
| 1194 |
+
"text": "We repeated the hyperparameter sweep for fine-tuning victim policies for the defense experiments, but obtained similar results. For simplicity, we therefore chose to use the same hyperparameters throughout. ",
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
174,
|
| 1197 |
+
482,
|
| 1198 |
+
825,
|
| 1199 |
+
523
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 11
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "We used a mixture of in-house and cloud infrastructure to perform these experiments. It takes around 8 hours to train an adversary for a single victim using 4 cores of an Intel Xeon Platinum 8000 (Skylake) processor. ",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
174,
|
| 1208 |
+
531,
|
| 1209 |
+
825,
|
| 1210 |
+
573
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 11
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "text",
|
| 1216 |
+
"text": "B ACTIVATION ANALYSIS: T-SNE AND GMM ",
|
| 1217 |
+
"text_level": 1,
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
174,
|
| 1220 |
+
593,
|
| 1221 |
+
571,
|
| 1222 |
+
609
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 11
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "text",
|
| 1228 |
+
"text": "We collect activations from all feed forward layers of the victim’s policy network. This gives two 64-length vectors, which we concatenate into a single 128-dimension vector for analysis with a Gaussian Mixture Model and a t-SNE representation. ",
|
| 1229 |
+
"bbox": [
|
| 1230 |
+
174,
|
| 1231 |
+
625,
|
| 1232 |
+
825,
|
| 1233 |
+
666
|
| 1234 |
+
],
|
| 1235 |
+
"page_idx": 11
|
| 1236 |
+
},
|
| 1237 |
+
{
|
| 1238 |
+
"type": "text",
|
| 1239 |
+
"text": "B.1 T-SNE HYPERPARAMETER SELECTION ",
|
| 1240 |
+
"text_level": 1,
|
| 1241 |
+
"bbox": [
|
| 1242 |
+
176,
|
| 1243 |
+
684,
|
| 1244 |
+
482,
|
| 1245 |
+
699
|
| 1246 |
+
],
|
| 1247 |
+
"page_idx": 11
|
| 1248 |
+
},
|
| 1249 |
+
{
|
| 1250 |
+
"type": "text",
|
| 1251 |
+
"text": "We fit models with perplexity 5, 10, 20, 50, 75, 100, 250 and 1000. We chose 250 since qualitatively it produced the clearest visualization of data with a moderate number of distinct clusters. ",
|
| 1252 |
+
"bbox": [
|
| 1253 |
+
174,
|
| 1254 |
+
710,
|
| 1255 |
+
825,
|
| 1256 |
+
738
|
| 1257 |
+
],
|
| 1258 |
+
"page_idx": 11
|
| 1259 |
+
},
|
| 1260 |
+
{
|
| 1261 |
+
"type": "text",
|
| 1262 |
+
"text": "B.2 GAUSSIAN MIXTURE MODEL HYPERPARAMETER SELECTION ",
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
174,
|
| 1265 |
+
756,
|
| 1266 |
+
638,
|
| 1267 |
+
770
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 11
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "We fit models with 5, 10, 20, 40 and 80 components with a full (unrestricted) and diagonal covariance matrix. We used the Bayesian Information Criterion (BIC) and average log-likelihood on a heldout validation set as criteria for selecting hyperparameters. We found 20 components with a full covariance matrix achieved the lowest BIC and highest validation log-likelihood in the majority of environment-victim pairs, and was the runner-up in the remainder. ",
|
| 1274 |
+
"bbox": [
|
| 1275 |
+
174,
|
| 1276 |
+
781,
|
| 1277 |
+
825,
|
| 1278 |
+
852
|
| 1279 |
+
],
|
| 1280 |
+
"page_idx": 11
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"type": "text",
|
| 1284 |
+
"text": "C FIGURES ",
|
| 1285 |
+
"text_level": 1,
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
174,
|
| 1288 |
+
871,
|
| 1289 |
+
282,
|
| 1290 |
+
887
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 11
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "Supplementary figures are provided on the subsequent pages. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
174,
|
| 1299 |
+
904,
|
| 1300 |
+
575,
|
| 1301 |
+
917
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 11
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "image",
|
| 1307 |
+
"img_path": "images/5ce8d6572b4355a81fe77b7a828799cb26f91b82c957859a4434c50346bfc21d.jpg",
|
| 1308 |
+
"image_caption": [
|
| 1309 |
+
"Figure C.1: Win rates while training adversary Adv. The adversary exceeds baseline win rates against most victims in Kick and Defend and You Shall Not Pass, is competitive on Sumo Humans, but performs poorly in the low-dimensional Sumo Ants environment. Key: The solid line shows the median win rate for Adv across 5 random seeds, with the shaded region representing the minimum and maximum. The win rate is smoothed with a rolling average over 100 000 timesteps. Baselines are shown as horizontal dashed lines. Agents Rand and Zero take random and zero actions respectively. The Zoo baseline is whichever ZooM (Sumo) or ZooOM (other environments) agent achieves the highest win rate. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the title above each figure. "
|
| 1310 |
+
],
|
| 1311 |
+
"image_footnote": [],
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
169,
|
| 1314 |
+
98,
|
| 1315 |
+
812,
|
| 1316 |
+
791
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 12
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "table",
|
| 1322 |
+
"img_path": "images/d1bd2987326cae10e72f8090ba7d66f7f1b8976519dc5076cf74aa9cbbe307f2.jpg",
|
| 1323 |
+
"table_caption": [
|
| 1324 |
+
"(a) Kick and Defend "
|
| 1325 |
+
],
|
| 1326 |
+
"table_footnote": [],
|
| 1327 |
+
"table_body": "<table><tr><td></td><td colspan=\"7\">Opponent Win</td><td colspan=\"7\">Victim Win</td><td colspan=\"7\">Ties</td><td></td><td></td><td></td></tr><tr><td>ZooV1</td><td>79 53 50</td><td></td><td></td><td>32</td><td>四</td><td>42</td><td>30 30</td><td>21</td><td>4650</td><td></td><td>67</td><td>10</td><td>57</td><td>6461</td><td>0</td><td></td><td>0</td><td>0</td><td>2</td><td>1</td><td>1</td><td>6</td><td>9</td><td>100</td></tr><tr><td>ZooV2</td><td>54</td><td>因</td><td>63</td><td>9</td><td>80</td><td>63</td><td>50 46</td><td>46</td><td>6</td><td>37</td><td>90</td><td>20</td><td>36</td><td>45 44</td><td>0</td><td>0</td><td>0</td><td></td><td>0</td><td>1</td><td>0</td><td>5 10</td><td></td><td>80</td></tr><tr><td>ZooV3</td><td>31 31</td><td></td><td>4</td><td>50</td><td>66</td><td>64</td><td>2629</td><td></td><td>68 67</td><td>回</td><td>47</td><td>33</td><td>35</td><td>68 62</td><td>1</td><td>2</td><td></td><td>0</td><td>3</td><td>0</td><td>2</td><td>5 8</td><td></td><td>60</td></tr><tr><td>ZooMV1</td><td>1517</td><td></td><td>18</td><td>58</td><td>四</td><td>31</td><td>12 13</td><td>84</td><td>83</td><td>82</td><td>40</td><td>19</td><td>69</td><td>8478</td><td>0</td><td>0</td><td></td><td>0</td><td>2</td><td>2</td><td>0</td><td>4 9</td><td></td><td>40</td></tr><tr><td>ZooMV2</td><td>2728</td><td></td><td>27</td><td>36</td><td>因</td><td>42</td><td>2521</td><td></td><td>73 72</td><td>73</td><td>63</td><td>24</td><td>58</td><td>72</td><td>72</td><td>0</td><td>0</td><td>0</td><td>1</td><td>4</td><td>0</td><td>4</td><td>8</td><td></td></tr><tr><td rowspan=\"3\">ZooMV3</td><td>262423</td><td></td><td></td><td></td><td>47 50</td><td>61</td><td>2119</td><td>74</td><td>75</td><td>77</td><td></td><td>51 48</td><td>36</td><td>74 72</td><td></td><td>0</td><td>1</td><td>0</td><td>2</td><td>1</td><td>3</td><td>5</td><td>10</td><td>20</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>1</td><td></td><td></td><td></td><td></td><td></td><td></td><td>1</td><td>1</td><td>1</td><td>1</td><td></td><td>1</td><td>1</td><td></td><td>0</td></tr><tr><td>[APA</td><td>£APA</td><td>1000Z 7000Z</td><td></td><td></td><td>£000Z</td><td>purd</td><td></td><td></td><td>3</td><td>1000Z</td><td>7000Z</td><td>£000Z</td><td>Purd </td><td>[APV</td><td>2</td><td>3</td><td>1000Z</td><td>7000Z</td><td>£000Z</td><td>Pury</td><td></td><td></td><td></td></tr></table>",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
181,
|
| 1330 |
+
106,
|
| 1331 |
+
821,
|
| 1332 |
+
248
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 13
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "table",
|
| 1338 |
+
"img_path": "images/56c77d842352608a0c57df2736f22b4a8ec31a94f488d6db62e1a8298145cdb2.jpg",
|
| 1339 |
+
"table_caption": [
|
| 1340 |
+
"(b) You Shall Not Pass "
|
| 1341 |
+
],
|
| 1342 |
+
"table_footnote": [],
|
| 1343 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>ZooV1</td><td rowspan=1 colspan=1>87</td><td rowspan=1 colspan=1>81</td><td rowspan=1 colspan=1>76</td><td rowspan=1 colspan=1>48</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>13</td><td rowspan=1 colspan=1>19</td><td rowspan=1 colspan=1>24</td><td rowspan=1 colspan=1>52</td><td rowspan=1 colspan=1>97 99</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooSV1</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>99</td><td rowspan=1 colspan=1>84</td><td rowspan=1 colspan=1>84</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>18</td><td rowspan=1 colspan=1>91</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>16</td><td rowspan=1 colspan=1>16</td><td rowspan=1 colspan=1>88 82</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooDV1</td><td rowspan=1 colspan=1>11</td><td rowspan=1 colspan=1>91</td><td rowspan=1 colspan=1>88</td><td rowspan=1 colspan=1>57</td><td rowspan=1 colspan=2>8 6</td><td rowspan=1 colspan=1>89</td><td rowspan=1 colspan=1>9</td><td rowspan=1 colspan=1>12</td><td rowspan=1 colspan=1>43</td><td rowspan=1 colspan=1>9294</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=1 colspan=1>ZooMV1</td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>83</td><td rowspan=1 colspan=1>70</td><td rowspan=1 colspan=1>78</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>1</td><td rowspan=1 colspan=1>99</td><td rowspan=1 colspan=1>17</td><td rowspan=1 colspan=1>30</td><td rowspan=1 colspan=1>22</td><td rowspan=1 colspan=1>9999</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0</td><td rowspan=1 colspan=1>0 0</td></tr><tr><td rowspan=3 colspan=2>1</td><td rowspan=3 colspan=1>ISAPT</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=2 colspan=1>A</td><td rowspan=2 colspan=1>0</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td rowspan=1 colspan=2>Pard o.I9z</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Pard o.az</td><td rowspan=1 colspan=1>APV</td><td rowspan=1 colspan=1>AAAPT</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1></td><td></td></tr></table>",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
184,
|
| 1346 |
+
276,
|
| 1347 |
+
823,
|
| 1348 |
+
404
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 13
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "table",
|
| 1354 |
+
"img_path": "images/62d704ca84eef08c8313448310a9133f8b1e00fa57dc36fb2b59b85b5b38caac.jpg",
|
| 1355 |
+
"table_caption": [
|
| 1356 |
+
"(c) Sumo Humans "
|
| 1357 |
+
],
|
| 1358 |
+
"table_footnote": [],
|
| 1359 |
+
"table_body": "<table><tr><td></td><td colspan=\"6\">Opponent Win</td><td colspan=\"6\">Victim Win</td><td colspan=\"6\">Ties</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>Z001</td><td>87</td><td>9</td><td>37</td><td>15</td><td>80</td><td>80</td><td>0</td><td>0</td><td>12</td><td>91</td><td>63</td><td>85</td><td>19 18</td><td></td><td>100100</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>2</td><td></td><td>0</td><td>0</td><td></td><td>100</td></tr><tr><td>Z002</td><td>10</td><td>63</td><td>14</td><td>34</td><td>54</td><td>71</td><td>0</td><td>0</td><td>76</td><td>19</td><td>64</td><td>62</td><td>35 回</td><td></td><td>100100</td><td>141</td><td>18</td><td>22</td><td>4</td><td>11</td><td>13</td><td></td><td>0</td><td>0</td><td></td><td>80</td></tr><tr><td>Z003</td><td>1718</td><td></td><td>44</td><td>10 31</td><td></td><td>57</td><td>0</td><td>1</td><td>81</td><td>79</td><td>2</td><td>88</td><td>61</td><td>34</td><td>100 99</td><td>2</td><td>4</td><td>33</td><td></td><td>1</td><td>8</td><td>9</td><td>0</td><td>0</td><td></td><td>60</td></tr><tr><td>ZooM1</td><td></td><td>8724</td><td>58</td><td>9391 92</td><td></td><td></td><td>0</td><td>1</td><td>12</td><td>76</td><td>42</td><td>□</td><td>9</td><td>8</td><td>100 99</td><td>0</td><td>0</td><td></td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td></td><td>40</td></tr><tr><td>Z0oM2</td><td></td><td>3239</td><td>39</td><td>46</td><td></td><td>69</td><td>0</td><td>0</td><td>39</td><td>30</td><td>23</td><td>50</td><td>四</td><td>17</td><td>100100</td><td></td><td>29 3238</td><td></td><td></td><td>4</td><td>6</td><td>14</td><td>0</td><td>0</td><td></td><td>20</td></tr><tr><td>ZooM3</td><td></td><td>6268</td><td>75</td><td>66</td><td>82</td><td>四</td><td>1</td><td>1</td><td>30</td><td>20</td><td>10</td><td>31</td><td>13</td><td>□</td><td>99 99</td><td></td><td>9 1215</td><td></td><td></td><td>3</td><td>6</td><td>2</td><td>0</td><td>0</td><td></td><td></td></tr><tr><td colspan=\"2\"></td><td></td><td></td><td></td><td></td><td></td><td>pury</td><td></td><td></td><td></td><td></td><td>[00Z</td><td>20</td><td>£00Z</td><td>puey</td><td></td><td></td><td></td><td></td><td>1</td><td></td><td>1</td><td></td><td></td><td></td><td>0</td></tr><tr><td></td><td>[APV</td><td>APA</td><td>1</td><td></td><td>2</td><td>2</td><td></td><td>0.I9z</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>00</td><td>[APV</td><td></td><td>3</td><td>[00Z</td><td>20</td><td>20</td><td>pued</td><td>20</td><td></td><td></td></tr></table>",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
189,
|
| 1362 |
+
433,
|
| 1363 |
+
821,
|
| 1364 |
+
569
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 13
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "image",
|
| 1370 |
+
"img_path": "images/43e98aa0e379df5d4eb5e0e40961ab77cd0a094b151a07cfc26f1a9abd00e1cf.jpg",
|
| 1371 |
+
"image_caption": [
|
| 1372 |
+
"Figure C.2: Percentage of episodes (out of 1000) won by the opponent, the victim or tied. The maximal opponent win rate in each row is in red. Victims are on the $y$ -axis and opponents on the $x$ -axis. Key: Agents ZooYN are pre-trained policies from Bansal et al. (2018a), where $Y \\in \\{ { } ^ { \\cdot } V ^ { \\prime } , { } ^ { \\cdot } O ^ { \\prime } , { } ^ { \\cdot \\prime } \\}$ denotes the agent plays as (V)ictim, $\\mathbf { \\eta } ^ { ( \\mathbf { 0 } ) }$ pponent or either side, and $N$ is a random seed. Opponents AdvN are the best adversarial policy of 5 seeds trained against the corresponding Zoo[V]N. Agents Rand and $\\mathtt { Z e r o }$ are baseline agents taking random and zero actions respectively. Defended victims ZooXYN, where $X \\in \\{ \\cdot S ^ { \\prime } , \\cdot \\bar { D ^ { \\prime } } , \\cdot M ^ { \\prime } \\}$ , are derived from ZooYN by fine-tuning against a (S)ingle opponent AdvN, $\\mathbf { ( D ) }$ ual opponents AdvN and Zoo[O]N, or by $\\mathbf { \\Psi } ^ { ( \\mathbf { M } ) }$ asking the observations. "
|
| 1373 |
+
],
|
| 1374 |
+
"image_footnote": [],
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
191,
|
| 1377 |
+
603,
|
| 1378 |
+
820,
|
| 1379 |
+
797
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 13
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "image",
|
| 1385 |
+
"img_path": "images/305c21d93e648995cbf0f7f4c0ba99d2806afa39b254e780b4e6fcbbb26a5652.jpg",
|
| 1386 |
+
"image_caption": [
|
| 1387 |
+
"Figure C.3: t-SNE activations of the victim when playing against different opponents. There is a clear separation between the activations induced by Adv and those of the normal opponent Zoo. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. The victim is ZooN (Sumo) or ZooVN (other environments), where $N$ is given in the figure caption. Opponent Adv is the best adversary trained against the victim. Opponent $\\mathrm { { } ~ \\ Z \\ O O }$ corresponds to ZooN (Sumo) or ZooON (other environments). See Figure C.4 for activations for a single opponent at a time. "
|
| 1388 |
+
],
|
| 1389 |
+
"image_footnote": [],
|
| 1390 |
+
"bbox": [
|
| 1391 |
+
173,
|
| 1392 |
+
95,
|
| 1393 |
+
820,
|
| 1394 |
+
821
|
| 1395 |
+
],
|
| 1396 |
+
"page_idx": 14
|
| 1397 |
+
},
|
| 1398 |
+
{
|
| 1399 |
+
"type": "image",
|
| 1400 |
+
"img_path": "images/bdce657631a365c6b4b9c7f5106a3f5b5288e8879e2f26cf31d40a00d4e27fb3.jpg",
|
| 1401 |
+
"image_caption": [
|
| 1402 |
+
"Figure C.4: t-SNE activations of victim Zoo1 (Sumo) or ZooV1 (other environments). The results are the same as in Figure C.3 but decomposed into individual opponents for clarity. Model fitted with a perplexity of 250 to activations from 5000 timesteps against each opponent. Opponent Adv is the best adversary trained against the victim. Opponent Zoo is Zoo1 (Sumo) or ZooO1 (other environments). See Figure C.3 for results for other victims (one plot per victim). "
|
| 1403 |
+
],
|
| 1404 |
+
"image_footnote": [],
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
169,
|
| 1407 |
+
84,
|
| 1408 |
+
823,
|
| 1409 |
+
830
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 15
|
| 1412 |
+
}
|
| 1413 |
+
]
|
parse/train/HJgEMpVFwB/HJgEMpVFwB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJgEMpVFwB/HJgEMpVFwB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlnC1rKPB/HJlnC1rKPB.md
ADDED
|
@@ -0,0 +1,433 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON THE RELATIONSHIP BETWEEN SELF-ATTENTION AND CONVOLUTIONAL LAYERS
|
| 2 |
+
|
| 3 |
+
Jean-Baptiste Cordonnier, Andreas Loukas & Martin Jaggi Ecole Polytechnique F ´ ed´ erale de Lausanne (EPFL) ´ {first.last}@epfl.ch
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Recent trends of incorporating attention mechanisms in vision have led researchers to reconsider the supremacy of convolutional layers as a primary building block. Beyond helping CNNs to handle long-range dependencies, Ramachandran et al. (2019) showed that attention can completely replace convolution and achieve state-of-the-art performance on vision tasks. This raises the question: do learned attention layers operate similarly to convolutional layers? This work provides evidence that attention layers can perform convolution and, indeed, they often learn to do so in practice. Specifically, we prove that a multi-head self-attention layer with sufficient number of heads is at least as expressive as any convolutional layer. Our numerical experiments then show that self-attention layers attend to pixel-grid patterns similarly to CNN layers, corroborating our analysis. Our code is publicly available1.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Recent advances in Natural Language Processing (NLP) are largely attributed to the rise of the transformer (Vaswani et al., 2017). Pre-trained to solve an unsupervised task on large corpora of text, transformer-based architectures, such as GPT-2 (Radford et al., 2018), BERT (Devlin et al., 2018) and Transformer-XL (Dai et al., 2019), seem to possess the capacity to learn the underlying structure of text and, as a consequence, to learn representations that generalize across tasks. The key difference between transformers and previous methods, such as recurrent neural networks (Hochreiter & Schmidhuber, 1997) and convolutional neural networks (CNN), is that the former can simultaneously attend to every word of their input sequence. This is made possible thanks to the attention mechanism—originally introduced in Neural Machine Translation to better handle long-range dependencies (Bahdanau et al., 2015). With self-attention in particular, the similarity of two words in a sequence is captured by an attention score measuring the distance of their representations. The representation of each word is then updated based on those words whose attention score is highest.
|
| 12 |
+
|
| 13 |
+
Inspired by its capacity to learn meaningful inter-dependencies between words, researchers have recently considered utilizing self-attention in vision tasks. Self-attention was first added to CNN by either using channel-based attention (Hu et al., 2018) or non-local relationships across the image (Wang et al., 2018). More recently, Bello et al. (2019) augmented CNNs by replacing some convolutional layers with self-attention layers, leading to improvements on image classification and object detection tasks. Interestingly, Ramachandran et al. (2019) noticed that, even though state-of-the art results are reached when attention and convolutional features are combined, under same computation and model size constraints, self-attention-only architectures also reach competitive image classification accuracy.
|
| 14 |
+
|
| 15 |
+
These findings raise the question, do self-attention layers process images in a similar manner to convolutional layers? From a theoretical perspective, one could argue that transfomers have the capacity to simulate any function—including a CNN. Indeed, Perez et al. (2019) showed that a multi- ´ layer attention-based architecture with additive positional encodings is Turing complete under some strong theoretical assumptions, such as unbounded precision arithmetic. Unfortunately, universality results do not reveal how a machine solves a task, only that it has the capacity to do so. Thus, the question of how self-attention layers actually process images remains open.
|
| 16 |
+
|
| 17 |
+
Contributions. In this work, we put forth theoretical and empirical evidence that self-attention layers can (and do) learn to behave similar to convolutional layers:
|
| 18 |
+
|
| 19 |
+
I. From a theoretical perspective, we provide a constructive proof showing that self-attention layers can express any convolutional layers.
|
| 20 |
+
|
| 21 |
+
Specifically, we show that a single multi-head self-attention layer using relative positional encoding can be re-parametrized to express any convolutional layer.
|
| 22 |
+
|
| 23 |
+
II. Our experiments show that the first few layers of attention-only architectures (Ramachandran et al., 2019) do learn to attend on grid-like pattern around each query pixel, similar to our theoretical construction.
|
| 24 |
+
|
| 25 |
+
Strikingly, this behavior is confirmed both for our quadratic encoding, but also for relative encoding that is learned. Our results seem to suggest that localized convolution is the right inductive bias for the first few layers of an image classifying network. We provide an interactive website2 to explore how self-attention exploits localized position-based attention in lower layers and contentbased attention in deeper layers. For reproducibility purposes, our code is publicly available.
|
| 26 |
+
|
| 27 |
+
# 2 BACKGROUND ON ATTENTION MECHANISMS FOR VISION
|
| 28 |
+
|
| 29 |
+
We here recall the mathematical formulation of self-attention layers and emphasize the role of positional encodings.
|
| 30 |
+
|
| 31 |
+
# 2.1 THE MULTI-HEAD SELF-ATTENTION LAYER
|
| 32 |
+
|
| 33 |
+
Let $\pmb { X } \in \mathbb { R } ^ { T \times D _ { i n } }$ be an input matrix consisting of $T$ tokens in of $D _ { i n }$ dimensions each. While in NLP each token corresponds to a word in a sentence, the same formalism can be applied to any sequence of $T$ discrete objects, e.g. pixels. A self-attention layer maps any query token $t \in [ \bar { T } ]$ from $D _ { i n }$ to $D _ { o u t }$ dimensions as follows:
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
{ \mathrm { S e l f - A t t e n t i o n } } ( X ) _ { t , : } : = { \mathrm { s o f t m a x } } \left( A _ { t , : } \right) X W _ { v a l } ,
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
where we refer to the elements of the $T \times T$ matrix
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
A : = X W _ { q r y } W _ { k e y } ^ { \top } X ^ { \top }
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
as attention scores and the softmax output3 as attention probabilities. The layer is parametrized by a query matrix $W _ { q r y } \in \mathbb { R } ^ { D _ { i n } \times D _ { k } }$ , a key matrix $W _ { k e y } ^ { \mathrm { ~ ~ } } \in \mathbb { R } ^ { D _ { i n } \times D _ { k } }$ and a value matrix $W _ { \nu a l } ~ \in$ $\mathbb { R } ^ { D _ { i n } \times D _ { o u t } }$ .For simplicity, we exclude any residual connections, batch normalization and constant factors.
|
| 46 |
+
|
| 47 |
+
A key property of the self-attention model described above is that it is equivariant to reordering, that is, it gives the same output independently of how the $T$ input tokens are shuffled. This is problematic for cases we expect the order of things to matter. To alleviate the limitation, a positional encoding is learned for each token in the sequence (or pixel in an image), and added to the representation of the token itself before applying self-attention
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\pmb { A } : = ( \pmb { X } + \pmb { P } ) \pmb { W } _ { q r y } \pmb { W } _ { k e y } ^ { \top } ( \pmb { X } + \pmb { P } ) ^ { \top } ,
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where $P \in \mathbb { R } ^ { T \times D _ { i n } }$ contains the embedding vectors for each position. More generally, $_ { r }$ may be substituted by any function that returns a vector representation of the position.
|
| 54 |
+
|
| 55 |
+
It has been found beneficial in practice to replicate this self-attention mechanism into multiple heads, each being able to focus on different parts of the input by using different query, key and value matrices. In multi-head self-attention, the output of the $N _ { h }$ heads of output dimension $D _ { h }$ are concatenated and projected to dimension $D _ { o u t }$ as follows:
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\operatorname { M H S A } ( X ) : = \operatorname { c o n c a t } _ { h \in [ N _ { h } ] } \left[ \operatorname { S e l f - A t t e n t i o n } _ { h } ( X ) \right] W _ { o u t } + b _ { o u t }
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
and two new parameters are introduced: the projection matrix $W _ { o u t } \in \mathbb { R } ^ { N _ { h } D _ { h } \times D _ { o u t } }$ and a bias term bout ∈ RDout .
|
| 62 |
+
|
| 63 |
+
# 2.2 ATTENTION FOR IMAGES
|
| 64 |
+
|
| 65 |
+
Convolutional layers are the de facto choice for building neural networks that operate on images. We recall that, given an image tensor $\pmb { \mathsf { X } } \in \mathbb { R } ^ { W \times H \times D _ { i n } }$ of width $W$ , height $H$ and $D _ { i n }$ channels, the output of a convolutional layer for pixel $( i , j )$ is given by
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\mathrm { C o n v } ( \boldsymbol { X } ) _ { i , j , : } : = \sum _ { ( \delta _ { 1 } , \delta _ { 2 } ) \in \Delta _ { K } } \mathsf { X } _ { i + \delta _ { 1 } , j + \delta _ { 2 } , : } \mathsf { W } _ { \delta _ { 1 } , \delta _ { 2 } , : , : } + \boldsymbol { b } ,
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
where $\boldsymbol { \mathsf { W } }$ is the $K \times K \times D _ { i n } \times D _ { o u t }$ weight tensor 4, $\pmb { b } \in \mathbb { R } ^ { D _ { o u t } }$ is the bias vector and the set
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\mathbb { \Delta } _ { K } : = \left[ - \left\lfloor { \frac { K } { 2 } } \right\rfloor , \cdots , \left\lfloor { \frac { K } { 2 } } \right\rfloor \right] \times \left[ - \left\lfloor { \frac { K } { 2 } } \right\rfloor , \cdots , \left\lfloor { \frac { K } { 2 } } \right\rfloor \right]
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
contains all possible shifts appearing when convolving the image with a $K \times K$ kernel.
|
| 78 |
+
|
| 79 |
+
In the following, we review how self-attention can be adapted from 1D sequences to images.
|
| 80 |
+
|
| 81 |
+
With images, rather than tokens, we have query and key pixels $q , k \in [ W ] \times [ H ]$ . Accordingly, the input is a tensor $\pmb { \chi }$ of dimension $W \times H \times D _ { i n }$ and each attention score associates a query and a key pixel.
|
| 82 |
+
|
| 83 |
+
To keep the formulas consistent with the 1D case, we abuse notation and slice tensors by using a 2D index vector: if $\mathbf { \boldsymbol { p } } = ( i , j )$ , we write $\mathsf { \pmb X } _ { p } ,$ : and $\mathsf { \pmb { A } } _ { p } ,$ : to mean $\mathsf { X } _ { i , j } ,$ : and $\mathsf { \pmb { A } } _ { i , j , : , : }$ , respectively. With this notation in place, the multi-head self attention layer output at pixel $\pmb q$ can be expressed as follows:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathrm { S e l f - A t t e n t i o n } ( X ) _ { q , : } = \sum _ { k } \mathrm { s o f t m a x } \left( \mathbb { A } _ { q , : } \right) _ { k } \mathbb { X } _ { k , : } W _ { \nu a l }
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
and accordingly for the multi-head case.
|
| 90 |
+
|
| 91 |
+
# 2.3 POSITIONAL ENCODING FOR IMAGES
|
| 92 |
+
|
| 93 |
+
There are two types of positional encoding that has been used in transformer-based architectures: the absolute and relative encoding (see also Table 3 in the Appendix).
|
| 94 |
+
|
| 95 |
+
With absolute encodings, a (fixed or learned) vector $\mathsf { P } _ { p } ,$ ,: is assigned to each pixel $\pmb { p }$ . The computation of the attention scores we saw in eq. (2) can then be decomposed as follows:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { r l } & { \pmb { \mathrm { A } } _ { q , k } ^ { \mathrm { a b s } } = ( \pmb { \mathrm { X } } _ { q , : } + \pmb { \mathrm { P } } _ { q , : } ) W _ { q r y } W _ { k e y } ^ { \top } ( \pmb { \mathrm { X } } _ { k , : } + \pmb { \mathrm { P } } _ { k , : } ) ^ { \top } } \\ & { \qquad = \pmb { \mathrm { X } } _ { q , : } W _ { q r y } W _ { k e y } ^ { \top } \pmb { \mathrm { X } } _ { k , : } ^ { \top } + \pmb { \mathrm { X } } _ { q , : } W _ { q r y } W _ { k e y } ^ { \top } \pmb { \mathrm { P } } _ { k , : } ^ { \top } + \pmb { \mathrm { P } } _ { q , : } W _ { q r y } W _ { k e y } ^ { \top } \pmb { \mathrm { X } } _ { k , : } + \pmb { \mathrm { P } } _ { q , : } W _ { q r y } W _ { k e y } ^ { \top } \pmb { \mathrm { P } } _ { k , : } } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where $\pmb q$ and $\boldsymbol { k }$ correspond to the query and key pixels, respectively.
|
| 102 |
+
|
| 103 |
+
The relative positional encoding was introduced by Dai et al. (2019). The main idea is to only consider the position difference between the query pixel (pixel we compute the representation of) and the key pixel (pixel we attend) instead of the absolute position of the key pixel:
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\begin{array} { r } { \pmb { \mathsf { A } } _ { q , k } ^ { \mathrm { r e l } } : = \pmb { \mathsf { X } } _ { q , : } ^ { \top } W _ { q r y } ^ { \top } W _ { k e y } \pmb { \mathsf { X } } _ { k , : } + \pmb { \mathsf { X } } _ { q , : } ^ { \top } W _ { q r y } ^ { \top } \widehat { W } _ { k e y } \pmb { r } _ { \delta } + \boldsymbol { u } ^ { \top } W _ { k e y } \pmb { \mathsf { X } } _ { k , : } + \boldsymbol { v } ^ { \top } \widehat { W } _ { k e y } \pmb { r } _ { \delta } } \end{array}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
In this manner, the attention scores only depend on the shift $\delta : = k - q$ . Above, the learnable vectors $\textbf { \em u }$ and $\pmb { v }$ are unique for each head, whereas for every shift $\delta$ the relative positional encoding $\boldsymbol { r } _ { \delta } \in \mathbb { R } ^ { D _ { p } }$ is shared by all layers and heads. Moreover, now the key weights are split into two types: $W _ { k e y }$ pertain to the input and $\widehat { W } _ { k e y }$ to the relative position of pixels.
|
| 110 |
+
|
| 111 |
+
# 3 SELF-ATTENTION AS A CONVOLUTIONAL LAYER
|
| 112 |
+
|
| 113 |
+
This section derives sufficient conditions such that a multi-head self-attention layer can simulate a convolutional layer. Our main result is the following:
|
| 114 |
+
|
| 115 |
+
Theorem 1. A multi-head self-attention layer with $N _ { h }$ heads of dimension $D _ { h }$ , output dimension $D _ { o u t }$ and a relative positional encoding of dimension $D _ { p } \geq 3$ can express any convolutional layer of kernel size $\sqrt { N _ { h } } \times \sqrt { N _ { h } }$ and $\operatorname* { m i n } ( D _ { h } , D _ { o u t } )$ output channels.
|
| 116 |
+
|
| 117 |
+
4To simplify notation, we index the first two dimensions of the tensor from $- \lfloor K / 2 \rfloor$ to $\lfloor K / 2 \rfloor$
|
| 118 |
+
|
| 119 |
+
The theorem is proven constructively by selecting the parameters of the multi-head self-attention layer so that the latter acts like a convolutional layer. In the proposed construction, the attention scores of each self-attention head should attend to a different relative shift within the set $\Delta _ { K } =$ $\{ - \lfloor K / 2 \rfloor , \ldots , \lfloor K / 2 \rfloor \} ^ { 2 }$ of all pixel shifts in a $K \times K$ kernel. The exact condition can be found in the statement of Lemma 1.
|
| 120 |
+
|
| 121 |
+
Then, Lemma 2 shows that the aforementioned condition is satisfied for the relative positional encoding that we refer to as the quadratic encoding:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\pmb { v } ^ { ( h ) } : = - \alpha ^ { ( h ) } \left( 1 , - 2 \pmb { \Delta } _ { 1 } ^ { ( h ) } , - 2 \pmb { \Delta } _ { 2 } ^ { ( h ) } \right) \quad r _ { \delta } : = \left( \| \delta \| ^ { 2 } , \delta _ { 1 } , \delta _ { 2 } \right) \quad W _ { q r \gamma } = W _ { k e \gamma } : = \mathbf { 0 } \quad \widehat { W _ { k e \gamma } } : = I
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
The learned parameters $\Delta ^ { ( h ) } = ( \Delta _ { 1 } ^ { ( h ) } , \Delta _ { 2 } ^ { ( h ) } )$ and $\alpha ^ { ( h ) }$ determine the center and width of attention of each head, respectively. On the other hand, $\pmb { \delta } = ( \delta _ { 1 } , \delta _ { 2 } )$ is fixed and expresses the relative shift between query and key pixels.
|
| 128 |
+
|
| 129 |
+
It is important to stress that the above encoding is not the only one for which the conditions of Lemma 1 are satisfied. In fact, in our experiments, the relative encoding learned by the neural network also matched the conditions of the lemma (despite being different from the quadratic encoding). Nevertheless, the encoding defined above is very efficient in terms of size, as only $D _ { p } = 3$ dimensions suffice to encode the relative position of pixels, while also reaching similar or better empirical performance (than the learned one).
|
| 130 |
+
|
| 131 |
+
The theorem covers the general convolution operator as defined in eq. (17). However, machine learning practitioners using differential programming frameworks (Paszke et al., 2017; Abadi et al., 2015) might question if the theorem holds for all hyper-parameters of 2D convolutional layers:
|
| 132 |
+
|
| 133 |
+
• Padding: a multi-head self-attention layer uses by default the "SAME" padding while a convolutional layer would decrease the image size by $K - 1$ pixels. The correct way to alleviate these boundary effects is to pad the input image with $\lfloor K / 2 \rfloor$ zeros on each side. In this case, the cropped output of a MHSA and a convolutional layer are the same. • Stride: a strided convolution can be seen as a convolution followed by a fixed pooling operation—with computational optimizations. Theorem 1 is defined for stride 1, but a fixed pooling layer could be appended to the Self-Attention layer to simulate any stride. • Dilation: a multi-head self-attention layer can express any dilated convolution as each head can attend a value at any pixel shift and form a (dilated) grid pattern.
|
| 134 |
+
|
| 135 |
+
Remark for the 1D case. Convolutional layers acting on sequences are commonly used in the literature for text (Kim, 2014), as well as audio (van den Oord et al., 2016) and time series (Franceschi et al., 2019). Theorem 1 can be straightforwardly extended to show that multi-head self-attention with $N _ { h }$ heads can also simulate a 1D convolutional layer with a kernel of size $K \ : = \ : N _ { h }$ with $\operatorname* { m i n } ( D _ { h } , D _ { o u t } )$ output channels using a positional encoding of dimension $D _ { p } \geq 2$ . Since we have not tested empirically if the preceding construction matches the behavior of 1D self-attention in practice, we cannot claim that it actually learns to convolve an input sequence—only that it has the capacity to do so.
|
| 136 |
+
|
| 137 |
+
# PROOF OF MAIN THEOREM
|
| 138 |
+
|
| 139 |
+
The proof follows directly from Lemmas 1 and 2 stated below:
|
| 140 |
+
|
| 141 |
+
Lemma 1. Consider a multi-head self-attention layer consisting of $N _ { h } = K ^ { 2 }$ heads, $D _ { h } \geq D _ { o u t }$ and let $f ~ : ~ [ N _ { h } ] ~ ~ \mathbb { \Delta } _ { K }$ be a bijective mapping of heads onto shifts. Further, suppose that for every head the following holds:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
\mathrm { s o f t m a x } ( A _ { q , : } ^ { ( h ) } ) _ { k } = \left\{ \begin{array} { l l } { { 1 } } & { { \ i f f ( h ) = q - k } } \\ { { 0 } } & { { \ o t h e r w i s e . } } \end{array} \right.
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
Then, for any convolutional layer with a $K \times K$ kernel and $D _ { o u t }$ output channels, there exists $\{ W _ { \nu a l } ^ { ( h ) } \} _ { h \in [ N _ { h } ] }$ such that $\mathrm { M H S A } ( X ) = \operatorname { C o n v } ( X )$ for every $\pmb { X } \in \mathbb { R } ^ { W \times H \times D _ { i n } }$ .
|
| 148 |
+
|
| 149 |
+

|
| 150 |
+
Figure 1: Illustration of a Multi-Head Self-Attention layer applied to a tensor image $\pmb { \chi }$ . Each head $h$ attends pixel values around shift ∆(h) and learn a filter matrix W (h)val . We show attention maps computed for a query pixel at position $\pmb q$ .
|
| 151 |
+
|
| 152 |
+
Proof. Our first step will be to rework the expression of the Multi-Head Self-Attention operator from equation (1) and equation (4) such that the effect of the multiple heads becomes more transparent:
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\mathrm { M H S A } ( { \pmb X } ) = b _ { o u t } + \sum _ { h \in [ N _ { h } ] } \mathrm { s o f t m a x } ( { \pmb A } ^ { ( h ) } ) { \pmb X } \underbrace { W _ { v a l } ^ { ( h ) } W _ { o u t } [ ( h - 1 ) D _ { h } + 1 : h D _ { h } + 1 ] } _ { { \pmb W } ^ { ( h ) } }
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
Note that each head’s value matrix W (h)val $W _ { \nu a l } ^ { ( h ) } \in \mathbb { R } ^ { D _ { i n } \times D _ { h } }$ and each block of the projection matrix $W _ { o u t }$ of dimension $D _ { h } \times D _ { o u t }$ are learned. Assuming that $D _ { h } \ \ge \ D _ { o u t }$ , we can replace each pair of matrices by a learned matrix $W ^ { ( h ) }$ for each head. We consider one output pixel of the multi-head self-attention:
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\mathrm { M H S A } ( \boldsymbol { X } ) _ { q , : } = \sum _ { h \in [ N _ { h } ] } \left( \sum _ { k } \mathrm { s o f t m a x } ( \pmb { \mathscr { A } } _ { q , : } ^ { ( h ) } ) _ { k } \pmb { \mathscr { X } } _ { k , : } \right) \boldsymbol { W } ^ { ( h ) } + b _ { o u t }
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
Due to the conditions of the Lemma, for the $h$ -th attention head the attention probability is one when $\pmb { k } = \pmb { q } - \pmb { f } ( h )$ and zero otherwise. The layer’s output at pixel $\pmb q$ is thus equal to
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
\mathrm { M H S A } ( \mathbf { X } ) _ { q } = \sum _ { h \in [ N _ { h } ] } \mathbf { X } _ { q - f ( h ) , : } \mathbf { { { W } } } ^ { ( h ) } + \pmb { b } _ { o u t }
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
For $K = \sqrt { N _ { h } }$ , the above can be seen to be equivalent to a convolutional layer expressed in eq. 17: there is a one to one mapping (implied by map $f$ ) between the matrices $W ^ { ( \bar { h } ) }$ for $h = [ N _ { h } ]$ and the matrices $\mathsf { W } _ { k _ { 1 } , k _ { 2 } , : , : }$ for all $( k _ { 1 } , k _ { 2 } ) \in [ K ] ^ { 2 }$ . □
|
| 171 |
+
|
| 172 |
+
Remark about $D _ { h }$ and $D _ { o u t }$ . It is frequent in transformer-based architectures to set $D _ { h } ~ = ~ D _ { o u t } / N _ { h }$ , hence $D _ { h } < D _ { o u t }$ . In that case, $W ^ { ( h ) }$ can be seen to be of rank $D _ { o u t } - D _ { h }$ , which does not suffice to express every convolutional layer with $D _ { o u t }$ channels. Nevertheless, it can be seen that any $D _ { h }$ out of $D _ { o u t }$ outputs of $\operatorname { M H S A } ( X )$ can express the output of any convolutional layer with $D _ { h }$ output channels. To cover both cases, in the statement of the main theorem we assert that the output channels of the convolutional layer should be $\operatorname* { m i n } ( D _ { h } , D _ { o u t } )$ . In practice, we advise to concatenate heads of dimension $D _ { h } = D _ { o u t }$ instead of splitting the $D _ { o u t }$ dimensions among heads to have exact re-parametrization and no “unused” channels.
|
| 173 |
+
|
| 174 |
+
Lemma 2. There exists a relative encoding scheme $\{ r _ { \delta } \in \mathbb { R } ^ { D _ { p } } \} _ { \pmb { \delta } \in \mathbb { Z } ^ { 2 } }$ with $D _ { p } \geq 3$ and parameters $W _ { q r y }$ , $W _ { k e y }$ , $\widehat { W } _ { k e y } , u$ with $D _ { p } \leq D _ { k }$ such that, for every $\pmb { \Delta } \in \mathbb { \Delta } _ { K }$ there exists some vector $\textbf { { v } }$ (conditioned on $\pmb { \Delta }$ ) yielding softm $\arg ( \mathbf { A } _ { q , : } ) _ { k } = 1 i f k - q = \Delta$ and zero, otherwise.
|
| 175 |
+
|
| 176 |
+
Proof. We show by construction the existence of a $D _ { p } = 3$ dimensional relative encoding scheme yielding the required attention probabilities.
|
| 177 |
+
|
| 178 |
+
As the attention probabilities are independent of the input tensor $\pmb { \chi }$ , we set $\boldsymbol { W _ { k e y } } = \boldsymbol { W _ { q r y } } = \mathbf { 0 }$ which leaves only the last term of eq. (8). Setting $\widehat { \pmb { W } } _ { k e y } \in \mathbb { R } ^ { D _ { k } \times D _ { p } }$ to the identity matrix (with appropriate row padding), yields $\pmb { \mathsf { A } } _ { q , \pmb { k } } = \pmb { v } ^ { \top } \pmb { r } _ { \delta }$ where $\delta : = k - q$ . Above, we have assumed that $D _ { p } \leq D _ { k }$ such that no information from $\mathbf { \Delta } _ { \pmb { r } \delta }$ is lost.
|
| 179 |
+
|
| 180 |
+
Now, suppose that we could write:
|
| 181 |
+
|
| 182 |
+
$$
|
| 183 |
+
\mathsf { \pmb { A } } _ { q , k } = - \alpha ( \| \pmb { \delta } - \pmb { \Delta } \| ^ { 2 } + c )
|
| 184 |
+
$$
|
| 185 |
+
|
| 186 |
+
for some constant $c$ . In the above expression, the maximum attention score over $\mathsf { \pmb { A } } _ { \pmb { q } , }$ ,: is $- \alpha c$ and it is reached for $\pmb { \Delta } _ { q , k }$ with $\delta = \Delta$ . On the other hand, the $\alpha$ coefficient can be used to scale arbitrarily the difference between $\mathsf { \pmb { A } } _ { q , \Delta }$ and the other attention scores.
|
| 187 |
+
|
| 188 |
+
In this way, for $\delta = \Delta$ , we have
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
\begin{array} { l } { { \displaystyle \operatorname* { l i m } _ { \imath \to \infty } \mathrm { s o f t m a x } ( \mathbb { A } _ { q , : } ) _ { k } = \operatorname* { l i m } _ { \alpha \to \infty } \frac { e ^ { - \alpha ( \| \delta - \Delta \| ^ { 2 } + c ) } } { \sum _ { k ^ { \prime } } e ^ { - \alpha ( \| ( k - q ^ { \prime } ) - \Delta \| ^ { 2 } + c ) } } } \ ~ } \\ { { \displaystyle = \operatorname* { l i m } _ { \alpha \to \infty } \frac { e ^ { - \alpha \| \delta - \Delta \| ^ { 2 } } } { \sum _ { k ^ { \prime } } e ^ { - \alpha \| ( k - q ^ { \prime } ) - \Delta \| ^ { 2 } } } = \frac { 1 } { 1 + \operatorname* { l i m } _ { \alpha \to \infty } \sum _ { k ^ { \prime } \neq k } e ^ { - \alpha \| ( k - q ^ { \prime } ) - \Delta \| ^ { 2 } } } = 1 } } \end{array}
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
and for $\delta \neq \Delta$ , the equation becomes $\begin{array} { r } { \operatorname* { l i m } _ { \alpha \infty } \mathrm { s o f t m a x } ( \pmb { \mathsf { A } } _ { q , : } ) _ { k } = 0 } \end{array}$ , exactly as needed to satisfy the lemma statement.
|
| 195 |
+
|
| 196 |
+
What remains is to prove that there exist $\textbf { { v } }$ and $\{ r _ { \delta } \} _ { \delta \in \mathbb { Z } ^ { 2 } }$ for which eq. (14) holds. Expanding the RHS of the equation, we have $- \alpha ( \| \pmb { \delta } - \pmb { \Delta } \| ^ { 2 } + \underline { { { c } } } ) = - \alpha ( \| \pmb { \delta } \| ^ { 2 } + \| \pmb { \Delta } \| ^ { 2 } - 2 \langle \pmb { \delta } , \pmb { \Delta } \rangle + c )$ . Now if we set $v = - \alpha \left( 1 , - 2 \Delta _ { 1 } , - 2 \Delta _ { 2 } \right)$ and $r _ { \delta } = ( \| \delta \| ^ { 2 } , \delta _ { 1 } , \delta _ { 2 } )$ , then
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\lambda _ { q , k } = v ^ { \top } r _ { \delta } = - \alpha \big ( \| \delta \| ^ { 2 } - 2 \Delta _ { 1 } \delta _ { 1 } - 2 \Delta _ { 2 } \delta _ { 2 } \big ) = - \alpha \big ( \| \delta \| ^ { 2 } - 2 \langle \delta , \Delta \rangle \big ) = - \alpha \big ( \| \delta - \Delta \| ^ { 2 } - \| \Delta \| ^ { 2 } \big ) ,
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
which matches eq. (14) with $c = - \| \Delta \| ^ { 2 }$ and the proof is concluded.
|
| 203 |
+
|
| 204 |
+
Remark on the magnitude of $\alpha$ . The exact representation of one pixel requires $\alpha$ (or the matrices $W _ { q r y }$ and $W _ { k e y , }$ ) to be arbitrary large, despite the fact that the attention probabilities of all other pixels converge exponentially to 0 as $\alpha$ grows. Nevertheless, practical implementations always rely on finite precision arithmetic for which a constant $\alpha$ suffices to satisfy our construction. For instance, since the smallest positive float32 scalar is approximately $1 0 ^ { - 4 \bar { 5 } }$ , setting $\alpha = 4 6$ would suffice to obtain hard attention.
|
| 205 |
+
|
| 206 |
+
# 4 EXPERIMENTS
|
| 207 |
+
|
| 208 |
+
The aim of this section is to validate the applicability of our theoretical results—which state that self-attention can perform convolution—and to examine whether self-attention layers in practice do actually learn to operate like convolutional layers when trained on standard image classification tasks. In particular, we study the relationship between self-attention and convolution with quadratic and learned relative positional encodings. We find that, for both cases, the attention probabilities learned tend to respect the conditions of Lemma 1, supporting our hypothesis.
|
| 209 |
+
|
| 210 |
+
# 4.1 IMPLEMENTATION DETAILS
|
| 211 |
+
|
| 212 |
+
We study a fully attentional model consisting of six multi-head self-attention layers. As it has already been shown by Bello et al. (2019) that combining attention features with convolutional features improves performance on Cifar-100 and ImageNet, we do not focus on attaining state-of-the-art performance. Nevertheless, to validate that our model learns a meaningful classifier, we compare it to the standard ResNet18 (He et al., 2015) on the CIFAR-10 dataset (Krizhevsky et al.). In all experiments, we use a $2 \times 2$ invertible down-sampling (Jacobsen et al., 2018) on the input to reduce the size of the image. As the size of the attention coefficient tensors (stored during forward) scales quadratically with the size of the input image, full attention cannot be applied to bigger images. The fixed size representation of the input image is computed as the average pooling of the last layer representations and given to a linear classifier.
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
Figure 2: Test accuracy on CIFAR-10.
|
| 216 |
+
|
| 217 |
+
Table 1: Test accuracy on CIFAR-10 and model sizes. SA stands for Self-Attention.
|
| 218 |
+
|
| 219 |
+
<table><tr><td>Models</td><td>accuracy</td><td># of params</td><td># of FLOPS</td></tr><tr><td>ResNet18</td><td>0.938</td><td>11.2M</td><td>1.1B</td></tr><tr><td>SA quadratic emb.</td><td>0.938</td><td>12.1M</td><td>6.2B</td></tr><tr><td>SA learned emb.</td><td>0.918</td><td>12.3M</td><td>6.2B</td></tr><tr><td>SA learned emb.+ content</td><td>0.871</td><td>29.5M</td><td>15B</td></tr></table>
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 3: Centers of attention of each attention head (different colors) at layer 4 during the training with quadratic relative positional encoding. The central black square is the query pixel, whereas solid and dotted circles represent the $50 \%$ and $90 \%$ percentiles of each Gaussian, respectively.
|
| 225 |
+
|
| 226 |
+
We used the PyTorch library (Paszke et al., 2017) and based our implementation on PyTorch Transformers5. We release our code on Github6 and hyper-parameters are listed in Table 2 (Appendix).
|
| 227 |
+
|
| 228 |
+
Remark on accuracy. To verify that our self-attention models perform reasonably well, we display in Figure 6 the evolution of the test accuracy on CIFAR-10 over the 300 epochs of training for our self-attention models against a small ResNet (Table 1). The ResNet is faster to converge, but we cannot ascertain whether this corresponds to an inherent property of the architecture or an artifact of the adopted optimization procedures. Our implementation could be optimized to exploit the locality of Gaussian attention probabilities and reduce significantly the number of FLOPS. We observed that learned embeddings with content-based attention were harder to train probably due to their increased number of parameters. We believe that the performance gap can be bridged to match the ResNet performance, but this is not the focus of this work.
|
| 229 |
+
|
| 230 |
+
# 4.2 QUADRATIC ENCODING
|
| 231 |
+
|
| 232 |
+
As a first step, we aim to verify that, with the relative position encoding introduced in equation (9), attention layers learn to behave like convolutional layers. We train nine attention heads at each layer to be on par with the $3 \times 3$ kernels used predominantly by the ResNet architecture. The center of attention of each head $h$ is initialized to $\bar { \Delta ^ { ( h ) } } \sim \mathcal { N } ( \mathbf { 0 } , \bar { 2 } I _ { 2 } )$ .
|
| 233 |
+
|
| 234 |
+
Figure 3 shows how the initial positions of the heads (different colors) at layer 4 changed during training. We can see that after optimization, the heads attend on specific pixel of the image forming a grid around the query pixel. Our intuition that Self-Attention applied to images learns convolutional filters around the queried pixel is confirmed.
|
| 235 |
+
|
| 236 |
+
Figure 4 displays all attention head at each layer of the model at the end of the training. It can be seen that in the first few layers the heads tend to focus on local patterns (layers 1 and 2), while deeper layers (layers 3-6) also attend to larger patterns by positioning the center of attention further from the queried pixel position. We also include in the Appendix a plot of the attention positions for a higher number of heads $N _ { h } = 1 6$ ). Figure 14 displays both local patterns similar to CNN and long range dependencies. Interestingly, attention heads do not overlap and seem to take an arrangement maximizing the coverage of the input space.
|
| 237 |
+
|
| 238 |
+

|
| 239 |
+
Figure 4: Centers of attention of each attention head (different colors) for the 6 self-attention layers using quadratic positional encoding. The central black square is the query pixel, whereas solid and dotted circles represent the $50 \%$ and $90 \%$ percentiles of each Gaussian, respectively.
|
| 240 |
+
|
| 241 |
+
# 4.3 LEARNED RELATIVE POSITIONAL ENCODING
|
| 242 |
+
|
| 243 |
+
We move on to study the positional encoding used in practice by fully-attentional models on images.
|
| 244 |
+
|
| 245 |
+
We implemented the 2D relative positional encoding scheme used by (Ramachandran et al., 2019; Bello et al., 2019): we learn a $\lfloor D _ { p } / 2 \rfloor$ position encoding vector for each row and each column pixel shift. Hence, the relative positional encoding of a key pixel at position $\boldsymbol { k }$ with a query pixel at position $\pmb q$ is the concatenation of the row shift embedding $\delta _ { 1 }$ and the column shift embedding $\delta _ { 2 }$ (where $\pmb { \delta } = \pmb { k } - \pmb { q } )$ . We chose $D _ { p } = D _ { o u t } = 4 0 0$ in the experiment. We differ from their (unpublished) implementation in the following points: $( i )$ we do not use convolution stem and ResNet bottlenecks for downsampling, but only a $2 \times 2$ invertible downsampling layer (Jacobsen et al., 2018) at input, $( i i )$ we use $D _ { h } = D _ { o u t }$ instead of $D _ { h } = D _ { o u t } / N _ { h }$ backed by our theory that the effective number of learned filters is $\operatorname* { m i n } ( D _ { h } , D _ { o u t } )$ .
|
| 246 |
+
|
| 247 |
+
At first, we discard the input data and compute the attention scores solely as the last term of eq. (8). The attention probabilities of each head at each layer are displayed on Figure 5. The figure confirms our hypothesis for the first two layers and partially for the third: even when left to learn the positional encoding scheme from randomly initialized vectors, certain self-attention heads (depicted on the left) learn to attend to individual pixels, closely matching the condition of Lemma 1 and thus Theorem 1. At the same time, other heads pay attention to horizontally-symmetric but non-localized patterns, as well as to long-range pixel inter-dependencies.
|
| 248 |
+
|
| 249 |
+
We move on to a more realistic setting where the attention scores are computed using both positional and content-based attention (i.e., $q ^ { \top } \bar { k } + q ^ { \top } r$ in (Ramachandran et al., 2019)) which corresponds to a full-blown standalone self-attention model.
|
| 250 |
+
|
| 251 |
+
The attention probabilities of each head at each layer are displayed in Figure 6. We average the attention probabilities over a batch of 100 test images to outline the focus of each head and remove the dependency on the input image. Our hypothesis is confirmed for some heads of layer 2 and 3: even when left to learn the encoding from the data, certain self-attention heads only exploit positionbased attention to attend to distinct pixels at a fixed shift from the query pixel reproducing the receptive field of a convolutional kernel. Other heads use more content-based attention (see Figures 8 to 10 in Appendix for non-averaged probabilities) leveraging the advantage of Self-Attention over CNN which does not contradict our theory. In practice, it was shown by Bello et al. (2019) that combining CNN and self-attention features outperforms each taken separately. Our experiments shows that such combination is learned when optimizing an unconstrained fully-attentional model.
|
| 252 |
+
|
| 253 |
+
The similarity between convolution and multi-head self-attention is striking when the query pixel is slid over the image: the localized attention patterns visible in Figure 6 follow the query pixel. This characteristic behavior materializes when comparing Figure 6 with the attention probabilities at a different query pixel (see Figure 7 in Appendix). Attention patterns in layers 2 and 3 are not only localized but stand at a constant shift from the query pixel, similarly to convolving the receptive field of a convolutional kernel over an image. This phenomenon is made evident on our interactive website7. This tool is designed to explore different components of attention for diverse images with or without content-based attention. We believe that it is a useful instrument to further understand how MHSA learns to process images.
|
| 254 |
+
|
| 255 |
+

|
| 256 |
+
Figure 5: Attention probabilities of each head (column) at each layer $( r o w )$ using learned relative positional encoding without content-based attention. The central black square is the query pixel. We reordered the heads for visualization and zoomed on the $7 \mathbf { x } 7$ pixels around the query pixel.
|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
Figure 6: Attention probabilities for a model with 6 layers (rows) and 9 heads (columns) using learned relative positional encoding and content-content based attention. Attention maps are averaged over 100 test images to display head behavior and remove the dependence on the input content. The black square is the query pixel. More examples are presented in Appendix A.
|
| 260 |
+
|
| 261 |
+
# 5 RELATED WORK
|
| 262 |
+
|
| 263 |
+
In this section, we review the known differences and similarities between CNNs and transformers.
|
| 264 |
+
|
| 265 |
+
The use of CNN networks for text—at word level (Gehring et al., 2017) or character level (Kim, 2014)—is more seldom than transformers (or RNN). Transformers and convolutional models have been extensively compared empirically on tasks of Natural Language Processing and Neural Machine Translation. It was observed that transformers have a competitive advantage over convolutional model applied to text (Vaswani et al., 2017). It is only recently that Bello et al. (2019); Ramachandran et al. (2019) used transformers on images and showed that they achieve similar accuracy as ResNets. However, their comparison only covers performance and number of parameters and FLOPS but not expressive power.
|
| 266 |
+
|
| 267 |
+
Beyond performance and computational-cost comparisons of transformers and CNN, the study of expressiveness of these architectures has focused on their ability to capture long-term dependencies (Dai et al., 2019). Another interesting line of research has demonstrated that transformers are Turingcomplete (Dehghani et al., 2018; Perez et al., 2019), which is an important theoretical result but is ´ not informative for practitioners. To the best of our knowledge, we are the first to show that the class of functions expressed by a layer of self-attention encloses all convolutional filters.
|
| 268 |
+
|
| 269 |
+
The closest work in bridging the gap between attention and convolution is due to Andreoli (2019). They cast attention and convolution into a unified framework leveraging tensor outerproduct. In this framework, the receptive field of a convolution is represented by a “basis” tensor $\mathbf { \lambda } \mathbf { A } ~ \in ~ \mathbb { R } ^ { K \times K \times H \times W \times H \times W }$ . For instance, the receptive field of a classical $K \times K$ convolutional kernel would be encoded by $\mathsf { A } _ { \Delta , q , k } = \mathbb { 1 } \{ k - q \overset { - } { = } \Delta \}$ for $\pmb { \Delta } \in \mathbb { \Delta } _ { K }$ . The author distinguishes this index-based convolution with content-based convolution where $\pmb { \mathsf { A } }$ is computed from the value of the input, e.g., using a key/query dot-product attention. Our work moves further and presents sufficient conditions for relative positional encoding injected into the input content (as done in practice) to allow content-based convolution to express any index-based convolution. We further show experimentally that such behavior is learned in practice.
|
| 270 |
+
|
| 271 |
+
# 6 CONCLUSION
|
| 272 |
+
|
| 273 |
+
We showed that self-attention layers applied to images can express any convolutional layer (given sufficiently many heads) and that fully-attentional models learn to combine local behavior (similar to convolution) and global attention based on input content. More generally, fully-attentional models seem to learn a generalization of CNNs where the kernel pattern is learned at the same time as the filters—similar to deformable convolutions (Dai et al., 2017; Zampieri, 2019). Interesting directions for future work include translating existing insights from the rich CNNs literature back to transformers on various data modalities, including images, text and time series.
|
| 274 |
+
|
| 275 |
+
# ACKNOWLEDGMENTS
|
| 276 |
+
|
| 277 |
+
Jean-Baptiste Cordonnier is thankful to the Swiss Data Science Center (SDSC) for funding this work. Andreas Loukas was supported by the Swiss National Science Foundation (project “Deep Learning for Graph Structured Data”, grant number PZ00P2 179981).
|
| 278 |
+
|
| 279 |
+
# REFERENCES
|
| 280 |
+
|
| 281 |
+
Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dan Mane, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, ´ Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viegas, Oriol Vinyals, Pete Warden, Martin Watten- ´ berg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-scale machine learning on heterogeneous systems, 2015. Software available from tensorflow.org.
|
| 282 |
+
|
| 283 |
+
Jean-Marc Andreoli. Convolution, attention and structure embedding. NeurIPS 2019 workshop on Graph Representation Learning, Dec 13, 2019, Vancouver, BC, Canada, 2019.
|
| 284 |
+
|
| 285 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015.
|
| 286 |
+
|
| 287 |
+
Irwan Bello, Barret Zoph, Ashish Vaswani, Jonathon Shlens, and Quoc V. Le. Attention Augmented Convolutional Networks. arXiv:1904.09925 [cs], April 2019.
|
| 288 |
+
|
| 289 |
+
Jifeng Dai, Haozhi Qi, Yuwen Xiong, Yi Li, Guodong Zhang, Han Hu, and Yichen Wei. Deformable convolutional networks. CoRR, abs/1703.06211, 2017.
|
| 290 |
+
|
| 291 |
+
Zihang Dai, Zhilin Yang, Yiming Yang, Jaime G. Carbonell, Quoc V. Le, and Ruslan Salakhutdinov. Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context. CoRR, abs/1901.02860, 2019.
|
| 292 |
+
|
| 293 |
+
Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Lukasz Kaiser. Universal transformers. CoRR, abs/1807.03819, 2018.
|
| 294 |
+
|
| 295 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. CoRR, abs/1810.04805, 2018.
|
| 296 |
+
|
| 297 |
+
Jean-Yves Franceschi, Aymeric Dieuleveut, and Martin Jaggi. Unsupervised scalable representation learning for multivariate time series. In NeurIPS 2019, 2019.
|
| 298 |
+
|
| 299 |
+
Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N. Dauphin. Convolutional sequence to sequence learning. CoRR, abs/1705.03122, 2017.
|
| 300 |
+
|
| 301 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. CoRR, abs/1512.03385, 2015.
|
| 302 |
+
|
| 303 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural Computation, 9(8): 1735–1780, 1997.
|
| 304 |
+
|
| 305 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pp. 7132–7141, 2018.
|
| 306 |
+
|
| 307 |
+
Jorn-Henrik Jacobsen, Arnold W.M. Smeulders, and Edouard Oyallon. i-revnet: Deep invertible ¨ networks. In International Conference on Learning Representations, 2018.
|
| 308 |
+
|
| 309 |
+
Yoon Kim. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1746– 1751, Doha, Qatar, October 2014. Association for Computational Linguistics. doi: 10.3115/v1/ D14-1181.
|
| 310 |
+
|
| 311 |
+
Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for advanced research).
|
| 312 |
+
|
| 313 |
+
Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In NIPS Autodiff Workshop, 2017.
|
| 314 |
+
|
| 315 |
+
Jorge Perez, Javier Marinkovic, and Pablo Barcel ´ o. On the turing completeness of modern neural ´ network architectures. CoRR, abs/1901.03429, 2019.
|
| 316 |
+
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2018.
|
| 317 |
+
Prajit Ramachandran, Niki Parmar, Ashish Vaswani, Irwan Bello, Anselm Levskaya, and Jonathon Shlens. Stand-alone self-attention in vision models. CoRR, abs/1906.05909, 2019.
|
| 318 |
+
Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alexander ¨ Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A generative model for raw audio. arXiv preprint arXiv:1609.03499, 2016.
|
| 319 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, abs/1706.03762, 2017.
|
| 320 |
+
Xiaolong Wang, Ross B. Girshick, Abhinav Gupta, and Kaiming He. Non-local neural networks. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, pp. 7794–7803, 2018.
|
| 321 |
+
Zhilin Yang, Zihang Dai, Yiming Yang, Jaime G. Carbonell, Ruslan Salakhutdinov, and Quoc V. Le. Xlnet: Generalized autoregressive pretraining for language understanding. CoRR, abs/1906.08237, 2019.
|
| 322 |
+
Luca Zampieri. Geometric deep learning for volumetric computational fluid dynamics. pp. 67, 2019.
|
| 323 |
+
|
| 324 |
+
# APPENDIX
|
| 325 |
+
|
| 326 |
+
# A MORE EXAMPLES WITH CONTENT-BASED ATTENTION
|
| 327 |
+
|
| 328 |
+
We present more examples of attention probabilities computed by self-attention model. Figure 7 shows average attention at a different query pixel than Figure 6. Figures 8 to 10 display attention for single images.
|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
Figure 7: Attention probabilities for a model with 6 layers (rows) and 9 heads (columns) using learned relative positional encoding and content-content attention. We present the average of 100 test images. The black square is the query pixel.
|
| 332 |
+
|
| 333 |
+

|
| 334 |
+
Figure 8: Attention probabilities for a model with 6 layers (rows) and 9 heads (columns) using learned relative positional encoding and content-content based attention. The query pixel (black square) is on the frog head.
|
| 335 |
+
|
| 336 |
+

|
| 337 |
+
Figure 9: Attention probabilities for a model with 6 layers (rows) and 9 heads (columns) using learned relative positional encoding and content-content based attention. The query pixel (black square) is on the horse head.
|
| 338 |
+
|
| 339 |
+

|
| 340 |
+
Figure 10: Attention probabilities for a model with 6 layers (rows) and 9 heads (columns) using learned relative positional encoding and content-content based attention. The query pixel (black square) is on the building in the background.
|
| 341 |
+
|
| 342 |
+
B HYPER-PARAMETERS USED IN OUR EXPERIMENTS
|
| 343 |
+
Table 2: Self-attention network parameters
|
| 344 |
+
|
| 345 |
+
<table><tr><td colspan="2">Hyper-parameters</td></tr><tr><td>number of layers number of heads hidden dimension intermediate dimension invertible pooling width dropout probability</td><td>6 9 400 512 2 0.1</td></tr><tr><td>layer normalization epsilon number of epochs batch size learning rate weight decay</td><td>10-12 300 100 0.1 0.0001 0.9</td></tr></table>
|
| 346 |
+
|
| 347 |
+
C POSITIONAL ENCODING REFERENCES
|
| 348 |
+
Table 3: Types of positional encoding used by transformers models applied to text (top) and images (bottom). When multiple encoding types have been tried, we report the one advised by the authors.
|
| 349 |
+
|
| 350 |
+
<table><tr><td rowspan="2">Model</td><td colspan="3">type of positional encoding</td><td rowspan="2">relative</td></tr><tr><td>sinusoids</td><td>learned</td><td>quadratic</td></tr><tr><td>Vaswani et al. (2017)</td><td>√</td><td></td><td></td><td></td></tr><tr><td>Radford et al. (2018)</td><td></td><td></td><td></td><td></td></tr><tr><td>Devlin et al. (2018)</td><td></td><td>√</td><td></td><td></td></tr><tr><td>Dai et al. (2019)</td><td>4</td><td></td><td></td><td>√</td></tr><tr><td>Yang et al. (2019)</td><td></td><td></td><td></td><td>√</td></tr><tr><td>Bello et al. (2019)</td><td></td><td>√</td><td></td><td>√</td></tr><tr><td>Ramachandran et al. (2019)</td><td></td><td></td><td></td><td>√</td></tr><tr><td>Our work</td><td></td><td><</td><td>√</td><td>√</td></tr></table>
|
| 351 |
+
|
| 352 |
+
# D GENERALIZED LEMMA 1
|
| 353 |
+
|
| 354 |
+
We present a generalization of Lemma 1 that replaces the necessity of hard attention (to single pixels) by a milder assumption: the attention probabilities should span the grid receptive field. The conditions of this Lemma are still satisfied by Lemma 2, hence Theorem 1 follows.
|
| 355 |
+
|
| 356 |
+
Lemma 3. Consider a multi-head self-attention layer consisting of $N _ { h } \ge K ^ { 2 }$ heads, $D _ { h } \geq D _ { o u t }$ and let $\omega : [ H ] \times [ W ] \to [ H W ]$ be a pixel indexing. Then, for any convolutional layer with a $K \times$ $K$ kernel and $D _ { o u t }$ output channels, there exists $\{ W _ { \nu a l } ^ { ( h ) } \} _ { h \in [ N _ { h } ] }$ and $W _ { o u t }$ such that $\mathrm { M H S A } ( { \pmb X } ) =$ $\mathrm { C o n v } ( { \pmb X } )$ for every $\pmb { \chi } \in \mathbb { R } ^ { W \times H \times D _ { i n } }$ if and only $i f ,$ for all $\pmb q \in [ H ] \times [ W ]$ , 8
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\mathrm { s p a n } ( \{ e _ { \omega ( \mathbf { q } + \Delta ) } \in \mathbb { R } ^ { H W } : \Delta \in \mathbb { \Delta } _ { K } \} ) \subseteq \mathrm { s p a n } ( \{ \mathrm { v e c t } ( \mathrm { s o f t m a x } ( \pmb { \hat { a } } _ { \mathbf { q } ; \cdot } ^ { ( h ) } ) ) : h \in [ N _ { h } ] \} ) .
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+

|
| 363 |
+
Figure 11: Factorization of the vectorized weight matrices $V _ { \pmb { q } } ^ { \mathrm { c o n v } }$ and $V _ { q } ^ { \mathrm { S A } }$ used to compute the output at position $\pmb q$ for an input image of dimension $H \times W$ . On the left: a convolution of kernel $2 \times 2$ , on the right: a self-attention with $N _ { h } = 5$ heads. $D _ { i n } = 2$ , $D _ { o u t } = 3$ in both cases.
|
| 364 |
+
|
| 365 |
+
Proof. Our first step will be to rework the expression of the Multi-Head Self-Attention operator from equation (1) and equation (4) such that the effect of the multiple heads becomes more transparent:
|
| 366 |
+
|
| 367 |
+
$$
|
| 368 |
+
\mathrm { M H S A } ( \mathbf { X } ) = b _ { o u t } + \sum _ { h \in [ N _ { h } ] } \mathrm { s o f t m a x } ( \mathbf { A } ^ { ( h ) } ) \mathbf { X } \underbrace { W _ { v a l } ^ { ( h ) } W _ { o u t } [ ( h - 1 ) D _ { h } + 1 : h D _ { h } + 1 ] } _ { W ^ { ( h ) } }
|
| 369 |
+
$$
|
| 370 |
+
|
| 371 |
+
Note that each head’s value matrix $W _ { \nu a l } ^ { ( h ) } \in \mathbb { R } ^ { D _ { i n } \times D _ { h } }$ and each block of the projection matrix $W _ { o u t }$ of dimension $D _ { h } \times D _ { o u t }$ are learned. Assuming that $D _ { h } \ \ge \ D _ { o u t }$ , we can replace each pair of matrices by a learned matrix $W ^ { ( h ) }$ for each head. We consider one output pixel of the multi-head self-attention and drop the bias term for simplicity:
|
| 372 |
+
|
| 373 |
+
$$
|
| 374 |
+
\mathrm { M H S A } ( \pmb { \mathsf { X } } ) _ { q ; \mathit { = } } \sum _ { h \in [ N _ { h } ] } \Big ( \sum _ { k } a _ { q , k } ^ { ( h ) } \pmb { \mathsf { X } } _ { k , : } \Big ) \pmb { W } ^ { ( h ) } = \sum _ { k } \pmb { \mathsf { X } } _ { k , : } \underbrace { \Big ( \sum _ { h \in [ N _ { h } ] } a _ { q , k } ^ { ( h ) } \pmb { W } ^ { ( h ) } \Big ) } _ { W _ { q , k } ^ { \mathrm { S A } } \in \mathbb { R } ^ { D _ { i n } \times D _ { o u t } } } ,
|
| 375 |
+
$$
|
| 376 |
+
|
| 377 |
+
with a(h)q,k $a _ { \pmb { q } , \pmb { k } } ^ { ( h ) } = \mathrm { s o f t m a x } ( \pmb { \mathsf { A } } _ { \pmb { q } , \colon } ^ { ( h ) } ) _ { \pmb { k } }$ . We rewrite the output of a convolution at pixel $\pmb q$ in the same manner:
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
\operatorname { C o n v } ( \mathbf { X } ) _ { q , : } = \sum _ { \Delta \in \Delta _ { K } } \mathbf { X } _ { q + \Delta , : } \mathsf { W } _ { \Delta , : , : } = \sum _ { k \in [ H ] \times [ W ] } \mathbf { X } _ { k , : } \underbrace { \mathbb { 1 } _ { \{ k - q \in \Delta _ { K } \} } \mathbf { W } _ { k - q , : , : } } _ { W _ { q , k } ^ { \mathrm { c o n v } } \in \mathbb { R } ^ { D _ { i n } \times D _ { o u t } } } .
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
Equality between equations (16) and (17) holds for any input $\pmb { \chi }$ if and only if the linear transformations for each pair of key/query pixels aweight matrices into matrices of dimension $\dot { W } _ { q , k } ^ { \mathrm { c o n v } } = W _ { q , k } ^ { \mathrm { S A } } \dot { \forall q } , k$ $D _ { i n } D _ { o u t } \times H W$ $V _ { \pmb { q } } ^ { \mathrm { c o n v } } : = [ \mathrm { v e c t } ( { W } _ { \pmb { q } , \pmb { k } } ^ { \mathrm { c o n v } } ) ] _ { { \pmb { k } } \in [ H ] \times [ W ] }$ and $V _ { \pmb { q } } ^ { \mathrm { S A } } : = [ \mathrm { v e c t } ( { W } _ { \pmb { q } , \pmb { k } } ^ { \mathrm { S A } } ) ] _ { \pmb { k } \in [ H ] \times [ W ] }$ . Hence, to show that $\mathrm { C o n v } ( \pmb { \mathsf { X } } ) = \mathrm { M H S A } ( \pmb { \mathsf { X } } )$ for all $\pmb { \chi }$ , we must show that $V _ { q } ^ { \mathrm { c o n v } } = V _ { q } ^ { \mathrm { S A } }$ for all $\pmb q$ .
|
| 384 |
+
|
| 385 |
+
q in the receptive field of pixel The matrix has a restricted support: only the columns associated with a pixel shift $\pmb q$ can be non-zero. This leads to the factorization $V _ { q } ^ { \mathrm { c o n v } } = W ^ { \mathrm { c o n v } } E _ { q }$ $\pmb { \Delta } \in \mathbb { \Delta } _ { K }$ displayed in Figure 11 where $W ^ { \mathrm { c o n v } } \in \mathbb R ^ { D _ { i n } D _ { o u t } \times K ^ { 2 } }$ and $E _ { q } \in \mathbb { R } ^ { K ^ { 2 } \times H W }$ . Given an ordering of the shifts $\pmb { \Delta } \in \mathbb { \Delta } _ { K }$ indexed by $j$ , set $( W ^ { \mathrm { c o n v } } ) _ { : , j } = \mathrm { v e c t } ( \mathbf { W } _ { \Delta , : , : } )$ and $( E _ { q } ) _ { j , : } = e _ { \omega ( q + \Delta ) } .$ . On the other hand, we decompose $V _ { q } ^ { \mathrm { S A } } = W ^ { \mathrm { S A } } A _ { q }$ with $( W ^ { \mathrm { S A } } ) _ { : , h } = \mathrm { v e c t } ( W ^ { ( h ) } )$ and $( \boldsymbol { A } _ { q } ) _ { h , i } = \boldsymbol { a } _ { \boldsymbol { q } , \omega ( i ) } ^ { ( h ) }$ .
|
| 386 |
+
|
| 387 |
+
The proof is concluded by showing that $\operatorname { r o w } ( E _ { q } ) \subseteq \operatorname { r o w } ( A _ { q } )$ is a necessary and sufficient condition for the existence of a $W ^ { \mathrm { S A } }$ such that any $V _ { q } ^ { \mathrm { c o n v } } = W ^ { \mathrm { c o n v } } E _ { q }$ can be written as $W ^ { \mathrm { S A } } A _ { q }$ .
|
| 388 |
+
|
| 389 |
+
Sufficient. Given that $\operatorname { r o w } ( E _ { q } ) \subseteq \operatorname { r o w } ( A _ { q } )$ , there exists $\Phi \in \mathbb { R } ^ { K ^ { 2 } \times N _ { h } }$ such that $E _ { q } = \Phi A _ { q }$ and a valid decomposition is $W ^ { \mathrm { S A } } = W ^ { \mathrm { c o n v } } \Phi$ which gives $W ^ { \mathrm { S A } } A _ { q } = V _ { q } ^ { \mathrm { c o n v } }$ .
|
| 390 |
+
|
| 391 |
+
Necessary. Assume there exists $\boldsymbol { x } \in \mathbb { R } ^ { H W }$ such that $\pmb { x } \in \operatorname { r o w } ( E _ { q } )$ and $\pmb { x } \not \in \operatorname { r o w } ( A _ { q } )$ and set $\pmb { x } ^ { \top }$ to be a row of $V _ { q } ^ { \mathrm { c o n v } }$ . Then, $W ^ { \mathrm { S A } } A _ { q } \ne V _ { q } ^ { \mathrm { c o n v } }$ for any $W ^ { \mathrm { S A } }$ and there is no possible decomposition.
|
| 392 |
+
|
| 393 |
+
# E GENERALIZED QUADRATIC POSITIONAL ENCODING
|
| 394 |
+
|
| 395 |
+
We noticed the similarity of the attention probabilities in the quadratic positional encoding (Section 3) to isotropic bivariate Gaussian distributions with bounded support:
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
\mathrm { s o f t m a x } ( \pmb { \mathsf { A } } _ { q , : } ) _ { \pmb { k } } = \frac { e ^ { - \alpha \parallel ( \pmb { k } - \pmb { q } ) - \pmb { \Delta } \parallel ^ { 2 } } } { \sum _ { \pmb { k } ^ { \prime } \in [ W ] \times [ H ] } e ^ { - \alpha \parallel ( \pmb { k } ^ { \prime } - \pmb { q } ) - \pmb { \Delta } \parallel ^ { 2 } } } .
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
Building on this observation, we further extended our attention mechanism to non-isotropic Gaussian distribution over pixel positions. Each head is parametrized by a center of attention $\pmb { \Delta }$ and a covariance matrix $\pmb { \Sigma }$ to obtain the following attention scores,
|
| 402 |
+
|
| 403 |
+
$$
|
| 404 |
+
{ \pmb A } _ { q , k } = - \frac { 1 } { 2 } ( { \pmb \delta } - { \pmb \Delta } ) ^ { \top } { \pmb \Sigma } ^ { - 1 } ( { \pmb \delta } - { \pmb \Delta } ) = - \frac { 1 } { 2 } { \pmb \delta } ^ { \top } { \pmb \Sigma } ^ { - 1 } { \pmb \delta } + { \pmb \delta } ^ { \top } { \pmb \Sigma } ^ { - 1 } { \pmb \Delta } - \frac { 1 } { 2 } { \pmb \Delta } ^ { \top } { \pmb \Sigma } ^ { - 1 } { \pmb \Delta } ,
|
| 405 |
+
$$
|
| 406 |
+
|
| 407 |
+
where, once more, $\delta = k - q$ . The last term can be discarded because the softmax is shift invariant and we rewrite the attention coefficient as a dot product between the head target vector $\textbf { { v } }$ and the relative position encoding $\mathbf { \Delta } _ { \pmb { r } \delta }$ (consisting of the first and second order combinations of the shift in pixels $\pmb { \delta }$ ):
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\boldsymbol { v } = \frac { 1 } { 2 } ( 2 ( \boldsymbol { \Sigma } ^ { - 1 } \boldsymbol { \Delta } ) _ { 1 } , 2 ( \boldsymbol { \Sigma } ^ { - 1 } \boldsymbol { \Delta } ) _ { 2 } , - \boldsymbol { \Sigma } _ { 1 , 1 } ^ { - 1 } , - \boldsymbol { \Sigma } _ { 2 , 2 } ^ { - 1 } , - 2 \cdot \boldsymbol { \Sigma } _ { 1 , 2 } ^ { - 1 } ) ^ { \top } \mathrm { ~ a n d ~ } \boldsymbol { r } _ { \delta } = ( \delta _ { 1 } , \delta _ { 2 } , \delta _ { 1 } ^ { 2 } , \delta _ { 2 } ^ { 2 } , \delta _ { 1 } \delta _ { 2 } ) ^ { \top } .
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
Evaluation. We trained our model using this generalized quadratic relative position encoding. We were curious to see if, using the above encoding the self-attention model would learn to attend to non-isotropic groups of pixels—thus forming unseen patterns in CNNs. Each head was parametrized by $\pmb { \Delta } \in \mathbb { R } ^ { 2 }$ and $\bar { \mathbf { \boldsymbol { \Sigma } } } ^ { - 1 / 2 } \in \mathbb { R } ^ { 2 \times 2 }$ to ensure that the covariance matrix remained positive semi-definite. We initialized the center of attention to $\Delta ^ { ( h ) } \sim \mathcal { N } ( \mathbf { 0 } , 2 I _ { 2 } )$ and $\pmb { \Sigma } ^ { - 1 / 2 } = \pmb { I } _ { 2 } + \pmb { \mathcal { N } } ( \mathbf { 0 } , 0 . 0 1 \pmb { I } _ { 2 } )$ so that initial attention probabilities were close to an isotropic Gaussian. Figure 12 shows that the network did learn non-isotropic attention probability patterns, especially in high layers. Nevertheless, the fact that we do not obtain any performance improvement seems to suggest that attention non-isotropy is not particularly helpful in practice—the quadratic positional encoding suffices.
|
| 414 |
+
|
| 415 |
+

|
| 416 |
+
Figure 12: Centers of attention of each attention head (different colors) for the 6 self-attention layers using non-isotropic Gaussian parametrization. The central black square is the query pixel, whereas solid and dotted circles represent the $50 \%$ and $90 \%$ percentiles of each Gaussian, respectively.
|
| 417 |
+
|
| 418 |
+
Pruning degenerated heads. Some non-isotropic attention heads attend on “non-intuitive” patches of pixels: either attending a very thin stripe of pixels, when $\Sigma ^ { - 1 }$ was almost singular, or attending all pixels uniformly, when $\pmb { \Sigma } ^ { - 1 }$ was close to 0 (i.e. constant attention scores). We asked ourselves, are such attention patterns indeed useful for the model or are these heads degenerated and unused? To find out, we pruned all heads having largest eigen-values smaller than $1 0 ^ { - 5 }$ or condition number (ratio of the biggest and smallest eigen-values) greater than $1 0 ^ { 5 }$ . Specifically in our model with 6-layer and 9-heads each, we pruned $[ 2 , 4 , 1 , 2 , 6 , 0 ]$ heads from the first to the last layer. This means that these layers cannot express a $3 \times 3$ kernel anymore. As shown in yellow on fig. 2, this ablation initially hurts a bit the performance, probably due to off biases, but after a few epochs of continued training with a smaller learning rate (divided by 10) the accuracy recovers its unpruned value. Hence, without sacrificing performance, we reduce the size of the parameters and the number of FLOPS by a fourth.
|
| 419 |
+
|
| 420 |
+
# F INCREASING THE NUMBER OF HEADS
|
| 421 |
+
|
| 422 |
+
For completeness, we also tested increasing the number of heads of our architecture from 9 to 16.
|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
Figure 13: Evolution of test accuracy on CIFAR10. Pruned model (yellow) is continued training of the non-isotropic model (orange).
|
| 426 |
+
|
| 427 |
+
<table><tr><td>Models</td><td>accuracy</td><td># of params</td><td># of FLOPS</td></tr><tr><td>ResNet18</td><td>0.938</td><td>11.2M</td><td>1.1B</td></tr><tr><td>SA quadratic emb.</td><td>0.938</td><td>12.1M</td><td>6.2B</td></tr><tr><td>SA quadratic emb. gen.</td><td>0.934</td><td>12.1M</td><td>6.2B</td></tr><tr><td>SA quadratic emb. gen. pruned</td><td>0.934</td><td>9.7M</td><td>4.9B</td></tr><tr><td>SA learned emb.</td><td>0.918</td><td>12.3M</td><td>6.2B</td></tr><tr><td>SA learned emb. + content</td><td>0.871</td><td>29.5M</td><td>15B</td></tr></table>
|
| 428 |
+
|
| 429 |
+

|
| 430 |
+
Table 4: Number of parameters and accuracy on CIFAR-10 per model. SA stands for SelfAttention.
|
| 431 |
+
Figure 14: Centers of attention for 16 attention heads (different colors) for the 6 self-attention layers using quadratic positional encoding. The central black square is the query pixel, whereas solid and dotted circles represent the $50 \%$ and $90 \%$ percentiles of each Gaussian, respectively.
|
| 432 |
+
|
| 433 |
+
Similar to Figure 4, we see that the network distinguishes two main types of attention patterns. Localized heads (i.e., those that attend to nearly individual pixels) appear more frequently in the first few layers. The self-attention layer uses these heads to act in a manner similar to how convolutional layers do. Heads with less-localized attention become more common at higher layers.
|
parse/train/HJlnC1rKPB/HJlnC1rKPB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlnC1rKPB/HJlnC1rKPB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJlnC1rKPB/HJlnC1rKPB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJx38iC5KX/HJx38iC5KX.md
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DOMAIN GENERALIZATION VIA INVARIANT REPRESENTATION UNDER DOMAIN-CLASS DEPENDENCY
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Learning domain-invariant representation is a dominant approach for domain generalization, where we need to build a classifier that is robust toward domain shifts induced by change of users, acoustic or lighting conditions, etc. However, prior domain-invariance-based methods overlooked the underlying dependency of classes (target variable) on source domains during optimization, which causes the trade-off between classification accuracy and domain-invariance, and often interferes with the domain generalization performance. This study first provides the notion of domain generalization under domain-class dependency and elaborates on the importance of considering the dependency by expanding the analysis of Xie et al. (2017). We then propose a method, invariant feature learning under optimal classifier constrains (IFLOC), which explicitly considers the dependency and maintains accuracy while improving domain-invariance. Specifically, the proposed method regularizes the representation so that it has as much domain information as the class labels, unlike prior methods that remove all domain information. Empirical validations show the superior performance of IFLOC to baseline methods, supporting the importance of the domain-class dependency in domain generalization and the efficacy of the proposed method for overcoming the issue.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
In supervised learning problems we typically assume that samples are obtained from the same distribution in training and testing; however, such an assumption does not hold in many practical situations, depressing the classification accuracy for the test data (Torralba & Efros (2011)). One typical situation is domain generalization (e.g., Blanchard et al. (2011)): we have labeled data from several source domains and collectively exploit them so that the trained system generalizes to other, unseen but somewhat similar, target domains. Such challenges arise in many applications, e.g., hand-writing recognition (Shankar et al. (2018)), robust speech recognition (Sriram et al. (2018)), and sensor data interpretation (Erfani et al. (2016)).
|
| 12 |
+
|
| 13 |
+
To address domain generalization, many methods take advantage of invariant feature learning (Muandet et al. (2013); Erfani et al. (2016); Ghifary et al. (2017); Xie et al. (2017)). Such methods assume that learning the representation $( h )$ that is invariant to domains $( d )$ from input data $( x )$ prevents $h$ to overfit to source domains and leads to higher classification accuracy for unseen domains. To obtain such $h$ , we used various methods to measure the invariance of $h$ to $d$ and imposed some regularization on the measurement. For example, domain adversarial networks (DAN) (Ganin et al. (2016); Xie et al. (2017)) measure the invariance using a domain classifier (also called a discriminator) parameterized by deep neural networks and impose regularization by deceiving it.
|
| 14 |
+
|
| 15 |
+
Most prior works, however, overlooked the underlying dependency of classes on source domains, which we refer to as domain-class dependency. More specifically, we define domain-class dependency as the situation where domain and class labels are statistically dependent due to some common latent factor $( z )$ of $y$ and $d$ (Figure 1-right). Under the domain-class dependency, merely forcing the optimal domain-invariance harms the classification accuracy, as shown in Figure 1-(c). Intuitively speaking, since $y$ contains information about $d$ under domain-class dependency, $h$ must keep at least as much domain information as $y$ to achieve the optimal classification accuracy; however, invariant feature learning attempts to remove all domain information from $h$ , which causes the trade-off. It might be similar to the situation where $p ( y | x )$ and $p ( x )$ change across domains due to the causal structure $y x$ (Zhang et al. (2013); Gong et al. (2016) in domain adaptation and Li et al. (2018c) in domain generalization), which we call conditional probability shift. However, the shift does not cause the trade-off as long as $y$ and $\cdot$ are independent (Figure 1-left), so it is necessary to focus on the relationship between $\cdot$ and $\cdot$ .
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The illustration of the domain-class dependency problem. While Li et al. (2018c) focused on the causal relationship between $x$ and $y$ , we focus on the relationship between $\cdot$ and $\cdot$ because it causes the following trade-off problem. (a) When domain and class are independent, domain invariance and classification accuracy can be optimized at the same time. (b,c) In domain-class dependency, there is a trade-off between these two: (b) optimal invariance cannot be achieved when optimal classification accuracy is achieved, and (c) vice versa. We propose a method to lead explicitly to (b) rather than (c), because the primary purpose for domain generalization is classification, not domain-invariance itself.
|
| 19 |
+
|
| 20 |
+
Unfortunately, domain-class dependency is common in real-world datasets as shown in Zhang et al. (2013). The dependency can be caused by both the characteristics of data and errors in collecting data. For example, the WISDM Activity Prediction dataset (Kwapisz et al. (2011)), where classes and domains correspond to activities and users, exhibits the dependency because (1) some activities (jogging and climbing stairs) are strenuous (data characteristics) and (2) other activities (sitting and standing) and some users were added only after the study began (data-collection errors).
|
| 21 |
+
|
| 22 |
+
In this paper, we address domain generalization under domain-class dependency. We first expand the analysis about DAN by Xie et al. (2017), show that domain-class dependency causes the tradeoff problem, and then derive a way to evade the trade-off. Specifically, we investigate the condition where the domain-invariance is maximized under the constraint that it does not interfere with classification accuracy (Figure 1 (b)), because the primary purpose of domain generalization is classification rather than domain-invariance itself. We then propose a novel method invariant feature learning under optimal classifier constraint (IFLOC), modifying DAN’s regularization term to make the learned representation have as much domain information as the class labels, i.e., $H ( d | h ) = H ( d | y )$ holds (here $H$ denotes entropy). Like DAN, IFLOC has an encoder, classifier, and domain discriminator, and also takes over the good properties of DAN: it does not depend on pre-defined metrics (e.g., maximum mean discrepancy (Tzeng et al. (2014))), and it can be trained in an end-to-end manner. Empirical validations show the superior performance of IFLOC to baseline methods, supporting the importance of considering domain-class dependency in domain generalization tasks and the efficacy of the proposed approach for overcoming the issue.
|
| 23 |
+
|
| 24 |
+
The main contributions of this paper can be summarized as follows. Firstly, we elaborate on the trade-off problem under domain-class dependency, both theoretically and experimentally, for the first time in domain generalization context. Secondly, to address the issue we provide theoretical analysis, which shows to what extent latent representations can become invariant to domains without interfering with classification accuracy. Finally, based on the analysis we propose a novel method IFLOC, and validated its efficacy by the experiments on both synthetic and real world datasets.
|
| 25 |
+
|
| 26 |
+
# 2 RELATED WORKS
|
| 27 |
+
|
| 28 |
+
Invariant feature learning is a general-purpose method applicable to domain generalization as well as to domain adaptation (e.g., Tzeng et al. (2014); Ganin et al. (2016)), style transfer (e.g., Lample et al. (2017); Chou et al. (2018)), and fairness-aware classification (e.g., Zemel et al. (2013);
|
| 29 |
+
|
| 30 |
+
Louizos et al. (2016); Madras et al. (2018)). However, it is likely that adjusting it to each specific task can improve performance. For example, in the fairness-aware classification task Madras et al. (2018) proposed to optimize the fairness criterion directly instead of applying invariance to sensitive variables. By analogy, we adapted invariant feature learning for domain generalization so as to address the domain-class dependency problem.
|
| 31 |
+
|
| 32 |
+
Domain generalization has been attracting considerable attention in recent years (Blanchard et al. (2011); Muandet et al. (2013); Shankar et al. (2018)). Note that it is different from domain adaptation in that we cannot obtain input and label data from target domain(s). Although the efficacy of domain-invariance-based methods had been known, Li et al. (2017) showed that non end-to-end methods such as DICA (Muandet et al. (2013)) and MTAE (Ghifary et al. (2015)) do not tend to outperform even vanilla CNN. Thus, end-to-end methods are desirable and can be divided into two categories: adversarial-learning-based methods such as DAN (Ganin et al. (2016); Xie et al. (2017)) and pre-defined-metric-based methods (e.g., Ghifary et al. (2017); Li et al. (2018b)).
|
| 33 |
+
|
| 34 |
+
In particular, IFLOC closely relates to DAN. Although DAN was originally invented for domain adaptation, Xie et al. (2017) showed its efficacy in domain generalization. Also, Xie et al. (2017) provided the intuitive explanation of the trade-off between classification accuracy and domain invariance. However, they did not provide any way to deal with the problem because its focus is invariant feature learning itself. Louppe et al. (2017) provided the similar analysis with Xie et al. (2017), but differs in that they focused on the relation between nuisance parameters (domains) and output distribution of a domain classifier. IFLOC also relates to domain confusion loss (Tzeng et al. (2015)) in that their encoders attempt to directly minimize Kullback-Leibler divergence (KLD) between output distribution of the discriminators and some domain distribution $( p ( d | y )$ in IFLOC and uniform distribution in domain confusion loss), rather than deceive the discriminator as DAN.
|
| 35 |
+
|
| 36 |
+
There are several studies that address domain generalization without utilizing invariant feature learning. For example, Motiian et al. (2017); Li et al. (2018c) proposed to make use of semantic alignment, which attempts to make latent representation given class label $( p ( h | y ) )$ identical within source domains. This approach was originally proposed in Gong et al. (2016) in domain adaptation context, but its efficacy for domain-class dependency is not obvious because it focuses on conditional probability shift. CrossGrad (Shankar et al. (2018)) is one of the recent state-of-the-art domain generalization methods, which utilizes data augmentation with adversarial examples. However, since the method relies on the assumption that $y$ and $d$ are independent, it might not be directly applicable to our setting. MLDG (Li et al. (2018a)), also one of the state-of-the-art methods, utilizes metalearning. Since it makes no assumption about the relation between $y$ and $d$ , it could be combined with our proposed method, though we have not experimentally confirmed it.
|
| 37 |
+
|
| 38 |
+
There are several kinds of distributional shifts other than domain-class dependency, such as conditional probability shift. Although the distinction between that shift and domain-class dependency is important, it has been received less attention. For example, Li et al. (2018c) claimed that conditional probability shift might harm the performance of domain-invariance-based methods, but our analysis in Sec.4.1.1 suggests that the root cause of the performance degradation is not it but domain-class dependency. They also proposed to correct the shift of $\cdot$ across source domains by aligning sampling frequency of each class across domains. However, this approach is not applicable to when some classes are rarely or never appear in some domains (e.g., as in WISDM dataset). In domain adaptation, Zhang et al. (2013); Gong et al. (2016) address the situation where $p ( y )$ changes across source and target domains by estimating $p ( y )$ change using unlabeled target data. However, this approach is not applicable (or necessary) to domain generalization because our problem setting is different from theirs in that we are agnostic on target domain and aim to care about $\cdot$ change within source domains instead.
|
| 39 |
+
|
| 40 |
+
# 3 PRELIMINARIES
|
| 41 |
+
|
| 42 |
+
# 3.1 PROBLEM STATEMENT OF DOMAIN GENERALIZATION
|
| 43 |
+
|
| 44 |
+
Denote $\mathcal { X } , \mathcal { y }$ , and $\mathcal { D }$ as the input feature, label, and domain spaces, respectively. With random variables $x \in { \mathcal { X } } , \ y \in { \mathcal { Y } }$ , and $d \in \mathcal { D }$ ,we can define the probability distribution for each domain $d$ as $p ( x , y | d )$ . Here, we assume that $y$ and $d$ are discrete variables for simplicity. In domain generalization, we are given a training dataset consisting of $D _ { s } = \{ x _ { i } ^ { s } , y _ { i } ^ { s } \} _ { i = 1 } ^ { n ^ { s } }$ for all $s \in \{ 1 , 2 , . . . , m \}$ . Here, each $D _ { s }$ corresponds to samples drawn from the source domain $p ( x , y | d = s )$ . Using the training dataset, we train a classifier $f : \mathcal { X } \mathcal { Y }$ , and use the classifier to predict labels of samples drawn from the unknown target domain $p ( x , y | d = t )$ .
|
| 45 |
+
|
| 46 |
+
# 3.2 DOMAIN ADVERSARIAL NETWORKS FOR DOMAIN GENERALIZATION
|
| 47 |
+
|
| 48 |
+
In this section, we give a brief overview of DAN (Ganin et al. (2016)) given that our proposed method is an extension of it. DAN trains a domain discriminator that attempts to predict domains from latent representations encoded by an encoder, while simultaneously trains the encoder to remove domain information by deceiving the discriminator. This procedure ensures that there is no or little domain information in the representations, so a label classifier attached to the encoder can make robust predictions regarding unseen target domains.
|
| 49 |
+
|
| 50 |
+
Formally, we denote $f _ { E } ( x ) , q _ { M } ( y | h )$ , and $q _ { D } ( d | h ) \ ( E , M$ , and $D$ are the parameters) as deterministic encoder, probabilistic model of label classifier, and that of domain discriminator, respectively. Then, the objective function of DAN is described as follows:
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\operatorname* { m i n } _ { E , M } \operatorname* { m a x } _ { D } J ( E , M , D ) = \mathbb { E } _ { x , d , y \sim p ( x , d , y ) } [ \gamma \log q _ { D } ( d | h = f _ { E } ( x ) ) - \log q _ { M } ( y | h = f _ { E } ( x ) ) ] .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
Here, the second term in Eq.1 simply maximizes the log likelihood of $q _ { M }$ as well as in standard classification problems. On the other hand, the first term corresponds to a minimax game between the encoder and discriminator, where the decoder $q _ { D } ( d | h )$ tries to predict $d$ from $h$ and the encoder $f _ { E } ( x )$ tries to fool $q _ { D } ( d | h )$ .
|
| 57 |
+
|
| 58 |
+
As Xie et al. (2017) originally showed, the minmax game ensures that the learned representation has no or little domain information, i.e., the representation becomes domain-invariant. Such invariance makes a prediction from $h$ to $y$ independent from $d$ , and therefore hopefully helps to build a classifier that correctly handle samples drawn from unknown domains. Below is a brief explanation.
|
| 59 |
+
|
| 60 |
+
Since $h$ is a deterministic mapping of $x$ , the joint probability distribution of $h , d$ and $y$ can be defined as follows:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
\begin{array} { l } { \displaystyle \tilde { p } _ { E } ( h , d , y ) = \int _ { x } \tilde { p } _ { E } ( x , d , h , y ) d x } \\ { \displaystyle = \int _ { x } p ( x , d , y ) \delta ( f _ { E } ( x ) = h ) d x } \end{array}
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
Here, we use the notation of $\tilde { p } _ { E }$ for the true probability distribution that depends on the encoder’s parameter $E$ . Using Eq.2, Eq.1 can be replaced as follows:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\operatorname* { m i n } _ { E , M } \operatorname* { m a x } _ { D } J ( E , M , D ) = \mathbb { E } _ { h , d , y \sim \tilde { p } _ { E } ( h , d , y ) } [ \gamma \log q _ { D } ( d | h ) - \log q _ { M } ( y | h ) ]
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
Assuming $E$ is fixed, the solutions $M ^ { * }$ and $D ^ { * }$ to Eq.3 obviously satisfy $q _ { M ^ { * } } ( y | h ) = \tilde { p } _ { E } ( y | h )$ and $q _ { D ^ { * } } ( d | h ) = \tilde { p } _ { E } ( d | h )$ . Then, substituting $q _ { M ^ { * } }$ and $q _ { D ^ { * } }$ into Eq.3, we can obtain the following optimization problem depending only on $E$ :
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\displaystyle \operatorname* { m i n } _ { E } J ( E ) = - \gamma H _ { \tilde { p } _ { E } } ( d | h ) + H _ { \tilde { p } _ { E } } ( y | h )
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
Solving Eq.4, we can obtain the solutions $M ^ { * } , D ^ { * }$ , and $E ^ { * }$ , which are in Nash equilibrium. Here, $H _ { \tilde { p } _ { E } } ( d | h )$ means conditional entropy with joint probability distribution $\tilde { p } _ { E } ( d , h )$ . Thus, minimizing the second term in Eq.4 intuitively means learning (the mapping function $f _ { E }$ to) the latent representation $h$ which contains as much information about $y$ as possible. On the other hand, the first term can be regarded as a regularizer that attempts to learn $h$ which is invariant to $d$ .
|
| 79 |
+
|
| 80 |
+
# 4 OUR APPROACH
|
| 81 |
+
|
| 82 |
+
# 4.1 ANALYSIS OF DOMAIN-CLASS DEPENDENCY
|
| 83 |
+
|
| 84 |
+
We address domain generalization under domain-class dependency, i.e., the situation where $p ( y | d ) \neq p ( y )$ holds. Although the issue had been overlooked, it is common in real-world datasets given that they can have the dependency in nature, e.g., nocturnal annimals (class) do not tend to appear in daylight (domain), and the dependency in such datasets is often not corrected unlike in standard benchmark datasets. To address the problem, we expand the analysis of Xie et al. (2017) to theoretically show that domain-class dependency causes the trade-off between accuracy and invariance, and to consider to what extent the latent representation should become invariant.
|
| 85 |
+
|
| 86 |
+
# 4.1.1 TRADE-OFF CAUSED BY DOMAIN-CLASS DEPENDENCY
|
| 87 |
+
|
| 88 |
+
We first show that the performance of DAN explained in the previous section suffers from the existence of domain-class dependency. The following analysis also suggests that all of the methods that utilize domain-invariant representation suffer from the dependency. Concretely, we show that the domain-class dependency causes the trade-off between classification accuracy and domain invariance: when $d$ and $y$ are not statistically independent, any $E$ cannot optimize the first and second term in Eq.4 at the same time. In this analysis, for simplicity, we assume that we can obtain any $\tilde { p } _ { E } ( y | h ) , \tilde { p } _ { E } ( d | h )$ , i.e., the models have enough capacity and there are no optimization difficulties.
|
| 89 |
+
|
| 90 |
+
To begin with, we consider only the first term in Eq.4 and address the optimization problem:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\operatorname* { m i n } _ { E } J _ { 1 } ( E ) = - \gamma H _ { \tilde { p } _ { E } } ( d | h )
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
Using the property of entropy, $H _ { \tilde { p } _ { E } } ( d | h )$ is bounded as follows:
|
| 97 |
+
|
| 98 |
+
$$
|
| 99 |
+
H _ { \tilde { p } _ { E } } ( d | h ) \leq H ( d )
|
| 100 |
+
$$
|
| 101 |
+
|
| 102 |
+
Here, $H _ { \tilde { p } _ { E } } ( d | h ) = H ( d )$ holds only if $h$ and $d$ are independent. Thus, Eq.5 has the solution $E ^ { 1 * }$ , which satisfies the following condition:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
H _ { \tilde { p } _ { E ^ { 1 * } } } ( d | h ) = H ( d )
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
Eq.7 suggests that the regularizer in DAN is intended to remove all information about domains from latent variables, thereby making domains and latent variables independent.
|
| 109 |
+
|
| 110 |
+
Next, we analogically consider only the second term in Eq.4, thereby addressing the following optimization problem:
|
| 111 |
+
|
| 112 |
+
$$
|
| 113 |
+
\operatorname* { m i n } _ { E } J _ { 2 } ( E ) = H _ { \tilde { p } _ { E } } ( y | h )
|
| 114 |
+
$$
|
| 115 |
+
|
| 116 |
+
Since conditional entropy $H ( a | b )$ has a minimum value when $b$ contains all information about $a$ , Eq.8 has the solution $E ^ { 2 * }$ , which satisfies the following equation:
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
H _ { \tilde { p } _ { E ^ { 2 * } } } ( d | h ) = H _ { \tilde { p } _ { E ^ { 2 * } } } ( d | h , y )
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
Using Eq.9 and the property of entropy: $H ( a | b , c ) \leq H ( a | b )$ , we can obtain the following condition:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
H _ { \tilde { p } _ { E ^ { 2 * } } } ( d | h ) = H _ { \tilde { p } _ { E ^ { 2 * } } } ( d | h , y ) \leq H ( d | y )
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Eq.10 implies that $h$ has at least as much information about $d$ as $y$ does. Now, we assume that $y$ and $d$ are not independent, i.e., domain-class dependency exists, and obtain the following condition:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
H _ { \tilde { p } _ { E ^ { 2 * } } } ( d | h ) \leq H ( d | y ) < H ( d )
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
Considering Eq.7 and Eq.11, $E ^ { 1 * } \neq E ^ { 2 * }$ holds. This means that when $y$ and $d$ are not independent, there is no solution $E$ that optimizes Eq.5 and Eq.8 at the same time, i.e., there is a trade-off between classification accuracy and domain invariance.
|
| 135 |
+
|
| 136 |
+
It is worth noting that although Li et al. (2018c) claimed that conditional probability shift (the causal structure $\cdot$ ) could harm the domain generalization performance of invariance-based methods, this analysis suggests that it does not harm DAN as long as domain and class are independent. It can be confirmed by considering Eq.7 and Eq.10; even when the shift occurs, i.e., $H ( y | x , d ) < H ( y | x )$ holds and then $H _ { \tilde { p } _ { E } } ( y | h , d ) \le H _ { \tilde { p } _ { E } } ( y | h )$ holds, it does not conflict with $H _ { \tilde { p } _ { E ^ { * } } } ( d | h ) = H ( d | y ) =$ $\cdot$ as long as $H ( d | y ) = H ( d )$ holds. In other words, we only need to infer latent variable $\cdot$ that satisfies the causal structure $y h x$ to avoid the trade-off. Although Gong et al. (2016) showed the similar result in domain adaptation context, it has been overlooked in domain generalization.
|
| 137 |
+
|
| 138 |
+
# 4.1.2 OPTIMAL DOMAIN-INVARIANCE UNDER DOMAIN-CLASS DEPENDENCY
|
| 139 |
+
|
| 140 |
+
If we cannot avoid the trade-off, the next question is how to deal with it, i.e., to what extent the representation should become domain-invariant for domain generalization tasks. We propose to maximize domain-invariance within a range that does not interfere with classification accuracy, rather than merely enforcing domain-invariance without any constraint. The reason for the constraint is that the primary purpose of domain generalization is classification for unseen domains rather than domain-invariance itself, and the improvement of the invariance could harm the classification performance for them. For example, in WISDM, if we know the target activity (class) was performed by not an old but yound man (domain), we can predict it was jogging with higher probability, so we should avoid removing such domain information that is useful in the classification task. As another example, if the target domain has the similar characteristics as a certain source domain (or as an extreme case, $p ( x , \bar { y } | d = s ) = p ( x , y | d = t )$ holds), giving priority to domain-invariance obviously interferes with the domain generalization performance.
|
| 141 |
+
|
| 142 |
+
Given that Eq.10 is the necessary condition where we can build an optimal classifier, we can write the optimization problem of maximizing domain-invariance within a range that does not interfere with classification accuracy as follows:
|
| 143 |
+
|
| 144 |
+
$$
|
| 145 |
+
\begin{array} { r l } & { \underset { E } { \operatorname* { m i n } } J ( E ) = - \gamma H _ { \tilde { p } _ { E } } ( d | h ) } \\ & { \qquad s u b j e c t t o \ : H _ { \tilde { p } _ { E } } ( d | h ) \leq H ( d | y ) } \end{array}
|
| 146 |
+
$$
|
| 147 |
+
|
| 148 |
+
Continuing, we can obtain the solution $E ^ { * }$ , which obviously satisfies $H _ { \tilde { p } _ { E ^ { * } } } ( d | h ) = H ( d | y )$ . More specifically, when we want to maximize domain-invariance (Eq.12) within the range that does not interfere with accuracy (Eq.13), the solution satisfies $H _ { \tilde { p } _ { E ^ { * } } } ( d | h ) \ : = \ : H ( d | y )$ . So without interfering with classification accuracy we can remove domain information from $h$ to the extent that $\dot { H } _ { \tilde { p } _ { E } } ( d | h ) = H ( \dot { d } | y )$ holds, i.e., $h$ has as much information about $d$ as $y$ does.
|
| 149 |
+
|
| 150 |
+
# 4.2 PROPOSED METHOD
|
| 151 |
+
|
| 152 |
+
Based on the above analysis, the remaining challenge is how to impose such regularization that makes $H _ { \tilde { p } _ { E } } ( d | h ) = H ( d | y )$ hold. Although DAN might be able to achive that condition by carefully tuning the regularizer ( $\langle \gamma$ in Eq.1), such tuning is time-consuming and impracticable as suggested in our experiments. Alternatively, we propose a novel method called IFLOC, modifying DAN’s regularization term: while the encoder of DAN attempts to fool a discriminator, that of IFLOC attempts to directly minimize KLD between $p ( d | y )$ and $q _ { D } ( d | h )$ . Formally, IFLOC solves the following joint optimization problem by alternating gradient descent.
|
| 153 |
+
|
| 154 |
+
$$
|
| 155 |
+
\begin{array} { r l } & { \underset { E , M } { \mathop { \operatorname* { m i n } } } J ( E , M ) = \mathbb { E } _ { x , d , y \sim p ( x , d , y ) } [ \gamma D _ { K L } [ p ( d | y ) | q _ { D } ( d | h - f _ { E } ( x ) ) ] - \log q _ { M } ( y | h - f _ { E } ( x ) ) ] } \\ & { } \\ & { \underset { D } { \mathop { \operatorname* { m i n } } } J ( E , D ) = \mathbb { E } _ { x , d \sim p ( x , d ) } [ - \log q _ { D } ( d | h = f _ { E } ( x ) ) ] } \end{array}
|
| 156 |
+
$$
|
| 157 |
+
|
| 158 |
+
The second term in Eq.14 and Eq.15 respectively means maximization of log-likelihood of $q _ { M }$ and $q _ { D }$ as well as DAN. However, the first term in Eq.14 differs from DAN in that it is intended to satisfy $\bar { q } _ { D } ( d | h ) = p ( d | y )$ for almost every $( y , h )$ pair.
|
| 159 |
+
|
| 160 |
+
Next we show that the regularization of IFLOC is intended to achieve $H _ { \tilde { p } _ { E } } ( d | h ) = H ( d | y )$ . Similarly to Section 3.2, $D ^ { * }$ and $M ^ { * }$ , which are the solutions to Eq.14 and Eq.15 with fixed $E$ , obviously satisfy $q _ { D } ^ { * } = \tilde { p } _ { E } ( d | h ) , q _ { M } ^ { * } = \tilde { p } _ { E } ( y | h )$ . Thus Eq.14 can be written as follows:
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\displaystyle \operatorname* { m i n } _ { E } J ( E ) = \mathbb { E } _ { h , y \sim \tilde { p } _ { E } ( h , y ) } [ \gamma D _ { K L } [ p ( d | y ) | \tilde { p } _ { E } ( d | h ) ] ] + H _ { \tilde { p } _ { E } } ( y | h )
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
Since the minimization of the KLD term does not interfere with the second term optimization, $E ^ { * }$ , which is the solution to Eq.16 and in Nash equilibrium, satisfies $\mathbb { E } _ { h , y \sim \tilde { p } _ { E ^ { * } } ( h , y ) } [ D _ { K L } [ p ( d | y ) | \tilde { p } _ { E ^ { * } } ( d | h ) ] ] = 0$ . Then, $\tilde { H _ { \tilde { p } _ { E ^ { * } } } } ( d | h ) = H ( d | y )$ obviously holds.
|
| 167 |
+
|
| 168 |
+
Note that we cannot obtain true $p ( d | y )$ , but we can use a maximum likelihood or maximum a posteriori estimator for it. Also, we could use some divergences other than $D _ { K L } [ p ( d | y ) | q _ { D } ( d | h ) ]$ in Eq.14, e.g., $D _ { K L } [ q _ { D } ( d | h ) | p ( d | y ) ]$ , but in doing so, we could not observe performance gain, so we discontinued testing them.
|
| 169 |
+
|
| 170 |
+
Table 1: Sample sizes for each domain-class pair in BMNISTR. Those for the classes $0 { \sim } 4$ are variable across domains, whereas the classes $5 { \sim } 9$ have identical sample sizes across domains.
|
| 171 |
+
|
| 172 |
+
<table><tr><td>Dataset</td><td>Class</td><td>M0</td><td>M15</td><td>M30</td><td>M45</td><td>M60</td><td>M75</td></tr><tr><td>BMNISTR-1</td><td>0~4 5~9</td><td>100 100</td><td>85 100</td><td>70 100</td><td>55 100</td><td>40 100</td><td>25 100</td></tr><tr><td>BMNISTR-2</td><td>0~4 5~9</td><td>100 100</td><td>80 100</td><td>60 100</td><td>40 100</td><td>20 100</td><td>0 100</td></tr><tr><td>BMNISTR-3</td><td>0~4 5~9</td><td>100 100</td><td>90 100</td><td>80 100</td><td>70 100</td><td>60 100</td><td>50 100</td></tr><tr><td>BMNISTR-4</td><td>0~4 5~9</td><td>100 100</td><td>25 100</td><td>100 100</td><td>25 100</td><td>100 100</td><td>25 100</td></tr></table>
|
| 173 |
+
|
| 174 |
+
# 5 EXPERIMENTS
|
| 175 |
+
|
| 176 |
+
# 5.1 DATASETS
|
| 177 |
+
|
| 178 |
+
BMNISTR We created the Biased Rotated MNIST dataset (BMNISTR) by modifying the sample size of MNISTR (Ghifary et al. (2015)) so that class distribution differs among the domains. Specifically, we created four variants of MNISTR that have different types of domain-class dependency, referred to as BMNISTR-1 through BMNISTR-4. As shown in Table 1, BMNISTR-1, -2, and -3 have similar trends but different degrees of dependency; BMNISTR-1 and BMNISTR-4 differ in trends. In MNISTR, each class is represented by 10 digits. Each domain was created by rotating images by 15 degree increments: 0, 15, 30, 45, 60, and 75 (referred to as M0, ..., M75). Each image is cropped to $1 6 \mathrm { ~ x ~ } 1 6$ in accordance with Ghifary et al. (2015). In training, we employed one-domainleave-out setting: trained on five of the six domains and then tested using the remaining one. We used two convolution layers and two fully-connected (FC) layers (with nonlinear activations) as the encoder, three FC layers as the classifier, and two FC layers as the discriminator.
|
| 179 |
+
|
| 180 |
+
PACS The PACS dataset (Li et al. (2017)) has 9991 images across 7 categories (dog, elephant, giraffe, guitar, house, horse, and person) and 4 domains comprising different stylistic depictions (Photo, Art painting, Cartoon, and Sketch). It has domain-class dependency probably because samples in some $<$ <domain, class $>$ pairs are difficult to obtain. For example, $-$ ) is much higher than $-$ , which indicates that photos of person are easier to obtain than those of animals, but sketches of persons are more difficult to obtain than those of animals in the wild. The concrete sample sizes for each category and style is shown in Table 4 in appendix. In training, we employed one-domain-leave-out setting as well as in BMNISTR, and used the ImageNet pre-trained AlexNet CNN (Krizhevsky et al. (2012)) as the base network, following previous studies (Li et al. (2017; 2018a)). The two-FC-layer discriminator was connected to the last FC layer, following Ganin et al. (2016).
|
| 181 |
+
|
| 182 |
+
WISDM The WISDM Activity Prediction dataset contains sensor data of accelerometers for six human activities (walking, jogging, upstairs, downstairs, sitting, and standing) performed by 36 users (domains). WISDM suffers from the dependency due to the reason noted in Sec.1. The concrete sample sizes for each user and activity is shown in Table 5 in appendix. Referring to Andrey (2017), we use the sliding-window procedure with 60 frames $\left( = 3 \right.$ seconds) and 20-frame overlap. The total number of samples was 54455. In training, we used randomly chosen ${ < } 1 0 / 2 6 >$ , ${ < } 1 6 / 2 0 >$ , and ${ < } 2 6 / 1 0 >$ users as $<$ source / target $>$ domains. We parameterized the encoder using three convolution layers followed by one FC layer and the classifier by logistic regression, following previous studies (Yang et al. (2015); Iwasawa et al. (2017)). The two-FC-layer discriminator was connected to the output of the encoder.
|
| 183 |
+
|
| 184 |
+
# 5.2 BASELINES
|
| 185 |
+
|
| 186 |
+
To demonstrate the efficacy of the proposed method IFLOC, we compared it with the following methods. (1) CNN is a vanilla convolutional networks trained on the aggregation of data from all source domains. Although CNN has no special treatments for domain generalization, Li et al. (2017) reports that it outperforms many traditional domain generalization methods. (2) DAN (Xie et al.
|
| 187 |
+
|
| 188 |
+
Table 2: Mean F scores for the classes $0 { \sim } 4$ and classes $5 { \sim } 9$ with the target domain M0.
|
| 189 |
+
|
| 190 |
+
<table><tr><td>Dataset</td><td>Class</td><td>CNN</td><td>DAN</td><td>IFLOC-Abl</td><td>IFLOC</td><td>Relative Improvement of IFLOC to IFLOC-Abl</td></tr><tr><td>BMNISTR-1</td><td>0~4</td><td>83.86</td><td>84.54</td><td>87.46</td><td>90.62</td><td>3.6%</td></tr><tr><td></td><td>5~9</td><td>83.90</td><td>85.24</td><td>86.46</td><td>88.10</td><td>1.9%</td></tr><tr><td>BMNISTR-2</td><td>0~4</td><td>84.76</td><td>86.20</td><td>86.42</td><td>89.58</td><td>3.7%</td></tr><tr><td></td><td>5~9</td><td>83.36</td><td>85.22</td><td>85.62</td><td>86.86</td><td>1.4%</td></tr><tr><td>BMNISTR-3</td><td>0~4</td><td>82.54</td><td>85.30</td><td>88.60</td><td>89.64</td><td>1.2%</td></tr><tr><td></td><td>5~9</td><td>82.18</td><td>85.80</td><td>87.60</td><td>89.04</td><td>1.6%</td></tr><tr><td>BMNISTR-4</td><td>0~4</td><td>71.26</td><td>79.22</td><td>76.56</td><td>80.02</td><td>4.5%</td></tr><tr><td></td><td>5~9</td><td>78.62</td><td>83.14</td><td>82.94</td><td>82.80</td><td>-0.2%</td></tr></table>
|
| 191 |
+
|
| 192 |
+
(2017)) is expected to generalize across domains via invariant feature learning, but it has the tradeoff between domain invariance and classification accuracy as explained in Section 4.1.1. We trained DAN with a gradient reverse layer following Ganin et al. (2016); Xie et al. (2017). Also, we used (3) IFLOC-Abl, which is a version of IFLOC modified for ablation studies. IFLOC-Abl replaces $D _ { K L } [ p ( d | y ) | \tilde { p } _ { E } ( d | h ) ]$ in Eq.14 of $D _ { K L } [ p ( d ) | \tilde { p } _ { E } ( d | h ) ]$ , so it attempts to learn the representation that is completely invariant to domains or make $\begin{array} { r } { H ( d | h ) = H ( d ) } \end{array}$ hold as well as DAN. Comparing IFLOC and IFLOC-Abl, we measured the genuine effect of taking domain-class dependency into account. In training IFLOC and IFLOC-Abl, we cannot obtain true $p ( d | y )$ and $p ( \bar { d } )$ , so we used maximum likelihood estimators of them for calculating the KLD terms.
|
| 193 |
+
|
| 194 |
+
# 5.3 EXPERIMENTAL SETTINGS
|
| 195 |
+
|
| 196 |
+
For all the datasets and methods, we used RMSprop for optimization. And we set the learning rate, batch size, and the number of iterations as 5e-4, 128, and 10k for BMNISTR; 5e-5, 64, and $1 0 \mathrm { k }$ for PACS; 1e-4, 128, and $3 0 \mathrm { k }$ for WISDM, respectively. For DAN, IFLOC-Abl, and IFLOC we optimized the weighting parameter $\gamma$ from $\{ 0 . 0 \bar { 0 0 } 1 , 0 . 0 \bar { 0 1 } , 0 . 0 1 , 0 . 1 , 1 , 1 0 \}$ , and used the $\gamma$ annealing following Ganin et al. (2016). In all the experiments, we split source data into $80 \%$ of training data and $20 \%$ of validation data, assuming that target data are not absolutely available in the training phase. We conducted experiments multiple times with different seeds. Specifically, we trained on 10 and 25 seeds in BMNISTR and WISDM, chose the best hyperparameter that achieved the highest validation accuracies measured in each epoch, and reported the mean scores (accuracies and f-values) for the hyperparameter. In PACS, since it requires a long time to train on, we chose the best $\gamma$ from $\{ 0 . 0 0 \dot { 0 } \dot { 1 } , \dot { 0 } . 0 0 1 , 0 . 0 1 , 0 . 1 \}$ with three experiment, and reported the mean scores in experiments with 20 seeds in total. Also, we empirically measured the level of domain-invariance by training a post-hoc classifier that is intended to predict $d$ over learned representation, following previous studies (Xie et al. (2017); Iwasawa et al. (2017); Moyer et al. (2018)). Specifically, we trained the classifier with 400 hidden units on $1 0 \mathrm { k }$ iterations (by RMSprop optimizer with a 0.001 learning rate and 128 batch size) with the data that is used for training the models. We then evaluated the domain classification accuracy (referred to as D-Acc) 10 times at equal intervals during training, and reported D-Acc in the nearest time when the validation accuracy is maximized.
|
| 197 |
+
|
| 198 |
+
# 5.4 RESULTS
|
| 199 |
+
|
| 200 |
+
We first investigated how domain-class dependency affects the performance of domain-invariancebased methods. In Table 2, we compared mean f-scores for the classes 0 through 4 and classes 5 through 9 in BMNISTR with the target domain M0. Recall that sample sizes for the classes $0 { \sim } 4$ are variable across domains, whereas the classes $5 { \sim } 9$ has identical sample sizes across domains (Table 1). The f-scores show that IFLOC outperformed DAN and IFLOC-Abl in most datasetclass pairs, which supports that domain-class dependency depresses the performance of domaininvariance-based methods and that IFLOC can mitigate the problem. Futher, relative improvement of IFLOC to IFLOC-Abl is more significant for the classes $0 { \sim } 4$ than $5 { \sim } 9$ in BMNISTR-1, BMNISTR2, and BMNISTR-4, suggesting that IFLOC tends to increase performance more significantly for classes where the domain-class dependency occurs. Also, the improvement is more significant in
|
| 201 |
+
|
| 202 |
+

|
| 203 |
+
Figure 2: Class accuracy (Y-Acc) and domain accuracy (D-Acc) with various $\gamma$ in BMNISTR-1. Each caption shows the metric name (Y-Acc or D-Acc) and target domain.
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
Figure 3: Class accuracy (Y-Acc) and domain accuracy (D-Acc) with various $\gamma$ in WISDM. Each caption shows the metric name (Y-Acc or D-Acc) and target domain.
|
| 207 |
+
|
| 208 |
+
BMNISTR-1 than in BMNISTR-3, suggesting that the stronger the domain-class dependency is, the lower the performance of domain-invariance-based methods becomes. Finally, although the dependencies of BMNISTR-1 and BMNISTR-4 have different trends as described in Table 1, IFLOC improved f-scores in both datasets.
|
| 209 |
+
|
| 210 |
+
Next we investigated the relationship between the strength of regularization and performance. Figures 2 and 3 show the hyperparameter sensitivity of class accuracies (Y-Acc) and domain accuracies (D-Acc) for DAN, IFLOC-Abl, and IFLOC. Note that the gray line in Figures 2-(c) and 3-(c) shows the trivial baseline predicting the majority label. From these figures, we can make the following observations. (1) All the methods including IFLOC could improve the invariance by using stronger regularizer. Concretely, Figures 2-(c) and 3-(c) show D-Acc tends to become low (invariance becomes high) for all the models when the regularizer becomes strong (such as $\gamma = 1$ or 10) except that IFLOC-Abl has high D-Acc with $\gamma = 1 0$ in Figure 3-(c). That high D-Acc might be because the validation accuracy achieved the highest value before the domain-invariance matured. (Recall that the more the representation becomes invariant, the lower the accurary becomes under the trade-off). (2) The training of IFLOC tends to be more stable than that of DAN when the regularizer becomes strong. Figures 2-(a,b) and 3-(a,b) show that IFLOC and IFLOC-Abl could achieve higher Y-Acc than DAN when $\gamma = 1$ or 10, i.e., the regularization is strong, except for IFLOC-Abl with $\gamma = 1$ in Figure 3-(b). This tendency might be because the regularizer of IFLOC is KLD and thus bounded by 0, in contrast to that of DAN that can increase to infinity and destabilize the traininig. (3) IFLOC, as it was designed, does not tend to decrease classification accuracy with strong regularizer, and thus IFLOC is robust toward hyperparameter choice. Figures 2-(b) and 3-(a,b) show that while Y-Acc of IFLOC-Abl decreases with strong regularization (such as when $\gamma = 1$ or 10), that of IFLOC does not decrease as much.
|
| 211 |
+
|
| 212 |
+
Finally, we compared mean accuracies (with standard errors) in both synthetic (BMNISTR) and standard benchmark (PACS and WISDM) datasets (Table 3). Note that the $H ( d ) / H ( d | y )$ column is estimated from source data, which indicates the strength of domain-class dependency. IFLOC outperformed IFLOC-Abl in BMNISTR with all the target domains; PACS with photo, art painting, and sketch target domains; and WISDM with 26- and 20-target-user domains. Also, IFLOC outperformed DAN in BMNISTR with all the target domains; PACS with photo and art painting target domains; and WISDM with 26- and 10-target-user domains. This supports the importance of considering domain-class dependency in real-world datasets and the efficacy of the proposed model.
|
| 213 |
+
|
| 214 |
+
Table 3: Accuracies for each dataset and target domain
|
| 215 |
+
|
| 216 |
+
<table><tr><td>Dataset</td><td>Target</td><td>H(d)/H(dly) (%)</td><td>CNN</td><td>DAN</td><td>IFLOC-Abl</td><td>IFLOC</td></tr><tr><td>BMNISTR-1</td><td>M0 M15</td><td>101.2</td><td>83.9 ± 0.4</td><td>85.0± 0.4</td><td>87.0 ± 0.4</td><td>89.3± 0.4</td></tr><tr><td></td><td>M30</td><td>101.5</td><td>98.5± 0.2 97.5 ± 0.1</td><td>98.5± 0.1</td><td>98.3 ± 0.2</td><td>98.8 ± 0.1</td></tr><tr><td></td><td>M45</td><td>101.6</td><td></td><td>97.4± 0.1</td><td>97.6± 0.1</td><td>98.3 ± 0.2</td></tr><tr><td></td><td></td><td>101.6</td><td>89.9 ± 0.9</td><td>90.2 ± 0.6</td><td>92.8 ± 0.5</td><td>93.3 ± 0.6</td></tr><tr><td></td><td>M60</td><td>101.3</td><td>96.7 ± 0.3</td><td>97.0 ± 0.2</td><td>96.6± 0.2</td><td>97.4 ± 0.2</td></tr><tr><td></td><td>M75</td><td>100.7</td><td>87.1 ± 0.5</td><td>87.3± 0.4</td><td>87.7± 0.5</td><td>88.1 ± 0.4</td></tr><tr><td>BMNISTR-2</td><td>Avg</td><td></td><td>92.3</td><td>92.6</td><td>93.3</td><td>94.2</td></tr><tr><td>BMNISTR-3</td><td>Avg Avg</td><td></td><td>92.3</td><td>92.2</td><td>93</td><td>94.2</td></tr><tr><td>BMNISTR-4</td><td></td><td></td><td>92.2</td><td>92.7</td><td>94</td><td>94.5</td></tr><tr><td>PACS</td><td>Avg</td><td></td><td>90.6</td><td>91.7</td><td>91.6</td><td>92.9</td></tr><tr><td></td><td>photo</td><td>107.2</td><td>80.6± 0.3</td><td>81.1 ± 0.3</td><td>81.6± 0.3</td><td>82.9 ± 0.2</td></tr><tr><td></td><td>art_painting</td><td>108.5</td><td>59.2± 0.4</td><td>60.1± 0.3</td><td>60.5± 0.4</td><td>61.2 ± 0.2</td></tr><tr><td></td><td>cartoon</td><td>109.7</td><td>63.2± 0.3</td><td>64.3 ± 0.3</td><td>64.4 ± 0.4</td><td>63.8± 0.3</td></tr><tr><td></td><td>sketch</td><td>101.5</td><td>58.2± 0.5</td><td>58.9± 0.4</td><td>58.1± 0.6</td><td>59.0 ± 0.5</td></tr><tr><td>WISDM</td><td>Avg</td><td></td><td>65.3</td><td>66.1</td><td>66.2</td><td>66.7</td></tr><tr><td></td><td>26users</td><td>107.1</td><td>78.3± 0.3</td><td>78.2± 0.3</td><td>78.4± 0.2</td><td>78.9 ± 0.3</td></tr><tr><td></td><td>20 users</td><td>104.2</td><td>79.7 ± 0.2</td><td>80.2 ± 0.3</td><td>79.7 ± 0.3</td><td>80.0± 0.3</td></tr><tr><td></td><td>10 users</td><td>103.5</td><td>80.6± 0.2</td><td>80.6± 0.2</td><td>81.2 ± 0.3</td><td>81.2 ± 0.3</td></tr></table>
|
| 217 |
+
|
| 218 |
+
Table 3 also shows that when the number of source domains increased from 10 to 26 in WISDM, the improvement of IFLOC from IFLOC-Abl became insignificant. One possible reason is that WISDM with 10 target users has low domain-class dependency than with 26 target users as shown in the $H ( d ) / H ( d | y )$ column. Another possible reason is the optimization difficulty. As Moyer et al. (2018) reported, in adversarial invariant feature learning, an encoder often overfits to the discriminator trained alongside that encoder, and does not provide truly invariant representation (the same problem can be observed in Figures 2-(c) and 3-(c)). We suspect that when the number of source domains increases, the optimization of the domain discriminator becomes difficult, which makes the encoder overfit to that poor discriminator and worsen the problem. Also, the improvement of IFLOC from IFLOC-Abl is less significant in WISDM than that in BMNISTR and PACS, which could be related to the same problem since the number of source domains for BMNISTR and PACS is smaller than that for WISDM. If the optimization difficulty prevents IFLOC from working properly, we might be able to mitigate it by using ideas from the studies that investigate the convergence and optimization difficulty in adversarial training (e.g., Nagarajan & Kolter (2017); Heusel et al. (2017); Balduzzi et al. (2018)).
|
| 219 |
+
|
| 220 |
+
# 6 CONCLUSION
|
| 221 |
+
|
| 222 |
+
In this paper, we addressed domain generalization under domain-class dependency, which was overlooked by most prior domain generalization methods relying on domain-invariant representation. We theoretically showed the importance of considering the dependency and the way to overcome the problem by expanding the analysis of Xie et al. (2017). We then proposed a novel method IFLOC, which maximizes domain-invariance within a range that does not interfere with classification accuracy. Empirical validations show the superior performance of IFLOC to the baseline methods, supporting the importance of the domain-class dependency in domain generalization tasks and the efficacy of the proposed method for overcoming the issue. Future work includes applying the reguralization idea of making $\_$ to other methods, e.g., Conditional VAE (Louizos et al. (2016)) or CrossGrad (Shankar et al. (2018)) because they have clear and tractable data generating process but assume the independence of and $\cdot$ . Also intended is to use it for transfer learning tasks $\cdot$
|
| 223 |
+
in a few-shot setting (e.g., life-long learning) where domain-class dependency is likely to occur due to scarce sample size.
|
| 224 |
+
|
| 225 |
+
# REFERENCES
|
| 226 |
+
|
| 227 |
+
Ignatov Andrey. Real-time human activity recognition from accelerometer data using convolutional neural networks. Applied Soft Computing, 2017.
|
| 228 |
+
|
| 229 |
+
David Balduzzi, Sebastien Racaniere, James Martens, Jakob Foerster, Karl Tuyls, and Thore Grae- ´ pel. The mechanics of n-player differentiable games. In Proc. of the 35th International Conference on Machine Learning, 2018.
|
| 230 |
+
|
| 231 |
+
Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. In Proc. of the 24th International Conference on Neural Information Processing Systems. 2011.
|
| 232 |
+
|
| 233 |
+
Ju-Chieh Chou, Cheng chieh Yeh, Hung yi Lee, and Lin shan Lee. Multi-target voice conversion without parallel data by adversarially learning disentangled audio representations. In Proc. Interspeech, 2018.
|
| 234 |
+
|
| 235 |
+
Sarah Erfani, Mahsa Baktashmotlagh, Masoud Moshtaghi, Vinh Nguyen, Christopher Leckie, James Bailey, and Ramamohanarao Kotagiri. Robust domain generalisation by enforcing distribution invariance. In 25th International Joint Conference on Artificial Intelligence, 2016.
|
| 236 |
+
|
| 237 |
+
Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, Franc¸ois Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. J. Mach. Learn. Res., 2016.
|
| 238 |
+
|
| 239 |
+
M. Ghifary, D. Balduzzi, W. B. Kleijn, and M. Zhang. Scatter component analysis: A unified framework for domain adaptation and domain generalization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017.
|
| 240 |
+
|
| 241 |
+
Muhammad Ghifary, W. Bastiaan Kleijn, Mengjie Zhang, and David Balduzzi. Domain generalization for object recognition with multi-task autoencoders. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015.
|
| 242 |
+
|
| 243 |
+
Mingming Gong, Kun Zhang, Tongliang Liu, Dacheng Tao, Clark Glymour, and Bernhard Scholkopf. Domain adaptation with conditional transferable components. In ¨ Proc. of the $3 3 r d$ International Conference on International Conference on Machine Learning, 2016.
|
| 244 |
+
|
| 245 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Proc. of the 30th International Conference on Neural Information Processing Systems, 2017.
|
| 246 |
+
|
| 247 |
+
Yusuke Iwasawa, Kotaro Nakayama, Ikuko Yairi, and Yutaka Matsuo. Privacy issues regarding the application of dnns to activity-recognition using wearables and its countermeasures by use of adversarial training. In Proc. of the 26th International Joint Conference on Artificial Intelligence, pp. 1930–1936, 2017.
|
| 248 |
+
|
| 249 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Proc. of the 25th International Conference on Neural Information Processing Systems, pp. 1097–1105, 2012.
|
| 250 |
+
|
| 251 |
+
Jennifer R. Kwapisz, Gary M. Weiss, and Samuel A. Moore. Activity recognition using cell phone accelerometers. SIGKDD Explor. Newsl., 2011.
|
| 252 |
+
|
| 253 |
+
Guillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, and Marc’Aurelio Ranzato. Fader networks:manipulating images by sliding attributes. In Proc. of the 30th Neural Information Processing Systems. 2017.
|
| 254 |
+
|
| 255 |
+
D. Li, Y. Yang, Y. Z. Song, and T. M. Hospedales. Deeper, broader and artier domain generalization. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017.
|
| 256 |
+
|
| 257 |
+
Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Learning to generalize: Metalearning for domain generalization. In Proc. of the 32nd AAAI Conference on Artificial Intelligence, 2018a.
|
| 258 |
+
|
| 259 |
+
Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C. Kot. Domain generalization with adversarial feature learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018b.
|
| 260 |
+
|
| 261 |
+
Ya Li, Mingming Gong, Xinmei Tian, Tongliang Liu, and Dacheng Tao. Domain generalization via conditional invariant representations. In Proc. of the 32nd AAAI Conference on Artificial Intelligence, 2018c.
|
| 262 |
+
|
| 263 |
+
Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard S. Zemel. The variational fair autoencoder. In Proc. International Conference on Representation Learning, 2016.
|
| 264 |
+
|
| 265 |
+
Gilles Louppe, Michael Kagan, and Kyle Cranmer. Learning to pivot with adversarial networks. In Proc. of the 30th Neural Information Processing Systems. 2017.
|
| 266 |
+
|
| 267 |
+
David Madras, Elliot Creager, Toniann Pitassi, and Richard S. Zemel. Learning adversarially fair and transferable representations. In Proc. of the 35th International Conference on Machine Learning, 2018.
|
| 268 |
+
|
| 269 |
+
Saeid Motiian, Marco Piccirilli, Donald A. Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017.
|
| 270 |
+
|
| 271 |
+
Daniel Moyer, Shuyang Gao, Rob Brekelmans, Greg Ver Steeg, and Aram Galstyan. Evading the adversary in invariant representation. In Proc. of the 31st International Conference on Neural Information Processing Systems, 2018.
|
| 272 |
+
|
| 273 |
+
Krikamol Muandet, David Balduzzi, and Bernhard Schlkopf. Domain generalization via invariant feature representation. In Proc. of the 30th International Conference on Machine Learning, 2013.
|
| 274 |
+
|
| 275 |
+
Vaishnavh Nagarajan and J. Zico Kolter. Gradient descent gan optimization is locally stable. In Proc. of the 30th International Conference on Neural Information Processing Systems, 2017.
|
| 276 |
+
|
| 277 |
+
Shiv Shankar, Vihari Piratla, Soumen Chakrabarti, Siddhartha Chaudhuri, Preethi Jyothi, and Sunita Sarawagi. Generalizing across domains via cross-gradient training. In Proc. International Conference on Learning Representations, 2018.
|
| 278 |
+
|
| 279 |
+
Anuroop Sriram, Heewoo Jun, Yashesh Gaur, and Sanjeev Satheesh. Robust speech recognition using generative adversarial networks. In The IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2018.
|
| 280 |
+
|
| 281 |
+
A. Torralba and A. A. Efros. Unbiased look at dataset bias. In Proceedings of the 2011 IEEE Conference on Computer Vision and Pattern Recognition, 2011.
|
| 282 |
+
|
| 283 |
+
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.
|
| 284 |
+
|
| 285 |
+
Eric Tzeng, Judy Hoffman, Trevor Darrell, and Kate Saenko. Simultaneous deep transfer across domains and tasks. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015.
|
| 286 |
+
|
| 287 |
+
Qizhe Xie, Zihang Dai, Yulun Du, Eduard Hovy, and Graham Neubig. Controllable invariance through adversarial feature learning. In Proc. of the 30th International Conference on Neural Information Processing Systems. 2017.
|
| 288 |
+
|
| 289 |
+
Jianbo Yang, Minh Nhut Nguyen, Phyo Phyo San, Xiaoli Li, and Shonali Krishnaswamy. Deep convolutional neural networks on multichannel time series for human activity recognition. In Proc. of the 24th International Joint Conference on Artificial Intelligence, 2015.
|
| 290 |
+
|
| 291 |
+
Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In Proc. of the 30th International Conference on Machine Learning, 2013.
|
| 292 |
+
|
| 293 |
+
Kun Zhang, Bernhard Schlkopf, Krikamol Muandet, and Zhikun Wang. Domain adaptation under target and conditional shift. In Proc. of the 30th International Conference on Machine Learning, 2013.
|
| 294 |
+
|
| 295 |
+
# A DOMAIN-CLASS DEPENDENCY IN PACS AND WISDM
|
| 296 |
+
|
| 297 |
+
Table 4: Sample sizes for each $<$ <domain, class $>$ pair in PACS dataset. The column shows category name while and index shows style.
|
| 298 |
+
|
| 299 |
+
<table><tr><td></td><td>Guitar</td><td>House</td><td>Giraffe</td><td>Person</td><td>Horse</td><td>Dog</td><td>Elephant</td></tr><tr><td>Art Painting</td><td>184</td><td>295</td><td>285</td><td>449</td><td>201</td><td>379</td><td>255</td></tr><tr><td>Cartoon</td><td>135</td><td>288</td><td>346</td><td>405</td><td>324</td><td>389</td><td>457</td></tr><tr><td>Photo</td><td>186</td><td>280</td><td>182</td><td>432</td><td>199</td><td>189</td><td>202</td></tr><tr><td>Sketch</td><td>608</td><td>80</td><td>753</td><td>160</td><td>816</td><td>772</td><td>740</td></tr></table>
|
| 300 |
+
|
| 301 |
+
Table 5: Sample sizes for each <domain, class $>$ pair in WISDM dataset. The column shows activity name and the index shows user id.
|
| 302 |
+
|
| 303 |
+
<table><tr><td></td><td>Jogging</td><td>Walking</td><td>Upstairs</td><td>Downstairs</td><td>Sitting</td><td>Standing</td></tr><tr><td>User 1</td><td>145</td><td>742</td><td>108</td><td>224</td><td>160</td><td>78</td></tr><tr><td>User 2</td><td>142</td><td>481</td><td>282</td><td>186</td><td>0</td><td>0</td></tr><tr><td>User 3</td><td>645</td><td>654</td><td>240</td><td>231</td><td>780</td><td>267</td></tr><tr><td>User 4</td><td>637</td><td>619</td><td>237</td><td>214</td><td>113</td><td>78</td></tr><tr><td>User 5</td><td>614</td><td>650</td><td>229</td><td>210</td><td>56</td><td>80</td></tr><tr><td>User 6</td><td>637</td><td>574</td><td>101</td><td>86</td><td>0</td><td>0</td></tr><tr><td>User 7</td><td>588</td><td>617</td><td>81</td><td>69</td><td>81</td><td>33</td></tr><tr><td>User 8</td><td>599</td><td>621</td><td>160</td><td>171</td><td>102</td><td>79</td></tr><tr><td>User 9</td><td>599</td><td>308</td><td>269</td><td>206</td><td>123</td><td>94</td></tr><tr><td>User 10</td><td>597</td><td>625</td><td>119</td><td>118</td><td>71</td><td>95</td></tr><tr><td>User 11</td><td>610</td><td>616</td><td>188</td><td>115</td><td>150</td><td>81</td></tr><tr><td>User 12</td><td>626</td><td>356</td><td>0</td><td>0</td><td>77</td><td>51</td></tr><tr><td>User 13</td><td>620</td><td>604</td><td>217</td><td>131</td><td>0</td><td>0</td></tr><tr><td>User 14</td><td>0</td><td>624</td><td>68</td><td>76</td><td>147</td><td>96</td></tr><tr><td>User 15</td><td>318</td><td>610</td><td>167</td><td>162</td><td>81</td><td>73</td></tr><tr><td>User 16</td><td>602</td><td>650</td><td>212</td><td>187</td><td>0</td><td>81</td></tr><tr><td>User 17</td><td>0</td><td>706</td><td>142</td><td>147</td><td>0</td><td>63</td></tr><tr><td>User 18</td><td>593</td><td>658</td><td>178</td><td>189</td><td>0</td><td>0</td></tr><tr><td>User 19</td><td>661</td><td>690</td><td>406</td><td>141</td><td>0</td><td>0</td></tr><tr><td>User 20</td><td>611</td><td>310</td><td>149</td><td>144</td><td>32</td><td>25</td></tr><tr><td>User 21</td><td>616</td><td>537</td><td>130</td><td>141</td><td>112</td><td>81</td></tr><tr><td>User 22</td><td>613</td><td>327</td><td>239</td><td>94</td><td>0</td><td>0</td></tr><tr><td>User 23</td><td>42</td><td>301</td><td>66</td><td>86</td><td>60</td><td>0</td></tr><tr><td>User 24</td><td>0</td><td>626</td><td>209</td><td>191</td><td>75</td><td>152</td></tr><tr><td>User 25</td><td>641</td><td>666</td><td>194</td><td>140</td><td>76</td><td>65</td></tr><tr><td>User 26</td><td>513</td><td>853</td><td>220</td><td>165</td><td>132</td><td>161</td></tr><tr><td>User 27</td><td>701</td><td>841</td><td>231</td><td>192</td><td>105</td><td>128</td></tr><tr><td>User 28</td><td>477</td><td>622</td><td>240</td><td>199</td><td>78</td><td>140</td></tr><tr><td>User 29</td><td>548</td><td>646</td><td>168</td><td>164</td><td>78</td><td>139</td></tr><tr><td>User 30</td><td>309</td><td>349</td><td>269</td><td>179</td><td>0</td><td>0</td></tr><tr><td>User 31</td><td>550</td><td>641</td><td>154</td><td>145</td><td>0</td><td>0</td></tr><tr><td>User 32</td><td>0</td><td>644</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 33</td><td>322</td><td>346</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 34</td><td>587</td><td>584</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 35</td><td>457</td><td>549</td><td>178</td><td>110</td><td>124</td><td>116</td></tr><tr><td>User 36</td><td>808</td><td>879</td><td>212</td><td>128</td><td>124</td><td>104</td></tr></table>
|
parse/train/HJx38iC5KX/HJx38iC5KX_content_list.json
ADDED
|
@@ -0,0 +1,1572 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "DOMAIN GENERALIZATION VIA INVARIANT REPRESENTATION UNDER DOMAIN-CLASS DEPENDENCY ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
176,
|
| 8 |
+
99,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Learning domain-invariant representation is a dominant approach for domain generalization, where we need to build a classifier that is robust toward domain shifts induced by change of users, acoustic or lighting conditions, etc. However, prior domain-invariance-based methods overlooked the underlying dependency of classes (target variable) on source domains during optimization, which causes the trade-off between classification accuracy and domain-invariance, and often interferes with the domain generalization performance. This study first provides the notion of domain generalization under domain-class dependency and elaborates on the importance of considering the dependency by expanding the analysis of Xie et al. (2017). We then propose a method, invariant feature learning under optimal classifier constrains (IFLOC), which explicitly considers the dependency and maintains accuracy while improving domain-invariance. Specifically, the proposed method regularizes the representation so that it has as much domain information as the class labels, unlike prior methods that remove all domain information. Empirical validations show the superior performance of IFLOC to baseline methods, supporting the importance of the domain-class dependency in domain generalization and the efficacy of the proposed method for overcoming the issue. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
764,
|
| 44 |
+
502
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
530,
|
| 55 |
+
336,
|
| 56 |
+
546
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In supervised learning problems we typically assume that samples are obtained from the same distribution in training and testing; however, such an assumption does not hold in many practical situations, depressing the classification accuracy for the test data (Torralba & Efros (2011)). One typical situation is domain generalization (e.g., Blanchard et al. (2011)): we have labeled data from several source domains and collectively exploit them so that the trained system generalizes to other, unseen but somewhat similar, target domains. Such challenges arise in many applications, e.g., hand-writing recognition (Shankar et al. (2018)), robust speech recognition (Sriram et al. (2018)), and sensor data interpretation (Erfani et al. (2016)). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
561,
|
| 66 |
+
825,
|
| 67 |
+
674
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "To address domain generalization, many methods take advantage of invariant feature learning (Muandet et al. (2013); Erfani et al. (2016); Ghifary et al. (2017); Xie et al. (2017)). Such methods assume that learning the representation $( h )$ that is invariant to domains $( d )$ from input data $( x )$ prevents $h$ to overfit to source domains and leads to higher classification accuracy for unseen domains. To obtain such $h$ , we used various methods to measure the invariance of $h$ to $d$ and imposed some regularization on the measurement. For example, domain adversarial networks (DAN) (Ganin et al. (2016); Xie et al. (2017)) measure the invariance using a domain classifier (also called a discriminator) parameterized by deep neural networks and impose regularization by deceiving it. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
680,
|
| 77 |
+
825,
|
| 78 |
+
791
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Most prior works, however, overlooked the underlying dependency of classes on source domains, which we refer to as domain-class dependency. More specifically, we define domain-class dependency as the situation where domain and class labels are statistically dependent due to some common latent factor $( z )$ of $y$ and $d$ (Figure 1-right). Under the domain-class dependency, merely forcing the optimal domain-invariance harms the classification accuracy, as shown in Figure 1-(c). Intuitively speaking, since $y$ contains information about $d$ under domain-class dependency, $h$ must keep at least as much domain information as $y$ to achieve the optimal classification accuracy; however, invariant feature learning attempts to remove all domain information from $h$ , which causes the trade-off. It might be similar to the situation where $p ( y | x )$ and $p ( x )$ change across domains due to the causal structure $y x$ (Zhang et al. (2013); Gong et al. (2016) in domain adaptation and Li et al. (2018c) in domain generalization), which we call conditional probability shift. However, the shift does not cause the trade-off as long as $y$ and $\\cdot$ are independent (Figure 1-left), so it is necessary to focus on the relationship between $\\cdot$ and $\\cdot$ . ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
173,
|
| 87 |
+
797,
|
| 88 |
+
825,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/a1c8f47a0c3956668c94bc462a79e08ab22c86612b5a33a6144b2afac2070354.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: The illustration of the domain-class dependency problem. While Li et al. (2018c) focused on the causal relationship between $x$ and $y$ , we focus on the relationship between $\\cdot$ and $\\cdot$ because it causes the following trade-off problem. (a) When domain and class are independent, domain invariance and classification accuracy can be optimized at the same time. (b,c) In domain-class dependency, there is a trade-off between these two: (b) optimal invariance cannot be achieved when optimal classification accuracy is achieved, and (c) vice versa. We propose a method to lead explicitly to (b) rather than (c), because the primary purpose for domain generalization is classification, not domain-invariance itself. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
99,
|
| 103 |
+
823,
|
| 104 |
+
246
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
391,
|
| 114 |
+
825,
|
| 115 |
+
448
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Unfortunately, domain-class dependency is common in real-world datasets as shown in Zhang et al. (2013). The dependency can be caused by both the characteristics of data and errors in collecting data. For example, the WISDM Activity Prediction dataset (Kwapisz et al. (2011)), where classes and domains correspond to activities and users, exhibits the dependency because (1) some activities (jogging and climbing stairs) are strenuous (data characteristics) and (2) other activities (sitting and standing) and some users were added only after the study began (data-collection errors). ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
455,
|
| 125 |
+
825,
|
| 126 |
+
539
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "In this paper, we address domain generalization under domain-class dependency. We first expand the analysis about DAN by Xie et al. (2017), show that domain-class dependency causes the tradeoff problem, and then derive a way to evade the trade-off. Specifically, we investigate the condition where the domain-invariance is maximized under the constraint that it does not interfere with classification accuracy (Figure 1 (b)), because the primary purpose of domain generalization is classification rather than domain-invariance itself. We then propose a novel method invariant feature learning under optimal classifier constraint (IFLOC), modifying DAN’s regularization term to make the learned representation have as much domain information as the class labels, i.e., $H ( d | h ) = H ( d | y )$ holds (here $H$ denotes entropy). Like DAN, IFLOC has an encoder, classifier, and domain discriminator, and also takes over the good properties of DAN: it does not depend on pre-defined metrics (e.g., maximum mean discrepancy (Tzeng et al. (2014))), and it can be trained in an end-to-end manner. Empirical validations show the superior performance of IFLOC to baseline methods, supporting the importance of considering domain-class dependency in domain generalization tasks and the efficacy of the proposed approach for overcoming the issue. ",
|
| 133 |
+
"bbox": [
|
| 134 |
+
174,
|
| 135 |
+
545,
|
| 136 |
+
825,
|
| 137 |
+
739
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "The main contributions of this paper can be summarized as follows. Firstly, we elaborate on the trade-off problem under domain-class dependency, both theoretically and experimentally, for the first time in domain generalization context. Secondly, to address the issue we provide theoretical analysis, which shows to what extent latent representations can become invariant to domains without interfering with classification accuracy. Finally, based on the analysis we propose a novel method IFLOC, and validated its efficacy by the experiments on both synthetic and real world datasets. ",
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
747,
|
| 147 |
+
825,
|
| 148 |
+
830
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "2 RELATED WORKS ",
|
| 155 |
+
"text_level": 1,
|
| 156 |
+
"bbox": [
|
| 157 |
+
176,
|
| 158 |
+
849,
|
| 159 |
+
352,
|
| 160 |
+
866
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "text",
|
| 166 |
+
"text": "Invariant feature learning is a general-purpose method applicable to domain generalization as well as to domain adaptation (e.g., Tzeng et al. (2014); Ganin et al. (2016)), style transfer (e.g., Lample et al. (2017); Chou et al. (2018)), and fairness-aware classification (e.g., Zemel et al. (2013); ",
|
| 167 |
+
"bbox": [
|
| 168 |
+
176,
|
| 169 |
+
882,
|
| 170 |
+
823,
|
| 171 |
+
924
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "Louizos et al. (2016); Madras et al. (2018)). However, it is likely that adjusting it to each specific task can improve performance. For example, in the fairness-aware classification task Madras et al. (2018) proposed to optimize the fairness criterion directly instead of applying invariance to sensitive variables. By analogy, we adapted invariant feature learning for domain generalization so as to address the domain-class dependency problem. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
103,
|
| 181 |
+
825,
|
| 182 |
+
174
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 2
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Domain generalization has been attracting considerable attention in recent years (Blanchard et al. (2011); Muandet et al. (2013); Shankar et al. (2018)). Note that it is different from domain adaptation in that we cannot obtain input and label data from target domain(s). Although the efficacy of domain-invariance-based methods had been known, Li et al. (2017) showed that non end-to-end methods such as DICA (Muandet et al. (2013)) and MTAE (Ghifary et al. (2015)) do not tend to outperform even vanilla CNN. Thus, end-to-end methods are desirable and can be divided into two categories: adversarial-learning-based methods such as DAN (Ganin et al. (2016); Xie et al. (2017)) and pre-defined-metric-based methods (e.g., Ghifary et al. (2017); Li et al. (2018b)). ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
181,
|
| 192 |
+
825,
|
| 193 |
+
291
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 2
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "In particular, IFLOC closely relates to DAN. Although DAN was originally invented for domain adaptation, Xie et al. (2017) showed its efficacy in domain generalization. Also, Xie et al. (2017) provided the intuitive explanation of the trade-off between classification accuracy and domain invariance. However, they did not provide any way to deal with the problem because its focus is invariant feature learning itself. Louppe et al. (2017) provided the similar analysis with Xie et al. (2017), but differs in that they focused on the relation between nuisance parameters (domains) and output distribution of a domain classifier. IFLOC also relates to domain confusion loss (Tzeng et al. (2015)) in that their encoders attempt to directly minimize Kullback-Leibler divergence (KLD) between output distribution of the discriminators and some domain distribution $( p ( d | y )$ in IFLOC and uniform distribution in domain confusion loss), rather than deceive the discriminator as DAN. ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
297,
|
| 203 |
+
825,
|
| 204 |
+
438
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 2
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "text",
|
| 210 |
+
"text": "There are several studies that address domain generalization without utilizing invariant feature learning. For example, Motiian et al. (2017); Li et al. (2018c) proposed to make use of semantic alignment, which attempts to make latent representation given class label $( p ( h | y ) )$ identical within source domains. This approach was originally proposed in Gong et al. (2016) in domain adaptation context, but its efficacy for domain-class dependency is not obvious because it focuses on conditional probability shift. CrossGrad (Shankar et al. (2018)) is one of the recent state-of-the-art domain generalization methods, which utilizes data augmentation with adversarial examples. However, since the method relies on the assumption that $y$ and $d$ are independent, it might not be directly applicable to our setting. MLDG (Li et al. (2018a)), also one of the state-of-the-art methods, utilizes metalearning. Since it makes no assumption about the relation between $y$ and $d$ , it could be combined with our proposed method, though we have not experimentally confirmed it. ",
|
| 211 |
+
"bbox": [
|
| 212 |
+
173,
|
| 213 |
+
444,
|
| 214 |
+
825,
|
| 215 |
+
597
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 2
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "There are several kinds of distributional shifts other than domain-class dependency, such as conditional probability shift. Although the distinction between that shift and domain-class dependency is important, it has been received less attention. For example, Li et al. (2018c) claimed that conditional probability shift might harm the performance of domain-invariance-based methods, but our analysis in Sec.4.1.1 suggests that the root cause of the performance degradation is not it but domain-class dependency. They also proposed to correct the shift of $\\cdot$ across source domains by aligning sampling frequency of each class across domains. However, this approach is not applicable to when some classes are rarely or never appear in some domains (e.g., as in WISDM dataset). In domain adaptation, Zhang et al. (2013); Gong et al. (2016) address the situation where $p ( y )$ changes across source and target domains by estimating $p ( y )$ change using unlabeled target data. However, this approach is not applicable (or necessary) to domain generalization because our problem setting is different from theirs in that we are agnostic on target domain and aim to care about $\\cdot$ change within source domains instead. ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
604,
|
| 225 |
+
825,
|
| 226 |
+
785
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 2
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "3 PRELIMINARIES ",
|
| 233 |
+
"text_level": 1,
|
| 234 |
+
"bbox": [
|
| 235 |
+
176,
|
| 236 |
+
806,
|
| 237 |
+
339,
|
| 238 |
+
823
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "3.1 PROBLEM STATEMENT OF DOMAIN GENERALIZATION ",
|
| 245 |
+
"text_level": 1,
|
| 246 |
+
"bbox": [
|
| 247 |
+
174,
|
| 248 |
+
839,
|
| 249 |
+
588,
|
| 250 |
+
854
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "text",
|
| 256 |
+
"text": "Denote $\\mathcal { X } , \\mathcal { y }$ , and $\\mathcal { D }$ as the input feature, label, and domain spaces, respectively. With random variables $x \\in { \\mathcal { X } } , \\ y \\in { \\mathcal { Y } }$ , and $d \\in \\mathcal { D }$ ,we can define the probability distribution for each domain $d$ as $p ( x , y | d )$ . Here, we assume that $y$ and $d$ are discrete variables for simplicity. In domain generalization, we are given a training dataset consisting of $D _ { s } = \\{ x _ { i } ^ { s } , y _ { i } ^ { s } \\} _ { i = 1 } ^ { n ^ { s } }$ for all $s \\in \\{ 1 , 2 , . . . , m \\}$ . Here, each $D _ { s }$ corresponds to samples drawn from the source domain $p ( x , y | d = s )$ . Using the training dataset, we train a classifier $f : \\mathcal { X } \\mathcal { Y }$ , and use the classifier to predict labels of samples drawn from the unknown target domain $p ( x , y | d = t )$ . ",
|
| 257 |
+
"bbox": [
|
| 258 |
+
174,
|
| 259 |
+
866,
|
| 260 |
+
823,
|
| 261 |
+
925
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "text",
|
| 267 |
+
"text": "",
|
| 268 |
+
"bbox": [
|
| 269 |
+
174,
|
| 270 |
+
103,
|
| 271 |
+
825,
|
| 272 |
+
147
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 3
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "3.2 DOMAIN ADVERSARIAL NETWORKS FOR DOMAIN GENERALIZATION ",
|
| 279 |
+
"text_level": 1,
|
| 280 |
+
"bbox": [
|
| 281 |
+
174,
|
| 282 |
+
161,
|
| 283 |
+
694,
|
| 284 |
+
178
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "In this section, we give a brief overview of DAN (Ganin et al. (2016)) given that our proposed method is an extension of it. DAN trains a domain discriminator that attempts to predict domains from latent representations encoded by an encoder, while simultaneously trains the encoder to remove domain information by deceiving the discriminator. This procedure ensures that there is no or little domain information in the representations, so a label classifier attached to the encoder can make robust predictions regarding unseen target domains. ",
|
| 291 |
+
"bbox": [
|
| 292 |
+
173,
|
| 293 |
+
188,
|
| 294 |
+
825,
|
| 295 |
+
273
|
| 296 |
+
],
|
| 297 |
+
"page_idx": 3
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"type": "text",
|
| 301 |
+
"text": "Formally, we denote $f _ { E } ( x ) , q _ { M } ( y | h )$ , and $q _ { D } ( d | h ) \\ ( E , M$ , and $D$ are the parameters) as deterministic encoder, probabilistic model of label classifier, and that of domain discriminator, respectively. Then, the objective function of DAN is described as follows: ",
|
| 302 |
+
"bbox": [
|
| 303 |
+
176,
|
| 304 |
+
279,
|
| 305 |
+
821,
|
| 306 |
+
321
|
| 307 |
+
],
|
| 308 |
+
"page_idx": 3
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"type": "equation",
|
| 312 |
+
"img_path": "images/e5a6222ca1f938b22af979076447dda592401a160da787ac5b2d053438e32753.jpg",
|
| 313 |
+
"text": "$$\n\\operatorname* { m i n } _ { E , M } \\operatorname* { m a x } _ { D } J ( E , M , D ) = \\mathbb { E } _ { x , d , y \\sim p ( x , d , y ) } [ \\gamma \\log q _ { D } ( d | h = f _ { E } ( x ) ) - \\log q _ { M } ( y | h = f _ { E } ( x ) ) ] .\n$$",
|
| 314 |
+
"text_format": "latex",
|
| 315 |
+
"bbox": [
|
| 316 |
+
192,
|
| 317 |
+
328,
|
| 318 |
+
784,
|
| 319 |
+
353
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "Here, the second term in Eq.1 simply maximizes the log likelihood of $q _ { M }$ as well as in standard classification problems. On the other hand, the first term corresponds to a minimax game between the encoder and discriminator, where the decoder $q _ { D } ( d | h )$ tries to predict $d$ from $h$ and the encoder $f _ { E } ( x )$ tries to fool $q _ { D } ( d | h )$ . ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
358,
|
| 329 |
+
825,
|
| 330 |
+
415
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "As Xie et al. (2017) originally showed, the minmax game ensures that the learned representation has no or little domain information, i.e., the representation becomes domain-invariant. Such invariance makes a prediction from $h$ to $y$ independent from $d$ , and therefore hopefully helps to build a classifier that correctly handle samples drawn from unknown domains. Below is a brief explanation. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
173,
|
| 339 |
+
421,
|
| 340 |
+
825,
|
| 341 |
+
478
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Since $h$ is a deterministic mapping of $x$ , the joint probability distribution of $h , d$ and $y$ can be defined as follows: ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
484,
|
| 351 |
+
823,
|
| 352 |
+
512
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "equation",
|
| 358 |
+
"img_path": "images/c16e784a336d2abe8e9e1672562da507682b35c80b1d61a2eac63849d14b5bc1.jpg",
|
| 359 |
+
"text": "$$\n\\begin{array} { l } { \\displaystyle \\tilde { p } _ { E } ( h , d , y ) = \\int _ { x } \\tilde { p } _ { E } ( x , d , h , y ) d x } \\\\ { \\displaystyle = \\int _ { x } p ( x , d , y ) \\delta ( f _ { E } ( x ) = h ) d x } \\end{array}\n$$",
|
| 360 |
+
"text_format": "latex",
|
| 361 |
+
"bbox": [
|
| 362 |
+
352,
|
| 363 |
+
517,
|
| 364 |
+
643,
|
| 365 |
+
585
|
| 366 |
+
],
|
| 367 |
+
"page_idx": 3
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"type": "text",
|
| 371 |
+
"text": "Here, we use the notation of $\\tilde { p } _ { E }$ for the true probability distribution that depends on the encoder’s parameter $E$ . Using Eq.2, Eq.1 can be replaced as follows: ",
|
| 372 |
+
"bbox": [
|
| 373 |
+
171,
|
| 374 |
+
589,
|
| 375 |
+
823,
|
| 376 |
+
617
|
| 377 |
+
],
|
| 378 |
+
"page_idx": 3
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"type": "equation",
|
| 382 |
+
"img_path": "images/9185804b0f3ff023813966dfe8aa2bf06c4418e7a5eb250ca6e24c3083476b13.jpg",
|
| 383 |
+
"text": "$$\n\\operatorname* { m i n } _ { E , M } \\operatorname* { m a x } _ { D } J ( E , M , D ) = \\mathbb { E } _ { h , d , y \\sim \\tilde { p } _ { E } ( h , d , y ) } [ \\gamma \\log q _ { D } ( d | h ) - \\log q _ { M } ( y | h ) ]\n$$",
|
| 384 |
+
"text_format": "latex",
|
| 385 |
+
"bbox": [
|
| 386 |
+
259,
|
| 387 |
+
623,
|
| 388 |
+
736,
|
| 389 |
+
648
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "Assuming $E$ is fixed, the solutions $M ^ { * }$ and $D ^ { * }$ to Eq.3 obviously satisfy $q _ { M ^ { * } } ( y | h ) = \\tilde { p } _ { E } ( y | h )$ and $q _ { D ^ { * } } ( d | h ) = \\tilde { p } _ { E } ( d | h )$ . Then, substituting $q _ { M ^ { * } }$ and $q _ { D ^ { * } }$ into Eq.3, we can obtain the following optimization problem depending only on $E$ : ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
174,
|
| 398 |
+
655,
|
| 399 |
+
825,
|
| 400 |
+
698
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "equation",
|
| 406 |
+
"img_path": "images/8fdb7aa106731aaabf66f1b68108c93c1920529c9dc7a330afbd3c7337727793.jpg",
|
| 407 |
+
"text": "$$\n\\displaystyle \\operatorname* { m i n } _ { E } J ( E ) = - \\gamma H _ { \\tilde { p } _ { E } } ( d | h ) + H _ { \\tilde { p } _ { E } } ( y | h )\n$$",
|
| 408 |
+
"text_format": "latex",
|
| 409 |
+
"bbox": [
|
| 410 |
+
364,
|
| 411 |
+
704,
|
| 412 |
+
633,
|
| 413 |
+
727
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "Solving Eq.4, we can obtain the solutions $M ^ { * } , D ^ { * }$ , and $E ^ { * }$ , which are in Nash equilibrium. Here, $H _ { \\tilde { p } _ { E } } ( d | h )$ means conditional entropy with joint probability distribution $\\tilde { p } _ { E } ( d , h )$ . Thus, minimizing the second term in Eq.4 intuitively means learning (the mapping function $f _ { E }$ to) the latent representation $h$ which contains as much information about $y$ as possible. On the other hand, the first term can be regarded as a regularizer that attempts to learn $h$ which is invariant to $d$ . ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
174,
|
| 422 |
+
733,
|
| 423 |
+
825,
|
| 424 |
+
804
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "text",
|
| 430 |
+
"text": "4 OUR APPROACH",
|
| 431 |
+
"text_level": 1,
|
| 432 |
+
"bbox": [
|
| 433 |
+
176,
|
| 434 |
+
824,
|
| 435 |
+
339,
|
| 436 |
+
840
|
| 437 |
+
],
|
| 438 |
+
"page_idx": 3
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"type": "text",
|
| 442 |
+
"text": "4.1 ANALYSIS OF DOMAIN-CLASS DEPENDENCY ",
|
| 443 |
+
"text_level": 1,
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
856,
|
| 447 |
+
527,
|
| 448 |
+
871
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "We address domain generalization under domain-class dependency, i.e., the situation where $p ( y | d ) \\neq p ( y )$ holds. Although the issue had been overlooked, it is common in real-world datasets given that they can have the dependency in nature, e.g., nocturnal annimals (class) do not tend to appear in daylight (domain), and the dependency in such datasets is often not corrected unlike in standard benchmark datasets. To address the problem, we expand the analysis of Xie et al. (2017) to theoretically show that domain-class dependency causes the trade-off between accuracy and invariance, and to consider to what extent the latent representation should become invariant. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
881,
|
| 458 |
+
825,
|
| 459 |
+
924
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "",
|
| 466 |
+
"bbox": [
|
| 467 |
+
174,
|
| 468 |
+
103,
|
| 469 |
+
825,
|
| 470 |
+
160
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 4
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "text",
|
| 476 |
+
"text": "4.1.1 TRADE-OFF CAUSED BY DOMAIN-CLASS DEPENDENCY ",
|
| 477 |
+
"text_level": 1,
|
| 478 |
+
"bbox": [
|
| 479 |
+
173,
|
| 480 |
+
176,
|
| 481 |
+
617,
|
| 482 |
+
191
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 4
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "We first show that the performance of DAN explained in the previous section suffers from the existence of domain-class dependency. The following analysis also suggests that all of the methods that utilize domain-invariant representation suffer from the dependency. Concretely, we show that the domain-class dependency causes the trade-off between classification accuracy and domain invariance: when $d$ and $y$ are not statistically independent, any $E$ cannot optimize the first and second term in Eq.4 at the same time. In this analysis, for simplicity, we assume that we can obtain any $\\tilde { p } _ { E } ( y | h ) , \\tilde { p } _ { E } ( d | h )$ , i.e., the models have enough capacity and there are no optimization difficulties. ",
|
| 489 |
+
"bbox": [
|
| 490 |
+
173,
|
| 491 |
+
200,
|
| 492 |
+
825,
|
| 493 |
+
300
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 4
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "To begin with, we consider only the first term in Eq.4 and address the optimization problem: ",
|
| 500 |
+
"bbox": [
|
| 501 |
+
171,
|
| 502 |
+
306,
|
| 503 |
+
776,
|
| 504 |
+
321
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 4
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"img_path": "images/334c13a9e778e949a94c1412515d7f5d2ec5c9d728ef94824032db5931e96595.jpg",
|
| 511 |
+
"text": "$$\n\\operatorname* { m i n } _ { E } J _ { 1 } ( E ) = - \\gamma H _ { \\tilde { p } _ { E } } ( d | h )\n$$",
|
| 512 |
+
"text_format": "latex",
|
| 513 |
+
"bbox": [
|
| 514 |
+
403,
|
| 515 |
+
329,
|
| 516 |
+
593,
|
| 517 |
+
352
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "Using the property of entropy, $H _ { \\tilde { p } _ { E } } ( d | h )$ is bounded as follows: ",
|
| 524 |
+
"bbox": [
|
| 525 |
+
173,
|
| 526 |
+
361,
|
| 527 |
+
593,
|
| 528 |
+
377
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "equation",
|
| 534 |
+
"img_path": "images/b9a91db62f810528e65638fd15aaa277da9a78d53c7b6977c0caa9d9e789d51f.jpg",
|
| 535 |
+
"text": "$$\nH _ { \\tilde { p } _ { E } } ( d | h ) \\leq H ( d )\n$$",
|
| 536 |
+
"text_format": "latex",
|
| 537 |
+
"bbox": [
|
| 538 |
+
434,
|
| 539 |
+
383,
|
| 540 |
+
562,
|
| 541 |
+
401
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 4
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "Here, $H _ { \\tilde { p } _ { E } } ( d | h ) = H ( d )$ holds only if $h$ and $d$ are independent. Thus, Eq.5 has the solution $E ^ { 1 * }$ , which satisfies the following condition: ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
173,
|
| 550 |
+
411,
|
| 551 |
+
825,
|
| 552 |
+
440
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 4
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "equation",
|
| 558 |
+
"img_path": "images/ce034cf5be5c3eaa58f937545cf6686ebad508bce4cd16e92761321aa0b2d674.jpg",
|
| 559 |
+
"text": "$$\nH _ { \\tilde { p } _ { E ^ { 1 * } } } ( d | h ) = H ( d )\n$$",
|
| 560 |
+
"text_format": "latex",
|
| 561 |
+
"bbox": [
|
| 562 |
+
429,
|
| 563 |
+
449,
|
| 564 |
+
570,
|
| 565 |
+
467
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 4
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "Eq.7 suggests that the regularizer in DAN is intended to remove all information about domains from latent variables, thereby making domains and latent variables independent. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
473,
|
| 575 |
+
825,
|
| 576 |
+
503
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 4
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "Next, we analogically consider only the second term in Eq.4, thereby addressing the following optimization problem: ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
173,
|
| 585 |
+
508,
|
| 586 |
+
825,
|
| 587 |
+
537
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "equation",
|
| 593 |
+
"img_path": "images/56784c6f51fb40a41052cdfae0f2be1a7bdae0e33d39e492656df87803766059.jpg",
|
| 594 |
+
"text": "$$\n\\operatorname* { m i n } _ { E } J _ { 2 } ( E ) = H _ { \\tilde { p } _ { E } } ( y | h )\n$$",
|
| 595 |
+
"text_format": "latex",
|
| 596 |
+
"bbox": [
|
| 597 |
+
415,
|
| 598 |
+
546,
|
| 599 |
+
581,
|
| 600 |
+
569
|
| 601 |
+
],
|
| 602 |
+
"page_idx": 4
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"type": "text",
|
| 606 |
+
"text": "Since conditional entropy $H ( a | b )$ has a minimum value when $b$ contains all information about $a$ , Eq.8 has the solution $E ^ { 2 * }$ , which satisfies the following equation: ",
|
| 607 |
+
"bbox": [
|
| 608 |
+
171,
|
| 609 |
+
578,
|
| 610 |
+
823,
|
| 611 |
+
607
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 4
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "equation",
|
| 617 |
+
"img_path": "images/1afe492c0bd917c587b7fd744181bfce035fb07a92cf24e2b535c9e0d79b4af3.jpg",
|
| 618 |
+
"text": "$$\nH _ { \\tilde { p } _ { E ^ { 2 * } } } ( d | h ) = H _ { \\tilde { p } _ { E ^ { 2 * } } } ( d | h , y )\n$$",
|
| 619 |
+
"text_format": "latex",
|
| 620 |
+
"bbox": [
|
| 621 |
+
400,
|
| 622 |
+
614,
|
| 623 |
+
598,
|
| 624 |
+
633
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "Using Eq.9 and the property of entropy: $H ( a | b , c ) \\leq H ( a | b )$ , we can obtain the following condition: ",
|
| 631 |
+
"bbox": [
|
| 632 |
+
178,
|
| 633 |
+
641,
|
| 634 |
+
825,
|
| 635 |
+
659
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 4
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "equation",
|
| 641 |
+
"img_path": "images/3717eda92a4ddc923f39f7d1dd42679aa6b6a38b9b966856471b93b8f4418621.jpg",
|
| 642 |
+
"text": "$$\nH _ { \\tilde { p } _ { E ^ { 2 * } } } ( d | h ) = H _ { \\tilde { p } _ { E ^ { 2 * } } } ( d | h , y ) \\leq H ( d | y )\n$$",
|
| 643 |
+
"text_format": "latex",
|
| 644 |
+
"bbox": [
|
| 645 |
+
364,
|
| 646 |
+
665,
|
| 647 |
+
633,
|
| 648 |
+
684
|
| 649 |
+
],
|
| 650 |
+
"page_idx": 4
|
| 651 |
+
},
|
| 652 |
+
{
|
| 653 |
+
"type": "text",
|
| 654 |
+
"text": "Eq.10 implies that $h$ has at least as much information about $d$ as $y$ does. Now, we assume that $y$ and $d$ are not independent, i.e., domain-class dependency exists, and obtain the following condition: ",
|
| 655 |
+
"bbox": [
|
| 656 |
+
169,
|
| 657 |
+
690,
|
| 658 |
+
825,
|
| 659 |
+
719
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 4
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "equation",
|
| 665 |
+
"img_path": "images/da0b0730c1df7c21db8b7a41aaf08e166b2313f85a4b2f6364a4b6ff98c1bc07.jpg",
|
| 666 |
+
"text": "$$\nH _ { \\tilde { p } _ { E ^ { 2 * } } } ( d | h ) \\leq H ( d | y ) < H ( d )\n$$",
|
| 667 |
+
"text_format": "latex",
|
| 668 |
+
"bbox": [
|
| 669 |
+
393,
|
| 670 |
+
728,
|
| 671 |
+
604,
|
| 672 |
+
746
|
| 673 |
+
],
|
| 674 |
+
"page_idx": 4
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"type": "text",
|
| 678 |
+
"text": "Considering Eq.7 and Eq.11, $E ^ { 1 * } \\neq E ^ { 2 * }$ holds. This means that when $y$ and $d$ are not independent, there is no solution $E$ that optimizes Eq.5 and Eq.8 at the same time, i.e., there is a trade-off between classification accuracy and domain invariance. ",
|
| 679 |
+
"bbox": [
|
| 680 |
+
174,
|
| 681 |
+
762,
|
| 682 |
+
825,
|
| 683 |
+
805
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 4
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "It is worth noting that although Li et al. (2018c) claimed that conditional probability shift (the causal structure $\\cdot$ ) could harm the domain generalization performance of invariance-based methods, this analysis suggests that it does not harm DAN as long as domain and class are independent. It can be confirmed by considering Eq.7 and Eq.10; even when the shift occurs, i.e., $H ( y | x , d ) < H ( y | x )$ holds and then $H _ { \\tilde { p } _ { E } } ( y | h , d ) \\le H _ { \\tilde { p } _ { E } } ( y | h )$ holds, it does not conflict with $H _ { \\tilde { p } _ { E ^ { * } } } ( d | h ) = H ( d | y ) =$ $\\cdot$ as long as $H ( d | y ) = H ( d )$ holds. In other words, we only need to infer latent variable $\\cdot$ that satisfies the causal structure $y h x$ to avoid the trade-off. Although Gong et al. (2016) showed the similar result in domain adaptation context, it has been overlooked in domain generalization. ",
|
| 690 |
+
"bbox": [
|
| 691 |
+
173,
|
| 692 |
+
811,
|
| 693 |
+
825,
|
| 694 |
+
924
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 4
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "4.1.2 OPTIMAL DOMAIN-INVARIANCE UNDER DOMAIN-CLASS DEPENDENCY ",
|
| 701 |
+
"text_level": 1,
|
| 702 |
+
"bbox": [
|
| 703 |
+
176,
|
| 704 |
+
103,
|
| 705 |
+
725,
|
| 706 |
+
118
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "If we cannot avoid the trade-off, the next question is how to deal with it, i.e., to what extent the representation should become domain-invariant for domain generalization tasks. We propose to maximize domain-invariance within a range that does not interfere with classification accuracy, rather than merely enforcing domain-invariance without any constraint. The reason for the constraint is that the primary purpose of domain generalization is classification for unseen domains rather than domain-invariance itself, and the improvement of the invariance could harm the classification performance for them. For example, in WISDM, if we know the target activity (class) was performed by not an old but yound man (domain), we can predict it was jogging with higher probability, so we should avoid removing such domain information that is useful in the classification task. As another example, if the target domain has the similar characteristics as a certain source domain (or as an extreme case, $p ( x , \\bar { y } | d = s ) = p ( x , y | d = t )$ holds), giving priority to domain-invariance obviously interferes with the domain generalization performance. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
128,
|
| 716 |
+
825,
|
| 717 |
+
296
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 5
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "Given that Eq.10 is the necessary condition where we can build an optimal classifier, we can write the optimization problem of maximizing domain-invariance within a range that does not interfere with classification accuracy as follows: ",
|
| 724 |
+
"bbox": [
|
| 725 |
+
176,
|
| 726 |
+
303,
|
| 727 |
+
821,
|
| 728 |
+
344
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 5
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "equation",
|
| 734 |
+
"img_path": "images/5d5201aa4074d92dde7fbcf54732424d7e841ca8774e12a316eec8f7c8f82935.jpg",
|
| 735 |
+
"text": "$$\n\\begin{array} { r l } & { \\underset { E } { \\operatorname* { m i n } } J ( E ) = - \\gamma H _ { \\tilde { p } _ { E } } ( d | h ) } \\\\ & { \\qquad s u b j e c t t o \\ : H _ { \\tilde { p } _ { E } } ( d | h ) \\leq H ( d | y ) } \\end{array}\n$$",
|
| 736 |
+
"text_format": "latex",
|
| 737 |
+
"bbox": [
|
| 738 |
+
375,
|
| 739 |
+
353,
|
| 740 |
+
620,
|
| 741 |
+
397
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 5
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "Continuing, we can obtain the solution $E ^ { * }$ , which obviously satisfies $H _ { \\tilde { p } _ { E ^ { * } } } ( d | h ) = H ( d | y )$ . More specifically, when we want to maximize domain-invariance (Eq.12) within the range that does not interfere with accuracy (Eq.13), the solution satisfies $H _ { \\tilde { p } _ { E ^ { * } } } ( d | h ) \\ : = \\ : H ( d | y )$ . So without interfering with classification accuracy we can remove domain information from $h$ to the extent that $\\dot { H } _ { \\tilde { p } _ { E } } ( d | h ) = H ( \\dot { d } | y )$ holds, i.e., $h$ has as much information about $d$ as $y$ does. ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
173,
|
| 750 |
+
404,
|
| 751 |
+
825,
|
| 752 |
+
474
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "4.2 PROPOSED METHOD ",
|
| 759 |
+
"text_level": 1,
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
493,
|
| 763 |
+
356,
|
| 764 |
+
508
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 5
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Based on the above analysis, the remaining challenge is how to impose such regularization that makes $H _ { \\tilde { p } _ { E } } ( d | h ) = H ( d | y )$ hold. Although DAN might be able to achive that condition by carefully tuning the regularizer ( $\\langle \\gamma$ in Eq.1), such tuning is time-consuming and impracticable as suggested in our experiments. Alternatively, we propose a novel method called IFLOC, modifying DAN’s regularization term: while the encoder of DAN attempts to fool a discriminator, that of IFLOC attempts to directly minimize KLD between $p ( d | y )$ and $q _ { D } ( d | h )$ . Formally, IFLOC solves the following joint optimization problem by alternating gradient descent. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
520,
|
| 774 |
+
825,
|
| 775 |
+
619
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 5
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "equation",
|
| 781 |
+
"img_path": "images/4bccd5a0c3176c325e891439bd0f7809431ace67a5905258c5141ad2be8c4bc7.jpg",
|
| 782 |
+
"text": "$$\n\\begin{array} { r l } & { \\underset { E , M } { \\mathop { \\operatorname* { m i n } } } J ( E , M ) = \\mathbb { E } _ { x , d , y \\sim p ( x , d , y ) } [ \\gamma D _ { K L } [ p ( d | y ) | q _ { D } ( d | h - f _ { E } ( x ) ) ] - \\log q _ { M } ( y | h - f _ { E } ( x ) ) ] } \\\\ & { } \\\\ & { \\underset { D } { \\mathop { \\operatorname* { m i n } } } J ( E , D ) = \\mathbb { E } _ { x , d \\sim p ( x , d ) } [ - \\log q _ { D } ( d | h = f _ { E } ( x ) ) ] } \\end{array}\n$$",
|
| 783 |
+
"text_format": "latex",
|
| 784 |
+
"bbox": [
|
| 785 |
+
183,
|
| 786 |
+
626,
|
| 787 |
+
787,
|
| 788 |
+
678
|
| 789 |
+
],
|
| 790 |
+
"page_idx": 5
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"type": "text",
|
| 794 |
+
"text": "The second term in Eq.14 and Eq.15 respectively means maximization of log-likelihood of $q _ { M }$ and $q _ { D }$ as well as DAN. However, the first term in Eq.14 differs from DAN in that it is intended to satisfy $\\bar { q } _ { D } ( d | h ) = p ( d | y )$ for almost every $( y , h )$ pair. ",
|
| 795 |
+
"bbox": [
|
| 796 |
+
176,
|
| 797 |
+
684,
|
| 798 |
+
823,
|
| 799 |
+
728
|
| 800 |
+
],
|
| 801 |
+
"page_idx": 5
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"type": "text",
|
| 805 |
+
"text": "Next we show that the regularization of IFLOC is intended to achieve $H _ { \\tilde { p } _ { E } } ( d | h ) = H ( d | y )$ . Similarly to Section 3.2, $D ^ { * }$ and $M ^ { * }$ , which are the solutions to Eq.14 and Eq.15 with fixed $E$ , obviously satisfy $q _ { D } ^ { * } = \\tilde { p } _ { E } ( d | h ) , q _ { M } ^ { * } = \\tilde { p } _ { E } ( y | h )$ . Thus Eq.14 can be written as follows: ",
|
| 806 |
+
"bbox": [
|
| 807 |
+
174,
|
| 808 |
+
733,
|
| 809 |
+
823,
|
| 810 |
+
777
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 5
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "equation",
|
| 816 |
+
"img_path": "images/ff5b38408e0f880f249c8c04b6adc7d4984126b5b9e3eab3566d7b64a5b83270.jpg",
|
| 817 |
+
"text": "$$\n\\displaystyle \\operatorname* { m i n } _ { E } J ( E ) = \\mathbb { E } _ { h , y \\sim \\tilde { p } _ { E } ( h , y ) } [ \\gamma D _ { K L } [ p ( d | y ) | \\tilde { p } _ { E } ( d | h ) ] ] + H _ { \\tilde { p } _ { E } } ( y | h )\n$$",
|
| 818 |
+
"text_format": "latex",
|
| 819 |
+
"bbox": [
|
| 820 |
+
284,
|
| 821 |
+
785,
|
| 822 |
+
714,
|
| 823 |
+
808
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 5
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "Since the minimization of the KLD term does not interfere with the second term optimization, $E ^ { * }$ , which is the solution to Eq.16 and in Nash equilibrium, satisfies $\\mathbb { E } _ { h , y \\sim \\tilde { p } _ { E ^ { * } } ( h , y ) } [ D _ { K L } [ p ( d | y ) | \\tilde { p } _ { E ^ { * } } ( d | h ) ] ] = 0$ . Then, $\\tilde { H _ { \\tilde { p } _ { E ^ { * } } } } ( d | h ) = H ( d | y )$ obviously holds. ",
|
| 830 |
+
"bbox": [
|
| 831 |
+
174,
|
| 832 |
+
816,
|
| 833 |
+
825,
|
| 834 |
+
862
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 5
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "Note that we cannot obtain true $p ( d | y )$ , but we can use a maximum likelihood or maximum a posteriori estimator for it. Also, we could use some divergences other than $D _ { K L } [ p ( d | y ) | q _ { D } ( d | h ) ]$ in Eq.14, e.g., $D _ { K L } [ q _ { D } ( d | h ) | p ( d | y ) ]$ , but in doing so, we could not observe performance gain, so we discontinued testing them. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
174,
|
| 843 |
+
867,
|
| 844 |
+
823,
|
| 845 |
+
924
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 5
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "table",
|
| 851 |
+
"img_path": "images/4a1d15d3c8fe19bfd1200c10f47d5e8ad7d8bc453fb77fd398a4499e88d3d042.jpg",
|
| 852 |
+
"table_caption": [
|
| 853 |
+
"Table 1: Sample sizes for each domain-class pair in BMNISTR. Those for the classes $0 { \\sim } 4$ are variable across domains, whereas the classes $5 { \\sim } 9$ have identical sample sizes across domains. "
|
| 854 |
+
],
|
| 855 |
+
"table_footnote": [],
|
| 856 |
+
"table_body": "<table><tr><td>Dataset</td><td>Class</td><td>M0</td><td>M15</td><td>M30</td><td>M45</td><td>M60</td><td>M75</td></tr><tr><td>BMNISTR-1</td><td>0~4 5~9</td><td>100 100</td><td>85 100</td><td>70 100</td><td>55 100</td><td>40 100</td><td>25 100</td></tr><tr><td>BMNISTR-2</td><td>0~4 5~9</td><td>100 100</td><td>80 100</td><td>60 100</td><td>40 100</td><td>20 100</td><td>0 100</td></tr><tr><td>BMNISTR-3</td><td>0~4 5~9</td><td>100 100</td><td>90 100</td><td>80 100</td><td>70 100</td><td>60 100</td><td>50 100</td></tr><tr><td>BMNISTR-4</td><td>0~4 5~9</td><td>100 100</td><td>25 100</td><td>100 100</td><td>25 100</td><td>100 100</td><td>25 100</td></tr></table>",
|
| 857 |
+
"bbox": [
|
| 858 |
+
267,
|
| 859 |
+
146,
|
| 860 |
+
730,
|
| 861 |
+
277
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 6
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "5 EXPERIMENTS ",
|
| 868 |
+
"text_level": 1,
|
| 869 |
+
"bbox": [
|
| 870 |
+
176,
|
| 871 |
+
303,
|
| 872 |
+
328,
|
| 873 |
+
319
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 6
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "5.1 DATASETS ",
|
| 880 |
+
"text_level": 1,
|
| 881 |
+
"bbox": [
|
| 882 |
+
174,
|
| 883 |
+
335,
|
| 884 |
+
287,
|
| 885 |
+
351
|
| 886 |
+
],
|
| 887 |
+
"page_idx": 6
|
| 888 |
+
},
|
| 889 |
+
{
|
| 890 |
+
"type": "text",
|
| 891 |
+
"text": "BMNISTR We created the Biased Rotated MNIST dataset (BMNISTR) by modifying the sample size of MNISTR (Ghifary et al. (2015)) so that class distribution differs among the domains. Specifically, we created four variants of MNISTR that have different types of domain-class dependency, referred to as BMNISTR-1 through BMNISTR-4. As shown in Table 1, BMNISTR-1, -2, and -3 have similar trends but different degrees of dependency; BMNISTR-1 and BMNISTR-4 differ in trends. In MNISTR, each class is represented by 10 digits. Each domain was created by rotating images by 15 degree increments: 0, 15, 30, 45, 60, and 75 (referred to as M0, ..., M75). Each image is cropped to $1 6 \\mathrm { ~ x ~ } 1 6$ in accordance with Ghifary et al. (2015). In training, we employed one-domainleave-out setting: trained on five of the six domains and then tested using the remaining one. We used two convolution layers and two fully-connected (FC) layers (with nonlinear activations) as the encoder, three FC layers as the classifier, and two FC layers as the discriminator. ",
|
| 892 |
+
"bbox": [
|
| 893 |
+
173,
|
| 894 |
+
362,
|
| 895 |
+
825,
|
| 896 |
+
515
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 6
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "PACS The PACS dataset (Li et al. (2017)) has 9991 images across 7 categories (dog, elephant, giraffe, guitar, house, horse, and person) and 4 domains comprising different stylistic depictions (Photo, Art painting, Cartoon, and Sketch). It has domain-class dependency probably because samples in some $<$ <domain, class $>$ pairs are difficult to obtain. For example, $-$ ) is much higher than $-$ , which indicates that photos of person are easier to obtain than those of animals, but sketches of persons are more difficult to obtain than those of animals in the wild. The concrete sample sizes for each category and style is shown in Table 4 in appendix. In training, we employed one-domain-leave-out setting as well as in BMNISTR, and used the ImageNet pre-trained AlexNet CNN (Krizhevsky et al. (2012)) as the base network, following previous studies (Li et al. (2017; 2018a)). The two-FC-layer discriminator was connected to the last FC layer, following Ganin et al. (2016). ",
|
| 903 |
+
"bbox": [
|
| 904 |
+
173,
|
| 905 |
+
522,
|
| 906 |
+
825,
|
| 907 |
+
675
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 6
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "WISDM The WISDM Activity Prediction dataset contains sensor data of accelerometers for six human activities (walking, jogging, upstairs, downstairs, sitting, and standing) performed by 36 users (domains). WISDM suffers from the dependency due to the reason noted in Sec.1. The concrete sample sizes for each user and activity is shown in Table 5 in appendix. Referring to Andrey (2017), we use the sliding-window procedure with 60 frames $\\left( = 3 \\right.$ seconds) and 20-frame overlap. The total number of samples was 54455. In training, we used randomly chosen ${ < } 1 0 / 2 6 >$ , ${ < } 1 6 / 2 0 >$ , and ${ < } 2 6 / 1 0 >$ users as $<$ source / target $>$ domains. We parameterized the encoder using three convolution layers followed by one FC layer and the classifier by logistic regression, following previous studies (Yang et al. (2015); Iwasawa et al. (2017)). The two-FC-layer discriminator was connected to the output of the encoder. ",
|
| 914 |
+
"bbox": [
|
| 915 |
+
173,
|
| 916 |
+
683,
|
| 917 |
+
825,
|
| 918 |
+
821
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 6
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "5.2 BASELINES",
|
| 925 |
+
"text_level": 1,
|
| 926 |
+
"bbox": [
|
| 927 |
+
174,
|
| 928 |
+
840,
|
| 929 |
+
294,
|
| 930 |
+
854
|
| 931 |
+
],
|
| 932 |
+
"page_idx": 6
|
| 933 |
+
},
|
| 934 |
+
{
|
| 935 |
+
"type": "text",
|
| 936 |
+
"text": "To demonstrate the efficacy of the proposed method IFLOC, we compared it with the following methods. (1) CNN is a vanilla convolutional networks trained on the aggregation of data from all source domains. Although CNN has no special treatments for domain generalization, Li et al. (2017) reports that it outperforms many traditional domain generalization methods. (2) DAN (Xie et al. ",
|
| 937 |
+
"bbox": [
|
| 938 |
+
174,
|
| 939 |
+
867,
|
| 940 |
+
825,
|
| 941 |
+
924
|
| 942 |
+
],
|
| 943 |
+
"page_idx": 6
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"type": "table",
|
| 947 |
+
"img_path": "images/596554684dfe3c1e13fa0ee7b74e060e6c56388732f5e240a162fb7c7f9e45dc.jpg",
|
| 948 |
+
"table_caption": [
|
| 949 |
+
"Table 2: Mean F scores for the classes $0 { \\sim } 4$ and classes $5 { \\sim } 9$ with the target domain M0. "
|
| 950 |
+
],
|
| 951 |
+
"table_footnote": [],
|
| 952 |
+
"table_body": "<table><tr><td>Dataset</td><td>Class</td><td>CNN</td><td>DAN</td><td>IFLOC-Abl</td><td>IFLOC</td><td>Relative Improvement of IFLOC to IFLOC-Abl</td></tr><tr><td>BMNISTR-1</td><td>0~4</td><td>83.86</td><td>84.54</td><td>87.46</td><td>90.62</td><td>3.6%</td></tr><tr><td></td><td>5~9</td><td>83.90</td><td>85.24</td><td>86.46</td><td>88.10</td><td>1.9%</td></tr><tr><td>BMNISTR-2</td><td>0~4</td><td>84.76</td><td>86.20</td><td>86.42</td><td>89.58</td><td>3.7%</td></tr><tr><td></td><td>5~9</td><td>83.36</td><td>85.22</td><td>85.62</td><td>86.86</td><td>1.4%</td></tr><tr><td>BMNISTR-3</td><td>0~4</td><td>82.54</td><td>85.30</td><td>88.60</td><td>89.64</td><td>1.2%</td></tr><tr><td></td><td>5~9</td><td>82.18</td><td>85.80</td><td>87.60</td><td>89.04</td><td>1.6%</td></tr><tr><td>BMNISTR-4</td><td>0~4</td><td>71.26</td><td>79.22</td><td>76.56</td><td>80.02</td><td>4.5%</td></tr><tr><td></td><td>5~9</td><td>78.62</td><td>83.14</td><td>82.94</td><td>82.80</td><td>-0.2%</td></tr></table>",
|
| 953 |
+
"bbox": [
|
| 954 |
+
187,
|
| 955 |
+
132,
|
| 956 |
+
808,
|
| 957 |
+
287
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 7
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "(2017)) is expected to generalize across domains via invariant feature learning, but it has the tradeoff between domain invariance and classification accuracy as explained in Section 4.1.1. We trained DAN with a gradient reverse layer following Ganin et al. (2016); Xie et al. (2017). Also, we used (3) IFLOC-Abl, which is a version of IFLOC modified for ablation studies. IFLOC-Abl replaces $D _ { K L } [ p ( d | y ) | \\tilde { p } _ { E } ( d | h ) ]$ in Eq.14 of $D _ { K L } [ p ( d ) | \\tilde { p } _ { E } ( d | h ) ]$ , so it attempts to learn the representation that is completely invariant to domains or make $\\begin{array} { r } { H ( d | h ) = H ( d ) } \\end{array}$ hold as well as DAN. Comparing IFLOC and IFLOC-Abl, we measured the genuine effect of taking domain-class dependency into account. In training IFLOC and IFLOC-Abl, we cannot obtain true $p ( d | y )$ and $p ( \\bar { d } )$ , so we used maximum likelihood estimators of them for calculating the KLD terms. ",
|
| 964 |
+
"bbox": [
|
| 965 |
+
173,
|
| 966 |
+
315,
|
| 967 |
+
825,
|
| 968 |
+
440
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 7
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "5.3 EXPERIMENTAL SETTINGS ",
|
| 975 |
+
"text_level": 1,
|
| 976 |
+
"bbox": [
|
| 977 |
+
176,
|
| 978 |
+
460,
|
| 979 |
+
398,
|
| 980 |
+
474
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 7
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "For all the datasets and methods, we used RMSprop for optimization. And we set the learning rate, batch size, and the number of iterations as 5e-4, 128, and 10k for BMNISTR; 5e-5, 64, and $1 0 \\mathrm { k }$ for PACS; 1e-4, 128, and $3 0 \\mathrm { k }$ for WISDM, respectively. For DAN, IFLOC-Abl, and IFLOC we optimized the weighting parameter $\\gamma$ from $\\{ 0 . 0 \\bar { 0 0 } 1 , 0 . 0 \\bar { 0 1 } , 0 . 0 1 , 0 . 1 , 1 , 1 0 \\}$ , and used the $\\gamma$ annealing following Ganin et al. (2016). In all the experiments, we split source data into $80 \\%$ of training data and $20 \\%$ of validation data, assuming that target data are not absolutely available in the training phase. We conducted experiments multiple times with different seeds. Specifically, we trained on 10 and 25 seeds in BMNISTR and WISDM, chose the best hyperparameter that achieved the highest validation accuracies measured in each epoch, and reported the mean scores (accuracies and f-values) for the hyperparameter. In PACS, since it requires a long time to train on, we chose the best $\\gamma$ from $\\{ 0 . 0 0 \\dot { 0 } \\dot { 1 } , \\dot { 0 } . 0 0 1 , 0 . 0 1 , 0 . 1 \\}$ with three experiment, and reported the mean scores in experiments with 20 seeds in total. Also, we empirically measured the level of domain-invariance by training a post-hoc classifier that is intended to predict $d$ over learned representation, following previous studies (Xie et al. (2017); Iwasawa et al. (2017); Moyer et al. (2018)). Specifically, we trained the classifier with 400 hidden units on $1 0 \\mathrm { k }$ iterations (by RMSprop optimizer with a 0.001 learning rate and 128 batch size) with the data that is used for training the models. We then evaluated the domain classification accuracy (referred to as D-Acc) 10 times at equal intervals during training, and reported D-Acc in the nearest time when the validation accuracy is maximized. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
173,
|
| 989 |
+
487,
|
| 990 |
+
825,
|
| 991 |
+
737
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 7
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "5.4 RESULTS ",
|
| 998 |
+
"text_level": 1,
|
| 999 |
+
"bbox": [
|
| 1000 |
+
174,
|
| 1001 |
+
757,
|
| 1002 |
+
277,
|
| 1003 |
+
772
|
| 1004 |
+
],
|
| 1005 |
+
"page_idx": 7
|
| 1006 |
+
},
|
| 1007 |
+
{
|
| 1008 |
+
"type": "text",
|
| 1009 |
+
"text": "We first investigated how domain-class dependency affects the performance of domain-invariancebased methods. In Table 2, we compared mean f-scores for the classes 0 through 4 and classes 5 through 9 in BMNISTR with the target domain M0. Recall that sample sizes for the classes $0 { \\sim } 4$ are variable across domains, whereas the classes $5 { \\sim } 9$ has identical sample sizes across domains (Table 1). The f-scores show that IFLOC outperformed DAN and IFLOC-Abl in most datasetclass pairs, which supports that domain-class dependency depresses the performance of domaininvariance-based methods and that IFLOC can mitigate the problem. Futher, relative improvement of IFLOC to IFLOC-Abl is more significant for the classes $0 { \\sim } 4$ than $5 { \\sim } 9$ in BMNISTR-1, BMNISTR2, and BMNISTR-4, suggesting that IFLOC tends to increase performance more significantly for classes where the domain-class dependency occurs. Also, the improvement is more significant in ",
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
174,
|
| 1012 |
+
785,
|
| 1013 |
+
825,
|
| 1014 |
+
924
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 7
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "image",
|
| 1020 |
+
"img_path": "images/a6a9970777ab61ce57842bcd699cce01520f999dd90594796c444b68de6cd6fc.jpg",
|
| 1021 |
+
"image_caption": [
|
| 1022 |
+
"Figure 2: Class accuracy (Y-Acc) and domain accuracy (D-Acc) with various $\\gamma$ in BMNISTR-1. Each caption shows the metric name (Y-Acc or D-Acc) and target domain. "
|
| 1023 |
+
],
|
| 1024 |
+
"image_footnote": [],
|
| 1025 |
+
"bbox": [
|
| 1026 |
+
184,
|
| 1027 |
+
102,
|
| 1028 |
+
816,
|
| 1029 |
+
232
|
| 1030 |
+
],
|
| 1031 |
+
"page_idx": 8
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"type": "image",
|
| 1035 |
+
"img_path": "images/6748a095442cbef294cb517e35607deabed7150afa87ba2160db7597f3f864e5.jpg",
|
| 1036 |
+
"image_caption": [
|
| 1037 |
+
"Figure 3: Class accuracy (Y-Acc) and domain accuracy (D-Acc) with various $\\gamma$ in WISDM. Each caption shows the metric name (Y-Acc or D-Acc) and target domain. "
|
| 1038 |
+
],
|
| 1039 |
+
"image_footnote": [],
|
| 1040 |
+
"bbox": [
|
| 1041 |
+
183,
|
| 1042 |
+
297,
|
| 1043 |
+
818,
|
| 1044 |
+
428
|
| 1045 |
+
],
|
| 1046 |
+
"page_idx": 8
|
| 1047 |
+
},
|
| 1048 |
+
{
|
| 1049 |
+
"type": "text",
|
| 1050 |
+
"text": "BMNISTR-1 than in BMNISTR-3, suggesting that the stronger the domain-class dependency is, the lower the performance of domain-invariance-based methods becomes. Finally, although the dependencies of BMNISTR-1 and BMNISTR-4 have different trends as described in Table 1, IFLOC improved f-scores in both datasets. ",
|
| 1051 |
+
"bbox": [
|
| 1052 |
+
174,
|
| 1053 |
+
506,
|
| 1054 |
+
825,
|
| 1055 |
+
563
|
| 1056 |
+
],
|
| 1057 |
+
"page_idx": 8
|
| 1058 |
+
},
|
| 1059 |
+
{
|
| 1060 |
+
"type": "text",
|
| 1061 |
+
"text": "Next we investigated the relationship between the strength of regularization and performance. Figures 2 and 3 show the hyperparameter sensitivity of class accuracies (Y-Acc) and domain accuracies (D-Acc) for DAN, IFLOC-Abl, and IFLOC. Note that the gray line in Figures 2-(c) and 3-(c) shows the trivial baseline predicting the majority label. From these figures, we can make the following observations. (1) All the methods including IFLOC could improve the invariance by using stronger regularizer. Concretely, Figures 2-(c) and 3-(c) show D-Acc tends to become low (invariance becomes high) for all the models when the regularizer becomes strong (such as $\\gamma = 1$ or 10) except that IFLOC-Abl has high D-Acc with $\\gamma = 1 0$ in Figure 3-(c). That high D-Acc might be because the validation accuracy achieved the highest value before the domain-invariance matured. (Recall that the more the representation becomes invariant, the lower the accurary becomes under the trade-off). (2) The training of IFLOC tends to be more stable than that of DAN when the regularizer becomes strong. Figures 2-(a,b) and 3-(a,b) show that IFLOC and IFLOC-Abl could achieve higher Y-Acc than DAN when $\\gamma = 1$ or 10, i.e., the regularization is strong, except for IFLOC-Abl with $\\gamma = 1$ in Figure 3-(b). This tendency might be because the regularizer of IFLOC is KLD and thus bounded by 0, in contrast to that of DAN that can increase to infinity and destabilize the traininig. (3) IFLOC, as it was designed, does not tend to decrease classification accuracy with strong regularizer, and thus IFLOC is robust toward hyperparameter choice. Figures 2-(b) and 3-(a,b) show that while Y-Acc of IFLOC-Abl decreases with strong regularization (such as when $\\gamma = 1$ or 10), that of IFLOC does not decrease as much. ",
|
| 1062 |
+
"bbox": [
|
| 1063 |
+
173,
|
| 1064 |
+
569,
|
| 1065 |
+
825,
|
| 1066 |
+
833
|
| 1067 |
+
],
|
| 1068 |
+
"page_idx": 8
|
| 1069 |
+
},
|
| 1070 |
+
{
|
| 1071 |
+
"type": "text",
|
| 1072 |
+
"text": "Finally, we compared mean accuracies (with standard errors) in both synthetic (BMNISTR) and standard benchmark (PACS and WISDM) datasets (Table 3). Note that the $H ( d ) / H ( d | y )$ column is estimated from source data, which indicates the strength of domain-class dependency. IFLOC outperformed IFLOC-Abl in BMNISTR with all the target domains; PACS with photo, art painting, and sketch target domains; and WISDM with 26- and 20-target-user domains. Also, IFLOC outperformed DAN in BMNISTR with all the target domains; PACS with photo and art painting target domains; and WISDM with 26- and 10-target-user domains. This supports the importance of considering domain-class dependency in real-world datasets and the efficacy of the proposed model. ",
|
| 1073 |
+
"bbox": [
|
| 1074 |
+
174,
|
| 1075 |
+
840,
|
| 1076 |
+
825,
|
| 1077 |
+
924
|
| 1078 |
+
],
|
| 1079 |
+
"page_idx": 8
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"type": "table",
|
| 1083 |
+
"img_path": "images/7d4300e12153c6c15676dbcbee595260cf3c9c5b5d06c9ffab5d792ce9e12b6a.jpg",
|
| 1084 |
+
"table_caption": [
|
| 1085 |
+
"Table 3: Accuracies for each dataset and target domain "
|
| 1086 |
+
],
|
| 1087 |
+
"table_footnote": [],
|
| 1088 |
+
"table_body": "<table><tr><td>Dataset</td><td>Target</td><td>H(d)/H(dly) (%)</td><td>CNN</td><td>DAN</td><td>IFLOC-Abl</td><td>IFLOC</td></tr><tr><td>BMNISTR-1</td><td>M0 M15</td><td>101.2</td><td>83.9 ± 0.4</td><td>85.0± 0.4</td><td>87.0 ± 0.4</td><td>89.3± 0.4</td></tr><tr><td></td><td>M30</td><td>101.5</td><td>98.5± 0.2 97.5 ± 0.1</td><td>98.5± 0.1</td><td>98.3 ± 0.2</td><td>98.8 ± 0.1</td></tr><tr><td></td><td>M45</td><td>101.6</td><td></td><td>97.4± 0.1</td><td>97.6± 0.1</td><td>98.3 ± 0.2</td></tr><tr><td></td><td></td><td>101.6</td><td>89.9 ± 0.9</td><td>90.2 ± 0.6</td><td>92.8 ± 0.5</td><td>93.3 ± 0.6</td></tr><tr><td></td><td>M60</td><td>101.3</td><td>96.7 ± 0.3</td><td>97.0 ± 0.2</td><td>96.6± 0.2</td><td>97.4 ± 0.2</td></tr><tr><td></td><td>M75</td><td>100.7</td><td>87.1 ± 0.5</td><td>87.3± 0.4</td><td>87.7± 0.5</td><td>88.1 ± 0.4</td></tr><tr><td>BMNISTR-2</td><td>Avg</td><td></td><td>92.3</td><td>92.6</td><td>93.3</td><td>94.2</td></tr><tr><td>BMNISTR-3</td><td>Avg Avg</td><td></td><td>92.3</td><td>92.2</td><td>93</td><td>94.2</td></tr><tr><td>BMNISTR-4</td><td></td><td></td><td>92.2</td><td>92.7</td><td>94</td><td>94.5</td></tr><tr><td>PACS</td><td>Avg</td><td></td><td>90.6</td><td>91.7</td><td>91.6</td><td>92.9</td></tr><tr><td></td><td>photo</td><td>107.2</td><td>80.6± 0.3</td><td>81.1 ± 0.3</td><td>81.6± 0.3</td><td>82.9 ± 0.2</td></tr><tr><td></td><td>art_painting</td><td>108.5</td><td>59.2± 0.4</td><td>60.1± 0.3</td><td>60.5± 0.4</td><td>61.2 ± 0.2</td></tr><tr><td></td><td>cartoon</td><td>109.7</td><td>63.2± 0.3</td><td>64.3 ± 0.3</td><td>64.4 ± 0.4</td><td>63.8± 0.3</td></tr><tr><td></td><td>sketch</td><td>101.5</td><td>58.2± 0.5</td><td>58.9± 0.4</td><td>58.1± 0.6</td><td>59.0 ± 0.5</td></tr><tr><td>WISDM</td><td>Avg</td><td></td><td>65.3</td><td>66.1</td><td>66.2</td><td>66.7</td></tr><tr><td></td><td>26users</td><td>107.1</td><td>78.3± 0.3</td><td>78.2± 0.3</td><td>78.4± 0.2</td><td>78.9 ± 0.3</td></tr><tr><td></td><td>20 users</td><td>104.2</td><td>79.7 ± 0.2</td><td>80.2 ± 0.3</td><td>79.7 ± 0.3</td><td>80.0± 0.3</td></tr><tr><td></td><td>10 users</td><td>103.5</td><td>80.6± 0.2</td><td>80.6± 0.2</td><td>81.2 ± 0.3</td><td>81.2 ± 0.3</td></tr></table>",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
222,
|
| 1091 |
+
132,
|
| 1092 |
+
776,
|
| 1093 |
+
369
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
174,
|
| 1102 |
+
414,
|
| 1103 |
+
821,
|
| 1104 |
+
443
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Table 3 also shows that when the number of source domains increased from 10 to 26 in WISDM, the improvement of IFLOC from IFLOC-Abl became insignificant. One possible reason is that WISDM with 10 target users has low domain-class dependency than with 26 target users as shown in the $H ( d ) / H ( d | y )$ column. Another possible reason is the optimization difficulty. As Moyer et al. (2018) reported, in adversarial invariant feature learning, an encoder often overfits to the discriminator trained alongside that encoder, and does not provide truly invariant representation (the same problem can be observed in Figures 2-(c) and 3-(c)). We suspect that when the number of source domains increases, the optimization of the domain discriminator becomes difficult, which makes the encoder overfit to that poor discriminator and worsen the problem. Also, the improvement of IFLOC from IFLOC-Abl is less significant in WISDM than that in BMNISTR and PACS, which could be related to the same problem since the number of source domains for BMNISTR and PACS is smaller than that for WISDM. If the optimization difficulty prevents IFLOC from working properly, we might be able to mitigate it by using ideas from the studies that investigate the convergence and optimization difficulty in adversarial training (e.g., Nagarajan & Kolter (2017); Heusel et al. (2017); Balduzzi et al. (2018)). ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
174,
|
| 1113 |
+
449,
|
| 1114 |
+
825,
|
| 1115 |
+
657
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "6 CONCLUSION ",
|
| 1122 |
+
"text_level": 1,
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
174,
|
| 1125 |
+
699,
|
| 1126 |
+
318,
|
| 1127 |
+
715
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 9
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "In this paper, we addressed domain generalization under domain-class dependency, which was overlooked by most prior domain generalization methods relying on domain-invariant representation. We theoretically showed the importance of considering the dependency and the way to overcome the problem by expanding the analysis of Xie et al. (2017). We then proposed a novel method IFLOC, which maximizes domain-invariance within a range that does not interfere with classification accuracy. Empirical validations show the superior performance of IFLOC to the baseline methods, supporting the importance of the domain-class dependency in domain generalization tasks and the efficacy of the proposed method for overcoming the issue. Future work includes applying the reguralization idea of making $\\_$ to other methods, e.g., Conditional VAE (Louizos et al. (2016)) or CrossGrad (Shankar et al. (2018)) because they have clear and tractable data generating process but assume the independence of and $\\cdot$ . Also intended is to use it for transfer learning tasks $\\cdot$ \nin a few-shot setting (e.g., life-long learning) where domain-class dependency is likely to occur due to scarce sample size. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
743,
|
| 1137 |
+
825,
|
| 1138 |
+
924
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 9
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "REFERENCES ",
|
| 1145 |
+
"text_level": 1,
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
176,
|
| 1148 |
+
102,
|
| 1149 |
+
287,
|
| 1150 |
+
117
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 10
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Ignatov Andrey. Real-time human activity recognition from accelerometer data using convolutional neural networks. Applied Soft Computing, 2017. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
126,
|
| 1160 |
+
825,
|
| 1161 |
+
155
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 10
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "text",
|
| 1167 |
+
"text": "David Balduzzi, Sebastien Racaniere, James Martens, Jakob Foerster, Karl Tuyls, and Thore Grae- ´ pel. The mechanics of n-player differentiable games. In Proc. of the 35th International Conference on Machine Learning, 2018. ",
|
| 1168 |
+
"bbox": [
|
| 1169 |
+
174,
|
| 1170 |
+
164,
|
| 1171 |
+
823,
|
| 1172 |
+
207
|
| 1173 |
+
],
|
| 1174 |
+
"page_idx": 10
|
| 1175 |
+
},
|
| 1176 |
+
{
|
| 1177 |
+
"type": "text",
|
| 1178 |
+
"text": "Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. In Proc. of the 24th International Conference on Neural Information Processing Systems. 2011. ",
|
| 1179 |
+
"bbox": [
|
| 1180 |
+
176,
|
| 1181 |
+
215,
|
| 1182 |
+
823,
|
| 1183 |
+
260
|
| 1184 |
+
],
|
| 1185 |
+
"page_idx": 10
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"type": "text",
|
| 1189 |
+
"text": "Ju-Chieh Chou, Cheng chieh Yeh, Hung yi Lee, and Lin shan Lee. Multi-target voice conversion without parallel data by adversarially learning disentangled audio representations. In Proc. Interspeech, 2018. ",
|
| 1190 |
+
"bbox": [
|
| 1191 |
+
173,
|
| 1192 |
+
268,
|
| 1193 |
+
826,
|
| 1194 |
+
310
|
| 1195 |
+
],
|
| 1196 |
+
"page_idx": 10
|
| 1197 |
+
},
|
| 1198 |
+
{
|
| 1199 |
+
"type": "text",
|
| 1200 |
+
"text": "Sarah Erfani, Mahsa Baktashmotlagh, Masoud Moshtaghi, Vinh Nguyen, Christopher Leckie, James Bailey, and Ramamohanarao Kotagiri. Robust domain generalisation by enforcing distribution invariance. In 25th International Joint Conference on Artificial Intelligence, 2016. ",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
174,
|
| 1203 |
+
320,
|
| 1204 |
+
825,
|
| 1205 |
+
363
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 10
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "text",
|
| 1211 |
+
"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. J. Mach. Learn. Res., 2016. ",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
174,
|
| 1214 |
+
372,
|
| 1215 |
+
825,
|
| 1216 |
+
415
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 10
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "M. Ghifary, D. Balduzzi, W. B. Kleijn, and M. Zhang. Scatter component analysis: A unified framework for domain adaptation and domain generalization. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017. ",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
173,
|
| 1225 |
+
425,
|
| 1226 |
+
825,
|
| 1227 |
+
468
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 10
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Muhammad Ghifary, W. Bastiaan Kleijn, Mengjie Zhang, and David Balduzzi. Domain generalization for object recognition with multi-task autoencoders. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015. ",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
176,
|
| 1236 |
+
477,
|
| 1237 |
+
823,
|
| 1238 |
+
520
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 10
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "Mingming Gong, Kun Zhang, Tongliang Liu, Dacheng Tao, Clark Glymour, and Bernhard Scholkopf. Domain adaptation with conditional transferable components. In ¨ Proc. of the $3 3 r d$ International Conference on International Conference on Machine Learning, 2016. ",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
176,
|
| 1247 |
+
529,
|
| 1248 |
+
823,
|
| 1249 |
+
573
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 10
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "text",
|
| 1255 |
+
"text": "Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Proc. of the 30th International Conference on Neural Information Processing Systems, 2017. ",
|
| 1256 |
+
"bbox": [
|
| 1257 |
+
174,
|
| 1258 |
+
582,
|
| 1259 |
+
825,
|
| 1260 |
+
625
|
| 1261 |
+
],
|
| 1262 |
+
"page_idx": 10
|
| 1263 |
+
},
|
| 1264 |
+
{
|
| 1265 |
+
"type": "text",
|
| 1266 |
+
"text": "Yusuke Iwasawa, Kotaro Nakayama, Ikuko Yairi, and Yutaka Matsuo. Privacy issues regarding the application of dnns to activity-recognition using wearables and its countermeasures by use of adversarial training. In Proc. of the 26th International Joint Conference on Artificial Intelligence, pp. 1930–1936, 2017. ",
|
| 1267 |
+
"bbox": [
|
| 1268 |
+
174,
|
| 1269 |
+
633,
|
| 1270 |
+
825,
|
| 1271 |
+
690
|
| 1272 |
+
],
|
| 1273 |
+
"page_idx": 10
|
| 1274 |
+
},
|
| 1275 |
+
{
|
| 1276 |
+
"type": "text",
|
| 1277 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Proc. of the 25th International Conference on Neural Information Processing Systems, pp. 1097–1105, 2012. ",
|
| 1278 |
+
"bbox": [
|
| 1279 |
+
174,
|
| 1280 |
+
699,
|
| 1281 |
+
825,
|
| 1282 |
+
743
|
| 1283 |
+
],
|
| 1284 |
+
"page_idx": 10
|
| 1285 |
+
},
|
| 1286 |
+
{
|
| 1287 |
+
"type": "text",
|
| 1288 |
+
"text": "Jennifer R. Kwapisz, Gary M. Weiss, and Samuel A. Moore. Activity recognition using cell phone accelerometers. SIGKDD Explor. Newsl., 2011. ",
|
| 1289 |
+
"bbox": [
|
| 1290 |
+
168,
|
| 1291 |
+
752,
|
| 1292 |
+
825,
|
| 1293 |
+
781
|
| 1294 |
+
],
|
| 1295 |
+
"page_idx": 10
|
| 1296 |
+
},
|
| 1297 |
+
{
|
| 1298 |
+
"type": "text",
|
| 1299 |
+
"text": "Guillaume Lample, Neil Zeghidour, Nicolas Usunier, Antoine Bordes, Ludovic Denoyer, and Marc’Aurelio Ranzato. Fader networks:manipulating images by sliding attributes. In Proc. of the 30th Neural Information Processing Systems. 2017. ",
|
| 1300 |
+
"bbox": [
|
| 1301 |
+
174,
|
| 1302 |
+
790,
|
| 1303 |
+
825,
|
| 1304 |
+
834
|
| 1305 |
+
],
|
| 1306 |
+
"page_idx": 10
|
| 1307 |
+
},
|
| 1308 |
+
{
|
| 1309 |
+
"type": "text",
|
| 1310 |
+
"text": "D. Li, Y. Yang, Y. Z. Song, and T. M. Hospedales. Deeper, broader and artier domain generalization. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. ",
|
| 1311 |
+
"bbox": [
|
| 1312 |
+
169,
|
| 1313 |
+
843,
|
| 1314 |
+
823,
|
| 1315 |
+
872
|
| 1316 |
+
],
|
| 1317 |
+
"page_idx": 10
|
| 1318 |
+
},
|
| 1319 |
+
{
|
| 1320 |
+
"type": "text",
|
| 1321 |
+
"text": "Da Li, Yongxin Yang, Yi-Zhe Song, and Timothy M. Hospedales. Learning to generalize: Metalearning for domain generalization. In Proc. of the 32nd AAAI Conference on Artificial Intelligence, 2018a. ",
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
174,
|
| 1324 |
+
881,
|
| 1325 |
+
823,
|
| 1326 |
+
924
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 10
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "Haoliang Li, Sinno Jialin Pan, Shiqi Wang, and Alex C. Kot. Domain generalization with adversarial feature learning. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018b. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
176,
|
| 1335 |
+
103,
|
| 1336 |
+
823,
|
| 1337 |
+
145
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 11
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Ya Li, Mingming Gong, Xinmei Tian, Tongliang Liu, and Dacheng Tao. Domain generalization via conditional invariant representations. In Proc. of the 32nd AAAI Conference on Artificial Intelligence, 2018c. ",
|
| 1344 |
+
"bbox": [
|
| 1345 |
+
176,
|
| 1346 |
+
154,
|
| 1347 |
+
821,
|
| 1348 |
+
196
|
| 1349 |
+
],
|
| 1350 |
+
"page_idx": 11
|
| 1351 |
+
},
|
| 1352 |
+
{
|
| 1353 |
+
"type": "text",
|
| 1354 |
+
"text": "Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard S. Zemel. The variational fair autoencoder. In Proc. International Conference on Representation Learning, 2016. ",
|
| 1355 |
+
"bbox": [
|
| 1356 |
+
174,
|
| 1357 |
+
204,
|
| 1358 |
+
823,
|
| 1359 |
+
233
|
| 1360 |
+
],
|
| 1361 |
+
"page_idx": 11
|
| 1362 |
+
},
|
| 1363 |
+
{
|
| 1364 |
+
"type": "text",
|
| 1365 |
+
"text": "Gilles Louppe, Michael Kagan, and Kyle Cranmer. Learning to pivot with adversarial networks. In Proc. of the 30th Neural Information Processing Systems. 2017. ",
|
| 1366 |
+
"bbox": [
|
| 1367 |
+
174,
|
| 1368 |
+
241,
|
| 1369 |
+
823,
|
| 1370 |
+
271
|
| 1371 |
+
],
|
| 1372 |
+
"page_idx": 11
|
| 1373 |
+
},
|
| 1374 |
+
{
|
| 1375 |
+
"type": "text",
|
| 1376 |
+
"text": "David Madras, Elliot Creager, Toniann Pitassi, and Richard S. Zemel. Learning adversarially fair and transferable representations. In Proc. of the 35th International Conference on Machine Learning, 2018. ",
|
| 1377 |
+
"bbox": [
|
| 1378 |
+
174,
|
| 1379 |
+
277,
|
| 1380 |
+
825,
|
| 1381 |
+
320
|
| 1382 |
+
],
|
| 1383 |
+
"page_idx": 11
|
| 1384 |
+
},
|
| 1385 |
+
{
|
| 1386 |
+
"type": "text",
|
| 1387 |
+
"text": "Saeid Motiian, Marco Piccirilli, Donald A. Adjeroh, and Gianfranco Doretto. Unified deep supervised domain adaptation and generalization. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2017. ",
|
| 1388 |
+
"bbox": [
|
| 1389 |
+
174,
|
| 1390 |
+
328,
|
| 1391 |
+
823,
|
| 1392 |
+
371
|
| 1393 |
+
],
|
| 1394 |
+
"page_idx": 11
|
| 1395 |
+
},
|
| 1396 |
+
{
|
| 1397 |
+
"type": "text",
|
| 1398 |
+
"text": "Daniel Moyer, Shuyang Gao, Rob Brekelmans, Greg Ver Steeg, and Aram Galstyan. Evading the adversary in invariant representation. In Proc. of the 31st International Conference on Neural Information Processing Systems, 2018. ",
|
| 1399 |
+
"bbox": [
|
| 1400 |
+
176,
|
| 1401 |
+
378,
|
| 1402 |
+
823,
|
| 1403 |
+
422
|
| 1404 |
+
],
|
| 1405 |
+
"page_idx": 11
|
| 1406 |
+
},
|
| 1407 |
+
{
|
| 1408 |
+
"type": "text",
|
| 1409 |
+
"text": "Krikamol Muandet, David Balduzzi, and Bernhard Schlkopf. Domain generalization via invariant feature representation. In Proc. of the 30th International Conference on Machine Learning, 2013. ",
|
| 1410 |
+
"bbox": [
|
| 1411 |
+
171,
|
| 1412 |
+
429,
|
| 1413 |
+
823,
|
| 1414 |
+
459
|
| 1415 |
+
],
|
| 1416 |
+
"page_idx": 11
|
| 1417 |
+
},
|
| 1418 |
+
{
|
| 1419 |
+
"type": "text",
|
| 1420 |
+
"text": "Vaishnavh Nagarajan and J. Zico Kolter. Gradient descent gan optimization is locally stable. In Proc. of the 30th International Conference on Neural Information Processing Systems, 2017. ",
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
173,
|
| 1423 |
+
467,
|
| 1424 |
+
823,
|
| 1425 |
+
497
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 11
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "Shiv Shankar, Vihari Piratla, Soumen Chakrabarti, Siddhartha Chaudhuri, Preethi Jyothi, and Sunita Sarawagi. Generalizing across domains via cross-gradient training. In Proc. International Conference on Learning Representations, 2018. ",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
176,
|
| 1434 |
+
503,
|
| 1435 |
+
823,
|
| 1436 |
+
546
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 11
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "Anuroop Sriram, Heewoo Jun, Yashesh Gaur, and Sanjeev Satheesh. Robust speech recognition using generative adversarial networks. In The IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2018. ",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
174,
|
| 1445 |
+
554,
|
| 1446 |
+
823,
|
| 1447 |
+
598
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 11
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "text",
|
| 1453 |
+
"text": "A. Torralba and A. A. Efros. Unbiased look at dataset bias. In Proceedings of the 2011 IEEE Conference on Computer Vision and Pattern Recognition, 2011. ",
|
| 1454 |
+
"bbox": [
|
| 1455 |
+
171,
|
| 1456 |
+
604,
|
| 1457 |
+
823,
|
| 1458 |
+
633
|
| 1459 |
+
],
|
| 1460 |
+
"page_idx": 11
|
| 1461 |
+
},
|
| 1462 |
+
{
|
| 1463 |
+
"type": "text",
|
| 1464 |
+
"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. ",
|
| 1465 |
+
"bbox": [
|
| 1466 |
+
174,
|
| 1467 |
+
641,
|
| 1468 |
+
823,
|
| 1469 |
+
685
|
| 1470 |
+
],
|
| 1471 |
+
"page_idx": 11
|
| 1472 |
+
},
|
| 1473 |
+
{
|
| 1474 |
+
"type": "text",
|
| 1475 |
+
"text": "Eric Tzeng, Judy Hoffman, Trevor Darrell, and Kate Saenko. Simultaneous deep transfer across domains and tasks. In Proc. of the IEEE International Conference on Computer Vision (ICCV), 2015. ",
|
| 1476 |
+
"bbox": [
|
| 1477 |
+
174,
|
| 1478 |
+
691,
|
| 1479 |
+
823,
|
| 1480 |
+
736
|
| 1481 |
+
],
|
| 1482 |
+
"page_idx": 11
|
| 1483 |
+
},
|
| 1484 |
+
{
|
| 1485 |
+
"type": "text",
|
| 1486 |
+
"text": "Qizhe Xie, Zihang Dai, Yulun Du, Eduard Hovy, and Graham Neubig. Controllable invariance through adversarial feature learning. In Proc. of the 30th International Conference on Neural Information Processing Systems. 2017. ",
|
| 1487 |
+
"bbox": [
|
| 1488 |
+
174,
|
| 1489 |
+
742,
|
| 1490 |
+
823,
|
| 1491 |
+
786
|
| 1492 |
+
],
|
| 1493 |
+
"page_idx": 11
|
| 1494 |
+
},
|
| 1495 |
+
{
|
| 1496 |
+
"type": "text",
|
| 1497 |
+
"text": "Jianbo Yang, Minh Nhut Nguyen, Phyo Phyo San, Xiaoli Li, and Shonali Krishnaswamy. Deep convolutional neural networks on multichannel time series for human activity recognition. In Proc. of the 24th International Joint Conference on Artificial Intelligence, 2015. ",
|
| 1498 |
+
"bbox": [
|
| 1499 |
+
174,
|
| 1500 |
+
792,
|
| 1501 |
+
821,
|
| 1502 |
+
837
|
| 1503 |
+
],
|
| 1504 |
+
"page_idx": 11
|
| 1505 |
+
},
|
| 1506 |
+
{
|
| 1507 |
+
"type": "text",
|
| 1508 |
+
"text": "Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In Proc. of the 30th International Conference on Machine Learning, 2013. ",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
173,
|
| 1511 |
+
844,
|
| 1512 |
+
821,
|
| 1513 |
+
873
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 11
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "text",
|
| 1519 |
+
"text": "Kun Zhang, Bernhard Schlkopf, Krikamol Muandet, and Zhikun Wang. Domain adaptation under target and conditional shift. In Proc. of the 30th International Conference on Machine Learning, 2013. ",
|
| 1520 |
+
"bbox": [
|
| 1521 |
+
176,
|
| 1522 |
+
882,
|
| 1523 |
+
823,
|
| 1524 |
+
922
|
| 1525 |
+
],
|
| 1526 |
+
"page_idx": 11
|
| 1527 |
+
},
|
| 1528 |
+
{
|
| 1529 |
+
"type": "text",
|
| 1530 |
+
"text": "A DOMAIN-CLASS DEPENDENCY IN PACS AND WISDM ",
|
| 1531 |
+
"text_level": 1,
|
| 1532 |
+
"bbox": [
|
| 1533 |
+
176,
|
| 1534 |
+
102,
|
| 1535 |
+
660,
|
| 1536 |
+
118
|
| 1537 |
+
],
|
| 1538 |
+
"page_idx": 12
|
| 1539 |
+
},
|
| 1540 |
+
{
|
| 1541 |
+
"type": "table",
|
| 1542 |
+
"img_path": "images/6bfcdfba00acfd2c9489283cfe87fab21264b49dd66733ee4c69abad05729ec7.jpg",
|
| 1543 |
+
"table_caption": [
|
| 1544 |
+
"Table 4: Sample sizes for each $<$ <domain, class $>$ pair in PACS dataset. The column shows category name while and index shows style. "
|
| 1545 |
+
],
|
| 1546 |
+
"table_footnote": [],
|
| 1547 |
+
"table_body": "<table><tr><td></td><td>Guitar</td><td>House</td><td>Giraffe</td><td>Person</td><td>Horse</td><td>Dog</td><td>Elephant</td></tr><tr><td>Art Painting</td><td>184</td><td>295</td><td>285</td><td>449</td><td>201</td><td>379</td><td>255</td></tr><tr><td>Cartoon</td><td>135</td><td>288</td><td>346</td><td>405</td><td>324</td><td>389</td><td>457</td></tr><tr><td>Photo</td><td>186</td><td>280</td><td>182</td><td>432</td><td>199</td><td>189</td><td>202</td></tr><tr><td>Sketch</td><td>608</td><td>80</td><td>753</td><td>160</td><td>816</td><td>772</td><td>740</td></tr></table>",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
228,
|
| 1550 |
+
183,
|
| 1551 |
+
769,
|
| 1552 |
+
268
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 12
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "table",
|
| 1558 |
+
"img_path": "images/ff494f96e52a7c037d8e378f66848d917140fc14a3db73ce98c66157fb9af43c.jpg",
|
| 1559 |
+
"table_caption": [
|
| 1560 |
+
"Table 5: Sample sizes for each <domain, class $>$ pair in WISDM dataset. The column shows activity name and the index shows user id. "
|
| 1561 |
+
],
|
| 1562 |
+
"table_footnote": [],
|
| 1563 |
+
"table_body": "<table><tr><td></td><td>Jogging</td><td>Walking</td><td>Upstairs</td><td>Downstairs</td><td>Sitting</td><td>Standing</td></tr><tr><td>User 1</td><td>145</td><td>742</td><td>108</td><td>224</td><td>160</td><td>78</td></tr><tr><td>User 2</td><td>142</td><td>481</td><td>282</td><td>186</td><td>0</td><td>0</td></tr><tr><td>User 3</td><td>645</td><td>654</td><td>240</td><td>231</td><td>780</td><td>267</td></tr><tr><td>User 4</td><td>637</td><td>619</td><td>237</td><td>214</td><td>113</td><td>78</td></tr><tr><td>User 5</td><td>614</td><td>650</td><td>229</td><td>210</td><td>56</td><td>80</td></tr><tr><td>User 6</td><td>637</td><td>574</td><td>101</td><td>86</td><td>0</td><td>0</td></tr><tr><td>User 7</td><td>588</td><td>617</td><td>81</td><td>69</td><td>81</td><td>33</td></tr><tr><td>User 8</td><td>599</td><td>621</td><td>160</td><td>171</td><td>102</td><td>79</td></tr><tr><td>User 9</td><td>599</td><td>308</td><td>269</td><td>206</td><td>123</td><td>94</td></tr><tr><td>User 10</td><td>597</td><td>625</td><td>119</td><td>118</td><td>71</td><td>95</td></tr><tr><td>User 11</td><td>610</td><td>616</td><td>188</td><td>115</td><td>150</td><td>81</td></tr><tr><td>User 12</td><td>626</td><td>356</td><td>0</td><td>0</td><td>77</td><td>51</td></tr><tr><td>User 13</td><td>620</td><td>604</td><td>217</td><td>131</td><td>0</td><td>0</td></tr><tr><td>User 14</td><td>0</td><td>624</td><td>68</td><td>76</td><td>147</td><td>96</td></tr><tr><td>User 15</td><td>318</td><td>610</td><td>167</td><td>162</td><td>81</td><td>73</td></tr><tr><td>User 16</td><td>602</td><td>650</td><td>212</td><td>187</td><td>0</td><td>81</td></tr><tr><td>User 17</td><td>0</td><td>706</td><td>142</td><td>147</td><td>0</td><td>63</td></tr><tr><td>User 18</td><td>593</td><td>658</td><td>178</td><td>189</td><td>0</td><td>0</td></tr><tr><td>User 19</td><td>661</td><td>690</td><td>406</td><td>141</td><td>0</td><td>0</td></tr><tr><td>User 20</td><td>611</td><td>310</td><td>149</td><td>144</td><td>32</td><td>25</td></tr><tr><td>User 21</td><td>616</td><td>537</td><td>130</td><td>141</td><td>112</td><td>81</td></tr><tr><td>User 22</td><td>613</td><td>327</td><td>239</td><td>94</td><td>0</td><td>0</td></tr><tr><td>User 23</td><td>42</td><td>301</td><td>66</td><td>86</td><td>60</td><td>0</td></tr><tr><td>User 24</td><td>0</td><td>626</td><td>209</td><td>191</td><td>75</td><td>152</td></tr><tr><td>User 25</td><td>641</td><td>666</td><td>194</td><td>140</td><td>76</td><td>65</td></tr><tr><td>User 26</td><td>513</td><td>853</td><td>220</td><td>165</td><td>132</td><td>161</td></tr><tr><td>User 27</td><td>701</td><td>841</td><td>231</td><td>192</td><td>105</td><td>128</td></tr><tr><td>User 28</td><td>477</td><td>622</td><td>240</td><td>199</td><td>78</td><td>140</td></tr><tr><td>User 29</td><td>548</td><td>646</td><td>168</td><td>164</td><td>78</td><td>139</td></tr><tr><td>User 30</td><td>309</td><td>349</td><td>269</td><td>179</td><td>0</td><td>0</td></tr><tr><td>User 31</td><td>550</td><td>641</td><td>154</td><td>145</td><td>0</td><td>0</td></tr><tr><td>User 32</td><td>0</td><td>644</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 33</td><td>322</td><td>346</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 34</td><td>587</td><td>584</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>User 35</td><td>457</td><td>549</td><td>178</td><td>110</td><td>124</td><td>116</td></tr><tr><td>User 36</td><td>808</td><td>879</td><td>212</td><td>128</td><td>124</td><td>104</td></tr></table>",
|
| 1564 |
+
"bbox": [
|
| 1565 |
+
243,
|
| 1566 |
+
330,
|
| 1567 |
+
758,
|
| 1568 |
+
862
|
| 1569 |
+
],
|
| 1570 |
+
"page_idx": 12
|
| 1571 |
+
}
|
| 1572 |
+
]
|
parse/train/HJx38iC5KX/HJx38iC5KX_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJx38iC5KX/HJx38iC5KX_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyxKIiAqYQ/HyxKIiAqYQ.md
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
| 1 |
+
# CONTEXT-ADAPTIVE ENTROPY MODEL FOR END-TOEND OPTIMIZED IMAGE COMPRESSION
|
| 2 |
+
|
| 3 |
+
Jooyoung Lee, Seunghyun Cho & Seung-Kwon Beack
|
| 4 |
+
|
| 5 |
+
Broadcasting Media Research Laboratory Electronics and Telecommunications Research Institute Daejeon, Korea {leejy1003,shcho,skbeack}@etri.re.kr
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
We propose a context-adaptive entropy model for use in end-to-end optimized image compression. Our model exploits two types of contexts, bit-consuming contexts and bit-free contexts, distinguished based upon whether additional bit allocation is required. Based on these contexts, we allow the model to more accurately estimate the distribution of each latent representation with a more generalized form of the approximation models, which accordingly leads to an enhanced compression performance. Based on the experimental results, the proposed method outperforms the traditional image codecs, such as BPG and JPEG2000, as well as other previous artificial-neural-network (ANN) based approaches, in terms of the peak signal-to-noise ratio (PSNR) and multi-scale structural similarity (MS-SSIM) index. The test code is publicly available at https://github.com/JooyoungLeeETRI/CA_Entropy_Model.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Recently, artificial neural networks (ANNs) have been applied in various areas and have achieved a number of breakthroughs resulting from their superior optimization and representation learning performance. In particular, for various problems that are sufficiently straightforward that they can be solved within a short period of time by hand, a number of ANN-based studies have been conducted and significant progress has been made. With regard to image compression, however, relatively slow progress has been made owing to its complicated target problems. A number of works, focusing on the quality enhancement of reconstructed images, were proposed. For instance, certain approaches (Dong et al., 2015; Svoboda et al., 2016; Zhang et al., 2017) have been proposed to reduce artifacts caused by image compression, relying on the superior image restoration capability of an ANN. Although it is indisputable that artifact reduction is one of the most promising areas exploiting the advantages of ANNs, such approaches can be viewed as a type of post-processing, rather than image compression itself.
|
| 14 |
+
|
| 15 |
+
Regarding ANN-based image compression, the previous methods can be divided into two types. First, as a consequence of the recent success of generative models, some image compression approaches targeting the superior perceptual quality (Agustsson et al., 2018; Santurkar et al., 2018; Rippel & Bourdev, 2017) have been proposed. The basic idea here is that learning the distribution of natural images enables a very high compression level without severe perceptual loss by allowing the generation of image components, such as textures, which do not highly affect the structure or the perceptual quality of the reconstructed images. Although the generated images are very realistic, the acceptability of the machine-created image components eventually becomes somewhat applicationdependent. Meanwhile, a few end-to-end optimized ANN-based approaches (Toderici et al., 2017; Johnston et al., 2018; Balle et al., 2017; Theis et al., 2017; Ball ´ e et al., 2018), without generative ´ models, have been proposed. In these approaches, unlike traditional codecs comprising separate tools, such as prediction, transform, and quantization, a comprehensive solution covering all functions has been sought after using end-to-end optimization. Toderici et al. (2017)’s approach exploits a small number of latent binary representations to contain the compressed information in every step, and each step increasingly stacks the additional latent representations to achieve a progressive improvement in quality of the reconstructed images. Johnston et al. (2018) improved the compression performance by enhancing operation methods of the networks developed by Toderici et al. (2017). Although Toderici et al. (2017); Johnston et al. (2018) provided novel frameworks suitable to quality control using a single trained network, the increasing number of iteration steps to obtain higher image quality can be a burden to certain applications. In contrast to the approaches developed by Toderici et al. (2017) and Johnston et al. (2018), which extract binary representations with as high an entropy as possible, Balle et al. (2017), Theis et al. (2017), and Ball ´ e et al. (2018) regard the im- ´ age compression problem as being how to retrieve discrete latent representations having as low an entropy as possible. In other words, the target problem of the former methods can be viewed as how to include as much information as possible in a fixed number of representations, whereas the latter is simply how to reduce the expected bit-rate when a sufficient number of representations are given, assuming that the low entropy corresponds to small number of bits from the entropy coder. To solve the second target problem, Balle et al. (2017), Theis et al. (2017), and Ball ´ e et al. (2018) adopt their ´ own entropy models to approximate the actual distributions of the discrete latent representations. More specifically, Balle et al. (2017) and Theis et al. (2017) proposed novel frameworks that exploit ´ the entropy models, and proved their performance capabilities by comparing the results with those of conventional codecs such as JPEG2000. Whereas Balle et al. (2017) and Theis et al. (2017) assume ´ that each representation has a fixed distribution, Balle et al. (2018) introduced an input-adaptive ´ entropy model that estimates the scale of the distribution for each representation. This idea is based on the characteristics of natural images in which the scales of the representations vary together in adjacent areas. They provided test results that outperform all previous ANN-based approaches, and reach very close to those of BPG (Bellard, 2014), which is known as a subset of HEVC (ISO/IEC 23008-2, ITU-T H.265), used for image compression.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Comparison of sample test results including the ground truth, our method, Balle et al. ´ (2018)’s approach, BPG, and JPEG2000.
|
| 19 |
+
|
| 20 |
+
One of the principle elements in end-to-end optimized image compression is the trainable entropy model used for the latent representations. Because the actual distributions of latent representations are unknown, the entropy models provide the means to estimate the required bits for encoding the latent representations by approximating their distributions. When an input image $_ { \textbf { \em x } }$ is transformed into a latent representation $\textbf { { y } }$ and then uniformly quantized into $\hat { y }$ , the simple entropy model can be represented by $p _ { \hat { \pmb { y } } } ( \hat { \pmb { y } } )$ , as described by Balle et al. (2018). When the actual marginal distribution ´ of $\hat { y }$ is denoted as $m ( \hat { \pmb y } )$ , the rate estimation, calculated through cross entropy using the entropy model, $p _ { \hat { \pmb { y } } } ( \hat { \pmb { y } } )$ , can be represented as shown in equation (1), and can be decomposed into the actual entropy of $\hat { y }$ and the additional bits owing to a mismatch between the actual distributions and their approximations. Therefore, decreasing the rate term $R$ during the training process allows the entropy model $p _ { \hat { \pmb { y } } } ( \hat { \pmb { y } } )$ to approximate $m ( \hat { \pmb y } )$ as closely as possible, and let the other parameters transform $x$ into $y$ properly such that the actual entropy of $\hat { y }$ becomes small.
|
| 21 |
+
|
| 22 |
+
$$
|
| 23 |
+
R = \mathbb { E } _ { \hat { \pmb { y } } \sim m } [ - \log _ { 2 } p _ { \hat { \pmb { y } } } ( \hat { \pmb { y } } ) ] = H ( m ) + D _ { K L } ( m \vert \vert p _ { \hat { \pmb { y } } } ) .
|
| 24 |
+
$$
|
| 25 |
+
|
| 26 |
+
In terms of KL-divergence, $R$ is minimized when $p _ { \hat { \pmb { y } } } ( \hat { \pmb { y } } )$ becomes perfectly matched with the actual distribution $m ( \hat { \pmb y } )$ . This means that the compression performance of the methods essentially depends on the capacity of the entropy model. To enhance the capacity, we propose a new entropy model that exploits two types of contexts, bit-consuming and bit-free contexts, distinguished according to whether additional bit allocation is required. Utilizing these two contexts, we allow the model to more accurately estimate the distribution of each latent representation through the use of a more generalized form of the entropy models, and thus more effectively reduce the spatial dependencies among the adjacent latent representations. Figure 1 demonstrates a comparison of the compression results of our method to those of other previous approaches. The contributions of our work are as follows:
|
| 27 |
+
|
| 28 |
+
• We propose a new context-adaptive entropy model framework that incorporates the two different types of contexts.
|
| 29 |
+
• We provide the test results that outperform the widely used conventional image codec BPG in terms of the PSNR and MS-SSIM.
|
| 30 |
+
• We discuss the directions of improvement in the proposed methods in terms of the model capacity and the level of the contexts.
|
| 31 |
+
|
| 32 |
+
Note that we follow a number of notations given by Balle et al. (2018) because our approach can ´ be viewed as an extension of their work, in that we exploit the same rate-distortion (R-D) optimization framework. The rest of this paper is organized as follows. In Section 2, we introduce the key approaches of end-to-end optimized image compression and propose the context-adaptive entropy model. Section 3 demonstrates the structure of the encoder and decoder models used, and the experimental setup and results are then given in section 4. Finally, in Section 5, we discuss the current state of our work and directions for improvement.
|
| 33 |
+
|
| 34 |
+
# 2 END-TO-END OPTIMIZATION BASED ON CONTEXT-ADAPTIVE ENTROPY MODELS
|
| 35 |
+
|
| 36 |
+
# 2.1 PREVIOUS ENTROPY MODELS
|
| 37 |
+
|
| 38 |
+
Since they were first proposed by Balle et al. (2017) and Theis et al. (2017), entropy models, which ´ approximate the distribution of discrete latent representations, have noticeably improved the image compression performance of ANN-based approaches. Balle et al. (2017) assumes the entropy mod-´ els of the latent representations as non-parametric models, whereas Theis et al. (2017) adopted a Gaussian scale mixture model composed of six weighted zero-mean Gaussian models per representation. Although they assume different forms of entropy models, they have a common feature in that both concentrate on learning the distributions of the representations without considering input adaptivity. In other words, once the entropy models are trained, the trained model parameters for the representations are fixed for any input during the test time. Balle et al. (2018), in contrast, in- ´ troduced a novel entropy model that adaptively estimates the scales of the representations based on input. They assume that the scales of the latent representations from the natural images tend to move together within an adjacent area. To reduce this redundancy, they use a small amount of additional information by which the proper scale parameters (standard deviations) of the latent representations are estimated. In addition to the scale estimation, Balle et al. (2018) have also shown that when ´ the prior probability density function (PDF) for each representation in a continuous domain is convolved with a standard uniform density function, it approximates the prior probability mass function (PMF) of the discrete latent representation, which is uniformly quantized by rounding, much more closely. For training, a uniform noise is added to each latent representation so as to fit the distribution of these noisy representations into the mentioned PMF-approximating functions. Using these approaches, Balle et al. (2018) achieved a state-of-the-art compression performance, close to that of ´ BPG.
|
| 39 |
+
|
| 40 |
+
# 2.2 SPATIAL DEPENDENCIES OF THE LATENT VARIABLES
|
| 41 |
+
|
| 42 |
+
The latent representations, when transformed through a convolutional neural network, essentially contain spatial dependencies because the same convolutional filters are shared across the spatial regions, and natural images have various factors in common within adjacent regions. Balle et al. ´ (2018) successfully captured these spatial dependencies and enhanced the compression performance by input-adaptively estimating standard deviations of the latent representations. Taking a step forward, we generalize the form of the estimated distribution by allowing, in addition to the standard deviation, the mean estimation utilizing the contexts. For instance, assuming that certain representations tend to have similar values within a spatially adjacent area, when all neighborhood representations have a value of 10, we can intuitively guess that, for the current representation, the chance of having a value equal or similar to 10 is relatively high. This simple estimation will consequently reduce the entropy. Likewise, our method utilizes the given contexts for estimating the mean, as well as the standard deviation, of each latent representation. Note that Toderici et al. (2017), Johnston et al. (2018), and Rippel & Bourdev (2017) also apply context-adaptive entropy coding by estimating the probability of each binary representation. However, these context-adaptive entropy-coding methods can be viewed as separate components, rather than one end-to-end optimization component because their probability estimation does not directly contribute to the rate term of the R-D optimization framework. Figure 2 visualizes the latent variables $\hat { y }$ and their normalized versions of the two different approaches, one estimating only the standard deviation parameters and the other estimating both the mu and standard deviation parameters with the two types of mentioned contexts. The visualization shows that the spatial dependency can be removed more effectively when the mu is estimated along with the given contexts.
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
Figure 2: Examples of latent representations and their normalized versions for the two cases (the first two images show the results in which only the standard deviations are estimated using side information, whereas the last two images show the results in which the mu and standard deviation are estimated using our method). For a clear demonstration, the latent representations having the highest covariance between the spatially adjacent variables are extracted. Left: the latent representations of $\hat { y }$ from the first case. Middle left: the normalized versions of $\hat { y }$ from the first case, divided by the estimated standard deviation. Middle right: the latent variable of $\hat { y }$ from the second case. Right: the normalized versions of $\hat { y }$ from the second case, shifted and divided by the estimated mu and the standard deviation.
|
| 46 |
+
|
| 47 |
+
# 2.3 CONTEXT-ADAPTIVE ENTROPY MODEL
|
| 48 |
+
|
| 49 |
+
The optimization problem described in this paper is similar with Balle et al. (2018), in that the input ´ $_ { \textbf { \em x } }$ is transformed into $\textbf { { y } }$ having a low entropy, and the spatial dependencies of $\textbf { { y } }$ are captured into $\hat { z }$ . Therefore, we also use four fundamental parametric transform functions: an analysis transform $g _ { a } ( { \pmb x } ; \phi _ { g } )$ to transform $_ { \textbf { \em x } }$ into a latent representation $\textbf { { y } }$ , a synthesis transform $g _ { s } ( \hat { y } ; \pmb { \theta } _ { g } )$ to reconstruct image $\hat { \pmb x }$ , an analysis transform $h _ { a } ( \hat { \pmb { y } } ; \phi _ { h } )$ to capture the spatial redundancies of $\hat { y }$ into a latent representation $_ { z }$ , and a synthesis transform $h _ { s } ( \hat { z } ; \pmb { \theta } _ { h } )$ used to generate the contexts for the model estimation. Note that $h _ { s }$ does not estimate the standard deviations of the representations directly as in Balle et al. (2018)’s approach. In our method, instead, ´ $h _ { s }$ generates the context $c ^ { \prime }$ , one of the two types of contexts for estimating the distribution. These two types of contexts are described in this section.
|
| 50 |
+
|
| 51 |
+
Balle et al. (2018) analyzed the optimization problem from the viewpoint of the variational autoen- ´ coder (Kingma & Welling (2014); Rezende et al. (2014)), and showed that the minimization of the KL-divergence is the same problem as the R-D optimization of image compression. Basically, we follow the same concept; however, for training, we use the discrete representations on the conditions instead of the noisy representations, and thus the noisy representations are only used as the inputs to the entropy models. Empirically, we found that using discrete representations on the conditions show better results, as shown in appendix 6.2. These results might come from removing the mismatches of the conditions between the training and testing, thereby enhancing the training capacity by limiting the affect of the uniform noise only to help the approximation to the probability mass functions. We use the gradient overriding method with the identity function, as in Theis et al. (2017), to deal with the discontinuities from the uniform quantization. The resulting objective function used in this paper is given in equation (2). The total loss consists of two terms representing the rates and distortions, and the coefficient $\lambda$ controls the balance between the rate and distortion during the R-D optimization. Note that $\lambda$ is not an optimization target, but a manually configured condition that determines which to focus on between rate and distortion:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\begin{array} { r l } & { \mathcal { L } = R + \lambda D } \\ & { \mathrm { w i t h } \ : R = \mathbb { E } _ { { \pmb x } \sim p _ { \pmb x } } \mathbb { E } _ { { \pmb \tilde { y } } , { \boldsymbol \tilde { z } } \sim q } \Big [ - \log p _ { { \pmb { \tilde { y } } } | { \hat { z } } } ( { \pmb \tilde { y } } \mid { \hat { z } } ) - \log p _ { { \boldsymbol \tilde { z } } } ( { \boldsymbol \tilde { z } } ) \Big ] , } \\ & { \quad \quad D = \mathbb { E } _ { { \pmb x } \sim p _ { \infty } } \Big [ - \log p _ { { \pmb x } | { \hat { y } } } ( { \pmb x } \mid { \hat { y } } ) \Big ] } \end{array}
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
Here, the noisy representations of $\tilde { y }$ and $\tilde { z }$ follow the standard uniform distribution, the mean values of which are $\textbf { { y } }$ and $_ { z }$ , respectively, when $\textbf { { y } }$ and $_ z$ are the result of the transforms $g _ { a }$ and $h _ { a }$ , repectively. Note that the input to $h _ { a }$ is $\hat { y }$ , which is a uniformly quantized representation of $\textbf { { y } }$ , rather than the noisy representation ${ \tilde { y } } . \ Q$ denotes the uniform quantization function, for which we simply use a rounding function:
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\begin{array} { l l l } { { q ( \tilde { y } , \tilde { z } \mid x , \phi _ { g } , \phi _ { h } ) } } & { { = } } & { { \displaystyle \prod _ { i } \mathcal { U } \big ( \tilde { y } _ { i } \mid y _ { i } - \frac { 1 } { 2 } , y _ { i } + \frac { 1 } { 2 } \big ) \cdot \prod _ { j } \mathcal { U } \big ( \tilde { z } _ { j } \mid z _ { j } - \frac { 1 } { 2 } , z _ { j } + \frac { 1 } { 2 } \big ) } } \\ { { } } & { { } } & { { \mathrm { w i t h } ~ y = g _ { a } ( { \bf x } ; \phi _ { g } ) , \hat { y } = Q ( y ) , z = h _ { a } ( \hat { y } ; \phi _ { h } ) . } } \end{array}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
The rate term represents the expected bits calculated using the entropy models of $p _ { \tilde { y } | \hat { z } }$ and $p _ { \tilde { z } }$ . Note that $p _ { \tilde { y } | \hat { z } }$ and $p _ { \tilde { z } }$ are eventually the approximations of $p _ { \hat { y } | \hat { z } }$ and $p _ { \hat { z } }$ , respectively. Equation (4) represents the entropy model for approximating the required bits for $\hat { y }$ . The model is based on the Gaussian model, which not only has the standard deviation parameter $\sigma _ { i }$ , but also the mu parameter $\mu _ { i }$ . The values of $\mu _ { i }$ and $\sigma _ { i }$ are estimated from the two types of given contexts based on the function $f$ , the distribution estimator, in a deterministic manner. The two types of contexts, bit-consuming and bit-free contexts, for estimating the distribution of a certain representation are denoted as $ { \boldsymbol { c } } _ { i } ^ { \prime }$ and $ { c _ { i } ^ { \prime \prime } }$ . $E ^ { \prime }$ extracts $ { \boldsymbol { c } } _ { i } ^ { \prime }$ from $c ^ { \prime }$ , the result of transform $h _ { s }$ . In contrast to $\pmb { c } _ { i } ^ { \prime }$ , no additional bit allocation is required for $ { c _ { i } ^ { \prime \prime } }$ . Instead, we simply utilize the known (already entropy-coded or decoded) subset of $\hat { y }$ , denoted as $\langle \hat { y } \rangle$ . Here, $ { \boldsymbol { c } } _ { i } ^ { \prime \prime }$ is extracted from $\langle \hat { y } \rangle$ by the extractor $E ^ { \prime \prime }$ . We assume that the entropy coder and the decoder sequentially process $\hat { y } _ { i }$ in the same specific order, such as with raster scanning, and thus $\langle \hat { y } \rangle$ given to the encoder and decoder can always be identical when processing the same $\hat { y } _ { i }$ . A formal expression of this is as follows:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\begin{array} { c } { { p _ { \tilde { y } | \hat { z } } ( \tilde { y } \mid \hat { z } , \theta _ { h } ) = { \displaystyle \prod _ { i } \biggl ( \mathcal { N } \bigl ( \mu _ { i } , \sigma _ { i } ^ { 2 } \bigr ) * \mathcal { U } \bigl ( - { \textstyle \frac { 1 } { 2 } } , { \textstyle \frac { 1 } { 2 } } \bigr ) \biggr ) \bigl ( \tilde { y } _ { i } \bigr ) } } } \\ { { \mathrm { w i t h } \ \mu _ { i } , \sigma _ { i } = f ( c _ { i } ^ { \prime } , c _ { i } ^ { \prime \prime } ) , } } \\ { { c _ { i } ^ { \prime } = E ^ { \prime } \bigl ( h _ { s } \bigl ( \hat { z } ; \theta _ { h } \bigr ) , i \bigr ) , } } \\ { { c _ { i } ^ { \prime \prime } = E ^ { \prime \prime } \bigl ( \langle \hat { y } \rangle , i \bigr ) , } } \\ { { \hat { z } = Q ( z ) } } \end{array}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
In the case of $\hat { z }$ , a simple entropy model is used. We assumed that the model follows zero-mean Gaussian distributions which have a trainable $\sigma$ . Note that $\hat { z }$ is regarded as side information and it contributes a very small amount of the total bit-rate, as described by Balle et al. (2018), and thus ´ we use this simpler version of the entropy model, rather than a more complex model, for end-to-end optimization over all parameters of the proposed method:
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
p _ { \tilde { z } } ( \tilde { z } ) = \prod _ { j } \Bigl ( \mathcal { N } \bigl ( 0 , \sigma _ { j } ^ { 2 } \bigr ) * \mathcal { U } \bigl ( - \textstyle \frac { 1 } { 2 } , \frac { 1 } { 2 } \bigr ) \Bigr ) ( \tilde { z } _ { j } )
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 3: Encoder-decoder model of the proposed method. The left block represents the encoder side, whereas the right block represents the deocder side. The small icons between them represent the entropy-coded bitstreams. EC and ED represent entropy coding and entropy decoding, and U | Q represents the addition of uniform noise to $\textbf { { y } }$ or a uniform quantization of $\textbf { { y } }$ . Noisy representations are used only for training as inputs to the entropy models, and are illustrated with the dotted lines.
|
| 77 |
+
|
| 78 |
+
Note that actual entropy coding or decoding processes are not necessarily required for training or encoding because the rate term is not the amount of real bits, but an estimation calculated from the entropy models, as mentioned previously. We calculate the distortion term using the mean squared error (MSE)1, assuming that $p _ { \mathbf { \hat { \mathbf { \theta } } } \mathbf { \hat { \mathbf { x } } } | \hat { \mathbf { \theta } } }$ follows a Gaussian distribution as a widely used distortion metric.
|
| 79 |
+
|
| 80 |
+
# 3 ENCODER-DECODER MODEL
|
| 81 |
+
|
| 82 |
+
This section describes the basic structure of the proposed encoder-decoder model. On the encoder side, an input image is transformed into latent representations, quantized, and then entropy-coded using the trained entropy models. In contrast, the decoder first applies entropy decoding with the same entropy models used for the encoder, and reconstructs the image from the latent representations, as illustrated in figure 3. It is assumed that all parameters that appear in this section were already trained. The structure of the encoder-decoder model basically includes $\scriptstyle { \pmb { g } } _ { a }$ and $\mathbf { \nabla } _ { \mathbf { { \boldsymbol { g } } } _ { s } }$ in charge of the transform of $_ { \textbf { \em x } }$ into $\textbf { { y } }$ and its inverse transform, respectively. The transformed $\textbf { { y } }$ is uniformly quantized into $\hat { y }$ by rounding. Note that, in the case of approaches based on the entropy models, unlike traditional codecs, tuning the quantization steps is usually unnecessary because the scales of the representations are optimized together through training. The other components between $\scriptstyle { \pmb { g } } _ { a }$ and $\mathbf { \nabla } _ { \mathbf { { \boldsymbol { g } } } _ { s } }$ carry out the role of entropy coding (or decoding) with the shared entropy models and underlying context preparation processes. More specifically, the entropy model estimates the distribution of each $\hat { y } _ { i }$ individually, in which $\mu _ { i }$ and $\sigma _ { i }$ are estimated with the two types of given contexts, $\pmb { c } _ { i } ^ { \prime }$ and $ { c _ { i } ^ { \prime \prime } }$ . Among these contexts, $c ^ { \prime }$ can be viewed as side information, which requires an additional bit allocation. To reduce the required bit-rate for carrying $c ^ { \prime }$ , the latent representation $_ z$ , transformed from $\hat { y }$ , is quantized and entropy-coded by its own entropy model, as specified in section 2.3. On the other hand, $ { \boldsymbol { c } } _ { i } ^ { \prime \prime }$ is extracted from $\langle \hat { y } \rangle$ , without any additional bit allocation. Note that $\langle \hat { y } \rangle$ varies as the entropy coding or decoding progresses, but is always identical for processing the same $\hat { y } _ { i }$ in both the encoder and decoder, as described in 2.3. The parameters of $h _ { s }$ and the entropy models are simply shared by both the encoder and the decoder. Note that the inputs to the entropy models during training are the noisy representations, as illustrated with the dotted line in figure 3, to allow the entropy model to approximate the probability mass functions of the discrete representations.
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 4: Implementation of the proposed method. We basically use the convolutional autoencoder structure, and the distribution estimator $f$ is also implemented using convolutional neural networks. The notations of the convolutional layer follow Balle et al. (2018): the number of filters ´ $\times$ filter height $\times$ filter width / the downscale or upscale factor, where $\uparrow$ and $\downarrow$ denote the up and downscaling, respectively. For up or downscaling, we use the transposed convolution. For the networks, input images are normalized into a scale between $^ { - 1 }$ and 1.
|
| 86 |
+
|
| 87 |
+
# 4 EXPERIMENTS
|
| 88 |
+
|
| 89 |
+
# 4.1 IMPLEMENTATION
|
| 90 |
+
|
| 91 |
+
We use a convolutional neural networks to implement the analysis transform and the synthesis transform functions, $g _ { a } , g _ { s }$ , $h _ { a }$ , and $h _ { s }$ . The structures of the implemented networks follow the same structures of Balle et al. (2018), except that we use the exponentiation operator instead of an abso- ´ lute operator at the end of $h _ { s }$ . Based on Balle et al. (2018)’s structure, we added the components to ´ estimate the distribution of each $\hat { y } _ { i }$ , as shown in figure 4. Herein, we represent a uniform quantization (round) as $\because Q , \mathrm { { } }$ entropy coding as ”EC,” and entropy decoding as ”ED.” The distribution estimator is denoted as $f$ , and is also implemented using the convolutional layers which takes channel-wise concatenated $ { \mathbf { c } } _ { i } ^ { \prime }$ and ${ c } _ { i } ^ { \prime \prime }$ as inputs and provides estimated $\mu _ { i }$ and $\sigma _ { i }$ as results. Note that the same $\mathbf { c } _ { i } ^ { \prime }$ and ${ c } _ { i } ^ { \prime \prime }$ are shared for all ${ \hat { y } } _ { i } \mathbf { s }$ located at the same spatial position. In other words, we let $E ^ { \prime }$ extract all spatially adjacent elements from $c ^ { \prime }$ across the channels to retrieve $ { \boldsymbol { c } } _ { i } ^ { \prime }$ and likewise let $E ^ { \prime \prime }$ extract all adjacent known elements from $\langle \hat { y } \rangle$ for $ { \boldsymbol { c } } _ { i } ^ { \prime \prime }$ . This could have the effect of capturing the remaining correlations among the different channels. In short, when $M$ is the total number of channels of $\textbf { { y } }$ , we let $f$ estimate all $M$ distributions of ${ \hat { y } } _ { i } \mathbf { s }$ , which are located at the same spatial position, using only a single step, thereby allowing the total number of estimations to be reduced. Furthermore, the parameters of $f$ are shared for all spatial positions of $\hat { y }$ , and thus only one trained $f$ per $\lambda$ is necessary to process any sized images. In the case of training, however, collecting the results from the all spatial positions to calculate the rate term becomes a significant burden, despite the simplifications mentioned above. To reduce this burden, we designate a certain number (32 and 16 for the base model and the hybrid model, respectively) of random spatial points as the representatives per training step, to calculate the rate term easily. Note that we let these random points contribute solely to the rate term, whereas the distortion is still calculated over all of the images.
|
| 92 |
+
|
| 93 |
+
Because $\textbf { { y } }$ is a three-dimensional array in our implementation, index $i$ can be represented as three indexes, $k , l ,$ and $m$ , representing the horizontal index, the vertical index, and the channel index, respectively. When the current position is given as $( k , l , m )$ , $E ^ { \prime }$ extracts $\pmb { c } _ { [ k - 2 . . . k + 1 ] , [ l - 3 . . . l ] , [ 1 . . . M ] } ^ { \prime }$ as $\mathbf { c } _ { i } ^ { \prime }$ , and $E ^ { \prime \prime }$ extracts $\left. \hat { \pmb y } \right. _ { [ k - 2 . . . k + 1 ] , [ l - 3 . . . l ] , [ 1 . . . M ] }$ as $ { c _ { i } ^ { \prime \prime } }$ , when $\langle \hat { y } \rangle$ represents the known area of $\hat { y }$ . Note that we filled in the unknown area of $\langle \hat { y } \rangle$ with zeros, to maintain the dimensions of $\langle \hat { y } \rangle$ identical to those of $\hat { y }$ . Consequently, $\pmb { c } _ { i \ [ 3 . . . 4 ] , 4 , [ 1 . . . M ] } ^ { \prime \prime }$ are always padded with zeros. To keep the dimensions of the estimation results to the inputs, the marginal areas of $c ^ { \prime }$ and $\langle \hat { y } \rangle$ are also set to zeros. Note that when training or encoding, $\pmb { c } _ { i } ^ { \prime \prime }$ can be extracted using simple $4 { \times } 4 { \times } M$ windows and binary masks, thereby enabling parallel processing, whereas a sequential reconstruction is inevitable for decoding.
|
| 94 |
+
|
| 95 |
+
Another implementation technique used to reduce the implementation cost is combining the lightweight entropy model with the proposed model. The lightweight entropy model assumes that the representations follow a zero-mean Gaussian model with the estimated standard deviations, which is very similar with Balle et al. (2018)’s approach. We utilize this hybrid approach for the top ´ four cases, in bit-rate descending order, of the nine $\lambda$ configurations, based on the assumption that for the higher-quality compression, the number of sparse representations having a very low spatial dependency increases, and thus a direct scale estimation provides sufficient performance for these added representations. For implementation, we separate the latent representation $\textbf { { y } }$ into two parts, $\mathbf { \pmb { y _ { 1 } } }$ and $\mathbf { \pmb { y } _ { 2 } }$ , and two different entropy models are applied for them. Note that the parameters of $g _ { a }$ , $g _ { s }$ , $h _ { a }$ , and $h _ { s }$ are shared, and all parameters are still trained together. The detailed structure and experimental settings are described in appendix 6.1.
|
| 96 |
+
|
| 97 |
+
The number of parameters $N$ and $M$ are set to 128 and 192, respectively, for the five $\lambda$ configurations for lower bit-rates, whereas 2-3 times more parameters, described in appendix 6.1, are used for the four $\lambda$ configurations for higher bit-rates. Tensorflow and Python were used to setup the overall network structures, and for the actual entropy coding and decoding using the estimated model parameters, we implemented an arithmetic coder and decoder, for which the source code of the ”Reference arithmetic coding” project2 was used as the base code.
|
| 98 |
+
|
| 99 |
+
# 4.2 EXPERIMENTAL ENVIRONMENTS
|
| 100 |
+
|
| 101 |
+
We optimized the networks using two different types of distortion terms, one with MSE and the other with MS-SSIM. For each distortion type, the average bits per pixel (BPP) and the distortion, PSNR and MS-SSIM, over the test set are measured for each of the nine $\lambda$ configurations. Therefore, a total of 18 networks are trained and evaluated within the experimental environments, as explained below:
|
| 102 |
+
|
| 103 |
+
• For training, we used $2 5 6 \times 2 5 6$ patches extracted from 32,420 randomly selected YFCC100m (Thomee et al. (2016)) images. We extracted one patch per image, and the extracted regions were randomly chosen. Each batch consists of eight images, and 1M iterations of the training steps were conducted, applying the ADAM optimizer (Kingma & Ba (2015)). We set the initial learning rate to $5 \times 1 0 ^ { - } 5$ , and reduced the rate by half every 50,000 iterations for the last 200,000 iterations. Note that, in the case of the four $\lambda$ configurations for high bpp, in which the hybrid entropy model is used, 1M iterations of pre-training steps were conducted using the learning rate of $1 \times 1 0 ^ { - } 5$ . Although we previously indicated that the total loss is the sum of $R$ and $\lambda D$ for a simple explanation, we tuned the balancing parameter $\lambda$ in a similar way as Theis et al. (2017), as indicated in equation (6). We used the $\lambda$ parameters ranging from 0.01 to 0.5.
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\mathcal { L } = \frac { \lambda } { W _ { y } \cdot H _ { y } \cdot 2 5 6 } R + \frac { 1 - \lambda } { 1 0 0 0 } D .
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
• For the evaluation, we measured the average BPP and average quality of the reconstructed images in terms of the PSNR and MS-SSIM over 24 PNG images of the Kodak PhotoCD image dataset (Kodak, 1993). Note that we represent the MS-SSIM results in the form of decibels, as in Balle et al. (2018), to increase the discrimination.´
|
| 110 |
+
|
| 111 |
+
# 4.3 EXPERIMENTAL RESULTS
|
| 112 |
+
|
| 113 |
+
We compared the test results with other previous methods, including traditional codecs such as BPG and JPEG2000, as well as previous ANN-based approaches such as Theis et al. (2017) and Balle´ et al. (2018). Because two different quality metrics are used, the results are presented with two separate plots. As shown in figure 5, our methods outperform all other previous methods in both metrics. In particular, our models not only outperform Balle et al. (2018)’s method, which is believed ´ to be a state-of-the-art ANN-based approach, but we also obtain better results than the widely used conventional image codec, BPG.
|
| 114 |
+
|
| 115 |
+

|
| 116 |
+
Figure 5: Rate–distortion curves of the proposed method and competitive methods. The top plot represents the PSNR values as a result of changes in bpp, whereas the bottom plot shows MS-SSIM values in the same manner. Note that MS-SSIM values are converted into decibels $( - 1 0 \log _ { 1 0 } ( 1 -$ MS-SSIM)) for differentiating the quality levels, in the same manner as in Balle et al. (2018). ´
|
| 117 |
+
|
| 118 |
+
More specifically, the compression gains in terms of the BD-rate of PSNR over JPEG2000, Balle´ et al. (2018)’s approach (MSE-optimized), and BPG are $3 4 . 0 8 \%$ , $1 1 . 9 7 \%$ , and $6 . 8 5 \%$ , respectively. In the case of MS-SSIM, we found wider gaps of $6 8 . 8 2 \%$ , $1 3 . 9 3 \%$ , and $4 9 . 6 8 \%$ , respectively. Note that we achieved significant gains over traditional codecs in terms of MS-SSIM, although this might be because the dominant target metric of the traditional codec developments have been the PSNR.
|
| 119 |
+
|
| 120 |
+
In other words, they can be viewed as a type of MSE-optimized codec. Even when setting aside the case of MS-SSIM, our results can be viewed as one concrete evidence supporting that ANN-based image compression can outperform the existing traditional image codecs in terms of the compression performance. Supplemental image samples are provided in appendix 6.3.
|
| 121 |
+
|
| 122 |
+
# 5 DISCUSSION
|
| 123 |
+
|
| 124 |
+
Based on previous ANN-based image compression approaches utilizing entropy models (Balle et al., ´ 2017; Theis et al., 2017; Balle et al., 2018), we extended the entropy model to exploit two different ´ types of contexts. These contexts allow the entropy models to more accurately estimate the distribution of the representations with a more generalized form having both mean and standard deviation parameters. Based on the evaluation results, we showed the superiority of the proposed method. The contexts we utilized are divided into two types. One is a sort of free context, containing the part of the latent variables known to both the encoder and the decoder, whereas the other is the context, which requires additional bit allocation. Because the former is a generally used context in a variety of codecs, and the latter was already verified to help compression using Balle et al. (2018)’s approach, ´ our contributions are not the contexts themselves, but can be viewed as providing a framework of entropy models utilizing these contexts.
|
| 125 |
+
|
| 126 |
+
Although the experiments showed the best results in the ANN-based image compression domain, we still have various studies to conduct to further improve the performance. One possible way is generalizing the distribution models underlying the entropy model. Although we enhanced the performance by generalizing the previous entropy models, and have achieved quite acceptable results, the Gaussian-based entropy models apparently have a limited expression power. If more elaborate models, such as the non-parametric models of Balle et al. (2018) or Oord et al. (2016), are combined ´ with the context-adaptivity proposed in this paper, they would provide better results by reducing the mismatch between the actual distributions and the approximation models. Another possible way is improving the level of the contexts. Currently, our methods only use low-level representations within very limited adjacent areas. However, if the sufficient capacity of the networks and higher-level contexts are given, a much more accurate estimation could be possible. For instance, if an entropy model understands the structures of human faces, in that they usually have two eyes, between which a symmetry exists, the entropy model could approximate the distributions more accurately when encoding the second eye of a human face by referencing the shape and position of the first given eye. As is widely known, various generative models (Goodfellow et al., 2014; Radford et al., 2016; Zhao et al., 2017) learn the distribution $p ( { \pmb x } )$ of the images within a specific domain, such as human faces or bedrooms. In addition, various in-painting methods (Pathak et al., 2016; Yang et al., 2017; Yeh et al., 2017) learn the conditional distribution $p ( \pmb { x } \mid c o n t e x t )$ when the viewed areas are given as context. Although these methods have not been developed for image compression, hopefully such high-level understandings can be utilized sooner or later. Furthermore, the contexts carried using side information can also be extended to some high-level information such as segmentation maps or any other information that helps with compression. Segmentation maps, for instance, may be able to help the entropy models estimate the distribution of a representation discriminatively according to the segment class the representation belongs to.
|
| 127 |
+
|
| 128 |
+
Traditional codecs have a long development history, and a vast number of hand-crafted heuristics have been stacked thus far, not only for enhancing compression performance, but also for compromising computational complexities. Therefore, ANN-based image compression approaches may not provide satisfactory solutions as of yet, when taking their high complexity into account. However, considering its much shorter history, we believe that ANN-based image compression has much more potential and possibility in terms of future extension. Although we remain a long way from completion, we hope the proposed context-adaptive entropy model will provide an useful contribution to this area.
|
| 129 |
+
|
| 130 |
+
# ACKNOWLEDGMENTS
|
| 131 |
+
|
| 132 |
+
This work was supported by Institute for Information & communications Technology Promotion(IITP) grant funded by the Korea government (MSIT) (No. 2017-0-00072, Development of Audio/Video Coding and Light Field Media Fundamental Technologies for Ultra Realistic Teramedia).
|
| 133 |
+
|
| 134 |
+
# REFERENCES
|
| 135 |
+
|
| 136 |
+
Eirikur Agustsson, Michael Tschannen, Fabian Mentzer, Radu Timofte, and Luc Van Gool. Generative adversarial networks for extreme learned image compression. arXiv preprint arXiv:1804.02958, 2018. URL http://arxiv.org/abs/1804.02958.
|
| 137 |
+
|
| 138 |
+
Johannes Balle, Valero Laparra, and Eero P. Simoncelli. End-to-end optimized image compression. ´ In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/ 1611.01704.
|
| 139 |
+
|
| 140 |
+
Johannes Balle, David Minnen, Saurabh Singh, Sung Jin Hwang, and Nick Johnston. Variational ´ image compression with a scale hyperprior. In the 6th Int. Conf. on Learning Representations, 2018. URL http://arxiv.org/abs/1802.01436.
|
| 141 |
+
|
| 142 |
+
Fabrice Bellard. Bpg image format, 2014. URL http://bellard.org/bpg/.
|
| 143 |
+
|
| 144 |
+
Chao Dong, Yubin Deng, Chen Change Loy, and Xiaoou Tang Tang. Compression artifacts reduction by a deep convolutional network. In IEEE International Conference on Computer Vision (ICCV), 2015. URL http://arxiv.org/abs/1504.06993.
|
| 145 |
+
|
| 146 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014. URL http://papers. nips.cc/paper/5423-generative-adversarial-nets.pdf.
|
| 147 |
+
|
| 148 |
+
ISO/IEC 23008-2, ITU-T H.265. Information technology – high efficiency coding and media delivery in heterogeneous environments – part 2: High efficiency video coding. Standard, ISO/IEC, 2013.
|
| 149 |
+
|
| 150 |
+
Nick Johnston, Damien Vincent, David Minnen, Michele Covell, Saurabh Singh, Troy Chinen, Sung Jin Hwang, Joel Shor, and George Toderici. Improved lossy image compression with priming and spatially adaptive bit rates for recurrent networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 151 |
+
|
| 152 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In the 3rd Int. Conf. on Learning Representations, 2015. URL http://arxiv.org/abs/1412.6980.
|
| 153 |
+
|
| 154 |
+
Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In the 2nd Int. Conf. on Learning Representations, 2014. URL http://arxiv.org/abs/1312.6114.
|
| 155 |
+
|
| 156 |
+
Eastman Kodak. Kodak lossless true color image suite (photocd pcd0992), 1993. URL http: //r0k.us/graphics/kodak/.
|
| 157 |
+
|
| 158 |
+
Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In the 33 rd International Conference on Machine Learning, 2016. URL http://arxiv. org/abs/1601.06759.
|
| 159 |
+
|
| 160 |
+
Deepak Pathak, Philipp Krahenb ¨ uhl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context ¨ encoders: Feature learning by inpainting. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
|
| 161 |
+
|
| 162 |
+
Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In the 4th Int. Conf. on Learning Representations, 2016. URL http://arxiv.org/abs/1511.06434.
|
| 163 |
+
|
| 164 |
+
Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In the 31st Int. Conf. on Machine Learning, 2014. URL http://arxiv.org/abs/1401.4082.
|
| 165 |
+
|
| 166 |
+
Oren Rippel and Lubomir Bourdev. Real-time adaptive image compression. In International Conference on Machine Learning, 2017. URL http://arxiv.org/abs/1705.05823.
|
| 167 |
+
|
| 168 |
+
Shibani Santurkar, David M. Budden, and Nir Shavit. Generative compression. In The 33rd Picture Coding Symposium, 2018. URL http://arxiv.org/abs/1703.01467.
|
| 169 |
+
|
| 170 |
+
Pavel Svoboda, Michal Hradis, David Barina, and Pavel Zemc´ık. Compression artifacts removal using convolutional neural networks. In WSCG 24th International Conference on Computer Graphics, Visualization and Computer Vision, 2016. URL http://arxiv.org/abs/1605. 00366.
|
| 171 |
+
|
| 172 |
+
Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszar. Lossy image compression ´ with compressive autoencoders. In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/1703.00395.
|
| 173 |
+
|
| 174 |
+
Bart Thomee, David A. Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. The new data in multimedia research. Communications of the ACM, 59(2):64–73, 2016.
|
| 175 |
+
|
| 176 |
+
George Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full resolution image compression with recurrent neural networks. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. doi: 10.1109/CVPR.2017.577. URL http://arxiv.org/abs/1608.05148.
|
| 177 |
+
|
| 178 |
+
Zhou Wang, Eero P. Simoncelli, and Alan C. Bovik. Multiscale structural similarity for image quality assessment. In The Thrity-Seventh Asilomar Conference on Signals, Systems & Computers, 2003. doi: 10.1109/ACSSC.2003.1292216.
|
| 179 |
+
|
| 180 |
+
Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-resolution image inpainting using multi-scale neural patch synthesis. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
|
| 181 |
+
|
| 182 |
+
Raymond A. Yeh, Chen Chen, Teck-Yian Lim, Alexander G. Schwing, Mark Hasegawa-Johnson, and Minh N. Do. Semantic image inpainting with deep generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6882–6890. IEEE Computer Society, 2017.
|
| 183 |
+
|
| 184 |
+
Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Transactions on Image Processing, 26(7):3142–3155, 2017. doi: 10.1109/TIP.2017.2662206. URL http://arxiv.org/abs/ 1608.03981.
|
| 185 |
+
|
| 186 |
+
Junbo Jake Zhao, Michael Mathieu, and Yann LeCun. Energy-based generative adversarial network. ¨ In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/ 1609.03126.
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
Figure 6: The structure of the hybrid network for higher bit-rate environments. The same notations as in the figure 4 are used. The representation $\textbf { { y } }$ is divided into two parts and quantized. One of the resulting parts, $\hat { y } _ { 1 }$ , is encoded using the proposed model, whereas the other, $\hat { y } _ { 2 }$ , is encoded using a simpler model in which only the standard deviations are estimated using side information. The detailed structure of the proposed model is illustrated in figure 4. All concatenation and split operations are performed in a channel-wise manner.
|
| 190 |
+
|
| 191 |
+
# 6 APPENDIX
|
| 192 |
+
|
| 193 |
+
# 6.1 HYBRID NETWORK FOR HIGHER BIT-RATE COMPRESSIONS
|
| 194 |
+
|
| 195 |
+
We combined the lightweight entropy model with the context-adaptive entropy model to reduce the implementation costs for high-bpp configurations. The lightweight model exploits the scale (standard deviation) estimation, assuming that the PMF approximations of the quantized representations follow zero-mean Gaussian distributions convolved with a standard uniform distribution.
|
| 196 |
+
|
| 197 |
+
Figure 6 illustrates the network structure of this hybrid network. The representation $\textbf { { y } }$ is split channel-wise into two parts, $\mathbf { \pmb { y _ { 1 } } }$ and $\mathbf { \nabla } _ { \mathbf { \boldsymbol { y } } _ { 2 } }$ , which have $M _ { 1 }$ and $M _ { 2 }$ channels, respectively, and is then quantized. Here, $\hat { y } _ { 1 }$ is entropy coded using the proposed entropy model, whereas $\hat { y } _ { 2 }$ is coded with the lightweight entropy model. The standard deviations of $\hat { y } _ { 2 }$ are estimated using $h _ { a }$ and $h _ { s }$ . Unlike the context-adaptive entropy model, which uses the results of $h _ { a }$ $( \hat { c ^ { \prime } } )$ as the input source to the estimator $f$ , the lightweight entropy model retrieves the estimated standard deviations from $h _ { a }$ directly. Note that $h _ { a }$ takes the concatenated $\hat { y } _ { 1 }$ and $\hat { y } _ { 2 }$ as input, and $h _ { s }$ generates $\hat { c ^ { \prime } }$ as well as $\pmb { \sigma } _ { 2 }$ , at the same time.
|
| 198 |
+
|
| 199 |
+
The total loss function also consists of the rate and distortion terms, although the rate is divided into three parts, each of which is for $\hat { y } _ { 1 } , \hat { y } _ { 2 }$ , and $\hat { z }$ , respectively. The distortion term is the same as before, but note that $\hat { y }$ is the channel-wise concatenated representation of $\hat { y } _ { 1 }$ and $\hat { y } _ { 2 }$ :
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
\begin{array} { r l } & { \mathcal { L } = R + \lambda D } \\ & { \mathrm { w i t h } \ R = \mathbb { E } _ { { \mathbf { x } } \sim p _ { \mathbf { x } } } \mathbb { E } _ { \mathcal { \tilde { I } } _ { 1 } , \tilde { y _ { 2 } } , \tilde { z } \sim q } \Big [ - \log p _ { \tilde { y _ { 1 } } \mid \hat { z } } ( \tilde { y _ { 1 } } \mid \hat { z } ) - \log p _ { \tilde { y _ { 2 } } \mid \hat { z } } ( \tilde { y _ { 2 } } \mid \hat { z } ) - \log p _ { \tilde { z } } ( \tilde { z } ) \Big ] , } \\ & { \qquad D = \mathbb { E } _ { \mathbf { x } \sim p _ { \mathbf { x } } } \Big [ - \log p _ { \mathbf { x } \mid \hat { y } } ( \boldsymbol { x } \mid \hat { y } ) \big ] } \end{array}
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
Here, the noisy representations of ${ \tilde { y } } _ { 1 } , { \tilde { y } } _ { 2 }$ , and $\tilde { z }$ follow a standard uniform distribution, the mean values of which are ${ \bf { y 1 } } , ~ { \bf { y 2 } }$ , and $_ { z }$ , respectively. In addition, $\mathbf { \pmb { y _ { 1 } } }$ and $\mathbf { \nabla } _ { \mathbf { \boldsymbol { y } } _ { 2 } }$ are channel-wise split representations from $\textbf { { y } }$ , the results of the transform $g _ { a }$ , and have $M _ { 1 }$ and $M _ { 2 }$ channels, respectively:
|
| 206 |
+
|
| 207 |
+
$$
|
| 208 |
+
\begin{array} { l c l } { \iota ( \tilde { y } _ { 1 } , \tilde { y } _ { 2 } , \tilde { z } \mid x , \phi _ { g } , \phi _ { h } ) } & { = } & { \displaystyle \prod _ { i } U \big ( \tilde { y } _ { 1 i } \mid y _ { 1 i } - \frac { 1 } { 2 } , y _ { 1 i } + \frac { 1 } { 2 } \big ) \cdot } \\ & & { \displaystyle \prod _ { j } U \big ( \tilde { y } _ { 2 j } \mid y _ { 2 j } - \frac { 1 } { 2 } , y _ { 2 j } + \frac { 1 } { 2 } \big ) \cdot } \\ & & { \displaystyle \prod _ { k } U \big ( \tilde { z } _ { k } \mid z _ { k } - \frac { 1 } { 2 } , z _ { k } + \frac { 1 } { 2 } \big ) } \\ & & { \mathrm { w i t h } ~ y _ { 1 } , y _ { 2 } = S \big ( g _ { a } ( x ; \phi _ { g } ) \big ) , \hat { y } = Q ( y _ { 1 } ) \oplus Q ( y _ { 2 } ) , z = h _ { a } ( \hat { y } ; \phi _ { h } ) . } \end{array}
|
| 209 |
+
$$
|
| 210 |
+
|
| 211 |
+
The rate term for $\hat { y } _ { 1 }$ is the same model as that of equation (4). Note that $\hat { \pmb { \sigma _ { 2 } } }$ does not contribute here, but does contribute to the model for $\hat { y } _ { 2 }$ :
|
| 212 |
+
|
| 213 |
+
$$
|
| 214 |
+
\begin{array} { c } { \displaystyle p _ { \tilde { y } _ { 1 } | \hat { z } } ( \tilde { y } _ { \mathbf { 1 \rho } } | \hat { z } , \pmb { \theta } _ { h } ) = \prod _ { i } \Bigl ( \mathcal { N } \bigl ( \mu _ { 1 i } , { \sigma _ { 1 i } } ^ { 2 } \bigr ) * \mathcal { U } \bigl ( - { \textstyle \frac { 1 } { 2 } } , { \textstyle \frac { 1 } { 2 } } \bigr ) \Bigr ) ( \tilde { y } _ { 1 i } ) } \\ { \mathrm { w i t h } \ \mu _ { 1 i } , \sigma _ { 1 i } = f ( c _ { i } ^ { \prime } , c _ { i } ^ { \prime \prime } ) , } \\ { c _ { i } ^ { \prime } = E ^ { \prime } ( c ^ { \prime } , i ) , } \\ { c _ { i } ^ { \prime \prime } = E ^ { \prime \prime } ( \langle { \hat { y } _ { \mathbf { 1 } } } \rangle , i ) , } \\ { c ^ { \prime } , \sigma _ { 2 } = S ( h _ { s } ( \hat { z } ; \pmb { \theta } _ { h } ) ) } \end{array}
|
| 215 |
+
$$
|
| 216 |
+
|
| 217 |
+
The rate term for $\hat { y } _ { 2 }$ is almost the same as Balle et al. (2018), except that noisy representations are ´ only used as the inputs to the entropy models for training, and not for the conditions of the models.
|
| 218 |
+
|
| 219 |
+
$$
|
| 220 |
+
\begin{array} { c c l } { { p _ { \tilde { y } _ { 2 } | \hat { z } } ( \tilde { y } _ { 2 } \mid \hat { z } , \theta _ { h } ) } } & { { = } } & { { \displaystyle { \prod _ { j } } \Big ( \mathcal { N } \big ( 0 , { \sigma _ { 2 j } } ^ { 2 } \big ) * \mathcal { U } \big ( - { \textstyle { \frac { 1 } { 2 } } } , { \textstyle { \frac { 1 } { 2 } } } \big ) \Big ) ( y _ { 2 j } ^ { \sim } ) } } \end{array}
|
| 221 |
+
$$
|
| 222 |
+
|
| 223 |
+
The model of $_ z$ is the same as in equation (5). For implementation, we used this hybrid structure for the top-four configurations in bit-rate descending order. We set $N$ , $M _ { 1 }$ , and $M _ { 2 }$ to 400, 192, and 408, respectively, for the top-two configurations, and to 320, 192, and 228, respectively, for the next two configurations.
|
| 224 |
+
|
| 225 |
+
In addition, we measured average execution time per image, spent for encoding and decoding Kodak PhotoCD image dataset (Kodak, 1993), to clarify benefit of the hybrid model. The test was conducted under CPU environments, Intel i9-7900X. Note that we ignored time for actual entropy coding because all models with the same values of $N$ and $M$ spend the same amount of time for entropy coding. As shown in figure 7, the hybrid models clearly reduced execution time of the models. Setting $N$ and $M$ to 320 and 420, respectively, we obtained $4 6 . 8 3 \%$ of speed gain. With the higher number of parameters, 400 of $N$ and 600 of $M$ , we obtained $5 7 . 2 8 \%$ of speed gain.
|
| 226 |
+
|
| 227 |
+
# 6.2 TEST RESULTS OF THE MODELS TRAINED USING DIFFERENT TYPES OF REPRESENTATIONS
|
| 228 |
+
|
| 229 |
+
In this section, we provide test results of the two models, the proposed model trained using discrete representations as inputs to the synthesis transforms, $g _ { s }$ and $h _ { s }$ , and the same model but trained using noisy representations following the training process of Balle et al. (2018)’s approach. In detail, in ´ training phase of the proposed model, we used quantized representations $\hat { y }$ and $\hat { z }$ as inputs to the transforms $g _ { s }$ and $h _ { s }$ , respectively, to ensure the same conditions of training and testing phases. On the other hand, for training the compared model, representations $\tilde { y }$ and $\tilde { z }$ are used as inputs to the transforms. An additional change of the proposed model is using $\hat { y }$ , instead of $\textbf { { y } }$ , as inputs to $h _ { a }$ , but note that this has nothing to do with the mismatches between training and testing. We used them to match inputs to $h _ { a }$ to targets of model estimation via $f$ . As shown in figure 8, the proposed model, trained using discrete representations, was $5 . 9 4 \%$ better than the model trained using noisy representations, in terms of the BD-rate of PSNR. Compared with Balle et al. (2018)’s ´ approach, the performance gains of the two models, trained using discrete representations and noisy representations, were $1 1 . 9 7 \%$ and $7 . 2 0 \%$ , respectively.
|
| 230 |
+
|
| 231 |
+

|
| 232 |
+
Figure 7: Comparison results of execution time between the base model and hybrid model
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 8: Evaluation results of the models trained using noisy/discrete representations as input to synthesis transforms
|
| 236 |
+
|
| 237 |
+
# 6.3 SAMPLES OF THE EXPERIMENTS
|
| 238 |
+
|
| 239 |
+
In this section, we provide a few more supplemental test results. Figures 9, 10, and 11 show the results of the MSE optimized version of our method, whereas figures 12 and 13 show the results of the MS-SSIM optimized version. All figures include a ground truth image and the reconstructed images for our method, BPG, and Balle et al. (2018)’s approach, in the clockwise direction. ´
|
| 240 |
+
|
| 241 |
+

|
| 242 |
+
Figure 9: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.2040; PSNR, 32.2063); bottom left, BPG (bpp, 0.2078; PSNR, 32.0406); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized; bpp, 0.2101; PSNR, 31.7054)
|
| 243 |
+
|
| 244 |
+

|
| 245 |
+
Figure 10: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.1236; PSNR, 32.4284); bottom left, BPG (bpp, 0.1285; PSNR, 32.0444); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized, bpp, 0.1229; PSNR, 31.0596)
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
Figure 11: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.1501; PSNR, 34.7103); bottom left, BPG (bpp, 0.1477; PSNR, 33.9623); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized; bpp, 0.1520; PSNR, 34.0465)
|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
Figure 12: Sample test results. Top left, ground truth; top right, our method (MS-SSIM optimized; bpp, 0.2507; MS-SSIM, 0.9740); bottom left, BPG (bpp, 0.2441; MS-SSIM, 0.9555); bottom right, Balle et al. (2018)’s approach (MS-SSIM optimized; bpp, 0.2101; MS-SSIM, 0.9705) ´
|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
Figure 13: Sample test results. Top left, ground truth; top right, our method (MS-SSIM optimized; bpp, 0.2269; MS-SSIM, 0.9810); bottom left, BPG (bpp, 0.2316; MS-SSIM, 0.9658); bottom right, Balle et al. (2018)’s approach (MS-SSIM optimized; bpp, 0.2291; MS-SSIM, 0.9786) ´
|
parse/train/HyxKIiAqYQ/HyxKIiAqYQ_content_list.json
ADDED
|
@@ -0,0 +1,1369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Jooyoung Lee, Seunghyun Cho & Seung-Kwon Beack ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
170,
|
| 20 |
+
558,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Broadcasting Media Research Laboratory Electronics and Telecommunications Research Institute Daejeon, Korea {leejy1003,shcho,skbeack}@etri.re.kr ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
185,
|
| 31 |
+
547,
|
| 32 |
+
239
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
276,
|
| 43 |
+
544,
|
| 44 |
+
291
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "We propose a context-adaptive entropy model for use in end-to-end optimized image compression. Our model exploits two types of contexts, bit-consuming contexts and bit-free contexts, distinguished based upon whether additional bit allocation is required. Based on these contexts, we allow the model to more accurately estimate the distribution of each latent representation with a more generalized form of the approximation models, which accordingly leads to an enhanced compression performance. Based on the experimental results, the proposed method outperforms the traditional image codecs, such as BPG and JPEG2000, as well as other previous artificial-neural-network (ANN) based approaches, in terms of the peak signal-to-noise ratio (PSNR) and multi-scale structural similarity (MS-SSIM) index. The test code is publicly available at https://github.com/JooyoungLeeETRI/CA_Entropy_Model. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
306,
|
| 54 |
+
764,
|
| 55 |
+
473
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
497,
|
| 66 |
+
336,
|
| 67 |
+
513
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Recently, artificial neural networks (ANNs) have been applied in various areas and have achieved a number of breakthroughs resulting from their superior optimization and representation learning performance. In particular, for various problems that are sufficiently straightforward that they can be solved within a short period of time by hand, a number of ANN-based studies have been conducted and significant progress has been made. With regard to image compression, however, relatively slow progress has been made owing to its complicated target problems. A number of works, focusing on the quality enhancement of reconstructed images, were proposed. For instance, certain approaches (Dong et al., 2015; Svoboda et al., 2016; Zhang et al., 2017) have been proposed to reduce artifacts caused by image compression, relying on the superior image restoration capability of an ANN. Although it is indisputable that artifact reduction is one of the most promising areas exploiting the advantages of ANNs, such approaches can be viewed as a type of post-processing, rather than image compression itself. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
529,
|
| 77 |
+
825,
|
| 78 |
+
694
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Regarding ANN-based image compression, the previous methods can be divided into two types. First, as a consequence of the recent success of generative models, some image compression approaches targeting the superior perceptual quality (Agustsson et al., 2018; Santurkar et al., 2018; Rippel & Bourdev, 2017) have been proposed. The basic idea here is that learning the distribution of natural images enables a very high compression level without severe perceptual loss by allowing the generation of image components, such as textures, which do not highly affect the structure or the perceptual quality of the reconstructed images. Although the generated images are very realistic, the acceptability of the machine-created image components eventually becomes somewhat applicationdependent. Meanwhile, a few end-to-end optimized ANN-based approaches (Toderici et al., 2017; Johnston et al., 2018; Balle et al., 2017; Theis et al., 2017; Ball ´ e et al., 2018), without generative ´ models, have been proposed. In these approaches, unlike traditional codecs comprising separate tools, such as prediction, transform, and quantization, a comprehensive solution covering all functions has been sought after using end-to-end optimization. Toderici et al. (2017)’s approach exploits a small number of latent binary representations to contain the compressed information in every step, and each step increasingly stacks the additional latent representations to achieve a progressive improvement in quality of the reconstructed images. Johnston et al. (2018) improved the compression performance by enhancing operation methods of the networks developed by Toderici et al. (2017). Although Toderici et al. (2017); Johnston et al. (2018) provided novel frameworks suitable to quality control using a single trained network, the increasing number of iteration steps to obtain higher image quality can be a burden to certain applications. In contrast to the approaches developed by Toderici et al. (2017) and Johnston et al. (2018), which extract binary representations with as high an entropy as possible, Balle et al. (2017), Theis et al. (2017), and Ball ´ e et al. (2018) regard the im- ´ age compression problem as being how to retrieve discrete latent representations having as low an entropy as possible. In other words, the target problem of the former methods can be viewed as how to include as much information as possible in a fixed number of representations, whereas the latter is simply how to reduce the expected bit-rate when a sufficient number of representations are given, assuming that the low entropy corresponds to small number of bits from the entropy coder. To solve the second target problem, Balle et al. (2017), Theis et al. (2017), and Ball ´ e et al. (2018) adopt their ´ own entropy models to approximate the actual distributions of the discrete latent representations. More specifically, Balle et al. (2017) and Theis et al. (2017) proposed novel frameworks that exploit ´ the entropy models, and proved their performance capabilities by comparing the results with those of conventional codecs such as JPEG2000. Whereas Balle et al. (2017) and Theis et al. (2017) assume ´ that each representation has a fixed distribution, Balle et al. (2018) introduced an input-adaptive ´ entropy model that estimates the scale of the distribution for each representation. This idea is based on the characteristics of natural images in which the scales of the representations vary together in adjacent areas. They provided test results that outperform all previous ANN-based approaches, and reach very close to those of BPG (Bellard, 2014), which is known as a subset of HEVC (ISO/IEC 23008-2, ITU-T H.265), used for image compression. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
702,
|
| 88 |
+
825,
|
| 89 |
+
922
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/34dbc9c19daf0a08cec1170f1febb5b86680b2102aaa92fa61b9e61d7324816e.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: Comparison of sample test results including the ground truth, our method, Balle et al. ´ (2018)’s approach, BPG, and JPEG2000. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
174,
|
| 102 |
+
101,
|
| 103 |
+
825,
|
| 104 |
+
275
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "",
|
| 111 |
+
"bbox": [
|
| 112 |
+
173,
|
| 113 |
+
352,
|
| 114 |
+
825,
|
| 115 |
+
659
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "One of the principle elements in end-to-end optimized image compression is the trainable entropy model used for the latent representations. Because the actual distributions of latent representations are unknown, the entropy models provide the means to estimate the required bits for encoding the latent representations by approximating their distributions. When an input image $_ { \\textbf { \\em x } }$ is transformed into a latent representation $\\textbf { { y } }$ and then uniformly quantized into $\\hat { y }$ , the simple entropy model can be represented by $p _ { \\hat { \\pmb { y } } } ( \\hat { \\pmb { y } } )$ , as described by Balle et al. (2018). When the actual marginal distribution ´ of $\\hat { y }$ is denoted as $m ( \\hat { \\pmb y } )$ , the rate estimation, calculated through cross entropy using the entropy model, $p _ { \\hat { \\pmb { y } } } ( \\hat { \\pmb { y } } )$ , can be represented as shown in equation (1), and can be decomposed into the actual entropy of $\\hat { y }$ and the additional bits owing to a mismatch between the actual distributions and their approximations. Therefore, decreasing the rate term $R$ during the training process allows the entropy model $p _ { \\hat { \\pmb { y } } } ( \\hat { \\pmb { y } } )$ to approximate $m ( \\hat { \\pmb y } )$ as closely as possible, and let the other parameters transform $x$ into $y$ properly such that the actual entropy of $\\hat { y }$ becomes small. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
664,
|
| 125 |
+
825,
|
| 126 |
+
832
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "equation",
|
| 132 |
+
"img_path": "images/027760161490479f16d851e3092bf7d0ab43888190c60ddd89cb47e5cd0dabf7.jpg",
|
| 133 |
+
"text": "$$\nR = \\mathbb { E } _ { \\hat { \\pmb { y } } \\sim m } [ - \\log _ { 2 } p _ { \\hat { \\pmb { y } } } ( \\hat { \\pmb { y } } ) ] = H ( m ) + D _ { K L } ( m \\vert \\vert p _ { \\hat { \\pmb { y } } } ) .\n$$",
|
| 134 |
+
"text_format": "latex",
|
| 135 |
+
"bbox": [
|
| 136 |
+
323,
|
| 137 |
+
852,
|
| 138 |
+
674,
|
| 139 |
+
871
|
| 140 |
+
],
|
| 141 |
+
"page_idx": 1
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"type": "text",
|
| 145 |
+
"text": "In terms of KL-divergence, $R$ is minimized when $p _ { \\hat { \\pmb { y } } } ( \\hat { \\pmb { y } } )$ becomes perfectly matched with the actual distribution $m ( \\hat { \\pmb y } )$ . This means that the compression performance of the methods essentially depends on the capacity of the entropy model. To enhance the capacity, we propose a new entropy model that exploits two types of contexts, bit-consuming and bit-free contexts, distinguished according to whether additional bit allocation is required. Utilizing these two contexts, we allow the model to more accurately estimate the distribution of each latent representation through the use of a more generalized form of the entropy models, and thus more effectively reduce the spatial dependencies among the adjacent latent representations. Figure 1 demonstrates a comparison of the compression results of our method to those of other previous approaches. The contributions of our work are as follows: ",
|
| 146 |
+
"bbox": [
|
| 147 |
+
174,
|
| 148 |
+
881,
|
| 149 |
+
823,
|
| 150 |
+
924
|
| 151 |
+
],
|
| 152 |
+
"page_idx": 1
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"type": "text",
|
| 156 |
+
"text": "",
|
| 157 |
+
"bbox": [
|
| 158 |
+
174,
|
| 159 |
+
103,
|
| 160 |
+
825,
|
| 161 |
+
200
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 2
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "• We propose a new context-adaptive entropy model framework that incorporates the two different types of contexts. \n• We provide the test results that outperform the widely used conventional image codec BPG in terms of the PSNR and MS-SSIM. \n• We discuss the directions of improvement in the proposed methods in terms of the model capacity and the level of the contexts. ",
|
| 168 |
+
"bbox": [
|
| 169 |
+
215,
|
| 170 |
+
212,
|
| 171 |
+
825,
|
| 172 |
+
304
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 2
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "text",
|
| 178 |
+
"text": "Note that we follow a number of notations given by Balle et al. (2018) because our approach can ´ be viewed as an extension of their work, in that we exploit the same rate-distortion (R-D) optimization framework. The rest of this paper is organized as follows. In Section 2, we introduce the key approaches of end-to-end optimized image compression and propose the context-adaptive entropy model. Section 3 demonstrates the structure of the encoder and decoder models used, and the experimental setup and results are then given in section 4. Finally, in Section 5, we discuss the current state of our work and directions for improvement. ",
|
| 179 |
+
"bbox": [
|
| 180 |
+
174,
|
| 181 |
+
315,
|
| 182 |
+
825,
|
| 183 |
+
412
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 2
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "text",
|
| 189 |
+
"text": "2 END-TO-END OPTIMIZATION BASED ON CONTEXT-ADAPTIVE ENTROPY MODELS ",
|
| 190 |
+
"text_level": 1,
|
| 191 |
+
"bbox": [
|
| 192 |
+
176,
|
| 193 |
+
434,
|
| 194 |
+
789,
|
| 195 |
+
465
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "2.1 PREVIOUS ENTROPY MODELS ",
|
| 202 |
+
"text_level": 1,
|
| 203 |
+
"bbox": [
|
| 204 |
+
176,
|
| 205 |
+
481,
|
| 206 |
+
418,
|
| 207 |
+
494
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 2
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "Since they were first proposed by Balle et al. (2017) and Theis et al. (2017), entropy models, which ´ approximate the distribution of discrete latent representations, have noticeably improved the image compression performance of ANN-based approaches. Balle et al. (2017) assumes the entropy mod-´ els of the latent representations as non-parametric models, whereas Theis et al. (2017) adopted a Gaussian scale mixture model composed of six weighted zero-mean Gaussian models per representation. Although they assume different forms of entropy models, they have a common feature in that both concentrate on learning the distributions of the representations without considering input adaptivity. In other words, once the entropy models are trained, the trained model parameters for the representations are fixed for any input during the test time. Balle et al. (2018), in contrast, in- ´ troduced a novel entropy model that adaptively estimates the scales of the representations based on input. They assume that the scales of the latent representations from the natural images tend to move together within an adjacent area. To reduce this redundancy, they use a small amount of additional information by which the proper scale parameters (standard deviations) of the latent representations are estimated. In addition to the scale estimation, Balle et al. (2018) have also shown that when ´ the prior probability density function (PDF) for each representation in a continuous domain is convolved with a standard uniform density function, it approximates the prior probability mass function (PMF) of the discrete latent representation, which is uniformly quantized by rounding, much more closely. For training, a uniform noise is added to each latent representation so as to fit the distribution of these noisy representations into the mentioned PMF-approximating functions. Using these approaches, Balle et al. (2018) achieved a state-of-the-art compression performance, close to that of ´ BPG. ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
506,
|
| 217 |
+
825,
|
| 218 |
+
797
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "2.2 SPATIAL DEPENDENCIES OF THE LATENT VARIABLES ",
|
| 225 |
+
"text_level": 1,
|
| 226 |
+
"bbox": [
|
| 227 |
+
174,
|
| 228 |
+
815,
|
| 229 |
+
578,
|
| 230 |
+
828
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 2
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "The latent representations, when transformed through a convolutional neural network, essentially contain spatial dependencies because the same convolutional filters are shared across the spatial regions, and natural images have various factors in common within adjacent regions. Balle et al. ´ (2018) successfully captured these spatial dependencies and enhanced the compression performance by input-adaptively estimating standard deviations of the latent representations. Taking a step forward, we generalize the form of the estimated distribution by allowing, in addition to the standard deviation, the mean estimation utilizing the contexts. For instance, assuming that certain representations tend to have similar values within a spatially adjacent area, when all neighborhood representations have a value of 10, we can intuitively guess that, for the current representation, the chance of having a value equal or similar to 10 is relatively high. This simple estimation will consequently reduce the entropy. Likewise, our method utilizes the given contexts for estimating the mean, as well as the standard deviation, of each latent representation. Note that Toderici et al. (2017), Johnston et al. (2018), and Rippel & Bourdev (2017) also apply context-adaptive entropy coding by estimating the probability of each binary representation. However, these context-adaptive entropy-coding methods can be viewed as separate components, rather than one end-to-end optimization component because their probability estimation does not directly contribute to the rate term of the R-D optimization framework. Figure 2 visualizes the latent variables $\\hat { y }$ and their normalized versions of the two different approaches, one estimating only the standard deviation parameters and the other estimating both the mu and standard deviation parameters with the two types of mentioned contexts. The visualization shows that the spatial dependency can be removed more effectively when the mu is estimated along with the given contexts. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
840,
|
| 240 |
+
823,
|
| 241 |
+
924
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "image",
|
| 247 |
+
"img_path": "images/04976c4594e77d9e31aedc6865f52df2ccb7de18e96a773e22551c6fd7a93b96.jpg",
|
| 248 |
+
"image_caption": [
|
| 249 |
+
"Figure 2: Examples of latent representations and their normalized versions for the two cases (the first two images show the results in which only the standard deviations are estimated using side information, whereas the last two images show the results in which the mu and standard deviation are estimated using our method). For a clear demonstration, the latent representations having the highest covariance between the spatially adjacent variables are extracted. Left: the latent representations of $\\hat { y }$ from the first case. Middle left: the normalized versions of $\\hat { y }$ from the first case, divided by the estimated standard deviation. Middle right: the latent variable of $\\hat { y }$ from the second case. Right: the normalized versions of $\\hat { y }$ from the second case, shifted and divided by the estimated mu and the standard deviation. "
|
| 250 |
+
],
|
| 251 |
+
"image_footnote": [],
|
| 252 |
+
"bbox": [
|
| 253 |
+
174,
|
| 254 |
+
117,
|
| 255 |
+
821,
|
| 256 |
+
256
|
| 257 |
+
],
|
| 258 |
+
"page_idx": 3
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"type": "text",
|
| 262 |
+
"text": "",
|
| 263 |
+
"bbox": [
|
| 264 |
+
174,
|
| 265 |
+
426,
|
| 266 |
+
825,
|
| 267 |
+
635
|
| 268 |
+
],
|
| 269 |
+
"page_idx": 3
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"type": "text",
|
| 273 |
+
"text": "2.3 CONTEXT-ADAPTIVE ENTROPY MODEL ",
|
| 274 |
+
"text_level": 1,
|
| 275 |
+
"bbox": [
|
| 276 |
+
176,
|
| 277 |
+
654,
|
| 278 |
+
482,
|
| 279 |
+
667
|
| 280 |
+
],
|
| 281 |
+
"page_idx": 3
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"type": "text",
|
| 285 |
+
"text": "The optimization problem described in this paper is similar with Balle et al. (2018), in that the input ´ $_ { \\textbf { \\em x } }$ is transformed into $\\textbf { { y } }$ having a low entropy, and the spatial dependencies of $\\textbf { { y } }$ are captured into $\\hat { z }$ . Therefore, we also use four fundamental parametric transform functions: an analysis transform $g _ { a } ( { \\pmb x } ; \\phi _ { g } )$ to transform $_ { \\textbf { \\em x } }$ into a latent representation $\\textbf { { y } }$ , a synthesis transform $g _ { s } ( \\hat { y } ; \\pmb { \\theta } _ { g } )$ to reconstruct image $\\hat { \\pmb x }$ , an analysis transform $h _ { a } ( \\hat { \\pmb { y } } ; \\phi _ { h } )$ to capture the spatial redundancies of $\\hat { y }$ into a latent representation $_ { z }$ , and a synthesis transform $h _ { s } ( \\hat { z } ; \\pmb { \\theta } _ { h } )$ used to generate the contexts for the model estimation. Note that $h _ { s }$ does not estimate the standard deviations of the representations directly as in Balle et al. (2018)’s approach. In our method, instead, ´ $h _ { s }$ generates the context $c ^ { \\prime }$ , one of the two types of contexts for estimating the distribution. These two types of contexts are described in this section. ",
|
| 286 |
+
"bbox": [
|
| 287 |
+
173,
|
| 288 |
+
680,
|
| 289 |
+
825,
|
| 290 |
+
819
|
| 291 |
+
],
|
| 292 |
+
"page_idx": 3
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"type": "text",
|
| 296 |
+
"text": "Balle et al. (2018) analyzed the optimization problem from the viewpoint of the variational autoen- ´ coder (Kingma & Welling (2014); Rezende et al. (2014)), and showed that the minimization of the KL-divergence is the same problem as the R-D optimization of image compression. Basically, we follow the same concept; however, for training, we use the discrete representations on the conditions instead of the noisy representations, and thus the noisy representations are only used as the inputs to the entropy models. Empirically, we found that using discrete representations on the conditions show better results, as shown in appendix 6.2. These results might come from removing the mismatches of the conditions between the training and testing, thereby enhancing the training capacity by limiting the affect of the uniform noise only to help the approximation to the probability mass functions. We use the gradient overriding method with the identity function, as in Theis et al. (2017), to deal with the discontinuities from the uniform quantization. The resulting objective function used in this paper is given in equation (2). The total loss consists of two terms representing the rates and distortions, and the coefficient $\\lambda$ controls the balance between the rate and distortion during the R-D optimization. Note that $\\lambda$ is not an optimization target, but a manually configured condition that determines which to focus on between rate and distortion: ",
|
| 297 |
+
"bbox": [
|
| 298 |
+
174,
|
| 299 |
+
825,
|
| 300 |
+
823,
|
| 301 |
+
924
|
| 302 |
+
],
|
| 303 |
+
"page_idx": 3
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"type": "text",
|
| 307 |
+
"text": "",
|
| 308 |
+
"bbox": [
|
| 309 |
+
173,
|
| 310 |
+
102,
|
| 311 |
+
825,
|
| 312 |
+
215
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 4
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "equation",
|
| 318 |
+
"img_path": "images/496a0cff77428dc0ab4a27392a31da9119bd4679522410cf9428dc829ff2ae70.jpg",
|
| 319 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } = R + \\lambda D } \\\\ & { \\mathrm { w i t h } \\ : R = \\mathbb { E } _ { { \\pmb x } \\sim p _ { \\pmb x } } \\mathbb { E } _ { { \\pmb \\tilde { y } } , { \\boldsymbol \\tilde { z } } \\sim q } \\Big [ - \\log p _ { { \\pmb { \\tilde { y } } } | { \\hat { z } } } ( { \\pmb \\tilde { y } } \\mid { \\hat { z } } ) - \\log p _ { { \\boldsymbol \\tilde { z } } } ( { \\boldsymbol \\tilde { z } } ) \\Big ] , } \\\\ & { \\quad \\quad D = \\mathbb { E } _ { { \\pmb x } \\sim p _ { \\infty } } \\Big [ - \\log p _ { { \\pmb x } | { \\hat { y } } } ( { \\pmb x } \\mid { \\hat { y } } ) \\Big ] } \\end{array}\n$$",
|
| 320 |
+
"text_format": "latex",
|
| 321 |
+
"bbox": [
|
| 322 |
+
300,
|
| 323 |
+
238,
|
| 324 |
+
696,
|
| 325 |
+
315
|
| 326 |
+
],
|
| 327 |
+
"page_idx": 4
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"type": "text",
|
| 331 |
+
"text": "Here, the noisy representations of $\\tilde { y }$ and $\\tilde { z }$ follow the standard uniform distribution, the mean values of which are $\\textbf { { y } }$ and $_ { z }$ , respectively, when $\\textbf { { y } }$ and $_ z$ are the result of the transforms $g _ { a }$ and $h _ { a }$ , repectively. Note that the input to $h _ { a }$ is $\\hat { y }$ , which is a uniformly quantized representation of $\\textbf { { y } }$ , rather than the noisy representation ${ \\tilde { y } } . \\ Q$ denotes the uniform quantization function, for which we simply use a rounding function: ",
|
| 332 |
+
"bbox": [
|
| 333 |
+
173,
|
| 334 |
+
321,
|
| 335 |
+
826,
|
| 336 |
+
393
|
| 337 |
+
],
|
| 338 |
+
"page_idx": 4
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"type": "equation",
|
| 342 |
+
"img_path": "images/3246172ba8ddd426e3fe077bf5e6106e76e86f9bb725aec72f563bbfeeb18316.jpg",
|
| 343 |
+
"text": "$$\n\\begin{array} { l l l } { { q ( \\tilde { y } , \\tilde { z } \\mid x , \\phi _ { g } , \\phi _ { h } ) } } & { { = } } & { { \\displaystyle \\prod _ { i } \\mathcal { U } \\big ( \\tilde { y } _ { i } \\mid y _ { i } - \\frac { 1 } { 2 } , y _ { i } + \\frac { 1 } { 2 } \\big ) \\cdot \\prod _ { j } \\mathcal { U } \\big ( \\tilde { z } _ { j } \\mid z _ { j } - \\frac { 1 } { 2 } , z _ { j } + \\frac { 1 } { 2 } \\big ) } } \\\\ { { } } & { { } } & { { \\mathrm { w i t h } ~ y = g _ { a } ( { \\bf x } ; \\phi _ { g } ) , \\hat { y } = Q ( y ) , z = h _ { a } ( \\hat { y } ; \\phi _ { h } ) . } } \\end{array}\n$$",
|
| 344 |
+
"text_format": "latex",
|
| 345 |
+
"bbox": [
|
| 346 |
+
232,
|
| 347 |
+
412,
|
| 348 |
+
766,
|
| 349 |
+
469
|
| 350 |
+
],
|
| 351 |
+
"page_idx": 4
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"type": "text",
|
| 355 |
+
"text": "The rate term represents the expected bits calculated using the entropy models of $p _ { \\tilde { y } | \\hat { z } }$ and $p _ { \\tilde { z } }$ . Note that $p _ { \\tilde { y } | \\hat { z } }$ and $p _ { \\tilde { z } }$ are eventually the approximations of $p _ { \\hat { y } | \\hat { z } }$ and $p _ { \\hat { z } }$ , respectively. Equation (4) represents the entropy model for approximating the required bits for $\\hat { y }$ . The model is based on the Gaussian model, which not only has the standard deviation parameter $\\sigma _ { i }$ , but also the mu parameter $\\mu _ { i }$ . The values of $\\mu _ { i }$ and $\\sigma _ { i }$ are estimated from the two types of given contexts based on the function $f$ , the distribution estimator, in a deterministic manner. The two types of contexts, bit-consuming and bit-free contexts, for estimating the distribution of a certain representation are denoted as $ { \\boldsymbol { c } } _ { i } ^ { \\prime }$ and $ { c _ { i } ^ { \\prime \\prime } }$ . $E ^ { \\prime }$ extracts $ { \\boldsymbol { c } } _ { i } ^ { \\prime }$ from $c ^ { \\prime }$ , the result of transform $h _ { s }$ . In contrast to $\\pmb { c } _ { i } ^ { \\prime }$ , no additional bit allocation is required for $ { c _ { i } ^ { \\prime \\prime } }$ . Instead, we simply utilize the known (already entropy-coded or decoded) subset of $\\hat { y }$ , denoted as $\\langle \\hat { y } \\rangle$ . Here, $ { \\boldsymbol { c } } _ { i } ^ { \\prime \\prime }$ is extracted from $\\langle \\hat { y } \\rangle$ by the extractor $E ^ { \\prime \\prime }$ . We assume that the entropy coder and the decoder sequentially process $\\hat { y } _ { i }$ in the same specific order, such as with raster scanning, and thus $\\langle \\hat { y } \\rangle$ given to the encoder and decoder can always be identical when processing the same $\\hat { y } _ { i }$ . A formal expression of this is as follows: ",
|
| 356 |
+
"bbox": [
|
| 357 |
+
173,
|
| 358 |
+
477,
|
| 359 |
+
825,
|
| 360 |
+
659
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 4
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "equation",
|
| 366 |
+
"img_path": "images/3450b52f1edcaa9f111fdbda1714d32449f6e28412dccee540374e3e6d3c9d91.jpg",
|
| 367 |
+
"text": "$$\n\\begin{array} { c } { { p _ { \\tilde { y } | \\hat { z } } ( \\tilde { y } \\mid \\hat { z } , \\theta _ { h } ) = { \\displaystyle \\prod _ { i } \\biggl ( \\mathcal { N } \\bigl ( \\mu _ { i } , \\sigma _ { i } ^ { 2 } \\bigr ) * \\mathcal { U } \\bigl ( - { \\textstyle \\frac { 1 } { 2 } } , { \\textstyle \\frac { 1 } { 2 } } \\bigr ) \\biggr ) \\bigl ( \\tilde { y } _ { i } \\bigr ) } } } \\\\ { { \\mathrm { w i t h } \\ \\mu _ { i } , \\sigma _ { i } = f ( c _ { i } ^ { \\prime } , c _ { i } ^ { \\prime \\prime } ) , } } \\\\ { { c _ { i } ^ { \\prime } = E ^ { \\prime } \\bigl ( h _ { s } \\bigl ( \\hat { z } ; \\theta _ { h } \\bigr ) , i \\bigr ) , } } \\\\ { { c _ { i } ^ { \\prime \\prime } = E ^ { \\prime \\prime } \\bigl ( \\langle \\hat { y } \\rangle , i \\bigr ) , } } \\\\ { { \\hat { z } = Q ( z ) } } \\end{array}\n$$",
|
| 368 |
+
"text_format": "latex",
|
| 369 |
+
"bbox": [
|
| 370 |
+
325,
|
| 371 |
+
679,
|
| 372 |
+
671,
|
| 373 |
+
791
|
| 374 |
+
],
|
| 375 |
+
"page_idx": 4
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"type": "text",
|
| 379 |
+
"text": "In the case of $\\hat { z }$ , a simple entropy model is used. We assumed that the model follows zero-mean Gaussian distributions which have a trainable $\\sigma$ . Note that $\\hat { z }$ is regarded as side information and it contributes a very small amount of the total bit-rate, as described by Balle et al. (2018), and thus ´ we use this simpler version of the entropy model, rather than a more complex model, for end-to-end optimization over all parameters of the proposed method: ",
|
| 380 |
+
"bbox": [
|
| 381 |
+
173,
|
| 382 |
+
799,
|
| 383 |
+
826,
|
| 384 |
+
871
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 4
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "equation",
|
| 390 |
+
"img_path": "images/fcef899c45974be400a0bab3eb39cf9fe29dadd065630aa8da8e2d687ff22941.jpg",
|
| 391 |
+
"text": "$$\np _ { \\tilde { z } } ( \\tilde { z } ) = \\prod _ { j } \\Bigl ( \\mathcal { N } \\bigl ( 0 , \\sigma _ { j } ^ { 2 } \\bigr ) * \\mathcal { U } \\bigl ( - \\textstyle \\frac { 1 } { 2 } , \\frac { 1 } { 2 } \\bigr ) \\Bigr ) ( \\tilde { z } _ { j } )\n$$",
|
| 392 |
+
"text_format": "latex",
|
| 393 |
+
"bbox": [
|
| 394 |
+
343,
|
| 395 |
+
891,
|
| 396 |
+
622,
|
| 397 |
+
928
|
| 398 |
+
],
|
| 399 |
+
"page_idx": 4
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"type": "image",
|
| 403 |
+
"img_path": "images/6b597b00e569a802b4bbf4c715d6d688ed082f96708d4bdad36bdc133d4e00db.jpg",
|
| 404 |
+
"image_caption": [
|
| 405 |
+
"Figure 3: Encoder-decoder model of the proposed method. The left block represents the encoder side, whereas the right block represents the deocder side. The small icons between them represent the entropy-coded bitstreams. EC and ED represent entropy coding and entropy decoding, and U | Q represents the addition of uniform noise to $\\textbf { { y } }$ or a uniform quantization of $\\textbf { { y } }$ . Noisy representations are used only for training as inputs to the entropy models, and are illustrated with the dotted lines. "
|
| 406 |
+
],
|
| 407 |
+
"image_footnote": [],
|
| 408 |
+
"bbox": [
|
| 409 |
+
173,
|
| 410 |
+
99,
|
| 411 |
+
821,
|
| 412 |
+
347
|
| 413 |
+
],
|
| 414 |
+
"page_idx": 5
|
| 415 |
+
},
|
| 416 |
+
{
|
| 417 |
+
"type": "text",
|
| 418 |
+
"text": "Note that actual entropy coding or decoding processes are not necessarily required for training or encoding because the rate term is not the amount of real bits, but an estimation calculated from the entropy models, as mentioned previously. We calculate the distortion term using the mean squared error (MSE)1, assuming that $p _ { \\mathbf { \\hat { \\mathbf { \\theta } } } \\mathbf { \\hat { \\mathbf { x } } } | \\hat { \\mathbf { \\theta } } }$ follows a Gaussian distribution as a widely used distortion metric. ",
|
| 419 |
+
"bbox": [
|
| 420 |
+
174,
|
| 421 |
+
465,
|
| 422 |
+
825,
|
| 423 |
+
521
|
| 424 |
+
],
|
| 425 |
+
"page_idx": 5
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"type": "text",
|
| 429 |
+
"text": "3 ENCODER-DECODER MODEL ",
|
| 430 |
+
"text_level": 1,
|
| 431 |
+
"bbox": [
|
| 432 |
+
176,
|
| 433 |
+
545,
|
| 434 |
+
441,
|
| 435 |
+
560
|
| 436 |
+
],
|
| 437 |
+
"page_idx": 5
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"type": "text",
|
| 441 |
+
"text": "This section describes the basic structure of the proposed encoder-decoder model. On the encoder side, an input image is transformed into latent representations, quantized, and then entropy-coded using the trained entropy models. In contrast, the decoder first applies entropy decoding with the same entropy models used for the encoder, and reconstructs the image from the latent representations, as illustrated in figure 3. It is assumed that all parameters that appear in this section were already trained. The structure of the encoder-decoder model basically includes $\\scriptstyle { \\pmb { g } } _ { a }$ and $\\mathbf { \\nabla } _ { \\mathbf { { \\boldsymbol { g } } } _ { s } }$ in charge of the transform of $_ { \\textbf { \\em x } }$ into $\\textbf { { y } }$ and its inverse transform, respectively. The transformed $\\textbf { { y } }$ is uniformly quantized into $\\hat { y }$ by rounding. Note that, in the case of approaches based on the entropy models, unlike traditional codecs, tuning the quantization steps is usually unnecessary because the scales of the representations are optimized together through training. The other components between $\\scriptstyle { \\pmb { g } } _ { a }$ and $\\mathbf { \\nabla } _ { \\mathbf { { \\boldsymbol { g } } } _ { s } }$ carry out the role of entropy coding (or decoding) with the shared entropy models and underlying context preparation processes. More specifically, the entropy model estimates the distribution of each $\\hat { y } _ { i }$ individually, in which $\\mu _ { i }$ and $\\sigma _ { i }$ are estimated with the two types of given contexts, $\\pmb { c } _ { i } ^ { \\prime }$ and $ { c _ { i } ^ { \\prime \\prime } }$ . Among these contexts, $c ^ { \\prime }$ can be viewed as side information, which requires an additional bit allocation. To reduce the required bit-rate for carrying $c ^ { \\prime }$ , the latent representation $_ z$ , transformed from $\\hat { y }$ , is quantized and entropy-coded by its own entropy model, as specified in section 2.3. On the other hand, $ { \\boldsymbol { c } } _ { i } ^ { \\prime \\prime }$ is extracted from $\\langle \\hat { y } \\rangle$ , without any additional bit allocation. Note that $\\langle \\hat { y } \\rangle$ varies as the entropy coding or decoding progresses, but is always identical for processing the same $\\hat { y } _ { i }$ in both the encoder and decoder, as described in 2.3. The parameters of $h _ { s }$ and the entropy models are simply shared by both the encoder and the decoder. Note that the inputs to the entropy models during training are the noisy representations, as illustrated with the dotted line in figure 3, to allow the entropy model to approximate the probability mass functions of the discrete representations. ",
|
| 442 |
+
"bbox": [
|
| 443 |
+
173,
|
| 444 |
+
577,
|
| 445 |
+
825,
|
| 446 |
+
882
|
| 447 |
+
],
|
| 448 |
+
"page_idx": 5
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"type": "image",
|
| 452 |
+
"img_path": "images/7c54fa6307bcb8e20b007b9479ec8ee54178f761d5cb621d014f8c013f93bc6a.jpg",
|
| 453 |
+
"image_caption": [
|
| 454 |
+
"Figure 4: Implementation of the proposed method. We basically use the convolutional autoencoder structure, and the distribution estimator $f$ is also implemented using convolutional neural networks. The notations of the convolutional layer follow Balle et al. (2018): the number of filters ´ $\\times$ filter height $\\times$ filter width / the downscale or upscale factor, where $\\uparrow$ and $\\downarrow$ denote the up and downscaling, respectively. For up or downscaling, we use the transposed convolution. For the networks, input images are normalized into a scale between $^ { - 1 }$ and 1. "
|
| 455 |
+
],
|
| 456 |
+
"image_footnote": [],
|
| 457 |
+
"bbox": [
|
| 458 |
+
171,
|
| 459 |
+
99,
|
| 460 |
+
807,
|
| 461 |
+
361
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 6
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "4 EXPERIMENTS ",
|
| 468 |
+
"text_level": 1,
|
| 469 |
+
"bbox": [
|
| 470 |
+
176,
|
| 471 |
+
491,
|
| 472 |
+
326,
|
| 473 |
+
507
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 6
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "4.1 IMPLEMENTATION ",
|
| 480 |
+
"text_level": 1,
|
| 481 |
+
"bbox": [
|
| 482 |
+
174,
|
| 483 |
+
523,
|
| 484 |
+
341,
|
| 485 |
+
537
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 6
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "We use a convolutional neural networks to implement the analysis transform and the synthesis transform functions, $g _ { a } , g _ { s }$ , $h _ { a }$ , and $h _ { s }$ . The structures of the implemented networks follow the same structures of Balle et al. (2018), except that we use the exponentiation operator instead of an abso- ´ lute operator at the end of $h _ { s }$ . Based on Balle et al. (2018)’s structure, we added the components to ´ estimate the distribution of each $\\hat { y } _ { i }$ , as shown in figure 4. Herein, we represent a uniform quantization (round) as $\\because Q , \\mathrm { { } }$ entropy coding as ”EC,” and entropy decoding as ”ED.” The distribution estimator is denoted as $f$ , and is also implemented using the convolutional layers which takes channel-wise concatenated $ { \\mathbf { c } } _ { i } ^ { \\prime }$ and ${ c } _ { i } ^ { \\prime \\prime }$ as inputs and provides estimated $\\mu _ { i }$ and $\\sigma _ { i }$ as results. Note that the same $\\mathbf { c } _ { i } ^ { \\prime }$ and ${ c } _ { i } ^ { \\prime \\prime }$ are shared for all ${ \\hat { y } } _ { i } \\mathbf { s }$ located at the same spatial position. In other words, we let $E ^ { \\prime }$ extract all spatially adjacent elements from $c ^ { \\prime }$ across the channels to retrieve $ { \\boldsymbol { c } } _ { i } ^ { \\prime }$ and likewise let $E ^ { \\prime \\prime }$ extract all adjacent known elements from $\\langle \\hat { y } \\rangle$ for $ { \\boldsymbol { c } } _ { i } ^ { \\prime \\prime }$ . This could have the effect of capturing the remaining correlations among the different channels. In short, when $M$ is the total number of channels of $\\textbf { { y } }$ , we let $f$ estimate all $M$ distributions of ${ \\hat { y } } _ { i } \\mathbf { s }$ , which are located at the same spatial position, using only a single step, thereby allowing the total number of estimations to be reduced. Furthermore, the parameters of $f$ are shared for all spatial positions of $\\hat { y }$ , and thus only one trained $f$ per $\\lambda$ is necessary to process any sized images. In the case of training, however, collecting the results from the all spatial positions to calculate the rate term becomes a significant burden, despite the simplifications mentioned above. To reduce this burden, we designate a certain number (32 and 16 for the base model and the hybrid model, respectively) of random spatial points as the representatives per training step, to calculate the rate term easily. Note that we let these random points contribute solely to the rate term, whereas the distortion is still calculated over all of the images. ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
173,
|
| 494 |
+
550,
|
| 495 |
+
825,
|
| 496 |
+
840
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 6
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "Because $\\textbf { { y } }$ is a three-dimensional array in our implementation, index $i$ can be represented as three indexes, $k , l ,$ and $m$ , representing the horizontal index, the vertical index, and the channel index, respectively. When the current position is given as $( k , l , m )$ , $E ^ { \\prime }$ extracts $\\pmb { c } _ { [ k - 2 . . . k + 1 ] , [ l - 3 . . . l ] , [ 1 . . . M ] } ^ { \\prime }$ as $\\mathbf { c } _ { i } ^ { \\prime }$ , and $E ^ { \\prime \\prime }$ extracts $\\left. \\hat { \\pmb y } \\right. _ { [ k - 2 . . . k + 1 ] , [ l - 3 . . . l ] , [ 1 . . . M ] }$ as $ { c _ { i } ^ { \\prime \\prime } }$ , when $\\langle \\hat { y } \\rangle$ represents the known area of $\\hat { y }$ . Note that we filled in the unknown area of $\\langle \\hat { y } \\rangle$ with zeros, to maintain the dimensions of $\\langle \\hat { y } \\rangle$ identical to those of $\\hat { y }$ . Consequently, $\\pmb { c } _ { i \\ [ 3 . . . 4 ] , 4 , [ 1 . . . M ] } ^ { \\prime \\prime }$ are always padded with zeros. To keep the dimensions of the estimation results to the inputs, the marginal areas of $c ^ { \\prime }$ and $\\langle \\hat { y } \\rangle$ are also set to zeros. Note that when training or encoding, $\\pmb { c } _ { i } ^ { \\prime \\prime }$ can be extracted using simple $4 { \\times } 4 { \\times } M$ windows and binary masks, thereby enabling parallel processing, whereas a sequential reconstruction is inevitable for decoding. ",
|
| 503 |
+
"bbox": [
|
| 504 |
+
173,
|
| 505 |
+
848,
|
| 506 |
+
825,
|
| 507 |
+
924
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 6
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "",
|
| 514 |
+
"bbox": [
|
| 515 |
+
174,
|
| 516 |
+
103,
|
| 517 |
+
825,
|
| 518 |
+
176
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 7
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "text",
|
| 524 |
+
"text": "Another implementation technique used to reduce the implementation cost is combining the lightweight entropy model with the proposed model. The lightweight entropy model assumes that the representations follow a zero-mean Gaussian model with the estimated standard deviations, which is very similar with Balle et al. (2018)’s approach. We utilize this hybrid approach for the top ´ four cases, in bit-rate descending order, of the nine $\\lambda$ configurations, based on the assumption that for the higher-quality compression, the number of sparse representations having a very low spatial dependency increases, and thus a direct scale estimation provides sufficient performance for these added representations. For implementation, we separate the latent representation $\\textbf { { y } }$ into two parts, $\\mathbf { \\pmb { y _ { 1 } } }$ and $\\mathbf { \\pmb { y } _ { 2 } }$ , and two different entropy models are applied for them. Note that the parameters of $g _ { a }$ , $g _ { s }$ , $h _ { a }$ , and $h _ { s }$ are shared, and all parameters are still trained together. The detailed structure and experimental settings are described in appendix 6.1. ",
|
| 525 |
+
"bbox": [
|
| 526 |
+
174,
|
| 527 |
+
183,
|
| 528 |
+
825,
|
| 529 |
+
337
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 7
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "The number of parameters $N$ and $M$ are set to 128 and 192, respectively, for the five $\\lambda$ configurations for lower bit-rates, whereas 2-3 times more parameters, described in appendix 6.1, are used for the four $\\lambda$ configurations for higher bit-rates. Tensorflow and Python were used to setup the overall network structures, and for the actual entropy coding and decoding using the estimated model parameters, we implemented an arithmetic coder and decoder, for which the source code of the ”Reference arithmetic coding” project2 was used as the base code. ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
174,
|
| 538 |
+
343,
|
| 539 |
+
825,
|
| 540 |
+
426
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 7
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "4.2 EXPERIMENTAL ENVIRONMENTS ",
|
| 547 |
+
"text_level": 1,
|
| 548 |
+
"bbox": [
|
| 549 |
+
178,
|
| 550 |
+
445,
|
| 551 |
+
441,
|
| 552 |
+
458
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 7
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "We optimized the networks using two different types of distortion terms, one with MSE and the other with MS-SSIM. For each distortion type, the average bits per pixel (BPP) and the distortion, PSNR and MS-SSIM, over the test set are measured for each of the nine $\\lambda$ configurations. Therefore, a total of 18 networks are trained and evaluated within the experimental environments, as explained below: ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
470,
|
| 562 |
+
825,
|
| 563 |
+
540
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 7
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "• For training, we used $2 5 6 \\times 2 5 6$ patches extracted from 32,420 randomly selected YFCC100m (Thomee et al. (2016)) images. We extracted one patch per image, and the extracted regions were randomly chosen. Each batch consists of eight images, and 1M iterations of the training steps were conducted, applying the ADAM optimizer (Kingma & Ba (2015)). We set the initial learning rate to $5 \\times 1 0 ^ { - } 5$ , and reduced the rate by half every 50,000 iterations for the last 200,000 iterations. Note that, in the case of the four $\\lambda$ configurations for high bpp, in which the hybrid entropy model is used, 1M iterations of pre-training steps were conducted using the learning rate of $1 \\times 1 0 ^ { - } 5$ . Although we previously indicated that the total loss is the sum of $R$ and $\\lambda D$ for a simple explanation, we tuned the balancing parameter $\\lambda$ in a similar way as Theis et al. (2017), as indicated in equation (6). We used the $\\lambda$ parameters ranging from 0.01 to 0.5. ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
215,
|
| 572 |
+
553,
|
| 573 |
+
825,
|
| 574 |
+
707
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 7
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "equation",
|
| 580 |
+
"img_path": "images/59d1652035d510bb088a68d52d40e38c0739064d4d72c5fe70240dfd4b801a3b.jpg",
|
| 581 |
+
"text": "$$\n\\mathcal { L } = \\frac { \\lambda } { W _ { y } \\cdot H _ { y } \\cdot 2 5 6 } R + \\frac { 1 - \\lambda } { 1 0 0 0 } D .\n$$",
|
| 582 |
+
"text_format": "latex",
|
| 583 |
+
"bbox": [
|
| 584 |
+
398,
|
| 585 |
+
713,
|
| 586 |
+
625,
|
| 587 |
+
747
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 7
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "• For the evaluation, we measured the average BPP and average quality of the reconstructed images in terms of the PSNR and MS-SSIM over 24 PNG images of the Kodak PhotoCD image dataset (Kodak, 1993). Note that we represent the MS-SSIM results in the form of decibels, as in Balle et al. (2018), to increase the discrimination.´ ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
217,
|
| 596 |
+
756,
|
| 597 |
+
825,
|
| 598 |
+
813
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 7
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "4.3 EXPERIMENTAL RESULTS ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
174,
|
| 608 |
+
830,
|
| 609 |
+
390,
|
| 610 |
+
844
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 7
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "We compared the test results with other previous methods, including traditional codecs such as BPG and JPEG2000, as well as previous ANN-based approaches such as Theis et al. (2017) and Balle´ et al. (2018). Because two different quality metrics are used, the results are presented with two separate plots. As shown in figure 5, our methods outperform all other previous methods in both metrics. In particular, our models not only outperform Balle et al. (2018)’s method, which is believed ´ to be a state-of-the-art ANN-based approach, but we also obtain better results than the widely used conventional image codec, BPG. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
176,
|
| 619 |
+
857,
|
| 620 |
+
821,
|
| 621 |
+
886
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 7
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "image",
|
| 627 |
+
"img_path": "images/f8a3b96ef70c7b5691e918165aef6fead9b832dc0412c6876f9f37b9f74769da.jpg",
|
| 628 |
+
"image_caption": [
|
| 629 |
+
"Figure 5: Rate–distortion curves of the proposed method and competitive methods. The top plot represents the PSNR values as a result of changes in bpp, whereas the bottom plot shows MS-SSIM values in the same manner. Note that MS-SSIM values are converted into decibels $( - 1 0 \\log _ { 1 0 } ( 1 -$ MS-SSIM)) for differentiating the quality levels, in the same manner as in Balle et al. (2018). ´ "
|
| 630 |
+
],
|
| 631 |
+
"image_footnote": [],
|
| 632 |
+
"bbox": [
|
| 633 |
+
183,
|
| 634 |
+
104,
|
| 635 |
+
807,
|
| 636 |
+
667
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 8
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "",
|
| 643 |
+
"bbox": [
|
| 644 |
+
174,
|
| 645 |
+
776,
|
| 646 |
+
825,
|
| 647 |
+
847
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 8
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "More specifically, the compression gains in terms of the BD-rate of PSNR over JPEG2000, Balle´ et al. (2018)’s approach (MSE-optimized), and BPG are $3 4 . 0 8 \\%$ , $1 1 . 9 7 \\%$ , and $6 . 8 5 \\%$ , respectively. In the case of MS-SSIM, we found wider gaps of $6 8 . 8 2 \\%$ , $1 3 . 9 3 \\%$ , and $4 9 . 6 8 \\%$ , respectively. Note that we achieved significant gains over traditional codecs in terms of MS-SSIM, although this might be because the dominant target metric of the traditional codec developments have been the PSNR. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
854,
|
| 657 |
+
825,
|
| 658 |
+
924
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 8
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "In other words, they can be viewed as a type of MSE-optimized codec. Even when setting aside the case of MS-SSIM, our results can be viewed as one concrete evidence supporting that ANN-based image compression can outperform the existing traditional image codecs in terms of the compression performance. Supplemental image samples are provided in appendix 6.3. ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
174,
|
| 667 |
+
103,
|
| 668 |
+
823,
|
| 669 |
+
160
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 9
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "5 DISCUSSION ",
|
| 676 |
+
"text_level": 1,
|
| 677 |
+
"bbox": [
|
| 678 |
+
176,
|
| 679 |
+
181,
|
| 680 |
+
310,
|
| 681 |
+
198
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 9
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "text",
|
| 687 |
+
"text": "Based on previous ANN-based image compression approaches utilizing entropy models (Balle et al., ´ 2017; Theis et al., 2017; Balle et al., 2018), we extended the entropy model to exploit two different ´ types of contexts. These contexts allow the entropy models to more accurately estimate the distribution of the representations with a more generalized form having both mean and standard deviation parameters. Based on the evaluation results, we showed the superiority of the proposed method. The contexts we utilized are divided into two types. One is a sort of free context, containing the part of the latent variables known to both the encoder and the decoder, whereas the other is the context, which requires additional bit allocation. Because the former is a generally used context in a variety of codecs, and the latter was already verified to help compression using Balle et al. (2018)’s approach, ´ our contributions are not the contexts themselves, but can be viewed as providing a framework of entropy models utilizing these contexts. ",
|
| 688 |
+
"bbox": [
|
| 689 |
+
174,
|
| 690 |
+
214,
|
| 691 |
+
825,
|
| 692 |
+
367
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 9
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "Although the experiments showed the best results in the ANN-based image compression domain, we still have various studies to conduct to further improve the performance. One possible way is generalizing the distribution models underlying the entropy model. Although we enhanced the performance by generalizing the previous entropy models, and have achieved quite acceptable results, the Gaussian-based entropy models apparently have a limited expression power. If more elaborate models, such as the non-parametric models of Balle et al. (2018) or Oord et al. (2016), are combined ´ with the context-adaptivity proposed in this paper, they would provide better results by reducing the mismatch between the actual distributions and the approximation models. Another possible way is improving the level of the contexts. Currently, our methods only use low-level representations within very limited adjacent areas. However, if the sufficient capacity of the networks and higher-level contexts are given, a much more accurate estimation could be possible. For instance, if an entropy model understands the structures of human faces, in that they usually have two eyes, between which a symmetry exists, the entropy model could approximate the distributions more accurately when encoding the second eye of a human face by referencing the shape and position of the first given eye. As is widely known, various generative models (Goodfellow et al., 2014; Radford et al., 2016; Zhao et al., 2017) learn the distribution $p ( { \\pmb x } )$ of the images within a specific domain, such as human faces or bedrooms. In addition, various in-painting methods (Pathak et al., 2016; Yang et al., 2017; Yeh et al., 2017) learn the conditional distribution $p ( \\pmb { x } \\mid c o n t e x t )$ when the viewed areas are given as context. Although these methods have not been developed for image compression, hopefully such high-level understandings can be utilized sooner or later. Furthermore, the contexts carried using side information can also be extended to some high-level information such as segmentation maps or any other information that helps with compression. Segmentation maps, for instance, may be able to help the entropy models estimate the distribution of a representation discriminatively according to the segment class the representation belongs to. ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
173,
|
| 701 |
+
375,
|
| 702 |
+
825,
|
| 703 |
+
707
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 9
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "text",
|
| 709 |
+
"text": "Traditional codecs have a long development history, and a vast number of hand-crafted heuristics have been stacked thus far, not only for enhancing compression performance, but also for compromising computational complexities. Therefore, ANN-based image compression approaches may not provide satisfactory solutions as of yet, when taking their high complexity into account. However, considering its much shorter history, we believe that ANN-based image compression has much more potential and possibility in terms of future extension. Although we remain a long way from completion, we hope the proposed context-adaptive entropy model will provide an useful contribution to this area. ",
|
| 710 |
+
"bbox": [
|
| 711 |
+
174,
|
| 712 |
+
714,
|
| 713 |
+
825,
|
| 714 |
+
825
|
| 715 |
+
],
|
| 716 |
+
"page_idx": 9
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"type": "text",
|
| 720 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 721 |
+
"text_level": 1,
|
| 722 |
+
"bbox": [
|
| 723 |
+
176,
|
| 724 |
+
843,
|
| 725 |
+
326,
|
| 726 |
+
857
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 9
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "text",
|
| 732 |
+
"text": "This work was supported by Institute for Information & communications Technology Promotion(IITP) grant funded by the Korea government (MSIT) (No. 2017-0-00072, Development of Audio/Video Coding and Light Field Media Fundamental Technologies for Ultra Realistic Teramedia). ",
|
| 733 |
+
"bbox": [
|
| 734 |
+
176,
|
| 735 |
+
867,
|
| 736 |
+
823,
|
| 737 |
+
922
|
| 738 |
+
],
|
| 739 |
+
"page_idx": 9
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"type": "text",
|
| 743 |
+
"text": "REFERENCES ",
|
| 744 |
+
"text_level": 1,
|
| 745 |
+
"bbox": [
|
| 746 |
+
176,
|
| 747 |
+
102,
|
| 748 |
+
287,
|
| 749 |
+
117
|
| 750 |
+
],
|
| 751 |
+
"page_idx": 10
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"type": "text",
|
| 755 |
+
"text": "Eirikur Agustsson, Michael Tschannen, Fabian Mentzer, Radu Timofte, and Luc Van Gool. Generative adversarial networks for extreme learned image compression. arXiv preprint arXiv:1804.02958, 2018. URL http://arxiv.org/abs/1804.02958. ",
|
| 756 |
+
"bbox": [
|
| 757 |
+
176,
|
| 758 |
+
126,
|
| 759 |
+
821,
|
| 760 |
+
169
|
| 761 |
+
],
|
| 762 |
+
"page_idx": 10
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"type": "text",
|
| 766 |
+
"text": "Johannes Balle, Valero Laparra, and Eero P. Simoncelli. End-to-end optimized image compression. ´ In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/ 1611.01704. ",
|
| 767 |
+
"bbox": [
|
| 768 |
+
173,
|
| 769 |
+
179,
|
| 770 |
+
823,
|
| 771 |
+
222
|
| 772 |
+
],
|
| 773 |
+
"page_idx": 10
|
| 774 |
+
},
|
| 775 |
+
{
|
| 776 |
+
"type": "text",
|
| 777 |
+
"text": "Johannes Balle, David Minnen, Saurabh Singh, Sung Jin Hwang, and Nick Johnston. Variational ´ image compression with a scale hyperprior. In the 6th Int. Conf. on Learning Representations, 2018. URL http://arxiv.org/abs/1802.01436. ",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
232,
|
| 781 |
+
825,
|
| 782 |
+
275
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 10
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "text",
|
| 788 |
+
"text": "Fabrice Bellard. Bpg image format, 2014. URL http://bellard.org/bpg/. ",
|
| 789 |
+
"bbox": [
|
| 790 |
+
173,
|
| 791 |
+
285,
|
| 792 |
+
722,
|
| 793 |
+
301
|
| 794 |
+
],
|
| 795 |
+
"page_idx": 10
|
| 796 |
+
},
|
| 797 |
+
{
|
| 798 |
+
"type": "text",
|
| 799 |
+
"text": "Chao Dong, Yubin Deng, Chen Change Loy, and Xiaoou Tang Tang. Compression artifacts reduction by a deep convolutional network. In IEEE International Conference on Computer Vision (ICCV), 2015. URL http://arxiv.org/abs/1504.06993. ",
|
| 800 |
+
"bbox": [
|
| 801 |
+
173,
|
| 802 |
+
310,
|
| 803 |
+
825,
|
| 804 |
+
354
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 10
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 27, pp. 2672–2680. Curran Associates, Inc., 2014. URL http://papers. nips.cc/paper/5423-generative-adversarial-nets.pdf. ",
|
| 811 |
+
"bbox": [
|
| 812 |
+
173,
|
| 813 |
+
363,
|
| 814 |
+
825,
|
| 815 |
+
434
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 10
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "ISO/IEC 23008-2, ITU-T H.265. Information technology – high efficiency coding and media delivery in heterogeneous environments – part 2: High efficiency video coding. Standard, ISO/IEC, 2013. ",
|
| 822 |
+
"bbox": [
|
| 823 |
+
173,
|
| 824 |
+
444,
|
| 825 |
+
825,
|
| 826 |
+
487
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 10
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Nick Johnston, Damien Vincent, David Minnen, Michele Covell, Saurabh Singh, Troy Chinen, Sung Jin Hwang, Joel Shor, and George Toderici. Improved lossy image compression with priming and spatially adaptive bit rates for recurrent networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
497,
|
| 836 |
+
825,
|
| 837 |
+
554
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 10
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In the 3rd Int. Conf. on Learning Representations, 2015. URL http://arxiv.org/abs/1412.6980. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
171,
|
| 846 |
+
564,
|
| 847 |
+
821,
|
| 848 |
+
594
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 10
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. In the 2nd Int. Conf. on Learning Representations, 2014. URL http://arxiv.org/abs/1312.6114. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
171,
|
| 857 |
+
604,
|
| 858 |
+
823,
|
| 859 |
+
633
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 10
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "Eastman Kodak. Kodak lossless true color image suite (photocd pcd0992), 1993. URL http: //r0k.us/graphics/kodak/. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
169,
|
| 868 |
+
643,
|
| 869 |
+
821,
|
| 870 |
+
672
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 10
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Aaron van den Oord, Nal Kalchbrenner, and Koray Kavukcuoglu. Pixel recurrent neural networks. In the 33 rd International Conference on Machine Learning, 2016. URL http://arxiv. org/abs/1601.06759. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
173,
|
| 879 |
+
683,
|
| 880 |
+
825,
|
| 881 |
+
726
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 10
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Deepak Pathak, Philipp Krahenb ¨ uhl, Jeff Donahue, Trevor Darrell, and Alexei A. Efros. Context ¨ encoders: Feature learning by inpainting. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
173,
|
| 890 |
+
736,
|
| 891 |
+
825,
|
| 892 |
+
779
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 10
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Alec Radford, Luke Metz, and Soumith Chintala. Unsupervised representation learning with deep convolutional generative adversarial networks. In the 4th Int. Conf. on Learning Representations, 2016. URL http://arxiv.org/abs/1511.06434. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
789,
|
| 902 |
+
825,
|
| 903 |
+
832
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 10
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Danilo Jimenez Rezende, Shakir Mohamed, and Daan Wierstra. Stochastic backpropagation and approximate inference in deep generative models. In the 31st Int. Conf. on Machine Learning, 2014. URL http://arxiv.org/abs/1401.4082. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
176,
|
| 912 |
+
842,
|
| 913 |
+
823,
|
| 914 |
+
885
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 10
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Oren Rippel and Lubomir Bourdev. Real-time adaptive image compression. In International Conference on Machine Learning, 2017. URL http://arxiv.org/abs/1705.05823. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
176,
|
| 923 |
+
895,
|
| 924 |
+
821,
|
| 925 |
+
924
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 10
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Shibani Santurkar, David M. Budden, and Nir Shavit. Generative compression. In The 33rd Picture Coding Symposium, 2018. URL http://arxiv.org/abs/1703.01467. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
169,
|
| 934 |
+
103,
|
| 935 |
+
823,
|
| 936 |
+
133
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 11
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Pavel Svoboda, Michal Hradis, David Barina, and Pavel Zemc´ık. Compression artifacts removal using convolutional neural networks. In WSCG 24th International Conference on Computer Graphics, Visualization and Computer Vision, 2016. URL http://arxiv.org/abs/1605. 00366. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
173,
|
| 945 |
+
141,
|
| 946 |
+
825,
|
| 947 |
+
196
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 11
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Lucas Theis, Wenzhe Shi, Andrew Cunningham, and Ferenc Huszar. Lossy image compression ´ with compressive autoencoders. In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/1703.00395. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
207,
|
| 957 |
+
823,
|
| 958 |
+
250
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 11
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Bart Thomee, David A. Shamma, Gerald Friedland, Benjamin Elizalde, Karl Ni, Douglas Poland, Damian Borth, and Li-Jia Li. The new data in multimedia research. Communications of the ACM, 59(2):64–73, 2016. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
174,
|
| 967 |
+
257,
|
| 968 |
+
825,
|
| 969 |
+
301
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 11
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "George Toderici, Damien Vincent, Nick Johnston, Sung Jin Hwang, David Minnen, Joel Shor, and Michele Covell. Full resolution image compression with recurrent neural networks. In IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), 2017. doi: 10.1109/CVPR.2017.577. URL http://arxiv.org/abs/1608.05148. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
173,
|
| 978 |
+
309,
|
| 979 |
+
825,
|
| 980 |
+
366
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 11
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Zhou Wang, Eero P. Simoncelli, and Alan C. Bovik. Multiscale structural similarity for image quality assessment. In The Thrity-Seventh Asilomar Conference on Signals, Systems & Computers, 2003. doi: 10.1109/ACSSC.2003.1292216. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
173,
|
| 989 |
+
375,
|
| 990 |
+
823,
|
| 991 |
+
417
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 11
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Chao Yang, Xin Lu, Zhe Lin, Eli Shechtman, Oliver Wang, and Hao Li. High-resolution image inpainting using multi-scale neural patch synthesis. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
426,
|
| 1001 |
+
823,
|
| 1002 |
+
469
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 11
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Raymond A. Yeh, Chen Chen, Teck-Yian Lim, Alexander G. Schwing, Mark Hasegawa-Johnson, and Minh N. Do. Semantic image inpainting with deep generative models. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6882–6890. IEEE Computer Society, 2017. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
173,
|
| 1011 |
+
478,
|
| 1012 |
+
825,
|
| 1013 |
+
535
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 11
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "Kai Zhang, Wangmeng Zuo, Yunjin Chen, Deyu Meng, and Lei Zhang. Beyond a gaussian denoiser: Residual learning of deep CNN for image denoising. IEEE Transactions on Image Processing, 26(7):3142–3155, 2017. doi: 10.1109/TIP.2017.2662206. URL http://arxiv.org/abs/ 1608.03981. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
174,
|
| 1022 |
+
544,
|
| 1023 |
+
825,
|
| 1024 |
+
599
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 11
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Junbo Jake Zhao, Michael Mathieu, and Yann LeCun. Energy-based generative adversarial network. ¨ In the 5th Int. Conf. on Learning Representations, 2017. URL http://arxiv.org/abs/ 1609.03126. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
173,
|
| 1033 |
+
609,
|
| 1034 |
+
825,
|
| 1035 |
+
651
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 11
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "image",
|
| 1041 |
+
"img_path": "images/4c108c0eb986ca11778b67a98a0735890f479ebfe9ba3409b68d2a9dfb198e82.jpg",
|
| 1042 |
+
"image_caption": [
|
| 1043 |
+
"Figure 6: The structure of the hybrid network for higher bit-rate environments. The same notations as in the figure 4 are used. The representation $\\textbf { { y } }$ is divided into two parts and quantized. One of the resulting parts, $\\hat { y } _ { 1 }$ , is encoded using the proposed model, whereas the other, $\\hat { y } _ { 2 }$ , is encoded using a simpler model in which only the standard deviations are estimated using side information. The detailed structure of the proposed model is illustrated in figure 4. All concatenation and split operations are performed in a channel-wise manner. "
|
| 1044 |
+
],
|
| 1045 |
+
"image_footnote": [],
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
171,
|
| 1048 |
+
98,
|
| 1049 |
+
812,
|
| 1050 |
+
262
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 12
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "6 APPENDIX ",
|
| 1057 |
+
"text_level": 1,
|
| 1058 |
+
"bbox": [
|
| 1059 |
+
174,
|
| 1060 |
+
412,
|
| 1061 |
+
294,
|
| 1062 |
+
429
|
| 1063 |
+
],
|
| 1064 |
+
"page_idx": 12
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"type": "text",
|
| 1068 |
+
"text": "6.1 HYBRID NETWORK FOR HIGHER BIT-RATE COMPRESSIONS ",
|
| 1069 |
+
"text_level": 1,
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
174,
|
| 1072 |
+
460,
|
| 1073 |
+
617,
|
| 1074 |
+
473
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 12
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "We combined the lightweight entropy model with the context-adaptive entropy model to reduce the implementation costs for high-bpp configurations. The lightweight model exploits the scale (standard deviation) estimation, assuming that the PMF approximations of the quantized representations follow zero-mean Gaussian distributions convolved with a standard uniform distribution. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
174,
|
| 1083 |
+
494,
|
| 1084 |
+
825,
|
| 1085 |
+
551
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 12
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "Figure 6 illustrates the network structure of this hybrid network. The representation $\\textbf { { y } }$ is split channel-wise into two parts, $\\mathbf { \\pmb { y _ { 1 } } }$ and $\\mathbf { \\nabla } _ { \\mathbf { \\boldsymbol { y } } _ { 2 } }$ , which have $M _ { 1 }$ and $M _ { 2 }$ channels, respectively, and is then quantized. Here, $\\hat { y } _ { 1 }$ is entropy coded using the proposed entropy model, whereas $\\hat { y } _ { 2 }$ is coded with the lightweight entropy model. The standard deviations of $\\hat { y } _ { 2 }$ are estimated using $h _ { a }$ and $h _ { s }$ . Unlike the context-adaptive entropy model, which uses the results of $h _ { a }$ $( \\hat { c ^ { \\prime } } )$ as the input source to the estimator $f$ , the lightweight entropy model retrieves the estimated standard deviations from $h _ { a }$ directly. Note that $h _ { a }$ takes the concatenated $\\hat { y } _ { 1 }$ and $\\hat { y } _ { 2 }$ as input, and $h _ { s }$ generates $\\hat { c ^ { \\prime } }$ as well as $\\pmb { \\sigma } _ { 2 }$ , at the same time. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
173,
|
| 1094 |
+
558,
|
| 1095 |
+
825,
|
| 1096 |
+
672
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 12
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "The total loss function also consists of the rate and distortion terms, although the rate is divided into three parts, each of which is for $\\hat { y } _ { 1 } , \\hat { y } _ { 2 }$ , and $\\hat { z }$ , respectively. The distortion term is the same as before, but note that $\\hat { y }$ is the channel-wise concatenated representation of $\\hat { y } _ { 1 }$ and $\\hat { y } _ { 2 }$ : ",
|
| 1103 |
+
"bbox": [
|
| 1104 |
+
176,
|
| 1105 |
+
679,
|
| 1106 |
+
825,
|
| 1107 |
+
723
|
| 1108 |
+
],
|
| 1109 |
+
"page_idx": 12
|
| 1110 |
+
},
|
| 1111 |
+
{
|
| 1112 |
+
"type": "equation",
|
| 1113 |
+
"img_path": "images/d7c6b01fe37e584d34977be9877ff778298fb961d2dd6a7c531c61b1106924f0.jpg",
|
| 1114 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } = R + \\lambda D } \\\\ & { \\mathrm { w i t h } \\ R = \\mathbb { E } _ { { \\mathbf { x } } \\sim p _ { \\mathbf { x } } } \\mathbb { E } _ { \\mathcal { \\tilde { I } } _ { 1 } , \\tilde { y _ { 2 } } , \\tilde { z } \\sim q } \\Big [ - \\log p _ { \\tilde { y _ { 1 } } \\mid \\hat { z } } ( \\tilde { y _ { 1 } } \\mid \\hat { z } ) - \\log p _ { \\tilde { y _ { 2 } } \\mid \\hat { z } } ( \\tilde { y _ { 2 } } \\mid \\hat { z } ) - \\log p _ { \\tilde { z } } ( \\tilde { z } ) \\Big ] , } \\\\ & { \\qquad D = \\mathbb { E } _ { \\mathbf { x } \\sim p _ { \\mathbf { x } } } \\Big [ - \\log p _ { \\mathbf { x } \\mid \\hat { y } } ( \\boldsymbol { x } \\mid \\hat { y } ) \\big ] } \\end{array}\n$$",
|
| 1115 |
+
"text_format": "latex",
|
| 1116 |
+
"bbox": [
|
| 1117 |
+
212,
|
| 1118 |
+
770,
|
| 1119 |
+
781,
|
| 1120 |
+
847
|
| 1121 |
+
],
|
| 1122 |
+
"page_idx": 12
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"type": "text",
|
| 1126 |
+
"text": "Here, the noisy representations of ${ \\tilde { y } } _ { 1 } , { \\tilde { y } } _ { 2 }$ , and $\\tilde { z }$ follow a standard uniform distribution, the mean values of which are ${ \\bf { y 1 } } , ~ { \\bf { y 2 } }$ , and $_ { z }$ , respectively. In addition, $\\mathbf { \\pmb { y _ { 1 } } }$ and $\\mathbf { \\nabla } _ { \\mathbf { \\boldsymbol { y } } _ { 2 } }$ are channel-wise split representations from $\\textbf { { y } }$ , the results of the transform $g _ { a }$ , and have $M _ { 1 }$ and $M _ { 2 }$ channels, respectively: ",
|
| 1127 |
+
"bbox": [
|
| 1128 |
+
176,
|
| 1129 |
+
881,
|
| 1130 |
+
825,
|
| 1131 |
+
924
|
| 1132 |
+
],
|
| 1133 |
+
"page_idx": 12
|
| 1134 |
+
},
|
| 1135 |
+
{
|
| 1136 |
+
"type": "equation",
|
| 1137 |
+
"img_path": "images/29315c8c053b300ccd04551c21656c159a0073c0b4b2d3450ce58815de2642e0.jpg",
|
| 1138 |
+
"text": "$$\n\\begin{array} { l c l } { \\iota ( \\tilde { y } _ { 1 } , \\tilde { y } _ { 2 } , \\tilde { z } \\mid x , \\phi _ { g } , \\phi _ { h } ) } & { = } & { \\displaystyle \\prod _ { i } U \\big ( \\tilde { y } _ { 1 i } \\mid y _ { 1 i } - \\frac { 1 } { 2 } , y _ { 1 i } + \\frac { 1 } { 2 } \\big ) \\cdot } \\\\ & & { \\displaystyle \\prod _ { j } U \\big ( \\tilde { y } _ { 2 j } \\mid y _ { 2 j } - \\frac { 1 } { 2 } , y _ { 2 j } + \\frac { 1 } { 2 } \\big ) \\cdot } \\\\ & & { \\displaystyle \\prod _ { k } U \\big ( \\tilde { z } _ { k } \\mid z _ { k } - \\frac { 1 } { 2 } , z _ { k } + \\frac { 1 } { 2 } \\big ) } \\\\ & & { \\mathrm { w i t h } ~ y _ { 1 } , y _ { 2 } = S \\big ( g _ { a } ( x ; \\phi _ { g } ) \\big ) , \\hat { y } = Q ( y _ { 1 } ) \\oplus Q ( y _ { 2 } ) , z = h _ { a } ( \\hat { y } ; \\phi _ { h } ) . } \\end{array}\n$$",
|
| 1139 |
+
"text_format": "latex",
|
| 1140 |
+
"bbox": [
|
| 1141 |
+
181,
|
| 1142 |
+
117,
|
| 1143 |
+
826,
|
| 1144 |
+
243
|
| 1145 |
+
],
|
| 1146 |
+
"page_idx": 13
|
| 1147 |
+
},
|
| 1148 |
+
{
|
| 1149 |
+
"type": "text",
|
| 1150 |
+
"text": "The rate term for $\\hat { y } _ { 1 }$ is the same model as that of equation (4). Note that $\\hat { \\pmb { \\sigma _ { 2 } } }$ does not contribute here, but does contribute to the model for $\\hat { y } _ { 2 }$ : ",
|
| 1151 |
+
"bbox": [
|
| 1152 |
+
171,
|
| 1153 |
+
252,
|
| 1154 |
+
823,
|
| 1155 |
+
282
|
| 1156 |
+
],
|
| 1157 |
+
"page_idx": 13
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"type": "equation",
|
| 1161 |
+
"img_path": "images/6e6b632c7ba3f439c65684e56ff5c855325172ceaa5103beb14a8422b4fbf758.jpg",
|
| 1162 |
+
"text": "$$\n\\begin{array} { c } { \\displaystyle p _ { \\tilde { y } _ { 1 } | \\hat { z } } ( \\tilde { y } _ { \\mathbf { 1 \\rho } } | \\hat { z } , \\pmb { \\theta } _ { h } ) = \\prod _ { i } \\Bigl ( \\mathcal { N } \\bigl ( \\mu _ { 1 i } , { \\sigma _ { 1 i } } ^ { 2 } \\bigr ) * \\mathcal { U } \\bigl ( - { \\textstyle \\frac { 1 } { 2 } } , { \\textstyle \\frac { 1 } { 2 } } \\bigr ) \\Bigr ) ( \\tilde { y } _ { 1 i } ) } \\\\ { \\mathrm { w i t h } \\ \\mu _ { 1 i } , \\sigma _ { 1 i } = f ( c _ { i } ^ { \\prime } , c _ { i } ^ { \\prime \\prime } ) , } \\\\ { c _ { i } ^ { \\prime } = E ^ { \\prime } ( c ^ { \\prime } , i ) , } \\\\ { c _ { i } ^ { \\prime \\prime } = E ^ { \\prime \\prime } ( \\langle { \\hat { y } _ { \\mathbf { 1 } } } \\rangle , i ) , } \\\\ { c ^ { \\prime } , \\sigma _ { 2 } = S ( h _ { s } ( \\hat { z } ; \\pmb { \\theta } _ { h } ) ) } \\end{array}\n$$",
|
| 1163 |
+
"text_format": "latex",
|
| 1164 |
+
"bbox": [
|
| 1165 |
+
305,
|
| 1166 |
+
303,
|
| 1167 |
+
692,
|
| 1168 |
+
419
|
| 1169 |
+
],
|
| 1170 |
+
"page_idx": 13
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"type": "text",
|
| 1174 |
+
"text": "The rate term for $\\hat { y } _ { 2 }$ is almost the same as Balle et al. (2018), except that noisy representations are ´ only used as the inputs to the entropy models for training, and not for the conditions of the models. ",
|
| 1175 |
+
"bbox": [
|
| 1176 |
+
171,
|
| 1177 |
+
426,
|
| 1178 |
+
825,
|
| 1179 |
+
457
|
| 1180 |
+
],
|
| 1181 |
+
"page_idx": 13
|
| 1182 |
+
},
|
| 1183 |
+
{
|
| 1184 |
+
"type": "equation",
|
| 1185 |
+
"img_path": "images/99ae7a4a2be0f67ee44d83b39aff0b9d0c2acb26d9d39dd59cd2c8eef3201e1f.jpg",
|
| 1186 |
+
"text": "$$\n\\begin{array} { c c l } { { p _ { \\tilde { y } _ { 2 } | \\hat { z } } ( \\tilde { y } _ { 2 } \\mid \\hat { z } , \\theta _ { h } ) } } & { { = } } & { { \\displaystyle { \\prod _ { j } } \\Big ( \\mathcal { N } \\big ( 0 , { \\sigma _ { 2 j } } ^ { 2 } \\big ) * \\mathcal { U } \\big ( - { \\textstyle { \\frac { 1 } { 2 } } } , { \\textstyle { \\frac { 1 } { 2 } } } \\big ) \\Big ) ( y _ { 2 j } ^ { \\sim } ) } } \\end{array}\n$$",
|
| 1187 |
+
"text_format": "latex",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
299,
|
| 1190 |
+
478,
|
| 1191 |
+
697,
|
| 1192 |
+
515
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 13
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "The model of $_ z$ is the same as in equation (5). For implementation, we used this hybrid structure for the top-four configurations in bit-rate descending order. We set $N$ , $M _ { 1 }$ , and $M _ { 2 }$ to 400, 192, and 408, respectively, for the top-two configurations, and to 320, 192, and 228, respectively, for the next two configurations. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
525,
|
| 1202 |
+
825,
|
| 1203 |
+
582
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 13
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "In addition, we measured average execution time per image, spent for encoding and decoding Kodak PhotoCD image dataset (Kodak, 1993), to clarify benefit of the hybrid model. The test was conducted under CPU environments, Intel i9-7900X. Note that we ignored time for actual entropy coding because all models with the same values of $N$ and $M$ spend the same amount of time for entropy coding. As shown in figure 7, the hybrid models clearly reduced execution time of the models. Setting $N$ and $M$ to 320 and 420, respectively, we obtained $4 6 . 8 3 \\%$ of speed gain. With the higher number of parameters, 400 of $N$ and 600 of $M$ , we obtained $5 7 . 2 8 \\%$ of speed gain. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
174,
|
| 1212 |
+
588,
|
| 1213 |
+
825,
|
| 1214 |
+
686
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 13
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "6.2 TEST RESULTS OF THE MODELS TRAINED USING DIFFERENT TYPES OF REPRESENTATIONS ",
|
| 1221 |
+
"text_level": 1,
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
178,
|
| 1224 |
+
704,
|
| 1225 |
+
697,
|
| 1226 |
+
731
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 13
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "In this section, we provide test results of the two models, the proposed model trained using discrete representations as inputs to the synthesis transforms, $g _ { s }$ and $h _ { s }$ , and the same model but trained using noisy representations following the training process of Balle et al. (2018)’s approach. In detail, in ´ training phase of the proposed model, we used quantized representations $\\hat { y }$ and $\\hat { z }$ as inputs to the transforms $g _ { s }$ and $h _ { s }$ , respectively, to ensure the same conditions of training and testing phases. On the other hand, for training the compared model, representations $\\tilde { y }$ and $\\tilde { z }$ are used as inputs to the transforms. An additional change of the proposed model is using $\\hat { y }$ , instead of $\\textbf { { y } }$ , as inputs to $h _ { a }$ , but note that this has nothing to do with the mismatches between training and testing. We used them to match inputs to $h _ { a }$ to targets of model estimation via $f$ . As shown in figure 8, the proposed model, trained using discrete representations, was $5 . 9 4 \\%$ better than the model trained using noisy representations, in terms of the BD-rate of PSNR. Compared with Balle et al. (2018)’s ´ approach, the performance gains of the two models, trained using discrete representations and noisy representations, were $1 1 . 9 7 \\%$ and $7 . 2 0 \\%$ , respectively. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
173,
|
| 1235 |
+
742,
|
| 1236 |
+
825,
|
| 1237 |
+
924
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 13
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "image",
|
| 1243 |
+
"img_path": "images/ad16d6deb93f05c4fd680fcaf7c1216fd2ad4ebb4c9186baee6570d644069a16.jpg",
|
| 1244 |
+
"image_caption": [
|
| 1245 |
+
"Figure 7: Comparison results of execution time between the base model and hybrid model "
|
| 1246 |
+
],
|
| 1247 |
+
"image_footnote": [],
|
| 1248 |
+
"bbox": [
|
| 1249 |
+
282,
|
| 1250 |
+
104,
|
| 1251 |
+
723,
|
| 1252 |
+
332
|
| 1253 |
+
],
|
| 1254 |
+
"page_idx": 14
|
| 1255 |
+
},
|
| 1256 |
+
{
|
| 1257 |
+
"type": "image",
|
| 1258 |
+
"img_path": "images/ed9e6a4334d57f769881d715721542ff7ade100ef184f0e7ae6665296026473f.jpg",
|
| 1259 |
+
"image_caption": [
|
| 1260 |
+
"Figure 8: Evaluation results of the models trained using noisy/discrete representations as input to synthesis transforms "
|
| 1261 |
+
],
|
| 1262 |
+
"image_footnote": [],
|
| 1263 |
+
"bbox": [
|
| 1264 |
+
187,
|
| 1265 |
+
395,
|
| 1266 |
+
803,
|
| 1267 |
+
681
|
| 1268 |
+
],
|
| 1269 |
+
"page_idx": 14
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"type": "text",
|
| 1273 |
+
"text": "6.3 SAMPLES OF THE EXPERIMENTS ",
|
| 1274 |
+
"text_level": 1,
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
176,
|
| 1277 |
+
763,
|
| 1278 |
+
437,
|
| 1279 |
+
779
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 14
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "In this section, we provide a few more supplemental test results. Figures 9, 10, and 11 show the results of the MSE optimized version of our method, whereas figures 12 and 13 show the results of the MS-SSIM optimized version. All figures include a ground truth image and the reconstructed images for our method, BPG, and Balle et al. (2018)’s approach, in the clockwise direction. ´ ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
173,
|
| 1288 |
+
790,
|
| 1289 |
+
825,
|
| 1290 |
+
847
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 14
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "image",
|
| 1296 |
+
"img_path": "images/ba2f9a16c46925bfff9d984bd4dc3089d4566cfadafebd6d0ff24fe11009f1d5.jpg",
|
| 1297 |
+
"image_caption": [
|
| 1298 |
+
"Figure 9: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.2040; PSNR, 32.2063); bottom left, BPG (bpp, 0.2078; PSNR, 32.0406); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized; bpp, 0.2101; PSNR, 31.7054) "
|
| 1299 |
+
],
|
| 1300 |
+
"image_footnote": [],
|
| 1301 |
+
"bbox": [
|
| 1302 |
+
169,
|
| 1303 |
+
90,
|
| 1304 |
+
828,
|
| 1305 |
+
844
|
| 1306 |
+
],
|
| 1307 |
+
"page_idx": 15
|
| 1308 |
+
},
|
| 1309 |
+
{
|
| 1310 |
+
"type": "image",
|
| 1311 |
+
"img_path": "images/a5e9b3cbad34be270b63c4cafef16802502750d29fcf6cb3990519eb62328372.jpg",
|
| 1312 |
+
"image_caption": [
|
| 1313 |
+
"Figure 10: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.1236; PSNR, 32.4284); bottom left, BPG (bpp, 0.1285; PSNR, 32.0444); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized, bpp, 0.1229; PSNR, 31.0596) "
|
| 1314 |
+
],
|
| 1315 |
+
"image_footnote": [],
|
| 1316 |
+
"bbox": [
|
| 1317 |
+
169,
|
| 1318 |
+
93,
|
| 1319 |
+
828,
|
| 1320 |
+
847
|
| 1321 |
+
],
|
| 1322 |
+
"page_idx": 16
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"type": "image",
|
| 1326 |
+
"img_path": "images/09f09357256830a7717ead8f505597746cafb9c2361a6ea1cc49df3dbaebc2d9.jpg",
|
| 1327 |
+
"image_caption": [
|
| 1328 |
+
"Figure 11: Sample test results. Top left, ground truth; top right, our method (MSE optimized; bpp, 0.1501; PSNR, 34.7103); bottom left, BPG (bpp, 0.1477; PSNR, 33.9623); bottom right, Balle et al. ´ (2018)’s approach (MSE optimized; bpp, 0.1520; PSNR, 34.0465) "
|
| 1329 |
+
],
|
| 1330 |
+
"image_footnote": [],
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
70,
|
| 1333 |
+
266,
|
| 1334 |
+
913,
|
| 1335 |
+
700
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 17
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "image",
|
| 1341 |
+
"img_path": "images/f025e2841b317bd6d157749c48311e6a9e6242e4fad8e4a0925b1bb085157b90.jpg",
|
| 1342 |
+
"image_caption": [
|
| 1343 |
+
"Figure 12: Sample test results. Top left, ground truth; top right, our method (MS-SSIM optimized; bpp, 0.2507; MS-SSIM, 0.9740); bottom left, BPG (bpp, 0.2441; MS-SSIM, 0.9555); bottom right, Balle et al. (2018)’s approach (MS-SSIM optimized; bpp, 0.2101; MS-SSIM, 0.9705) ´ "
|
| 1344 |
+
],
|
| 1345 |
+
"image_footnote": [],
|
| 1346 |
+
"bbox": [
|
| 1347 |
+
169,
|
| 1348 |
+
90,
|
| 1349 |
+
826,
|
| 1350 |
+
844
|
| 1351 |
+
],
|
| 1352 |
+
"page_idx": 18
|
| 1353 |
+
},
|
| 1354 |
+
{
|
| 1355 |
+
"type": "image",
|
| 1356 |
+
"img_path": "images/e8c3d59a92ff621eb003f73d83559d7541aba5b7293047e44bbeb1260e180a17.jpg",
|
| 1357 |
+
"image_caption": [
|
| 1358 |
+
"Figure 13: Sample test results. Top left, ground truth; top right, our method (MS-SSIM optimized; bpp, 0.2269; MS-SSIM, 0.9810); bottom left, BPG (bpp, 0.2316; MS-SSIM, 0.9658); bottom right, Balle et al. (2018)’s approach (MS-SSIM optimized; bpp, 0.2291; MS-SSIM, 0.9786) ´ "
|
| 1359 |
+
],
|
| 1360 |
+
"image_footnote": [],
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
169,
|
| 1363 |
+
88,
|
| 1364 |
+
828,
|
| 1365 |
+
843
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 19
|
| 1368 |
+
}
|
| 1369 |
+
]
|
parse/train/HyxKIiAqYQ/HyxKIiAqYQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyxKIiAqYQ/HyxKIiAqYQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/NjF772F4ZZR/NjF772F4ZZR.md
ADDED
|
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ethan.fetaya@biu.ac.il
|
| 8 |
+
|
| 9 |
+
Gal Chechik†
|
| 10 |
+
Bar-Ilan University, Israel
|
| 11 |
+
NVIDIA, Israel
|
| 12 |
+
gal.chechik@biu.ac.il
|
| 13 |
+
|
| 14 |
+
# ABSTRACT
|
| 15 |
+
|
| 16 |
+
Multi-objective optimization (MOO) problems are prevalent in machine learning. These problems have a set of optimal solutions, called the Pareto front, where each point on the front represents a different trade-off between possibly conflicting objectives. Recent MOO methods can target a specific desired ray in loss space however, most approaches still face two grave limitations: (i) A separate model has to be trained for each point on the front; and (ii) The exact trade-off must be known before the optimization process. Here, we tackle the problem of learning the entire Pareto front, with the capability of selecting a desired operating point on the front after training. We call this new setup Pareto-Front Learning (PFL).
|
| 17 |
+
|
| 18 |
+
We describe an approach to PFL implemented using HyperNetworks, which we term Pareto HyperNetworks (PHNs). PHN learns the entire Pareto front simultaneously using a single hypernetwork, which receives as input a desired preference vector and returns a Pareto-optimal model whose loss vector is in the desired ray. The unified model is runtime efficient compared to training multiple models and generalizes to new operating points not used during training. We evaluate our method on a wide set of problems, from multi-task regression and classification to fairness. PHNs learn the entire Pareto front at roughly the same time as learning a single point on the front and at the same time reach a better solution set. PFL opens the door to new applications where models are selected based on preferences that are only available at run time.
|
| 19 |
+
|
| 20 |
+
# 1 INTRODUCTION
|
| 21 |
+
|
| 22 |
+
Multi-objective optimization (MOO) aims to optimize several possibly conflicting objectives. MOO is abundant in machine learning problems, from multi-task learning (MTL), where the goal is to learn several tasks simultaneously, to constrained problems. In such problems, one aims to learn a single task while finding solutions that satisfy properties like fairness or privacy. It is common to optimize the main task while adding loss terms to encourage the learned model to obtain these properties.
|
| 23 |
+
|
| 24 |
+
MOO problems have a set of optimal solutions, the Pareto front, each reflecting a different trade-off between objectives. Points on the Pareto front can be viewed as an intersection of the front with a specific direction in loss space (a ray, Figure 1). We refer to this direction as a preference vector, as it represents a single trade-off between objectives. When a direction is known in advance, it is possible to obtain the corresponding solution on the front (Mahapatra & Rajan, 2020).
|
| 25 |
+
|
| 26 |
+
However, in many cases, we are interested in more than one predefined direction, either because the trade-off is not known before training, or because there are many possible trade-offs of interest. For example, network routing optimization aims to maximize bandwidth, minimize latency, and obey fairness. However, the cost and trade-off vary from one application running in the network to another, or even continuously change in time. The challenge remains to design a model that can be applied at inference time to any given preference direction, even ones not seen during training. We call this problem Pareto front learning (PFL).
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
Figure 1: Illustrative example using the popular task of Fonseca (1995): demonstrating the relation between Pareto front, preference rays, and solutions. Pareto front (black solid line) for a 2D loss space and several rays (colored dashed lines) which represent various possible preferences. Left: A single PHN-EPO model learns the entire Pareto front, mapping any given preference ray to its corresponding solution on the front. The data and task are detailed in Section 5.1.
|
| 30 |
+
|
| 31 |
+
Although several recent studies (Yang et al., 2019; Parisi et al., 2016) suggested to learn the trade-off curve in MOO problems, there is no existing scalable and general-purpose MOO approach that provides Pareto-optimal solutions for numerous preferences in objective space. Classical approaches, like genetic algorithms, do not scale to modern high-dimensional problems. It is possible in principle to run a single-direction optimization multiple times, each for a different preference, but this approach faces two major drawbacks: (i) Scalability – the number of models to be trained to cover the objective space grows exponentially with the number of objectives; and (ii) Flexibility – the decision maker cannot switch freely between preferences unless all models are trained and stored in advance.
|
| 32 |
+
|
| 33 |
+
Here we put forward a new view of PFL as a problem of learning a conditional model, where the conditioning is over the preference direction. During training, a single unified model is trained to produce Pareto optimal solutions while satisfying the given preferences. During inference, the model covers the Pareto front by varying the input preference vector. We further describe an architecture that implements this idea using HyperNetworks. Specifically, we train a hypernetwork, termed Pareto Hypernetwork (PHN), that given a preference vector as an input, produces a deep network model tuned for that objective preference. Training is applied to preferences sampled from the $m -$ dimensional simplex where $m$ represents the number of objectives.
|
| 34 |
+
|
| 35 |
+
We evaluate PHN on a wide set of problems, from multi-class classification, through fairness and image segmentation to multi-task regression. We find that PHN can achieve superior overall solutions while being $1 0 \sim 5 0$ times faster (see Figure 5). PHN addresses both scalability and flexibility. Training a unified model allows using any objective preference at inference time. Finally, as PHN generates a continuous parametrization of the entire Pareto front, it could open new possibilities to analyze Pareto optimal solutions in large-scale neural networks.
|
| 36 |
+
|
| 37 |
+
Our paper has the following contributions: (1) We define the Pareto-front learning problem – learn a model that at inference time can operate on any given preference vector, providing a Pareto-optimal solution for that specified objective trade-off. (2) We describe Pareto Hypernetworks (PHN), a unified architecture based on hypernetworks that addresses PFL and shows it can be effectively trained. (3) Empirical evaluations on various tasks and datasets demonstrate the ability of PHNs to generate better objective space coverage compared to multiple baseline models, with significant improvement in training time.
|
| 38 |
+
|
| 39 |
+
# 2 MULTI-OBJECTIVE OPTIMIZATION
|
| 40 |
+
|
| 41 |
+
We start by formally defining the MOO problem. An MOO is defined by $m$ losses $\ell _ { i } : \mathbb { R } ^ { d } \to \mathbb { R } _ { + }$ $i = 1 , \ldots , m$ , or in vector form $\ell : \mathbb { R } ^ { \bar { d } } \mathbb { R } _ { + } ^ { m }$ . We define a partial ordering on the loss space $\mathbb { R } _ { + } ^ { m }$ by setting $\ell ( \theta _ { 1 } ) \preceq \ell ( \theta _ { 2 } )$ if for all $i \in [ m ]$ , $\ell _ { i } ( \theta _ { 1 } ) \leq \ell _ { i } ( \theta _ { 2 } )$ . We define $\ell ( \theta _ { 1 } ) \prec \ell ( \theta _ { 2 } )$ if $\ell ( \theta _ { 1 } ) \preceq \ell ( \theta _ { 2 } )$ and for some $i \in [ m ] , \ell _ { i } ( \theta _ { 1 } ) < \ell _ { i } ( \theta _ { 2 } )$ . We say that a point $\theta _ { 1 } \in \mathbb { R } ^ { d }$ dominates $\theta _ { 2 } \in \mathbb { R } ^ { d }$ if $\ell ( \theta _ { 1 } ) \prec \ell ( \theta _ { 2 } )$ .
|
| 42 |
+
|
| 43 |
+
If a point $\theta _ { 1 }$ dominates $\theta _ { 2 }$ , then $\theta _ { 1 }$ is clearly preferable, because it improves some objectives and is not worse on any other objective. Otherwise, solutions present a certain trade-off and selecting one specific solution requires additional information about the user preferences. A point that is not dominated by any other point is called Pareto optimal. The set of all Pareto optimal points is called the Pareto front. Since many modern machine learning models, e.g., deep neural networks, use non-convex optimization, one cannot expect global optimality. We call a point local Pareto optimal if it is Pareto optimal in some open neighborhood of the point.
|
| 44 |
+
|
| 45 |
+
The most straightforward approach to MOO is linear scalarization (LS), where one defines a new single loss $\begin{array} { r } { \ell _ { r } ( \mathbf { \bar { \boldsymbol { \theta } } } ) = \sum _ { i } r _ { i } \ell _ { i } ( \boldsymbol { \theta } ) } \end{array}$ given a vector $\pmb { r } \in \mathbb { R } _ { + } ^ { m }$ of weights. One can then apply standard, single-objective optimization algorithms. LS has two major limitations. First, it can only reach the convex part of the Pareto front (Boyd et al., 2004, Chapter 4.7), as shown empirically in Figure 1. Second, if one wishes to target a specific ray in loss space, specified by a preference vector, it is not clear which linear weights lead to that desired Pareto optimal point.
|
| 46 |
+
|
| 47 |
+
In the context of the current work, we highlight two properties that an MOO optimization procedure should possess: scale to many objectives and control which solution on the Pareto front is obtained. Lin et al. (2019) described Pareto multi-task learning (PMTL), an algorithm that splits the loss space into separate cones based on the selected reference rays, and returns a solution per cone using a constrained version of Fliege & Svaiter (2000). This approach allows the user to target several points on the Pareto front; However, it scales poorly with the number of cones and does not converge to the exact desired ray on the Pareto front.
|
| 48 |
+
|
| 49 |
+
Convergence to the desired ray in loss space can be achieved using Exact Pareto Optimal (EPO) (Mahapatra & Rajan, 2020). To find the intersection of the Pareto front with a given preference ray $\mathbfit { \Delta } \mathbf { r }$ EPO balances two goals: Finding a descent direction towards the Pareto front and approaching the desired ray. EPO searches for a point in the convex hull of the gradients, known by Désidéri (2012) to include descent directions, that has a maximal angle with a vector $d _ { b a l }$ which pulls the point to the desired ray. EPO combines gradient descent and controlled ascent enabling it to reach an exact Pareto optimal solution if one exists, or the closest Pareto optimal solution.
|
| 50 |
+
|
| 51 |
+
# 3 RELATWED WORK
|
| 52 |
+
|
| 53 |
+
Multitask learning. In multitask learning (MTL) we simultaneously solve several learning problems while sharing information among tasks (Zhang & Yang, 2017; Ruder, 2017). In some cases, MTL-based models outperform their single task counterparts in terms of per-task performance and computational efficiency (Standley et al., 2019). MTL approaches map the loss vector into a single loss term using a fixed or dynamic weighting scheme. The most frequently used approach is Linear Scalarization (LS), in which each loss term’s weight is chosen apriori. A proper set of weights is commonly selected using grid search. Unfortunately, such an approach scales poorly with the number of tasks. Recently, MTL methods propose dynamically balance the loss terms using gradient magnitude (Chen et al., 2018), the rate of change in losses (Liu et al., 2019), task uncertainty (Kendall et al., 2018), or learning non-linear loss combinations by implicit differentiation (Navon et al., 2020). However, those methods seek a balanced solution and are not suitable for modeling task trade-offs.
|
| 54 |
+
|
| 55 |
+
Multi-objective optimization. The goal of Multi-Objective Optimization (MOO) is to find Pareto optimal solutions corresponding to different trade-offs between objectives (Ehrgott, 2005). MOO has a wide variety of applications in machine learning, spanning Reinforcement Learning (Van Moffaert & Nowé, 2014; Pirotta & Restelli, 2016; Parisi et al., 2014; Pirotta et al., 2015; Parisi et al., 2016; Yang et al., 2019), neural architecture search (Lu et al., 2019; Hsu et al., 2018), fairness (Martínez et al., 2020; Liu & Vicente, 2020), and Bayesian optimization (Shah & Ghahramani, 2016; Hernández-Lobato et al., 2016). Genetic algorithms (GA) are a popular approach for small-scale multi-objective optimization problems. GAs are designed to maintain a set of solutions during optimization. Therefore, they can be extended in natural ways to maintain solutions for different rays. In this area, leading approaches include NSGA-III (Deb & Jain, 2013) and MOEA/D (Zhang & Li,
|
| 56 |
+
|
| 57 |
+
2007). However, these gradient-free methods scale poorly with the number of parameters and are not suitable for training large-scale neural networks.
|
| 58 |
+
|
| 59 |
+
Sener & Koltun (2018) proposed a gradient-based MOO algorithm for MTL, based on MDGA (Désidéri, 2012), suitable for training large-scale neural networks. Other recent works include (Lin et al., 2019; Mahapatra & Rajan, 2020) detailed in Section 2. Another recent approach that aims at a more complete view of the Pareto front is Ma et al. (2020). They extend a given Pareto optimal solution in its local neighborhood. In a concurrent work, Lin et al. (2020) extends Lin et al. (2019) for approximating the entire Pareto front. They train a single hypernetwork by constantly changing the reference directions in the PMTL objective. The proposed method is conceptually similar to our approach, but since it builds on PMTL, it may not produce an exact mapping between the preference and the corresponding solution. Similarly, Dosovitskiy & Djolonga (2019) proposed learning a single model conditioning on the objective weight vector. The method uses feature-wise linear modulation Perez et al. (2017), and dynamically weighted LS loss criterion.
|
| 60 |
+
|
| 61 |
+
Hypernetworks. Ha et al. (2017) introduced the idea of hypernetworks (HNs) inspired by the genotype-phenotype relation in cellular biology. HN presents an approach of using one network (hypernetwork) to generate weights for a second network (target network). In recent years, HN are widely used in various domains such as computer vision (Klocek et al., 2019; Ha et al., 2017), language modeling (Suarez, 2017), sequence decoding (Nachmani & Wolf, 2019), continual learning (Oswald et al., 2020), federated learning (Shamsian et al., 2021) and hyperparameter optimization (Mackay et al., 2019; Lorraine & Duvenaud, 2018). HN dynamically generates models conditioned on a given input, obtaining a set of customized models using a single learnable network.
|
| 62 |
+
|
| 63 |
+
# 4 PARETO HYPERNETWORKS
|
| 64 |
+
|
| 65 |
+
<table><tr><td>Algorithm1PHN</td></tr><tr><td>while not converged do r ~ Dir(α)</td></tr><tr><td>0(Φ,r)=h(r;) Sample mini-batch (x1,y1),.,(xB,yB)</td></tr><tr><td>if LS then</td></tr><tr><td>g←B∑i,jriVΦli(xj,yj,0(Φ,r))</td></tr><tr><td>if EPO then</td></tr><tr><td>β=EPO(0(Φ,r),l,r)</td></tr><tr><td>g←B∑i,jβi√li(xj,yj,0(Φ,r))</td></tr><tr><td></td></tr><tr><td>Φ←-ngΦ</td></tr><tr><td></td></tr><tr><td>return $</td></tr></table>
|
| 66 |
+
|
| 67 |
+

|
| 68 |
+
Figure 2: A PHN $h ( \cdot ; \phi )$ receives an input preference ray $\mathbfit { \Delta } \mathbf { r }$ and outputs the corresponding model weights $\theta _ { r }$ .
|
| 69 |
+
|
| 70 |
+
We start by describing the basic of hypernetworks architecture (Figure 2). Hypernetworks are deep models that generate the weights of another deep model as their output, named the target network. The weights produced by the hypernetwork depend on its input, and one can view the training of a hypernetwork as training a family of target networks simultaneously, conditioned on the input. Let $\bar { h } ( \cdot ; \phi )$ denote the hypernetwork with parameters $\phi \in \mathbb { R } ^ { n }$ , and let $f$ denote the target network whose parameters we denote by $\theta$ . In our implementation, we parametrize $h$ using a feed-forward network with multiple heads. Each head outputs a different weight tensor of the target network. More precisely, the input is first mapped to a higher dimensional space using an MLP, to construct shared features. These features are passed through fully connected layers to create a weight matrix per layer in the target network.
|
| 71 |
+
|
| 72 |
+
Consider an $m$ −dimensional MOO problem with an objective vector $\ell$ . Let $\pmb { r } = ( r _ { 1 } , . . . , r _ { m } ) \in S _ { m }$ denote a preference vector representing a desired trade-off over the objectives. Here $S _ { m } = \{ r \in$ $\begin{array} { r } { \mathbb { R } ^ { m } \ | \ \sum _ { j } r _ { j } \ = 1 , r _ { j } \ \ge \ 0 \} } \end{array}$ is the $m -$ dimensional simplex. Our PHN model takes as input the preference vector $\pmb { r }$ to produce the weights $\theta _ { r } = \theta ( \phi , r ) = h ( r ; \phi )$ of the target network. The target network is then applied to the training data in a usual manner. Throughout the training, we randomly sample $\mathbfit { \Delta } \mathbf { r }$ at each iteration from a Dirichlet distribution with parameter $\alpha \in \mathbb { R } ^ { m }$ . At inference time, a given preference direction $\mathbfit { \Delta } \mathbf { r }$ , is provided as input to the $\mathrm { H N } h$ , which outputs the corresponding Pareto optimal solution, $\theta _ { r }$ , namely, a set of model weights for specific given $\pmb { r }$ . We train $\theta$ to be Pareto optimal and corresponds to the preference vector. For that purpose, we explore two alternatives.
|
| 73 |
+
|
| 74 |
+
PHN-LS: The first, named PHN-LS, uses linear scalarization with the preference vector $\mathbfit { \Delta } \mathbf { r }$ as loss weights, i.e the loss for input $\pmb { r }$ is $\textstyle \sum _ { i } r _ { i } \ell _ { i }$ . While linear scalarization has some theoretical limitations, it is a straightforward and fast approach that tends to work well in practice. One can think of the PHN-LS approach as optimizing the loss $\begin{array} { r } { \ell _ { L S } ( \phi ) = \mathbb { E } _ { r , x , y } [ \sum _ { i } r _ { i } \ell _ { i } ( \bar { x , } y , \theta ( \phi , \pmb { r } ) ) ] } \end{array}$ where we sample a mini-batch and a weighting $\mathbfit { \Delta } \mathbf { r }$ . We note, as a direct result of the implicit function theorem, the following:
|
| 75 |
+
|
| 76 |
+
Proposition 1. Let $\theta ( \hat { \pmb r } )$ be a local Pareto optimal point corresponding to weights $\hat { r }$ , i.e. $\begin{array} { r } { \sum _ { i j } \overline { { \hat { r } _ { i } } } \nabla \ell _ { i } ( x _ { j } , y _ { j } , \theta ) = \mathrm { 0 } } \end{array}$ and assume the Hessian of $\textstyle \sum _ { i } { \bar { r } } _ { i } \ell _ { i }$ has full rank at $\theta ( \hat { \pmb r } )$ . There exists $a$ neighborhood $U$ of $\scriptstyle { \hat { r } }$ and a smooth mapping $\theta ( r )$ such that $\begin{array} { r } { \forall \pmb { r } \in \pmb { U } : \sum _ { i j } r _ { i } \nabla \ell _ { i } ( x _ { j } , y _ { j } , \theta ( \pmb { r } ) ) = 0 . } \end{array}$
|
| 77 |
+
|
| 78 |
+
This shows that under the full rank assumption the connection between the LS term $\pmb { r }$ and the optimal model weights $\theta ( r )$ is smooth and can be learned using universal approximation (Cybenko, 1989). We also observe that if for all $\mathbfit { \Delta } \mathbf { r }$ , $\theta ( \phi , \pmb { r } )$ is a local Pareto optimal point corresponding to $\mathbfit { \Delta } \mathbf { r }$ , i.e., $\begin{array} { r } { \sum _ { i j } r _ { i } \nabla \ell _ { i } ( x _ { j } , y _ { j } , \theta ( \pmb { r } ) ) = 0 } \end{array}$ , then $\dot { \nabla } _ { \phi } \ell _ { L S } ( \phi ) = 0$ and this is a stationary point for $\ell _ { L S }$ . However, there could exists stationary points and even local minima such that $\nabla _ { \phi } \ell _ { L S } ( \phi ) = 0$ but in general $\begin{array} { r } { \sum _ { i j } r _ { i } \nabla \ell _ { i } ( x _ { j } , y _ { j } , \theta ( \pmb { r } ) ) \neq \mathbf { \bar { 0 } } } \end{array}$ and the output of our hypernetwork is not a local Pareto optimal point. While these bad local minima exist, as in standard deep neural networks, we empirically find that PHNs avoid these solutions and achieve good results.
|
| 79 |
+
|
| 80 |
+
PHN-EPO: Our second approach treats the preference $\mathbfit { \Delta } \mathbf { r }$ as a ray in loss space and trains $\theta ( \phi , \pmb { r } )$ to reach a Pareto optimal point on the inverse ray $\scriptstyle \mathbf { \hat { r } } ^ { - 1 }$ , namely, $r _ { 1 } \cdot \ell _ { 1 } = . . . = r _ { m } \cdot \ell _ { m }$ . This is achieved by using the EPO update direction for each output of the Pareto hypernetwork. The recent EPO algorithm can guarantee convergence to a local Pareto optimal point on a specified ray $\pmb { r }$ , addressing the theoretical limitations of LS. Since the EPO descent direction is a convex combination of the gradients, we use the EPO algorithm to compute this adaptive weighting and backpropagate the reweighted losses. See pseudo-code in Alg. 1.
|
| 81 |
+
|
| 82 |
+
The EPO however, unlike LS, cannot be seen as optimizing a certain objective. Therefore, we cannot consider the PHN-EPO optimization, which uses the EPO descent direction, as optimizing a specific objective. We also note that since the EPO needs to solve a linear programming step at each iteration, the runtime of EPO and PHN-EPO are longer than the LS and PHN-LS counterparts (see Figure 5).
|
| 83 |
+
|
| 84 |
+
PHN Scalability: Using a naive implementation of HNs, their size grows linearly with the target network’s size; this may restrict the scalability of PHNs to large target networks. Fortunately, our approach can be easily extended to handle large target networks. First, one can learn only part of the target network parameters using the HN (Luan et al., 2018), or learn preference-specific normalization layers (Huang & Belongie, 2017; Perez et al., 2017) as in Dosovitskiy & Djolonga (2019). Furthermore, one can apply “chunking": generate different parts of the target network, conditioned on a trainable chunk descriptor input (Oswald et al., 2020). Similarly, one can reduce the dimension of the shared preference representation to achieve a similar effect (see Appendix B.5). The experiments in the main paper used the vanilla version of PHN.
|
| 85 |
+
|
| 86 |
+
# 5 EXPERIMENTS
|
| 87 |
+
|
| 88 |
+
We evaluate Pareto HyperNetworks (PHNs) on a set of diverse multi-objective problems. The experiments show the superiority of PHN over previous MOO methods. We make our source code publicly available at: https://github.com/AvivNavon/pareto-hypernetworks.
|
| 89 |
+
|
| 90 |
+
Compared methods: We compare the following approaches: (1) Our proposed Pareto HyperNetworks (PHN-LS and PHN-EPO) algorithm described in Section 4; (2) Linear scalarization (LS); (3) Pareto MTL (PMTL) Lin et al. (2019); (4) Exact Pareto optimal (EPO) Mahapatra & Rajan (2020); (5) Continuous Pareto MTL (CPMTL) Ma et al. (2020). All competing methods train one model per preference vector to generate Pareto solutions. As these models optimize on each ray separately, we do not treat them as a baseline but as “gold standard” in term of performance. Their runtime, on the other hand, scales linearly with the number of rays.
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 3: Multi-MNIST: Test losses produced by the competing method on three Multi-MNIST datasets. Colors correspond to different preference vectors, using the same color map as in Figure 1. PHN generates a continuous Pareto front (solid/dashed line for PHN-EPO/PHN-LS) while mapping any given preference to its corresponding solution (circles for PHN-EPO and x’s for PHN-LS).
|
| 94 |
+
|
| 95 |
+
Genetic algorithms are perhaps the most popular approaches for MOO. Two leading approaches in that area, that also use preference information are NSGA-III (Deb et al., 2002) and MOEA/D (Zhang & Li, 2007). Unfortunately, while these methods can be applied to small networks (like the toy example in Figure 1, which gave sub-par results even after 100,000 generations), they failed to converge to meaningful solutions in our larger-scale experiments. Therefore, we do not compare PHN with GAs on large-scale setups.
|
| 96 |
+
|
| 97 |
+
Evaluation metrics: A common metric for evaluating sets of MOO solutions is the Hypervolume indicator (HV) (Zitzler & Thiele, 1999). It measures the volume in the loss space of points dominated by a solution in the evaluated set (see Appendix C). As this volume is unbounded, it is restricted to the volume in a rectangle defined by the solutions and a selected reference point. All solutions need to be bounded by the reference point, therefore we select different reference points for each experiment. In addition, we evaluate Uniformity, proposed by Mahapatra & Rajan (2020). This metric is designed to quantify how well the loss vector $\ell ( \theta )$ is aligned with the input ray $\mathbfit { \Delta } \mathbf { r }$ . Formally, for any point $\theta$ in the solution space and reference $\mathbfit { \Delta } \mathbf { r }$ we define the non-uniformity $\mu _ { r } ( \ell ( \theta ) ) = D _ { K L } ( \hat { \ell } \| \mathbf { 1 } / m )$ , where ˆ\`j = P j ji ri\`i . We define the uniformity as $1 - \mu _ { r }$ . The main metric, HV, measures the quality of our solutions, while the uniformity measures how well the output model fits the desired preference ray. We stress that the baselines are trained and evaluated for uniformity using the same rays.
|
| 98 |
+
|
| 99 |
+
Training Strategies: In all experiments, our target network shares the same architecture as the baseline models. For our hypernetwork, we use an MLP with 2 hidden layers and linear heads. We set the hidden dimension to 100 for the Multi-MNIST and NYU experiment, and 25 for the Fairness and SARCOS datasets. The Dirichlet parameter $\alpha$ in Alg. 1 is set to 0.2 for all experiments, as we empirically found this value to perform well across datasets and tasks. We provide a more detailed analysis on the selection of the HN’s hidden dimension and hyperparameter $\alpha$ in Appendix B.5. Extensive experimental details are provided in Appendix A.
|
| 100 |
+
|
| 101 |
+
Hyperparameter tuning: For PHN, we select hyperparameters based on the HV computed on a validation set. Selecting hyperparameters for the baselines is challenging because there are no clear criteria that can be computed quickly with many rays. Selecting HPs based on HV requires to train each baseline multiple times on all rays. Therefore, we select hyperparameters based on a single ray and apply the selected hyperparameters to all rays. Specifically, we collect all models trained using all hyperparameter configurations, and remove dominated solutions. Finally, we select the combination of HPs with the highest uniformity.
|
| 102 |
+
|
| 103 |
+
# 5.1 ILLUSTRATIVE EXAMPLE
|
| 104 |
+
|
| 105 |
+
We evaluate PHN on an illustrative MOO problem whose Pareto front is known (Fonseca, 1995). Here,
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\ell _ { 1 } ( \theta ) = 1 - \exp \big \{ - \| \theta - { \bf 1 } / \sqrt { d } \| _ { 2 } ^ { 2 } \big \} , \quad \ell _ { 2 } ( \theta ) = 1 - \exp \big \{ - \| \theta + { \bf 1 } / \sqrt { d } \| _ { 2 } ^ { 2 } \big \} ,
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
Table 1: Evaluation of the different methods on three Multi-MNIST datasets.
|
| 112 |
+
|
| 113 |
+
<table><tr><td></td><td colspan="2">Multi-Fashion+MNIST</td><td colspan="2">Multi-Fashion</td><td colspan="2">Multi-MNIST</td><td></td></tr><tr><td></td><td>HV个</td><td>Unif.介</td><td>HV介</td><td>Unif.介</td><td>HV个</td><td>Unif.介</td><td>Run-time (min.,Tesla V100)</td></tr><tr><td>LS</td><td>2.70</td><td>0.849</td><td>2.14</td><td>0.835</td><td>2.85</td><td>0.846</td><td>9.0×5=45</td></tr><tr><td>CPMTL</td><td>2.76</td><td>1</td><td>2.16</td><td>-</td><td>2.88</td><td>-</td><td>10.2 × 5=51</td></tr><tr><td>PMTL</td><td>2.67</td><td>0.776</td><td>2.13</td><td>0.192</td><td>2.86</td><td>0.793</td><td>17.0 ×5=85</td></tr><tr><td>EPO</td><td>2.67</td><td>0.892</td><td>2.15</td><td>0.906</td><td>2.85</td><td>0.918</td><td>23.6× 5=118</td></tr><tr><td>PHN-LS (ours)</td><td>2.75</td><td>0.894</td><td>2.19</td><td>0.900</td><td>2.90</td><td>0.901</td><td>12</td></tr><tr><td>PHN-EPO (ours)</td><td>2.78</td><td>0.952</td><td>2.19</td><td>0.921</td><td>2.78</td><td>0.920</td><td>27</td></tr></table>
|
| 114 |
+
|
| 115 |
+
with parameters $\boldsymbol { \theta } \in \mathbb { R } ^ { d }$ and $d = 1 0 0$ . This problem has a non-convex Pareto front in $\mathbb { R } ^ { 2 }$ . We compared PHN with EPO, PMTL, MGDA, and two genetic algorithms (GAs) NSGA-III and MOEA/D. The results are presented in Figure 1. Linear scalarization (LS) fails to generate solutions in the concave part of the Pareto front, as theoretically shown in Boyd et al. (2004). PMTL and EPO generate solutions along the entire PF, but the solutions generated by PMTL are only optimized to be in the vicinity of the preference vector $\pmb { r }$ . Results for MGDA and MOEA/D algorithms are shown in Appendix B.1. Our PHN-EPO generates a continuous cover of the PF in a single run. In addition, PHN-EPO returns exact Pareto optimal solutions, mapping an input preference to its corresponding point on the front. We note that similar to the EPO method, PHN-EPO can learn non-convex Pareto fronts. Additional synthetic experiments with non-convex, known Pareto fronts are presented in Appendix B.1.
|
| 116 |
+
|
| 117 |
+
# 5.2 IMAGE CLASSIFICATION
|
| 118 |
+
|
| 119 |
+
We evaluate all methods on three MOO benchmark datasets: (1) Multi-MNIST (Sabour et al., 2017); (2) Multi-Fashion, and (3) Multi-Fashion $^ +$ MNIST. In each dataset, two instances are sampled uniformly at random from the MNIST (LeCun et al., 1998) or Fashion-MNIST (Xiao et al., 2017) datasets. The two images are merged into a new image by placing one at the top-left corner and the other at the bottom-right corner. The sampled images can be shifted up to four pixels in each direction. Each dataset consists of 120,000 training examples and 20,000 test set examples. We allocate $10 \%$ of each training set for constructing validation sets. We train 5 models for each baseline, using evenly spaced rays. The results are presented in Figure 3 and Table 1. The HV was calculated with reference point $( 2 , 2 )$ . PHN outperforms all other methods in terms of HV and uniformity, with significant improvement in run time. To better understand the behavior of PHN while varying the input preference vector, we visualize the per-pixel prediction contribution in Appendix B.3.
|
| 120 |
+
|
| 121 |
+
# 5.3 FAIRNESS
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 4: Accuracy-Fairness trade-off : The trade-off between the main classification loss and the two fairness losses, on the test sets of the three fairness datasets. Each line corresponds to a different solution along the Pareto front, generated using PHN-EPO.
|
| 125 |
+
|
| 126 |
+
Fairness has become a popular topic in machine learning in recent years (Mehrabi et al., 2019), and numerous approaches have been proposed for modeling and incorporating fairness into ML systems (Dwork et al., 2018; Kamishima et al., 2012; Zafar et al., 2019). Here, we adopt the approach of Bechavod & Ligett (2017). They proposed a 3-dimensional optimization problem, with a classification objective and two fairness objectives: False Positive (FP) fairness, and False Negative (FN) fairness. We compare PHN with EPO, PMTL, and LS on three commonly used fairness datasets: Adult (Dua & Graff, 2017), Default (Yeh & Lien, 2009) and Bank (Moro et al., 2014).
|
| 127 |
+
|
| 128 |
+
Table 2: Comparison on three Fairness datasets. Run-time is evaluated on the Adult dataset.
|
| 129 |
+
|
| 130 |
+
<table><tr><td></td><td colspan="2">Adult</td><td colspan="2">Default</td><td colspan="2">Bank</td></tr><tr><td></td><td>HV个 Unif.介</td><td></td><td>HV个Unif.个</td><td></td><td>HV个Unif.介</td><td>Run-time (min., Tesla V100)</td></tr><tr><td>LS</td><td>0.628</td><td>0.109</td><td>0.522</td><td>0.069</td><td>0.704 0.215</td><td>0.9 × 10=9.0</td></tr><tr><td>PMTL</td><td>0.614</td><td>0.458</td><td>0.548</td><td>0.471</td><td>0.638 0.497</td><td>2.7 × 10= 26.6</td></tr><tr><td>EPO</td><td>0.608</td><td>0.734</td><td>0.537</td><td>0.533</td><td>0.713 0.881</td><td>1.6 × 10= 15.5</td></tr><tr><td>PHN-LS (ours)</td><td>0.658</td><td>0.289</td><td>0.551</td><td>0.108</td><td>0.730 0.615</td><td>1.1</td></tr><tr><td>PHN-EPO (ours)</td><td>0.648</td><td>0.701</td><td>0.548</td><td>0.359</td><td>0.748 0.821</td><td>1.8</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Each dataset is divided into train/validation/test sets of sizes $7 0 \% / 1 0 \% / 2 0 \%$ respectively. All baselines are trained and evaluated on 10 preference rays. We present the results in Table 2. HV calculated with reference point $( 1 , 1 , 1 )$ . PHN achieves the best HV performance across all datasets, with reduced training time compared to baselines. EPO performs best in terms of uniformity, however, recall it is evaluated on its training rays. We visualize the accuracy-fairness trade-off achieved by PHN in Figure 4. We also tested GAs on this task but the runtime was extremely high (two days, compared with a runtime of minutes for gradient-based methods) with poor performance.
|
| 133 |
+
|
| 134 |
+
# 5.4 PIXEL-WISE CLASSIFICATION AND REGRESSION
|
| 135 |
+
|
| 136 |
+
Image segmentation and depth estimation are key problems in computer vision with various applications (Minaee et al., 2020; Bhoi, 2019). We compare PHN to the other methods on the NYUv2 dataset (Silberman et al., 2012). NYUv2 is a challenging indoor scene dataset that consists of 1449 RGBD images and dense per-pixel labeling. We use this dataset as a multitask learning benchmark for semantic segmentation and depth estimation tasks. We split the dataset into train/validation/test sets of sizes $7 0 \% / 1 0 \% / 2 0 \%$ respectively, and use an ENet-based architecture for the target network (Paszke et al., 2016). Each baseline method is trained five times using five evenly spaced rays. The results are presented in Table 3. HV is calculated with reference point $( 3 , 3 )$ . PHN-EPO achieves the best HV and uniformity, while also being faster than the baselines.
|
| 137 |
+
|
| 138 |
+
Table 3: Comparison on NYUv2.
|
| 139 |
+
|
| 140 |
+
<table><tr><td></td><td colspan="3">NYUv2</td></tr><tr><td></td><td>HV介</td><td>Unif.介</td><td>Run-time (hours,Tesla V100)</td></tr><tr><td>LS</td><td>3.550</td><td>0.666</td><td>0.58 × 5=2.92</td></tr><tr><td>PMTL</td><td>3.554</td><td>0.679</td><td>0.96× 5=4.79</td></tr><tr><td>CPMTL</td><td>3.570</td><td>-</td><td>0.71 × 5=3.55</td></tr><tr><td>EPO</td><td>3.266</td><td>0.728</td><td>1.02 × 5=5.11</td></tr><tr><td>PHN-LS (ours)</td><td>3.546</td><td>0.798</td><td>0.67</td></tr><tr><td>PHN-EPO (ours)</td><td>3.589</td><td>0.820</td><td>1.04</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 4: Comparison on SARCOS dataset.
|
| 143 |
+
|
| 144 |
+
<table><tr><td></td><td colspan="2">SARCOS</td></tr><tr><td></td><td>HV个 Unif.介</td><td>Run-time (hours,Tesla V100)</td></tr><tr><td>LS</td><td>0.688</td><td>-0.008</td><td>0.17 × 20= 3.3</td></tr><tr><td>EPO</td><td>0.637</td><td>0.548</td><td>0.5× 20=10</td></tr><tr><td>PHN-LS (ours)</td><td>0.693</td><td>0.020</td><td>0.2</td></tr><tr><td>PHN-EPO (ours)</td><td>0.728</td><td>0.258</td><td>0.8</td></tr></table>
|
| 145 |
+
|
| 146 |
+
# 5.5 MULTITASK REGRESSION
|
| 147 |
+
|
| 148 |
+
When learning with many objectives using preference-specific models, generating a good coverage of the solution space becomes too expensive in computation and storage space, as the number of rays needed grows with the number of dimensions. As a result, PHN provides a major improvement in training time and solution space coverage (measured by HV). To evaluate PHN in such settings, we use the SARCOS dataset (Vijayakumar), a commonly used dataset for multitask regression (Zhang & Yang, 2017). SARCOS presents an inverse dynamics problem with 7 regression tasks and 21 explanatory variables. We omit PMTL from this experiment because its training time is significantly longer compared to other baselines, with relatively low performance. For LS and EPO, we train 20 preference-specific models. The results are presented in Table 4. HV calculated with reference point $( 1 , . . . , 1 )$ . As before, PHN performs best in terms of HV, while reducing the overall runtime.
|
| 149 |
+
|
| 150 |
+
# 6 THE QUALITY-RUNTIME TRADE-OFF
|
| 151 |
+
|
| 152 |
+
While PHN learns the entire front in a single model, the competing methods need to train multiple models to cover the Pareto front. As a result, these methods have a clear trade-off between their performance and their run time. To better understand this trade-off, Figure 5 shows the HV and run time (in log-scale) of LS and EPO when training a various number of models. For Fashion-MNIST, we trained 25 models, and at the inference time, we selected subsets of various sizes (1 ray, 2 rays, etc) and computed their HV. The shaded area in Figure 5 reflects the variance over different selections of ray subsets. We similarly trained 30 EPO/LS models for Adult and 40 for SARCOS. PHN-EPO achieves superior or comparable hypervolume while being an order of magnitude faster. PHN-LS is even faster, but this may come at the expense of a lower hypervolume.
|
| 153 |
+
|
| 154 |
+
To further understand the source of PHN performance gain, we evaluate the HV on the same rays used for the competing methods (see Appendix B.4). In many cases, PHN outperforms models trained on specific rays, when evaluated on those exact rays. We attribute the performance gain to the inductive bias effect that PHN induces on a model by sharing weights across rays.
|
| 155 |
+
|
| 156 |
+

|
| 157 |
+
Figure 5: HV vs runtime (min.) comparing PHN with preference-specific LS and EPO. For LS and EPO, each value was computed by evaluating with a subset of models. PHN achieves higher HV significantly faster ( $\mathbf { \dot { X } }$ -axis is in log scale). Shaded area marks the variance across selected subsets.
|
| 158 |
+
|
| 159 |
+
# 7 CONCLUSION
|
| 160 |
+
|
| 161 |
+
We put forward a novel MOO setup which we term Pareto Front Learning (PFL). Learning the Pareto front using a single unified model that can be applied to a specific objective preference at inference time. We propose PHN, a model for this setup based on a hypernetwork, and evaluate it on a large and diverse set of tasks and datasets. Our experiments show significant gains in both runtime and performance on all datasets. This novel approach provides users with the flexibility of selecting the operating point at inference time and opens new possibilities where user preferences can be tuned and changed at deployment.
|
| 162 |
+
|
| 163 |
+
# ACKNOWLEDGEMENTS
|
| 164 |
+
|
| 165 |
+
This study was funded by a grant to GC from the Israel Science Foundation (ISF 737/2018), and by an equipment grant to GC and Bar-Ilan University from the Israel Science Foundation (ISF 2332/18). AS and AN were funded by a grant from the Israeli Innovation Authority, through the AVATAR consortium.
|
| 166 |
+
|
| 167 |
+
# REFERENCES
|
| 168 |
+
|
| 169 |
+
Yahav Bechavod and Katrina Ligett. Penalizing unfairness in binary classification. arXiv preprint arXiv:1707.00044, 2017.
|
| 170 |
+
|
| 171 |
+
Amlaan Bhoi. Monocular depth estimation: A survey. ArXiv, abs/1901.09402, 2019.
|
| 172 |
+
|
| 173 |
+
Stephen Boyd, Stephen P Boyd, and Lieven Vandenberghe. Convex optimization. Cambridge university press, 2004.
|
| 174 |
+
|
| 175 |
+
Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International Conference on Machine Learning, pp. 794–803. PMLR, 2018.
|
| 176 |
+
|
| 177 |
+
George Cybenko. Approximation by superpositions of a sigmoidal function. Math. Control. Signals Syst., pp. 303–314, 1989.
|
| 178 |
+
|
| 179 |
+
Indraneel Das and John E Dennis. Normal-boundary intersection: A new method for generating the pareto surface in nonlinear multicriteria optimization problems. SIAM journal on optimization, 8 (3):631–657, 1998.
|
| 180 |
+
|
| 181 |
+
Kalyanmoy Deb and Himanshu Jain. An evolutionary many-objective optimization algorithm using reference-point-based nondominated sorting approach, part i: solving problems with box constraints. IEEE transactions on evolutionary computation, 18(4):577–601, 2013.
|
| 182 |
+
|
| 183 |
+
Kalyanmoy Deb, Samir Agrawal, Amrit Pratap, and T. Meyarivan. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput., pp. 182–197, 2002.
|
| 184 |
+
|
| 185 |
+
Alexey Dosovitskiy and Josip Djolonga. You only train once: Loss-conditional training of deep networks. In International Conference on Learning Representations, 2019.
|
| 186 |
+
|
| 187 |
+
Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml.
|
| 188 |
+
|
| 189 |
+
C. Dwork, Nicole Immorlica, A. Kalai, and Mark D. M. Leiserson. Decoupled classifiers for group-fair and efficient machine learning. In FAT, 2018.
|
| 190 |
+
|
| 191 |
+
Jean-Antoine Désidéri. Multiple-gradient descent algorithm (mgda) for multiobjective optimization. Comptes Rendus Mathematique, 350:313–318, 2012.
|
| 192 |
+
|
| 193 |
+
Matthias Ehrgott. Multicriteria optimization, volume 491. Springer Science & Business Media, 2005.
|
| 194 |
+
|
| 195 |
+
Yu G Evtushenko and Mikhail Anatol’evich Posypkin. Nonuniform covering method as applied to multicriteria optimization problems with guaranteed accuracy. Computational Mathematics and Mathematical Physics, 53(2):144–157, 2013.
|
| 196 |
+
|
| 197 |
+
Jörg Fliege and Benar Fux Svaiter. Steepest descent methods for multicriteria optimization. Math. Methods Oper. Res., 51(3):479–494, 2000.
|
| 198 |
+
|
| 199 |
+
Carlos Manuel Mira da Fonseca. Multiobjective genetic algorithms with application to control engineering problems. PhD thesis, University of Sheffield, 1995.
|
| 200 |
+
|
| 201 |
+
David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. ArXiv, abs/1609.09106, 2017.
|
| 202 |
+
|
| 203 |
+
Daniel Hernández-Lobato, Jose Hernandez-Lobato, Amar Shah, and Ryan Adams. Predictive entropy search for multi-objective bayesian optimization. In International Conference on Machine Learning, pp. 1492–1501, 2016.
|
| 204 |
+
|
| 205 |
+
Chi-Hung Hsu, Shu-Huan Chang, Jhao-Hong Liang, Hsin-Ping Chou, Chun-Hao Liu, Shih-Chieh Chang, Jia-Yu Pan, Yu-Ting Chen, Wei Wei, and Da-Cheng Juan. Monas: Multi-objective neural architecture search using reinforcement learning. arXiv preprint arXiv:1806.10332, 2018.
|
| 206 |
+
|
| 207 |
+
X. Huang and Serge J. Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 1510–1519, 2017.
|
| 208 |
+
|
| 209 |
+
Toshihiro Kamishima, Shotaro Akaho, Hideki Asoh, and Jun Sakuma. Fairness-aware classifier with prejudice remover regularizer. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 35–50. Springer, 2012.
|
| 210 |
+
|
| 211 |
+
Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7482–7491, 2018.
|
| 212 |
+
|
| 213 |
+
Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015.
|
| 214 |
+
|
| 215 |
+
Sylwester Klocek, Lukasz Maziarka, Maciej Wolczyk, J. Tabor, J. Nowak, and M. Smieja. Hypernetwork functional image representation. In ICANN, 2019.
|
| 216 |
+
|
| 217 |
+
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 218 |
+
|
| 219 |
+
X. Lin, Zhiyuan Yang, Q. Zhang, and S. Kwong. Controllable pareto multi-task learning. ArXiv, abs/2010.06313, 2020.
|
| 220 |
+
|
| 221 |
+
Xi Lin, Hui-Ling Zhen, Zhenhua Li, Qing-Fu Zhang, and Sam Kwong. Pareto multi-task learning. In Advances in Neural Information Processing Systems, pp. 12060–12070, 2019.
|
| 222 |
+
|
| 223 |
+
Shikun Liu, Edward Johns, and Andrew J Davison. End-to-end multi-task learning with attention. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1871–1880, 2019.
|
| 224 |
+
|
| 225 |
+
Suyun Liu and Luis Nunes Vicente. Accuracy and fairness trade-offs in machine learning: A stochastic multi-objective approach. arXiv preprint arXiv:2008.01132, 2020.
|
| 226 |
+
|
| 227 |
+
Jonathan Lorraine and David Duvenaud. Stochastic hyperparameter optimization through hypernetworks. arXiv preprint arXiv:1802.09419, 2018.
|
| 228 |
+
|
| 229 |
+
Zhichao Lu, Ian Whalen, Vishnu Boddeti, Yashesh Dhebar, Kalyanmoy Deb, Erik Goodman, and Wolfgang Banzhaf. Nsga-net: neural architecture search using multi-objective genetic algorithm. In Proceedings of the Genetic and Evolutionary Computation Conference, pp. 419–427, 2019.
|
| 230 |
+
|
| 231 |
+
Shangzhen Luan, Chen Chen, Baochang Zhang, Jungong Han, and Jianzhuang Liu. Gabor convolutional networks. IEEE Transactions on Image Processing, 27(9):4357–4366, 2018.
|
| 232 |
+
|
| 233 |
+
Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 4765–4774. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7062-a-unified-approach-to-interpreting-model-predictions.pdf.
|
| 234 |
+
|
| 235 |
+
Pingchuan Ma, Tao Du, and Wojciech Matusik. Efficient continuous pareto exploration in multi-task learning. arXiv preprint arXiv:2006.16434, 2020.
|
| 236 |
+
|
| 237 |
+
Matthew Mackay, Paul Vicol, Jonathan Lorraine, David Duvenaud, and Roger Grosse. Self-tuning networks: Bilevel optimization of hyperparameters using structured best-response functions. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id ${ . } = { }$ r1eEG20qKQ.
|
| 238 |
+
|
| 239 |
+
D. Mahapatra and V. Rajan. Multi-task learning with user preferences: Gradient descent with controlled ascent in pareto optimization. 2020.
|
| 240 |
+
|
| 241 |
+
N. Martínez, Martín Bertrán, and G. Sapiro. Minimax pareto fairness: A multi objective perspective. 2020.
|
| 242 |
+
|
| 243 |
+
Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, and A. Galstyan. A survey on bias and fairness in machine learning. ArXiv, abs/1908.09635, 2019.
|
| 244 |
+
|
| 245 |
+
Shervin Minaee, Yuri Boykov, F. Porikli, Antonio J. Plaza, N. Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. ArXiv, abs/2001.05566, 2020.
|
| 246 |
+
|
| 247 |
+
Sérgio Moro, Paulo Cortez, and Paulo Rita. A data-driven approach to predict the success of bank telemarketing. Decision Support Systems, 62:22–31, 2014.
|
| 248 |
+
|
| 249 |
+
Eliya Nachmani and L. Wolf. Hyper-graph-network decoders for block codes. In NeurIPS, 2019.
|
| 250 |
+
|
| 251 |
+
Aviv Navon, Idan Achituve, Haggai Maron, Gal Chechik, and Ethan Fetaya. Auxiliary learning by implicit differentiation. arXiv preprint arXiv:2007.02693, 2020.
|
| 252 |
+
|
| 253 |
+
J. Oswald, C. Henning, J. Sacramento, and Benjamin F. Grewe. Continual learning with hypernetworks. ArXiv, abs/1906.00695, 2020.
|
| 254 |
+
|
| 255 |
+
Simone Parisi, Matteo Pirotta, Nicola Smacchia, Luca Bascetta, and Marcello Restelli. Policy gradient approaches for multi-objective sequential decision making. In 2014 International Joint Conference on Neural Networks (IJCNN), pp. 2323–2330. IEEE, 2014.
|
| 256 |
+
|
| 257 |
+
Simone Parisi, Matteo Pirotta, and Marcello Restelli. Multi-objective reinforcement learning through continuous pareto manifold approximation. Journal of Artificial Intelligence Research, 57:187–227, 2016.
|
| 258 |
+
|
| 259 |
+
Adam Paszke, Abhishek Chaurasia, Sangpil Kim, and E. Culurciello. Enet: A deep neural network architecture for real-time semantic segmentation. ArXiv, abs/1606.02147, 2016.
|
| 260 |
+
|
| 261 |
+
Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. Film: Visual reasoning with a general conditioning layer. arXiv preprint arXiv:1709.07871, 2017.
|
| 262 |
+
|
| 263 |
+
Matteo Pirotta and Marcello Restelli. Inverse reinforcement learning through policy gradient minimization. In AAAI Conference on Artificial Intelligence, pp. 1993–1999. AAAI Press, 2016.
|
| 264 |
+
|
| 265 |
+
Matteo Pirotta, Simone Parisi, and Marcello Restelli. Multi-objective reinforcement learning with continuous pareto frontier approximation. In 29th AAAI Conference on Artificial Intelligence, AAAI 2015 and the 27th Innovative Applications of Artificial Intelligence Conference, IAAI 2015, pp. 2928–2934. AAAI Press, 2015.
|
| 266 |
+
|
| 267 |
+
Sebastian Ruder. An overview of multi-task learning in deep neural networks, 2017.
|
| 268 |
+
|
| 269 |
+
Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. Dynamic routing between capsules. In Advances in neural information processing systems, pp. 3856–3866, 2017.
|
| 270 |
+
|
| 271 |
+
Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. In Advances in Neural Information Processing Systems, pp. 527–538, 2018.
|
| 272 |
+
|
| 273 |
+
Amar Shah and Zoubin Ghahramani. Pareto frontier learning with expensive correlated objectives. In International Conference on Machine Learning, pp. 1919–1927, 2016.
|
| 274 |
+
|
| 275 |
+
Aviv Shamsian, Aviv Navon, Ethan Fetaya, and Gal Chechik. Personalized federated learning using hypernetworks. arXiv preprint arXiv:2103.04628, 2021.
|
| 276 |
+
|
| 277 |
+
Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor segmentation and support inference from rgbd images. In European conference on computer vision, pp. 746–760. Springer, 2012.
|
| 278 |
+
|
| 279 |
+
Trevor Standley, Amir R Zamir, Dawn Chen, Leonidas Guibas, Jitendra Malik, and Silvio Savarese. Which tasks should be learned together in multi-task learning? arXiv preprint arXiv:1905.07553, 2019.
|
| 280 |
+
|
| 281 |
+
J. Suarez. Character-level language modeling with recurrent highway hypernetworks. 2017.
|
| 282 |
+
|
| 283 |
+
Kristof Van Moffaert and Ann Nowé. Multi-objective reinforcement learning using sets of pareto dominating policies. The Journal of Machine Learning Research, 15(1):3483–3512, 2014.
|
| 284 |
+
|
| 285 |
+
Sethu Vijayakumar. The sarcos dataset, 2000. URL http://www. gaussianprocess. org/gpml/data.
|
| 286 |
+
|
| 287 |
+
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
|
| 288 |
+
|
| 289 |
+
Runzhe Yang, Xingyuan Sun, and Karthik Narasimhan. A generalized algorithm for multi-objective reinforcement learning and policy adaptation. In Advances in Neural Information Processing Systems, pp. 14636–14647, 2019.
|
| 290 |
+
|
| 291 |
+
I-Cheng Yeh and Che-hui Lien. The comparisons of data mining techniques for the predictive accuracy of probability of default of credit card clients. Expert Systems with Applications, 36(2): 2473–2480, 2009.
|
| 292 |
+
|
| 293 |
+
Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez-Rodriguez, and Krishna P Gummadi. Fairness constraints: A flexible approach for fair classification. J. Mach. Learn. Res., 20(75):1–42, 2019.
|
| 294 |
+
|
| 295 |
+
Qingfu Zhang and Hui Li. Moea/d: A multiobjective evolutionary algorithm based on decomposition. IEEE Transactions on evolutionary computation, 11(6):712–731, 2007.
|
| 296 |
+
|
| 297 |
+
Yu Zhang and Qiang Yang. A survey on multi-task learning. arXiv preprint arXiv:1707.08114, 2017.
|
| 298 |
+
|
| 299 |
+
Eckart Zitzler and Lothar Thiele. Multiobjective evolutionary algorithms: a comparative case study and the strength pareto approach. IEEE transactions on Evolutionary Computation, 3(4):257–271, 1999.
|
| 300 |
+
|
| 301 |
+
Eckart Zitzler, Kalyanmoy Deb, and Lothar Thiele. Comparison of multiobjective evolutionary algorithms: Empirical results. Evolutionary computation, 8(2):173–195, 2000.
|
| 302 |
+
|
| 303 |
+
# Appendix: Learning the Pareto Front with Hypernetworks
|
| 304 |
+
|
| 305 |
+
A EXPERIMENTAL DETAILS
|
| 306 |
+
|
| 307 |
+
Pixelwise Classification and Regression: For NYUv2 we performed a hyperparameters search over the number of epochs and learning rates $\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \}$ . We train each method for 150 epochs with Adam (Kingma & Ba, 2015) optimizer and select an optimal set of learning rate and number of epochs according to Sec. 5. We evaluate PHN over 25 evenly spaced rays.
|
| 308 |
+
|
| 309 |
+
Image classification: For the Multi-MNIST, experiments we use a LeNet-based target network (LeCun et al., 1998) with two task-specific heads. We train all methods using an Adam optimizer with learning rate $1 e - 4$ for 150 epochs and batch size 256. We then choose the best number of epochs for each method using the validation set. We evaluate PHN over 25 rays.
|
| 310 |
+
|
| 311 |
+
Fairness: We use a 3−layer feed-forward target network with hidden dimensions [40, 20]. We use learnable embeddings for all categorical variables. We train all methods for 35 epochs using an Adam optimizer with learning rates $\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \}$ . We choose the best hyperparameter configuration using the validation set. Further details on the datasets are provided in Table 5. We evaluate PHN over a sample of 150 rays.
|
| 312 |
+
|
| 313 |
+
Multitask regression: For the SARCOS experiment, we use a $4 -$ layer feed-forward target network with 256 hidden dimension. All categorical features are passed through embedding layers. We train all methods for 1000 epochs using an Adam optimizer and learning rates $\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \}$ . We choose the best hyperparameter configuration base on the validation set. We use 40,036 training examples, 4,448 validation examples, and 4,449 test examples. We evaluate PHN over a sample of 100 rays.
|
| 314 |
+
|
| 315 |
+
Table 5: Fairness datasets.
|
| 316 |
+
|
| 317 |
+
<table><tr><td></td><td>Adult Default</td><td>Bank</td></tr><tr><td>Train</td><td>32559</td><td>21600 29655</td></tr><tr><td>Validation</td><td>3618</td><td>2400 3295</td></tr><tr><td>Test</td><td>9045</td><td>6000 8238</td></tr></table>
|
| 318 |
+
|
| 319 |
+
# B ADDITIONAL EXPERIMENTS
|
| 320 |
+
|
| 321 |
+

|
| 322 |
+
Figure 6: Illustrative example using the popular task of Fonseca (1995): The genetic algorithm MOEA/D fails to reach the exact pareto front after 100, 000 generations. MGDA reaches Pareto optimal solutions, but is not suitable for generating preference-specific solutions and only covers a small fraction of the pareto front.
|
| 323 |
+
|
| 324 |
+

|
| 325 |
+
Figure 7: Known Pareto front: Top: Evaluation on Problem 2 from Evtushenko & Posypkin (2013). Bottom: Evaluation on ZDT2 (Zitzler et al., 2000). PHN converges to the entire PF, mapping a ray to its corresponding solution on the front. Each circle in the PHN plots denotes a solution corresponds to the baseline rays.
|
| 326 |
+
|
| 327 |
+
# B.1 KNOWN PARETO FRONT
|
| 328 |
+
|
| 329 |
+
We provide two additional experiments over popular MOO benchmarks whose Pareto front is known. In addition in Figure 6, we provide additional results for MGDA (Sener & Koltun, 2018) and MOEA/D (Zhang & Li, 2007) on the illustrative example from Section 5.1.
|
| 330 |
+
|
| 331 |
+
We evaluate PHN on two MOO problems with known, non-convex Pareto front: ZDT2 (Zitzler et al., 2000) and problem two from Evtushenko & Posypkin (2013), henceforth Problem2. In both problems, the density of solutions across the Pareto-optimal region is non-uniform.
|
| 332 |
+
|
| 333 |
+
For a solution $\theta = ( \theta _ { 1 } , \theta _ { 2 } ) \in [ 0 , 1 ] ^ { 2 }$ , Problem2 is given by,
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
\ell _ { 1 } ( \theta ) = ( ( \theta _ { 1 } - 1 ) \theta _ { 2 } ^ { 2 } + 1 ) / 3 , \quad \ell _ { 2 } ( \theta ) = \theta _ { 1 } ,
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
and ZDT2 is given by,
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\ell _ { 1 } ( \theta ) = \theta _ { 1 } , \quad \ell _ { 2 } ( \theta ) = 1 - \left( \frac { \theta _ { 1 } } { 1 + 9 \theta _ { 2 } } \right) ^ { 2 } .
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
The results are presented in Figure 7. PHN-EPO converges to the entire PF using a single HN model.
|
| 346 |
+
in contrast with PHN-EPO, EPO fails to converge to the PF for all rays in ZDT2.
|
| 347 |
+
|
| 348 |
+
# B.2 GENERALIZATION TO UNSEEN RAYS
|
| 349 |
+
|
| 350 |
+
When the number of objectives is large, the curse of dimensionality makes it likely that rays encountered in test time are "far" from rays encountered during training. Although we evaluated PHN on unseen rays1 through all experiments, here we would like to better examine the generalization of PHN in that scenario. We conducted controlled experiment on SARCOS dataset with 7 tasks. During training, we sample rays from a predefined grid on the 7−dimensional simplex. We use the structured approach of Das & Dennis (1998) for generating well-spaced points. During inference, we measure HV and Uniformity on two sets of rays: (i) Randomly sampled train rays (ii) Randomly sampled test rays from a shifted grid, so they are most distant from the train grid. In both cases, test samples differ from training samples. We find that testing with unseen test rays only causes a minor decrease in both HV and Uniformity compared with train rays. The HV is reduced from 0.7337 to 0.7336 and uniformity is reduced from 0.163 to 0.158. This experiment indicates that PHN generalizes well to unseen rays, even in problems with many objectives. We note that the HV results presented here are higher than the ones reported in Section 5.5. We attribute this inconsistency to change of preference vectors distribution used during training. While throught the paper we sample preference rays from a Dirichlet distribution with $\alpha = 0 . 2$ , here we sample from a fixed, evenly spaced grid. We provide analysis on the robustness to the choice of the Dirichlet distribution parameter $\alpha$ in Appendix B.5.
|
| 351 |
+
|
| 352 |
+
# B.3 MNIST PHN INTERPRETATION
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Figure 8: PHN interpretation: PHN is provided with a sample from the Multi-MNIST dataset, where an image of 3 and an image 7 are overlayed. We show the effect that conditioning on different preference rays (left) has on the decision made by the model. Red pixels denote increased contribution to the prediction. See text for details.
|
| 356 |
+
|
| 357 |
+
To better understand the behaviour of PHN while varying the input preference vector, Figure 8 shows the per-pixel contribution to prediction. We use the SHAP framework (Lundberg & Lee, 2017) for visualization. Red pixels denote an increased probability for a given class, while blue pixels denote a decreased probability. The top left and bottom right digits are labeled as $\{ 7 , 3 \}$ respectively. In the first row (ray: (0.99, 0.01)), the model is focused on task 1 (with label 7), most of the red pixels come from the top left digit in column 7, as expected. Similarly, in the third row (ray: (0.01, 0.99)) most of the red pixels are focused on the bottom right digit in column 3.
|
| 358 |
+
|
| 359 |
+
# B.4 SAME-RAY EVALUATION
|
| 360 |
+
|
| 361 |
+
In Section 5 of the main text we evaluate PHN on multiple evenly spaced rays. For completeness, we report here the HV and Uniformity achieved by PHN, while evaluated on the same rays used for training and evaluating the baseline methods. The results are provided in Table 6. Surprisingly, in many cases PHN achieves better performance. We attribute this to the inductive bias effect of sharing weights across all preference rays.
|
| 362 |
+
|
| 363 |
+
Table 6: Evaluation of PHN on baselines’ ray.
|
| 364 |
+
|
| 365 |
+
<table><tr><td rowspan="2"></td><td colspan="2">Fashion+MNIST</td><td colspan="2">Multi-Fashion</td><td colspan="2">Multi-MNIST</td><td colspan="2">Adult</td><td colspan="2">Bank</td><td colspan="2">NYUv2</td><td colspan="2">SARCOS HV</td></tr><tr><td>HV</td><td>Unif.</td><td>HV</td><td>Unif.</td><td></td><td>HV Unif.</td><td>HV</td><td>Unif.</td><td>HVUnif.</td><td></td><td>HVUnif.</td><td>HV</td><td>Unif.</td><td>Unif.</td></tr><tr><td>PHN-LS 2.740</td><td></td><td>0.852</td><td>2.190</td><td>0.838</td><td>2.900</td><td>0.840</td><td>0.624 0.282</td><td></td><td>0.538 0.106</td><td></td><td>0.695 0.603</td><td>3.494 0.683</td><td></td><td>0.693-0.051</td></tr><tr><td>PHN-EPO 2.760</td><td></td><td>0.908</td><td>2.180</td><td>0.860</td><td>2.760</td><td>0.857</td><td>0.631 0.742</td><td></td><td>0.531 0.395</td><td></td><td>0.717 0.833</td><td>3.565 0.701</td><td></td><td>0.728 0.190</td></tr></table>
|
| 366 |
+
|
| 367 |
+
# B.5 DESIGN CHOICE ANALYSIS
|
| 368 |
+
|
| 369 |
+
In Section 5 we used fixed values of the hidden dimension and the Dirichlet parameter $\alpha$ (see Alg. 1). Here we examine the effect of different choices for these hyperparameters. We use the Multi-Fashion $+ \mathrm { M N I S T }$ dataset, and the PHN-EPO variant of our method. We first fix the hidden dimension to 100, and vary $\alpha$ from 0.1 to 1 (uniform sampling). The results are presented in Figure 9(a). It appears that at least for this dataset, PHN is quite robust to changes in $\alpha$ . Next, we set $\alpha = 0 . 2$ and examine the effect of changing the dimension of the hidden layers in our hypernetwork. We present the results in Figure 9(b). Here, the effect on the HV is stronger, with best HV achieved using hidden dimension of 100.
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
Figure 9: Hyperparameters analysis: Performance analysis on the Multi-Fashion $^ +$ MNIST dataset, for different architecture designs and sampling choices.
|
| 373 |
+
|
| 374 |
+
# B.6 ADDITIONAL RUNTIME ANALYSIS
|
| 375 |
+
|
| 376 |
+

|
| 377 |
+
Figure 10: Runtime analysis for NYUv2, and two additional Multi-MNIST dataset.
|
| 378 |
+
|
| 379 |
+
We extend the runtime analysis from Section 5.5. Figure 10 provides additional runtime analysis on the Multi-MNIST, Multi-Fashion, and NYUv2 datasets. For NYUv2 we omit the EPO method, since it was outperformed by LS in both HV and runtime.
|
| 380 |
+
|
| 381 |
+
# C HYPERVOLUME
|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
Figure 11: Hypervolume illustration: The colored area represents the hypervolume obtained by Pareto set $\{ P _ { 1 } , P _ { 2 } , P _ { 3 } \}$ with respect to the reference point.
|
| 385 |
+
|
| 386 |
+
The hypervolume metric is defined as follows: Given a set of points $S \subset \mathbb { R } ^ { n }$ and a reference point $\pmb { \rho } \in \mathbb { R } _ { + } ^ { n }$ , the hypervolume of $S$ is measured by the region of non-dominated points bounded above by $\rho$ .
|
| 387 |
+
|
| 388 |
+
$$
|
| 389 |
+
H V ( S ) = V O L \big ( \{ q \in \mathbb { R } _ { + } ^ { n } \mid \exists p \in S : ( p \preceq q ) \land ( q \preceq \rho ) \} \big ) ,
|
| 390 |
+
$$
|
| 391 |
+
|
| 392 |
+
where $V O L$ is the euclidean volume. We can interpret hypervolume as the measure of the union of the boxes created by the non-dominated points.
|
| 393 |
+
|
| 394 |
+
$$
|
| 395 |
+
H V ( S ) = V O L \left( \bigcup _ { p \in S } \prod _ { i = 1 } ^ { n } [ p _ { i } , \rho _ { i } ] \right)
|
| 396 |
+
$$
|
| 397 |
+
|
| 398 |
+
As a measure of quality for MOO solutions, it takes into account both the quality of individual solutions, which is the volume they dominate, and also the diversity, measured in the overlap between dominated regions. See example in Fig. 11.
|
parse/train/NjF772F4Z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+
"type": "text",
|
| 16 |
+
"text": "Aviv Navon∗ Bar-Ilan University, Israel aviv.navon@biu.ac.il ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
380,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Aviv Shamsian∗ Bar-Ilan University, Israel aviv.shamsian@biu.ac.il ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
586,
|
| 30 |
+
170,
|
| 31 |
+
812,
|
| 32 |
+
212
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Ethan Fetaya† Bar-Ilan University, Israel ethan.fetaya@biu.ac.il ",
|
| 39 |
+
"bbox": [
|
| 40 |
+
183,
|
| 41 |
+
233,
|
| 42 |
+
400,
|
| 43 |
+
275
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Gal Chechik† \nBar-Ilan University, Israel \nNVIDIA, Israel \ngal.chechik@biu.ac.il ",
|
| 50 |
+
"bbox": [
|
| 51 |
+
511,
|
| 52 |
+
233,
|
| 53 |
+
717,
|
| 54 |
+
289
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "ABSTRACT ",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
454,
|
| 64 |
+
325,
|
| 65 |
+
544,
|
| 66 |
+
340
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "Multi-objective optimization (MOO) problems are prevalent in machine learning. These problems have a set of optimal solutions, called the Pareto front, where each point on the front represents a different trade-off between possibly conflicting objectives. Recent MOO methods can target a specific desired ray in loss space however, most approaches still face two grave limitations: (i) A separate model has to be trained for each point on the front; and (ii) The exact trade-off must be known before the optimization process. Here, we tackle the problem of learning the entire Pareto front, with the capability of selecting a desired operating point on the front after training. We call this new setup Pareto-Front Learning (PFL). ",
|
| 73 |
+
"bbox": [
|
| 74 |
+
233,
|
| 75 |
+
356,
|
| 76 |
+
764,
|
| 77 |
+
482
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "We describe an approach to PFL implemented using HyperNetworks, which we term Pareto HyperNetworks (PHNs). PHN learns the entire Pareto front simultaneously using a single hypernetwork, which receives as input a desired preference vector and returns a Pareto-optimal model whose loss vector is in the desired ray. The unified model is runtime efficient compared to training multiple models and generalizes to new operating points not used during training. We evaluate our method on a wide set of problems, from multi-task regression and classification to fairness. PHNs learn the entire Pareto front at roughly the same time as learning a single point on the front and at the same time reach a better solution set. PFL opens the door to new applications where models are selected based on preferences that are only available at run time. ",
|
| 84 |
+
"bbox": [
|
| 85 |
+
233,
|
| 86 |
+
497,
|
| 87 |
+
766,
|
| 88 |
+
650
|
| 89 |
+
],
|
| 90 |
+
"page_idx": 0
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"type": "text",
|
| 94 |
+
"text": "1 INTRODUCTION ",
|
| 95 |
+
"text_level": 1,
|
| 96 |
+
"bbox": [
|
| 97 |
+
176,
|
| 98 |
+
675,
|
| 99 |
+
336,
|
| 100 |
+
690
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "Multi-objective optimization (MOO) aims to optimize several possibly conflicting objectives. MOO is abundant in machine learning problems, from multi-task learning (MTL), where the goal is to learn several tasks simultaneously, to constrained problems. In such problems, one aims to learn a single task while finding solutions that satisfy properties like fairness or privacy. It is common to optimize the main task while adding loss terms to encourage the learned model to obtain these properties. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
705,
|
| 110 |
+
823,
|
| 111 |
+
776
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "MOO problems have a set of optimal solutions, the Pareto front, each reflecting a different trade-off between objectives. Points on the Pareto front can be viewed as an intersection of the front with a specific direction in loss space (a ray, Figure 1). We refer to this direction as a preference vector, as it represents a single trade-off between objectives. When a direction is known in advance, it is possible to obtain the corresponding solution on the front (Mahapatra & Rajan, 2020). ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
784,
|
| 121 |
+
825,
|
| 122 |
+
853
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "However, in many cases, we are interested in more than one predefined direction, either because the trade-off is not known before training, or because there are many possible trade-offs of interest. For example, network routing optimization aims to maximize bandwidth, minimize latency, and obey fairness. However, the cost and trade-off vary from one application running in the network to another, or even continuously change in time. The challenge remains to design a model that can be applied at inference time to any given preference direction, even ones not seen during training. We call this problem Pareto front learning (PFL). ",
|
| 129 |
+
"bbox": [
|
| 130 |
+
176,
|
| 131 |
+
859,
|
| 132 |
+
823,
|
| 133 |
+
888
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "image",
|
| 139 |
+
"img_path": "images/cb897b1cbdcf566c5c6ce00658fef5b296bc2700b5ae6699089c44bda6cf4a50.jpg",
|
| 140 |
+
"image_caption": [
|
| 141 |
+
"Figure 1: Illustrative example using the popular task of Fonseca (1995): demonstrating the relation between Pareto front, preference rays, and solutions. Pareto front (black solid line) for a 2D loss space and several rays (colored dashed lines) which represent various possible preferences. Left: A single PHN-EPO model learns the entire Pareto front, mapping any given preference ray to its corresponding solution on the front. The data and task are detailed in Section 5.1. "
|
| 142 |
+
],
|
| 143 |
+
"image_footnote": [],
|
| 144 |
+
"bbox": [
|
| 145 |
+
174,
|
| 146 |
+
97,
|
| 147 |
+
821,
|
| 148 |
+
223
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "",
|
| 155 |
+
"bbox": [
|
| 156 |
+
174,
|
| 157 |
+
334,
|
| 158 |
+
825,
|
| 159 |
+
405
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "text",
|
| 165 |
+
"text": "Although several recent studies (Yang et al., 2019; Parisi et al., 2016) suggested to learn the trade-off curve in MOO problems, there is no existing scalable and general-purpose MOO approach that provides Pareto-optimal solutions for numerous preferences in objective space. Classical approaches, like genetic algorithms, do not scale to modern high-dimensional problems. It is possible in principle to run a single-direction optimization multiple times, each for a different preference, but this approach faces two major drawbacks: (i) Scalability – the number of models to be trained to cover the objective space grows exponentially with the number of objectives; and (ii) Flexibility – the decision maker cannot switch freely between preferences unless all models are trained and stored in advance. ",
|
| 166 |
+
"bbox": [
|
| 167 |
+
174,
|
| 168 |
+
411,
|
| 169 |
+
825,
|
| 170 |
+
523
|
| 171 |
+
],
|
| 172 |
+
"page_idx": 1
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"type": "text",
|
| 176 |
+
"text": "Here we put forward a new view of PFL as a problem of learning a conditional model, where the conditioning is over the preference direction. During training, a single unified model is trained to produce Pareto optimal solutions while satisfying the given preferences. During inference, the model covers the Pareto front by varying the input preference vector. We further describe an architecture that implements this idea using HyperNetworks. Specifically, we train a hypernetwork, termed Pareto Hypernetwork (PHN), that given a preference vector as an input, produces a deep network model tuned for that objective preference. Training is applied to preferences sampled from the $m -$ dimensional simplex where $m$ represents the number of objectives. ",
|
| 177 |
+
"bbox": [
|
| 178 |
+
173,
|
| 179 |
+
530,
|
| 180 |
+
825,
|
| 181 |
+
641
|
| 182 |
+
],
|
| 183 |
+
"page_idx": 1
|
| 184 |
+
},
|
| 185 |
+
{
|
| 186 |
+
"type": "text",
|
| 187 |
+
"text": "We evaluate PHN on a wide set of problems, from multi-class classification, through fairness and image segmentation to multi-task regression. We find that PHN can achieve superior overall solutions while being $1 0 \\sim 5 0$ times faster (see Figure 5). PHN addresses both scalability and flexibility. Training a unified model allows using any objective preference at inference time. Finally, as PHN generates a continuous parametrization of the entire Pareto front, it could open new possibilities to analyze Pareto optimal solutions in large-scale neural networks. ",
|
| 188 |
+
"bbox": [
|
| 189 |
+
174,
|
| 190 |
+
647,
|
| 191 |
+
825,
|
| 192 |
+
732
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "Our paper has the following contributions: (1) We define the Pareto-front learning problem – learn a model that at inference time can operate on any given preference vector, providing a Pareto-optimal solution for that specified objective trade-off. (2) We describe Pareto Hypernetworks (PHN), a unified architecture based on hypernetworks that addresses PFL and shows it can be effectively trained. (3) Empirical evaluations on various tasks and datasets demonstrate the ability of PHNs to generate better objective space coverage compared to multiple baseline models, with significant improvement in training time. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
174,
|
| 201 |
+
738,
|
| 202 |
+
825,
|
| 203 |
+
837
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2 MULTI-OBJECTIVE OPTIMIZATION ",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
862,
|
| 214 |
+
488,
|
| 215 |
+
877
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "We start by formally defining the MOO problem. An MOO is defined by $m$ losses $\\ell _ { i } : \\mathbb { R } ^ { d } \\to \\mathbb { R } _ { + }$ $i = 1 , \\ldots , m$ , or in vector form $\\ell : \\mathbb { R } ^ { \\bar { d } } \\mathbb { R } _ { + } ^ { m }$ . We define a partial ordering on the loss space $\\mathbb { R } _ { + } ^ { m }$ by setting $\\ell ( \\theta _ { 1 } ) \\preceq \\ell ( \\theta _ { 2 } )$ if for all $i \\in [ m ]$ , $\\ell _ { i } ( \\theta _ { 1 } ) \\leq \\ell _ { i } ( \\theta _ { 2 } )$ . We define $\\ell ( \\theta _ { 1 } ) \\prec \\ell ( \\theta _ { 2 } )$ if $\\ell ( \\theta _ { 1 } ) \\preceq \\ell ( \\theta _ { 2 } )$ and for some $i \\in [ m ] , \\ell _ { i } ( \\theta _ { 1 } ) < \\ell _ { i } ( \\theta _ { 2 } )$ . We say that a point $\\theta _ { 1 } \\in \\mathbb { R } ^ { d }$ dominates $\\theta _ { 2 } \\in \\mathbb { R } ^ { d }$ if $\\ell ( \\theta _ { 1 } ) \\prec \\ell ( \\theta _ { 2 } )$ . ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
173,
|
| 224 |
+
895,
|
| 225 |
+
823,
|
| 226 |
+
924
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "text",
|
| 232 |
+
"text": "",
|
| 233 |
+
"bbox": [
|
| 234 |
+
174,
|
| 235 |
+
102,
|
| 236 |
+
825,
|
| 237 |
+
148
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "If a point $\\theta _ { 1 }$ dominates $\\theta _ { 2 }$ , then $\\theta _ { 1 }$ is clearly preferable, because it improves some objectives and is not worse on any other objective. Otherwise, solutions present a certain trade-off and selecting one specific solution requires additional information about the user preferences. A point that is not dominated by any other point is called Pareto optimal. The set of all Pareto optimal points is called the Pareto front. Since many modern machine learning models, e.g., deep neural networks, use non-convex optimization, one cannot expect global optimality. We call a point local Pareto optimal if it is Pareto optimal in some open neighborhood of the point. ",
|
| 244 |
+
"bbox": [
|
| 245 |
+
173,
|
| 246 |
+
155,
|
| 247 |
+
825,
|
| 248 |
+
252
|
| 249 |
+
],
|
| 250 |
+
"page_idx": 2
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"type": "text",
|
| 254 |
+
"text": "The most straightforward approach to MOO is linear scalarization (LS), where one defines a new single loss $\\begin{array} { r } { \\ell _ { r } ( \\mathbf { \\bar { \\boldsymbol { \\theta } } } ) = \\sum _ { i } r _ { i } \\ell _ { i } ( \\boldsymbol { \\theta } ) } \\end{array}$ given a vector $\\pmb { r } \\in \\mathbb { R } _ { + } ^ { m }$ of weights. One can then apply standard, single-objective optimization algorithms. LS has two major limitations. First, it can only reach the convex part of the Pareto front (Boyd et al., 2004, Chapter 4.7), as shown empirically in Figure 1. Second, if one wishes to target a specific ray in loss space, specified by a preference vector, it is not clear which linear weights lead to that desired Pareto optimal point. ",
|
| 255 |
+
"bbox": [
|
| 256 |
+
174,
|
| 257 |
+
260,
|
| 258 |
+
825,
|
| 259 |
+
343
|
| 260 |
+
],
|
| 261 |
+
"page_idx": 2
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"type": "text",
|
| 265 |
+
"text": "In the context of the current work, we highlight two properties that an MOO optimization procedure should possess: scale to many objectives and control which solution on the Pareto front is obtained. Lin et al. (2019) described Pareto multi-task learning (PMTL), an algorithm that splits the loss space into separate cones based on the selected reference rays, and returns a solution per cone using a constrained version of Fliege & Svaiter (2000). This approach allows the user to target several points on the Pareto front; However, it scales poorly with the number of cones and does not converge to the exact desired ray on the Pareto front. ",
|
| 266 |
+
"bbox": [
|
| 267 |
+
174,
|
| 268 |
+
349,
|
| 269 |
+
825,
|
| 270 |
+
446
|
| 271 |
+
],
|
| 272 |
+
"page_idx": 2
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"type": "text",
|
| 276 |
+
"text": "Convergence to the desired ray in loss space can be achieved using Exact Pareto Optimal (EPO) (Mahapatra & Rajan, 2020). To find the intersection of the Pareto front with a given preference ray $\\mathbfit { \\Delta } \\mathbf { r }$ EPO balances two goals: Finding a descent direction towards the Pareto front and approaching the desired ray. EPO searches for a point in the convex hull of the gradients, known by Désidéri (2012) to include descent directions, that has a maximal angle with a vector $d _ { b a l }$ which pulls the point to the desired ray. EPO combines gradient descent and controlled ascent enabling it to reach an exact Pareto optimal solution if one exists, or the closest Pareto optimal solution. ",
|
| 277 |
+
"bbox": [
|
| 278 |
+
174,
|
| 279 |
+
454,
|
| 280 |
+
825,
|
| 281 |
+
551
|
| 282 |
+
],
|
| 283 |
+
"page_idx": 2
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"type": "text",
|
| 287 |
+
"text": "3 RELATWED WORK ",
|
| 288 |
+
"text_level": 1,
|
| 289 |
+
"bbox": [
|
| 290 |
+
176,
|
| 291 |
+
577,
|
| 292 |
+
359,
|
| 293 |
+
593
|
| 294 |
+
],
|
| 295 |
+
"page_idx": 2
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"type": "text",
|
| 299 |
+
"text": "Multitask learning. In multitask learning (MTL) we simultaneously solve several learning problems while sharing information among tasks (Zhang & Yang, 2017; Ruder, 2017). In some cases, MTL-based models outperform their single task counterparts in terms of per-task performance and computational efficiency (Standley et al., 2019). MTL approaches map the loss vector into a single loss term using a fixed or dynamic weighting scheme. The most frequently used approach is Linear Scalarization (LS), in which each loss term’s weight is chosen apriori. A proper set of weights is commonly selected using grid search. Unfortunately, such an approach scales poorly with the number of tasks. Recently, MTL methods propose dynamically balance the loss terms using gradient magnitude (Chen et al., 2018), the rate of change in losses (Liu et al., 2019), task uncertainty (Kendall et al., 2018), or learning non-linear loss combinations by implicit differentiation (Navon et al., 2020). However, those methods seek a balanced solution and are not suitable for modeling task trade-offs. ",
|
| 300 |
+
"bbox": [
|
| 301 |
+
174,
|
| 302 |
+
611,
|
| 303 |
+
825,
|
| 304 |
+
765
|
| 305 |
+
],
|
| 306 |
+
"page_idx": 2
|
| 307 |
+
},
|
| 308 |
+
{
|
| 309 |
+
"type": "text",
|
| 310 |
+
"text": "Multi-objective optimization. The goal of Multi-Objective Optimization (MOO) is to find Pareto optimal solutions corresponding to different trade-offs between objectives (Ehrgott, 2005). MOO has a wide variety of applications in machine learning, spanning Reinforcement Learning (Van Moffaert & Nowé, 2014; Pirotta & Restelli, 2016; Parisi et al., 2014; Pirotta et al., 2015; Parisi et al., 2016; Yang et al., 2019), neural architecture search (Lu et al., 2019; Hsu et al., 2018), fairness (Martínez et al., 2020; Liu & Vicente, 2020), and Bayesian optimization (Shah & Ghahramani, 2016; Hernández-Lobato et al., 2016). Genetic algorithms (GA) are a popular approach for small-scale multi-objective optimization problems. GAs are designed to maintain a set of solutions during optimization. Therefore, they can be extended in natural ways to maintain solutions for different rays. In this area, leading approaches include NSGA-III (Deb & Jain, 2013) and MOEA/D (Zhang & Li, ",
|
| 311 |
+
"bbox": [
|
| 312 |
+
174,
|
| 313 |
+
784,
|
| 314 |
+
826,
|
| 315 |
+
924
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 2
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "2007). However, these gradient-free methods scale poorly with the number of parameters and are not suitable for training large-scale neural networks. ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
173,
|
| 324 |
+
103,
|
| 325 |
+
823,
|
| 326 |
+
132
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "Sener & Koltun (2018) proposed a gradient-based MOO algorithm for MTL, based on MDGA (Désidéri, 2012), suitable for training large-scale neural networks. Other recent works include (Lin et al., 2019; Mahapatra & Rajan, 2020) detailed in Section 2. Another recent approach that aims at a more complete view of the Pareto front is Ma et al. (2020). They extend a given Pareto optimal solution in its local neighborhood. In a concurrent work, Lin et al. (2020) extends Lin et al. (2019) for approximating the entire Pareto front. They train a single hypernetwork by constantly changing the reference directions in the PMTL objective. The proposed method is conceptually similar to our approach, but since it builds on PMTL, it may not produce an exact mapping between the preference and the corresponding solution. Similarly, Dosovitskiy & Djolonga (2019) proposed learning a single model conditioning on the objective weight vector. The method uses feature-wise linear modulation Perez et al. (2017), and dynamically weighted LS loss criterion. ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
174,
|
| 335 |
+
138,
|
| 336 |
+
825,
|
| 337 |
+
291
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "Hypernetworks. Ha et al. (2017) introduced the idea of hypernetworks (HNs) inspired by the genotype-phenotype relation in cellular biology. HN presents an approach of using one network (hypernetwork) to generate weights for a second network (target network). In recent years, HN are widely used in various domains such as computer vision (Klocek et al., 2019; Ha et al., 2017), language modeling (Suarez, 2017), sequence decoding (Nachmani & Wolf, 2019), continual learning (Oswald et al., 2020), federated learning (Shamsian et al., 2021) and hyperparameter optimization (Mackay et al., 2019; Lorraine & Duvenaud, 2018). HN dynamically generates models conditioned on a given input, obtaining a set of customized models using a single learnable network. ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
173,
|
| 346 |
+
305,
|
| 347 |
+
825,
|
| 348 |
+
417
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "text",
|
| 354 |
+
"text": "4 PARETO HYPERNETWORKS ",
|
| 355 |
+
"text_level": 1,
|
| 356 |
+
"bbox": [
|
| 357 |
+
176,
|
| 358 |
+
436,
|
| 359 |
+
429,
|
| 360 |
+
453
|
| 361 |
+
],
|
| 362 |
+
"page_idx": 3
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"type": "table",
|
| 366 |
+
"img_path": "images/4ea140deb8210230d4d78fba9e13a599968a3357b99f26e14f306c6de45674ed.jpg",
|
| 367 |
+
"table_caption": [],
|
| 368 |
+
"table_footnote": [],
|
| 369 |
+
"table_body": "<table><tr><td>Algorithm1PHN</td></tr><tr><td>while not converged do r ~ Dir(α)</td></tr><tr><td>0(Φ,r)=h(r;) Sample mini-batch (x1,y1),.,(xB,yB)</td></tr><tr><td>if LS then</td></tr><tr><td>g←B∑i,jriVΦli(xj,yj,0(Φ,r))</td></tr><tr><td>if EPO then</td></tr><tr><td>β=EPO(0(Φ,r),l,r)</td></tr><tr><td>g←B∑i,jβi√li(xj,yj,0(Φ,r))</td></tr><tr><td></td></tr><tr><td>Φ←-ngΦ</td></tr><tr><td></td></tr><tr><td>return $</td></tr></table>",
|
| 370 |
+
"bbox": [
|
| 371 |
+
181,
|
| 372 |
+
482,
|
| 373 |
+
508,
|
| 374 |
+
659
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "image",
|
| 380 |
+
"img_path": "images/c9b62b1546101cd36883d200a2a1501c1d2b55c7c15ec0201d0ecb509952d38e.jpg",
|
| 381 |
+
"image_caption": [
|
| 382 |
+
"Figure 2: A PHN $h ( \\cdot ; \\phi )$ receives an input preference ray $\\mathbfit { \\Delta } \\mathbf { r }$ and outputs the corresponding model weights $\\theta _ { r }$ . "
|
| 383 |
+
],
|
| 384 |
+
"image_footnote": [],
|
| 385 |
+
"bbox": [
|
| 386 |
+
563,
|
| 387 |
+
478,
|
| 388 |
+
782,
|
| 389 |
+
612
|
| 390 |
+
],
|
| 391 |
+
"page_idx": 3
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"type": "text",
|
| 395 |
+
"text": "We start by describing the basic of hypernetworks architecture (Figure 2). Hypernetworks are deep models that generate the weights of another deep model as their output, named the target network. The weights produced by the hypernetwork depend on its input, and one can view the training of a hypernetwork as training a family of target networks simultaneously, conditioned on the input. Let $\\bar { h } ( \\cdot ; \\phi )$ denote the hypernetwork with parameters $\\phi \\in \\mathbb { R } ^ { n }$ , and let $f$ denote the target network whose parameters we denote by $\\theta$ . In our implementation, we parametrize $h$ using a feed-forward network with multiple heads. Each head outputs a different weight tensor of the target network. More precisely, the input is first mapped to a higher dimensional space using an MLP, to construct shared features. These features are passed through fully connected layers to create a weight matrix per layer in the target network. ",
|
| 396 |
+
"bbox": [
|
| 397 |
+
173,
|
| 398 |
+
678,
|
| 399 |
+
825,
|
| 400 |
+
816
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "Consider an $m$ −dimensional MOO problem with an objective vector $\\ell$ . Let $\\pmb { r } = ( r _ { 1 } , . . . , r _ { m } ) \\in S _ { m }$ denote a preference vector representing a desired trade-off over the objectives. Here $S _ { m } = \\{ r \\in$ $\\begin{array} { r } { \\mathbb { R } ^ { m } \\ | \\ \\sum _ { j } r _ { j } \\ = 1 , r _ { j } \\ \\ge \\ 0 \\} } \\end{array}$ is the $m -$ dimensional simplex. Our PHN model takes as input the preference vector $\\pmb { r }$ to produce the weights $\\theta _ { r } = \\theta ( \\phi , r ) = h ( r ; \\phi )$ of the target network. The target network is then applied to the training data in a usual manner. Throughout the training, we randomly sample $\\mathbfit { \\Delta } \\mathbf { r }$ at each iteration from a Dirichlet distribution with parameter $\\alpha \\in \\mathbb { R } ^ { m }$ . At inference time, a given preference direction $\\mathbfit { \\Delta } \\mathbf { r }$ , is provided as input to the $\\mathrm { H N } h$ , which outputs the corresponding Pareto optimal solution, $\\theta _ { r }$ , namely, a set of model weights for specific given $\\pmb { r }$ . We train $\\theta$ to be Pareto optimal and corresponds to the preference vector. For that purpose, we explore two alternatives. ",
|
| 407 |
+
"bbox": [
|
| 408 |
+
173,
|
| 409 |
+
824,
|
| 410 |
+
825,
|
| 411 |
+
924
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "",
|
| 418 |
+
"bbox": [
|
| 419 |
+
171,
|
| 420 |
+
103,
|
| 421 |
+
823,
|
| 422 |
+
132
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 4
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "PHN-LS: The first, named PHN-LS, uses linear scalarization with the preference vector $\\mathbfit { \\Delta } \\mathbf { r }$ as loss weights, i.e the loss for input $\\pmb { r }$ is $\\textstyle \\sum _ { i } r _ { i } \\ell _ { i }$ . While linear scalarization has some theoretical limitations, it is a straightforward and fast approach that tends to work well in practice. One can think of the PHN-LS approach as optimizing the loss $\\begin{array} { r } { \\ell _ { L S } ( \\phi ) = \\mathbb { E } _ { r , x , y } [ \\sum _ { i } r _ { i } \\ell _ { i } ( \\bar { x , } y , \\theta ( \\phi , \\pmb { r } ) ) ] } \\end{array}$ where we sample a mini-batch and a weighting $\\mathbfit { \\Delta } \\mathbf { r }$ . We note, as a direct result of the implicit function theorem, the following: ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
173,
|
| 431 |
+
146,
|
| 432 |
+
825,
|
| 433 |
+
231
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 4
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "Proposition 1. Let $\\theta ( \\hat { \\pmb r } )$ be a local Pareto optimal point corresponding to weights $\\hat { r }$ , i.e. $\\begin{array} { r } { \\sum _ { i j } \\overline { { \\hat { r } _ { i } } } \\nabla \\ell _ { i } ( x _ { j } , y _ { j } , \\theta ) = \\mathrm { 0 } } \\end{array}$ and assume the Hessian of $\\textstyle \\sum _ { i } { \\bar { r } } _ { i } \\ell _ { i }$ has full rank at $\\theta ( \\hat { \\pmb r } )$ . There exists $a$ neighborhood $U$ of $\\scriptstyle { \\hat { r } }$ and a smooth mapping $\\theta ( r )$ such that $\\begin{array} { r } { \\forall \\pmb { r } \\in \\pmb { U } : \\sum _ { i j } r _ { i } \\nabla \\ell _ { i } ( x _ { j } , y _ { j } , \\theta ( \\pmb { r } ) ) = 0 . } \\end{array}$ ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
233,
|
| 443 |
+
825,
|
| 444 |
+
280
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "This shows that under the full rank assumption the connection between the LS term $\\pmb { r }$ and the optimal model weights $\\theta ( r )$ is smooth and can be learned using universal approximation (Cybenko, 1989). We also observe that if for all $\\mathbfit { \\Delta } \\mathbf { r }$ , $\\theta ( \\phi , \\pmb { r } )$ is a local Pareto optimal point corresponding to $\\mathbfit { \\Delta } \\mathbf { r }$ , i.e., $\\begin{array} { r } { \\sum _ { i j } r _ { i } \\nabla \\ell _ { i } ( x _ { j } , y _ { j } , \\theta ( \\pmb { r } ) ) = 0 } \\end{array}$ , then $\\dot { \\nabla } _ { \\phi } \\ell _ { L S } ( \\phi ) = 0$ and this is a stationary point for $\\ell _ { L S }$ . However, there could exists stationary points and even local minima such that $\\nabla _ { \\phi } \\ell _ { L S } ( \\phi ) = 0$ but in general $\\begin{array} { r } { \\sum _ { i j } r _ { i } \\nabla \\ell _ { i } ( x _ { j } , y _ { j } , \\theta ( \\pmb { r } ) ) \\neq \\mathbf { \\bar { 0 } } } \\end{array}$ and the output of our hypernetwork is not a local Pareto optimal point. While these bad local minima exist, as in standard deep neural networks, we empirically find that PHNs avoid these solutions and achieve good results. ",
|
| 451 |
+
"bbox": [
|
| 452 |
+
174,
|
| 453 |
+
289,
|
| 454 |
+
826,
|
| 455 |
+
405
|
| 456 |
+
],
|
| 457 |
+
"page_idx": 4
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"type": "text",
|
| 461 |
+
"text": "PHN-EPO: Our second approach treats the preference $\\mathbfit { \\Delta } \\mathbf { r }$ as a ray in loss space and trains $\\theta ( \\phi , \\pmb { r } )$ to reach a Pareto optimal point on the inverse ray $\\scriptstyle \\mathbf { \\hat { r } } ^ { - 1 }$ , namely, $r _ { 1 } \\cdot \\ell _ { 1 } = . . . = r _ { m } \\cdot \\ell _ { m }$ . This is achieved by using the EPO update direction for each output of the Pareto hypernetwork. The recent EPO algorithm can guarantee convergence to a local Pareto optimal point on a specified ray $\\pmb { r }$ , addressing the theoretical limitations of LS. Since the EPO descent direction is a convex combination of the gradients, we use the EPO algorithm to compute this adaptive weighting and backpropagate the reweighted losses. See pseudo-code in Alg. 1. ",
|
| 462 |
+
"bbox": [
|
| 463 |
+
174,
|
| 464 |
+
419,
|
| 465 |
+
825,
|
| 466 |
+
516
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 4
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "The EPO however, unlike LS, cannot be seen as optimizing a certain objective. Therefore, we cannot consider the PHN-EPO optimization, which uses the EPO descent direction, as optimizing a specific objective. We also note that since the EPO needs to solve a linear programming step at each iteration, the runtime of EPO and PHN-EPO are longer than the LS and PHN-LS counterparts (see Figure 5). ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
174,
|
| 475 |
+
523,
|
| 476 |
+
825,
|
| 477 |
+
579
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 4
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "text",
|
| 483 |
+
"text": "PHN Scalability: Using a naive implementation of HNs, their size grows linearly with the target network’s size; this may restrict the scalability of PHNs to large target networks. Fortunately, our approach can be easily extended to handle large target networks. First, one can learn only part of the target network parameters using the HN (Luan et al., 2018), or learn preference-specific normalization layers (Huang & Belongie, 2017; Perez et al., 2017) as in Dosovitskiy & Djolonga (2019). Furthermore, one can apply “chunking\": generate different parts of the target network, conditioned on a trainable chunk descriptor input (Oswald et al., 2020). Similarly, one can reduce the dimension of the shared preference representation to achieve a similar effect (see Appendix B.5). The experiments in the main paper used the vanilla version of PHN. ",
|
| 484 |
+
"bbox": [
|
| 485 |
+
173,
|
| 486 |
+
593,
|
| 487 |
+
825,
|
| 488 |
+
719
|
| 489 |
+
],
|
| 490 |
+
"page_idx": 4
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"type": "text",
|
| 494 |
+
"text": "5 EXPERIMENTS ",
|
| 495 |
+
"text_level": 1,
|
| 496 |
+
"bbox": [
|
| 497 |
+
176,
|
| 498 |
+
739,
|
| 499 |
+
326,
|
| 500 |
+
755
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "We evaluate Pareto HyperNetworks (PHNs) on a set of diverse multi-objective problems. The experiments show the superiority of PHN over previous MOO methods. We make our source code publicly available at: https://github.com/AvivNavon/pareto-hypernetworks. ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
174,
|
| 509 |
+
770,
|
| 510 |
+
825,
|
| 511 |
+
811
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "text",
|
| 517 |
+
"text": "Compared methods: We compare the following approaches: (1) Our proposed Pareto HyperNetworks (PHN-LS and PHN-EPO) algorithm described in Section 4; (2) Linear scalarization (LS); (3) Pareto MTL (PMTL) Lin et al. (2019); (4) Exact Pareto optimal (EPO) Mahapatra & Rajan (2020); (5) Continuous Pareto MTL (CPMTL) Ma et al. (2020). All competing methods train one model per preference vector to generate Pareto solutions. As these models optimize on each ray separately, we do not treat them as a baseline but as “gold standard” in term of performance. Their runtime, on the other hand, scales linearly with the number of rays. ",
|
| 518 |
+
"bbox": [
|
| 519 |
+
174,
|
| 520 |
+
825,
|
| 521 |
+
825,
|
| 522 |
+
924
|
| 523 |
+
],
|
| 524 |
+
"page_idx": 4
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"type": "image",
|
| 528 |
+
"img_path": "images/8487a6cbc1e66bee0e195af6ce8e4bef5747a4864ad36d9e36f86ef5fa23e9f6.jpg",
|
| 529 |
+
"image_caption": [
|
| 530 |
+
"Figure 3: Multi-MNIST: Test losses produced by the competing method on three Multi-MNIST datasets. Colors correspond to different preference vectors, using the same color map as in Figure 1. PHN generates a continuous Pareto front (solid/dashed line for PHN-EPO/PHN-LS) while mapping any given preference to its corresponding solution (circles for PHN-EPO and x’s for PHN-LS). "
|
| 531 |
+
],
|
| 532 |
+
"image_footnote": [],
|
| 533 |
+
"bbox": [
|
| 534 |
+
192,
|
| 535 |
+
97,
|
| 536 |
+
805,
|
| 537 |
+
255
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 5
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "Genetic algorithms are perhaps the most popular approaches for MOO. Two leading approaches in that area, that also use preference information are NSGA-III (Deb et al., 2002) and MOEA/D (Zhang & Li, 2007). Unfortunately, while these methods can be applied to small networks (like the toy example in Figure 1, which gave sub-par results even after 100,000 generations), they failed to converge to meaningful solutions in our larger-scale experiments. Therefore, we do not compare PHN with GAs on large-scale setups. ",
|
| 544 |
+
"bbox": [
|
| 545 |
+
173,
|
| 546 |
+
348,
|
| 547 |
+
825,
|
| 548 |
+
433
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 5
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "Evaluation metrics: A common metric for evaluating sets of MOO solutions is the Hypervolume indicator (HV) (Zitzler & Thiele, 1999). It measures the volume in the loss space of points dominated by a solution in the evaluated set (see Appendix C). As this volume is unbounded, it is restricted to the volume in a rectangle defined by the solutions and a selected reference point. All solutions need to be bounded by the reference point, therefore we select different reference points for each experiment. In addition, we evaluate Uniformity, proposed by Mahapatra & Rajan (2020). This metric is designed to quantify how well the loss vector $\\ell ( \\theta )$ is aligned with the input ray $\\mathbfit { \\Delta } \\mathbf { r }$ . Formally, for any point $\\theta$ in the solution space and reference $\\mathbfit { \\Delta } \\mathbf { r }$ we define the non-uniformity $\\mu _ { r } ( \\ell ( \\theta ) ) = D _ { K L } ( \\hat { \\ell } \\| \\mathbf { 1 } / m )$ , where ˆ\\`j = P j ji ri\\`i . We define the uniformity as $1 - \\mu _ { r }$ . The main metric, HV, measures the quality of our solutions, while the uniformity measures how well the output model fits the desired preference ray. We stress that the baselines are trained and evaluated for uniformity using the same rays. ",
|
| 555 |
+
"bbox": [
|
| 556 |
+
173,
|
| 557 |
+
446,
|
| 558 |
+
825,
|
| 559 |
+
608
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 5
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "Training Strategies: In all experiments, our target network shares the same architecture as the baseline models. For our hypernetwork, we use an MLP with 2 hidden layers and linear heads. We set the hidden dimension to 100 for the Multi-MNIST and NYU experiment, and 25 for the Fairness and SARCOS datasets. The Dirichlet parameter $\\alpha$ in Alg. 1 is set to 0.2 for all experiments, as we empirically found this value to perform well across datasets and tasks. We provide a more detailed analysis on the selection of the HN’s hidden dimension and hyperparameter $\\alpha$ in Appendix B.5. Extensive experimental details are provided in Appendix A. ",
|
| 566 |
+
"bbox": [
|
| 567 |
+
173,
|
| 568 |
+
623,
|
| 569 |
+
825,
|
| 570 |
+
722
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 5
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "text",
|
| 576 |
+
"text": "Hyperparameter tuning: For PHN, we select hyperparameters based on the HV computed on a validation set. Selecting hyperparameters for the baselines is challenging because there are no clear criteria that can be computed quickly with many rays. Selecting HPs based on HV requires to train each baseline multiple times on all rays. Therefore, we select hyperparameters based on a single ray and apply the selected hyperparameters to all rays. Specifically, we collect all models trained using all hyperparameter configurations, and remove dominated solutions. Finally, we select the combination of HPs with the highest uniformity. ",
|
| 577 |
+
"bbox": [
|
| 578 |
+
173,
|
| 579 |
+
734,
|
| 580 |
+
825,
|
| 581 |
+
833
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 5
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "text",
|
| 587 |
+
"text": "5.1 ILLUSTRATIVE EXAMPLE ",
|
| 588 |
+
"text_level": 1,
|
| 589 |
+
"bbox": [
|
| 590 |
+
174,
|
| 591 |
+
849,
|
| 592 |
+
387,
|
| 593 |
+
863
|
| 594 |
+
],
|
| 595 |
+
"page_idx": 5
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"type": "text",
|
| 599 |
+
"text": "We evaluate PHN on an illustrative MOO problem whose Pareto front is known (Fonseca, 1995). Here, ",
|
| 600 |
+
"bbox": [
|
| 601 |
+
173,
|
| 602 |
+
875,
|
| 603 |
+
825,
|
| 604 |
+
904
|
| 605 |
+
],
|
| 606 |
+
"page_idx": 5
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"type": "equation",
|
| 610 |
+
"img_path": "images/d756dbd012ba94e11ecb00bb5021ad0b37faa1305a4bce87de30e62b3740cc13.jpg",
|
| 611 |
+
"text": "$$\n\\ell _ { 1 } ( \\theta ) = 1 - \\exp \\big \\{ - \\| \\theta - { \\bf 1 } / \\sqrt { d } \\| _ { 2 } ^ { 2 } \\big \\} , \\quad \\ell _ { 2 } ( \\theta ) = 1 - \\exp \\big \\{ - \\| \\theta + { \\bf 1 } / \\sqrt { d } \\| _ { 2 } ^ { 2 } \\big \\} ,\n$$",
|
| 612 |
+
"text_format": "latex",
|
| 613 |
+
"bbox": [
|
| 614 |
+
240,
|
| 615 |
+
905,
|
| 616 |
+
756,
|
| 617 |
+
926
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 5
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "table",
|
| 623 |
+
"img_path": "images/91c8e0e553d1fd5f3deedf096c4055c7e7fb107e3ad7b45a6a7f3a8053293f5a.jpg",
|
| 624 |
+
"table_caption": [
|
| 625 |
+
"Table 1: Evaluation of the different methods on three Multi-MNIST datasets. "
|
| 626 |
+
],
|
| 627 |
+
"table_footnote": [],
|
| 628 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">Multi-Fashion+MNIST</td><td colspan=\"2\">Multi-Fashion</td><td colspan=\"2\">Multi-MNIST</td><td></td></tr><tr><td></td><td>HV个</td><td>Unif.介</td><td>HV介</td><td>Unif.介</td><td>HV个</td><td>Unif.介</td><td>Run-time (min.,Tesla V100)</td></tr><tr><td>LS</td><td>2.70</td><td>0.849</td><td>2.14</td><td>0.835</td><td>2.85</td><td>0.846</td><td>9.0×5=45</td></tr><tr><td>CPMTL</td><td>2.76</td><td>1</td><td>2.16</td><td>-</td><td>2.88</td><td>-</td><td>10.2 × 5=51</td></tr><tr><td>PMTL</td><td>2.67</td><td>0.776</td><td>2.13</td><td>0.192</td><td>2.86</td><td>0.793</td><td>17.0 ×5=85</td></tr><tr><td>EPO</td><td>2.67</td><td>0.892</td><td>2.15</td><td>0.906</td><td>2.85</td><td>0.918</td><td>23.6× 5=118</td></tr><tr><td>PHN-LS (ours)</td><td>2.75</td><td>0.894</td><td>2.19</td><td>0.900</td><td>2.90</td><td>0.901</td><td>12</td></tr><tr><td>PHN-EPO (ours)</td><td>2.78</td><td>0.952</td><td>2.19</td><td>0.921</td><td>2.78</td><td>0.920</td><td>27</td></tr></table>",
|
| 629 |
+
"bbox": [
|
| 630 |
+
251,
|
| 631 |
+
126,
|
| 632 |
+
743,
|
| 633 |
+
257
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 6
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "with parameters $\\boldsymbol { \\theta } \\in \\mathbb { R } ^ { d }$ and $d = 1 0 0$ . This problem has a non-convex Pareto front in $\\mathbb { R } ^ { 2 }$ . We compared PHN with EPO, PMTL, MGDA, and two genetic algorithms (GAs) NSGA-III and MOEA/D. The results are presented in Figure 1. Linear scalarization (LS) fails to generate solutions in the concave part of the Pareto front, as theoretically shown in Boyd et al. (2004). PMTL and EPO generate solutions along the entire PF, but the solutions generated by PMTL are only optimized to be in the vicinity of the preference vector $\\pmb { r }$ . Results for MGDA and MOEA/D algorithms are shown in Appendix B.1. Our PHN-EPO generates a continuous cover of the PF in a single run. In addition, PHN-EPO returns exact Pareto optimal solutions, mapping an input preference to its corresponding point on the front. We note that similar to the EPO method, PHN-EPO can learn non-convex Pareto fronts. Additional synthetic experiments with non-convex, known Pareto fronts are presented in Appendix B.1. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
173,
|
| 642 |
+
281,
|
| 643 |
+
826,
|
| 644 |
+
434
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 6
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "5.2 IMAGE CLASSIFICATION ",
|
| 651 |
+
"text_level": 1,
|
| 652 |
+
"bbox": [
|
| 653 |
+
174,
|
| 654 |
+
452,
|
| 655 |
+
383,
|
| 656 |
+
465
|
| 657 |
+
],
|
| 658 |
+
"page_idx": 6
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"type": "text",
|
| 662 |
+
"text": "We evaluate all methods on three MOO benchmark datasets: (1) Multi-MNIST (Sabour et al., 2017); (2) Multi-Fashion, and (3) Multi-Fashion $^ +$ MNIST. In each dataset, two instances are sampled uniformly at random from the MNIST (LeCun et al., 1998) or Fashion-MNIST (Xiao et al., 2017) datasets. The two images are merged into a new image by placing one at the top-left corner and the other at the bottom-right corner. The sampled images can be shifted up to four pixels in each direction. Each dataset consists of 120,000 training examples and 20,000 test set examples. We allocate $10 \\%$ of each training set for constructing validation sets. We train 5 models for each baseline, using evenly spaced rays. The results are presented in Figure 3 and Table 1. The HV was calculated with reference point $( 2 , 2 )$ . PHN outperforms all other methods in terms of HV and uniformity, with significant improvement in run time. To better understand the behavior of PHN while varying the input preference vector, we visualize the per-pixel prediction contribution in Appendix B.3. ",
|
| 663 |
+
"bbox": [
|
| 664 |
+
173,
|
| 665 |
+
477,
|
| 666 |
+
826,
|
| 667 |
+
631
|
| 668 |
+
],
|
| 669 |
+
"page_idx": 6
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"type": "text",
|
| 673 |
+
"text": "5.3 FAIRNESS ",
|
| 674 |
+
"text_level": 1,
|
| 675 |
+
"bbox": [
|
| 676 |
+
174,
|
| 677 |
+
647,
|
| 678 |
+
282,
|
| 679 |
+
661
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 6
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "image",
|
| 685 |
+
"img_path": "images/57f9a4447d18ad70f85a2aac96e19919d9180628cfe9c78d9e27ebde8ba946fc.jpg",
|
| 686 |
+
"image_caption": [
|
| 687 |
+
"Figure 4: Accuracy-Fairness trade-off : The trade-off between the main classification loss and the two fairness losses, on the test sets of the three fairness datasets. Each line corresponds to a different solution along the Pareto front, generated using PHN-EPO. "
|
| 688 |
+
],
|
| 689 |
+
"image_footnote": [],
|
| 690 |
+
"bbox": [
|
| 691 |
+
187,
|
| 692 |
+
675,
|
| 693 |
+
812,
|
| 694 |
+
820
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 6
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Fairness has become a popular topic in machine learning in recent years (Mehrabi et al., 2019), and numerous approaches have been proposed for modeling and incorporating fairness into ML systems (Dwork et al., 2018; Kamishima et al., 2012; Zafar et al., 2019). Here, we adopt the approach of Bechavod & Ligett (2017). They proposed a 3-dimensional optimization problem, with a classification objective and two fairness objectives: False Positive (FP) fairness, and False Negative (FN) fairness. We compare PHN with EPO, PMTL, and LS on three commonly used fairness datasets: Adult (Dua & Graff, 2017), Default (Yeh & Lien, 2009) and Bank (Moro et al., 2014). ",
|
| 701 |
+
"bbox": [
|
| 702 |
+
174,
|
| 703 |
+
895,
|
| 704 |
+
823,
|
| 705 |
+
924
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 6
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "table",
|
| 711 |
+
"img_path": "images/b44941f5f9a3bc089c7162ba8d7968966c7719cc132a583f1679973f2f8223c5.jpg",
|
| 712 |
+
"table_caption": [
|
| 713 |
+
"Table 2: Comparison on three Fairness datasets. Run-time is evaluated on the Adult dataset. "
|
| 714 |
+
],
|
| 715 |
+
"table_footnote": [],
|
| 716 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">Adult</td><td colspan=\"2\">Default</td><td colspan=\"2\">Bank</td></tr><tr><td></td><td>HV个 Unif.介</td><td></td><td>HV个Unif.个</td><td></td><td>HV个Unif.介</td><td>Run-time (min., Tesla V100)</td></tr><tr><td>LS</td><td>0.628</td><td>0.109</td><td>0.522</td><td>0.069</td><td>0.704 0.215</td><td>0.9 × 10=9.0</td></tr><tr><td>PMTL</td><td>0.614</td><td>0.458</td><td>0.548</td><td>0.471</td><td>0.638 0.497</td><td>2.7 × 10= 26.6</td></tr><tr><td>EPO</td><td>0.608</td><td>0.734</td><td>0.537</td><td>0.533</td><td>0.713 0.881</td><td>1.6 × 10= 15.5</td></tr><tr><td>PHN-LS (ours)</td><td>0.658</td><td>0.289</td><td>0.551</td><td>0.108</td><td>0.730 0.615</td><td>1.1</td></tr><tr><td>PHN-EPO (ours)</td><td>0.648</td><td>0.701</td><td>0.548</td><td>0.359</td><td>0.748 0.821</td><td>1.8</td></tr></table>",
|
| 717 |
+
"bbox": [
|
| 718 |
+
294,
|
| 719 |
+
126,
|
| 720 |
+
704,
|
| 721 |
+
247
|
| 722 |
+
],
|
| 723 |
+
"page_idx": 7
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"type": "text",
|
| 727 |
+
"text": "",
|
| 728 |
+
"bbox": [
|
| 729 |
+
173,
|
| 730 |
+
271,
|
| 731 |
+
825,
|
| 732 |
+
340
|
| 733 |
+
],
|
| 734 |
+
"page_idx": 7
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"type": "text",
|
| 738 |
+
"text": "Each dataset is divided into train/validation/test sets of sizes $7 0 \\% / 1 0 \\% / 2 0 \\%$ respectively. All baselines are trained and evaluated on 10 preference rays. We present the results in Table 2. HV calculated with reference point $( 1 , 1 , 1 )$ . PHN achieves the best HV performance across all datasets, with reduced training time compared to baselines. EPO performs best in terms of uniformity, however, recall it is evaluated on its training rays. We visualize the accuracy-fairness trade-off achieved by PHN in Figure 4. We also tested GAs on this task but the runtime was extremely high (two days, compared with a runtime of minutes for gradient-based methods) with poor performance. ",
|
| 739 |
+
"bbox": [
|
| 740 |
+
173,
|
| 741 |
+
347,
|
| 742 |
+
825,
|
| 743 |
+
445
|
| 744 |
+
],
|
| 745 |
+
"page_idx": 7
|
| 746 |
+
},
|
| 747 |
+
{
|
| 748 |
+
"type": "text",
|
| 749 |
+
"text": "5.4 PIXEL-WISE CLASSIFICATION AND REGRESSION ",
|
| 750 |
+
"text_level": 1,
|
| 751 |
+
"bbox": [
|
| 752 |
+
174,
|
| 753 |
+
462,
|
| 754 |
+
547,
|
| 755 |
+
477
|
| 756 |
+
],
|
| 757 |
+
"page_idx": 7
|
| 758 |
+
},
|
| 759 |
+
{
|
| 760 |
+
"type": "text",
|
| 761 |
+
"text": "Image segmentation and depth estimation are key problems in computer vision with various applications (Minaee et al., 2020; Bhoi, 2019). We compare PHN to the other methods on the NYUv2 dataset (Silberman et al., 2012). NYUv2 is a challenging indoor scene dataset that consists of 1449 RGBD images and dense per-pixel labeling. We use this dataset as a multitask learning benchmark for semantic segmentation and depth estimation tasks. We split the dataset into train/validation/test sets of sizes $7 0 \\% / 1 0 \\% / 2 0 \\%$ respectively, and use an ENet-based architecture for the target network (Paszke et al., 2016). Each baseline method is trained five times using five evenly spaced rays. The results are presented in Table 3. HV is calculated with reference point $( 3 , 3 )$ . PHN-EPO achieves the best HV and uniformity, while also being faster than the baselines. ",
|
| 762 |
+
"bbox": [
|
| 763 |
+
174,
|
| 764 |
+
481,
|
| 765 |
+
825,
|
| 766 |
+
607
|
| 767 |
+
],
|
| 768 |
+
"page_idx": 7
|
| 769 |
+
},
|
| 770 |
+
{
|
| 771 |
+
"type": "table",
|
| 772 |
+
"img_path": "images/065ac94d4ea39d4f795cd9c37e8badf3ddab1ee00fb999469e5f078f9a880d93.jpg",
|
| 773 |
+
"table_caption": [
|
| 774 |
+
"Table 3: Comparison on NYUv2. "
|
| 775 |
+
],
|
| 776 |
+
"table_footnote": [],
|
| 777 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">NYUv2</td></tr><tr><td></td><td>HV介</td><td>Unif.介</td><td>Run-time (hours,Tesla V100)</td></tr><tr><td>LS</td><td>3.550</td><td>0.666</td><td>0.58 × 5=2.92</td></tr><tr><td>PMTL</td><td>3.554</td><td>0.679</td><td>0.96× 5=4.79</td></tr><tr><td>CPMTL</td><td>3.570</td><td>-</td><td>0.71 × 5=3.55</td></tr><tr><td>EPO</td><td>3.266</td><td>0.728</td><td>1.02 × 5=5.11</td></tr><tr><td>PHN-LS (ours)</td><td>3.546</td><td>0.798</td><td>0.67</td></tr><tr><td>PHN-EPO (ours)</td><td>3.589</td><td>0.820</td><td>1.04</td></tr></table>",
|
| 778 |
+
"bbox": [
|
| 779 |
+
173,
|
| 780 |
+
645,
|
| 781 |
+
488,
|
| 782 |
+
775
|
| 783 |
+
],
|
| 784 |
+
"page_idx": 7
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"type": "table",
|
| 788 |
+
"img_path": "images/03f679f307ff866e4ce63b1fd70e88019a600ef84c48283da852120c1032b89b.jpg",
|
| 789 |
+
"table_caption": [
|
| 790 |
+
"Table 4: Comparison on SARCOS dataset. "
|
| 791 |
+
],
|
| 792 |
+
"table_footnote": [],
|
| 793 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">SARCOS</td></tr><tr><td></td><td>HV个 Unif.介</td><td>Run-time (hours,Tesla V100)</td></tr><tr><td>LS</td><td>0.688</td><td>-0.008</td><td>0.17 × 20= 3.3</td></tr><tr><td>EPO</td><td>0.637</td><td>0.548</td><td>0.5× 20=10</td></tr><tr><td>PHN-LS (ours)</td><td>0.693</td><td>0.020</td><td>0.2</td></tr><tr><td>PHN-EPO (ours)</td><td>0.728</td><td>0.258</td><td>0.8</td></tr></table>",
|
| 794 |
+
"bbox": [
|
| 795 |
+
521,
|
| 796 |
+
650,
|
| 797 |
+
797,
|
| 798 |
+
761
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 7
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "5.5 MULTITASK REGRESSION ",
|
| 805 |
+
"text_level": 1,
|
| 806 |
+
"bbox": [
|
| 807 |
+
176,
|
| 808 |
+
800,
|
| 809 |
+
392,
|
| 810 |
+
814
|
| 811 |
+
],
|
| 812 |
+
"page_idx": 7
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"type": "text",
|
| 816 |
+
"text": "When learning with many objectives using preference-specific models, generating a good coverage of the solution space becomes too expensive in computation and storage space, as the number of rays needed grows with the number of dimensions. As a result, PHN provides a major improvement in training time and solution space coverage (measured by HV). To evaluate PHN in such settings, we use the SARCOS dataset (Vijayakumar), a commonly used dataset for multitask regression (Zhang & Yang, 2017). SARCOS presents an inverse dynamics problem with 7 regression tasks and 21 explanatory variables. We omit PMTL from this experiment because its training time is significantly longer compared to other baselines, with relatively low performance. For LS and EPO, we train 20 preference-specific models. The results are presented in Table 4. HV calculated with reference point $( 1 , . . . , 1 )$ . As before, PHN performs best in terms of HV, while reducing the overall runtime. ",
|
| 817 |
+
"bbox": [
|
| 818 |
+
173,
|
| 819 |
+
825,
|
| 820 |
+
825,
|
| 821 |
+
924
|
| 822 |
+
],
|
| 823 |
+
"page_idx": 7
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"type": "text",
|
| 827 |
+
"text": "",
|
| 828 |
+
"bbox": [
|
| 829 |
+
173,
|
| 830 |
+
103,
|
| 831 |
+
823,
|
| 832 |
+
146
|
| 833 |
+
],
|
| 834 |
+
"page_idx": 8
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"type": "text",
|
| 838 |
+
"text": "6 THE QUALITY-RUNTIME TRADE-OFF ",
|
| 839 |
+
"text_level": 1,
|
| 840 |
+
"bbox": [
|
| 841 |
+
174,
|
| 842 |
+
172,
|
| 843 |
+
513,
|
| 844 |
+
189
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 8
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "text",
|
| 850 |
+
"text": "While PHN learns the entire front in a single model, the competing methods need to train multiple models to cover the Pareto front. As a result, these methods have a clear trade-off between their performance and their run time. To better understand this trade-off, Figure 5 shows the HV and run time (in log-scale) of LS and EPO when training a various number of models. For Fashion-MNIST, we trained 25 models, and at the inference time, we selected subsets of various sizes (1 ray, 2 rays, etc) and computed their HV. The shaded area in Figure 5 reflects the variance over different selections of ray subsets. We similarly trained 30 EPO/LS models for Adult and 40 for SARCOS. PHN-EPO achieves superior or comparable hypervolume while being an order of magnitude faster. PHN-LS is even faster, but this may come at the expense of a lower hypervolume. ",
|
| 851 |
+
"bbox": [
|
| 852 |
+
174,
|
| 853 |
+
208,
|
| 854 |
+
825,
|
| 855 |
+
334
|
| 856 |
+
],
|
| 857 |
+
"page_idx": 8
|
| 858 |
+
},
|
| 859 |
+
{
|
| 860 |
+
"type": "text",
|
| 861 |
+
"text": "To further understand the source of PHN performance gain, we evaluate the HV on the same rays used for the competing methods (see Appendix B.4). In many cases, PHN outperforms models trained on specific rays, when evaluated on those exact rays. We attribute the performance gain to the inductive bias effect that PHN induces on a model by sharing weights across rays. ",
|
| 862 |
+
"bbox": [
|
| 863 |
+
174,
|
| 864 |
+
340,
|
| 865 |
+
825,
|
| 866 |
+
397
|
| 867 |
+
],
|
| 868 |
+
"page_idx": 8
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"type": "image",
|
| 872 |
+
"img_path": "images/cb4aac8bd4569ca4694a08f7a28530ef9762f887c5a1034e4cad1b07c9e185b6.jpg",
|
| 873 |
+
"image_caption": [
|
| 874 |
+
"Figure 5: HV vs runtime (min.) comparing PHN with preference-specific LS and EPO. For LS and EPO, each value was computed by evaluating with a subset of models. PHN achieves higher HV significantly faster ( $\\mathbf { \\dot { X } }$ -axis is in log scale). Shaded area marks the variance across selected subsets. "
|
| 875 |
+
],
|
| 876 |
+
"image_footnote": [],
|
| 877 |
+
"bbox": [
|
| 878 |
+
179,
|
| 879 |
+
411,
|
| 880 |
+
821,
|
| 881 |
+
571
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 8
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "7 CONCLUSION ",
|
| 888 |
+
"text_level": 1,
|
| 889 |
+
"bbox": [
|
| 890 |
+
176,
|
| 891 |
+
671,
|
| 892 |
+
318,
|
| 893 |
+
688
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 8
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "We put forward a novel MOO setup which we term Pareto Front Learning (PFL). Learning the Pareto front using a single unified model that can be applied to a specific objective preference at inference time. We propose PHN, a model for this setup based on a hypernetwork, and evaluate it on a large and diverse set of tasks and datasets. Our experiments show significant gains in both runtime and performance on all datasets. This novel approach provides users with the flexibility of selecting the operating point at inference time and opens new possibilities where user preferences can be tuned and changed at deployment. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
174,
|
| 902 |
+
707,
|
| 903 |
+
825,
|
| 904 |
+
805
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 8
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 911 |
+
"text_level": 1,
|
| 912 |
+
"bbox": [
|
| 913 |
+
176,
|
| 914 |
+
833,
|
| 915 |
+
367,
|
| 916 |
+
848
|
| 917 |
+
],
|
| 918 |
+
"page_idx": 8
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"type": "text",
|
| 922 |
+
"text": "This study was funded by a grant to GC from the Israel Science Foundation (ISF 737/2018), and by an equipment grant to GC and Bar-Ilan University from the Israel Science Foundation (ISF 2332/18). AS and AN were funded by a grant from the Israeli Innovation Authority, through the AVATAR consortium. ",
|
| 923 |
+
"bbox": [
|
| 924 |
+
174,
|
| 925 |
+
867,
|
| 926 |
+
825,
|
| 927 |
+
922
|
| 928 |
+
],
|
| 929 |
+
"page_idx": 8
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"type": "text",
|
| 933 |
+
"text": "REFERENCES ",
|
| 934 |
+
"text_level": 1,
|
| 935 |
+
"bbox": [
|
| 936 |
+
176,
|
| 937 |
+
103,
|
| 938 |
+
287,
|
| 939 |
+
117
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 9
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "text",
|
| 945 |
+
"text": "Yahav Bechavod and Katrina Ligett. Penalizing unfairness in binary classification. arXiv preprint arXiv:1707.00044, 2017. ",
|
| 946 |
+
"bbox": [
|
| 947 |
+
173,
|
| 948 |
+
126,
|
| 949 |
+
823,
|
| 950 |
+
154
|
| 951 |
+
],
|
| 952 |
+
"page_idx": 9
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"type": "text",
|
| 956 |
+
"text": "Amlaan Bhoi. Monocular depth estimation: A survey. ArXiv, abs/1901.09402, 2019. ",
|
| 957 |
+
"bbox": [
|
| 958 |
+
173,
|
| 959 |
+
162,
|
| 960 |
+
728,
|
| 961 |
+
179
|
| 962 |
+
],
|
| 963 |
+
"page_idx": 9
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"type": "text",
|
| 967 |
+
"text": "Stephen Boyd, Stephen P Boyd, and Lieven Vandenberghe. Convex optimization. Cambridge university press, 2004. ",
|
| 968 |
+
"bbox": [
|
| 969 |
+
173,
|
| 970 |
+
186,
|
| 971 |
+
825,
|
| 972 |
+
215
|
| 973 |
+
],
|
| 974 |
+
"page_idx": 9
|
| 975 |
+
},
|
| 976 |
+
{
|
| 977 |
+
"type": "text",
|
| 978 |
+
"text": "Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International Conference on Machine Learning, pp. 794–803. PMLR, 2018. ",
|
| 979 |
+
"bbox": [
|
| 980 |
+
173,
|
| 981 |
+
224,
|
| 982 |
+
823,
|
| 983 |
+
267
|
| 984 |
+
],
|
| 985 |
+
"page_idx": 9
|
| 986 |
+
},
|
| 987 |
+
{
|
| 988 |
+
"type": "text",
|
| 989 |
+
"text": "George Cybenko. Approximation by superpositions of a sigmoidal function. Math. Control. Signals Syst., pp. 303–314, 1989. ",
|
| 990 |
+
"bbox": [
|
| 991 |
+
173,
|
| 992 |
+
275,
|
| 993 |
+
823,
|
| 994 |
+
305
|
| 995 |
+
],
|
| 996 |
+
"page_idx": 9
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"type": "text",
|
| 1000 |
+
"text": "Indraneel Das and John E Dennis. Normal-boundary intersection: A new method for generating the pareto surface in nonlinear multicriteria optimization problems. SIAM journal on optimization, 8 (3):631–657, 1998. ",
|
| 1001 |
+
"bbox": [
|
| 1002 |
+
173,
|
| 1003 |
+
314,
|
| 1004 |
+
823,
|
| 1005 |
+
356
|
| 1006 |
+
],
|
| 1007 |
+
"page_idx": 9
|
| 1008 |
+
},
|
| 1009 |
+
{
|
| 1010 |
+
"type": "text",
|
| 1011 |
+
"text": "Kalyanmoy Deb and Himanshu Jain. An evolutionary many-objective optimization algorithm using reference-point-based nondominated sorting approach, part i: solving problems with box constraints. IEEE transactions on evolutionary computation, 18(4):577–601, 2013. ",
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
174,
|
| 1014 |
+
364,
|
| 1015 |
+
825,
|
| 1016 |
+
409
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Kalyanmoy Deb, Samir Agrawal, Amrit Pratap, and T. Meyarivan. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput., pp. 182–197, 2002. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
169,
|
| 1025 |
+
416,
|
| 1026 |
+
823,
|
| 1027 |
+
445
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 9
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Alexey Dosovitskiy and Josip Djolonga. You only train once: Loss-conditional training of deep networks. In International Conference on Learning Representations, 2019. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
171,
|
| 1036 |
+
454,
|
| 1037 |
+
823,
|
| 1038 |
+
483
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 9
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
173,
|
| 1047 |
+
491,
|
| 1048 |
+
826,
|
| 1049 |
+
521
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "C. Dwork, Nicole Immorlica, A. Kalai, and Mark D. M. Leiserson. Decoupled classifiers for group-fair and efficient machine learning. In FAT, 2018. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
171,
|
| 1058 |
+
529,
|
| 1059 |
+
825,
|
| 1060 |
+
558
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Jean-Antoine Désidéri. Multiple-gradient descent algorithm (mgda) for multiobjective optimization. Comptes Rendus Mathematique, 350:313–318, 2012. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
173,
|
| 1069 |
+
566,
|
| 1070 |
+
825,
|
| 1071 |
+
595
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Matthias Ehrgott. Multicriteria optimization, volume 491. Springer Science & Business Media, 2005. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
171,
|
| 1080 |
+
603,
|
| 1081 |
+
825,
|
| 1082 |
+
621
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 9
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "Yu G Evtushenko and Mikhail Anatol’evich Posypkin. Nonuniform covering method as applied to multicriteria optimization problems with guaranteed accuracy. Computational Mathematics and Mathematical Physics, 53(2):144–157, 2013. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
176,
|
| 1091 |
+
627,
|
| 1092 |
+
825,
|
| 1093 |
+
671
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Jörg Fliege and Benar Fux Svaiter. Steepest descent methods for multicriteria optimization. Math. Methods Oper. Res., 51(3):479–494, 2000. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
171,
|
| 1102 |
+
679,
|
| 1103 |
+
825,
|
| 1104 |
+
708
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Carlos Manuel Mira da Fonseca. Multiobjective genetic algorithms with application to control engineering problems. PhD thesis, University of Sheffield, 1995. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
171,
|
| 1113 |
+
717,
|
| 1114 |
+
823,
|
| 1115 |
+
746
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "David Ha, Andrew M. Dai, and Quoc V. Le. Hypernetworks. ArXiv, abs/1609.09106, 2017. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
753,
|
| 1125 |
+
774,
|
| 1126 |
+
770
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Daniel Hernández-Lobato, Jose Hernandez-Lobato, Amar Shah, and Ryan Adams. Predictive entropy search for multi-objective bayesian optimization. In International Conference on Machine Learning, pp. 1492–1501, 2016. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
176,
|
| 1135 |
+
779,
|
| 1136 |
+
825,
|
| 1137 |
+
821
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Chi-Hung Hsu, Shu-Huan Chang, Jhao-Hong Liang, Hsin-Ping Chou, Chun-Hao Liu, Shih-Chieh Chang, Jia-Yu Pan, Yu-Ting Chen, Wei Wei, and Da-Cheng Juan. Monas: Multi-objective neural architecture search using reinforcement learning. arXiv preprint arXiv:1806.10332, 2018. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
176,
|
| 1146 |
+
829,
|
| 1147 |
+
823,
|
| 1148 |
+
873
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "X. Huang and Serge J. Belongie. Arbitrary style transfer in real-time with adaptive instance normalization. 2017 IEEE International Conference on Computer Vision (ICCV), pp. 1510–1519, 2017. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
174,
|
| 1157 |
+
881,
|
| 1158 |
+
826,
|
| 1159 |
+
922
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Toshihiro Kamishima, Shotaro Akaho, Hideki Asoh, and Jun Sakuma. Fairness-aware classifier with prejudice remover regularizer. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 35–50. Springer, 2012. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
176,
|
| 1168 |
+
103,
|
| 1169 |
+
823,
|
| 1170 |
+
147
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 10
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7482–7491, 2018. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
176,
|
| 1179 |
+
154,
|
| 1180 |
+
823,
|
| 1181 |
+
196
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 10
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. CoRR, abs/1412.6980, 2015. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
205,
|
| 1191 |
+
825,
|
| 1192 |
+
233
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 10
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "Sylwester Klocek, Lukasz Maziarka, Maciej Wolczyk, J. Tabor, J. Nowak, and M. Smieja. Hypernetwork functional image representation. In ICANN, 2019. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
242,
|
| 1202 |
+
825,
|
| 1203 |
+
271
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 10
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
279,
|
| 1213 |
+
825,
|
| 1214 |
+
309
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 10
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "X. Lin, Zhiyuan Yang, Q. Zhang, and S. Kwong. Controllable pareto multi-task learning. ArXiv, abs/2010.06313, 2020. ",
|
| 1221 |
+
"bbox": [
|
| 1222 |
+
173,
|
| 1223 |
+
315,
|
| 1224 |
+
825,
|
| 1225 |
+
345
|
| 1226 |
+
],
|
| 1227 |
+
"page_idx": 10
|
| 1228 |
+
},
|
| 1229 |
+
{
|
| 1230 |
+
"type": "text",
|
| 1231 |
+
"text": "Xi Lin, Hui-Ling Zhen, Zhenhua Li, Qing-Fu Zhang, and Sam Kwong. Pareto multi-task learning. In Advances in Neural Information Processing Systems, pp. 12060–12070, 2019. ",
|
| 1232 |
+
"bbox": [
|
| 1233 |
+
173,
|
| 1234 |
+
353,
|
| 1235 |
+
823,
|
| 1236 |
+
383
|
| 1237 |
+
],
|
| 1238 |
+
"page_idx": 10
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"type": "text",
|
| 1242 |
+
"text": "Shikun Liu, Edward Johns, and Andrew J Davison. End-to-end multi-task learning with attention. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1871–1880, 2019. ",
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
178,
|
| 1245 |
+
390,
|
| 1246 |
+
825,
|
| 1247 |
+
433
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 10
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "text",
|
| 1253 |
+
"text": "Suyun Liu and Luis Nunes Vicente. Accuracy and fairness trade-offs in machine learning: A stochastic multi-objective approach. arXiv preprint arXiv:2008.01132, 2020. ",
|
| 1254 |
+
"bbox": [
|
| 1255 |
+
171,
|
| 1256 |
+
440,
|
| 1257 |
+
823,
|
| 1258 |
+
470
|
| 1259 |
+
],
|
| 1260 |
+
"page_idx": 10
|
| 1261 |
+
},
|
| 1262 |
+
{
|
| 1263 |
+
"type": "text",
|
| 1264 |
+
"text": "Jonathan Lorraine and David Duvenaud. Stochastic hyperparameter optimization through hypernetworks. arXiv preprint arXiv:1802.09419, 2018. ",
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
171,
|
| 1267 |
+
478,
|
| 1268 |
+
823,
|
| 1269 |
+
507
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 10
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Zhichao Lu, Ian Whalen, Vishnu Boddeti, Yashesh Dhebar, Kalyanmoy Deb, Erik Goodman, and Wolfgang Banzhaf. Nsga-net: neural architecture search using multi-objective genetic algorithm. In Proceedings of the Genetic and Evolutionary Computation Conference, pp. 419–427, 2019. ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
176,
|
| 1278 |
+
515,
|
| 1279 |
+
823,
|
| 1280 |
+
559
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 10
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "Shangzhen Luan, Chen Chen, Baochang Zhang, Jungong Han, and Jianzhuang Liu. Gabor convolutional networks. IEEE Transactions on Image Processing, 27(9):4357–4366, 2018. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
171,
|
| 1289 |
+
566,
|
| 1290 |
+
825,
|
| 1291 |
+
595
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 4765–4774. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/ 7062-a-unified-approach-to-interpreting-model-predictions.pdf. ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
174,
|
| 1300 |
+
603,
|
| 1301 |
+
826,
|
| 1302 |
+
674
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 10
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "text",
|
| 1308 |
+
"text": "Pingchuan Ma, Tao Du, and Wojciech Matusik. Efficient continuous pareto exploration in multi-task learning. arXiv preprint arXiv:2006.16434, 2020. ",
|
| 1309 |
+
"bbox": [
|
| 1310 |
+
174,
|
| 1311 |
+
681,
|
| 1312 |
+
823,
|
| 1313 |
+
712
|
| 1314 |
+
],
|
| 1315 |
+
"page_idx": 10
|
| 1316 |
+
},
|
| 1317 |
+
{
|
| 1318 |
+
"type": "text",
|
| 1319 |
+
"text": "Matthew Mackay, Paul Vicol, Jonathan Lorraine, David Duvenaud, and Roger Grosse. Self-tuning networks: Bilevel optimization of hyperparameters using structured best-response functions. In International Conference on Learning Representations, 2019. URL https://openreview. net/forum?id ${ . } = { }$ r1eEG20qKQ. ",
|
| 1320 |
+
"bbox": [
|
| 1321 |
+
173,
|
| 1322 |
+
719,
|
| 1323 |
+
828,
|
| 1324 |
+
776
|
| 1325 |
+
],
|
| 1326 |
+
"page_idx": 10
|
| 1327 |
+
},
|
| 1328 |
+
{
|
| 1329 |
+
"type": "text",
|
| 1330 |
+
"text": "D. Mahapatra and V. Rajan. Multi-task learning with user preferences: Gradient descent with controlled ascent in pareto optimization. 2020. ",
|
| 1331 |
+
"bbox": [
|
| 1332 |
+
174,
|
| 1333 |
+
784,
|
| 1334 |
+
823,
|
| 1335 |
+
813
|
| 1336 |
+
],
|
| 1337 |
+
"page_idx": 10
|
| 1338 |
+
},
|
| 1339 |
+
{
|
| 1340 |
+
"type": "text",
|
| 1341 |
+
"text": "N. Martínez, Martín Bertrán, and G. Sapiro. Minimax pareto fairness: A multi objective perspective. 2020. ",
|
| 1342 |
+
"bbox": [
|
| 1343 |
+
171,
|
| 1344 |
+
820,
|
| 1345 |
+
825,
|
| 1346 |
+
851
|
| 1347 |
+
],
|
| 1348 |
+
"page_idx": 10
|
| 1349 |
+
},
|
| 1350 |
+
{
|
| 1351 |
+
"type": "text",
|
| 1352 |
+
"text": "Ninareh Mehrabi, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, and A. Galstyan. A survey on bias and fairness in machine learning. ArXiv, abs/1908.09635, 2019. ",
|
| 1353 |
+
"bbox": [
|
| 1354 |
+
174,
|
| 1355 |
+
858,
|
| 1356 |
+
823,
|
| 1357 |
+
887
|
| 1358 |
+
],
|
| 1359 |
+
"page_idx": 10
|
| 1360 |
+
},
|
| 1361 |
+
{
|
| 1362 |
+
"type": "text",
|
| 1363 |
+
"text": "Shervin Minaee, Yuri Boykov, F. Porikli, Antonio J. Plaza, N. Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. ArXiv, abs/2001.05566, 2020. ",
|
| 1364 |
+
"bbox": [
|
| 1365 |
+
174,
|
| 1366 |
+
895,
|
| 1367 |
+
823,
|
| 1368 |
+
924
|
| 1369 |
+
],
|
| 1370 |
+
"page_idx": 10
|
| 1371 |
+
},
|
| 1372 |
+
{
|
| 1373 |
+
"type": "text",
|
| 1374 |
+
"text": "Sérgio Moro, Paulo Cortez, and Paulo Rita. A data-driven approach to predict the success of bank telemarketing. Decision Support Systems, 62:22–31, 2014. ",
|
| 1375 |
+
"bbox": [
|
| 1376 |
+
171,
|
| 1377 |
+
103,
|
| 1378 |
+
823,
|
| 1379 |
+
132
|
| 1380 |
+
],
|
| 1381 |
+
"page_idx": 11
|
| 1382 |
+
},
|
| 1383 |
+
{
|
| 1384 |
+
"type": "text",
|
| 1385 |
+
"text": "Eliya Nachmani and L. Wolf. Hyper-graph-network decoders for block codes. In NeurIPS, 2019. ",
|
| 1386 |
+
"bbox": [
|
| 1387 |
+
174,
|
| 1388 |
+
141,
|
| 1389 |
+
812,
|
| 1390 |
+
157
|
| 1391 |
+
],
|
| 1392 |
+
"page_idx": 11
|
| 1393 |
+
},
|
| 1394 |
+
{
|
| 1395 |
+
"type": "text",
|
| 1396 |
+
"text": "Aviv Navon, Idan Achituve, Haggai Maron, Gal Chechik, and Ethan Fetaya. Auxiliary learning by implicit differentiation. arXiv preprint arXiv:2007.02693, 2020. ",
|
| 1397 |
+
"bbox": [
|
| 1398 |
+
171,
|
| 1399 |
+
165,
|
| 1400 |
+
823,
|
| 1401 |
+
195
|
| 1402 |
+
],
|
| 1403 |
+
"page_idx": 11
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"type": "text",
|
| 1407 |
+
"text": "J. Oswald, C. Henning, J. Sacramento, and Benjamin F. Grewe. Continual learning with hypernetworks. ArXiv, abs/1906.00695, 2020. ",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
173,
|
| 1410 |
+
204,
|
| 1411 |
+
825,
|
| 1412 |
+
233
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 11
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "Simone Parisi, Matteo Pirotta, Nicola Smacchia, Luca Bascetta, and Marcello Restelli. Policy gradient approaches for multi-objective sequential decision making. In 2014 International Joint Conference on Neural Networks (IJCNN), pp. 2323–2330. IEEE, 2014. ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
174,
|
| 1421 |
+
242,
|
| 1422 |
+
825,
|
| 1423 |
+
285
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 11
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "text",
|
| 1429 |
+
"text": "Simone Parisi, Matteo Pirotta, and Marcello Restelli. Multi-objective reinforcement learning through continuous pareto manifold approximation. Journal of Artificial Intelligence Research, 57:187–227, 2016. ",
|
| 1430 |
+
"bbox": [
|
| 1431 |
+
173,
|
| 1432 |
+
294,
|
| 1433 |
+
826,
|
| 1434 |
+
337
|
| 1435 |
+
],
|
| 1436 |
+
"page_idx": 11
|
| 1437 |
+
},
|
| 1438 |
+
{
|
| 1439 |
+
"type": "text",
|
| 1440 |
+
"text": "Adam Paszke, Abhishek Chaurasia, Sangpil Kim, and E. Culurciello. Enet: A deep neural network architecture for real-time semantic segmentation. ArXiv, abs/1606.02147, 2016. ",
|
| 1441 |
+
"bbox": [
|
| 1442 |
+
173,
|
| 1443 |
+
345,
|
| 1444 |
+
821,
|
| 1445 |
+
376
|
| 1446 |
+
],
|
| 1447 |
+
"page_idx": 11
|
| 1448 |
+
},
|
| 1449 |
+
{
|
| 1450 |
+
"type": "text",
|
| 1451 |
+
"text": "Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. Film: Visual reasoning with a general conditioning layer. arXiv preprint arXiv:1709.07871, 2017. ",
|
| 1452 |
+
"bbox": [
|
| 1453 |
+
174,
|
| 1454 |
+
383,
|
| 1455 |
+
825,
|
| 1456 |
+
414
|
| 1457 |
+
],
|
| 1458 |
+
"page_idx": 11
|
| 1459 |
+
},
|
| 1460 |
+
{
|
| 1461 |
+
"type": "text",
|
| 1462 |
+
"text": "Matteo Pirotta and Marcello Restelli. Inverse reinforcement learning through policy gradient minimization. In AAAI Conference on Artificial Intelligence, pp. 1993–1999. AAAI Press, 2016. ",
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
173,
|
| 1465 |
+
422,
|
| 1466 |
+
826,
|
| 1467 |
+
452
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 11
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "text",
|
| 1473 |
+
"text": "Matteo Pirotta, Simone Parisi, and Marcello Restelli. Multi-objective reinforcement learning with continuous pareto frontier approximation. In 29th AAAI Conference on Artificial Intelligence, AAAI 2015 and the 27th Innovative Applications of Artificial Intelligence Conference, IAAI 2015, pp. 2928–2934. AAAI Press, 2015. ",
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
174,
|
| 1476 |
+
460,
|
| 1477 |
+
826,
|
| 1478 |
+
517
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 11
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"text": "Sebastian Ruder. An overview of multi-task learning in deep neural networks, 2017. ",
|
| 1485 |
+
"bbox": [
|
| 1486 |
+
173,
|
| 1487 |
+
526,
|
| 1488 |
+
725,
|
| 1489 |
+
542
|
| 1490 |
+
],
|
| 1491 |
+
"page_idx": 11
|
| 1492 |
+
},
|
| 1493 |
+
{
|
| 1494 |
+
"type": "text",
|
| 1495 |
+
"text": "Sara Sabour, Nicholas Frosst, and Geoffrey E Hinton. Dynamic routing between capsules. In Advances in neural information processing systems, pp. 3856–3866, 2017. ",
|
| 1496 |
+
"bbox": [
|
| 1497 |
+
171,
|
| 1498 |
+
551,
|
| 1499 |
+
825,
|
| 1500 |
+
580
|
| 1501 |
+
],
|
| 1502 |
+
"page_idx": 11
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "text",
|
| 1506 |
+
"text": "Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. In Advances in Neural Information Processing Systems, pp. 527–538, 2018. ",
|
| 1507 |
+
"bbox": [
|
| 1508 |
+
171,
|
| 1509 |
+
589,
|
| 1510 |
+
823,
|
| 1511 |
+
619
|
| 1512 |
+
],
|
| 1513 |
+
"page_idx": 11
|
| 1514 |
+
},
|
| 1515 |
+
{
|
| 1516 |
+
"type": "text",
|
| 1517 |
+
"text": "Amar Shah and Zoubin Ghahramani. Pareto frontier learning with expensive correlated objectives. In International Conference on Machine Learning, pp. 1919–1927, 2016. ",
|
| 1518 |
+
"bbox": [
|
| 1519 |
+
171,
|
| 1520 |
+
627,
|
| 1521 |
+
823,
|
| 1522 |
+
657
|
| 1523 |
+
],
|
| 1524 |
+
"page_idx": 11
|
| 1525 |
+
},
|
| 1526 |
+
{
|
| 1527 |
+
"type": "text",
|
| 1528 |
+
"text": "Aviv Shamsian, Aviv Navon, Ethan Fetaya, and Gal Chechik. Personalized federated learning using hypernetworks. arXiv preprint arXiv:2103.04628, 2021. ",
|
| 1529 |
+
"bbox": [
|
| 1530 |
+
171,
|
| 1531 |
+
665,
|
| 1532 |
+
823,
|
| 1533 |
+
695
|
| 1534 |
+
],
|
| 1535 |
+
"page_idx": 11
|
| 1536 |
+
},
|
| 1537 |
+
{
|
| 1538 |
+
"type": "text",
|
| 1539 |
+
"text": "Nathan Silberman, Derek Hoiem, Pushmeet Kohli, and Rob Fergus. Indoor segmentation and support inference from rgbd images. In European conference on computer vision, pp. 746–760. Springer, 2012. ",
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
174,
|
| 1542 |
+
704,
|
| 1543 |
+
825,
|
| 1544 |
+
747
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 11
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "text",
|
| 1550 |
+
"text": "Trevor Standley, Amir R Zamir, Dawn Chen, Leonidas Guibas, Jitendra Malik, and Silvio Savarese. Which tasks should be learned together in multi-task learning? arXiv preprint arXiv:1905.07553, 2019. ",
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
174,
|
| 1553 |
+
756,
|
| 1554 |
+
826,
|
| 1555 |
+
799
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 11
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "text",
|
| 1561 |
+
"text": "J. Suarez. Character-level language modeling with recurrent highway hypernetworks. 2017. ",
|
| 1562 |
+
"bbox": [
|
| 1563 |
+
171,
|
| 1564 |
+
808,
|
| 1565 |
+
776,
|
| 1566 |
+
824
|
| 1567 |
+
],
|
| 1568 |
+
"page_idx": 11
|
| 1569 |
+
},
|
| 1570 |
+
{
|
| 1571 |
+
"type": "text",
|
| 1572 |
+
"text": "Kristof Van Moffaert and Ann Nowé. Multi-objective reinforcement learning using sets of pareto dominating policies. The Journal of Machine Learning Research, 15(1):3483–3512, 2014. ",
|
| 1573 |
+
"bbox": [
|
| 1574 |
+
173,
|
| 1575 |
+
832,
|
| 1576 |
+
820,
|
| 1577 |
+
862
|
| 1578 |
+
],
|
| 1579 |
+
"page_idx": 11
|
| 1580 |
+
},
|
| 1581 |
+
{
|
| 1582 |
+
"type": "text",
|
| 1583 |
+
"text": "Sethu Vijayakumar. The sarcos dataset, 2000. URL http://www. gaussianprocess. org/gpml/data. ",
|
| 1584 |
+
"bbox": [
|
| 1585 |
+
173,
|
| 1586 |
+
869,
|
| 1587 |
+
807,
|
| 1588 |
+
886
|
| 1589 |
+
],
|
| 1590 |
+
"page_idx": 11
|
| 1591 |
+
},
|
| 1592 |
+
{
|
| 1593 |
+
"type": "text",
|
| 1594 |
+
"text": "Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. ",
|
| 1595 |
+
"bbox": [
|
| 1596 |
+
174,
|
| 1597 |
+
895,
|
| 1598 |
+
820,
|
| 1599 |
+
924
|
| 1600 |
+
],
|
| 1601 |
+
"page_idx": 11
|
| 1602 |
+
},
|
| 1603 |
+
{
|
| 1604 |
+
"type": "text",
|
| 1605 |
+
"text": "Runzhe Yang, Xingyuan Sun, and Karthik Narasimhan. A generalized algorithm for multi-objective reinforcement learning and policy adaptation. In Advances in Neural Information Processing Systems, pp. 14636–14647, 2019. ",
|
| 1606 |
+
"bbox": [
|
| 1607 |
+
176,
|
| 1608 |
+
103,
|
| 1609 |
+
823,
|
| 1610 |
+
146
|
| 1611 |
+
],
|
| 1612 |
+
"page_idx": 12
|
| 1613 |
+
},
|
| 1614 |
+
{
|
| 1615 |
+
"type": "text",
|
| 1616 |
+
"text": "I-Cheng Yeh and Che-hui Lien. The comparisons of data mining techniques for the predictive accuracy of probability of default of credit card clients. Expert Systems with Applications, 36(2): 2473–2480, 2009. ",
|
| 1617 |
+
"bbox": [
|
| 1618 |
+
174,
|
| 1619 |
+
155,
|
| 1620 |
+
823,
|
| 1621 |
+
196
|
| 1622 |
+
],
|
| 1623 |
+
"page_idx": 12
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"type": "text",
|
| 1627 |
+
"text": "Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez-Rodriguez, and Krishna P Gummadi. Fairness constraints: A flexible approach for fair classification. J. Mach. Learn. Res., 20(75):1–42, 2019. ",
|
| 1628 |
+
"bbox": [
|
| 1629 |
+
173,
|
| 1630 |
+
205,
|
| 1631 |
+
825,
|
| 1632 |
+
234
|
| 1633 |
+
],
|
| 1634 |
+
"page_idx": 12
|
| 1635 |
+
},
|
| 1636 |
+
{
|
| 1637 |
+
"type": "text",
|
| 1638 |
+
"text": "Qingfu Zhang and Hui Li. Moea/d: A multiobjective evolutionary algorithm based on decomposition. IEEE Transactions on evolutionary computation, 11(6):712–731, 2007. ",
|
| 1639 |
+
"bbox": [
|
| 1640 |
+
176,
|
| 1641 |
+
244,
|
| 1642 |
+
825,
|
| 1643 |
+
273
|
| 1644 |
+
],
|
| 1645 |
+
"page_idx": 12
|
| 1646 |
+
},
|
| 1647 |
+
{
|
| 1648 |
+
"type": "text",
|
| 1649 |
+
"text": "Yu Zhang and Qiang Yang. A survey on multi-task learning. arXiv preprint arXiv:1707.08114, 2017. ",
|
| 1650 |
+
"bbox": [
|
| 1651 |
+
173,
|
| 1652 |
+
281,
|
| 1653 |
+
825,
|
| 1654 |
+
297
|
| 1655 |
+
],
|
| 1656 |
+
"page_idx": 12
|
| 1657 |
+
},
|
| 1658 |
+
{
|
| 1659 |
+
"type": "text",
|
| 1660 |
+
"text": "Eckart Zitzler and Lothar Thiele. Multiobjective evolutionary algorithms: a comparative case study and the strength pareto approach. IEEE transactions on Evolutionary Computation, 3(4):257–271, 1999. ",
|
| 1661 |
+
"bbox": [
|
| 1662 |
+
174,
|
| 1663 |
+
306,
|
| 1664 |
+
825,
|
| 1665 |
+
348
|
| 1666 |
+
],
|
| 1667 |
+
"page_idx": 12
|
| 1668 |
+
},
|
| 1669 |
+
{
|
| 1670 |
+
"type": "text",
|
| 1671 |
+
"text": "Eckart Zitzler, Kalyanmoy Deb, and Lothar Thiele. Comparison of multiobjective evolutionary algorithms: Empirical results. Evolutionary computation, 8(2):173–195, 2000. ",
|
| 1672 |
+
"bbox": [
|
| 1673 |
+
174,
|
| 1674 |
+
357,
|
| 1675 |
+
823,
|
| 1676 |
+
387
|
| 1677 |
+
],
|
| 1678 |
+
"page_idx": 12
|
| 1679 |
+
},
|
| 1680 |
+
{
|
| 1681 |
+
"type": "text",
|
| 1682 |
+
"text": "Appendix: Learning the Pareto Front with Hypernetworks ",
|
| 1683 |
+
"text_level": 1,
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
174,
|
| 1686 |
+
98,
|
| 1687 |
+
823,
|
| 1688 |
+
122
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 13
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "text",
|
| 1694 |
+
"text": "A EXPERIMENTAL DETAILS ",
|
| 1695 |
+
"bbox": [
|
| 1696 |
+
178,
|
| 1697 |
+
142,
|
| 1698 |
+
421,
|
| 1699 |
+
159
|
| 1700 |
+
],
|
| 1701 |
+
"page_idx": 13
|
| 1702 |
+
},
|
| 1703 |
+
{
|
| 1704 |
+
"type": "text",
|
| 1705 |
+
"text": "Pixelwise Classification and Regression: For NYUv2 we performed a hyperparameters search over the number of epochs and learning rates $\\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \\}$ . We train each method for 150 epochs with Adam (Kingma & Ba, 2015) optimizer and select an optimal set of learning rate and number of epochs according to Sec. 5. We evaluate PHN over 25 evenly spaced rays. ",
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
174,
|
| 1708 |
+
175,
|
| 1709 |
+
825,
|
| 1710 |
+
232
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 13
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "text",
|
| 1716 |
+
"text": "Image classification: For the Multi-MNIST, experiments we use a LeNet-based target network (LeCun et al., 1998) with two task-specific heads. We train all methods using an Adam optimizer with learning rate $1 e - 4$ for 150 epochs and batch size 256. We then choose the best number of epochs for each method using the validation set. We evaluate PHN over 25 rays. ",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
174,
|
| 1719 |
+
248,
|
| 1720 |
+
825,
|
| 1721 |
+
305
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 13
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "text",
|
| 1727 |
+
"text": "Fairness: We use a 3−layer feed-forward target network with hidden dimensions [40, 20]. We use learnable embeddings for all categorical variables. We train all methods for 35 epochs using an Adam optimizer with learning rates $\\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \\}$ . We choose the best hyperparameter configuration using the validation set. Further details on the datasets are provided in Table 5. We evaluate PHN over a sample of 150 rays. ",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
174,
|
| 1730 |
+
321,
|
| 1731 |
+
825,
|
| 1732 |
+
392
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 13
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "text",
|
| 1738 |
+
"text": "Multitask regression: For the SARCOS experiment, we use a $4 -$ layer feed-forward target network with 256 hidden dimension. All categorical features are passed through embedding layers. We train all methods for 1000 epochs using an Adam optimizer and learning rates $\\{ 1 e - 3 , 5 e - 4 , 1 e - 4 \\}$ . We choose the best hyperparameter configuration base on the validation set. We use 40,036 training examples, 4,448 validation examples, and 4,449 test examples. We evaluate PHN over a sample of 100 rays. ",
|
| 1739 |
+
"bbox": [
|
| 1740 |
+
174,
|
| 1741 |
+
410,
|
| 1742 |
+
825,
|
| 1743 |
+
493
|
| 1744 |
+
],
|
| 1745 |
+
"page_idx": 13
|
| 1746 |
+
},
|
| 1747 |
+
{
|
| 1748 |
+
"type": "table",
|
| 1749 |
+
"img_path": "images/17b5e6952c43d5289b5e9b280d1a727bca7d8d7e6aafc44e3184637594b6b68d.jpg",
|
| 1750 |
+
"table_caption": [
|
| 1751 |
+
"Table 5: Fairness datasets. "
|
| 1752 |
+
],
|
| 1753 |
+
"table_footnote": [],
|
| 1754 |
+
"table_body": "<table><tr><td></td><td>Adult Default</td><td>Bank</td></tr><tr><td>Train</td><td>32559</td><td>21600 29655</td></tr><tr><td>Validation</td><td>3618</td><td>2400 3295</td></tr><tr><td>Test</td><td>9045</td><td>6000 8238</td></tr></table>",
|
| 1755 |
+
"bbox": [
|
| 1756 |
+
387,
|
| 1757 |
+
535,
|
| 1758 |
+
607,
|
| 1759 |
+
602
|
| 1760 |
+
],
|
| 1761 |
+
"page_idx": 13
|
| 1762 |
+
},
|
| 1763 |
+
{
|
| 1764 |
+
"type": "text",
|
| 1765 |
+
"text": "B ADDITIONAL EXPERIMENTS ",
|
| 1766 |
+
"text_level": 1,
|
| 1767 |
+
"bbox": [
|
| 1768 |
+
173,
|
| 1769 |
+
633,
|
| 1770 |
+
442,
|
| 1771 |
+
648
|
| 1772 |
+
],
|
| 1773 |
+
"page_idx": 13
|
| 1774 |
+
},
|
| 1775 |
+
{
|
| 1776 |
+
"type": "image",
|
| 1777 |
+
"img_path": "images/b10e7f01b26106c431e2665ebdbaed0a37efee267dddb22da0b52ca32df0edf7.jpg",
|
| 1778 |
+
"image_caption": [
|
| 1779 |
+
"Figure 6: Illustrative example using the popular task of Fonseca (1995): The genetic algorithm MOEA/D fails to reach the exact pareto front after 100, 000 generations. MGDA reaches Pareto optimal solutions, but is not suitable for generating preference-specific solutions and only covers a small fraction of the pareto front. "
|
| 1780 |
+
],
|
| 1781 |
+
"image_footnote": [],
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
289,
|
| 1784 |
+
667,
|
| 1785 |
+
705,
|
| 1786 |
+
843
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 13
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "image",
|
| 1792 |
+
"img_path": "images/f595400e3ec7c4d6599c327849c4551608426b405a028bf07ec814aa8683bbea.jpg",
|
| 1793 |
+
"image_caption": [
|
| 1794 |
+
"Figure 7: Known Pareto front: Top: Evaluation on Problem 2 from Evtushenko & Posypkin (2013). Bottom: Evaluation on ZDT2 (Zitzler et al., 2000). PHN converges to the entire PF, mapping a ray to its corresponding solution on the front. Each circle in the PHN plots denotes a solution corresponds to the baseline rays. "
|
| 1795 |
+
],
|
| 1796 |
+
"image_footnote": [],
|
| 1797 |
+
"bbox": [
|
| 1798 |
+
187,
|
| 1799 |
+
95,
|
| 1800 |
+
805,
|
| 1801 |
+
396
|
| 1802 |
+
],
|
| 1803 |
+
"page_idx": 14
|
| 1804 |
+
},
|
| 1805 |
+
{
|
| 1806 |
+
"type": "text",
|
| 1807 |
+
"text": "B.1 KNOWN PARETO FRONT ",
|
| 1808 |
+
"text_level": 1,
|
| 1809 |
+
"bbox": [
|
| 1810 |
+
174,
|
| 1811 |
+
491,
|
| 1812 |
+
385,
|
| 1813 |
+
506
|
| 1814 |
+
],
|
| 1815 |
+
"page_idx": 14
|
| 1816 |
+
},
|
| 1817 |
+
{
|
| 1818 |
+
"type": "text",
|
| 1819 |
+
"text": "We provide two additional experiments over popular MOO benchmarks whose Pareto front is known. In addition in Figure 6, we provide additional results for MGDA (Sener & Koltun, 2018) and MOEA/D (Zhang & Li, 2007) on the illustrative example from Section 5.1. ",
|
| 1820 |
+
"bbox": [
|
| 1821 |
+
173,
|
| 1822 |
+
517,
|
| 1823 |
+
826,
|
| 1824 |
+
560
|
| 1825 |
+
],
|
| 1826 |
+
"page_idx": 14
|
| 1827 |
+
},
|
| 1828 |
+
{
|
| 1829 |
+
"type": "text",
|
| 1830 |
+
"text": "We evaluate PHN on two MOO problems with known, non-convex Pareto front: ZDT2 (Zitzler et al., 2000) and problem two from Evtushenko & Posypkin (2013), henceforth Problem2. In both problems, the density of solutions across the Pareto-optimal region is non-uniform. ",
|
| 1831 |
+
"bbox": [
|
| 1832 |
+
174,
|
| 1833 |
+
566,
|
| 1834 |
+
826,
|
| 1835 |
+
609
|
| 1836 |
+
],
|
| 1837 |
+
"page_idx": 14
|
| 1838 |
+
},
|
| 1839 |
+
{
|
| 1840 |
+
"type": "text",
|
| 1841 |
+
"text": "For a solution $\\theta = ( \\theta _ { 1 } , \\theta _ { 2 } ) \\in [ 0 , 1 ] ^ { 2 }$ , Problem2 is given by, ",
|
| 1842 |
+
"bbox": [
|
| 1843 |
+
173,
|
| 1844 |
+
614,
|
| 1845 |
+
560,
|
| 1846 |
+
631
|
| 1847 |
+
],
|
| 1848 |
+
"page_idx": 14
|
| 1849 |
+
},
|
| 1850 |
+
{
|
| 1851 |
+
"type": "equation",
|
| 1852 |
+
"img_path": "images/e770dc7692264f67c4d73e17833bf8c430eea43bd6a63efc5e34fafdb295e1f9.jpg",
|
| 1853 |
+
"text": "$$\n\\ell _ { 1 } ( \\theta ) = ( ( \\theta _ { 1 } - 1 ) \\theta _ { 2 } ^ { 2 } + 1 ) / 3 , \\quad \\ell _ { 2 } ( \\theta ) = \\theta _ { 1 } ,\n$$",
|
| 1854 |
+
"text_format": "latex",
|
| 1855 |
+
"bbox": [
|
| 1856 |
+
352,
|
| 1857 |
+
637,
|
| 1858 |
+
642,
|
| 1859 |
+
656
|
| 1860 |
+
],
|
| 1861 |
+
"page_idx": 14
|
| 1862 |
+
},
|
| 1863 |
+
{
|
| 1864 |
+
"type": "text",
|
| 1865 |
+
"text": "and ZDT2 is given by, ",
|
| 1866 |
+
"bbox": [
|
| 1867 |
+
174,
|
| 1868 |
+
662,
|
| 1869 |
+
320,
|
| 1870 |
+
678
|
| 1871 |
+
],
|
| 1872 |
+
"page_idx": 14
|
| 1873 |
+
},
|
| 1874 |
+
{
|
| 1875 |
+
"type": "equation",
|
| 1876 |
+
"img_path": "images/ee36d32e90d18ff476ed732656486603c09c41873a5d0daa259487e0a8a8cfee.jpg",
|
| 1877 |
+
"text": "$$\n\\ell _ { 1 } ( \\theta ) = \\theta _ { 1 } , \\quad \\ell _ { 2 } ( \\theta ) = 1 - \\left( \\frac { \\theta _ { 1 } } { 1 + 9 \\theta _ { 2 } } \\right) ^ { 2 } .\n$$",
|
| 1878 |
+
"text_format": "latex",
|
| 1879 |
+
"bbox": [
|
| 1880 |
+
359,
|
| 1881 |
+
676,
|
| 1882 |
+
637,
|
| 1883 |
+
713
|
| 1884 |
+
],
|
| 1885 |
+
"page_idx": 14
|
| 1886 |
+
},
|
| 1887 |
+
{
|
| 1888 |
+
"type": "text",
|
| 1889 |
+
"text": "The results are presented in Figure 7. PHN-EPO converges to the entire PF using a single HN model. \nin contrast with PHN-EPO, EPO fails to converge to the PF for all rays in ZDT2. ",
|
| 1890 |
+
"bbox": [
|
| 1891 |
+
174,
|
| 1892 |
+
715,
|
| 1893 |
+
825,
|
| 1894 |
+
744
|
| 1895 |
+
],
|
| 1896 |
+
"page_idx": 14
|
| 1897 |
+
},
|
| 1898 |
+
{
|
| 1899 |
+
"type": "text",
|
| 1900 |
+
"text": "B.2 GENERALIZATION TO UNSEEN RAYS ",
|
| 1901 |
+
"text_level": 1,
|
| 1902 |
+
"bbox": [
|
| 1903 |
+
176,
|
| 1904 |
+
761,
|
| 1905 |
+
470,
|
| 1906 |
+
776
|
| 1907 |
+
],
|
| 1908 |
+
"page_idx": 14
|
| 1909 |
+
},
|
| 1910 |
+
{
|
| 1911 |
+
"type": "text",
|
| 1912 |
+
"text": "When the number of objectives is large, the curse of dimensionality makes it likely that rays encountered in test time are \"far\" from rays encountered during training. Although we evaluated PHN on unseen rays1 through all experiments, here we would like to better examine the generalization of PHN in that scenario. We conducted controlled experiment on SARCOS dataset with 7 tasks. During training, we sample rays from a predefined grid on the 7−dimensional simplex. We use the structured approach of Das & Dennis (1998) for generating well-spaced points. During inference, we measure HV and Uniformity on two sets of rays: (i) Randomly sampled train rays (ii) Randomly sampled test rays from a shifted grid, so they are most distant from the train grid. In both cases, test samples differ from training samples. We find that testing with unseen test rays only causes a minor decrease in both HV and Uniformity compared with train rays. The HV is reduced from 0.7337 to 0.7336 and uniformity is reduced from 0.163 to 0.158. This experiment indicates that PHN generalizes well to unseen rays, even in problems with many objectives. We note that the HV results presented here are higher than the ones reported in Section 5.5. We attribute this inconsistency to change of preference vectors distribution used during training. While throught the paper we sample preference rays from a Dirichlet distribution with $\\alpha = 0 . 2$ , here we sample from a fixed, evenly spaced grid. We provide analysis on the robustness to the choice of the Dirichlet distribution parameter $\\alpha$ in Appendix B.5. ",
|
| 1913 |
+
"bbox": [
|
| 1914 |
+
173,
|
| 1915 |
+
786,
|
| 1916 |
+
825,
|
| 1917 |
+
900
|
| 1918 |
+
],
|
| 1919 |
+
"page_idx": 14
|
| 1920 |
+
},
|
| 1921 |
+
{
|
| 1922 |
+
"type": "text",
|
| 1923 |
+
"text": "",
|
| 1924 |
+
"bbox": [
|
| 1925 |
+
173,
|
| 1926 |
+
103,
|
| 1927 |
+
825,
|
| 1928 |
+
215
|
| 1929 |
+
],
|
| 1930 |
+
"page_idx": 15
|
| 1931 |
+
},
|
| 1932 |
+
{
|
| 1933 |
+
"type": "text",
|
| 1934 |
+
"text": "B.3 MNIST PHN INTERPRETATION ",
|
| 1935 |
+
"text_level": 1,
|
| 1936 |
+
"bbox": [
|
| 1937 |
+
174,
|
| 1938 |
+
231,
|
| 1939 |
+
436,
|
| 1940 |
+
246
|
| 1941 |
+
],
|
| 1942 |
+
"page_idx": 15
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"type": "image",
|
| 1946 |
+
"img_path": "images/7034159f14a61aae45d8447e637a74d8506c08f8944c8ea8968877eaaf2a5c31.jpg",
|
| 1947 |
+
"image_caption": [
|
| 1948 |
+
"Figure 8: PHN interpretation: PHN is provided with a sample from the Multi-MNIST dataset, where an image of 3 and an image 7 are overlayed. We show the effect that conditioning on different preference rays (left) has on the decision made by the model. Red pixels denote increased contribution to the prediction. See text for details. "
|
| 1949 |
+
],
|
| 1950 |
+
"image_footnote": [],
|
| 1951 |
+
"bbox": [
|
| 1952 |
+
181,
|
| 1953 |
+
255,
|
| 1954 |
+
823,
|
| 1955 |
+
372
|
| 1956 |
+
],
|
| 1957 |
+
"page_idx": 15
|
| 1958 |
+
},
|
| 1959 |
+
{
|
| 1960 |
+
"type": "text",
|
| 1961 |
+
"text": "To better understand the behaviour of PHN while varying the input preference vector, Figure 8 shows the per-pixel contribution to prediction. We use the SHAP framework (Lundberg & Lee, 2017) for visualization. Red pixels denote an increased probability for a given class, while blue pixels denote a decreased probability. The top left and bottom right digits are labeled as $\\{ 7 , 3 \\}$ respectively. In the first row (ray: (0.99, 0.01)), the model is focused on task 1 (with label 7), most of the red pixels come from the top left digit in column 7, as expected. Similarly, in the third row (ray: (0.01, 0.99)) most of the red pixels are focused on the bottom right digit in column 3. ",
|
| 1962 |
+
"bbox": [
|
| 1963 |
+
173,
|
| 1964 |
+
463,
|
| 1965 |
+
825,
|
| 1966 |
+
561
|
| 1967 |
+
],
|
| 1968 |
+
"page_idx": 15
|
| 1969 |
+
},
|
| 1970 |
+
{
|
| 1971 |
+
"type": "text",
|
| 1972 |
+
"text": "B.4 SAME-RAY EVALUATION ",
|
| 1973 |
+
"text_level": 1,
|
| 1974 |
+
"bbox": [
|
| 1975 |
+
176,
|
| 1976 |
+
577,
|
| 1977 |
+
387,
|
| 1978 |
+
592
|
| 1979 |
+
],
|
| 1980 |
+
"page_idx": 15
|
| 1981 |
+
},
|
| 1982 |
+
{
|
| 1983 |
+
"type": "text",
|
| 1984 |
+
"text": "In Section 5 of the main text we evaluate PHN on multiple evenly spaced rays. For completeness, we report here the HV and Uniformity achieved by PHN, while evaluated on the same rays used for training and evaluating the baseline methods. The results are provided in Table 6. Surprisingly, in many cases PHN achieves better performance. We attribute this to the inductive bias effect of sharing weights across all preference rays. ",
|
| 1985 |
+
"bbox": [
|
| 1986 |
+
173,
|
| 1987 |
+
603,
|
| 1988 |
+
825,
|
| 1989 |
+
672
|
| 1990 |
+
],
|
| 1991 |
+
"page_idx": 15
|
| 1992 |
+
},
|
| 1993 |
+
{
|
| 1994 |
+
"type": "table",
|
| 1995 |
+
"img_path": "images/e3d2f243ea07742c6fb81102e9d9f5906a23195333a9b5ed6e01e2c06ae45259.jpg",
|
| 1996 |
+
"table_caption": [
|
| 1997 |
+
"Table 6: Evaluation of PHN on baselines’ ray. "
|
| 1998 |
+
],
|
| 1999 |
+
"table_footnote": [],
|
| 2000 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">Fashion+MNIST</td><td colspan=\"2\">Multi-Fashion</td><td colspan=\"2\">Multi-MNIST</td><td colspan=\"2\">Adult</td><td colspan=\"2\">Bank</td><td colspan=\"2\">NYUv2</td><td colspan=\"2\">SARCOS HV</td></tr><tr><td>HV</td><td>Unif.</td><td>HV</td><td>Unif.</td><td></td><td>HV Unif.</td><td>HV</td><td>Unif.</td><td>HVUnif.</td><td></td><td>HVUnif.</td><td>HV</td><td>Unif.</td><td>Unif.</td></tr><tr><td>PHN-LS 2.740</td><td></td><td>0.852</td><td>2.190</td><td>0.838</td><td>2.900</td><td>0.840</td><td>0.624 0.282</td><td></td><td>0.538 0.106</td><td></td><td>0.695 0.603</td><td>3.494 0.683</td><td></td><td>0.693-0.051</td></tr><tr><td>PHN-EPO 2.760</td><td></td><td>0.908</td><td>2.180</td><td>0.860</td><td>2.760</td><td>0.857</td><td>0.631 0.742</td><td></td><td>0.531 0.395</td><td></td><td>0.717 0.833</td><td>3.565 0.701</td><td></td><td>0.728 0.190</td></tr></table>",
|
| 2001 |
+
"bbox": [
|
| 2002 |
+
174,
|
| 2003 |
+
710,
|
| 2004 |
+
825,
|
| 2005 |
+
765
|
| 2006 |
+
],
|
| 2007 |
+
"page_idx": 15
|
| 2008 |
+
},
|
| 2009 |
+
{
|
| 2010 |
+
"type": "text",
|
| 2011 |
+
"text": "B.5 DESIGN CHOICE ANALYSIS ",
|
| 2012 |
+
"text_level": 1,
|
| 2013 |
+
"bbox": [
|
| 2014 |
+
176,
|
| 2015 |
+
786,
|
| 2016 |
+
406,
|
| 2017 |
+
800
|
| 2018 |
+
],
|
| 2019 |
+
"page_idx": 15
|
| 2020 |
+
},
|
| 2021 |
+
{
|
| 2022 |
+
"type": "text",
|
| 2023 |
+
"text": "In Section 5 we used fixed values of the hidden dimension and the Dirichlet parameter $\\alpha$ (see Alg. 1). Here we examine the effect of different choices for these hyperparameters. We use the Multi-Fashion $+ \\mathrm { M N I S T }$ dataset, and the PHN-EPO variant of our method. We first fix the hidden dimension to 100, and vary $\\alpha$ from 0.1 to 1 (uniform sampling). The results are presented in Figure 9(a). It appears that at least for this dataset, PHN is quite robust to changes in $\\alpha$ . Next, we set $\\alpha = 0 . 2$ and examine the effect of changing the dimension of the hidden layers in our hypernetwork. We present the results in Figure 9(b). Here, the effect on the HV is stronger, with best HV achieved using hidden dimension of 100. ",
|
| 2024 |
+
"bbox": [
|
| 2025 |
+
173,
|
| 2026 |
+
811,
|
| 2027 |
+
825,
|
| 2028 |
+
924
|
| 2029 |
+
],
|
| 2030 |
+
"page_idx": 15
|
| 2031 |
+
},
|
| 2032 |
+
{
|
| 2033 |
+
"type": "image",
|
| 2034 |
+
"img_path": "images/94100b9d94d1764688f570cb9f61d97dd18fe84c7bce14ead2fd8ab9b6a85f01.jpg",
|
| 2035 |
+
"image_caption": [
|
| 2036 |
+
"Figure 9: Hyperparameters analysis: Performance analysis on the Multi-Fashion $^ +$ MNIST dataset, for different architecture designs and sampling choices. "
|
| 2037 |
+
],
|
| 2038 |
+
"image_footnote": [],
|
| 2039 |
+
"bbox": [
|
| 2040 |
+
287,
|
| 2041 |
+
97,
|
| 2042 |
+
709,
|
| 2043 |
+
255
|
| 2044 |
+
],
|
| 2045 |
+
"page_idx": 16
|
| 2046 |
+
},
|
| 2047 |
+
{
|
| 2048 |
+
"type": "text",
|
| 2049 |
+
"text": "B.6 ADDITIONAL RUNTIME ANALYSIS ",
|
| 2050 |
+
"text_level": 1,
|
| 2051 |
+
"bbox": [
|
| 2052 |
+
174,
|
| 2053 |
+
323,
|
| 2054 |
+
455,
|
| 2055 |
+
337
|
| 2056 |
+
],
|
| 2057 |
+
"page_idx": 16
|
| 2058 |
+
},
|
| 2059 |
+
{
|
| 2060 |
+
"type": "image",
|
| 2061 |
+
"img_path": "images/3fe31436c1fbae5104d452d03147d996e5cdf42ade1715b2ae2e4d5500f89346.jpg",
|
| 2062 |
+
"image_caption": [
|
| 2063 |
+
"Figure 10: Runtime analysis for NYUv2, and two additional Multi-MNIST dataset. "
|
| 2064 |
+
],
|
| 2065 |
+
"image_footnote": [],
|
| 2066 |
+
"bbox": [
|
| 2067 |
+
181,
|
| 2068 |
+
348,
|
| 2069 |
+
816,
|
| 2070 |
+
502
|
| 2071 |
+
],
|
| 2072 |
+
"page_idx": 16
|
| 2073 |
+
},
|
| 2074 |
+
{
|
| 2075 |
+
"type": "text",
|
| 2076 |
+
"text": "We extend the runtime analysis from Section 5.5. Figure 10 provides additional runtime analysis on the Multi-MNIST, Multi-Fashion, and NYUv2 datasets. For NYUv2 we omit the EPO method, since it was outperformed by LS in both HV and runtime. ",
|
| 2077 |
+
"bbox": [
|
| 2078 |
+
173,
|
| 2079 |
+
561,
|
| 2080 |
+
825,
|
| 2081 |
+
604
|
| 2082 |
+
],
|
| 2083 |
+
"page_idx": 16
|
| 2084 |
+
},
|
| 2085 |
+
{
|
| 2086 |
+
"type": "text",
|
| 2087 |
+
"text": "C HYPERVOLUME ",
|
| 2088 |
+
"text_level": 1,
|
| 2089 |
+
"bbox": [
|
| 2090 |
+
174,
|
| 2091 |
+
623,
|
| 2092 |
+
339,
|
| 2093 |
+
640
|
| 2094 |
+
],
|
| 2095 |
+
"page_idx": 16
|
| 2096 |
+
},
|
| 2097 |
+
{
|
| 2098 |
+
"type": "image",
|
| 2099 |
+
"img_path": "images/7d7857e5808b5a11cc623429a5700fdbf7904e1be3714526737d64df67dd26e4.jpg",
|
| 2100 |
+
"image_caption": [
|
| 2101 |
+
"Figure 11: Hypervolume illustration: The colored area represents the hypervolume obtained by Pareto set $\\{ P _ { 1 } , P _ { 2 } , P _ { 3 } \\}$ with respect to the reference point. "
|
| 2102 |
+
],
|
| 2103 |
+
"image_footnote": [],
|
| 2104 |
+
"bbox": [
|
| 2105 |
+
398,
|
| 2106 |
+
660,
|
| 2107 |
+
589,
|
| 2108 |
+
810
|
| 2109 |
+
],
|
| 2110 |
+
"page_idx": 16
|
| 2111 |
+
},
|
| 2112 |
+
{
|
| 2113 |
+
"type": "text",
|
| 2114 |
+
"text": "The hypervolume metric is defined as follows: Given a set of points $S \\subset \\mathbb { R } ^ { n }$ and a reference point $\\pmb { \\rho } \\in \\mathbb { R } _ { + } ^ { n }$ , the hypervolume of $S$ is measured by the region of non-dominated points bounded above by $\\rho$ . ",
|
| 2115 |
+
"bbox": [
|
| 2116 |
+
173,
|
| 2117 |
+
867,
|
| 2118 |
+
825,
|
| 2119 |
+
907
|
| 2120 |
+
],
|
| 2121 |
+
"page_idx": 16
|
| 2122 |
+
},
|
| 2123 |
+
{
|
| 2124 |
+
"type": "equation",
|
| 2125 |
+
"img_path": "images/078b502a9dc82b7996a6127b31c757bd6c929d3b88511f634bbdd160028d2f6f.jpg",
|
| 2126 |
+
"text": "$$\nH V ( S ) = V O L \\big ( \\{ q \\in \\mathbb { R } _ { + } ^ { n } \\mid \\exists p \\in S : ( p \\preceq q ) \\land ( q \\preceq \\rho ) \\} \\big ) ,\n$$",
|
| 2127 |
+
"text_format": "latex",
|
| 2128 |
+
"bbox": [
|
| 2129 |
+
299,
|
| 2130 |
+
906,
|
| 2131 |
+
696,
|
| 2132 |
+
926
|
| 2133 |
+
],
|
| 2134 |
+
"page_idx": 16
|
| 2135 |
+
},
|
| 2136 |
+
{
|
| 2137 |
+
"type": "text",
|
| 2138 |
+
"text": "where $V O L$ is the euclidean volume. We can interpret hypervolume as the measure of the union of the boxes created by the non-dominated points. ",
|
| 2139 |
+
"bbox": [
|
| 2140 |
+
169,
|
| 2141 |
+
103,
|
| 2142 |
+
825,
|
| 2143 |
+
132
|
| 2144 |
+
],
|
| 2145 |
+
"page_idx": 17
|
| 2146 |
+
},
|
| 2147 |
+
{
|
| 2148 |
+
"type": "equation",
|
| 2149 |
+
"img_path": "images/4ad36e082a9c00be21ef6ba7c338770ebcb6defc15e8b825fa195a9c529158a8.jpg",
|
| 2150 |
+
"text": "$$\nH V ( S ) = V O L \\left( \\bigcup _ { p \\in S } \\prod _ { i = 1 } ^ { n } [ p _ { i } , \\rho _ { i } ] \\right)\n$$",
|
| 2151 |
+
"text_format": "latex",
|
| 2152 |
+
"bbox": [
|
| 2153 |
+
379,
|
| 2154 |
+
137,
|
| 2155 |
+
619,
|
| 2156 |
+
204
|
| 2157 |
+
],
|
| 2158 |
+
"page_idx": 17
|
| 2159 |
+
},
|
| 2160 |
+
{
|
| 2161 |
+
"type": "text",
|
| 2162 |
+
"text": "As a measure of quality for MOO solutions, it takes into account both the quality of individual solutions, which is the volume they dominate, and also the diversity, measured in the overlap between dominated regions. See example in Fig. 11. ",
|
| 2163 |
+
"bbox": [
|
| 2164 |
+
173,
|
| 2165 |
+
217,
|
| 2166 |
+
826,
|
| 2167 |
+
260
|
| 2168 |
+
],
|
| 2169 |
+
"page_idx": 17
|
| 2170 |
+
}
|
| 2171 |
+
]
|
parse/train/NjF772F4ZZR/NjF772F4ZZR_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/NjF772F4ZZR/NjF772F4ZZR_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1ewjhEFwr/S1ewjhEFwr.md
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# STORAGE EFFICIENT AND DYNAMIC FLEXIBLE RUNTIME CHANNEL PRUNING VIA DEEP REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
In this paper, we propose a deep reinforcement learning (DRL) based framework to efficiently perform runtime channel pruning on convolutional neural networks (CNNs). Our DRL-based framework aims to learn a pruning strategy to determine how many and which channels to be pruned in each convolutional layer, depending on each specific input instance at runtime. The learned policy optimizes the performance of the network by restricting the computational resource on layers under an overall computation budget. Furthermore, unlike other runtime pruning methods which require to store all channels parameters for inference, our framework can reduce parameters storage consumption for deployment by introducing a static pruning component. Comparison experimental results with existing runtime and static pruning methods on state-of-the-art CNNs demonstrate that our proposed framework is able to provide a tradeoff between dynamic flexibility and storage efficiency in runtime channel pruning.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
In recent years, convolutional neural networks (CNNs) have been proven to be effective in a wide range of computer vision tasks, such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016), objection detection (He et al., 2017; Zhou et al., 2019; Law & Deng, 2018), segmentation (He et al., 2017; Zhu et al., 2019). Therefore, nowadays, many computervision-based systems, such as automatic-driving cars, security surveillance cameras, and robotics, are built on the power of CNNs. However, since most state-of-the-art CNNs require expensive computation power for inference and huge storage space to store large amount of parameters, the limitation of energy, computation and storage on mobile or edge devices has become the major bottleneck on real-world deployments of CNNs. Existing studies have been focused on speeding up the execution of CNNs for inference on edge devices by model compression using matrix decomposition (Denil et al., 2013; Masana et al., 2017), network quantization (Courbariaux et al., 2016), network pruning (Dong et al., 2017), etc. Among these approaches, channel pruning has shown promising performance (He et al., 2017; Luo et al., 2017; Zhuang et al., 2018; Peng et al., 2019). Specifically, channel pruning discards an entire input or output channel and keep the rest of the model with structures.
|
| 12 |
+
|
| 13 |
+
Most channel pruning approaches can be categorized into two types: runtime approaches and static approaches. Static channel pruning approaches aim to design a measurement to evaluate the importance of each channel over the whole training dataset and remove the least important channels to minimize the loss of performance after pruning. By permanently pruning a number of channels, the computation and storage cost of CNNs can be dramatically reduced when being deployed, and the inference execution can be accelerated consequently. Runtime channel pruning approaches have been recently proposed to achieve dynamic channel pruning on each specific instance (Gao et al., 2019; Luo & Wu, 2018). To be specific, the goal of runtime approaches aims to evaluate the channel importance at runtime, which is assumed to be different on different input instances. By pruning channels dynamically, different pruned structures can be considered as different routing of data stream inside CNNs. This kind of approaches is able to significantly improve the representation capability of CNNs, and thus achieve better performance in terms of prediction accuracy compared with static approaches. However, previous runtime approaches trade storage cost off dynamic flexibility of pruning. To achieve dynamic pruning on different specific instances, all parameters of kernels are required to be stored (or even more parameters are introduced). This makes runtime approaches not applicable on resource-limited edge devices. Moreover, most of previous runtime approaches only evaluate the importance among channels in each single layer independently, without considering the difference in efficiency among layers.
|
| 14 |
+
|
| 15 |
+
In this paper, to address the aforementioned issues of runtime channel pruning approaches, we propose a deep reinforcement learning (DRL) based pruning framework. Basically, we aim to apply DRL to prune CNNs by maximizing received rewards, which are designed to satisfy the overall budget constraints along side with network’s training accuracy. Note that automatic channel pruning by DRL is a difficult task because the action space is usually very huge. Specifically, the discrete action space for the DRL agent is as large as the number of channels at each layer, and the action spaces may vary among layers since there are different numbers of channels in different layers. To facilitate pruning CNNs by DRL, for each layer, we first design a novel prediction component to estimate the importance of channels, and then develop a DRL-based component to learn the sparsity ratio of the layer, i.e., how many channels should be pruned.
|
| 16 |
+
|
| 17 |
+
More specifically, different from previous runtime channel pruning approaches, which only learn runtime importance of each channel, we propose to learn both runtime importance and additionally static importance for each channel. While runtime importance maintains the saliency of specific channels for each given specific input, the static importance captures the overall saliency of the corresponding channel among the whole dataset. According to each type of the channel importance, we further design different DRL agents (i.e., a runtime agent and a static agent) to learn a sparsity ratio in a layer-wise manner. The sparsity ratio learned by the runtime agent together with the estimated runtime importance of channels are used to generate runtime pruning structures, while the sparsity ratio learned by the static agent together with the estimated static importance of channels are used to generate static (permanent) pruning structures. By considering both the pruning structures, our framework is able to provide a trade-off between storage efficiency and dynamic flexibility for runtime channel pruning.
|
| 18 |
+
|
| 19 |
+
In summary, our contributions are 2-fold. First, we propose to prune channels by taking both runtime and static information of the environment into consideration. Runtime information endows pruning with flexibility based on different input instances while static information reduces the number of parameters in deployment, leading to storage reduction, which cannot be achieved by conventional runtime pruning approaches. Second, we propose to use DRL to determine sparsity ratios, which is different from the previous pruning approaches which manually set sparsity ratios. Extensive experiments demonstrate the effectiveness of our method.
|
| 20 |
+
|
| 21 |
+
# 2 RELATED WORK AND PRELIMINARY
|
| 22 |
+
|
| 23 |
+
# 2.1 STRUCTURE PRUNING
|
| 24 |
+
|
| 25 |
+
Wen et al. (2016) pioneered structure pruning in deep neural network by imposing the $L _ { 2 , 1 }$ norm in training. Under the same framework, Liu et al. (2017) regarded parameters in batch normalization as channel selection signal, which is minimized to achieve pruning during training. He et al. (2017) formulated channel pruning into a two-step iterative process including LASSO regression based channel selection and least square reconstruction. Luo et al. (2017) formulated channel pruning as minimization of difference of output features, which is solved by greedy selection. Zhuang et al. (2018) further considered early prediction, reconstruction loss and final loss to select importance channels. Overall, structure pruning methods accelerate inference by producing regular and compact model. However, this brought regularness requires preserving more parameters to ensure performance.
|
| 26 |
+
|
| 27 |
+
# 2.2 DYNAMIC PRUNING
|
| 28 |
+
|
| 29 |
+
Dynamic pruning provides different pruning strategies according to input data. Wang et al. (2018) proposed to reduce computation by skipping layers or channels based on the analysis of input features. Luo & Wu (2018) proposed to use layer input to learn channel importance, which is then binarized for pruning. Gao et al. (2019) applied the same framework while extended features selection in both input and output features. Similarly, Liu & Deng (2018) introduced multiple branches for runtime inference according to inputs. A gating module is learnt to guide the flow of feature maps. Bolukbasi et al. (2017) learned to choose the components of a deep network to be evaluated for each input adaptively. Early exit is introduced to accelerate computation. Dynamic pruning adaptively takes different actions for different inputs, which is able to accelerate the overall inference time. However, the original high-precision model needs to be stored, together with extra parameters for making specified pruning actions. Rosenbaum et al. (2018) proposed to learn routers to route layers output to different next layers, in order to adjust a network to multi-task learning.
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
Figure 1: Illustration of our proposed DRL-based runtime pruning framework.
|
| 33 |
+
|
| 34 |
+
# 2.3 DEEP REINFORCEMENT LEARNING IN PRUNING
|
| 35 |
+
|
| 36 |
+
Channel selection is on trial using deep reinforcement learning. Lin et al. (2017) trained a LSTM model to remember and provide channel pruning strategy for backbone CNN model, which is conducted using reinforcement learning techniques. He et al. (2018) proposed to determine the compression ratio in each layer by training an agent regarding the pruning-retraining process as an environment.
|
| 37 |
+
|
| 38 |
+
# 2.4 PRELIMINARY
|
| 39 |
+
|
| 40 |
+
Reinforcement Learning We consider a standard setup of reinforcement learning: an agent sequentially takes actions over a sequence of time steps in an environment, in order to maximize the cumulative reward (Sutton & Barto, 1998). This problem can be formulated as a Markov Decision Process (MDP) of a tuple $( S , \mathcal { A } , \mathcal { P } , R , \gamma )$ , where $s$ is the state space, $\mathcal { A }$ is the action space, $\mathcal { P } : \mathcal { S } \times \mathcal { A } \times \mathcal { S } [ 0 , 1 ]$ is transition probabilities, $R : S \times \mathcal { A } \mathbb { R }$ is the reward function, and $\gamma \in [ 0 , 1 )$ is the discount factor. The goal of reinforcement learning is to learn a policy $\pi ( a | s )$ that maximizes the objective of cumulative rewards over finite time steps,
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
\operatorname* { m a x } _ { \pi } \sum _ { t = 0 } ^ { T } R ( s _ { t } , a _ { t } ) ,
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
where $s _ { t } \in S$ and $a _ { t } \in \mathcal A$ are state and taken action at time step $t$ respectively.
|
| 47 |
+
|
| 48 |
+
# 3 DRL-BASED RUNTIME PRUNING FRAMEWORK
|
| 49 |
+
|
| 50 |
+
The overview of our proposed framework is presented in Fig. 1. To prune convolutional layer $t$ , we learn two types of learnable channel importance: runtime channel importance $\mathbf { u } _ { r } \in \mathbb { R } ^ { C \times \mathbf { \breve { 1 } } }$ and static channel importance $\mathbf { u } _ { s } \in \mathbb { R } ^ { C \times 1 }$ , where $C$ is the number of channels in layer $t$ . The runtime channel importance $\mathbf { u } _ { r }$ is generated by a subnetwork importance predictor $f ( \cdot )$ , which takes the input feature map $\mathbf { F } _ { i n }$ as input, while the static channel importance $\mathbf { u } _ { s }$ is randomly initialized and updated during training. Both $\mathbf { u } _ { r }$ and $\mathbf { u } _ { s }$ indicate the channel importance of the full precision output feature map $\mathbf { F } _ { o u t }$ through a convolution layer. Channels are selected to be pruned according to the values of each element in $\mathbf { u } _ { r }$ and $\mathbf { u } _ { s }$ , and how many channels to be selected is decided by the sparsity ratios $d _ { r }$ and $d _ { s }$ , respectively. To learn the sparsity ratios $d _ { r }$ and $d _ { s }$ , two DRL agents, the runtime agent and the static agent, are introduced, where actions $a _ { t } ^ { r }$ and $a _ { t } ^ { s }$ are defined to set values of $d _ { r }$ and $d _ { s }$ , respectively. The detail of the two DRL agents are described in Sec. 3.3. Consequently, a trade-off pruner $g ( \cdot )$ is performed to balance the runtime and static pruning results, and output a decision mask M of binary values (1/0) to indicate which channels to be pruned (1: pruned, 0: preserved), as well as a unified channel importance vector $\mathbf { u } \in \mathbb { R } ^ { C \times 1 }$ as follows,
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
[ \mathbf { M } , \mathbf { u } ] = g ( \mathbf { u } _ { r } , \mathbf { u } _ { s } , d _ { r } , d _ { s } ) .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
The final output after pruning is constructed by multiplying the full precision output feature map $\mathbf { F } _ { o u t }$ , by ${ \bf 1 } - { \bf M }$ and u as,
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
\hat { \mathbf { F } } _ { o u t } = \mathbf { F } _ { o u t } \otimes ( \mathbf { 1 } - \mathbf { M } ) \otimes \mathbf { u } ,
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+
where $\otimes$ is the broadcast element-wise multiplier, and 1 is the matrix of the same size as $\mathbf { M }$ with all the elements being 1. In the following, we introduce how to learn the runtime channel importance vector $\mathbf { u } _ { r }$ and the static channel importance vector $\mathbf { u } _ { s }$ in Sec. 3.1, how to construct the trade-off pruner $g ( \cdot )$ in Sec. 3.2, and how to design the two DRL agents in Sec. 3.3.
|
| 63 |
+
|
| 64 |
+
# 3.1 LEARNABLE CHANNEL IMPORTANCE
|
| 65 |
+
|
| 66 |
+
We consider that a convolutional layer takes input of feature map $\mathbf { F } _ { i n } \in \mathbb { R } ^ { C _ { i n } \times H _ { i n } \times W _ { i n } }$ and generates an output feature map $\mathbf { F } _ { o u t } \doteq \perp \operatorname { \textbf { \em E } } ^ { C _ { o u t } \times H _ { o u t } ^ { \star } \times W _ { o u t } }$ , where $C _ { * }$ , $H _ { * }$ and $W _ { * }$ are the number of channels, width and height of the feature map $\mathbf { F } _ { * }$ , respectively. Each element of the channel importance vectors $\mathbf { u } _ { r } \in \mathbb { R } ^ { C _ { o u t } }$ and $\mathbf { u } _ { s } \in \mathbb { R } ^ { C _ { o u t } }$ represents the importance value of the corresponding channel, respectively. In the following, we drop the subscript $o u t$ for simplicity in presentation.
|
| 67 |
+
|
| 68 |
+
# 3.1.1 RUNTIME CHANNEL IMPORTANCE
|
| 69 |
+
|
| 70 |
+
As mentioned above, the runtime channel importance $\mathbf { u } _ { r }$ of output feature $\mathbf { F } _ { o u t }$ is predicted by a importance predictor $f ( \cdot )$ , which takes $\mathbf { F } _ { i n }$ as input. Therefore, $\mathbf { u } _ { r }$ can be considered as a function of $\mathbf { F } _ { i n }$ , whose values vary over different input instances. In this paper, we design a subnetwork to approximate $f ( \cdot )$ , which is expected to be of a small size and computationally efficient. Similar to many existing dynamic network pruning methods (Gao et al., 2019; Hu et al., 2018; Luo & Wu, 2018), we use global pooling layer as the first layer in $f ( \cdot )$ , because global pooling is computationally efficient and it can reduce the dimension of $\mathbf { F } _ { i n }$ dramatically. We then feed the output of global pooling into a fully-connected layer without any activation function. The output of fully-connected layer is the runtime channel importance vector $\mathbf { u } _ { r }$ .
|
| 71 |
+
|
| 72 |
+
Which channels to be preserved $/$ pruned at runtime are determined according to the values of $\mathbf { u } _ { r }$ . We denote by $\mathbf { M } _ { r } \in \{ 0 , 1 \} ^ { C }$ a mask for pruning, where if the value is 0, then the corresponding channel is preserved, otherwise pruned. For now, suppose a sparsity ratio $d _ { r }$ for runtime pruning has already been generated via the dynamic DRL agent, which will be introduced in Sec. 3.3. We then prune $\left( C - \lceil d _ { r } C \rceil \right)$ channels with the smallest importance values in $\mathbf { u } _ { r }$ . Accordingly, the value of an element in ${ { \bf { M } } _ { r } }$ is set to be 1 if the corresponding channel is pruned, otherwise 0.
|
| 73 |
+
|
| 74 |
+
# 3.1.2 STATIC CHANNEL IMPORTANCE
|
| 75 |
+
|
| 76 |
+
The static channel importance vector $\mathbf { u } _ { s }$ is to capture the global information for pruning, and thus is learned from the whole dataset. It is randomly generated and learned through backpropagation. Similar to runtime channel pruning, given a sparsity ratio $d _ { s }$ learned by the static DRL agent, $( C -$ $\lceil d _ { s } C \rceil )$ channels with smallest importance values in $\mathbf { u } _ { s }$ are pruned, and a mask $\mathbf { M } _ { s } \in \mathbf { \bar { \{ 0 , 1 \} } } ^ { C }$ is generated to indicate the static pruning results.
|
| 77 |
+
|
| 78 |
+
# 3.2 TRADE-OFF PRUNER
|
| 79 |
+
|
| 80 |
+
With the runtime and the static pruning decisions, ${ { \bf { M } } _ { r } }$ and $\mathbf { M } _ { s }$ , we now propose a trade-off pruner to generate a unified channel pruning decision. The main idea behind the trade-off pruner is to 1) prune those channels which are agreed to be pruned by both decisions, and 2) prune a portion of the rest channels by weighted votes from both decisions.
|
| 81 |
+
|
| 82 |
+
To be specific, we define the mask representing channels pruned by both decisions as
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\mathbf { M } _ { o } = \mathbf { M } _ { s } \wedge \mathbf { M } _ { r } ,
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\wedge$ is element-wise logical AND and $1 / 0$ in mask represents logical true or false. The channels indicated to be pruned by $\mathbf { M } _ { o }$ (i.e., the corresponding values are 1) are pruned in final. The channels which are determined to be pruned by ${ { \bf { M } } _ { r } }$ but not by $\mathbf { M } _ { s }$ can be represented by a new mask $\overline { { \mathbf { M } } } _ { r } =$ ${ \bf M } _ { r } - { \bf M } _ { o }$ . Similarly, the channels which are determined to be pruned by ${ { \bf { M } } _ { r } }$ but not by $\mathbf { M } _ { s }$ can be represented by another new mask $\overline { { \mathbf { M } } } _ { s } = \mathbf { M } _ { s } - \mathbf { M } _ { o }$ .
|
| 89 |
+
|
| 90 |
+
To control the trade-off between ${ { \bf { M } } _ { r } }$ and $\mathbf { M } _ { s }$ , we define a rate $R _ { r }$ denoting how much we trust the pruning decision made by ${ { \bf { M } } _ { r } }$ , while $1 - R _ { r }$ is for $\mathbf { M } _ { s }$ . That means the channels selected by $\overline { { \mathbf { M } } } _ { r }$ will be finally pruned with the rate $R _ { r }$ . Specifically, the number of channels which are selected by $\overline { { \mathbf { M } } } _ { r }$ and finally will be pruned is
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
C _ { r } ^ { ' } = \lfloor R _ { r } ( \mathbf { 1 } ^ { \top } \overline { { \mathbf { M } } } _ { r } ) \rfloor ,
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\mathbf { 1 } ^ { \top } \overline { { \mathbf { M } } } _ { r }$ returns the number of channels selected by $\overline { { \mathbf { M } } } _ { r }$ . We then select the first $C _ { r } ^ { ' }$ -smallest important channels which are recommended to be pruned by $\overline { { \mathbf { M } } } _ { r }$ to form a mask $\widehat { \mathbf { M } } _ { r }$ . Similarly, for static pruning, we select the first $C _ { s } ^ { ' }$ -smallest important channels which are recommended to be pruned by $\overline { { \mathbf { M } } } _ { s }$ to form another mask $\widehat { \mathbf { M } } _ { s }$ , where $C _ { s } ^ { ' } = \lfloor ( 1 - R _ { r } ) ( \mathbf { 1 } ^ { \top } \overline { { \mathbf { M } } } _ { s } ) \rfloor$ .
|
| 97 |
+
|
| 98 |
+
The final trade-off pruning mask is defined as
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\mathbf { M } = \mathbf { M } _ { o } + \widehat { \mathbf { M } } _ { r } + \widehat { \mathbf { M } } _ { s } .
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
Moreover, in this work, the unified channel importance is simply defined as follows,
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\mathbf { u } = \mathbf { u } _ { r } \otimes \mathbf { u } _ { s } .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
With the trade-off pruning mask $\mathbf { M }$ and the unified channel importance $\mathbf { u }$ , the pruned output feature $\hat { \mathbf { F } } _ { o u t }$ can be generated by Eq. 2.
|
| 111 |
+
|
| 112 |
+
# 3.3 DRL BASED PRUNING
|
| 113 |
+
|
| 114 |
+
In this section, we present how to formulate the problems of learning the ratios $d _ { s }$ and $d _ { t }$ for static pruning and runtime pruning, as a MDP, and solve it via DRL, respectively.
|
| 115 |
+
|
| 116 |
+
# 3.3.1 DRL FOR RUNTIME PRUNING
|
| 117 |
+
|
| 118 |
+
In the MDP for runtime pruning, we consider the $t$ -th layer of the network as the $t$ -th timestamp.
|
| 119 |
+
The details of the MDP are listed as follows.
|
| 120 |
+
|
| 121 |
+
State Given an input feature map $\mathbf { F } _ { i n }$ of layer $t$ , we pass it to a global pooling layer to reduce its dimension to $\mathbb { R } ^ { C _ { i n } }$ , where $C _ { i n }$ is the number of input channel of layer $t$ . Since $C _ { i n }$ varies among layers, we feed the output of global pooling to a layer-dependent encoder to project it to a fix-length vector $s _ { t } ^ { r }$ , which is considered as as a state representation of DRL in the context of runtime pruning.
|
| 122 |
+
|
| 123 |
+
Action The action $a _ { t } ^ { r }$ is defined as the sparsity ratio at layer $t$ , alternating $d _ { r }$ in runtime pruning mentioned in Section 3.1.1. Existing DRL-base pruning method RNP (Lin et al., 2017) uses a unified discrete actions space with $k$ actions which are too coarse to achieve high accuracy. However, finegrained discrete action space as large as number of channels suffers from exploration difficulty. Therefore, instead of using discrete action spaces, we propose a continuous action space with action $a _ { t } ^ { r } \in ( 0 , 1 ]$ . To avoid over-pruning the filters and crashing in training, we set a minimum sparsity ratio $+ \alpha$ such that $a _ { t } ^ { r } \in ( + \alpha , 1 ]$ .
|
| 124 |
+
|
| 125 |
+
Reward The reward function is proposed to consider both network accuracy and computation budget. We define the accuracy relative reward based on the loss of pruned backbone network,
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
R _ { a c c } ^ { r } = - \mathcal { L } _ { C N N } ,
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $\mathcal { L } _ { C N N }$ is the loss in CNN, and it may vary in scale among different training stage, i.e. large at beginning of training and small near convergence. To avoid the instability brought by the reward scale, $R _ { a c c } ^ { r }$ is normalized by a moving average,
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
R _ { a c c } ^ { r ^ { \prime } } = R _ { a c c } ^ { r } / \beta _ { b } ,
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\beta _ { b } = \lambda \beta _ { b - 1 } + ( 1 - \lambda ) R _ { a c c } ^ { r } ,
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
where $\beta _ { b }$ is the moving average at the $b$ -th training batch and $\lambda$ is the moving weight.
|
| 142 |
+
|
| 143 |
+
To force computation of the pruned network under a given computation budget, we define a exponential reward function of budget regarding reward $R _ { b u d } ^ { r }$ :
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
R _ { b u d } ^ { r } = \left\{ \begin{array} { l l } { \exp ( \alpha _ { 1 } ( B _ { c o m } - \overline { { B } } _ { c o m } ) ) - 1 , } & { B _ { c o m } > \overline { { B } } _ { c o m } , } \\ { 0 , } & { \mathrm { o t h e r w i s e } , } \end{array} \right.
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $B _ { c o m }$ is the computation consumption, which is calculated based on the current of pruned strategy, and $\overline { { B } } _ { c o m }$ is the given computation budget constraint. Finally we sum up the two rewards to form sparse rewards, with being non-zero at terminated step $T$ and zeros at other time step $t < T$ ,
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
R _ { t } ^ { r } = \left\{ \begin{array} { l l } { R _ { a c c } ^ { r ^ { \prime } } + R _ { b u d } ^ { r } , } & { t = T , } \\ { 0 , } & { t < T . } \end{array} \right.
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
Actor-Critic Agent To solve the continuous action space problem, we choose a commonly used actor-critic agent with a Gaussian policy. Actor-critic agent consists of two components: 1) actor outputs the mean and variance to form a Gaussian policy where the continuous action are sampled from; 2) critic outputs a scalar predicting the future discounted accumulated reward and assists the policy training. Actor network and Critic network share one-layer RNN which takes state $s _ { t } ^ { r }$ as input. The output of RNN is fed into actor specific network constructed by two branches of fullyconnected layers, leading to the mean and variance of the Gaussian policy. The action is sampled for the Gaussian distribution outputed by the actor:
|
| 156 |
+
|
| 157 |
+
$$
|
| 158 |
+
a _ { t } ^ { r } \sim \mathcal { N } ( \mu ( s _ { t } ^ { r } ; \theta ^ { r } ) , \sigma ( s _ { t } ^ { r } ; \theta ^ { r } ) ) ,
|
| 159 |
+
$$
|
| 160 |
+
|
| 161 |
+
where $\mu ( s _ { t } ^ { r } ; \theta ^ { r } )$ and $\sigma ( s _ { t } ^ { r } ; \theta ^ { r } )$ is the mean and variance outputed from actor network. The Critic specific network has one fully-connected layer after the shared RNN, and outputs the predictive value $V ( s _ { t } ^ { r } ; \theta ^ { r } )$ .
|
| 162 |
+
|
| 163 |
+
To optimize the actor-critic agent, Proximal Policy Optimization (PPO) (Schulman et al., 2017) is used. Note that we relax the action $a _ { t } ^ { r }$ to $( - \infty , + \infty )$ in PPO, and use truncate function to clip $a _ { t } ^ { r }$ in $( + \alpha , 1 ]$ when perform pruning.
|
| 164 |
+
|
| 165 |
+
Besides, an additional regularizer is introduced to restrict the relaxed $a _ { t } ^ { r }$ staying in range $( + \alpha , 1 ]$
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
\mathcal { L } _ { a } = \frac { 1 } { 2 } | | a _ { t } ^ { r } - \operatorname* { m a x } ( \operatorname* { m i n } ( a _ { t } ^ { r } , 1 ) , + \alpha ) | | _ { 2 } ^ { 2 } .
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
# 3.3.2 DRL FOR STATIC PRUNING
|
| 172 |
+
|
| 173 |
+
Similar to runtime pruning, the MDP in static pruning is also formulated layer-by-layer. The difference against runtime pruning is the definition of state and reward.
|
| 174 |
+
|
| 175 |
+
State The state $s _ { t } ^ { s }$ in static pruning is defined as the full shape of $\mathbf { F } _ { o u t }$ , and does not depend on $\mathbf { F } _ { o u t }$ and the current input data.
|
| 176 |
+
|
| 177 |
+
Action Action $a _ { t } ^ { s }$ is sampled from actor’s outputed Gaussian policy, and it is to alternate the sparsity $d _ { s }$ in static pruning mentioned in Section 3.1.2.
|
| 178 |
+
|
| 179 |
+
Reward The reward function takes both network accuracy and parameters budget into consideration. The accuracy relative is defined as the same as that in runtime pruning:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
R _ { a c c } ^ { s } = R _ { a c c } ^ { r ^ { \prime } } .
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
To reduce the number of parameters of network to satisfy the parameters storage budget, the parameters relative reward is defined in an exponential form as,
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
R _ { p a r a m } ^ { s } = \left\{ \begin{array} { l l } { \exp ( \alpha _ { 2 } ( B _ { p a r a m } - \overline { { B } } _ { p a r a m } ) ) - 1 , } & { B _ { p a r a m } > \overline { { B } } _ { p a r a m } , } \\ { 0 , } & { \mathrm { o t h e r w i s e } , } \end{array} \right.
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
where $B _ { p a r a m }$ is the number of preserved parameters after static pruning and $\overline { { B } } _ { p a r a m }$ is the parameters storage budget.
|
| 192 |
+
|
| 193 |
+
Table 1: Comparison to state-of-the-art runtime pruning methods on CIFAR-10 at sparsity 0.5. Speed-up is calculated on MACs.
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td><td>Speed-up</td><td>#Params</td></tr><tr><td>FBS (Gao et al., 2019)</td><td>91.37</td><td>89.88</td><td>-1.49</td><td>3.93×</td><td>1.11×</td></tr><tr><td>RNP (Lin et al., 2017)</td><td>92.07</td><td>84.93</td><td>-7.14</td><td>3.56×</td><td>1.00×</td></tr><tr><td>ours (runtime only Rr = 1)</td><td>92.07</td><td>91.333</td><td>-0.737</td><td>3.92×</td><td>1.31×</td></tr><tr><td>ours (Rr = 0.5)</td><td>92.07</td><td>91.066</td><td>-1.004</td><td>3.92×</td><td>0.78×</td></tr></table>
|
| 196 |
+
|
| 197 |
+
<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td><td>Speed-up</td><td>#Params</td></tr><tr><td>FBS (Gao et al., 2019)</td><td>91.37</td><td>91.23</td><td>-0.14</td><td>2×</td><td>1.11×</td></tr><tr><td>ours (Rr = 1.0)</td><td>92.07</td><td>93.178</td><td>+1.108</td><td>1.99×</td><td>1.31×</td></tr><tr><td>ours (Rr = 0.5)</td><td>92.07</td><td>92.502</td><td>+0.432</td><td>1.99×</td><td>0.97×</td></tr></table>
|
| 198 |
+
|
| 199 |
+
Table 2: Comparison to state-of-the-art runtime pruning methods on CIFAR-10 at sparsity 0.7.
|
| 200 |
+
Speed-up is calculated on MACs.
|
| 201 |
+
|
| 202 |
+
Actor-Critic Agent This agent is similar to the one in runtime pruning. It has the same architecture as runtime pruning but differs in introducing a fully-connected layer as the encoder before RNN. This agent is also optimized by PPO.
|
| 203 |
+
|
| 204 |
+
# 3.4 INFERENCE
|
| 205 |
+
|
| 206 |
+
In inference, the static agent is not required any more because the static pruning strategy does not depend on individual input data points but the full shape of $\mathbf { F } _ { i n }$ . Therefore, the output action $a _ { t } ^ { s }$ is fixed to each layer $t$ . With the action $a _ { t } ^ { s }$ and the rate $R _ { r }$ , we can decide which filters can be pruned permanently. Specifically, channels with $( ( 1 - a _ { t } ^ { s } ) ( 1 - R _ { r } ) )$ -smallest static importance values are pruned permanently.
|
| 207 |
+
|
| 208 |
+
# 4 EXPERIMENT
|
| 209 |
+
|
| 210 |
+
We evaluate our DRL pruning framework on two popular datasets: CIFAR-10 (Krizhevsky, 2009) and ImageNet ILSVRC2012 (Russakovsky et al., 2015), to show the advantage over other channel pruning methods. We analyze the effect of hyper-parameters and different sparsity settings on CIFAR-10. For CIFAR-10, we use M-CifarNet (Zhao et al., 2018) as the backbone CNN. On ImageNet ILSVRC2012, ResNet-18 is used as the backbone CNN.
|
| 211 |
+
|
| 212 |
+
# 4.1 IMPLEMENTATION DETAILS
|
| 213 |
+
|
| 214 |
+
We start with a pretrained backbone CNN. Firstly we finetune the backbone CNN and train runtime importance predictor jointly, with sparsity $d _ { r } = 1$ and fixed all static pruning importance $\mathbf { u } _ { s }$ to 1. Then we remove the restriction on the static pruning importance $\mathbf { u } _ { s }$ , and train static pruning importance, the backbone CNN and the runtime importance predictor, with sparsity $d _ { s } = 1$ and runtime pruning sparsity fixed as $d _ { r } = 1$ . After finetuning, we use the DRL agents to predict the sparsity given computation and storage constraints. The DRL agents and the CNN with runtime/static importance are trained in alternating manner: We first fix the CNN as well as runtime/static importance and train two DRL agents, regarding the CNN as environments. Then we fix two agents and finetune the CNN and runtime/static importance. We repeat these two steps until convergence is achieved. We use Adam optimizer for both DRL agent and CNN, and set learning rate at $\overline { { 1 } } 0 ^ { - 6 }$ for the DRL agents. For CNN finetuning and runtime/static importance training, the learning rate is set to $1 0 ^ { - 3 }$ on CIFAR-10. On ImageNet ILSVRC2012, the learning rate starts from $1 0 ^ { - 3 }$ and is divided by 10 after 15 millions iterations.
|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
Figure 2: Trade-off between runtime pruning and static pruning at sparsity 0.45. X-axis is the rate $R _ { r }$
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 3: Comparison accuracy drop for MCifarNet on CIFAR-10 with computational budget.
|
| 221 |
+
|
| 222 |
+
<table><tr><td>Method</td><td>Baseline top-1 acc.</td><td>Top-1 acc.</td><td>△ top-1 acc.</td><td>Baseline top-5 acc.</td><td>Top-5 acc.</td><td>△ top-5 acc.</td><td>Speed-up</td></tr><tr><td>DCP (Zhuang et al., 2018)</td><td>69.64</td><td>67.35</td><td>-2.29</td><td>88.98</td><td>88.86</td><td>-0.12</td><td>1.71×</td></tr><tr><td>FPGM (He et al., 2019)</td><td>70.28</td><td>68.41</td><td>-1.87</td><td>89.63</td><td>88.48</td><td>-1.15</td><td>1.71×</td></tr><tr><td>Dynamic Sparse Graph (Liu et al.,2019)</td><td>69.48</td><td>64.8</td><td>-4.68</td><td></td><td>■</td><td></td><td>1.4×</td></tr><tr><td>CGNN (Hua et al.,2018)</td><td>69.02</td><td>67.95</td><td>-1.07</td><td>88.84</td><td>88.21</td><td>-0.63</td><td>1.63×</td></tr><tr><td>FBS (Gao et al.,2019)</td><td>70.71</td><td>68.17</td><td>-2.54</td><td>89.68</td><td>88.22</td><td>-1.46</td><td>1.98×</td></tr><tr><td>Ours (Rr = 0.5)</td><td>69.758</td><td>68.79</td><td>-0.968</td><td>89.078</td><td>88.534</td><td>-0.544</td><td>1.94×</td></tr></table>
|
| 223 |
+
|
| 224 |
+
Table 3: Comparison with the state-of-the-art channel pruning ResNet-18 on ImageNet. Speed-up is calculated on MACs.
|
| 225 |
+
|
| 226 |
+
# 4.2 EXPERIMENTAL RESULTS ON CIFAR-10
|
| 227 |
+
|
| 228 |
+
We compare our proposed method with the following state-of-the-art runtime pruning methods: FBS (Gao et al., 2019), RNP (Lin et al., 2017) on CIFAR-10. The comparison results at sparsity 0.5 and 0.7 are shown in Table 1 and Table 2 respectively. Note that for fair comparison with other methods, the computation and storage budget constraints in our method is calculated according to the sparsity of other methods. Under these constraints, our method does not necessarily lead to the same sparsity as other methods in each layer. RNP cannot set exact sparsity ratio. Instead, its average sparsity ratio is accessible only during testing, which is 0.537 in Table 1. The result of FBS is reproduced using the released code1. The column #Params represents the number of parameters compared to the backbone CNN.
|
| 229 |
+
|
| 230 |
+
Table 1 shows that our method outperforms other state-of-the-art methods, achieving highest accuracy at an overall sparsity ratio of 0.5. Our method has very close computation speed-up compared to FBS, but outperforms FBS around $0 . 4 8 \%$ to $0 . 7 6 \%$ . When the runtime pruning strategy is solely considered by setting $R _ { r } = 1$ , our method surpasses other comparison methods, indicating that our DRL-based framework improves the performance of channel runtime pruning. By balancing runtime and static pruning via setting $R _ { r } = 0 . 5$ , our method reduces the number of the overall stored parameters and achieves lower accuracy drop than other methods. Table 2 shows that our method outperforms FBS at sparsity of 0.7. When $R _ { r } = 0 . 5$ , our method achieves better performance than the baseline CNN with $2 \times$ speed-up and contains less parameters.
|
| 231 |
+
|
| 232 |
+
We also study the relation between $R _ { r }$ and network compactness in our framework. Fig. 2 demonstrates the impact of $R _ { r }$ when sparsity is 0.45. The hyper-parameter $R _ { r }$ determines how much we trust about runtime pruning. With $R _ { r }$ close to 1, the accuracy becomes higher due to the more dynamic network flexibility but the space of the parameters storage also increases. When $R _ { r }$ diminishes, the network accuracy decreases but the parameter storage is reduced.
|
| 233 |
+
|
| 234 |
+
Fig. 3 shows the performance of various sparsity ratios in our method. Again, our method does not prune with one single sparsity ratio for all layers, but uses the sparsity ratio to calculate computation and storage constraints, with which the sparsity ratio is learned for each layer. Fig. 3 demonstrates that our method holds the accuracy when sparsity is larger than about 0.5, which corresponds to about $4 \times$ computational acceleration.
|
| 235 |
+
|
| 236 |
+
# 4.3 EXPERIMENTAL RESULTS ON IMAGENET ILSVRC2012
|
| 237 |
+
|
| 238 |
+
We compare our method with state-of-the-art channel pruning methods on ImageNet ILSVRC2012 as shown in Table 3. In this experiment, we use ResNet-18 as the backbone CNN. Among the stateof-the-art pruning methods for comparison, FBS (Gao et al., 2019) and CGNN (Hua et al., 2018) are runtime pruning methods. The overall sparsity ratio of our method is 0.7, which is under the same setting of FBS. Our method with $R _ { r } = 0 . 5$ achieves the smallest top-1 accuracy drop compared with other methods, and also achieves the highest top-1 accuracy after pruning. Overall, our proposed method achieves comparable or better performance compared to other methods with more acceleration. Our method has very close MACs to FBS, while the number of preserved parameters is reduced to $8 1 . 2 \%$ of the baseline.
|
| 239 |
+
|
| 240 |
+
# 5 CONCLUSION
|
| 241 |
+
|
| 242 |
+
In this paper, we present a deep reinforcement learning based framework for deep neural network channel pruning in both runtime and static sheme. Specially, channels are pruned according to input feature as runtime pruning, and based on entire training dataset as static pruning, with 2 reinforcement agents to determine the corresponding sparsity. Our method combines the merits of runtime and static pruning, and provides trade-off between storage and dynamic flexibility. Extensive experiments demonstrate the effectiveness of our proposed method.
|
| 243 |
+
|
| 244 |
+
# REFERENCES
|
| 245 |
+
|
| 246 |
+
Tolga Bolukbasi, Joseph Wang, Ofer Dekel, and Venkatesh Saligrama. Adaptive neural networks for efficient inference. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 527–536. JMLR. org, 2017.
|
| 247 |
+
|
| 248 |
+
Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016.
|
| 249 |
+
|
| 250 |
+
Misha Denil, Babak Shakibi, Laurent Dinh, Marc’Aurelio Ranzato, and Nando de Freitas. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems 26, pp. 2148– 2156. Curran Associates, Inc., 2013.
|
| 251 |
+
|
| 252 |
+
Xin Dong, Shangyu Chen, and Sinno Pan. Learning to prune deep neural networks via layer-wise optimal brain surgeon. In Advances in Neural Information Processing Systems, pp. 4857–4867, 2017.
|
| 253 |
+
|
| 254 |
+
Xitong Gao, Yiren Zhao, ukasz Dudziak, Robert Mullins, and Cheng zhong Xu. Dynamic channel pruning: Feature boosting and suppression. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id ${ . } =$ BJxh2j0qYm.
|
| 255 |
+
|
| 256 |
+
K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, June 2016. doi: 10.1109/CVPR.2016.90.
|
| 257 |
+
|
| 258 |
+
K. He, G. Gkioxari, P. Dollr, and R. Girshick. Mask r-cnn. In 2017 IEEE International Conference on Computer Vision (ICCV), pp. 2980–2988, Oct 2017. doi: 10.1109/ICCV.2017.322.
|
| 259 |
+
|
| 260 |
+
Yang He, Ping Liu, Ziwei Wang, Zhilan Hu, and Yi Yang. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4340–4349, 2019.
|
| 261 |
+
|
| 262 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017.
|
| 263 |
+
|
| 264 |
+
Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. Amc: Automl for model compression and acceleration on mobile devices. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 784–800, 2018.
|
| 265 |
+
|
| 266 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 267 |
+
|
| 268 |
+
Weizhe Hua, Christopher De Sa, Zhiru Zhang, and G Edward Suh. Channel gating neural networks. 2018.
|
| 269 |
+
|
| 270 |
+
Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009.
|
| 271 |
+
|
| 272 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 25, pp. 1097– 1105. Curran Associates, Inc., 2012. URL http://papers.nips.cc/paper/ 4824-imagenet-classification-with-deep-convolutional-neural-networks. pdf.
|
| 273 |
+
|
| 274 |
+
Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In The European Conference on Computer Vision (ECCV), September 2018.
|
| 275 |
+
|
| 276 |
+
Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 2181–2191. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/6813-runtime-neural-pruning.pdf.
|
| 277 |
+
|
| 278 |
+
Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018.
|
| 279 |
+
|
| 280 |
+
Liu Liu, Lei Deng, Xing Hu, Maohua Zhu, Guoqi Li, Yufei Ding, and Yuan Xie. Dynamic sparse graph for efficient deep learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $=$ H1goBoR9F7.
|
| 281 |
+
|
| 282 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2736–2744, 2017.
|
| 283 |
+
|
| 284 |
+
Jian-Hao Luo and Jianxin Wu. Autopruner: An end-to-end trainable filter pruning method for efficient deep model inference. CoRR, abs/1805.08941, 2018. URL http://arxiv.org/ abs/1805.08941.
|
| 285 |
+
|
| 286 |
+
Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 287 |
+
|
| 288 |
+
Marc Masana, Joost van de Weijer, Luis Herranz, Andrew D. Bagdanov, and Jose M. Alvarez. Domain-adaptive deep network compression. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017.
|
| 289 |
+
|
| 290 |
+
Hanyu Peng, Jiaxiang Wu, Shifeng Chen, and Junzhou Huang. Collaborative channel pruning for deep networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5113–5122, Long Beach, California, USA, 09–15 Jun 2019. PMLR.
|
| 291 |
+
|
| 292 |
+
Clemens Rosenbaum, Tim Klinger, and Matthew Riemer. Routing networks: Adaptive selection of non-linear functions for multi-task learning. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ ry8dvM-R-.
|
| 293 |
+
|
| 294 |
+
Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li FeiFei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, Dec 2015. ISSN 1573-1405. doi: 10.1007/s11263-015-0816-y. URL https://doi.org/10.1007/s11263-015-0816-y.
|
| 295 |
+
|
| 296 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. URL http://arxiv.org/abs/ 1707.06347.
|
| 297 |
+
|
| 298 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015.
|
| 299 |
+
|
| 300 |
+
Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981.
|
| 301 |
+
|
| 302 |
+
Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 409–424, 2018.
|
| 303 |
+
|
| 304 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in neural information processing systems, pp. 2074–2082, 2016.
|
| 305 |
+
|
| 306 |
+
Yiren Zhao, Xitong Gao, Robert Mullins, and Chengzhong Xu. Mayo: A framework for autogenerating hardware friendly deep neural networks. In Proceedings of the 2Nd International Workshop on Embedded and Mobile Deep Learning, EMDL’18, pp. 25–30, New York, NY, USA, 2018. ACM. ISBN 978-1-4503-5844-6. doi: 10.1145/3212725.3212726. URL http://doi. acm.org/10.1145/3212725.3212726.
|
| 307 |
+
|
| 308 |
+
Xingyi Zhou, Dequan Wang, and Philipp Krahenb ¨ uhl. Objects as points. In ¨ arXiv preprint arXiv:1904.07850, 2019.
|
| 309 |
+
|
| 310 |
+
Yi Zhu, Karan Sapra, Fitsum A. Reda, Kevin J. Shih, Shawn Newsam, Andrew Tao, and Bryan Catanzaro. Improving semantic segmentation via video propagation and label relaxation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 311 |
+
|
| 312 |
+
Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, and Jinhui Zhu. Discrimination-aware channel pruning for deep neural networks. In Advances in Neural Information Processing Systems, pp. 875–886, 2018.
|
| 313 |
+
|
| 314 |
+
# A ADDITIONAL EXPERIMENTAL RESULTS
|
| 315 |
+
|
| 316 |
+
A.1 COMPARISON TO SEPARATELY STATIC AND RUNTIME PRUNING
|
| 317 |
+
|
| 318 |
+
In this section, we compare our method with two additional baseline methods. One is a variation of our method by separately training static pruning and the training runtime pruning. In this method, we start from a pretrained backbone CNN, $f ( \cdot )$ and $u _ { s }$ . Then we add the static DRL agent to prune channels statically by learning the static policy and $u _ { s }$ . Finally, we add the runtime DRL agent to prune channels dynamically, by fixing the static DLR agent and $u _ { s }$ , and updating the runtime DLR agent and $f ( \cdot )$ only. Another method is to combine state-of-the-art static and runtime pruning methods. We start from a pretrain backbone CNN, and then prune channels with the static pruning method FPGM (He et al., 2019), and finally prune channels with the runtime method FBS (Gao et al., 2019). The experimental results are shown in Table4.
|
| 319 |
+
|
| 320 |
+
<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td></tr><tr><td>ours s (runtime only Rr = 1)</td><td>92.07</td><td>91.333</td><td>-0.737</td></tr><tr><td>ours s(Rr=0.5)</td><td>92.07</td><td>91.066</td><td>-1.004</td></tr><tr><td>ours (separate static and runtime)</td><td>92.07</td><td>90.965</td><td>-1.0105</td></tr><tr><td>FPGM+FBS</td><td>92.07</td><td>90.456</td><td>-1.614</td></tr></table>
|
| 321 |
+
|
| 322 |
+
Table 4: Comparison to methods with separately static and runtime pruning on Cifar-10 at sparsity 0.5.
|
| 323 |
+
|
| 324 |
+
# A.2 STORAGE/ACCURACY TRADE-OFF
|
| 325 |
+
|
| 326 |
+
Besides Fig. 2, to further illustrate the trade-off between storage and accuracy, we show additional results in Fig. 4.
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
Figure 4: Trade-off between runtime pruning and static pruning at sparsity 0.45. X-axis is storage(number of parameters), Y-axis is accuracy.
|
| 330 |
+
|
| 331 |
+
# B PSEUDOCODE OF TRAINING PROCESS
|
| 332 |
+
|
| 333 |
+
# Algorithm 1: Training process
|
| 334 |
+
|
| 335 |
+
INPUT: pretrained backbone CNN, computation budget $\bar { B } _ { c o m }$ , storage budget $\bar { B } _ { p a r a m }$
|
| 336 |
+
OUTPUT: backbone CNN, importance predictor $f ( \cdot )$ , static pruning importance $u _ { s }$ , runtime and
|
| 337 |
+
static DRL agents
|
| 338 |
+
Add runtime importance predictor $f ( \cdot )$ and static pruning importance $u _ { s }$ .;
|
| 339 |
+
$u _ { s } \gets \mathbf { 1 }$ ;
|
| 340 |
+
$d _ { s } \gets 1$ ;
|
| 341 |
+
$d _ { r } \gets 1$ ;
|
| 342 |
+
while not converge do fix $u _ { s }$ , update $f ( \cdot )$ and backbone CNN;
|
| 343 |
+
end
|
| 344 |
+
while not converge do
|
| 345 |
+
1 update $u _ { s }$ , $f ( \cdot )$ and backbone CNN;
|
| 346 |
+
end
|
| 347 |
+
add runtime DRL agent and static DRL agent to predict actions $a _ { t } ^ { r }$ and $a _ { t } ^ { s }$ , and alternate $d _ { r }$ and $d _ { s }$
|
| 348 |
+
at each layer $t$ ;
|
| 349 |
+
while not converge do for $i \gets 1$ to $N _ { 1 }$ do Forward entired model; Compute rewards $R _ { t } ^ { r }$ and $R _ { t } ^ { s }$ using budget $\bar { B } _ { c o m }$ and $\bar { B } _ { p a r a m }$ ; F $\mathrm { i } \times \bar { u _ { s } } , f ( \cdot )$ and backbone CNN, update runtime and static DRL agents by PPO loss; end for $i \gets 1$ to $N _ { 2 }$ do Fix runtime and static DRL agents, update $u _ { s }$ , $f ( \cdot )$ and backbone CNN by cross entropy loss end
|
| 350 |
+
end
|
| 351 |
+
|
| 352 |
+

|
| 353 |
+
Figure 5: Training curve of our method on CIFAR-10 at sparsity 0.5 with $R _ { r } = 0 . 5$
|
| 354 |
+
|
| 355 |
+
# C TRAINING CURVE
|
| 356 |
+
|
| 357 |
+
We show the training curve of our method in Fig. 5. We train our method on CIFAR-10 at sparsity 0.5 with $R _ { r } = 0 . 5$ . The figure includes the accuracy curves evaluated on training set and test set, showing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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "STORAGE EFFICIENT AND DYNAMIC FLEXIBLE RUNTIME CHANNEL PRUNING VIA DEEP REINFORCEMENT LEARNING ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "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": "In this paper, we propose a deep reinforcement learning (DRL) based framework to efficiently perform runtime channel pruning on convolutional neural networks (CNNs). Our DRL-based framework aims to learn a pruning strategy to determine how many and which channels to be pruned in each convolutional layer, depending on each specific input instance at runtime. The learned policy optimizes the performance of the network by restricting the computational resource on layers under an overall computation budget. Furthermore, unlike other runtime pruning methods which require to store all channels parameters for inference, our framework can reduce parameters storage consumption for deployment by introducing a static pruning component. Comparison experimental results with existing runtime and static pruning methods on state-of-the-art CNNs demonstrate that our proposed framework is able to provide a tradeoff between dynamic flexibility and storage efficiency in runtime channel pruning. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
291,
|
| 43 |
+
764,
|
| 44 |
+
470
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
497,
|
| 55 |
+
336,
|
| 56 |
+
512
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "In recent years, convolutional neural networks (CNNs) have been proven to be effective in a wide range of computer vision tasks, such as image classification (Krizhevsky et al., 2012; Simonyan & Zisserman, 2015; He et al., 2016), objection detection (He et al., 2017; Zhou et al., 2019; Law & Deng, 2018), segmentation (He et al., 2017; Zhu et al., 2019). Therefore, nowadays, many computervision-based systems, such as automatic-driving cars, security surveillance cameras, and robotics, are built on the power of CNNs. However, since most state-of-the-art CNNs require expensive computation power for inference and huge storage space to store large amount of parameters, the limitation of energy, computation and storage on mobile or edge devices has become the major bottleneck on real-world deployments of CNNs. Existing studies have been focused on speeding up the execution of CNNs for inference on edge devices by model compression using matrix decomposition (Denil et al., 2013; Masana et al., 2017), network quantization (Courbariaux et al., 2016), network pruning (Dong et al., 2017), etc. Among these approaches, channel pruning has shown promising performance (He et al., 2017; Luo et al., 2017; Zhuang et al., 2018; Peng et al., 2019). Specifically, channel pruning discards an entire input or output channel and keep the rest of the model with structures. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
529,
|
| 66 |
+
825,
|
| 67 |
+
736
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Most channel pruning approaches can be categorized into two types: runtime approaches and static approaches. Static channel pruning approaches aim to design a measurement to evaluate the importance of each channel over the whole training dataset and remove the least important channels to minimize the loss of performance after pruning. By permanently pruning a number of channels, the computation and storage cost of CNNs can be dramatically reduced when being deployed, and the inference execution can be accelerated consequently. Runtime channel pruning approaches have been recently proposed to achieve dynamic channel pruning on each specific instance (Gao et al., 2019; Luo & Wu, 2018). To be specific, the goal of runtime approaches aims to evaluate the channel importance at runtime, which is assumed to be different on different input instances. By pruning channels dynamically, different pruned structures can be considered as different routing of data stream inside CNNs. This kind of approaches is able to significantly improve the representation capability of CNNs, and thus achieve better performance in terms of prediction accuracy compared with static approaches. However, previous runtime approaches trade storage cost off dynamic flexibility of pruning. To achieve dynamic pruning on different specific instances, all parameters of kernels are required to be stored (or even more parameters are introduced). This makes runtime approaches not applicable on resource-limited edge devices. Moreover, most of previous runtime approaches only evaluate the importance among channels in each single layer independently, without considering the difference in efficiency among layers. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
743,
|
| 77 |
+
825,
|
| 78 |
+
924
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
823,
|
| 89 |
+
172
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this paper, to address the aforementioned issues of runtime channel pruning approaches, we propose a deep reinforcement learning (DRL) based pruning framework. Basically, we aim to apply DRL to prune CNNs by maximizing received rewards, which are designed to satisfy the overall budget constraints along side with network’s training accuracy. Note that automatic channel pruning by DRL is a difficult task because the action space is usually very huge. Specifically, the discrete action space for the DRL agent is as large as the number of channels at each layer, and the action spaces may vary among layers since there are different numbers of channels in different layers. To facilitate pruning CNNs by DRL, for each layer, we first design a novel prediction component to estimate the importance of channels, and then develop a DRL-based component to learn the sparsity ratio of the layer, i.e., how many channels should be pruned. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
181,
|
| 99 |
+
825,
|
| 100 |
+
319
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "More specifically, different from previous runtime channel pruning approaches, which only learn runtime importance of each channel, we propose to learn both runtime importance and additionally static importance for each channel. While runtime importance maintains the saliency of specific channels for each given specific input, the static importance captures the overall saliency of the corresponding channel among the whole dataset. According to each type of the channel importance, we further design different DRL agents (i.e., a runtime agent and a static agent) to learn a sparsity ratio in a layer-wise manner. The sparsity ratio learned by the runtime agent together with the estimated runtime importance of channels are used to generate runtime pruning structures, while the sparsity ratio learned by the static agent together with the estimated static importance of channels are used to generate static (permanent) pruning structures. By considering both the pruning structures, our framework is able to provide a trade-off between storage efficiency and dynamic flexibility for runtime channel pruning. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
327,
|
| 110 |
+
825,
|
| 111 |
+
493
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In summary, our contributions are 2-fold. First, we propose to prune channels by taking both runtime and static information of the environment into consideration. Runtime information endows pruning with flexibility based on different input instances while static information reduces the number of parameters in deployment, leading to storage reduction, which cannot be achieved by conventional runtime pruning approaches. Second, we propose to use DRL to determine sparsity ratios, which is different from the previous pruning approaches which manually set sparsity ratios. Extensive experiments demonstrate the effectiveness of our method. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
174,
|
| 120 |
+
500,
|
| 121 |
+
825,
|
| 122 |
+
597
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 RELATED WORK AND PRELIMINARY ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
616,
|
| 133 |
+
509,
|
| 134 |
+
632
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "2.1 STRUCTURE PRUNING ",
|
| 141 |
+
"text_level": 1,
|
| 142 |
+
"bbox": [
|
| 143 |
+
176,
|
| 144 |
+
647,
|
| 145 |
+
369,
|
| 146 |
+
661
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "Wen et al. (2016) pioneered structure pruning in deep neural network by imposing the $L _ { 2 , 1 }$ norm in training. Under the same framework, Liu et al. (2017) regarded parameters in batch normalization as channel selection signal, which is minimized to achieve pruning during training. He et al. (2017) formulated channel pruning into a two-step iterative process including LASSO regression based channel selection and least square reconstruction. Luo et al. (2017) formulated channel pruning as minimization of difference of output features, which is solved by greedy selection. Zhuang et al. (2018) further considered early prediction, reconstruction loss and final loss to select importance channels. Overall, structure pruning methods accelerate inference by producing regular and compact model. However, this brought regularness requires preserving more parameters to ensure performance. ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
672,
|
| 156 |
+
825,
|
| 157 |
+
811
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "2.2 DYNAMIC PRUNING ",
|
| 164 |
+
"text_level": 1,
|
| 165 |
+
"bbox": [
|
| 166 |
+
176,
|
| 167 |
+
828,
|
| 168 |
+
352,
|
| 169 |
+
842
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "Dynamic pruning provides different pruning strategies according to input data. Wang et al. (2018) proposed to reduce computation by skipping layers or channels based on the analysis of input features. Luo & Wu (2018) proposed to use layer input to learn channel importance, which is then binarized for pruning. Gao et al. (2019) applied the same framework while extended features selection in both input and output features. Similarly, Liu & Deng (2018) introduced multiple branches for runtime inference according to inputs. A gating module is learnt to guide the flow of feature maps. Bolukbasi et al. (2017) learned to choose the components of a deep network to be evaluated for each input adaptively. Early exit is introduced to accelerate computation. Dynamic pruning adaptively takes different actions for different inputs, which is able to accelerate the overall inference time. However, the original high-precision model needs to be stored, together with extra parameters for making specified pruning actions. Rosenbaum et al. (2018) proposed to learn routers to route layers output to different next layers, in order to adjust a network to multi-task learning. ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
174,
|
| 178 |
+
854,
|
| 179 |
+
823,
|
| 180 |
+
924
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "image",
|
| 186 |
+
"img_path": "images/bc77b32ffc241caf859273ec99f771bfda79928ed2f13e13b67d0d9181ac8f0e.jpg",
|
| 187 |
+
"image_caption": [
|
| 188 |
+
"Figure 1: Illustration of our proposed DRL-based runtime pruning framework. "
|
| 189 |
+
],
|
| 190 |
+
"image_footnote": [],
|
| 191 |
+
"bbox": [
|
| 192 |
+
236,
|
| 193 |
+
103,
|
| 194 |
+
758,
|
| 195 |
+
262
|
| 196 |
+
],
|
| 197 |
+
"page_idx": 2
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"type": "text",
|
| 201 |
+
"text": "",
|
| 202 |
+
"bbox": [
|
| 203 |
+
173,
|
| 204 |
+
299,
|
| 205 |
+
825,
|
| 206 |
+
397
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 2
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "2.3 DEEP REINFORCEMENT LEARNING IN PRUNING ",
|
| 213 |
+
"text_level": 1,
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
414,
|
| 217 |
+
542,
|
| 218 |
+
428
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 2
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "Channel selection is on trial using deep reinforcement learning. Lin et al. (2017) trained a LSTM model to remember and provide channel pruning strategy for backbone CNN model, which is conducted using reinforcement learning techniques. He et al. (2018) proposed to determine the compression ratio in each layer by training an agent regarding the pruning-retraining process as an environment. ",
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
439,
|
| 228 |
+
825,
|
| 229 |
+
508
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "2.4 PRELIMINARY ",
|
| 236 |
+
"text_level": 1,
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
526,
|
| 240 |
+
312,
|
| 241 |
+
540
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Reinforcement Learning We consider a standard setup of reinforcement learning: an agent sequentially takes actions over a sequence of time steps in an environment, in order to maximize the cumulative reward (Sutton & Barto, 1998). This problem can be formulated as a Markov Decision Process (MDP) of a tuple $( S , \\mathcal { A } , \\mathcal { P } , R , \\gamma )$ , where $s$ is the state space, $\\mathcal { A }$ is the action space, $\\mathcal { P } : \\mathcal { S } \\times \\mathcal { A } \\times \\mathcal { S } [ 0 , 1 ]$ is transition probabilities, $R : S \\times \\mathcal { A } \\mathbb { R }$ is the reward function, and $\\gamma \\in [ 0 , 1 )$ is the discount factor. The goal of reinforcement learning is to learn a policy $\\pi ( a | s )$ that maximizes the objective of cumulative rewards over finite time steps, ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
551,
|
| 251 |
+
825,
|
| 252 |
+
650
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "equation",
|
| 258 |
+
"img_path": "images/474eb1f0c3a7b96714a542f434db63bc9e136bf372e82480d973fee8d6938969.jpg",
|
| 259 |
+
"text": "$$\n\\operatorname* { m a x } _ { \\pi } \\sum _ { t = 0 } ^ { T } R ( s _ { t } , a _ { t } ) ,\n$$",
|
| 260 |
+
"text_format": "latex",
|
| 261 |
+
"bbox": [
|
| 262 |
+
433,
|
| 263 |
+
656,
|
| 264 |
+
562,
|
| 265 |
+
699
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "where $s _ { t } \\in S$ and $a _ { t } \\in \\mathcal A$ are state and taken action at time step $t$ respectively. ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
704,
|
| 275 |
+
686,
|
| 276 |
+
719
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "3 DRL-BASED RUNTIME PRUNING FRAMEWORK ",
|
| 283 |
+
"text_level": 1,
|
| 284 |
+
"bbox": [
|
| 285 |
+
173,
|
| 286 |
+
738,
|
| 287 |
+
594,
|
| 288 |
+
756
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "The overview of our proposed framework is presented in Fig. 1. To prune convolutional layer $t$ , we learn two types of learnable channel importance: runtime channel importance $\\mathbf { u } _ { r } \\in \\mathbb { R } ^ { C \\times \\mathbf { \\breve { 1 } } }$ and static channel importance $\\mathbf { u } _ { s } \\in \\mathbb { R } ^ { C \\times 1 }$ , where $C$ is the number of channels in layer $t$ . The runtime channel importance $\\mathbf { u } _ { r }$ is generated by a subnetwork importance predictor $f ( \\cdot )$ , which takes the input feature map $\\mathbf { F } _ { i n }$ as input, while the static channel importance $\\mathbf { u } _ { s }$ is randomly initialized and updated during training. Both $\\mathbf { u } _ { r }$ and $\\mathbf { u } _ { s }$ indicate the channel importance of the full precision output feature map $\\mathbf { F } _ { o u t }$ through a convolution layer. Channels are selected to be pruned according to the values of each element in $\\mathbf { u } _ { r }$ and $\\mathbf { u } _ { s }$ , and how many channels to be selected is decided by the sparsity ratios $d _ { r }$ and $d _ { s }$ , respectively. To learn the sparsity ratios $d _ { r }$ and $d _ { s }$ , two DRL agents, the runtime agent and the static agent, are introduced, where actions $a _ { t } ^ { r }$ and $a _ { t } ^ { s }$ are defined to set values of $d _ { r }$ and $d _ { s }$ , respectively. The detail of the two DRL agents are described in Sec. 3.3. Consequently, a trade-off pruner $g ( \\cdot )$ is performed to balance the runtime and static pruning results, and output a decision mask M of binary values (1/0) to indicate which channels to be pruned (1: pruned, 0: preserved), as well as a unified channel importance vector $\\mathbf { u } \\in \\mathbb { R } ^ { C \\times 1 }$ as follows, ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
173,
|
| 297 |
+
770,
|
| 298 |
+
825,
|
| 299 |
+
924
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "",
|
| 306 |
+
"bbox": [
|
| 307 |
+
173,
|
| 308 |
+
103,
|
| 309 |
+
826,
|
| 310 |
+
146
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 3
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "equation",
|
| 316 |
+
"img_path": "images/e61e5291c8dbd0a16a7541cea1852047be655c6cd97790003d6717158beb0a18.jpg",
|
| 317 |
+
"text": "$$\n[ \\mathbf { M } , \\mathbf { u } ] = g ( \\mathbf { u } _ { r } , \\mathbf { u } _ { s } , d _ { r } , d _ { s } ) .\n$$",
|
| 318 |
+
"text_format": "latex",
|
| 319 |
+
"bbox": [
|
| 320 |
+
406,
|
| 321 |
+
150,
|
| 322 |
+
589,
|
| 323 |
+
167
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 3
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "text",
|
| 329 |
+
"text": "The final output after pruning is constructed by multiplying the full precision output feature map $\\mathbf { F } _ { o u t }$ , by ${ \\bf 1 } - { \\bf M }$ and u as, ",
|
| 330 |
+
"bbox": [
|
| 331 |
+
173,
|
| 332 |
+
171,
|
| 333 |
+
825,
|
| 334 |
+
199
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 3
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "equation",
|
| 340 |
+
"img_path": "images/3edc47cd665c641dcbb3659b1aaefc98d0c09e4300faaf2364c86ff51ebaafa1.jpg",
|
| 341 |
+
"text": "$$\n\\hat { \\mathbf { F } } _ { o u t } = \\mathbf { F } _ { o u t } \\otimes ( \\mathbf { 1 } - \\mathbf { M } ) \\otimes \\mathbf { u } ,\n$$",
|
| 342 |
+
"text_format": "latex",
|
| 343 |
+
"bbox": [
|
| 344 |
+
397,
|
| 345 |
+
198,
|
| 346 |
+
599,
|
| 347 |
+
217
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 3
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "where $\\otimes$ is the broadcast element-wise multiplier, and 1 is the matrix of the same size as $\\mathbf { M }$ with all the elements being 1. In the following, we introduce how to learn the runtime channel importance vector $\\mathbf { u } _ { r }$ and the static channel importance vector $\\mathbf { u } _ { s }$ in Sec. 3.1, how to construct the trade-off pruner $g ( \\cdot )$ in Sec. 3.2, and how to design the two DRL agents in Sec. 3.3. ",
|
| 354 |
+
"bbox": [
|
| 355 |
+
174,
|
| 356 |
+
218,
|
| 357 |
+
825,
|
| 358 |
+
275
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 3
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "3.1 LEARNABLE CHANNEL IMPORTANCE ",
|
| 365 |
+
"text_level": 1,
|
| 366 |
+
"bbox": [
|
| 367 |
+
176,
|
| 368 |
+
290,
|
| 369 |
+
470,
|
| 370 |
+
305
|
| 371 |
+
],
|
| 372 |
+
"page_idx": 3
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"type": "text",
|
| 376 |
+
"text": "We consider that a convolutional layer takes input of feature map $\\mathbf { F } _ { i n } \\in \\mathbb { R } ^ { C _ { i n } \\times H _ { i n } \\times W _ { i n } }$ and generates an output feature map $\\mathbf { F } _ { o u t } \\doteq \\perp \\operatorname { \\textbf { \\em E } } ^ { C _ { o u t } \\times H _ { o u t } ^ { \\star } \\times W _ { o u t } }$ , where $C _ { * }$ , $H _ { * }$ and $W _ { * }$ are the number of channels, width and height of the feature map $\\mathbf { F } _ { * }$ , respectively. Each element of the channel importance vectors $\\mathbf { u } _ { r } \\in \\mathbb { R } ^ { C _ { o u t } }$ and $\\mathbf { u } _ { s } \\in \\mathbb { R } ^ { C _ { o u t } }$ represents the importance value of the corresponding channel, respectively. In the following, we drop the subscript $o u t$ for simplicity in presentation. ",
|
| 377 |
+
"bbox": [
|
| 378 |
+
174,
|
| 379 |
+
315,
|
| 380 |
+
825,
|
| 381 |
+
387
|
| 382 |
+
],
|
| 383 |
+
"page_idx": 3
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"type": "text",
|
| 387 |
+
"text": "3.1.1 RUNTIME CHANNEL IMPORTANCE ",
|
| 388 |
+
"text_level": 1,
|
| 389 |
+
"bbox": [
|
| 390 |
+
176,
|
| 391 |
+
401,
|
| 392 |
+
465,
|
| 393 |
+
415
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 3
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "As mentioned above, the runtime channel importance $\\mathbf { u } _ { r }$ of output feature $\\mathbf { F } _ { o u t }$ is predicted by a importance predictor $f ( \\cdot )$ , which takes $\\mathbf { F } _ { i n }$ as input. Therefore, $\\mathbf { u } _ { r }$ can be considered as a function of $\\mathbf { F } _ { i n }$ , whose values vary over different input instances. In this paper, we design a subnetwork to approximate $f ( \\cdot )$ , which is expected to be of a small size and computationally efficient. Similar to many existing dynamic network pruning methods (Gao et al., 2019; Hu et al., 2018; Luo & Wu, 2018), we use global pooling layer as the first layer in $f ( \\cdot )$ , because global pooling is computationally efficient and it can reduce the dimension of $\\mathbf { F } _ { i n }$ dramatically. We then feed the output of global pooling into a fully-connected layer without any activation function. The output of fully-connected layer is the runtime channel importance vector $\\mathbf { u } _ { r }$ . ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
174,
|
| 402 |
+
424,
|
| 403 |
+
825,
|
| 404 |
+
551
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 3
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "Which channels to be preserved $/$ pruned at runtime are determined according to the values of $\\mathbf { u } _ { r }$ . We denote by $\\mathbf { M } _ { r } \\in \\{ 0 , 1 \\} ^ { C }$ a mask for pruning, where if the value is 0, then the corresponding channel is preserved, otherwise pruned. For now, suppose a sparsity ratio $d _ { r }$ for runtime pruning has already been generated via the dynamic DRL agent, which will be introduced in Sec. 3.3. We then prune $\\left( C - \\lceil d _ { r } C \\rceil \\right)$ channels with the smallest importance values in $\\mathbf { u } _ { r }$ . Accordingly, the value of an element in ${ { \\bf { M } } _ { r } }$ is set to be 1 if the corresponding channel is pruned, otherwise 0. ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
174,
|
| 413 |
+
558,
|
| 414 |
+
825,
|
| 415 |
+
641
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 3
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "3.1.2 STATIC CHANNEL IMPORTANCE ",
|
| 422 |
+
"text_level": 1,
|
| 423 |
+
"bbox": [
|
| 424 |
+
176,
|
| 425 |
+
656,
|
| 426 |
+
447,
|
| 427 |
+
670
|
| 428 |
+
],
|
| 429 |
+
"page_idx": 3
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"type": "text",
|
| 433 |
+
"text": "The static channel importance vector $\\mathbf { u } _ { s }$ is to capture the global information for pruning, and thus is learned from the whole dataset. It is randomly generated and learned through backpropagation. Similar to runtime channel pruning, given a sparsity ratio $d _ { s }$ learned by the static DRL agent, $( C -$ $\\lceil d _ { s } C \\rceil )$ channels with smallest importance values in $\\mathbf { u } _ { s }$ are pruned, and a mask $\\mathbf { M } _ { s } \\in \\mathbf { \\bar { \\{ 0 , 1 \\} } } ^ { C }$ is generated to indicate the static pruning results. ",
|
| 434 |
+
"bbox": [
|
| 435 |
+
174,
|
| 436 |
+
680,
|
| 437 |
+
825,
|
| 438 |
+
751
|
| 439 |
+
],
|
| 440 |
+
"page_idx": 3
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"type": "text",
|
| 444 |
+
"text": "3.2 TRADE-OFF PRUNER ",
|
| 445 |
+
"text_level": 1,
|
| 446 |
+
"bbox": [
|
| 447 |
+
176,
|
| 448 |
+
766,
|
| 449 |
+
357,
|
| 450 |
+
781
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 3
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "With the runtime and the static pruning decisions, ${ { \\bf { M } } _ { r } }$ and $\\mathbf { M } _ { s }$ , we now propose a trade-off pruner to generate a unified channel pruning decision. The main idea behind the trade-off pruner is to 1) prune those channels which are agreed to be pruned by both decisions, and 2) prune a portion of the rest channels by weighted votes from both decisions. ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
174,
|
| 459 |
+
792,
|
| 460 |
+
825,
|
| 461 |
+
849
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 3
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "To be specific, we define the mask representing channels pruned by both decisions as ",
|
| 468 |
+
"bbox": [
|
| 469 |
+
174,
|
| 470 |
+
854,
|
| 471 |
+
730,
|
| 472 |
+
871
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/9f79087d05b40e0a82ce5a05ca380ec88c51b2b35988867d71efc6080ba995e0.jpg",
|
| 479 |
+
"text": "$$\n\\mathbf { M } _ { o } = \\mathbf { M } _ { s } \\wedge \\mathbf { M } _ { r } ,\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
437,
|
| 483 |
+
875,
|
| 484 |
+
558,
|
| 485 |
+
890
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "where $\\wedge$ is element-wise logical AND and $1 / 0$ in mask represents logical true or false. The channels indicated to be pruned by $\\mathbf { M } _ { o }$ (i.e., the corresponding values are 1) are pruned in final. The channels which are determined to be pruned by ${ { \\bf { M } } _ { r } }$ but not by $\\mathbf { M } _ { s }$ can be represented by a new mask $\\overline { { \\mathbf { M } } } _ { r } =$ ${ \\bf M } _ { r } - { \\bf M } _ { o }$ . Similarly, the channels which are determined to be pruned by ${ { \\bf { M } } _ { r } }$ but not by $\\mathbf { M } _ { s }$ can be represented by another new mask $\\overline { { \\mathbf { M } } } _ { s } = \\mathbf { M } _ { s } - \\mathbf { M } _ { o }$ . ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
895,
|
| 495 |
+
825,
|
| 496 |
+
924
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "text",
|
| 502 |
+
"text": "",
|
| 503 |
+
"bbox": [
|
| 504 |
+
174,
|
| 505 |
+
103,
|
| 506 |
+
825,
|
| 507 |
+
147
|
| 508 |
+
],
|
| 509 |
+
"page_idx": 4
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"type": "text",
|
| 513 |
+
"text": "To control the trade-off between ${ { \\bf { M } } _ { r } }$ and $\\mathbf { M } _ { s }$ , we define a rate $R _ { r }$ denoting how much we trust the pruning decision made by ${ { \\bf { M } } _ { r } }$ , while $1 - R _ { r }$ is for $\\mathbf { M } _ { s }$ . That means the channels selected by $\\overline { { \\mathbf { M } } } _ { r }$ will be finally pruned with the rate $R _ { r }$ . Specifically, the number of channels which are selected by $\\overline { { \\mathbf { M } } } _ { r }$ and finally will be pruned is ",
|
| 514 |
+
"bbox": [
|
| 515 |
+
174,
|
| 516 |
+
154,
|
| 517 |
+
823,
|
| 518 |
+
212
|
| 519 |
+
],
|
| 520 |
+
"page_idx": 4
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"type": "equation",
|
| 524 |
+
"img_path": "images/e42f21874872a70bdba0ae81aa7080f8df5c8a4789de2e33f49de4d365f70659.jpg",
|
| 525 |
+
"text": "$$\nC _ { r } ^ { ' } = \\lfloor R _ { r } ( \\mathbf { 1 } ^ { \\top } \\overline { { \\mathbf { M } } } _ { r } ) \\rfloor ,\n$$",
|
| 526 |
+
"text_format": "latex",
|
| 527 |
+
"bbox": [
|
| 528 |
+
428,
|
| 529 |
+
210,
|
| 530 |
+
568,
|
| 531 |
+
231
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 4
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "where $\\mathbf { 1 } ^ { \\top } \\overline { { \\mathbf { M } } } _ { r }$ returns the number of channels selected by $\\overline { { \\mathbf { M } } } _ { r }$ . We then select the first $C _ { r } ^ { ' }$ -smallest important channels which are recommended to be pruned by $\\overline { { \\mathbf { M } } } _ { r }$ to form a mask $\\widehat { \\mathbf { M } } _ { r }$ . Similarly, for static pruning, we select the first $C _ { s } ^ { ' }$ -smallest important channels which are recommended to be pruned by $\\overline { { \\mathbf { M } } } _ { s }$ to form another mask $\\widehat { \\mathbf { M } } _ { s }$ , where $C _ { s } ^ { ' } = \\lfloor ( 1 - R _ { r } ) ( \\mathbf { 1 } ^ { \\top } \\overline { { \\mathbf { M } } } _ { s } ) \\rfloor$ . ",
|
| 538 |
+
"bbox": [
|
| 539 |
+
174,
|
| 540 |
+
234,
|
| 541 |
+
825,
|
| 542 |
+
303
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 4
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "text",
|
| 548 |
+
"text": "The final trade-off pruning mask is defined as ",
|
| 549 |
+
"bbox": [
|
| 550 |
+
176,
|
| 551 |
+
308,
|
| 552 |
+
473,
|
| 553 |
+
323
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "equation",
|
| 559 |
+
"img_path": "images/a8fbe6107f301fd83dc35ecbbeb28112c26bfa31d9a6a8ee8bef4337f7d9dac5.jpg",
|
| 560 |
+
"text": "$$\n\\mathbf { M } = \\mathbf { M } _ { o } + \\widehat { \\mathbf { M } } _ { r } + \\widehat { \\mathbf { M } } _ { s } .\n$$",
|
| 561 |
+
"text_format": "latex",
|
| 562 |
+
"bbox": [
|
| 563 |
+
416,
|
| 564 |
+
329,
|
| 565 |
+
581,
|
| 566 |
+
349
|
| 567 |
+
],
|
| 568 |
+
"page_idx": 4
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"type": "text",
|
| 572 |
+
"text": "Moreover, in this work, the unified channel importance is simply defined as follows, ",
|
| 573 |
+
"bbox": [
|
| 574 |
+
173,
|
| 575 |
+
356,
|
| 576 |
+
725,
|
| 577 |
+
371
|
| 578 |
+
],
|
| 579 |
+
"page_idx": 4
|
| 580 |
+
},
|
| 581 |
+
{
|
| 582 |
+
"type": "equation",
|
| 583 |
+
"img_path": "images/e5a198a1124c5e92f4857eb025f420d00e4ef14196e89e31370461bcc2bf02b5.jpg",
|
| 584 |
+
"text": "$$\n\\mathbf { u } = \\mathbf { u } _ { r } \\otimes \\mathbf { u } _ { s } .\n$$",
|
| 585 |
+
"text_format": "latex",
|
| 586 |
+
"bbox": [
|
| 587 |
+
450,
|
| 588 |
+
380,
|
| 589 |
+
547,
|
| 590 |
+
393
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 4
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "With the trade-off pruning mask $\\mathbf { M }$ and the unified channel importance $\\mathbf { u }$ , the pruned output feature $\\hat { \\mathbf { F } } _ { o u t }$ can be generated by Eq. 2. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
171,
|
| 599 |
+
401,
|
| 600 |
+
825,
|
| 601 |
+
433
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "3.3 DRL BASED PRUNING ",
|
| 608 |
+
"text_level": 1,
|
| 609 |
+
"bbox": [
|
| 610 |
+
176,
|
| 611 |
+
449,
|
| 612 |
+
367,
|
| 613 |
+
464
|
| 614 |
+
],
|
| 615 |
+
"page_idx": 4
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"type": "text",
|
| 619 |
+
"text": "In this section, we present how to formulate the problems of learning the ratios $d _ { s }$ and $d _ { t }$ for static pruning and runtime pruning, as a MDP, and solve it via DRL, respectively. ",
|
| 620 |
+
"bbox": [
|
| 621 |
+
173,
|
| 622 |
+
476,
|
| 623 |
+
825,
|
| 624 |
+
505
|
| 625 |
+
],
|
| 626 |
+
"page_idx": 4
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"type": "text",
|
| 630 |
+
"text": "3.3.1 DRL FOR RUNTIME PRUNING ",
|
| 631 |
+
"text_level": 1,
|
| 632 |
+
"bbox": [
|
| 633 |
+
174,
|
| 634 |
+
520,
|
| 635 |
+
431,
|
| 636 |
+
534
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 4
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "In the MDP for runtime pruning, we consider the $t$ -th layer of the network as the $t$ -th timestamp. \nThe details of the MDP are listed as follows. ",
|
| 643 |
+
"bbox": [
|
| 644 |
+
176,
|
| 645 |
+
544,
|
| 646 |
+
821,
|
| 647 |
+
571
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 4
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "text",
|
| 653 |
+
"text": "State Given an input feature map $\\mathbf { F } _ { i n }$ of layer $t$ , we pass it to a global pooling layer to reduce its dimension to $\\mathbb { R } ^ { C _ { i n } }$ , where $C _ { i n }$ is the number of input channel of layer $t$ . Since $C _ { i n }$ varies among layers, we feed the output of global pooling to a layer-dependent encoder to project it to a fix-length vector $s _ { t } ^ { r }$ , which is considered as as a state representation of DRL in the context of runtime pruning. ",
|
| 654 |
+
"bbox": [
|
| 655 |
+
174,
|
| 656 |
+
588,
|
| 657 |
+
825,
|
| 658 |
+
643
|
| 659 |
+
],
|
| 660 |
+
"page_idx": 4
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"type": "text",
|
| 664 |
+
"text": "Action The action $a _ { t } ^ { r }$ is defined as the sparsity ratio at layer $t$ , alternating $d _ { r }$ in runtime pruning mentioned in Section 3.1.1. Existing DRL-base pruning method RNP (Lin et al., 2017) uses a unified discrete actions space with $k$ actions which are too coarse to achieve high accuracy. However, finegrained discrete action space as large as number of channels suffers from exploration difficulty. Therefore, instead of using discrete action spaces, we propose a continuous action space with action $a _ { t } ^ { r } \\in ( 0 , 1 ]$ . To avoid over-pruning the filters and crashing in training, we set a minimum sparsity ratio $+ \\alpha$ such that $a _ { t } ^ { r } \\in ( + \\alpha , 1 ]$ . ",
|
| 665 |
+
"bbox": [
|
| 666 |
+
173,
|
| 667 |
+
659,
|
| 668 |
+
825,
|
| 669 |
+
758
|
| 670 |
+
],
|
| 671 |
+
"page_idx": 4
|
| 672 |
+
},
|
| 673 |
+
{
|
| 674 |
+
"type": "text",
|
| 675 |
+
"text": "Reward The reward function is proposed to consider both network accuracy and computation budget. We define the accuracy relative reward based on the loss of pruned backbone network, ",
|
| 676 |
+
"bbox": [
|
| 677 |
+
173,
|
| 678 |
+
772,
|
| 679 |
+
823,
|
| 680 |
+
801
|
| 681 |
+
],
|
| 682 |
+
"page_idx": 4
|
| 683 |
+
},
|
| 684 |
+
{
|
| 685 |
+
"type": "equation",
|
| 686 |
+
"img_path": "images/c25bdc820299cc2d7c1776d93146fcd59c95d3239858d1dc660619dd1d7c8bee.jpg",
|
| 687 |
+
"text": "$$\nR _ { a c c } ^ { r } = - \\mathcal { L } _ { C N N } ,\n$$",
|
| 688 |
+
"text_format": "latex",
|
| 689 |
+
"bbox": [
|
| 690 |
+
437,
|
| 691 |
+
809,
|
| 692 |
+
558,
|
| 693 |
+
825
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 4
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "where $\\mathcal { L } _ { C N N }$ is the loss in CNN, and it may vary in scale among different training stage, i.e. large at beginning of training and small near convergence. To avoid the instability brought by the reward scale, $R _ { a c c } ^ { r }$ is normalized by a moving average, ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
174,
|
| 702 |
+
832,
|
| 703 |
+
825,
|
| 704 |
+
875
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 4
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "equation",
|
| 710 |
+
"img_path": "images/b2cf5c76491f52ee741e87057f64a8ff38de870bb9c41aa20a6ec7f0a3506bca.jpg",
|
| 711 |
+
"text": "$$\nR _ { a c c } ^ { r ^ { \\prime } } = R _ { a c c } ^ { r } / \\beta _ { b } ,\n$$",
|
| 712 |
+
"text_format": "latex",
|
| 713 |
+
"bbox": [
|
| 714 |
+
439,
|
| 715 |
+
882,
|
| 716 |
+
557,
|
| 717 |
+
902
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 4
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "equation",
|
| 723 |
+
"img_path": "images/2971d95668901d82e88537ae3cdcb66fb0649a6fc497e681c3a2346c75051075.jpg",
|
| 724 |
+
"text": "$$\n\\beta _ { b } = \\lambda \\beta _ { b - 1 } + ( 1 - \\lambda ) R _ { a c c } ^ { r } ,\n$$",
|
| 725 |
+
"text_format": "latex",
|
| 726 |
+
"bbox": [
|
| 727 |
+
403,
|
| 728 |
+
907,
|
| 729 |
+
593,
|
| 730 |
+
925
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 4
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "text",
|
| 736 |
+
"text": "where $\\beta _ { b }$ is the moving average at the $b$ -th training batch and $\\lambda$ is the moving weight. ",
|
| 737 |
+
"bbox": [
|
| 738 |
+
173,
|
| 739 |
+
103,
|
| 740 |
+
730,
|
| 741 |
+
119
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 5
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "To force computation of the pruned network under a given computation budget, we define a exponential reward function of budget regarding reward $R _ { b u d } ^ { r }$ : ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
173,
|
| 750 |
+
125,
|
| 751 |
+
825,
|
| 752 |
+
155
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 5
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "equation",
|
| 758 |
+
"img_path": "images/1813615ef8a9899c01dc046e862adb041baf5073d7ae9045b4cabab04c4da5a3.jpg",
|
| 759 |
+
"text": "$$\nR _ { b u d } ^ { r } = \\left\\{ \\begin{array} { l l } { \\exp ( \\alpha _ { 1 } ( B _ { c o m } - \\overline { { B } } _ { c o m } ) ) - 1 , } & { B _ { c o m } > \\overline { { B } } _ { c o m } , } \\\\ { 0 , } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right.\n$$",
|
| 760 |
+
"text_format": "latex",
|
| 761 |
+
"bbox": [
|
| 762 |
+
305,
|
| 763 |
+
160,
|
| 764 |
+
689,
|
| 765 |
+
196
|
| 766 |
+
],
|
| 767 |
+
"page_idx": 5
|
| 768 |
+
},
|
| 769 |
+
{
|
| 770 |
+
"type": "text",
|
| 771 |
+
"text": "where $B _ { c o m }$ is the computation consumption, which is calculated based on the current of pruned strategy, and $\\overline { { B } } _ { c o m }$ is the given computation budget constraint. Finally we sum up the two rewards to form sparse rewards, with being non-zero at terminated step $T$ and zeros at other time step $t < T$ , ",
|
| 772 |
+
"bbox": [
|
| 773 |
+
173,
|
| 774 |
+
202,
|
| 775 |
+
826,
|
| 776 |
+
244
|
| 777 |
+
],
|
| 778 |
+
"page_idx": 5
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"type": "equation",
|
| 782 |
+
"img_path": "images/32d35af3dcbde7e6fdeee3a96dee9c445bdb951e77b91bf6f6eecfe608320a61.jpg",
|
| 783 |
+
"text": "$$\nR _ { t } ^ { r } = \\left\\{ \\begin{array} { l l } { R _ { a c c } ^ { r ^ { \\prime } } + R _ { b u d } ^ { r } , } & { t = T , } \\\\ { 0 , } & { t < T . } \\end{array} \\right.\n$$",
|
| 784 |
+
"text_format": "latex",
|
| 785 |
+
"bbox": [
|
| 786 |
+
393,
|
| 787 |
+
250,
|
| 788 |
+
602,
|
| 789 |
+
286
|
| 790 |
+
],
|
| 791 |
+
"page_idx": 5
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"type": "text",
|
| 795 |
+
"text": "Actor-Critic Agent To solve the continuous action space problem, we choose a commonly used actor-critic agent with a Gaussian policy. Actor-critic agent consists of two components: 1) actor outputs the mean and variance to form a Gaussian policy where the continuous action are sampled from; 2) critic outputs a scalar predicting the future discounted accumulated reward and assists the policy training. Actor network and Critic network share one-layer RNN which takes state $s _ { t } ^ { r }$ as input. The output of RNN is fed into actor specific network constructed by two branches of fullyconnected layers, leading to the mean and variance of the Gaussian policy. The action is sampled for the Gaussian distribution outputed by the actor: ",
|
| 796 |
+
"bbox": [
|
| 797 |
+
173,
|
| 798 |
+
300,
|
| 799 |
+
825,
|
| 800 |
+
412
|
| 801 |
+
],
|
| 802 |
+
"page_idx": 5
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"type": "equation",
|
| 806 |
+
"img_path": "images/ab5742beaa58ae82e1e3602efad7851f18f6c82c85dedf2ed8da1512d86de03b.jpg",
|
| 807 |
+
"text": "$$\na _ { t } ^ { r } \\sim \\mathcal { N } ( \\mu ( s _ { t } ^ { r } ; \\theta ^ { r } ) , \\sigma ( s _ { t } ^ { r } ; \\theta ^ { r } ) ) ,\n$$",
|
| 808 |
+
"text_format": "latex",
|
| 809 |
+
"bbox": [
|
| 810 |
+
398,
|
| 811 |
+
417,
|
| 812 |
+
598,
|
| 813 |
+
435
|
| 814 |
+
],
|
| 815 |
+
"page_idx": 5
|
| 816 |
+
},
|
| 817 |
+
{
|
| 818 |
+
"type": "text",
|
| 819 |
+
"text": "where $\\mu ( s _ { t } ^ { r } ; \\theta ^ { r } )$ and $\\sigma ( s _ { t } ^ { r } ; \\theta ^ { r } )$ is the mean and variance outputed from actor network. The Critic specific network has one fully-connected layer after the shared RNN, and outputs the predictive value $V ( s _ { t } ^ { r } ; \\theta ^ { r } )$ . ",
|
| 820 |
+
"bbox": [
|
| 821 |
+
176,
|
| 822 |
+
440,
|
| 823 |
+
825,
|
| 824 |
+
483
|
| 825 |
+
],
|
| 826 |
+
"page_idx": 5
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"type": "text",
|
| 830 |
+
"text": "To optimize the actor-critic agent, Proximal Policy Optimization (PPO) (Schulman et al., 2017) is used. Note that we relax the action $a _ { t } ^ { r }$ to $( - \\infty , + \\infty )$ in PPO, and use truncate function to clip $a _ { t } ^ { r }$ in $( + \\alpha , 1 ]$ when perform pruning. ",
|
| 831 |
+
"bbox": [
|
| 832 |
+
174,
|
| 833 |
+
489,
|
| 834 |
+
821,
|
| 835 |
+
532
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 5
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "Besides, an additional regularizer is introduced to restrict the relaxed $a _ { t } ^ { r }$ staying in range $( + \\alpha , 1 ]$ ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
539,
|
| 845 |
+
807,
|
| 846 |
+
554
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 5
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "equation",
|
| 852 |
+
"img_path": "images/150af902c09851bc9580e95eb7e645239208b9182b8133b94abc8fe168242610.jpg",
|
| 853 |
+
"text": "$$\n\\mathcal { L } _ { a } = \\frac { 1 } { 2 } | | a _ { t } ^ { r } - \\operatorname* { m a x } ( \\operatorname* { m i n } ( a _ { t } ^ { r } , 1 ) , + \\alpha ) | | _ { 2 } ^ { 2 } .\n$$",
|
| 854 |
+
"text_format": "latex",
|
| 855 |
+
"bbox": [
|
| 856 |
+
367,
|
| 857 |
+
559,
|
| 858 |
+
630,
|
| 859 |
+
589
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 5
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"text": "3.3.2 DRL FOR STATIC PRUNING ",
|
| 866 |
+
"text_level": 1,
|
| 867 |
+
"bbox": [
|
| 868 |
+
174,
|
| 869 |
+
602,
|
| 870 |
+
415,
|
| 871 |
+
616
|
| 872 |
+
],
|
| 873 |
+
"page_idx": 5
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"type": "text",
|
| 877 |
+
"text": "Similar to runtime pruning, the MDP in static pruning is also formulated layer-by-layer. The difference against runtime pruning is the definition of state and reward. ",
|
| 878 |
+
"bbox": [
|
| 879 |
+
174,
|
| 880 |
+
626,
|
| 881 |
+
823,
|
| 882 |
+
655
|
| 883 |
+
],
|
| 884 |
+
"page_idx": 5
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"type": "text",
|
| 888 |
+
"text": "State The state $s _ { t } ^ { s }$ in static pruning is defined as the full shape of $\\mathbf { F } _ { o u t }$ , and does not depend on $\\mathbf { F } _ { o u t }$ and the current input data. ",
|
| 889 |
+
"bbox": [
|
| 890 |
+
173,
|
| 891 |
+
669,
|
| 892 |
+
823,
|
| 893 |
+
698
|
| 894 |
+
],
|
| 895 |
+
"page_idx": 5
|
| 896 |
+
},
|
| 897 |
+
{
|
| 898 |
+
"type": "text",
|
| 899 |
+
"text": "Action Action $a _ { t } ^ { s }$ is sampled from actor’s outputed Gaussian policy, and it is to alternate the sparsity $d _ { s }$ in static pruning mentioned in Section 3.1.2. ",
|
| 900 |
+
"bbox": [
|
| 901 |
+
173,
|
| 902 |
+
713,
|
| 903 |
+
821,
|
| 904 |
+
742
|
| 905 |
+
],
|
| 906 |
+
"page_idx": 5
|
| 907 |
+
},
|
| 908 |
+
{
|
| 909 |
+
"type": "text",
|
| 910 |
+
"text": "Reward The reward function takes both network accuracy and parameters budget into consideration. The accuracy relative is defined as the same as that in runtime pruning: ",
|
| 911 |
+
"bbox": [
|
| 912 |
+
173,
|
| 913 |
+
756,
|
| 914 |
+
821,
|
| 915 |
+
785
|
| 916 |
+
],
|
| 917 |
+
"page_idx": 5
|
| 918 |
+
},
|
| 919 |
+
{
|
| 920 |
+
"type": "equation",
|
| 921 |
+
"img_path": "images/93371f187fc0717ccd4d5db0a56c820397ddaf3caba6815bdb16326df1f72883.jpg",
|
| 922 |
+
"text": "$$\nR _ { a c c } ^ { s } = R _ { a c c } ^ { r ^ { \\prime } } .\n$$",
|
| 923 |
+
"text_format": "latex",
|
| 924 |
+
"bbox": [
|
| 925 |
+
452,
|
| 926 |
+
791,
|
| 927 |
+
545,
|
| 928 |
+
810
|
| 929 |
+
],
|
| 930 |
+
"page_idx": 5
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"type": "text",
|
| 934 |
+
"text": "To reduce the number of parameters of network to satisfy the parameters storage budget, the parameters relative reward is defined in an exponential form as, ",
|
| 935 |
+
"bbox": [
|
| 936 |
+
169,
|
| 937 |
+
816,
|
| 938 |
+
823,
|
| 939 |
+
844
|
| 940 |
+
],
|
| 941 |
+
"page_idx": 5
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"type": "equation",
|
| 945 |
+
"img_path": "images/d926bc05f14bed2feb7750c7f596d5af420d3c056c1acf4de1e65bb7ab782bb5.jpg",
|
| 946 |
+
"text": "$$\nR _ { p a r a m } ^ { s } = \\left\\{ \\begin{array} { l l } { \\exp ( \\alpha _ { 2 } ( B _ { p a r a m } - \\overline { { B } } _ { p a r a m } ) ) - 1 , } & { B _ { p a r a m } > \\overline { { B } } _ { p a r a m } , } \\\\ { 0 , } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right.\n$$",
|
| 947 |
+
"text_format": "latex",
|
| 948 |
+
"bbox": [
|
| 949 |
+
266,
|
| 950 |
+
851,
|
| 951 |
+
727,
|
| 952 |
+
887
|
| 953 |
+
],
|
| 954 |
+
"page_idx": 5
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"type": "text",
|
| 958 |
+
"text": "where $B _ { p a r a m }$ is the number of preserved parameters after static pruning and $\\overline { { B } } _ { p a r a m }$ is the parameters storage budget. ",
|
| 959 |
+
"bbox": [
|
| 960 |
+
176,
|
| 961 |
+
895,
|
| 962 |
+
821,
|
| 963 |
+
924
|
| 964 |
+
],
|
| 965 |
+
"page_idx": 5
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"type": "table",
|
| 969 |
+
"img_path": "images/4b0342d02e34aa32756cee647ecf68c12da4f63bded41415848b5fe72c47ab80.jpg",
|
| 970 |
+
"table_caption": [
|
| 971 |
+
"Table 1: Comparison to state-of-the-art runtime pruning methods on CIFAR-10 at sparsity 0.5. Speed-up is calculated on MACs. "
|
| 972 |
+
],
|
| 973 |
+
"table_footnote": [],
|
| 974 |
+
"table_body": "<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td><td>Speed-up</td><td>#Params</td></tr><tr><td>FBS (Gao et al., 2019)</td><td>91.37</td><td>89.88</td><td>-1.49</td><td>3.93×</td><td>1.11×</td></tr><tr><td>RNP (Lin et al., 2017)</td><td>92.07</td><td>84.93</td><td>-7.14</td><td>3.56×</td><td>1.00×</td></tr><tr><td>ours (runtime only Rr = 1)</td><td>92.07</td><td>91.333</td><td>-0.737</td><td>3.92×</td><td>1.31×</td></tr><tr><td>ours (Rr = 0.5)</td><td>92.07</td><td>91.066</td><td>-1.004</td><td>3.92×</td><td>0.78×</td></tr></table>",
|
| 975 |
+
"bbox": [
|
| 976 |
+
210,
|
| 977 |
+
94,
|
| 978 |
+
782,
|
| 979 |
+
176
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 6
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "table",
|
| 985 |
+
"img_path": "images/977a00a9353f3240ea835b43a0fc49439a4825c5a28ce62592f9e77aa0be4a34.jpg",
|
| 986 |
+
"table_caption": [],
|
| 987 |
+
"table_footnote": [],
|
| 988 |
+
"table_body": "<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td><td>Speed-up</td><td>#Params</td></tr><tr><td>FBS (Gao et al., 2019)</td><td>91.37</td><td>91.23</td><td>-0.14</td><td>2×</td><td>1.11×</td></tr><tr><td>ours (Rr = 1.0)</td><td>92.07</td><td>93.178</td><td>+1.108</td><td>1.99×</td><td>1.31×</td></tr><tr><td>ours (Rr = 0.5)</td><td>92.07</td><td>92.502</td><td>+0.432</td><td>1.99×</td><td>0.97×</td></tr></table>",
|
| 989 |
+
"bbox": [
|
| 990 |
+
223,
|
| 991 |
+
237,
|
| 992 |
+
769,
|
| 993 |
+
306
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 6
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Table 2: Comparison to state-of-the-art runtime pruning methods on CIFAR-10 at sparsity 0.7. \nSpeed-up is calculated on MACs. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
316,
|
| 1003 |
+
821,
|
| 1004 |
+
344
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 6
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Actor-Critic Agent This agent is similar to the one in runtime pruning. It has the same architecture as runtime pruning but differs in introducing a fully-connected layer as the encoder before RNN. This agent is also optimized by PPO. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
176,
|
| 1013 |
+
378,
|
| 1014 |
+
823,
|
| 1015 |
+
421
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 6
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "3.4 INFERENCE ",
|
| 1022 |
+
"text_level": 1,
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
449,
|
| 1026 |
+
295,
|
| 1027 |
+
463
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "In inference, the static agent is not required any more because the static pruning strategy does not depend on individual input data points but the full shape of $\\mathbf { F } _ { i n }$ . Therefore, the output action $a _ { t } ^ { s }$ is fixed to each layer $t$ . With the action $a _ { t } ^ { s }$ and the rate $R _ { r }$ , we can decide which filters can be pruned permanently. Specifically, channels with $( ( 1 - a _ { t } ^ { s } ) ( 1 - R _ { r } ) )$ -smallest static importance values are pruned permanently. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
478,
|
| 1037 |
+
825,
|
| 1038 |
+
549
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 6
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "4 EXPERIMENT ",
|
| 1045 |
+
"text_level": 1,
|
| 1046 |
+
"bbox": [
|
| 1047 |
+
176,
|
| 1048 |
+
579,
|
| 1049 |
+
316,
|
| 1050 |
+
594
|
| 1051 |
+
],
|
| 1052 |
+
"page_idx": 6
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"type": "text",
|
| 1056 |
+
"text": "We evaluate our DRL pruning framework on two popular datasets: CIFAR-10 (Krizhevsky, 2009) and ImageNet ILSVRC2012 (Russakovsky et al., 2015), to show the advantage over other channel pruning methods. We analyze the effect of hyper-parameters and different sparsity settings on CIFAR-10. For CIFAR-10, we use M-CifarNet (Zhao et al., 2018) as the backbone CNN. On ImageNet ILSVRC2012, ResNet-18 is used as the backbone CNN. ",
|
| 1057 |
+
"bbox": [
|
| 1058 |
+
174,
|
| 1059 |
+
616,
|
| 1060 |
+
825,
|
| 1061 |
+
685
|
| 1062 |
+
],
|
| 1063 |
+
"page_idx": 6
|
| 1064 |
+
},
|
| 1065 |
+
{
|
| 1066 |
+
"type": "text",
|
| 1067 |
+
"text": "4.1 IMPLEMENTATION DETAILS ",
|
| 1068 |
+
"text_level": 1,
|
| 1069 |
+
"bbox": [
|
| 1070 |
+
176,
|
| 1071 |
+
713,
|
| 1072 |
+
403,
|
| 1073 |
+
727
|
| 1074 |
+
],
|
| 1075 |
+
"page_idx": 6
|
| 1076 |
+
},
|
| 1077 |
+
{
|
| 1078 |
+
"type": "text",
|
| 1079 |
+
"text": "We start with a pretrained backbone CNN. Firstly we finetune the backbone CNN and train runtime importance predictor jointly, with sparsity $d _ { r } = 1$ and fixed all static pruning importance $\\mathbf { u } _ { s }$ to 1. Then we remove the restriction on the static pruning importance $\\mathbf { u } _ { s }$ , and train static pruning importance, the backbone CNN and the runtime importance predictor, with sparsity $d _ { s } = 1$ and runtime pruning sparsity fixed as $d _ { r } = 1$ . After finetuning, we use the DRL agents to predict the sparsity given computation and storage constraints. The DRL agents and the CNN with runtime/static importance are trained in alternating manner: We first fix the CNN as well as runtime/static importance and train two DRL agents, regarding the CNN as environments. Then we fix two agents and finetune the CNN and runtime/static importance. We repeat these two steps until convergence is achieved. We use Adam optimizer for both DRL agent and CNN, and set learning rate at $\\overline { { 1 } } 0 ^ { - 6 }$ for the DRL agents. For CNN finetuning and runtime/static importance training, the learning rate is set to $1 0 ^ { - 3 }$ on CIFAR-10. On ImageNet ILSVRC2012, the learning rate starts from $1 0 ^ { - 3 }$ and is divided by 10 after 15 millions iterations. ",
|
| 1080 |
+
"bbox": [
|
| 1081 |
+
174,
|
| 1082 |
+
743,
|
| 1083 |
+
825,
|
| 1084 |
+
922
|
| 1085 |
+
],
|
| 1086 |
+
"page_idx": 6
|
| 1087 |
+
},
|
| 1088 |
+
{
|
| 1089 |
+
"type": "image",
|
| 1090 |
+
"img_path": "images/7149d698e379a247989cb4adf19d30fa5182186ecfe11294cd3330e87a35f835.jpg",
|
| 1091 |
+
"image_caption": [
|
| 1092 |
+
"Figure 2: Trade-off between runtime pruning and static pruning at sparsity 0.45. X-axis is the rate $R _ { r }$ "
|
| 1093 |
+
],
|
| 1094 |
+
"image_footnote": [],
|
| 1095 |
+
"bbox": [
|
| 1096 |
+
179,
|
| 1097 |
+
98,
|
| 1098 |
+
460,
|
| 1099 |
+
260
|
| 1100 |
+
],
|
| 1101 |
+
"page_idx": 7
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"type": "image",
|
| 1105 |
+
"img_path": "images/785f2daf37a85fbdca7f2c6dbb534f6089b0380f10283987a3300f504ce7e5be.jpg",
|
| 1106 |
+
"image_caption": [
|
| 1107 |
+
"Figure 3: Comparison accuracy drop for MCifarNet on CIFAR-10 with computational budget. "
|
| 1108 |
+
],
|
| 1109 |
+
"image_footnote": [],
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
531,
|
| 1112 |
+
98,
|
| 1113 |
+
813,
|
| 1114 |
+
260
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 7
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "table",
|
| 1120 |
+
"img_path": "images/1100f375ba0e3335a47775ba81f55ac9b18f826ec725e923ef973cdf302c478f.jpg",
|
| 1121 |
+
"table_caption": [],
|
| 1122 |
+
"table_footnote": [
|
| 1123 |
+
"Table 3: Comparison with the state-of-the-art channel pruning ResNet-18 on ImageNet. Speed-up is calculated on MACs. "
|
| 1124 |
+
],
|
| 1125 |
+
"table_body": "<table><tr><td>Method</td><td>Baseline top-1 acc.</td><td>Top-1 acc.</td><td>△ top-1 acc.</td><td>Baseline top-5 acc.</td><td>Top-5 acc.</td><td>△ top-5 acc.</td><td>Speed-up</td></tr><tr><td>DCP (Zhuang et al., 2018)</td><td>69.64</td><td>67.35</td><td>-2.29</td><td>88.98</td><td>88.86</td><td>-0.12</td><td>1.71×</td></tr><tr><td>FPGM (He et al., 2019)</td><td>70.28</td><td>68.41</td><td>-1.87</td><td>89.63</td><td>88.48</td><td>-1.15</td><td>1.71×</td></tr><tr><td>Dynamic Sparse Graph (Liu et al.,2019)</td><td>69.48</td><td>64.8</td><td>-4.68</td><td></td><td>■</td><td></td><td>1.4×</td></tr><tr><td>CGNN (Hua et al.,2018)</td><td>69.02</td><td>67.95</td><td>-1.07</td><td>88.84</td><td>88.21</td><td>-0.63</td><td>1.63×</td></tr><tr><td>FBS (Gao et al.,2019)</td><td>70.71</td><td>68.17</td><td>-2.54</td><td>89.68</td><td>88.22</td><td>-1.46</td><td>1.98×</td></tr><tr><td>Ours (Rr = 0.5)</td><td>69.758</td><td>68.79</td><td>-0.968</td><td>89.078</td><td>88.534</td><td>-0.544</td><td>1.94×</td></tr></table>",
|
| 1126 |
+
"bbox": [
|
| 1127 |
+
181,
|
| 1128 |
+
330,
|
| 1129 |
+
812,
|
| 1130 |
+
433
|
| 1131 |
+
],
|
| 1132 |
+
"page_idx": 7
|
| 1133 |
+
},
|
| 1134 |
+
{
|
| 1135 |
+
"type": "text",
|
| 1136 |
+
"text": "4.2 EXPERIMENTAL RESULTS ON CIFAR-10 ",
|
| 1137 |
+
"text_level": 1,
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
174,
|
| 1140 |
+
481,
|
| 1141 |
+
493,
|
| 1142 |
+
494
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 7
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "We compare our proposed method with the following state-of-the-art runtime pruning methods: FBS (Gao et al., 2019), RNP (Lin et al., 2017) on CIFAR-10. The comparison results at sparsity 0.5 and 0.7 are shown in Table 1 and Table 2 respectively. Note that for fair comparison with other methods, the computation and storage budget constraints in our method is calculated according to the sparsity of other methods. Under these constraints, our method does not necessarily lead to the same sparsity as other methods in each layer. RNP cannot set exact sparsity ratio. Instead, its average sparsity ratio is accessible only during testing, which is 0.537 in Table 1. The result of FBS is reproduced using the released code1. The column #Params represents the number of parameters compared to the backbone CNN. ",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
173,
|
| 1151 |
+
508,
|
| 1152 |
+
825,
|
| 1153 |
+
633
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 7
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Table 1 shows that our method outperforms other state-of-the-art methods, achieving highest accuracy at an overall sparsity ratio of 0.5. Our method has very close computation speed-up compared to FBS, but outperforms FBS around $0 . 4 8 \\%$ to $0 . 7 6 \\%$ . When the runtime pruning strategy is solely considered by setting $R _ { r } = 1$ , our method surpasses other comparison methods, indicating that our DRL-based framework improves the performance of channel runtime pruning. By balancing runtime and static pruning via setting $R _ { r } = 0 . 5$ , our method reduces the number of the overall stored parameters and achieves lower accuracy drop than other methods. Table 2 shows that our method outperforms FBS at sparsity of 0.7. When $R _ { r } = 0 . 5$ , our method achieves better performance than the baseline CNN with $2 \\times$ speed-up and contains less parameters. ",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
173,
|
| 1162 |
+
641,
|
| 1163 |
+
825,
|
| 1164 |
+
766
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 7
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "We also study the relation between $R _ { r }$ and network compactness in our framework. Fig. 2 demonstrates the impact of $R _ { r }$ when sparsity is 0.45. The hyper-parameter $R _ { r }$ determines how much we trust about runtime pruning. With $R _ { r }$ close to 1, the accuracy becomes higher due to the more dynamic network flexibility but the space of the parameters storage also increases. When $R _ { r }$ diminishes, the network accuracy decreases but the parameter storage is reduced. ",
|
| 1171 |
+
"bbox": [
|
| 1172 |
+
174,
|
| 1173 |
+
772,
|
| 1174 |
+
823,
|
| 1175 |
+
843
|
| 1176 |
+
],
|
| 1177 |
+
"page_idx": 7
|
| 1178 |
+
},
|
| 1179 |
+
{
|
| 1180 |
+
"type": "text",
|
| 1181 |
+
"text": "Fig. 3 shows the performance of various sparsity ratios in our method. Again, our method does not prune with one single sparsity ratio for all layers, but uses the sparsity ratio to calculate computation and storage constraints, with which the sparsity ratio is learned for each layer. Fig. 3 demonstrates that our method holds the accuracy when sparsity is larger than about 0.5, which corresponds to about $4 \\times$ computational acceleration. ",
|
| 1182 |
+
"bbox": [
|
| 1183 |
+
173,
|
| 1184 |
+
849,
|
| 1185 |
+
825,
|
| 1186 |
+
892
|
| 1187 |
+
],
|
| 1188 |
+
"page_idx": 7
|
| 1189 |
+
},
|
| 1190 |
+
{
|
| 1191 |
+
"type": "text",
|
| 1192 |
+
"text": "",
|
| 1193 |
+
"bbox": [
|
| 1194 |
+
174,
|
| 1195 |
+
103,
|
| 1196 |
+
823,
|
| 1197 |
+
132
|
| 1198 |
+
],
|
| 1199 |
+
"page_idx": 8
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"type": "text",
|
| 1203 |
+
"text": "4.3 EXPERIMENTAL RESULTS ON IMAGENET ILSVRC2012 ",
|
| 1204 |
+
"text_level": 1,
|
| 1205 |
+
"bbox": [
|
| 1206 |
+
174,
|
| 1207 |
+
148,
|
| 1208 |
+
599,
|
| 1209 |
+
164
|
| 1210 |
+
],
|
| 1211 |
+
"page_idx": 8
|
| 1212 |
+
},
|
| 1213 |
+
{
|
| 1214 |
+
"type": "text",
|
| 1215 |
+
"text": "We compare our method with state-of-the-art channel pruning methods on ImageNet ILSVRC2012 as shown in Table 3. In this experiment, we use ResNet-18 as the backbone CNN. Among the stateof-the-art pruning methods for comparison, FBS (Gao et al., 2019) and CGNN (Hua et al., 2018) are runtime pruning methods. The overall sparsity ratio of our method is 0.7, which is under the same setting of FBS. Our method with $R _ { r } = 0 . 5$ achieves the smallest top-1 accuracy drop compared with other methods, and also achieves the highest top-1 accuracy after pruning. Overall, our proposed method achieves comparable or better performance compared to other methods with more acceleration. Our method has very close MACs to FBS, while the number of preserved parameters is reduced to $8 1 . 2 \\%$ of the baseline. ",
|
| 1216 |
+
"bbox": [
|
| 1217 |
+
174,
|
| 1218 |
+
174,
|
| 1219 |
+
825,
|
| 1220 |
+
300
|
| 1221 |
+
],
|
| 1222 |
+
"page_idx": 8
|
| 1223 |
+
},
|
| 1224 |
+
{
|
| 1225 |
+
"type": "text",
|
| 1226 |
+
"text": "5 CONCLUSION ",
|
| 1227 |
+
"text_level": 1,
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
176,
|
| 1230 |
+
320,
|
| 1231 |
+
318,
|
| 1232 |
+
337
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "In this paper, we present a deep reinforcement learning based framework for deep neural network channel pruning in both runtime and static sheme. Specially, channels are pruned according to input feature as runtime pruning, and based on entire training dataset as static pruning, with 2 reinforcement agents to determine the corresponding sparsity. Our method combines the merits of runtime and static pruning, and provides trade-off between storage and dynamic flexibility. Extensive experiments demonstrate the effectiveness of our proposed method. ",
|
| 1239 |
+
"bbox": [
|
| 1240 |
+
174,
|
| 1241 |
+
352,
|
| 1242 |
+
825,
|
| 1243 |
+
436
|
| 1244 |
+
],
|
| 1245 |
+
"page_idx": 8
|
| 1246 |
+
},
|
| 1247 |
+
{
|
| 1248 |
+
"type": "text",
|
| 1249 |
+
"text": "REFERENCES ",
|
| 1250 |
+
"text_level": 1,
|
| 1251 |
+
"bbox": [
|
| 1252 |
+
174,
|
| 1253 |
+
457,
|
| 1254 |
+
285,
|
| 1255 |
+
472
|
| 1256 |
+
],
|
| 1257 |
+
"page_idx": 8
|
| 1258 |
+
},
|
| 1259 |
+
{
|
| 1260 |
+
"type": "text",
|
| 1261 |
+
"text": "Tolga Bolukbasi, Joseph Wang, Ofer Dekel, and Venkatesh Saligrama. Adaptive neural networks for efficient inference. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 527–536. JMLR. org, 2017. ",
|
| 1262 |
+
"bbox": [
|
| 1263 |
+
176,
|
| 1264 |
+
481,
|
| 1265 |
+
821,
|
| 1266 |
+
523
|
| 1267 |
+
],
|
| 1268 |
+
"page_idx": 8
|
| 1269 |
+
},
|
| 1270 |
+
{
|
| 1271 |
+
"type": "text",
|
| 1272 |
+
"text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016. ",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
176,
|
| 1275 |
+
532,
|
| 1276 |
+
821,
|
| 1277 |
+
575
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 8
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "Misha Denil, Babak Shakibi, Laurent Dinh, Marc’Aurelio Ranzato, and Nando de Freitas. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems 26, pp. 2148– 2156. Curran Associates, Inc., 2013. ",
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
174,
|
| 1286 |
+
584,
|
| 1287 |
+
823,
|
| 1288 |
+
627
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 8
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "Xin Dong, Shangyu Chen, and Sinno Pan. Learning to prune deep neural networks via layer-wise optimal brain surgeon. In Advances in Neural Information Processing Systems, pp. 4857–4867, 2017. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
636,
|
| 1298 |
+
823,
|
| 1299 |
+
678
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 8
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "text",
|
| 1305 |
+
"text": "Xitong Gao, Yiren Zhao, ukasz Dudziak, Robert Mullins, and Cheng zhong Xu. Dynamic channel pruning: Feature boosting and suppression. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id ${ . } =$ BJxh2j0qYm. ",
|
| 1306 |
+
"bbox": [
|
| 1307 |
+
174,
|
| 1308 |
+
688,
|
| 1309 |
+
823,
|
| 1310 |
+
731
|
| 1311 |
+
],
|
| 1312 |
+
"page_idx": 8
|
| 1313 |
+
},
|
| 1314 |
+
{
|
| 1315 |
+
"type": "text",
|
| 1316 |
+
"text": "K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp. 770–778, June 2016. doi: 10.1109/CVPR.2016.90. ",
|
| 1317 |
+
"bbox": [
|
| 1318 |
+
176,
|
| 1319 |
+
739,
|
| 1320 |
+
823,
|
| 1321 |
+
781
|
| 1322 |
+
],
|
| 1323 |
+
"page_idx": 8
|
| 1324 |
+
},
|
| 1325 |
+
{
|
| 1326 |
+
"type": "text",
|
| 1327 |
+
"text": "K. He, G. Gkioxari, P. Dollr, and R. Girshick. Mask r-cnn. In 2017 IEEE International Conference on Computer Vision (ICCV), pp. 2980–2988, Oct 2017. doi: 10.1109/ICCV.2017.322. ",
|
| 1328 |
+
"bbox": [
|
| 1329 |
+
171,
|
| 1330 |
+
791,
|
| 1331 |
+
823,
|
| 1332 |
+
820
|
| 1333 |
+
],
|
| 1334 |
+
"page_idx": 8
|
| 1335 |
+
},
|
| 1336 |
+
{
|
| 1337 |
+
"type": "text",
|
| 1338 |
+
"text": "Yang He, Ping Liu, Ziwei Wang, Zhilan Hu, and Yi Yang. Filter pruning via geometric median for deep convolutional neural networks acceleration. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4340–4349, 2019. ",
|
| 1339 |
+
"bbox": [
|
| 1340 |
+
176,
|
| 1341 |
+
829,
|
| 1342 |
+
823,
|
| 1343 |
+
872
|
| 1344 |
+
],
|
| 1345 |
+
"page_idx": 8
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"type": "text",
|
| 1349 |
+
"text": "Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017. ",
|
| 1350 |
+
"bbox": [
|
| 1351 |
+
176,
|
| 1352 |
+
881,
|
| 1353 |
+
825,
|
| 1354 |
+
922
|
| 1355 |
+
],
|
| 1356 |
+
"page_idx": 8
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"type": "text",
|
| 1360 |
+
"text": "Yihui He, Ji Lin, Zhijian Liu, Hanrui Wang, Li-Jia Li, and Song Han. Amc: Automl for model compression and acceleration on mobile devices. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 784–800, 2018. ",
|
| 1361 |
+
"bbox": [
|
| 1362 |
+
176,
|
| 1363 |
+
103,
|
| 1364 |
+
823,
|
| 1365 |
+
146
|
| 1366 |
+
],
|
| 1367 |
+
"page_idx": 9
|
| 1368 |
+
},
|
| 1369 |
+
{
|
| 1370 |
+
"type": "text",
|
| 1371 |
+
"text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
171,
|
| 1374 |
+
154,
|
| 1375 |
+
823,
|
| 1376 |
+
183
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 9
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "Weizhe Hua, Christopher De Sa, Zhiru Zhang, and G Edward Suh. Channel gating neural networks. 2018. ",
|
| 1383 |
+
"bbox": [
|
| 1384 |
+
174,
|
| 1385 |
+
190,
|
| 1386 |
+
823,
|
| 1387 |
+
220
|
| 1388 |
+
],
|
| 1389 |
+
"page_idx": 9
|
| 1390 |
+
},
|
| 1391 |
+
{
|
| 1392 |
+
"type": "text",
|
| 1393 |
+
"text": "Alex Krizhevsky. Learning multiple layers of features from tiny images. 2009. ",
|
| 1394 |
+
"bbox": [
|
| 1395 |
+
174,
|
| 1396 |
+
228,
|
| 1397 |
+
692,
|
| 1398 |
+
243
|
| 1399 |
+
],
|
| 1400 |
+
"page_idx": 9
|
| 1401 |
+
},
|
| 1402 |
+
{
|
| 1403 |
+
"type": "text",
|
| 1404 |
+
"text": "Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In F. Pereira, C. J. C. Burges, L. Bottou, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 25, pp. 1097– 1105. Curran Associates, Inc., 2012. URL http://papers.nips.cc/paper/ 4824-imagenet-classification-with-deep-convolutional-neural-networks. pdf. ",
|
| 1405 |
+
"bbox": [
|
| 1406 |
+
174,
|
| 1407 |
+
252,
|
| 1408 |
+
869,
|
| 1409 |
+
335
|
| 1410 |
+
],
|
| 1411 |
+
"page_idx": 9
|
| 1412 |
+
},
|
| 1413 |
+
{
|
| 1414 |
+
"type": "text",
|
| 1415 |
+
"text": "Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In The European Conference on Computer Vision (ECCV), September 2018. ",
|
| 1416 |
+
"bbox": [
|
| 1417 |
+
174,
|
| 1418 |
+
344,
|
| 1419 |
+
823,
|
| 1420 |
+
372
|
| 1421 |
+
],
|
| 1422 |
+
"page_idx": 9
|
| 1423 |
+
},
|
| 1424 |
+
{
|
| 1425 |
+
"type": "text",
|
| 1426 |
+
"text": "Ji Lin, Yongming Rao, Jiwen Lu, and Jie Zhou. Runtime neural pruning. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (eds.), Advances in Neural Information Processing Systems 30, pp. 2181–2191. Curran Associates, Inc., 2017. URL http://papers.nips.cc/paper/6813-runtime-neural-pruning.pdf. ",
|
| 1427 |
+
"bbox": [
|
| 1428 |
+
174,
|
| 1429 |
+
381,
|
| 1430 |
+
825,
|
| 1431 |
+
438
|
| 1432 |
+
],
|
| 1433 |
+
"page_idx": 9
|
| 1434 |
+
},
|
| 1435 |
+
{
|
| 1436 |
+
"type": "text",
|
| 1437 |
+
"text": "Lanlan Liu and Jia Deng. Dynamic deep neural networks: Optimizing accuracy-efficiency trade-offs by selective execution. In Thirty-Second AAAI Conference on Artificial Intelligence, 2018. ",
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
174,
|
| 1440 |
+
445,
|
| 1441 |
+
825,
|
| 1442 |
+
476
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 9
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "Liu Liu, Lei Deng, Xing Hu, Maohua Zhu, Guoqi Li, Yufei Ding, and Yuan Xie. Dynamic sparse graph for efficient deep learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $=$ H1goBoR9F7. ",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
173,
|
| 1451 |
+
483,
|
| 1452 |
+
825,
|
| 1453 |
+
526
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 9
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2736–2744, 2017. ",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
174,
|
| 1462 |
+
534,
|
| 1463 |
+
826,
|
| 1464 |
+
577
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 9
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "Jian-Hao Luo and Jianxin Wu. Autopruner: An end-to-end trainable filter pruning method for efficient deep model inference. CoRR, abs/1805.08941, 2018. URL http://arxiv.org/ abs/1805.08941. ",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
174,
|
| 1473 |
+
585,
|
| 1474 |
+
825,
|
| 1475 |
+
627
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 9
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. ",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
174,
|
| 1484 |
+
636,
|
| 1485 |
+
825,
|
| 1486 |
+
678
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 9
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "text",
|
| 1492 |
+
"text": "Marc Masana, Joost van de Weijer, Luis Herranz, Andrew D. Bagdanov, and Jose M. Alvarez. Domain-adaptive deep network compression. In The IEEE International Conference on Computer Vision (ICCV), Oct 2017. ",
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
174,
|
| 1495 |
+
686,
|
| 1496 |
+
825,
|
| 1497 |
+
729
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 9
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "text",
|
| 1503 |
+
"text": "Hanyu Peng, Jiaxiang Wu, Shifeng Chen, and Junzhou Huang. Collaborative channel pruning for deep networks. In Kamalika Chaudhuri and Ruslan Salakhutdinov (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5113–5122, Long Beach, California, USA, 09–15 Jun 2019. PMLR. ",
|
| 1504 |
+
"bbox": [
|
| 1505 |
+
174,
|
| 1506 |
+
738,
|
| 1507 |
+
825,
|
| 1508 |
+
794
|
| 1509 |
+
],
|
| 1510 |
+
"page_idx": 9
|
| 1511 |
+
},
|
| 1512 |
+
{
|
| 1513 |
+
"type": "text",
|
| 1514 |
+
"text": "Clemens Rosenbaum, Tim Klinger, and Matthew Riemer. Routing networks: Adaptive selection of non-linear functions for multi-task learning. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ ry8dvM-R-. ",
|
| 1515 |
+
"bbox": [
|
| 1516 |
+
176,
|
| 1517 |
+
803,
|
| 1518 |
+
823,
|
| 1519 |
+
845
|
| 1520 |
+
],
|
| 1521 |
+
"page_idx": 9
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"type": "text",
|
| 1525 |
+
"text": "Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li FeiFei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, Dec 2015. ISSN 1573-1405. doi: 10.1007/s11263-015-0816-y. URL https://doi.org/10.1007/s11263-015-0816-y. ",
|
| 1526 |
+
"bbox": [
|
| 1527 |
+
174,
|
| 1528 |
+
854,
|
| 1529 |
+
825,
|
| 1530 |
+
924
|
| 1531 |
+
],
|
| 1532 |
+
"page_idx": 9
|
| 1533 |
+
},
|
| 1534 |
+
{
|
| 1535 |
+
"type": "text",
|
| 1536 |
+
"text": "John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. CoRR, abs/1707.06347, 2017. URL http://arxiv.org/abs/ 1707.06347. ",
|
| 1537 |
+
"bbox": [
|
| 1538 |
+
173,
|
| 1539 |
+
103,
|
| 1540 |
+
823,
|
| 1541 |
+
146
|
| 1542 |
+
],
|
| 1543 |
+
"page_idx": 10
|
| 1544 |
+
},
|
| 1545 |
+
{
|
| 1546 |
+
"type": "text",
|
| 1547 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR), 2015. ",
|
| 1548 |
+
"bbox": [
|
| 1549 |
+
174,
|
| 1550 |
+
157,
|
| 1551 |
+
821,
|
| 1552 |
+
186
|
| 1553 |
+
],
|
| 1554 |
+
"page_idx": 10
|
| 1555 |
+
},
|
| 1556 |
+
{
|
| 1557 |
+
"type": "text",
|
| 1558 |
+
"text": "Richard S. Sutton and Andrew G. Barto. Introduction to Reinforcement Learning. MIT Press, Cambridge, MA, USA, 1st edition, 1998. ISBN 0262193981. ",
|
| 1559 |
+
"bbox": [
|
| 1560 |
+
174,
|
| 1561 |
+
196,
|
| 1562 |
+
823,
|
| 1563 |
+
227
|
| 1564 |
+
],
|
| 1565 |
+
"page_idx": 10
|
| 1566 |
+
},
|
| 1567 |
+
{
|
| 1568 |
+
"type": "text",
|
| 1569 |
+
"text": "Xin Wang, Fisher Yu, Zi-Yi Dou, Trevor Darrell, and Joseph E Gonzalez. Skipnet: Learning dynamic routing in convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 409–424, 2018. ",
|
| 1570 |
+
"bbox": [
|
| 1571 |
+
174,
|
| 1572 |
+
238,
|
| 1573 |
+
823,
|
| 1574 |
+
281
|
| 1575 |
+
],
|
| 1576 |
+
"page_idx": 10
|
| 1577 |
+
},
|
| 1578 |
+
{
|
| 1579 |
+
"type": "text",
|
| 1580 |
+
"text": "Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in neural information processing systems, pp. 2074–2082, 2016. ",
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
176,
|
| 1583 |
+
291,
|
| 1584 |
+
825,
|
| 1585 |
+
335
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 10
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "text",
|
| 1591 |
+
"text": "Yiren Zhao, Xitong Gao, Robert Mullins, and Chengzhong Xu. Mayo: A framework for autogenerating hardware friendly deep neural networks. In Proceedings of the 2Nd International Workshop on Embedded and Mobile Deep Learning, EMDL’18, pp. 25–30, New York, NY, USA, 2018. ACM. ISBN 978-1-4503-5844-6. doi: 10.1145/3212725.3212726. URL http://doi. acm.org/10.1145/3212725.3212726. ",
|
| 1592 |
+
"bbox": [
|
| 1593 |
+
174,
|
| 1594 |
+
347,
|
| 1595 |
+
825,
|
| 1596 |
+
416
|
| 1597 |
+
],
|
| 1598 |
+
"page_idx": 10
|
| 1599 |
+
},
|
| 1600 |
+
{
|
| 1601 |
+
"type": "text",
|
| 1602 |
+
"text": "Xingyi Zhou, Dequan Wang, and Philipp Krahenb ¨ uhl. Objects as points. In ¨ arXiv preprint arXiv:1904.07850, 2019. ",
|
| 1603 |
+
"bbox": [
|
| 1604 |
+
171,
|
| 1605 |
+
428,
|
| 1606 |
+
823,
|
| 1607 |
+
457
|
| 1608 |
+
],
|
| 1609 |
+
"page_idx": 10
|
| 1610 |
+
},
|
| 1611 |
+
{
|
| 1612 |
+
"type": "text",
|
| 1613 |
+
"text": "Yi Zhu, Karan Sapra, Fitsum A. Reda, Kevin J. Shih, Shawn Newsam, Andrew Tao, and Bryan Catanzaro. Improving semantic segmentation via video propagation and label relaxation. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. ",
|
| 1614 |
+
"bbox": [
|
| 1615 |
+
176,
|
| 1616 |
+
468,
|
| 1617 |
+
823,
|
| 1618 |
+
512
|
| 1619 |
+
],
|
| 1620 |
+
"page_idx": 10
|
| 1621 |
+
},
|
| 1622 |
+
{
|
| 1623 |
+
"type": "text",
|
| 1624 |
+
"text": "Zhuangwei Zhuang, Mingkui Tan, Bohan Zhuang, Jing Liu, Yong Guo, Qingyao Wu, Junzhou Huang, and Jinhui Zhu. Discrimination-aware channel pruning for deep neural networks. In Advances in Neural Information Processing Systems, pp. 875–886, 2018. ",
|
| 1625 |
+
"bbox": [
|
| 1626 |
+
173,
|
| 1627 |
+
522,
|
| 1628 |
+
826,
|
| 1629 |
+
565
|
| 1630 |
+
],
|
| 1631 |
+
"page_idx": 10
|
| 1632 |
+
},
|
| 1633 |
+
{
|
| 1634 |
+
"type": "text",
|
| 1635 |
+
"text": "A ADDITIONAL EXPERIMENTAL RESULTS ",
|
| 1636 |
+
"text_level": 1,
|
| 1637 |
+
"bbox": [
|
| 1638 |
+
176,
|
| 1639 |
+
594,
|
| 1640 |
+
537,
|
| 1641 |
+
609
|
| 1642 |
+
],
|
| 1643 |
+
"page_idx": 10
|
| 1644 |
+
},
|
| 1645 |
+
{
|
| 1646 |
+
"type": "text",
|
| 1647 |
+
"text": "A.1 COMPARISON TO SEPARATELY STATIC AND RUNTIME PRUNING ",
|
| 1648 |
+
"bbox": [
|
| 1649 |
+
176,
|
| 1650 |
+
626,
|
| 1651 |
+
656,
|
| 1652 |
+
641
|
| 1653 |
+
],
|
| 1654 |
+
"page_idx": 10
|
| 1655 |
+
},
|
| 1656 |
+
{
|
| 1657 |
+
"type": "text",
|
| 1658 |
+
"text": "In this section, we compare our method with two additional baseline methods. One is a variation of our method by separately training static pruning and the training runtime pruning. In this method, we start from a pretrained backbone CNN, $f ( \\cdot )$ and $u _ { s }$ . Then we add the static DRL agent to prune channels statically by learning the static policy and $u _ { s }$ . Finally, we add the runtime DRL agent to prune channels dynamically, by fixing the static DLR agent and $u _ { s }$ , and updating the runtime DLR agent and $f ( \\cdot )$ only. Another method is to combine state-of-the-art static and runtime pruning methods. We start from a pretrain backbone CNN, and then prune channels with the static pruning method FPGM (He et al., 2019), and finally prune channels with the runtime method FBS (Gao et al., 2019). The experimental results are shown in Table4. ",
|
| 1659 |
+
"bbox": [
|
| 1660 |
+
173,
|
| 1661 |
+
652,
|
| 1662 |
+
825,
|
| 1663 |
+
779
|
| 1664 |
+
],
|
| 1665 |
+
"page_idx": 10
|
| 1666 |
+
},
|
| 1667 |
+
{
|
| 1668 |
+
"type": "table",
|
| 1669 |
+
"img_path": "images/695c96d9b725de1672a27b82f749d23e0cb0eee0e521cee6e8e86b6b317127be.jpg",
|
| 1670 |
+
"table_caption": [],
|
| 1671 |
+
"table_footnote": [
|
| 1672 |
+
"Table 4: Comparison to methods with separately static and runtime pruning on Cifar-10 at sparsity 0.5. "
|
| 1673 |
+
],
|
| 1674 |
+
"table_body": "<table><tr><td>Method</td><td>Baseline acc.</td><td>Acc.</td><td>△acc.</td></tr><tr><td>ours s (runtime only Rr = 1)</td><td>92.07</td><td>91.333</td><td>-0.737</td></tr><tr><td>ours s(Rr=0.5)</td><td>92.07</td><td>91.066</td><td>-1.004</td></tr><tr><td>ours (separate static and runtime)</td><td>92.07</td><td>90.965</td><td>-1.0105</td></tr><tr><td>FPGM+FBS</td><td>92.07</td><td>90.456</td><td>-1.614</td></tr></table>",
|
| 1675 |
+
"bbox": [
|
| 1676 |
+
259,
|
| 1677 |
+
786,
|
| 1678 |
+
732,
|
| 1679 |
+
869
|
| 1680 |
+
],
|
| 1681 |
+
"page_idx": 10
|
| 1682 |
+
},
|
| 1683 |
+
{
|
| 1684 |
+
"type": "text",
|
| 1685 |
+
"text": "A.2 STORAGE/ACCURACY TRADE-OFF ",
|
| 1686 |
+
"text_level": 1,
|
| 1687 |
+
"bbox": [
|
| 1688 |
+
176,
|
| 1689 |
+
103,
|
| 1690 |
+
454,
|
| 1691 |
+
117
|
| 1692 |
+
],
|
| 1693 |
+
"page_idx": 11
|
| 1694 |
+
},
|
| 1695 |
+
{
|
| 1696 |
+
"type": "text",
|
| 1697 |
+
"text": "Besides Fig. 2, to further illustrate the trade-off between storage and accuracy, we show additional results in Fig. 4. ",
|
| 1698 |
+
"bbox": [
|
| 1699 |
+
174,
|
| 1700 |
+
136,
|
| 1701 |
+
825,
|
| 1702 |
+
165
|
| 1703 |
+
],
|
| 1704 |
+
"page_idx": 11
|
| 1705 |
+
},
|
| 1706 |
+
{
|
| 1707 |
+
"type": "image",
|
| 1708 |
+
"img_path": "images/cb61cd2607b8c848b7d5883f4895e07b06c16c86e7d12f6dae1ddac840f5cca1.jpg",
|
| 1709 |
+
"image_caption": [
|
| 1710 |
+
"Figure 4: Trade-off between runtime pruning and static pruning at sparsity 0.45. X-axis is storage(number of parameters), Y-axis is accuracy. "
|
| 1711 |
+
],
|
| 1712 |
+
"image_footnote": [],
|
| 1713 |
+
"bbox": [
|
| 1714 |
+
339,
|
| 1715 |
+
196,
|
| 1716 |
+
651,
|
| 1717 |
+
377
|
| 1718 |
+
],
|
| 1719 |
+
"page_idx": 11
|
| 1720 |
+
},
|
| 1721 |
+
{
|
| 1722 |
+
"type": "text",
|
| 1723 |
+
"text": "B PSEUDOCODE OF TRAINING PROCESS ",
|
| 1724 |
+
"text_level": 1,
|
| 1725 |
+
"bbox": [
|
| 1726 |
+
174,
|
| 1727 |
+
486,
|
| 1728 |
+
524,
|
| 1729 |
+
502
|
| 1730 |
+
],
|
| 1731 |
+
"page_idx": 11
|
| 1732 |
+
},
|
| 1733 |
+
{
|
| 1734 |
+
"type": "text",
|
| 1735 |
+
"text": "Algorithm 1: Training process ",
|
| 1736 |
+
"text_level": 1,
|
| 1737 |
+
"bbox": [
|
| 1738 |
+
174,
|
| 1739 |
+
531,
|
| 1740 |
+
379,
|
| 1741 |
+
546
|
| 1742 |
+
],
|
| 1743 |
+
"page_idx": 11
|
| 1744 |
+
},
|
| 1745 |
+
{
|
| 1746 |
+
"type": "text",
|
| 1747 |
+
"text": "INPUT: pretrained backbone CNN, computation budget $\\bar { B } _ { c o m }$ , storage budget $\\bar { B } _ { p a r a m }$ \nOUTPUT: backbone CNN, importance predictor $f ( \\cdot )$ , static pruning importance $u _ { s }$ , runtime and \nstatic DRL agents \nAdd runtime importance predictor $f ( \\cdot )$ and static pruning importance $u _ { s }$ .; \n$u _ { s } \\gets \\mathbf { 1 }$ ; \n$d _ { s } \\gets 1$ ; \n$d _ { r } \\gets 1$ ; \nwhile not converge do fix $u _ { s }$ , update $f ( \\cdot )$ and backbone CNN; \nend \nwhile not converge do \n1 update $u _ { s }$ , $f ( \\cdot )$ and backbone CNN; \nend \nadd runtime DRL agent and static DRL agent to predict actions $a _ { t } ^ { r }$ and $a _ { t } ^ { s }$ , and alternate $d _ { r }$ and $d _ { s }$ \nat each layer $t$ ; \nwhile not converge do for $i \\gets 1$ to $N _ { 1 }$ do Forward entired model; Compute rewards $R _ { t } ^ { r }$ and $R _ { t } ^ { s }$ using budget $\\bar { B } _ { c o m }$ and $\\bar { B } _ { p a r a m }$ ; F $\\mathrm { i } \\times \\bar { u _ { s } } , f ( \\cdot )$ and backbone CNN, update runtime and static DRL agents by PPO loss; end for $i \\gets 1$ to $N _ { 2 }$ do Fix runtime and static DRL agents, update $u _ { s }$ , $f ( \\cdot )$ and backbone CNN by cross entropy loss end \nend ",
|
| 1748 |
+
"bbox": [
|
| 1749 |
+
171,
|
| 1750 |
+
549,
|
| 1751 |
+
818,
|
| 1752 |
+
922
|
| 1753 |
+
],
|
| 1754 |
+
"page_idx": 11
|
| 1755 |
+
},
|
| 1756 |
+
{
|
| 1757 |
+
"type": "image",
|
| 1758 |
+
"img_path": "images/efd43963a47c3a1afcdfc3c167806714afb5b2f802c5a7ab44ba6c03012e0742.jpg",
|
| 1759 |
+
"image_caption": [
|
| 1760 |
+
"Figure 5: Training curve of our method on CIFAR-10 at sparsity 0.5 with $R _ { r } = 0 . 5$ "
|
| 1761 |
+
],
|
| 1762 |
+
"image_footnote": [],
|
| 1763 |
+
"bbox": [
|
| 1764 |
+
339,
|
| 1765 |
+
104,
|
| 1766 |
+
651,
|
| 1767 |
+
285
|
| 1768 |
+
],
|
| 1769 |
+
"page_idx": 12
|
| 1770 |
+
},
|
| 1771 |
+
{
|
| 1772 |
+
"type": "text",
|
| 1773 |
+
"text": "C TRAINING CURVE ",
|
| 1774 |
+
"text_level": 1,
|
| 1775 |
+
"bbox": [
|
| 1776 |
+
174,
|
| 1777 |
+
343,
|
| 1778 |
+
356,
|
| 1779 |
+
359
|
| 1780 |
+
],
|
| 1781 |
+
"page_idx": 12
|
| 1782 |
+
},
|
| 1783 |
+
{
|
| 1784 |
+
"type": "text",
|
| 1785 |
+
"text": "We show the training curve of our method in Fig. 5. We train our method on CIFAR-10 at sparsity 0.5 with $R _ { r } = 0 . 5$ . The figure includes the accuracy curves evaluated on training set and test set, showing that our methods is stable during training. ",
|
| 1786 |
+
"bbox": [
|
| 1787 |
+
174,
|
| 1788 |
+
375,
|
| 1789 |
+
825,
|
| 1790 |
+
417
|
| 1791 |
+
],
|
| 1792 |
+
"page_idx": 12
|
| 1793 |
+
}
|
| 1794 |
+
]
|
parse/train/S1ewjhEFwr/S1ewjhEFwr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1ewjhEFwr/S1ewjhEFwr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkxt8oC9FQ/rkxt8oC9FQ.md
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PERFECT MATCH: A SIMPLE METHOD FOR LEARNING REPRESENTATIONS FOR COUNTERFACTUAL INFERENCE WITH NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Learning representations for counterfactual inference from observational data is of high practical relevance for many domains, such as healthcare, public policy and economics. Counterfactual inference enables one to answer ”What if...?” questions, such as ”What would be the outcome if we gave this patient treatment $t _ { 1 } ? ^ { \dag }$ . However, current methods for training neural networks for counterfactual inference on observational data are either overly complex, limited to settings with only two available treatment options, or both. Here, we present Perfect Match (PM), a method for training neural networks for counterfactual inference that is easy to implement, compatible with any architecture, does not add computational complexity or hyperparameters, and extends to any number of treatments. PM is based on the idea of augmenting samples within a minibatch with their propensity-matched nearest neighbours. Our experiments demonstrate that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes across several real-world and semi-synthetic datasets.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Estimating individual treatment effects1 (ITE) from observational data is an important problem in many domains. In medicine, for example, we would be interested in using data of people that have been treated in the past to predict what medications would lead to better outcomes for new patients (Shalit et al. (2017)). Similarly, in economics, we would for example want to determine how effective job programs would be based on results of past job training programs (LaLonde (1986)).
|
| 12 |
+
|
| 13 |
+
ITE estimation from observational data is difficult for two reasons: Firstly, we never observe all potential outcomes. If a patient is given a treatment to treat her symptoms, we never observe what would have happened if the patient was prescribed a potential alternative treatment in the same situation. Secondly, the assignment of cases to treatments is typically biased such that cases for which a given treatment is more effective are more likely to have received that treatment. The distribution of samples may therefore differ significantly between the treated group and the overall population. A supervised model na¨ıvely trained to minimise the factual error would overfit to the properties of the treated group, and thus not generalise well to the entire population.
|
| 14 |
+
|
| 15 |
+
To address these problems, we introduce Perfect Match (PM), a simple method for training neural networks for counterfactual inference that extends to any number of treatment options. PM effectively controls for biased assignment of treatments in observational data by augmenting every sample within a minibatch with its closest matches by propensity score from the other treatment options. PM is easy to use with existing neural network architectures, simple to implement, and does not add any hyperparameters or computational complexity. We perform experiments that demonstrate that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes on several real-world and semi-synthetic datasets. Our experiments also show that PM is more robust to a high level of treatment assignment bias than existing methods. We believe that our simple and effective method for ITE estimation that extends to any number of treatment options could potentially make counterfactual inference more accessible, particularly for medical applications, where multiple available treatment options are the norm.
|
| 16 |
+
|
| 17 |
+
Contributions. This work contains the following contributions:
|
| 18 |
+
|
| 19 |
+
• We introduce Perfect Match, a simple methodology for learning neural representations for counterfactual inference based on propensity score matching within minibatches. • We perform extensive experiments on semi-synthetic and real-world data in both the binary and multiple treatment setting. The experiments show that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes.
|
| 20 |
+
|
| 21 |
+
# 2 RELATED WORK
|
| 22 |
+
|
| 23 |
+
There are five main categories of approaches to learning to estimate ITEs:
|
| 24 |
+
|
| 25 |
+
Matching-based Methods. Matching methods estimate the counterfactual outcome of a sample $X$ with respect to treatment $t$ using the factual outcomes of its nearest neighbours having received $t$ , with respect to a metric space. $\mathbf { k }$ -Nearest-Neighbour (kNN) (Ho et al. (2007)) operates in the potentially high-dimensional covariate space, and therefore might suffer from the curse of dimensionality. Propensity Score Matching (PSM) (Rosenbaum & Rubin (1983)) matches on the scalar probability $p ( t | X )$ of $t$ given the covariates $X$ . PSM may require under- or oversampling the original data.
|
| 26 |
+
|
| 27 |
+
Adjusted Regression Methods. Adjusted regression models apply regression models with both treatment and covariates as input. The simplest case is Ordinary Least Squares, which can either be used for building one model, with the treatment as an input feature, or multiple separate models, one for each treatment (Kallus (2017)). More complex regression models, such as Treatment-Agnostic Representation Networks (TARNET) (Shalit et al. (2017)) may be used to capture non-linear relationships. Methods that make use of propensity scores, and a model of the outcomes, such as Propensity Dropout (PD) (Alaa et al. (2017)), are referred to as doubly robust (Funk et al. (2011)).
|
| 28 |
+
|
| 29 |
+
Tree-based Methods. Tree-based methods train many weak learners to build expressive ensemble models. Examples of tree-based methods are Bayesian Additive Regression Trees (BART) (Chipman et al. (2010); Chipman & McCulloch (2016)) and Causal Forests (CF) (Wager & Athey (2017)).
|
| 30 |
+
|
| 31 |
+
Representation-balancing Methods. Representation-balancing methods seek to learn a highlevel representation for which the covariate distributions are balanced across treatment groups. Balancing Neural Networks (Johansson et al. (2016)) attempt to find such representations by minimising the discrepancy distance (Mansour et al. (2009)) between treatment groups. Counterfactual Regression Networks (CFRNET, Shalit et al. (2017)) use different metrics such as the Wasserstein distance.
|
| 32 |
+
|
| 33 |
+
Distribution-modeling Methods. Generative Adversarial Nets for inference of Individualised Treatment Effects (GANITE) (Yoon et al. (2018)) address ITE estimation using counterfactual and ITE generators. GANITE uses a complex architecture with many hyperparameters and submodels that may be difficult to implement and optimise. Causal Effect Variational Autoencoders (CEVAEs) (Louizos et al. (2017)) use a latent variable modeling approach that is robust to hidden confounding, but does not address biased treatment assignment. Causal Multi-task Gaussian Processes (CMGP) (Alaa & van der Schaar (2017)) apply a multi-task Gaussian Process to ITE estimation. The optimisation of CMGPs involves a matrix inversion of $O ( n ^ { 3 } )$ complexity that limits their scalability.
|
| 34 |
+
|
| 35 |
+
In contrast to existing methods, PM is a simple doubly robust method built on propensity score matching that can be used to train expressive non-linear neural network models for ITE estimation from observational data in settings with any number of treatments (Table 1). While the underlying idea behind PM is simple and effective, it has, to the best of our knowledge, not yet been explored.
|
| 36 |
+
|
| 37 |
+
Table 1: Comparison of several representative state-of-the-art methods for counterfactual inference showing whether they were designed for $> 2$ treatments and their complexity of implementation.
|
| 38 |
+
|
| 39 |
+
<table><tr><td></td><td>PM</td><td>CF</td><td>BART</td><td>BNN</td><td>CFRNET</td><td>PD</td><td>CEVAE</td><td>CMGP</td><td>GANITE</td></tr><tr><td>>2 Treatments</td><td>√</td><td>√</td><td>√</td><td>×</td><td>×</td><td>×</td><td>×</td><td>×</td><td>√</td></tr><tr><td>Complexity</td><td>Low</td><td>Low</td><td>Low</td><td>Low</td><td>Medium</td><td>Medium</td><td>High</td><td>High</td><td>High</td></tr></table>
|
| 40 |
+
|
| 41 |
+
# 3 METHODOLOGY
|
| 42 |
+
|
| 43 |
+
Problem Setting. We consider a setting in which we are given $N$ observed samples $X$ , where each sample consists of $p$ covariates $x _ { i }$ with $i \in [ 0 , p )$ . For each sample, the potential outcomes are represented as a vector $Y$ with $k$ entries $y _ { j }$ where each entry corresponds to the outcome when applying one treatment $t _ { j }$ out of the set of $k$ available treatments $T = \{ \bar { t } _ { 0 } , . . . , t _ { k - 1 } \}$ with $j \in [ 0 , k )$ . As training data, we receive observed samples $X$ and their factual outcomes $y _ { j }$ when applying one treatment $t _ { j }$ . The set of available treatments can contain two or more treatment options. We refer to the special case of two available treatment options as the binary treatment setting. Given the observational training data with factual outcomes, we wish to train a predictive model that is able to accurately produce a predicted potential outcomes vector $\hat { Y }$ with $k$ entries $\hat { y } _ { j }$ . In literature, this setting is known as the Rubin-Neyman potential outcomes framework (Rubin (2005)).
|
| 44 |
+
|
| 45 |
+
Precision in Estimation of Heterogenous Effect (PEHE). The primary metric that we optimise for when training models to estimate ITE is the PEHE (Hill (2011)). In the binary setting, the PEHE measures the ability of a predictive model to estimate the difference in effect between two treatments $t _ { 0 }$ and $t _ { 1 }$ for samples $X$ . To compute the PEHE, we measure the mean squared error between the true difference in effect $y _ { 1 } ( n ) - y _ { 0 } ( n )$ , drawn from the noiseless underlying outcome distributions $\mu _ { 1 }$ and $\mu _ { 0 }$ , and the predicted difference in effect $\hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n )$ indexed by $n$ over $N$ samples:
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\epsilon _ { \mathrm { P E H E } } = \frac { 1 } { N } \sum _ { n = 0 } ^ { N } \Big ( \mathbb { E } _ { y _ { j } ( n ) \sim \mu _ { j } ( n ) } [ y _ { 1 } ( n ) - y _ { 0 } ( n ) ] - [ \hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n ) ] \Big ) ^ { 2 }
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
When the underlying noiseless distributions $\mu _ { j }$ are not known, the true difference in effect $y _ { 1 } ( n ) -$ $y _ { 0 } ( n )$ can be estimated using the noisy ground truth outcomes $y _ { i }$ (Appendix A). As a secondary metric, we consider the error $\epsilon _ { \mathrm { A T E } }$ in estimating the average treatment effect (ATE) (Hill (2011)). The ATE measures the average difference in effect across the whole population (Appendix B). The ATE is not as important as PEHE for models optimised for ITE estimation, but can be a useful indicator of how well an ITE estimator performs at comparing two treatments across the entire population. We can neither calculate $\epsilon _ { \mathrm { P E H E } }$ nor $\epsilon _ { \mathrm { A T E } }$ without knowing the outcome generating process.
|
| 52 |
+
|
| 53 |
+
Multiple Treatments. Both PEHE and $\epsilon _ { \mathrm { A T E } }$ can be trivially extended to multiple treatments by considering the average PEHE and ATE between every possible pair of treatments. Note that we lose the information about the precision in estimating ITE between specific pairs of treatments by averaging over all $\binom { k } { 2 }$ pairs. However, one can inspect the pair-wise PEHE to get the whole picture.
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\hat { \epsilon } _ { \mathrm { m P E H E } } = \frac { 1 } { \binom { k } { 2 } } \sum _ { i = 0 } ^ { k - 1 } \sum _ { j = 0 } ^ { i - 1 } \hat { \epsilon } _ { \mathrm { P E H E } , i , j } \qquad ( 2 ) \qquad \hat { \epsilon } _ { \mathrm { m A T E } } = \frac { 1 } { \binom { k } { 2 } } \sum _ { i = 0 } ^ { k - 1 } \sum _ { j = 0 } ^ { i - 1 } \hat { \epsilon } _ { \mathrm { A T E } , i , j }
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
Perfect Match (PM). We consider fully differentiable neural network models optimised via minibatch stochastic gradient descent to predict potential outcomes $\hat { Y }$ given a sample $X$ . To address the treatment selection bias inherent in observational data, we propose the use of a training methodology based on propensity score matching. A propensity score is the conditional probability $p ( t | X )$ of a given sample $X$ receiving a specific treatment $t$ (Rosenbaum & Rubin (1983); Ho et al. (2007)). The propensity score is a balancing score, meaning that if the distribution of propensity scores across treatment groups is the same, then the distribution of their covariates $x _ { i }$ is also guaranteed to be the same across treatment groups (Ho et al. (2007)). By matching samples with their nearest neighbours by propensity score we can, in the optimal case, balance the covariates $x _ { i }$ . This breaks the dependence of treatment assignment on $X$ if all relevant covariates are observed, and therefore effectively removes any potential treatment assignment bias (Ho et al. (2007)). However, in practice, we do not have access to the true treatment assignment probability $p ( t | X )$ . We therefore have to estimate the propensity score $p ( t | X )$ by training a predictive model to predict the likelihood of receiving a treatment $t$ for a given sample $X$ . Note that propensity scores are not the only balancing score (Ho et al. (2007)). For example, $X$ itself is another balancing score. However, matching on the onedimensional propensity score is preferable because it avoids the curse of dimensionality that would be associated with matching on the potentially high-dimensional $X$ directly. In PM, we match every sample within a minibatch with its nearest neighbours by propensity score from all other treatments (Algorithm 1, more details in Appendix C), taken from the training set. Every minibatch the model is trained on therefore contains the same number of samples for each treatment group, and the covariates $x _ { i }$ of each treatment group are approximately balanced on average. The intuition behind matching on the minibatch level, rather than the dataset level (Ho et al. (2011)), is that it reduces the variance during training which in turn leads to better expected performance for counterfactual inference (Appendix D). In this sense, PM can be seen as a minibatch sampling strategy (Csiba & Richtarik (2018)) specifically designed to improve learning for counterfactual inference. ´
|
| 60 |
+
|
| 61 |
+
Algorithm 1 Batch Augmentation using Perfect Match (PM). After augmentation, each batch contains an equal number of samples from each treatment group and the covariates $x _ { i }$ across all treatment groups are approximately balanced.
|
| 62 |
+
|
| 63 |
+
Input: Batch of $B$ random samples $X _ { \mathrm { b a t c h } }$ with assigned treatments $t$ , training set $X _ { \mathrm { t r a i n } }$ of $N$ samples, number of treatment options $k$ , propensity score estimator $E _ { \mathrm { P S } }$ to calculate the probability $\bar { p } ( t | X )$ of treatment assigned given a sample $X$
|
| 64 |
+
|
| 65 |
+
Output: Batch $X _ { \mathrm { o u t } }$ consisting of $B \times k$ matched samples
|
| 66 |
+
|
| 67 |
+
<table><tr><td colspan="2">1: procedurePERFECT_MATCH:</td></tr><tr><td>2:</td><td>Xout ←Empty</td></tr><tr><td>3:</td><td>for sample X with treatment t in Xbatch do</td></tr><tr><td>4:</td><td>p(t|X)←Eps(X)</td></tr><tr><td>5:</td><td>fori=O tok-1do</td></tr><tr><td>6:</td><td>ifi≠t then</td></tr><tr><td>7:</td><td>psi←p(t|X)i</td></tr><tr><td>8:</td><td>Xmatched ← get closest match to propensity score psi with treatment i from Xtrain</td></tr><tr><td>9:</td><td>Add sample Xmatched to Xout</td></tr><tr><td>10:</td><td>Add X to Xout</td></tr><tr><td></td><td></td></tr></table>
|
| 68 |
+
|
| 69 |
+
Model Selection. Besides accounting for the treatment assignment bias, the other major issue in learning for counterfactual inference from observational data is that, given multiple models, it is not trivial to decide which one to select. The root problem is that we do not have direct access to the true error in estimating counterfactual outcomes, only the error in estimating the observed factual outcomes. This makes it difficult to perform parameter and hyperparameter optimisation, as we do not know which models are better than others for counterfactual inference on a given dataset. To rectify this problem, we use a nearest neighbour approximation $\hat { \epsilon } _ { \mathrm { N N - P E H E } }$ of the $\boldsymbol { \hat { \epsilon } } _ { \mathrm { P E H E } }$ metric for the binary (Shalit et al. (2017)) and multiple treatment settings for model selection. The ˆNN-PEHE estimates the treatment effect of a given sample by substituting the true counterfactual outcome with the outcome $y _ { j }$ from a respective nearest neighbour NN matched on $X$ using the Euclidean distance.
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\hat { \epsilon } _ { \mathrm { N N - P E H E } } = \frac { 1 } { N } \sum _ { n = 0 } ^ { N } \Big ( [ y _ { 1 } ( \mathbf { N N } ( n ) ) - y _ { 0 } ( \mathbf { N N } ( n ) ) ] - [ \hat { y } _ { 1 } ( n ) - \hat { y } _ { 0 } ( n ) ] \Big ) ^ { 2 }
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
Analogously to Equations (2) and (3), the ˆNN-PEHE metric can be extended to the multiple treatment setting by considering the mean $\hat { \epsilon } _ { \mathrm { N N - P E H E } }$ between all $\binom { k } { 2 }$ possible pairs of treatments (Appendix E).
|
| 76 |
+
|
| 77 |
+
Model Architecture. No different from other applications, the chosen architecture plays a key role in the performance of neural networks when attempting to learn representations for counterfactual inference. Shalit et al. (2017) claimed that the na¨ıve approach of appending the treatment index $t _ { j }$ may perform poorly if $X$ is high-dimensional, because the influence of $t _ { j }$ on the hidden layers may be lost during training. Shalit et al. (2017) subsequently introduced the TARNET architecture to rectify this issue. Since the original TARNET was limited to the binary treatment setting, we extended the TARNET architecture to the multiple treatment setting (Figure 1). We did so by using $k$ head networks, one for each treatment option over a set of shared base layers, each with $L$ layers. In TARNET, the $j$ th head network is only trained on samples from treatment $t _ { j }$ . The shared layers are trained on all samples. By using a head network for each treatment, we ensure $t _ { j }$ maintains an appropriate degree of influence on the network output at all points during training.
|
| 78 |
+
|
| 79 |
+

|
| 80 |
+
Figure 1: The TARNET architecture with $k$ heads for the multiple treatment setting.
|
| 81 |
+
|
| 82 |
+
Table 2: Comparisons of the datasets used in our experiments. We evaluate on three semi-synthetic datasets with varying numbers of treatments and samples, and a real-world clinical trial dataset.
|
| 83 |
+
|
| 84 |
+
<table><tr><td>Dataset</td><td>Type</td><td># Samples</td><td>#Features</td><td># Treatments</td><td>Counterfactuals</td></tr><tr><td>IHDP</td><td>semi-synthetic</td><td>747</td><td>25</td><td>2</td><td>available</td></tr><tr><td>Jobs</td><td>real-world</td><td>3212</td><td>7</td><td>2</td><td>not available</td></tr><tr><td>News</td><td>semi-synthetic</td><td>5000</td><td>2870</td><td>2/4/8/16</td><td>available</td></tr><tr><td>TCGA</td><td>semi-synthetic</td><td>9659</td><td>20531</td><td>4</td><td>available</td></tr></table>
|
| 85 |
+
|
| 86 |
+
# 4 EXPERIMENTS
|
| 87 |
+
|
| 88 |
+
Our experiments aimed to answer the following questions:
|
| 89 |
+
|
| 90 |
+
1 What is the comparative performance of PM in inferring counterfactual outcomes in the
|
| 91 |
+
binary and multiple treatment setting compared to existing state-of-the-art methods?
|
| 92 |
+
2 Does model selection by NN-PEHE outperform selection by factual MSE?
|
| 93 |
+
3 How does the relative number of matched samples within a minibatch affect performance?
|
| 94 |
+
4 How well does PM cope with an increasing treatment assignment bias in the observed data?
|
| 95 |
+
5 How does the presence of hidden confounders influence the performance of PM?
|
| 96 |
+
6 How do the learning dynamics of minibatch matching compare to dataset-level matching?
|
| 97 |
+
|
| 98 |
+
# 4.1 DATASETS
|
| 99 |
+
|
| 100 |
+
We performed experiments on four real-world and semi-synthetic datasets (Table 2) with binary and multiple treatment options in order to gain a better understanding of the empirical properties of PM.
|
| 101 |
+
|
| 102 |
+
Infant Health and Development Program (IHDP). The IHDP dataset (Hill (2011)) contains data from a randomised study on the impact of specialist visits on the cognitive development of children, and consists of 747 children with 25 covariates describing properties of the children and their mothers. Children that did not receive specialist visits were part of a control group. The outcomes were simulated using the NPCI package from Dorie (2016). The IHDP dataset is biased because the treatment groups had a biased subset of the treated population removed (Shalit et al. (2017)). We used the same simulated outcomes2 as Shalit et al. (2017).
|
| 103 |
+
|
| 104 |
+
Jobs. The Jobs dataset (LaLonde (1986)) is a blend of data from randomised and observational studies on the effect of professional training programs on unemployment, and is a commonly used benchmark dataset for counterfactual inference in the binary setting. Each sample consisted of demographic covariates, such as age, gender and previous income, and the treatment was enrolment in a job training program. All samples that were not enrolled in a training program were considered control cases. The task was to predict the potential unemployment given the covariates and treatment. We used the same feature and sample set as described in Dehejia & Wahba (2002); Smith & Todd (2005); Shalit et al. (2017). A subgroup of the data was randomised and we therefore were able to estimate the ground truth average treatment effect on the treated (ATT) (Shalit et al. (2017)). Treatment assignment in Jobs is biased because parts of the data come from an observational study.
|
| 105 |
+
|
| 106 |
+

|
| 107 |
+
Figure 2: Correlation analysis of the real PEHE (y-axis) with the mean squared error (MSE; left) and the nearest neighbour approximation of the precision in estimation of heterogenous effect (NN-PEHE; right) across over $2 0 ^ { \circ } 0 0 0$ model evaluations on the validation set of IHDP. Scatterplots show a subsample of $1 ^ { \cdot } 4 0 0$ data points. $\rho$ indicates the Pearson correlation. NN-PEHE correlates significantly better with PEHE than MSE.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 3: Change in error (y-axes) in terms of precision in estimation of heterogenous effect (PEHE) and average treatment effect (ATE) when increasing the percentage of matches in each minibatch ( $\mathbf { \dot { x } }$ -axis). Symbols correspond to the mean value of $\hat { \epsilon } _ { \mathrm { A T E } }$ (red) and $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ (blue) on the test set of News-8 across 50 repeated runs with new outcomes (lower is better). Performance improves with more matches added.
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 4: Comparison of several state-of-the-art methods for counterfactual inference on the test set of the News-8 dataset when varying the treatment assignment imbalance $\kappa$ $\mathbf { \dot { x } }$ -axis), i.e. how much the treatment assignment is biased towards more effective treatments. Symbols correspond to the mean value of $\hat { \epsilon } _ { \mathrm { A T E } }$ (left) and $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ (right) across 50 repeated runs with new outcomes (lower is better). The shaded area indicates the standard deviation. PM handles an increasing treatment assignment bias $\kappa$ better than existing state-of-the-art methods in terms of both $\hat { \epsilon } _ { \mathrm { A T E } }$ and $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ .
|
| 114 |
+
|
| 115 |
+
News. The News dataset was first proposed as a benchmark for counterfactual inference by Johansson et al. (2016) and consists of 5000 randomly sampled news articles from the NY Times corpus3. The News dataset contains data on the opinion of media consumers on news items. The samples $X$ represent news items consisting of word counts $x _ { i } \in \mathbb { N }$ , the outcome $y _ { j } \in \mathbb { R }$ is the reader’s opinion of the news item, and the $k$ available treatment options represent various devices that could be used for viewing, e.g. smartphone, tablet, desktop, television or others (Johansson et al. (2016)). We extended the original dataset specification in (Johansson et al. (2016)) to enable the simulation of arbitrary numbers of viewing devices. To model that consumers prefer to read certain media items on specific viewing devices, we train a topic model on the whole NY Times corpus and define $z ( X )$ as the topic distribution of news item $X$ . We then randomly pick $k + 1$ centroids in topic space, with $k$ centroids $z _ { j }$ per viewing device and one control centroid $z _ { c }$ . We assigned a random Gaussian outcome distribution with mean $\mu _ { j } \sim \mathcal { N } ( 0 . 4 5 , 0 . 1 5 )$ and standard deviation $\sigma _ { j } \sim \mathcal { N } ( 0 . 1 , 0 . 0 5 )$ to each centroid. For each sample, we drew ideal potential outcomes from that Gaussian outcome distribution $\tilde { y } _ { j } \sim \mathcal { N } ( \mu _ { j } , \sigma _ { j } ) + \epsilon$ with $\epsilon \sim \mathcal { N } ( 0 , 0 . 1 5 )$ . We then defined the unscaled potential outcomes $\bar { y _ { j } } = \tilde { y } _ { j } * \left[ \mathbf { D } ( z ( X ) , z _ { j } ) + \mathbf { D } ( z ( X ) , z _ { c } ) \right]$ as the ideal potential outcomes $\tilde { y } _ { j }$ weighted by the sum of distances to centroids $z _ { j }$ and the control centroid $z _ { c }$ using the Euclidean distance as distance D. We assigned the observed treatment $t$ using $t | x \sim \mathrm { B e r n } ( \operatorname { s o f t m a x } ( \kappa \bar { y _ { j } } ) )$ with a treatment assignment bias coefficient $\kappa$ , and the true potential outcome $y _ { j } = C y _ { j }$ as the unscaled potential outcomes $\bar { y _ { j } }$ scaled by a coefficient $C = 5 0$ . We used four different variants of this dataset with $k = 2$ , 4, 8, and 16 viewing devices, and $\kappa = 1 0$ , 10, 10, and 7, respectively. Higher values of $\kappa$ indicate a higher expected treatment assignment bias depending on $\bar { y _ { j } }$ . $\kappa = 0$ indicates no assignment bias.
|
| 116 |
+
|
| 117 |
+
The Cancer Genomic Atlas (TCGA). The TCGA project collected gene expression data from various types of cancers in 9659 individuals (Weinstein et al. (2013)). There were four available clinical treatment options: (1) medication, (2) chemotherapy, (3) surgery, or (4) both surgery and chemotherapy. We used a synthetic outcome function that simulated the risk of cancer recurrence after receiving either of the treatment options based on the real-world gene expression data. Before further processing, we standardised the gene expression data using the mean and standard deviations of gene expression at each gene locus for normal tissue in the training set. To produce the potential outcomes $Y$ , we first selected $k + 1$ gene expression phenotypes as representative phenotypes: One phenotype $X _ { j }$ for each treatment option and one as a control phenotype $X _ { c }$ . Analogously to the News dataset, we assigned a random Gaussian outcome distribution with mean $\mu _ { j } \sim \bar { \mathcal { N } } ( 0 . 4 \bar { 5 } , 0 . 1 5 )$ and standard deviation $\sigma _ { t } \sim \mathcal { N } ( 0 . 1 , 0 . 0 5 )$ to each phenotype. For each sample, we drew ideal potential outcomes from that Gaussian outcome distribution $\bar { \tilde { y } } _ { j } \sim \mathcal N ( \mu _ { j } , \sigma _ { j } ) + \bar { \epsilon }$ with $\epsilon \sim \mathcal { N } ( 0 , 0 . \bar { 1 5 } )$ . We then defined the unscaled potential outcomes $\bar { y _ { j } } = \tilde { y } _ { j } * \left[ \mathbf { D } ( X , X _ { t _ { j } } ) + \mathbf { D } ( X , X _ { c } ) \right]$ as the ideal potential outcomes $\tilde { y } _ { j }$ weighted by the sum of distances to phenotype $X _ { t _ { j } }$ and the control phenotype $X _ { c }$ using the cosine similarity as distance metric D. We assigned the observed treatment $t$ using $t | x \sim \mathrm { B e r n } ( \operatorname { s o f t m a x } ( \kappa \bar { y _ { j } } ) )$ with a treatment assignment bias coefficient $\kappa = 1 0$ , and the true potential outcome $y _ { j } = C y _ { j }$ as the unscaled potential outcomes $\bar { y _ { j } }$ scaled by a coefficient $C = 5 0$ .
|
| 118 |
+
|
| 119 |
+
All datasets with the exception of IHDP were split into a training $( 6 3 \% )$ , validation $( 2 7 \% )$ and test set ( $10 \%$ of samples). For IHDP we used exactly the same splits as previously used by Shalit et al. (2017). We repeated experiments on IHDP, Jobs, News and TCGA 1000, 10, 50, and 5 times, respectively. We reassigned outcomes and treatments with a new random seed for each repetition.
|
| 120 |
+
|
| 121 |
+
Table 3: Comparison of methods for counterfactual inference with two available treatment options on IHDP, Jobs and News-2. We report the mean value $\pm$ the standard deviation of $\sqrt { \epsilon _ { \mathrm { P E H E } } }$ , ATE, $R _ { \mathrm { P o l } }$ and $\epsilon _ { \mathrm { A T T } }$ on the test sets over a number of repeated runs. Where available we list the numbers reported by the original authors. n.r. $=$ not reported. ${ \dag \mathbf { \alpha } } _ { = }$ significantly different from PM $( \alpha < 0 . 0 5 )$
|
| 122 |
+
|
| 123 |
+
<table><tr><td></td><td colspan="2">IHDP (1000 repeats)</td><td colspan="2">Jobs (10 repeats)</td><td colspan="2">News-2 (50 repeats)</td></tr><tr><td>Method</td><td>√EPEHE</td><td>EATE</td><td>RPo1(π)</td><td>EATT</td><td>VePEHE</td><td>CATE</td></tr><tr><td>PM</td><td>0.84 ± 0.61</td><td>0.24±0.20</td><td>0.18 ± 0.10</td><td>0.16 ± 0.07</td><td>16.76 ± 1.26</td><td>3.99 ± 1.01</td></tr><tr><td>+on X</td><td>0.81 ± 0.57</td><td>0.24 ± 0.20</td><td>0.23 ± 0.11</td><td>0.19 ± 0.09</td><td>17.06 ± 1.22</td><td>4.14 ± 1.27</td></tr><tr><td>+MLP</td><td>0.83 ± 0.57</td><td>0.23 ± 0.20</td><td>0.19 ± 0.12</td><td>0.16 ± 0.07</td><td>+ 18.38 ± 1.46</td><td>+ 5.90 ± 2.07</td></tr><tr><td>kNN</td><td>4.1 1±0.2</td><td>0.79± 0.05</td><td>+ 0.26±0.0</td><td>0.13 ± 0.05</td><td>† 18.14 ± 1.64</td><td>+7.83 ± 2.55</td></tr><tr><td>PSMPM</td><td>n.r.</td><td>n.r.</td><td>0.18 ± 0.12</td><td>0.18 ± 0.09</td><td>† 17.49 ± 1.49</td><td>† 5.02 ± 2.34</td></tr><tr><td>PSMMI</td><td>+ 2.70 ± 3.85</td><td>+ 0.49 ± 0.81</td><td>0.20 ± 0.09</td><td>+ 0.42 ± 0.22</td><td>+ 17.40 ± 1.30</td><td>+ 4.89 ± 2.39</td></tr><tr><td>RF</td><td>6.6 ±0.3</td><td>† 0.96 ± 0.06</td><td>† 0.28 ± 0.0</td><td>+ 0.09 ± 0.04</td><td>† 17.39 ± 1.24</td><td>† 5.50 ± 1.20</td></tr><tr><td>CF</td><td>3.8 ±0.2</td><td>+ 0.40 ±0.03</td><td>0.20±0.0</td><td>+ 0.07 ± 0.03</td><td>† 18.36 ± 1.73</td><td>+ 8.48± 2.46</td></tr><tr><td>BART</td><td>2.3 ±0.1</td><td>+ 0.34± 0.02</td><td>+ 0.25 ± 0.0</td><td>+ 0.08±0.03</td><td>18.53 ± 2.02</td><td>† 5.40 ± 1.53</td></tr><tr><td>GANITE</td><td>2.4 ±0.4</td><td>+ 0.49± 0.05</td><td>0.14 ± 0.01</td><td>+ 0.06± 0.03</td><td>+ 18.28 ± 1.66</td><td>+ 4.65 ± 2.12</td></tr><tr><td>BNN</td><td>+ 2.1 ±0.1</td><td>+ 0.42± 0.03</td><td>0.24 ± 0.0</td><td>† 0.09 ± 0.04</td><td>n.r.</td><td>n.r.</td></tr><tr><td>PD</td><td>n.r.</td><td>n.r.</td><td>n.r.</td><td>n.r.</td><td>† 17.52 ± 1.62</td><td>4.69 ± 3.17</td></tr><tr><td>TARNET</td><td>+ 0.95 ± 0.02</td><td>+ 0.28 ± 0.01</td><td>0.21± 0.0</td><td>0.11 ± 0.04</td><td>17.17 ± 1.25</td><td>+ 4.58 ± 1.29</td></tr><tr><td>CFRNETwass</td><td>+ 0.76± 0.02</td><td>t 0.27 ± 0.01</td><td>0.21± 0.0</td><td>+ 0.09 ± 0.03</td><td>16.93 ± 1.12</td><td>† 4.54 ± 1.48</td></tr><tr><td>CEVAE</td><td>+ 2.7 ±0.1</td><td>+ 0.46 ± 0.02</td><td>+ 0.26 ±0.0</td><td>+ 0.03 ± 0.01</td><td>n.r.</td><td>n.r.</td></tr><tr><td>CMGP</td><td>+ 0.77 ± 0.11</td><td>+ 0.13 ± 0.12</td><td>0.24± 0.05</td><td>+ 0.09 ± 0.07</td><td>n.r.</td><td>n.r.</td></tr></table>
|
| 124 |
+
|
| 125 |
+
# 4.2 EXPERIMENTAL SETUP
|
| 126 |
+
|
| 127 |
+
Models. We evaluated PM, ablations, baselines, and all relevant state-of-the-art methods: kNN (Ho et al. (2007)), BART (Chipman et al. (2010); Chipman & McCulloch (2016)), Random Forests (RF) (Breiman (2001)), CF (Wager & Athey (2017)), GANITE (Yoon et al. (2018)), Balancing Neural Network (BNN) (Johansson et al. (2016)), TARNET (Shalit et al. (2017)), Counterfactual Regression Network using the Wasserstein regulariser (CFRNETWass) (Shalit et al. (2017)), CEVAE (Louizos et al. (2017)), CMGP (Alaa & van der Schaar (2017)), and PD (Alaa et al. (2017)). We trained a Support Vector Machine (SVM) with probability estimation (Pedregosa et al. (2011)) to estimate $p ( t | X )$ for PM on the training set. We also evaluated preprocessing the entire training set with PSM using the same matching routine as PM $( \mathrm { P S M } _ { \mathrm { P M } } )$ and the ”MatchIt” package $( \mathrm { P S M } _ { \mathrm { M I } }$ , Ho et al. (2011)) before training a TARNET (Appendix F). In addition, we trained an ablation of PM where we matched on the covariates $X$ $\ l ^ { \prime } + \ l \mathrm { o n } X )$ directly, if $X$ was low-dimensional $\left( p < 2 0 0 \right)$ ), and on a 50-dimensional representation of $X$ obtained via principal components analysis (PCA), if $X$ was high-dimensional, instead of on the propensity score. We also evaluated PM with a multi-layer perceptron $( + \mathrm { M L P } )$ that received the treatment index $t _ { j }$ as an input instead of using a TARNET.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 5: Comparison of several state-of-the-art methods for counterfactual inference on the test set of the TCGA dataset when varying the percentage of hidden confounding $\mathbf { \bar { X } }$ -axis), i.e. what percentage of the features that were relevant for treatment assignment are visible to the model. Symbols correspond to the mean value of $\hat { \epsilon } _ { \mathrm { A T E } }$ (left) and $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ (right) across 5 repeated runs with new outcomes (lower is better). The shaded area indicates the standard deviation. PM, TARNET and CFRNET are relatively stable up to $60 \%$ of hidden confounding. The methods degrade strongly in counterfactual prediction performance at levels of hidden confounding higher than $60 \%$ .
|
| 131 |
+
|
| 132 |
+
Table 4: Comparison of methods for counterfactual inference with more than two available treatment options on the News-4, News-8 and News-16. Numbers are mean value $\pm$ the standard deviation of $\sqrt { \hat { \epsilon } _ { \mathrm { m P E H E } } }$ and $\hat { \epsilon } _ { \mathrm { m A T E } }$ over 50 repeated runs. $^ { \dag } =$ significantly different from PM $( \alpha < 0 . 0 5 )$
|
| 133 |
+
|
| 134 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">News-4 (κ = 10)</td><td colspan="2">News-8 (κ = 10)</td><td colspan="2"></td><td colspan="2">News-16 (k = 7)</td></tr><tr><td>VemPEHE</td><td>EmATE</td><td></td><td>VemPEHE</td><td>CmATE</td><td></td><td>VemPEHE</td><td>CmATE</td></tr><tr><td>PM</td><td>21.58 ± 2.58</td><td>10.04 ± 2.71</td><td></td><td>20.76 ± 1.86</td><td>6.51 ± 1.66</td><td></td><td>20.24 ± 1.46</td><td>5.76 ±1.33</td></tr><tr><td>+on X</td><td>21.41 ± 1.75 +</td><td>8.91 ± 2.00</td><td></td><td>20.90 ± 2.07</td><td>6.36 ± 1.65</td><td></td><td>20.67 ± 1.42</td><td>5.73 ± 1.16</td></tr><tr><td>+ MLP</td><td>+ 25.05 ± 2.80</td><td>+14.92±3.14</td><td>+</td><td>24.88±1.98 +</td><td>14.00±2.45+</td><td></td><td>27.05± 2.47 † 16.90 ± 2.01</td><td></td></tr><tr><td>kNN</td><td>+27.92 ± 2.44</td><td></td><td></td><td>4 + 19.40 ± 3.12 † 26.20± 2.18 † 15.11 ± 2.34 + 2</td><td></td><td></td><td>27.64 ± 2.40 † 17.27 ± 2.10</td><td></td></tr><tr><td>PSMPM</td><td>+ 22.74 ± 2.58 +</td><td></td><td></td><td>11.62 ± 2.69 † 22.16±1.79 †</td><td>8.81±1.96 + 2</td><td></td><td>23.57 ± 2.48 † 11.04 ± 2.50</td><td></td></tr><tr><td>PSMMI</td><td>† 37.26± 2.28 ↑</td><td></td><td></td><td>30.19 ± 2.47 + 30.50± 1.70 † 22.09±1.98</td><td></td><td>+</td><td>28.17 ± 2.02 † 18.81 ± 1.74</td><td></td></tr><tr><td>RF</td><td>+ 26.59 ± 3.02 +</td><td></td><td></td><td>18.03 ±3.18 † 23.77± 2.14 +</td><td>12.40±2.29</td><td>+</td><td>26.13± 2.48 †15.91± 2.00</td><td></td></tr><tr><td>CF</td><td>t 27.28 ± 2.59 ↑</td><td>19.04± 3.15</td><td>→</td><td>25.76±2.05 +</td><td>15.12±2.20+</td><td></td><td>26.85± 2.29</td><td>5+17.03 ± 1.99</td></tr><tr><td>BART</td><td>+ 26.41 ± 3.10 † 17.14± 3.51</td><td></td><td></td><td>t 25.78± 2.66 +</td><td>14.80±2.56†</td><td></td><td>27.45± 2.84 + 17.50± 2.49</td><td></td></tr><tr><td>GANITE</td><td>+ 24.50 ± 2.27 + 13.84 ± 2.69</td><td></td><td>†</td><td>23.58±2.48 +</td><td>11.20±2.84+2</td><td></td><td>25.12± 3.53 + 13.20±3.28</td><td></td></tr><tr><td>PD</td><td>20.88± 3.24 †</td><td>8.47 ± 4.51</td><td></td><td>21.19 ± 2.29</td><td>7.29 ± 2.97 †</td><td></td><td>22.28± 2.25 + 10.65± 2.22</td><td></td></tr><tr><td>TARNET</td><td>+23.40±2.20</td><td>)†13.63 ± 2.18</td><td>†</td><td>22.39± 2.32 +</td><td>9.38 ± 1.92</td><td>+</td><td>21.19 ± 2.01 †</td><td>8.30 ± 1.66</td></tr><tr><td>CFRNETWass</td><td>t 22.65± 1.97 + 12.96± 1.69</td><td></td><td></td><td>21.64±1.82 +</td><td>8.79 ± 1.68</td><td>+</td><td>20.87±1.46†</td><td>8.05 ±1.40</td></tr></table>
|
| 135 |
+
|
| 136 |
+
Architectures. To ensure that differences between methods of learning counterfactual representations for neural networks are not due to differences in architecture, we based the neural architectures for TARNET, CFRNETWass, PD and PM on the same, previously described extension of the TARNET architecture (Shalit et al. (2017), Details in Appendix G) to the multiple treatment setting.
|
| 137 |
+
|
| 138 |
+
Hyperparameters. For the IHDP, Jobs, News and TCGA dataset we respectively used 30, 30, 10, and 5 optimisation runs for each method using randomly selected hyperparameters from predefined ranges (Appendix H). We selected the best model across the runs based on validation set $\hat { \epsilon } _ { \mathrm { N N } }$ -PEHE.
|
| 139 |
+
|
| 140 |
+
Metrics. We calculated the PEHE and $\epsilon _ { \mathrm { A T E } }$ for datasets for which we know the outcome generating process. For the Jobs dataset, we did not have access to counterfactual outcomes. We therefore calculated the $\begin{array} { r } { \mathrm { A T T } \ = \ \frac { 1 } { | T _ { 1 } \cap E | } \sum _ { n = 0 } ^ { N } y _ { 1 } ( n ) - \frac { 1 } { | T _ { 0 } \cap E | } \sum _ { n = 0 } ^ { N } y _ { 0 } ( n ) } \end{array}$ PNn=0 y0(n) where E was the randomised subset of the dataset, and reported the error in estimating ATT $\begin{array} { r } { \epsilon _ { \mathrm { A T T } } = | \mathrm { A T T } - \frac { 1 } { | T _ { 1 } \cap E | } \sum _ { n = 0 } ^ { N } \hat { y } _ { 1 } ( n ) | , } \end{array}$ and the policy risk $R _ { \mathrm { P o l } } ( \pi )$ (Shalit et al. (2017); Yoon et al. (2018)). The policy risk is the average loss in value when treating according to the policy $\pi$ implied by an ITE estimator (Appendix I).
|
| 141 |
+
|
| 142 |
+
# 5 RESULTS AND DISCUSSION
|
| 143 |
+
|
| 144 |
+
Counterfactual Inference. We evaluated the counterfactual inference performance of the listed models in the binary setting (Table 3) and multiple treatment setting (Table 4). On IHDP, PM reached the third best performance in terms of $\sqrt { \epsilon _ { \mathrm { P E H E } } }$ after CFRNET and CMGP, and the second best $\epsilon _ { \mathrm { A T E } }$ after CMGP. On Jobs, PM reached the second best $R _ { \mathrm { P o l } } ( \pi )$ after GANITE. On the binary News-2, PM outperformed all other methods in terms of $\sqrt { \epsilon _ { \mathrm { P E H E } } }$ and $\epsilon _ { \mathrm { A T E } }$ . On the News-4/8/16 datasets with more than two treatments, PM consistently outperformed all other methods - in some cases by a large margin - on both metrics with the exception of the News-4 dataset, where PM came second to PD. The strong performance of PM across a wide range of datasets with varying amounts of treatment options is remarkable considering how simple it is compared to other, highly specialised methods. Notably, PM consistently outperformed both CFRNET, with the exception of the IHDP dataset, which accounted for covariate imbalances between treatments via regularisation rather than matching, and $\mathrm { P S M } _ { \mathrm { M I } }$ , which accounted for covariate imbalances by preprocessing the entire training set with a matching algorithm (Ho et al. (2011)). We also found that matching on the propensity score was, in almost all cases, not significantly different from matching on $X$ directly when $X$ was low-dimensional, or a low-dimensional representation of $X$ when $X$ was high-dimensional $^ +$ o n $X$ ). This indicates that PM is effective with any low-dimensional balancing score. In addition, using PM with the TARNET architecture outperformed the MLP $+ \mathrm { M L P } )$ in almost all cases, with the exception of the low-dimensional IHDP and Jobs. We conclude that matching on the propensity score or a low-dimensional representation of $X$ and using the TARNET architecture are sensible default configurations, particularly when $X$ is high-dimensional.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 6: Comparison of the learning dynamics during training (normalised training epochs; from start ${ } = 0$ to end $= 1 0 0$ of training, $\mathbf { X }$ -axis) of several matching-based methods on the validation set of News-8. The coloured lines correspond to the mean value of the factual error $\mathrm { \cdot } \sqrt { \mathrm { M S E } }$ ; red) and the counterfactual error $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ ; blue) across 10 randomised hyperparameter configurations (lower is better). The shaded area indicates the standard deviation. All methods used exactly the same model and hyperparameters and only differed in how they addressed treatment assignment imbalance. The leftmost figure shows the desired behavior of the counterfactual and factual error jointly decreasing until convergence. PM exhibits the desired behavior of aligning the optimisation of the factual and counterfactual error. $\mathrm { P S M } _ { \mathrm { P M } }$ shows a weaker degree of alignment and much higher variance. In contrast, $\mathrm { P S M } _ { \mathrm { M I } }$ shows the undesired behavior of the counterfactual error increasing as the factual error decreases, indicating that the models were overfitting to the properties of the treated group.
|
| 148 |
+
|
| 149 |
+
Model Selection. To judge whether NN-PEHE is more suitable for model selection for counterfactual inference than MSE, we compared their respective correlations with the PEHE on IHDP. We found that NN-PEHE correlates significantly better with the PEHE than MSE (Figure 2).
|
| 150 |
+
|
| 151 |
+
Number of Matches per Minibatch. To determine the impact of matching fewer than $100 \%$ of all samples in a batch, we evaluated PM on News-8 trained with varying percentages of matched samples on the range 0 to $100 \%$ in steps of $10 \%$ (Figure 3). We found that including more matches indeed consistently reduces the counterfactual error up to $100 \%$ of samples matched. Interestingly, we found a large improvement over using no matched samples even for relatively small percentages $( < 4 0 \% )$ of matched samples per batch. This shows that propensity score matching within a batch is indeed highly effective at improving the training of neural networks for counterfactual inference.
|
| 152 |
+
|
| 153 |
+
Treatment Assignment Bias. To assess how the predictive performance of the different methods is influenced by increasing amounts of treatment assignment bias, we evaluated their performances on News-8 while varying the assignment bias coefficient $\kappa$ on the range of 5 to 20 (Figure 4). We found that PM handles high amounts of assignment bias better than existing state-of-the-art methods.
|
| 154 |
+
|
| 155 |
+
Hidden Confounding. To analyse the sensitivity of the different methods to hidden confounding, we successively retrained the models on a reduced set of covariates $x _ { i }$ in increasing steps of $10 \%$ $( = \ 2 0 5 3$ gene loci) in the range of $10 \%$ to $90 \%$ (Figure 5). We removed the covariates from the model but kept them for computing assignments and outcomes, i.e. they were hidden confounders. The results showed that PM was competitive with TARNET and CFRNET in terms of robustness to hidden confounding. Notably, PM, TARNET and CFRNET were relatively stable up to levels of $60 \%$ of hidden confounding, likely because some gene loci are highly correlated.
|
| 156 |
+
|
| 157 |
+
Comparing Minibatch and Dataset Matching. As outlined previously, it is possible to optimise the counterfactual error using the observed factual samples if (1) we manage to break the dependence of treatment assignment on $X$ , and (2) we observe all relevant variables (Ho et al. (2007)). If we were successful in balancing the covariates, we would expect that the counterfactual error is implicitly and consistently improved alongside the factual error, despite optimising the neural network for the observed factual loss only. To elucidate to what degree this is the case when using the various evaluated matching-based methods, we evaluated the respective training dynamics of PM, $\mathrm { P S M } _ { \mathrm { P M } }$ and $\mathrm { P S M } _ { \mathrm { M I } }$ (Figure 6). We found that PM better conforms to the desired behavior than $\mathrm { P S M } _ { \mathrm { P M } }$ and $\mathrm { P S M } _ { \mathrm { M I } }$ . $\mathrm { P S M } _ { \mathrm { P M } }$ , which used the same matching strategy as PM but on the dataset level, showed a much higher variance than PM. $\mathrm { P S M } _ { \mathrm { M I } }$ was overfitting to the treated group.
|
| 158 |
+
|
| 159 |
+
Limitations. A limitation of this work is that the theory of matching to balance the covariates only holds in the strongly ignorable setting, i.e. under the assumption that there are no unobserved confounders. However, our experiments (Figure 5) and related works showed that even the presence of large amounts of hidden confounders may not necessarily decrease the performance of ITE estimators in practice if we observe proxy variables (Montgomery et al. (2000); Louizos et al. (2017)). In future work, we would like to integrate PM with diagnostic tools that address hidden confounding (Kallus & Zhou (2018)), and the ability to learn from multiple related tasks (Schwab et al. (2018)).
|
| 160 |
+
|
| 161 |
+
# 6 CONCLUSION
|
| 162 |
+
|
| 163 |
+
We presented PM, a new and simple method for training neural networks for estimating ITEs from observational data that extends to any number of available treatment options. In addition, we extended the PEHE metric to settings with more than two treatments, and introduced a nearest neighbour approximation of PEHE and mPEHE that can be used for model selection without having access to counterfactual outcomes. We performed experiments on several real-world and semisynthetic datasets that showed that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes. We also found that the NN-PEHE correlates significantly better with real PEHE than MSE, that including more matched samples in each minibatch improves the learning of counterfactual representations, and that PM handles an increasing treatment assignment bias better than existing state-of-the-art methods. PM may be used for settings with any amount of treatment options, is compatible with any existing neural network architecture, simple to implement, and does not introduce any additional hyperparameters or computational complexity.
|
| 164 |
+
|
| 165 |
+
# REFERENCES
|
| 166 |
+
|
| 167 |
+
Ahmed M Alaa and Mihaela van der Schaar. Bayesian inference of individualized treatment effects using multi-task gaussian processes. In Advances in Neural Information Processing Systems, pp. 3424–3432, 2017.
|
| 168 |
+
Ahmed M Alaa, Michael Weisz, and Mihaela van der Schaar. Deep counterfactual networks with propensity-dropout. arXiv preprint arXiv:1706.05966, 2017.
|
| 169 |
+
Susan Athey, Julie Tibshirani, and Stefan Wager. Generalized random forests. arXiv preprint arXiv:1610.01271, 2016.
|
| 170 |
+
Leo Breiman. Random forests. Machine learning, 45(1):5–32, 2001.
|
| 171 |
+
Hugh Chipman and Robert McCulloch. BayesTree: Bayesian additive regression trees. R package version 0.3-1.4, 2016.
|
| 172 |
+
Hugh A Chipman, Edward I George, Robert E McCulloch, et al. BART: Bayesian additive regression trees. The Annals of Applied Statistics, 4(1):266–298, 2010.
|
| 173 |
+
Dominik Csiba and Peter Richtarik. Importance sampling for minibatches. ´ Journal of Machine Learning Research, 19(27), 2018.
|
| 174 |
+
Rajeev H Dehejia and Sadek Wahba. Propensity score-matching methods for nonexperimental causal studies. Review of Economics and statistics, 84(1):151–161, 2002.
|
| 175 |
+
Vincent Dorie. NPCI: Non-parametrics for causal inference, 2016. URL https://github. com/vdorie/npci.
|
| 176 |
+
Michele Jonsson Funk, Daniel Westreich, Chris Wiesen, Til Strmer, M. Alan Brookhart, and Marie Davidian. Doubly robust estimation of causal effects. American Journal of Epidemiology, 173 (7):761–767, 2011.
|
| 177 |
+
Jennifer L Hill. Bayesian nonparametric modeling for causal inference. Journal of Computational and Graphical Statistics, 20(1):217–240, 2011.
|
| 178 |
+
Daniel E Ho, Kosuke Imai, Gary King, and Elizabeth A Stuart. Matching as nonparametric preprocessing for reducing model dependence in parametric causal inference. Political analysis, 15(3): 199–236, 2007.
|
| 179 |
+
Daniel E Ho, Kosuke Imai, Gary King, Elizabeth A Stuart, et al. MatchIt: nonparametric preprocessing for parametric causal inference. Journal of Statistical Software, 42(8):1–28, 2011.
|
| 180 |
+
Fredrik Johansson, Uri Shalit, and David Sontag. Learning representations for counterfactual inference. In International Conference on Machine Learning, pp. 3020–3029, 2016.
|
| 181 |
+
Nathan Kallus. Recursive partitioning for personalization using observational data. In International Conference on Machine Learning, 2017.
|
| 182 |
+
|
| 183 |
+
Nathan Kallus and Angela Zhou. Confounding-robust policy improvement. Advances in Neural Information Processing Systems, 2018.
|
| 184 |
+
|
| 185 |
+
Adam Kapelner and Justin Bleich. bartMachine: Machine learning with Bayesian additive regression trees. arXiv preprint arXiv:1312.2171, 2013.
|
| 186 |
+
|
| 187 |
+
Robert J LaLonde. Evaluating the econometric evaluations of training programs with experimental data. The American economic review, pp. 604–620, 1986.
|
| 188 |
+
|
| 189 |
+
Christos Louizos, Uri Shalit, Joris M Mooij, David Sontag, Richard Zemel, and Max Welling. Causal effect inference with deep latent-variable models. In Advances in Neural Information Processing Systems, pp. 6446–6456, 2017.
|
| 190 |
+
|
| 191 |
+
Yishay Mansour, Mehryar Mohri, and Afshin Rostamizadeh. Domain adaptation: Learning bounds and algorithms. arXiv preprint arXiv:0902.3430, 2009.
|
| 192 |
+
|
| 193 |
+
Mark R Montgomery, Michele Gragnolati, Kathleen A Burke, and Edmundo Paredes. Measuring living standards with proxy variables. Demography, 37(2):155–174, 2000.
|
| 194 |
+
|
| 195 |
+
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
|
| 196 |
+
|
| 197 |
+
Paul R. Rosenbaum and Donald B. Rubin. The central role of the propensity score in observational studies for causal effects. Biometrika, 70(1):41–55, 1983.
|
| 198 |
+
|
| 199 |
+
Donald B Rubin. Causal inference using potential outcomes: Design, modeling, decisions. Journal of the American Statistical Association, 100(469):322–331, 2005.
|
| 200 |
+
|
| 201 |
+
Patrick Schwab, Emanuela Keller, Carl Muroi, David J Mack, Christian Strassle, and Walter Karlen. ¨ Not to Cry Wolf: Distantly Supervised Multitask Learning in Critical Care. In International Conference on Machine Learning, 2018.
|
| 202 |
+
|
| 203 |
+
Uri Shalit, Fredrik D Johansson, and David Sontag. Estimating individual treatment effect: Generalization bounds and algorithms. In International Conference on Machine Learning, 2017.
|
| 204 |
+
|
| 205 |
+
Jeffrey A Smith and Petra E Todd. Does matching overcome LaLonde’s critique of nonexperimental estimators? Journal of Econometrics, 125(1-2):305–353, 2005.
|
| 206 |
+
|
| 207 |
+
Stefan Wager and Susan Athey. Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 2017.
|
| 208 |
+
|
| 209 |
+
John N Weinstein, Eric A Collisson, Gordon B Mills, Kenna R Mills Shaw, Brad A Ozenberger, Kyle Ellrott, Ilya Shmulevich, Chris Sander, Joshua M Stuart, Cancer Genome Atlas Research Network, et al. The cancer genome atlas pan-cancer analysis project. Nature genetics, 45(10): 1113–1120, 2013.
|
| 210 |
+
|
| 211 |
+
Jinsung Yoon, James Jordon, and Mihaela van der Schaar. GANITE: Estimation of Individualized Treatment Effects using Generative Adversarial Nets. In International Conference on Learning Representations, 2018.
|
| 212 |
+
|
| 213 |
+
# SUPPLEMENTARY MATERIAL FOR:”PERFECT MATCH: A SIMPLE METHOD FOR LEARN-ING REPRESENTATIONS FOR COUNTERFACTUAL IN-FERENCE WITH NEURAL NETWORKS”
|
| 214 |
+
|
| 215 |
+
Anonymous authors Paper under double-blind review
|
| 216 |
+
|
| 217 |
+
# A PRECISION IN ESTIMATION OF HETEROGENOUS EFFECT (PEHE)
|
| 218 |
+
|
| 219 |
+
When the underlying noiseless distributions $\mu _ { j }$ are not given, PEHE is calculated using:
|
| 220 |
+
|
| 221 |
+
$$
|
| 222 |
+
{ \hat { \epsilon } } _ { \mathrm { P E H E } } = { \frac { 1 } { N } } \sum _ { n = 0 } ^ { N } { \Big ( } { \big [ } y _ { 1 } ( n ) - y _ { 0 } ( n ) { \big ] } - { \big [ } { \hat { y } } _ { 1 } ( n ) - { \hat { y } } _ { 0 } ( n ) { \big ] } { \Big ) } ^ { 2 }
|
| 223 |
+
$$
|
| 224 |
+
|
| 225 |
+
# B AVERAGE TREATMENT EFFECT (ATE)
|
| 226 |
+
|
| 227 |
+
The ATE measures the average difference in effect across the whole population (Hill (2011)). It can be useful indicator of how well an ITE estimator performs at comparing two treatments across the entire population.
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
\epsilon _ { \mathrm { A T E } } = | | \frac { 1 } { N } \sum _ { n = 0 } ^ { N } \mathbb { E } _ { y ( n ) \sim \mu ( n ) } [ y ( n ) ] - \frac { 1 } { N } \sum _ { n = 0 } ^ { N } \hat { y } ( n ) | | _ { 2 } ^ { 2 }
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
Similar to Equation (A.1), the counterfactual treatment effect can be estimated using the noisy ground truth outcomes if the underlying noiseless distributions $\mu _ { j }$ are not given:
|
| 234 |
+
|
| 235 |
+
$$
|
| 236 |
+
\hat { \epsilon } _ { \mathrm { A T E } } = | | \frac { 1 } { N } \sum _ { n = 0 } ^ { N } y ( n ) - \frac { 1 } { N } \sum _ { n = 0 } ^ { N } \hat { y } ( n ) | | _ { 2 } ^ { 2 }
|
| 237 |
+
$$
|
| 238 |
+
|
| 239 |
+
# C DETAILS PERFECT MATCH (PM)
|
| 240 |
+
|
| 241 |
+
Algorithm 1 outlines the procedure of using PM to augment a batch with propensity score matches for training a neural network with stochastic gradient descent. We trained a Support Vector Machine (SVM) with probability estimation as propensity score estimator $E _ { \mathrm { P S } }$ . To speed up recalling nearest neighbours, we additionally prepared an index per treatment into $X _ { \mathrm { t r a i n } }$ sorted by propensity score. At augmentation time, we used binary search on this index to find the nearest neighbours by propensity score in $\mathrm { O } ( \log \ N _ { t } )$ where $N _ { t }$ is the number of samples $X$ in $X _ { \mathrm { { t r a i n } } }$ assigned to the treatment group $t$ . To avoid overfitting to specific edge samples when propensity scores are not distributed evenly in the training set, we chose at random from one of the $k { = } 6$ closest samples by propensity score. See Table S1 for a comparison of the effects on predictive performance of choosing varying values of $k$ . For the $^ { \circ } +$ on $X ^ { \dag }$ model we matched, using the Euclidean distance, directly on the covariates $X$ on IHDP and Jobs, and using a low dimensional representation of $X$ , obtained using principal component analysis (PCA) with 50 principal components, on News.
|
| 242 |
+
|
| 243 |
+
Table S1: Comparison of PM with varying numbers of nearest neighbours $k$ considered for randomised matching on the News-2/4/8/16 datasets $k { = } 1$ corresponds to no randomisation; $k { = } 6$ , in cursive, are the results reported in the main body). We report the mean value $\pm$ the standard deviation of $\sqrt { \hat { \epsilon } _ { \mathrm { P E H E } } }$ on the test sets over 50 runs. There was no significant differences between different levels of $k$ and $k { = } 6$ (significance level $\alpha < 0 . 0 5$ ). In particular, there was no significant difference between using randomisation and not using randomisation.
|
| 244 |
+
|
| 245 |
+
<table><tr><td>Method</td><td>News-2 VEPEHE</td><td>News-4 VEPEHE</td><td>News-8 VEPEHE</td><td>News-16 VEPEHE</td></tr><tr><td>PM (k=1)</td><td>16.79 ± 1.16</td><td>21.86 ± 2.24</td><td>20.70 ±1.87</td><td>20.06 ±1.43</td></tr><tr><td>PM (k=3)</td><td>16.82 ± 1.17</td><td>21.49 ± 2.43</td><td>20.50 ± 1.48</td><td>20.28 ± 1.52</td></tr><tr><td>PM(k=6)</td><td>16.76 ± 1.26</td><td>21.58 ± 2.58</td><td>20.76 ± 1.86</td><td>20.24 ± 1.46</td></tr><tr><td>PM (k=9)</td><td>16.91 ± 1.18</td><td>21.56 ± 2.58</td><td>20.75 ± 1.53</td><td>20.47 ± 1.94</td></tr><tr><td>PM (k=12)</td><td>17.11 ± 0.94</td><td>21.16 ± 2.20</td><td>21.10 ± 2.14</td><td>20.28 ± 1.64</td></tr><tr><td>PM (k=15)</td><td>16.87 ± 1.14</td><td>20.94 ± 2.05</td><td>20.92 ±1.80</td><td>20.48 ±1.80</td></tr></table>
|
| 246 |
+
|
| 247 |
+
# D REDUCED VARIANCE IS LINKED TO IMPROVED PERFORMANCE IN ESTIMATING TREATMENT EFFECTS
|
| 248 |
+
|
| 249 |
+
In the standard supervised setting, the variance added by minibatch SGD leads to slower convergence (Csiba & Richtrik (2018)), but will not typically lead to models that perform worse if they are trained until a convergence criterion has been met, e.g. early stopping. It is therefore perhaps surprising that we observe a difference not just in convergence (Figure 6), but also in counterfactual estimation performance (Tables 3 and 4) when comparing models trained with and without batch matching.
|
| 250 |
+
|
| 251 |
+
A potential cause of the observed difference in treatment effect estimation performance is that we do not have access to the true counterfactual error in observational data to select the best model encountered during training. We therefore have to resort to using the factual error (e.g. factual MSE) or an estimator based on the factual error (e.g. NN-PEHE) to select the best encountered model. However, when the variance during training is high, chances are that we select a model based on the factual error that at this point during the training happens to be suboptimal in terms of counterfactual error. Through this mechanism, added variance during training for counterfactual inference is directly linked to worse expected performance in treatment effect estimation (Figure S1). We do not observe the same behavior in standard supervised learning tasks because we have direct access to the underlying objective, and are therefore able to select the best encountered model regardless of the variance during optimisation, i.e. models that during training do not perform well momentarily will not be selected because their measured error is high. We confirmed experimentally that gradient steps are more likely to be in opposing directions when not using PM (Figure S2).
|
| 252 |
+
|
| 253 |
+

|
| 254 |
+
Figure S1: Illustration of the impact of added variance introduced by minibatch SGD during training. In the supervised setting (left), high variance does in general not impact the final performance in terms of expected factual error (red), because we can select (dotted black line) the best encountered model during training using the observed error. In the counterfactual setting (right), we are not able to compute the true counterfactual error (blue) in observational data, and must therefore resort to selecting based on the factual error or a measure derived from the factual error. Even though we encounter models that perform similarly well, we are less likely to select these models under high variance, because we do not have direct access to the counterfactual error and the minimum of the factual error in general does not correspond to the minimum of the counterfactual error, particularly when optimisation of counterfactual and factual error are not well aligned. The dashed blue line indicates the counterfactual error of the model selected based on factual error.
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
Figure S2: Comparison of the frequencies of individual gradient steps during training of several matching-based methods on the validation set of News-8. The heatmap entries show the frequencies of pairs of differences in factual error (∆MSE; y-axis) and counterfactual error ( $\Delta \epsilon _ { \mathrm { P E H E } }$ ; $\mathbf { X }$ -axis) after individual gradient steps. All methods used the same model and only differed in how they addressed treatment assignment bias. The leftmost heatmap shows the desired behavior of gradient steps changing the counterfactual and factual error jointly during training. PM most closely resembles the desired behavior of jointly optimising counterfactual and factual error. In contrast, $\mathrm { P S M } _ { \mathrm { P M } }$ and $\mathrm { P S M _ { M I } }$ have a much higher relative frequency of gradient steps that do not move into the same magnitude or direction (off-diagonal entries) for both factual and counterfactual error.
|
| 258 |
+
|
| 259 |
+
# E NEAREST NEIGHBOUR APPROXIMATION OF PEHE FOR MULTIPLE TREATMENTS (NN-MPEHE)
|
| 260 |
+
|
| 261 |
+
The ˆNN-PEHE metric can be extended to the multiple treatment setting by considering the mean ˆNN-PEHE between all $\binom { k } { 2 }$ possible pairs of treatments:
|
| 262 |
+
|
| 263 |
+
$$
|
| 264 |
+
\hat { \epsilon } _ { \mathrm { N N - m P E H E } } = \frac { 1 } { \binom { k } { 2 } } \sum _ { i = 0 } ^ { k - 1 } \sum _ { j = 0 } ^ { i - 1 } \hat { \epsilon } _ { \mathrm { N N - P E H E } , i , j }
|
| 265 |
+
$$
|
| 266 |
+
|
| 267 |
+
# F PSEUDOCODE PROPENSITY SCORE MATCHING (PSM)
|
| 268 |
+
|
| 269 |
+
Algorithm S2 outlines the procedure of preprocessing a training set using $\mathrm { P S M } _ { \mathrm { M I } }$ . For $\mathrm { P S M } _ { \mathrm { P M } }$ , we used the PM matching algorithm (see Algorithm 1) to find matches between samples from the treatment groups. For $\mathrm { P S M } _ { \mathrm { M I } }$ , we used the MatchIt package (Ho et al. (2011)) on setting ”nearest” to find matches between sets of samples from two treatment groups (function get matched samples).
|
| 270 |
+
|
| 271 |
+
<table><tr><td>Algorithm S2 Preprocessng a training set using Propensity Score Matching (PSM). After prepro- cessing,the training set contains an equal number of samples from each treatment group and the covariates xi across all treatment groups are approximately balanced.</td></tr><tr><td>Input: N training samples Xtrain with assgned treatments t, Number of treatment options k, func- tion get_mat ched_samples to find nearest matches by propensity score between sets of</td></tr><tr><td>samples Output: Preprocessed training set Xout consisting of matched samples from each treatment group</td></tr><tr><td>1: procedure PREPROCESS_TRAINING_SET: 2: tbase ← index of treatment with smallest number of samples in Xtrain</td></tr><tr><td>Xbase ← all samples in Xtrain With treatment tbase</td></tr><tr><td>fori=O to k-1 do</td></tr><tr><td>if i≠ tbase then</td></tr><tr><td>Xcurrent ← all samples in Xtrain with treatment i</td></tr><tr><td>Xmatched ← get_mat ched_samples(Xbase,Xcurrent) Add all samples in Xmatched to Xout</td></tr><tr><td></td></tr><tr><td>Add all samples in Xbase to Xout</td></tr></table>
|
| 272 |
+
|
| 273 |
+
# G TARNET, CFRNET AND PD FOR MULTIPLE TREATMENTS
|
| 274 |
+
|
| 275 |
+
In TARNET models, we used ELU nonlinearities between the $L$ hidden layers with $M$ hidden units. $L$ and $M$ were hyperparameters that we optimised during hyperparameter optimisation (Section H). We did not use batch normalisation (BN). To extend CFRNET to the multiple treatment setting, we defined the first treatment option as the control treatment and regularised all treatment options to have the same activation distribution in the topmost shared layer (Shalit et al. (2017)). For PD, we only used propensity dropout and the propensity estimation network. We did not make use of the alternating training schedule proposed in (Alaa et al. (2017)). The $\ " { + } \mathrm { M L P ^ { \prime } }$ model was a simple MLP with $L$ hidden layers of $M$ hidden units that received the treatment option index $t _ { j }$ as an additional input along with the covariates $X$ , and output a $k$ -dimensional potential outcome vector $\hat { Y }$ . The MLP used ELU nonlinearities between the $L$ hidden layers, and also did not use BN.
|
| 276 |
+
|
| 277 |
+
# H HYPERPARAMETERS
|
| 278 |
+
|
| 279 |
+
To ensure a fair comparison, we used a standardised approach to hyperparameter optimisation for those methods for which we did not have previously reported performance numbers. In particular, each method we trained was optimised over the same amount of hyperparameter optimisation runs. For the methods that used neural network models (TARNET, CFRNET, PD, $\mathrm { P S M } _ { \mathrm { P M } }$ , $\mathrm { P S M _ { M I } }$ , including $^ { , , } +$ on $X ^ { \dag }$ and $\ " { + } \mathrm { M L P ^ { \prime } }$ , and PM), we chose hyperparameters at random from predefined ranges (Table S2). For CFRNET, we additionally varied the weight of the imbalance penalty at random between 0.1, 1.0, and 10.0. All methods that used a neural network model used the TARNET architecture to ensure differences in performance are not due to architectural differences. To train PM for the Jobs dataset, we used fixed hyperparameters: A batch size of 50, 60 hidden units per layer, and 3 hidden layers. For optimisation, we used the Adam optimiser with a learning rate of 0.001 for a maximum of 100 (News, TCGA) or 400 (IHDP, Jobs) with an early stopping patience of 30 on the factual MSE. We used the default hyperparameters for BART and CF from the ”bartMachine” (Kapelner & Bleich (2013)) and ”grf” (Athey et al. (2016)) R-packages. For GANITE, we used our own implementation since there was no open source implementation available, and - in addition to the parameters in Table S2 - optimised over the supervised loss weights $\alpha$ and $\beta$ (Yoon et al. (2018)) between 0.1, 1, and 10. For the GANITE generators and discriminators, we used MLP architectures with $L$ hidden layers of $M$ hidden units each.
|
| 280 |
+
|
| 281 |
+
Table S2: Hyperparameter ranges used in the performed experiments.
|
| 282 |
+
|
| 283 |
+
<table><tr><td>Hyperparameter</td><td>IHDP</td><td>News/TCGA</td></tr><tr><td>Batch size B</td><td>4,8,50,100</td><td>50</td></tr><tr><td>Number of units per hidden layer M5</td><td>50,100,200</td><td>40,60,80</td></tr><tr><td>Number of hidden layers L</td><td>1,2,3</td><td>2,3</td></tr></table>
|
| 284 |
+
|
| 285 |
+
# I POLICY RISK $R _ { \mathrm { P o L } } ( \pi )$
|
| 286 |
+
|
| 287 |
+
We define the policy risk $R _ { \mathrm { P o l } } ( \pi )$ as the expected loss in value when treating according to the policy $\pi$ implied by an ITE estimator (Shalit et al. (2017)):
|
| 288 |
+
|
| 289 |
+
$$
|
| 290 |
+
R _ { \mathrm { P o l } } ( \pi ) = 1 - ( \mathbb { E } [ y _ { 1 } | \pi ( X ) = 1 ] \cdot p ( \pi = 1 ) + \mathbb { E } [ y _ { 0 } | \pi ( X ) = 0 ] \cdot p ( \pi = 0 ) )
|
| 291 |
+
$$
|
| 292 |
+
|
| 293 |
+
where the policy $\pi ( X )$ for a sample $X$ implied by an ITE estimator that produces potential outcomes $\hat { y }$ is defined as:
|
| 294 |
+
|
| 295 |
+
$$
|
| 296 |
+
\pi ( X ) = { \left\{ \begin{array} { l l } { 1 } & { { \mathrm { i f ~ } } { \hat { y } } _ { 1 , X } - { \hat { y } } _ { 0 , X } > \lambda } \\ { 0 } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. } \quad { \mathrm { ( t o ~ t r e a t ) } }
|
| 297 |
+
$$
|
| 298 |
+
|
| 299 |
+
# J ORIGINS OF PERFORMANCE NUMBERS IN TABLE 3
|
| 300 |
+
|
| 301 |
+
Where available, performance numbers in Table 3 were taken from the original authors for IHDP and Jobs (Table S3). For News-2/4/8/16 and TCGA, performance numbers were produced by us.
|
| 302 |
+
|
| 303 |
+
Table S3: Origins of the performance results reported in Table 3. Entries show the reference to the original report of the performance results, or ”ours” if we produced the results. n.r. $=$ not reported
|
| 304 |
+
|
| 305 |
+
<table><tr><td>Method</td><td>IHDP</td><td>Jobs</td></tr><tr><td>PM</td><td>ours</td><td>ours</td></tr><tr><td>+on X</td><td>ours</td><td>ours</td></tr><tr><td>+ MLP</td><td>ours</td><td>ours</td></tr><tr><td>kNN</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>PSMPM</td><td>n.r.</td><td>ours</td></tr><tr><td>PSMMI</td><td>ours</td><td>ours</td></tr><tr><td>RF</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>CF</td><td>(Shalit et al. 2 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>BART</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>GANITE</td><td>(Yoon et al. 2018)</td><td>(Yoon et al. 2018)</td></tr><tr><td>BNN</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>PD</td><td>n.r.</td><td>n.r.</td></tr><tr><td>TARNET</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>CFRNETwass</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td></td><td></td><td></td></tr><tr><td>CEVAE CMGP</td><td>(Louizos et al. 2017) (Yoon et al. 2018)</td><td>(Louizos et al. 2017) (Yoon et al. 2018)</td></tr></table>
|
parse/train/rkxt8oC9FQ/rkxt8oC9FQ_content_list.json
ADDED
|
@@ -0,0 +1,1479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
821,
|
| 10 |
+
172
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 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 |
+
237,
|
| 32 |
+
544,
|
| 33 |
+
252
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Learning representations for counterfactual inference from observational data is of high practical relevance for many domains, such as healthcare, public policy and economics. Counterfactual inference enables one to answer ”What if...?” questions, such as ”What would be the outcome if we gave this patient treatment $t _ { 1 } ? ^ { \\dag }$ . However, current methods for training neural networks for counterfactual inference on observational data are either overly complex, limited to settings with only two available treatment options, or both. Here, we present Perfect Match (PM), a method for training neural networks for counterfactual inference that is easy to implement, compatible with any architecture, does not add computational complexity or hyperparameters, and extends to any number of treatments. PM is based on the idea of augmenting samples within a minibatch with their propensity-matched nearest neighbours. Our experiments demonstrate that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes across several real-world and semi-synthetic datasets. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
268,
|
| 43 |
+
764,
|
| 44 |
+
463
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
489,
|
| 55 |
+
336,
|
| 56 |
+
506
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Estimating individual treatment effects1 (ITE) from observational data is an important problem in many domains. In medicine, for example, we would be interested in using data of people that have been treated in the past to predict what medications would lead to better outcomes for new patients (Shalit et al. (2017)). Similarly, in economics, we would for example want to determine how effective job programs would be based on results of past job training programs (LaLonde (1986)). ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
521,
|
| 66 |
+
823,
|
| 67 |
+
592
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "ITE estimation from observational data is difficult for two reasons: Firstly, we never observe all potential outcomes. If a patient is given a treatment to treat her symptoms, we never observe what would have happened if the patient was prescribed a potential alternative treatment in the same situation. Secondly, the assignment of cases to treatments is typically biased such that cases for which a given treatment is more effective are more likely to have received that treatment. The distribution of samples may therefore differ significantly between the treated group and the overall population. A supervised model na¨ıvely trained to minimise the factual error would overfit to the properties of the treated group, and thus not generalise well to the entire population. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
598,
|
| 77 |
+
825,
|
| 78 |
+
710
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "To address these problems, we introduce Perfect Match (PM), a simple method for training neural networks for counterfactual inference that extends to any number of treatment options. PM effectively controls for biased assignment of treatments in observational data by augmenting every sample within a minibatch with its closest matches by propensity score from the other treatment options. PM is easy to use with existing neural network architectures, simple to implement, and does not add any hyperparameters or computational complexity. We perform experiments that demonstrate that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes on several real-world and semi-synthetic datasets. Our experiments also show that PM is more robust to a high level of treatment assignment bias than existing methods. We believe that our simple and effective method for ITE estimation that extends to any number of treatment options could potentially make counterfactual inference more accessible, particularly for medical applications, where multiple available treatment options are the norm. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
717,
|
| 88 |
+
825,
|
| 89 |
+
883
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Contributions. This work contains the following contributions: ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
173,
|
| 98 |
+
103,
|
| 99 |
+
593,
|
| 100 |
+
118
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "• We introduce Perfect Match, a simple methodology for learning neural representations for counterfactual inference based on propensity score matching within minibatches. • We perform extensive experiments on semi-synthetic and real-world data in both the binary and multiple treatment setting. The experiments show that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
207,
|
| 109 |
+
130,
|
| 110 |
+
825,
|
| 111 |
+
207
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 RELATED WORK ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
176,
|
| 121 |
+
227,
|
| 122 |
+
344,
|
| 123 |
+
243
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "There are five main categories of approaches to learning to estimate ITEs: ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
176,
|
| 132 |
+
260,
|
| 133 |
+
655,
|
| 134 |
+
273
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "Matching-based Methods. Matching methods estimate the counterfactual outcome of a sample $X$ with respect to treatment $t$ using the factual outcomes of its nearest neighbours having received $t$ , with respect to a metric space. $\\mathbf { k }$ -Nearest-Neighbour (kNN) (Ho et al. (2007)) operates in the potentially high-dimensional covariate space, and therefore might suffer from the curse of dimensionality. Propensity Score Matching (PSM) (Rosenbaum & Rubin (1983)) matches on the scalar probability $p ( t | X )$ of $t$ given the covariates $X$ . PSM may require under- or oversampling the original data. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
290,
|
| 144 |
+
825,
|
| 145 |
+
375
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Adjusted Regression Methods. Adjusted regression models apply regression models with both treatment and covariates as input. The simplest case is Ordinary Least Squares, which can either be used for building one model, with the treatment as an input feature, or multiple separate models, one for each treatment (Kallus (2017)). More complex regression models, such as Treatment-Agnostic Representation Networks (TARNET) (Shalit et al. (2017)) may be used to capture non-linear relationships. Methods that make use of propensity scores, and a model of the outcomes, such as Propensity Dropout (PD) (Alaa et al. (2017)), are referred to as doubly robust (Funk et al. (2011)). ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
390,
|
| 155 |
+
825,
|
| 156 |
+
488
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "Tree-based Methods. Tree-based methods train many weak learners to build expressive ensemble models. Examples of tree-based methods are Bayesian Additive Regression Trees (BART) (Chipman et al. (2010); Chipman & McCulloch (2016)) and Causal Forests (CF) (Wager & Athey (2017)). ",
|
| 163 |
+
"bbox": [
|
| 164 |
+
176,
|
| 165 |
+
503,
|
| 166 |
+
821,
|
| 167 |
+
546
|
| 168 |
+
],
|
| 169 |
+
"page_idx": 1
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"type": "text",
|
| 173 |
+
"text": "Representation-balancing Methods. Representation-balancing methods seek to learn a highlevel representation for which the covariate distributions are balanced across treatment groups. Balancing Neural Networks (Johansson et al. (2016)) attempt to find such representations by minimising the discrepancy distance (Mansour et al. (2009)) between treatment groups. Counterfactual Regression Networks (CFRNET, Shalit et al. (2017)) use different metrics such as the Wasserstein distance. ",
|
| 174 |
+
"bbox": [
|
| 175 |
+
174,
|
| 176 |
+
563,
|
| 177 |
+
823,
|
| 178 |
+
632
|
| 179 |
+
],
|
| 180 |
+
"page_idx": 1
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"type": "text",
|
| 184 |
+
"text": "Distribution-modeling Methods. Generative Adversarial Nets for inference of Individualised Treatment Effects (GANITE) (Yoon et al. (2018)) address ITE estimation using counterfactual and ITE generators. GANITE uses a complex architecture with many hyperparameters and submodels that may be difficult to implement and optimise. Causal Effect Variational Autoencoders (CEVAEs) (Louizos et al. (2017)) use a latent variable modeling approach that is robust to hidden confounding, but does not address biased treatment assignment. Causal Multi-task Gaussian Processes (CMGP) (Alaa & van der Schaar (2017)) apply a multi-task Gaussian Process to ITE estimation. The optimisation of CMGPs involves a matrix inversion of $O ( n ^ { 3 } )$ complexity that limits their scalability. ",
|
| 185 |
+
"bbox": [
|
| 186 |
+
174,
|
| 187 |
+
648,
|
| 188 |
+
825,
|
| 189 |
+
761
|
| 190 |
+
],
|
| 191 |
+
"page_idx": 1
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"type": "text",
|
| 195 |
+
"text": "In contrast to existing methods, PM is a simple doubly robust method built on propensity score matching that can be used to train expressive non-linear neural network models for ITE estimation from observational data in settings with any number of treatments (Table 1). While the underlying idea behind PM is simple and effective, it has, to the best of our knowledge, not yet been explored. ",
|
| 196 |
+
"bbox": [
|
| 197 |
+
174,
|
| 198 |
+
767,
|
| 199 |
+
825,
|
| 200 |
+
823
|
| 201 |
+
],
|
| 202 |
+
"page_idx": 1
|
| 203 |
+
},
|
| 204 |
+
{
|
| 205 |
+
"type": "table",
|
| 206 |
+
"img_path": "images/8f820d01415352bb5b8dab9b8bbb260adf23d349d4bfffbb3646418be11bc96c.jpg",
|
| 207 |
+
"table_caption": [
|
| 208 |
+
"Table 1: Comparison of several representative state-of-the-art methods for counterfactual inference showing whether they were designed for $> 2$ treatments and their complexity of implementation. "
|
| 209 |
+
],
|
| 210 |
+
"table_footnote": [],
|
| 211 |
+
"table_body": "<table><tr><td></td><td>PM</td><td>CF</td><td>BART</td><td>BNN</td><td>CFRNET</td><td>PD</td><td>CEVAE</td><td>CMGP</td><td>GANITE</td></tr><tr><td>>2 Treatments</td><td>√</td><td>√</td><td>√</td><td>×</td><td>×</td><td>×</td><td>×</td><td>×</td><td>√</td></tr><tr><td>Complexity</td><td>Low</td><td>Low</td><td>Low</td><td>Low</td><td>Medium</td><td>Medium</td><td>High</td><td>High</td><td>High</td></tr></table>",
|
| 212 |
+
"bbox": [
|
| 213 |
+
173,
|
| 214 |
+
868,
|
| 215 |
+
825,
|
| 216 |
+
924
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 1
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "3 METHODOLOGY ",
|
| 223 |
+
"text_level": 1,
|
| 224 |
+
"bbox": [
|
| 225 |
+
176,
|
| 226 |
+
102,
|
| 227 |
+
341,
|
| 228 |
+
118
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 2
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "text",
|
| 234 |
+
"text": "Problem Setting. We consider a setting in which we are given $N$ observed samples $X$ , where each sample consists of $p$ covariates $x _ { i }$ with $i \\in [ 0 , p )$ . For each sample, the potential outcomes are represented as a vector $Y$ with $k$ entries $y _ { j }$ where each entry corresponds to the outcome when applying one treatment $t _ { j }$ out of the set of $k$ available treatments $T = \\{ \\bar { t } _ { 0 } , . . . , t _ { k - 1 } \\}$ with $j \\in [ 0 , k )$ . As training data, we receive observed samples $X$ and their factual outcomes $y _ { j }$ when applying one treatment $t _ { j }$ . The set of available treatments can contain two or more treatment options. We refer to the special case of two available treatment options as the binary treatment setting. Given the observational training data with factual outcomes, we wish to train a predictive model that is able to accurately produce a predicted potential outcomes vector $\\hat { Y }$ with $k$ entries $\\hat { y } _ { j }$ . In literature, this setting is known as the Rubin-Neyman potential outcomes framework (Rubin (2005)). ",
|
| 235 |
+
"bbox": [
|
| 236 |
+
173,
|
| 237 |
+
132,
|
| 238 |
+
825,
|
| 239 |
+
275
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 2
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "Precision in Estimation of Heterogenous Effect (PEHE). The primary metric that we optimise for when training models to estimate ITE is the PEHE (Hill (2011)). In the binary setting, the PEHE measures the ability of a predictive model to estimate the difference in effect between two treatments $t _ { 0 }$ and $t _ { 1 }$ for samples $X$ . To compute the PEHE, we measure the mean squared error between the true difference in effect $y _ { 1 } ( n ) - y _ { 0 } ( n )$ , drawn from the noiseless underlying outcome distributions $\\mu _ { 1 }$ and $\\mu _ { 0 }$ , and the predicted difference in effect $\\hat { y } _ { 1 } ( n ) - \\hat { y } _ { 0 } ( n )$ indexed by $n$ over $N$ samples: ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
289,
|
| 249 |
+
825,
|
| 250 |
+
375
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 2
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "equation",
|
| 256 |
+
"img_path": "images/3a7e5a1fb9d969a958c5a62216beb02bf3c1d595c2a3f50d8330427a58036719.jpg",
|
| 257 |
+
"text": "$$\n\\epsilon _ { \\mathrm { P E H E } } = \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } \\Big ( \\mathbb { E } _ { y _ { j } ( n ) \\sim \\mu _ { j } ( n ) } [ y _ { 1 } ( n ) - y _ { 0 } ( n ) ] - [ \\hat { y } _ { 1 } ( n ) - \\hat { y } _ { 0 } ( n ) ] \\Big ) ^ { 2 }\n$$",
|
| 258 |
+
"text_format": "latex",
|
| 259 |
+
"bbox": [
|
| 260 |
+
272,
|
| 261 |
+
377,
|
| 262 |
+
723,
|
| 263 |
+
420
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "When the underlying noiseless distributions $\\mu _ { j }$ are not known, the true difference in effect $y _ { 1 } ( n ) -$ $y _ { 0 } ( n )$ can be estimated using the noisy ground truth outcomes $y _ { i }$ (Appendix A). As a secondary metric, we consider the error $\\epsilon _ { \\mathrm { A T E } }$ in estimating the average treatment effect (ATE) (Hill (2011)). The ATE measures the average difference in effect across the whole population (Appendix B). The ATE is not as important as PEHE for models optimised for ITE estimation, but can be a useful indicator of how well an ITE estimator performs at comparing two treatments across the entire population. We can neither calculate $\\epsilon _ { \\mathrm { P E H E } }$ nor $\\epsilon _ { \\mathrm { A T E } }$ without knowing the outcome generating process. ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
420,
|
| 273 |
+
825,
|
| 274 |
+
518
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Multiple Treatments. Both \u000fPEHE and $\\epsilon _ { \\mathrm { A T E } }$ can be trivially extended to multiple treatments by considering the average PEHE and ATE between every possible pair of treatments. Note that we lose the information about the precision in estimating ITE between specific pairs of treatments by averaging over all $\\binom { k } { 2 }$ pairs. However, one can inspect the pair-wise PEHE to get the whole picture. ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
176,
|
| 283 |
+
532,
|
| 284 |
+
823,
|
| 285 |
+
590
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "equation",
|
| 291 |
+
"img_path": "images/805bf309977a86718f1130d7f01e8e1483ed4a6927c4a9f8215b97994fb408aa.jpg",
|
| 292 |
+
"text": "$$\n\\hat { \\epsilon } _ { \\mathrm { m P E H E } } = \\frac { 1 } { \\binom { k } { 2 } } \\sum _ { i = 0 } ^ { k - 1 } \\sum _ { j = 0 } ^ { i - 1 } \\hat { \\epsilon } _ { \\mathrm { P E H E } , i , j } \\qquad ( 2 ) \\qquad \\hat { \\epsilon } _ { \\mathrm { m A T E } } = \\frac { 1 } { \\binom { k } { 2 } } \\sum _ { i = 0 } ^ { k - 1 } \\sum _ { j = 0 } ^ { i - 1 } \\hat { \\epsilon } _ { \\mathrm { A T E } , i , j }\n$$",
|
| 293 |
+
"text_format": "latex",
|
| 294 |
+
"bbox": [
|
| 295 |
+
232,
|
| 296 |
+
595,
|
| 297 |
+
758,
|
| 298 |
+
642
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "Perfect Match (PM). We consider fully differentiable neural network models optimised via minibatch stochastic gradient descent to predict potential outcomes $\\hat { Y }$ given a sample $X$ . To address the treatment selection bias inherent in observational data, we propose the use of a training methodology based on propensity score matching. A propensity score is the conditional probability $p ( t | X )$ of a given sample $X$ receiving a specific treatment $t$ (Rosenbaum & Rubin (1983); Ho et al. (2007)). The propensity score is a balancing score, meaning that if the distribution of propensity scores across treatment groups is the same, then the distribution of their covariates $x _ { i }$ is also guaranteed to be the same across treatment groups (Ho et al. (2007)). By matching samples with their nearest neighbours by propensity score we can, in the optimal case, balance the covariates $x _ { i }$ . This breaks the dependence of treatment assignment on $X$ if all relevant covariates are observed, and therefore effectively removes any potential treatment assignment bias (Ho et al. (2007)). However, in practice, we do not have access to the true treatment assignment probability $p ( t | X )$ . We therefore have to estimate the propensity score $p ( t | X )$ by training a predictive model to predict the likelihood of receiving a treatment $t$ for a given sample $X$ . Note that propensity scores are not the only balancing score (Ho et al. (2007)). For example, $X$ itself is another balancing score. However, matching on the onedimensional propensity score is preferable because it avoids the curse of dimensionality that would be associated with matching on the potentially high-dimensional $X$ directly. In PM, we match every sample within a minibatch with its nearest neighbours by propensity score from all other treatments (Algorithm 1, more details in Appendix C), taken from the training set. Every minibatch the model is trained on therefore contains the same number of samples for each treatment group, and the covariates $x _ { i }$ of each treatment group are approximately balanced on average. The intuition behind matching on the minibatch level, rather than the dataset level (Ho et al. (2011)), is that it reduces the variance during training which in turn leads to better expected performance for counterfactual inference (Appendix D). In this sense, PM can be seen as a minibatch sampling strategy (Csiba & Richtarik (2018)) specifically designed to improve learning for counterfactual inference. ´ ",
|
| 305 |
+
"bbox": [
|
| 306 |
+
173,
|
| 307 |
+
654,
|
| 308 |
+
825,
|
| 309 |
+
921
|
| 310 |
+
],
|
| 311 |
+
"page_idx": 2
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"type": "text",
|
| 315 |
+
"text": "",
|
| 316 |
+
"bbox": [
|
| 317 |
+
173,
|
| 318 |
+
50,
|
| 319 |
+
825,
|
| 320 |
+
136
|
| 321 |
+
],
|
| 322 |
+
"page_idx": 3
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"type": "text",
|
| 326 |
+
"text": "Algorithm 1 Batch Augmentation using Perfect Match (PM). After augmentation, each batch contains an equal number of samples from each treatment group and the covariates $x _ { i }$ across all treatment groups are approximately balanced. ",
|
| 327 |
+
"bbox": [
|
| 328 |
+
173,
|
| 329 |
+
150,
|
| 330 |
+
825,
|
| 331 |
+
193
|
| 332 |
+
],
|
| 333 |
+
"page_idx": 3
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"type": "text",
|
| 337 |
+
"text": "Input: Batch of $B$ random samples $X _ { \\mathrm { b a t c h } }$ with assigned treatments $t$ , training set $X _ { \\mathrm { t r a i n } }$ of $N$ samples, number of treatment options $k$ , propensity score estimator $E _ { \\mathrm { P S } }$ to calculate the probability $\\bar { p } ( t | X )$ of treatment assigned given a sample $X$ ",
|
| 338 |
+
"bbox": [
|
| 339 |
+
176,
|
| 340 |
+
196,
|
| 341 |
+
820,
|
| 342 |
+
239
|
| 343 |
+
],
|
| 344 |
+
"page_idx": 3
|
| 345 |
+
},
|
| 346 |
+
{
|
| 347 |
+
"type": "text",
|
| 348 |
+
"text": "Output: Batch $X _ { \\mathrm { o u t } }$ consisting of $B \\times k$ matched samples ",
|
| 349 |
+
"bbox": [
|
| 350 |
+
173,
|
| 351 |
+
239,
|
| 352 |
+
562,
|
| 353 |
+
252
|
| 354 |
+
],
|
| 355 |
+
"page_idx": 3
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"type": "table",
|
| 359 |
+
"img_path": "images/f2fff6186537b3065f72f8aeebba61f2acfcb4132605c67721765fd21e94f871.jpg",
|
| 360 |
+
"table_caption": [],
|
| 361 |
+
"table_footnote": [],
|
| 362 |
+
"table_body": "<table><tr><td colspan=\"2\">1: procedurePERFECT_MATCH:</td></tr><tr><td>2:</td><td>Xout ←Empty</td></tr><tr><td>3:</td><td>for sample X with treatment t in Xbatch do</td></tr><tr><td>4:</td><td>p(t|X)←Eps(X)</td></tr><tr><td>5:</td><td>fori=O tok-1do</td></tr><tr><td>6:</td><td>ifi≠t then</td></tr><tr><td>7:</td><td>psi←p(t|X)i</td></tr><tr><td>8:</td><td>Xmatched ← get closest match to propensity score psi with treatment i from Xtrain</td></tr><tr><td>9:</td><td>Add sample Xmatched to Xout</td></tr><tr><td>10:</td><td>Add X to Xout</td></tr><tr><td></td><td></td></tr></table>",
|
| 363 |
+
"bbox": [
|
| 364 |
+
178,
|
| 365 |
+
255,
|
| 366 |
+
825,
|
| 367 |
+
398
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "Model Selection. Besides accounting for the treatment assignment bias, the other major issue in learning for counterfactual inference from observational data is that, given multiple models, it is not trivial to decide which one to select. The root problem is that we do not have direct access to the true error in estimating counterfactual outcomes, only the error in estimating the observed factual outcomes. This makes it difficult to perform parameter and hyperparameter optimisation, as we do not know which models are better than others for counterfactual inference on a given dataset. To rectify this problem, we use a nearest neighbour approximation $\\hat { \\epsilon } _ { \\mathrm { N N - P E H E } }$ of the $\\boldsymbol { \\hat { \\epsilon } } _ { \\mathrm { P E H E } }$ metric for the binary (Shalit et al. (2017)) and multiple treatment settings for model selection. The \u000fˆNN-PEHE estimates the treatment effect of a given sample by substituting the true counterfactual outcome with the outcome $y _ { j }$ from a respective nearest neighbour NN matched on $X$ using the Euclidean distance. ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
173,
|
| 376 |
+
420,
|
| 377 |
+
825,
|
| 378 |
+
560
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "equation",
|
| 384 |
+
"img_path": "images/e435c405fe5514fbf9ef407e0f4fd87c0a1f5c41f3ae7deda0ee9294953906cf.jpg",
|
| 385 |
+
"text": "$$\n\\hat { \\epsilon } _ { \\mathrm { N N - P E H E } } = \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } \\Big ( [ y _ { 1 } ( \\mathbf { N N } ( n ) ) - y _ { 0 } ( \\mathbf { N N } ( n ) ) ] - [ \\hat { y } _ { 1 } ( n ) - \\hat { y } _ { 0 } ( n ) ] \\Big ) ^ { 2 }\n$$",
|
| 386 |
+
"text_format": "latex",
|
| 387 |
+
"bbox": [
|
| 388 |
+
269,
|
| 389 |
+
559,
|
| 390 |
+
725,
|
| 391 |
+
601
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "Analogously to Equations (2) and (3), the \u000fˆNN-PEHE metric can be extended to the multiple treatment setting by considering the mean $\\hat { \\epsilon } _ { \\mathrm { N N - P E H E } }$ between all $\\binom { k } { 2 }$ possible pairs of treatments (Appendix E). ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
176,
|
| 400 |
+
599,
|
| 401 |
+
825,
|
| 402 |
+
631
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "Model Architecture. No different from other applications, the chosen architecture plays a key role in the performance of neural networks when attempting to learn representations for counterfactual inference. Shalit et al. (2017) claimed that the na¨ıve approach of appending the treatment index $t _ { j }$ may perform poorly if $X$ is high-dimensional, because the influence of $t _ { j }$ on the hidden layers may be lost during training. Shalit et al. (2017) subsequently introduced the TARNET architecture to rectify this issue. Since the original TARNET was limited to the binary treatment setting, we extended the TARNET architecture to the multiple treatment setting (Figure 1). We did so by using $k$ head networks, one for each treatment option over a set of shared base layers, each with $L$ layers. In TARNET, the $j$ th head network is only trained on samples from treatment $t _ { j }$ . The shared layers are trained on all samples. By using a head network for each treatment, we ensure $t _ { j }$ maintains an appropriate degree of influence on the network output at all points during training. ",
|
| 409 |
+
"bbox": [
|
| 410 |
+
173,
|
| 411 |
+
643,
|
| 412 |
+
825,
|
| 413 |
+
797
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "image",
|
| 419 |
+
"img_path": "images/df697ae164c15f61e6243c85e1aee1e920e1c2b644a0d3442482f69f5b1c439e.jpg",
|
| 420 |
+
"image_caption": [
|
| 421 |
+
"Figure 1: The TARNET architecture with $k$ heads for the multiple treatment setting. "
|
| 422 |
+
],
|
| 423 |
+
"image_footnote": [],
|
| 424 |
+
"bbox": [
|
| 425 |
+
377,
|
| 426 |
+
808,
|
| 427 |
+
643,
|
| 428 |
+
925
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 3
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "table",
|
| 434 |
+
"img_path": "images/3afda24802c480ee6b50775178355e6a516c54e9f816f83c99cef04f13bcf955.jpg",
|
| 435 |
+
"table_caption": [
|
| 436 |
+
"Table 2: Comparisons of the datasets used in our experiments. We evaluate on three semi-synthetic datasets with varying numbers of treatments and samples, and a real-world clinical trial dataset. "
|
| 437 |
+
],
|
| 438 |
+
"table_footnote": [],
|
| 439 |
+
"table_body": "<table><tr><td>Dataset</td><td>Type</td><td># Samples</td><td>#Features</td><td># Treatments</td><td>Counterfactuals</td></tr><tr><td>IHDP</td><td>semi-synthetic</td><td>747</td><td>25</td><td>2</td><td>available</td></tr><tr><td>Jobs</td><td>real-world</td><td>3212</td><td>7</td><td>2</td><td>not available</td></tr><tr><td>News</td><td>semi-synthetic</td><td>5000</td><td>2870</td><td>2/4/8/16</td><td>available</td></tr><tr><td>TCGA</td><td>semi-synthetic</td><td>9659</td><td>20531</td><td>4</td><td>available</td></tr></table>",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
83,
|
| 443 |
+
826,
|
| 444 |
+
162
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 4
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "4 EXPERIMENTS ",
|
| 451 |
+
"text_level": 1,
|
| 452 |
+
"bbox": [
|
| 453 |
+
174,
|
| 454 |
+
167,
|
| 455 |
+
328,
|
| 456 |
+
184
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 4
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "Our experiments aimed to answer the following questions: ",
|
| 463 |
+
"bbox": [
|
| 464 |
+
173,
|
| 465 |
+
199,
|
| 466 |
+
557,
|
| 467 |
+
214
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 4
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "1 What is the comparative performance of PM in inferring counterfactual outcomes in the \nbinary and multiple treatment setting compared to existing state-of-the-art methods? \n2 Does model selection by NN-PEHE outperform selection by factual MSE? \n3 How does the relative number of matched samples within a minibatch affect performance? \n4 How well does PM cope with an increasing treatment assignment bias in the observed data? \n5 How does the presence of hidden confounders influence the performance of PM? \n6 How do the learning dynamics of minibatch matching compare to dataset-level matching? ",
|
| 474 |
+
"bbox": [
|
| 475 |
+
215,
|
| 476 |
+
226,
|
| 477 |
+
825,
|
| 478 |
+
324
|
| 479 |
+
],
|
| 480 |
+
"page_idx": 4
|
| 481 |
+
},
|
| 482 |
+
{
|
| 483 |
+
"type": "text",
|
| 484 |
+
"text": "4.1 DATASETS ",
|
| 485 |
+
"text_level": 1,
|
| 486 |
+
"bbox": [
|
| 487 |
+
174,
|
| 488 |
+
340,
|
| 489 |
+
287,
|
| 490 |
+
354
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 4
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "We performed experiments on four real-world and semi-synthetic datasets (Table 2) with binary and multiple treatment options in order to gain a better understanding of the empirical properties of PM. ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
176,
|
| 499 |
+
367,
|
| 500 |
+
823,
|
| 501 |
+
395
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 4
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "Infant Health and Development Program (IHDP). The IHDP dataset (Hill (2011)) contains data from a randomised study on the impact of specialist visits on the cognitive development of children, and consists of 747 children with 25 covariates describing properties of the children and their mothers. Children that did not receive specialist visits were part of a control group. The outcomes were simulated using the NPCI package from Dorie (2016). The IHDP dataset is biased because the treatment groups had a biased subset of the treated population removed (Shalit et al. (2017)). We used the same simulated outcomes2 as Shalit et al. (2017). ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
410,
|
| 511 |
+
825,
|
| 512 |
+
508
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 4
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "Jobs. The Jobs dataset (LaLonde (1986)) is a blend of data from randomised and observational studies on the effect of professional training programs on unemployment, and is a commonly used benchmark dataset for counterfactual inference in the binary setting. Each sample consisted of demographic covariates, such as age, gender and previous income, and the treatment was enrolment in a job training program. All samples that were not enrolled in a training program were considered control cases. The task was to predict the potential unemployment given the covariates and treatment. We used the same feature and sample set as described in Dehejia & Wahba (2002); Smith & Todd (2005); Shalit et al. (2017). A subgroup of the data was randomised and we therefore were able to estimate the ground truth average treatment effect on the treated (ATT) (Shalit et al. (2017)). Treatment assignment in Jobs is biased because parts of the data come from an observational study. ",
|
| 519 |
+
"bbox": [
|
| 520 |
+
173,
|
| 521 |
+
523,
|
| 522 |
+
825,
|
| 523 |
+
662
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "image",
|
| 529 |
+
"img_path": "images/9918fa2b90357bcf89b69a749b3ec1a315ad45bc7e9f7de7ce33b085ecab1308.jpg",
|
| 530 |
+
"image_caption": [
|
| 531 |
+
"Figure 2: Correlation analysis of the real PEHE (y-axis) with the mean squared error (MSE; left) and the nearest neighbour approximation of the precision in estimation of heterogenous effect (NN-PEHE; right) across over $2 0 ^ { \\circ } 0 0 0$ model evaluations on the validation set of IHDP. Scatterplots show a subsample of $1 ^ { \\cdot } 4 0 0$ data points. $\\rho$ indicates the Pearson correlation. NN-PEHE correlates significantly better with PEHE than MSE. "
|
| 532 |
+
],
|
| 533 |
+
"image_footnote": [],
|
| 534 |
+
"bbox": [
|
| 535 |
+
174,
|
| 536 |
+
703,
|
| 537 |
+
485,
|
| 538 |
+
808
|
| 539 |
+
],
|
| 540 |
+
"page_idx": 4
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"type": "image",
|
| 544 |
+
"img_path": "images/dbb418865d647f6219d58af93434042418c17613b1162905fddcc533dee487a3.jpg",
|
| 545 |
+
"image_caption": [
|
| 546 |
+
"Figure 3: Change in error (y-axes) in terms of precision in estimation of heterogenous effect (PEHE) and average treatment effect (ATE) when increasing the percentage of matches in each minibatch ( $\\mathbf { \\dot { x } }$ -axis). Symbols correspond to the mean value of $\\hat { \\epsilon } _ { \\mathrm { A T E } }$ (red) and $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ (blue) on the test set of News-8 across 50 repeated runs with new outcomes (lower is better). Performance improves with more matches added. "
|
| 547 |
+
],
|
| 548 |
+
"image_footnote": [],
|
| 549 |
+
"bbox": [
|
| 550 |
+
509,
|
| 551 |
+
702,
|
| 552 |
+
820,
|
| 553 |
+
813
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 4
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "image",
|
| 559 |
+
"img_path": "images/0e66495e0af1f70fbbb9c30fe17567012caef29fd2f299eb4bb1e2a7bb301f2e.jpg",
|
| 560 |
+
"image_caption": [
|
| 561 |
+
"Figure 4: Comparison of several state-of-the-art methods for counterfactual inference on the test set of the News-8 dataset when varying the treatment assignment imbalance $\\kappa$ $\\mathbf { \\dot { x } }$ -axis), i.e. how much the treatment assignment is biased towards more effective treatments. Symbols correspond to the mean value of $\\hat { \\epsilon } _ { \\mathrm { A T E } }$ (left) and $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ (right) across 50 repeated runs with new outcomes (lower is better). The shaded area indicates the standard deviation. PM handles an increasing treatment assignment bias $\\kappa$ better than existing state-of-the-art methods in terms of both $\\hat { \\epsilon } _ { \\mathrm { A T E } }$ and $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ . "
|
| 562 |
+
],
|
| 563 |
+
"image_footnote": [],
|
| 564 |
+
"bbox": [
|
| 565 |
+
181,
|
| 566 |
+
60,
|
| 567 |
+
815,
|
| 568 |
+
174
|
| 569 |
+
],
|
| 570 |
+
"page_idx": 5
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"type": "text",
|
| 574 |
+
"text": "News. The News dataset was first proposed as a benchmark for counterfactual inference by Johansson et al. (2016) and consists of 5000 randomly sampled news articles from the NY Times corpus3. The News dataset contains data on the opinion of media consumers on news items. The samples $X$ represent news items consisting of word counts $x _ { i } \\in \\mathbb { N }$ , the outcome $y _ { j } \\in \\mathbb { R }$ is the reader’s opinion of the news item, and the $k$ available treatment options represent various devices that could be used for viewing, e.g. smartphone, tablet, desktop, television or others (Johansson et al. (2016)). We extended the original dataset specification in (Johansson et al. (2016)) to enable the simulation of arbitrary numbers of viewing devices. To model that consumers prefer to read certain media items on specific viewing devices, we train a topic model on the whole NY Times corpus and define $z ( X )$ as the topic distribution of news item $X$ . We then randomly pick $k + 1$ centroids in topic space, with $k$ centroids $z _ { j }$ per viewing device and one control centroid $z _ { c }$ . We assigned a random Gaussian outcome distribution with mean $\\mu _ { j } \\sim \\mathcal { N } ( 0 . 4 5 , 0 . 1 5 )$ and standard deviation $\\sigma _ { j } \\sim \\mathcal { N } ( 0 . 1 , 0 . 0 5 )$ to each centroid. For each sample, we drew ideal potential outcomes from that Gaussian outcome distribution $\\tilde { y } _ { j } \\sim \\mathcal { N } ( \\mu _ { j } , \\sigma _ { j } ) + \\epsilon$ with $\\epsilon \\sim \\mathcal { N } ( 0 , 0 . 1 5 )$ . We then defined the unscaled potential outcomes $\\bar { y _ { j } } = \\tilde { y } _ { j } * \\left[ \\mathbf { D } ( z ( X ) , z _ { j } ) + \\mathbf { D } ( z ( X ) , z _ { c } ) \\right]$ as the ideal potential outcomes $\\tilde { y } _ { j }$ weighted by the sum of distances to centroids $z _ { j }$ and the control centroid $z _ { c }$ using the Euclidean distance as distance D. We assigned the observed treatment $t$ using $t | x \\sim \\mathrm { B e r n } ( \\operatorname { s o f t m a x } ( \\kappa \\bar { y _ { j } } ) )$ with a treatment assignment bias coefficient $\\kappa$ , and the true potential outcome $y _ { j } = C y _ { j }$ as the unscaled potential outcomes $\\bar { y _ { j } }$ scaled by a coefficient $C = 5 0$ . We used four different variants of this dataset with $k = 2$ , 4, 8, and 16 viewing devices, and $\\kappa = 1 0$ , 10, 10, and 7, respectively. Higher values of $\\kappa$ indicate a higher expected treatment assignment bias depending on $\\bar { y _ { j } }$ . $\\kappa = 0$ indicates no assignment bias. ",
|
| 575 |
+
"bbox": [
|
| 576 |
+
173,
|
| 577 |
+
284,
|
| 578 |
+
825,
|
| 579 |
+
577
|
| 580 |
+
],
|
| 581 |
+
"page_idx": 5
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"type": "text",
|
| 585 |
+
"text": "The Cancer Genomic Atlas (TCGA). The TCGA project collected gene expression data from various types of cancers in 9659 individuals (Weinstein et al. (2013)). There were four available clinical treatment options: (1) medication, (2) chemotherapy, (3) surgery, or (4) both surgery and chemotherapy. We used a synthetic outcome function that simulated the risk of cancer recurrence after receiving either of the treatment options based on the real-world gene expression data. Before further processing, we standardised the gene expression data using the mean and standard deviations of gene expression at each gene locus for normal tissue in the training set. To produce the potential outcomes $Y$ , we first selected $k + 1$ gene expression phenotypes as representative phenotypes: One phenotype $X _ { j }$ for each treatment option and one as a control phenotype $X _ { c }$ . Analogously to the News dataset, we assigned a random Gaussian outcome distribution with mean $\\mu _ { j } \\sim \\bar { \\mathcal { N } } ( 0 . 4 \\bar { 5 } , 0 . 1 5 )$ and standard deviation $\\sigma _ { t } \\sim \\mathcal { N } ( 0 . 1 , 0 . 0 5 )$ to each phenotype. For each sample, we drew ideal potential outcomes from that Gaussian outcome distribution $\\bar { \\tilde { y } } _ { j } \\sim \\mathcal N ( \\mu _ { j } , \\sigma _ { j } ) + \\bar { \\epsilon }$ with $\\epsilon \\sim \\mathcal { N } ( 0 , 0 . \\bar { 1 5 } )$ . We then defined the unscaled potential outcomes $\\bar { y _ { j } } = \\tilde { y } _ { j } * \\left[ \\mathbf { D } ( X , X _ { t _ { j } } ) + \\mathbf { D } ( X , X _ { c } ) \\right]$ as the ideal potential outcomes $\\tilde { y } _ { j }$ weighted by the sum of distances to phenotype $X _ { t _ { j } }$ and the control phenotype $X _ { c }$ using the cosine similarity as distance metric D. We assigned the observed treatment $t$ using $t | x \\sim \\mathrm { B e r n } ( \\operatorname { s o f t m a x } ( \\kappa \\bar { y _ { j } } ) )$ with a treatment assignment bias coefficient $\\kappa = 1 0$ , and the true potential outcome $y _ { j } = C y _ { j }$ as the unscaled potential outcomes $\\bar { y _ { j } }$ scaled by a coefficient $C = 5 0$ . ",
|
| 586 |
+
"bbox": [
|
| 587 |
+
173,
|
| 588 |
+
593,
|
| 589 |
+
825,
|
| 590 |
+
832
|
| 591 |
+
],
|
| 592 |
+
"page_idx": 5
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"type": "text",
|
| 596 |
+
"text": "All datasets with the exception of IHDP were split into a training $( 6 3 \\% )$ , validation $( 2 7 \\% )$ and test set ( $10 \\%$ of samples). For IHDP we used exactly the same splits as previously used by Shalit et al. (2017). We repeated experiments on IHDP, Jobs, News and TCGA 1000, 10, 50, and 5 times, respectively. We reassigned outcomes and treatments with a new random seed for each repetition. ",
|
| 597 |
+
"bbox": [
|
| 598 |
+
174,
|
| 599 |
+
838,
|
| 600 |
+
825,
|
| 601 |
+
893
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 5
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "table",
|
| 607 |
+
"img_path": "images/e3f0f5a85d9c5650511c8499d74ee85cea43a8e26a18683376faa7d59ab49cca.jpg",
|
| 608 |
+
"table_caption": [
|
| 609 |
+
"Table 3: Comparison of methods for counterfactual inference with two available treatment options on IHDP, Jobs and News-2. We report the mean value $\\pm$ the standard deviation of $\\sqrt { \\epsilon _ { \\mathrm { P E H E } } }$ , \u000fATE, $R _ { \\mathrm { P o l } }$ and $\\epsilon _ { \\mathrm { A T T } }$ on the test sets over a number of repeated runs. Where available we list the numbers reported by the original authors. n.r. $=$ not reported. ${ \\dag \\mathbf { \\alpha } } _ { = }$ significantly different from PM $( \\alpha < 0 . 0 5 )$ "
|
| 610 |
+
],
|
| 611 |
+
"table_footnote": [],
|
| 612 |
+
"table_body": "<table><tr><td></td><td colspan=\"2\">IHDP (1000 repeats)</td><td colspan=\"2\">Jobs (10 repeats)</td><td colspan=\"2\">News-2 (50 repeats)</td></tr><tr><td>Method</td><td>√EPEHE</td><td>EATE</td><td>RPo1(π)</td><td>EATT</td><td>VePEHE</td><td>CATE</td></tr><tr><td>PM</td><td>0.84 ± 0.61</td><td>0.24±0.20</td><td>0.18 ± 0.10</td><td>0.16 ± 0.07</td><td>16.76 ± 1.26</td><td>3.99 ± 1.01</td></tr><tr><td>+on X</td><td>0.81 ± 0.57</td><td>0.24 ± 0.20</td><td>0.23 ± 0.11</td><td>0.19 ± 0.09</td><td>17.06 ± 1.22</td><td>4.14 ± 1.27</td></tr><tr><td>+MLP</td><td>0.83 ± 0.57</td><td>0.23 ± 0.20</td><td>0.19 ± 0.12</td><td>0.16 ± 0.07</td><td>+ 18.38 ± 1.46</td><td>+ 5.90 ± 2.07</td></tr><tr><td>kNN</td><td>4.1 1±0.2</td><td>0.79± 0.05</td><td>+ 0.26±0.0</td><td>0.13 ± 0.05</td><td>† 18.14 ± 1.64</td><td>+7.83 ± 2.55</td></tr><tr><td>PSMPM</td><td>n.r.</td><td>n.r.</td><td>0.18 ± 0.12</td><td>0.18 ± 0.09</td><td>† 17.49 ± 1.49</td><td>† 5.02 ± 2.34</td></tr><tr><td>PSMMI</td><td>+ 2.70 ± 3.85</td><td>+ 0.49 ± 0.81</td><td>0.20 ± 0.09</td><td>+ 0.42 ± 0.22</td><td>+ 17.40 ± 1.30</td><td>+ 4.89 ± 2.39</td></tr><tr><td>RF</td><td>6.6 ±0.3</td><td>† 0.96 ± 0.06</td><td>† 0.28 ± 0.0</td><td>+ 0.09 ± 0.04</td><td>† 17.39 ± 1.24</td><td>† 5.50 ± 1.20</td></tr><tr><td>CF</td><td>3.8 ±0.2</td><td>+ 0.40 ±0.03</td><td>0.20±0.0</td><td>+ 0.07 ± 0.03</td><td>† 18.36 ± 1.73</td><td>+ 8.48± 2.46</td></tr><tr><td>BART</td><td>2.3 ±0.1</td><td>+ 0.34± 0.02</td><td>+ 0.25 ± 0.0</td><td>+ 0.08±0.03</td><td>18.53 ± 2.02</td><td>† 5.40 ± 1.53</td></tr><tr><td>GANITE</td><td>2.4 ±0.4</td><td>+ 0.49± 0.05</td><td>0.14 ± 0.01</td><td>+ 0.06± 0.03</td><td>+ 18.28 ± 1.66</td><td>+ 4.65 ± 2.12</td></tr><tr><td>BNN</td><td>+ 2.1 ±0.1</td><td>+ 0.42± 0.03</td><td>0.24 ± 0.0</td><td>† 0.09 ± 0.04</td><td>n.r.</td><td>n.r.</td></tr><tr><td>PD</td><td>n.r.</td><td>n.r.</td><td>n.r.</td><td>n.r.</td><td>† 17.52 ± 1.62</td><td>4.69 ± 3.17</td></tr><tr><td>TARNET</td><td>+ 0.95 ± 0.02</td><td>+ 0.28 ± 0.01</td><td>0.21± 0.0</td><td>0.11 ± 0.04</td><td>17.17 ± 1.25</td><td>+ 4.58 ± 1.29</td></tr><tr><td>CFRNETwass</td><td>+ 0.76± 0.02</td><td>t 0.27 ± 0.01</td><td>0.21± 0.0</td><td>+ 0.09 ± 0.03</td><td>16.93 ± 1.12</td><td>† 4.54 ± 1.48</td></tr><tr><td>CEVAE</td><td>+ 2.7 ±0.1</td><td>+ 0.46 ± 0.02</td><td>+ 0.26 ±0.0</td><td>+ 0.03 ± 0.01</td><td>n.r.</td><td>n.r.</td></tr><tr><td>CMGP</td><td>+ 0.77 ± 0.11</td><td>+ 0.13 ± 0.12</td><td>0.24± 0.05</td><td>+ 0.09 ± 0.07</td><td>n.r.</td><td>n.r.</td></tr></table>",
|
| 613 |
+
"bbox": [
|
| 614 |
+
173,
|
| 615 |
+
133,
|
| 616 |
+
823,
|
| 617 |
+
421
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 6
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "4.2 EXPERIMENTAL SETUP ",
|
| 624 |
+
"text_level": 1,
|
| 625 |
+
"bbox": [
|
| 626 |
+
176,
|
| 627 |
+
448,
|
| 628 |
+
375,
|
| 629 |
+
463
|
| 630 |
+
],
|
| 631 |
+
"page_idx": 6
|
| 632 |
+
},
|
| 633 |
+
{
|
| 634 |
+
"type": "text",
|
| 635 |
+
"text": "Models. We evaluated PM, ablations, baselines, and all relevant state-of-the-art methods: kNN (Ho et al. (2007)), BART (Chipman et al. (2010); Chipman & McCulloch (2016)), Random Forests (RF) (Breiman (2001)), CF (Wager & Athey (2017)), GANITE (Yoon et al. (2018)), Balancing Neural Network (BNN) (Johansson et al. (2016)), TARNET (Shalit et al. (2017)), Counterfactual Regression Network using the Wasserstein regulariser (CFRNETWass) (Shalit et al. (2017)), CEVAE (Louizos et al. (2017)), CMGP (Alaa & van der Schaar (2017)), and PD (Alaa et al. (2017)). We trained a Support Vector Machine (SVM) with probability estimation (Pedregosa et al. (2011)) to estimate $p ( t | X )$ for PM on the training set. We also evaluated preprocessing the entire training set with PSM using the same matching routine as PM $( \\mathrm { P S M } _ { \\mathrm { P M } } )$ and the ”MatchIt” package $( \\mathrm { P S M } _ { \\mathrm { M I } }$ , Ho et al. (2011)) before training a TARNET (Appendix F). In addition, we trained an ablation of PM where we matched on the covariates $X$ $\\ l ^ { \\prime } + \\ l \\mathrm { o n } X )$ directly, if $X$ was low-dimensional $\\left( p < 2 0 0 \\right)$ ), and on a 50-dimensional representation of $X$ obtained via principal components analysis (PCA), if $X$ was high-dimensional, instead of on the propensity score. We also evaluated PM with a multi-layer perceptron $( + \\mathrm { M L P } )$ that received the treatment index $t _ { j }$ as an input instead of using a TARNET. ",
|
| 636 |
+
"bbox": [
|
| 637 |
+
173,
|
| 638 |
+
482,
|
| 639 |
+
825,
|
| 640 |
+
676
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 6
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "image",
|
| 646 |
+
"img_path": "images/8bff40e945252228b1e3394856192f4b1553bd7e163b4cc04175983d61d536e5.jpg",
|
| 647 |
+
"image_caption": [
|
| 648 |
+
"Figure 5: Comparison of several state-of-the-art methods for counterfactual inference on the test set of the TCGA dataset when varying the percentage of hidden confounding $\\mathbf { \\bar { X } }$ -axis), i.e. what percentage of the features that were relevant for treatment assignment are visible to the model. Symbols correspond to the mean value of $\\hat { \\epsilon } _ { \\mathrm { A T E } }$ (left) and $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ (right) across 5 repeated runs with new outcomes (lower is better). The shaded area indicates the standard deviation. PM, TARNET and CFRNET are relatively stable up to $60 \\%$ of hidden confounding. The methods degrade strongly in counterfactual prediction performance at levels of hidden confounding higher than $60 \\%$ . "
|
| 649 |
+
],
|
| 650 |
+
"image_footnote": [],
|
| 651 |
+
"bbox": [
|
| 652 |
+
181,
|
| 653 |
+
712,
|
| 654 |
+
812,
|
| 655 |
+
825
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "table",
|
| 661 |
+
"img_path": "images/dc62ad5c487d50d5a9c43f630997e93b01c6370c0f2031aa4faa4c99d74c5f29.jpg",
|
| 662 |
+
"table_caption": [
|
| 663 |
+
"Table 4: Comparison of methods for counterfactual inference with more than two available treatment options on the News-4, News-8 and News-16. Numbers are mean value $\\pm$ the standard deviation of $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { m P E H E } } }$ and $\\hat { \\epsilon } _ { \\mathrm { m A T E } }$ over 50 repeated runs. $^ { \\dag } =$ significantly different from PM $( \\alpha < 0 . 0 5 )$ "
|
| 664 |
+
],
|
| 665 |
+
"table_footnote": [],
|
| 666 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">News-4 (κ = 10)</td><td colspan=\"2\">News-8 (κ = 10)</td><td colspan=\"2\"></td><td colspan=\"2\">News-16 (k = 7)</td></tr><tr><td>VemPEHE</td><td>EmATE</td><td></td><td>VemPEHE</td><td>CmATE</td><td></td><td>VemPEHE</td><td>CmATE</td></tr><tr><td>PM</td><td>21.58 ± 2.58</td><td>10.04 ± 2.71</td><td></td><td>20.76 ± 1.86</td><td>6.51 ± 1.66</td><td></td><td>20.24 ± 1.46</td><td>5.76 ±1.33</td></tr><tr><td>+on X</td><td>21.41 ± 1.75 +</td><td>8.91 ± 2.00</td><td></td><td>20.90 ± 2.07</td><td>6.36 ± 1.65</td><td></td><td>20.67 ± 1.42</td><td>5.73 ± 1.16</td></tr><tr><td>+ MLP</td><td>+ 25.05 ± 2.80</td><td>+14.92±3.14</td><td>+</td><td>24.88±1.98 +</td><td>14.00±2.45+</td><td></td><td>27.05± 2.47 † 16.90 ± 2.01</td><td></td></tr><tr><td>kNN</td><td>+27.92 ± 2.44</td><td></td><td></td><td>4 + 19.40 ± 3.12 † 26.20± 2.18 † 15.11 ± 2.34 + 2</td><td></td><td></td><td>27.64 ± 2.40 † 17.27 ± 2.10</td><td></td></tr><tr><td>PSMPM</td><td>+ 22.74 ± 2.58 +</td><td></td><td></td><td>11.62 ± 2.69 † 22.16±1.79 †</td><td>8.81±1.96 + 2</td><td></td><td>23.57 ± 2.48 † 11.04 ± 2.50</td><td></td></tr><tr><td>PSMMI</td><td>† 37.26± 2.28 ↑</td><td></td><td></td><td>30.19 ± 2.47 + 30.50± 1.70 † 22.09±1.98</td><td></td><td>+</td><td>28.17 ± 2.02 † 18.81 ± 1.74</td><td></td></tr><tr><td>RF</td><td>+ 26.59 ± 3.02 +</td><td></td><td></td><td>18.03 ±3.18 † 23.77± 2.14 +</td><td>12.40±2.29</td><td>+</td><td>26.13± 2.48 †15.91± 2.00</td><td></td></tr><tr><td>CF</td><td>t 27.28 ± 2.59 ↑</td><td>19.04± 3.15</td><td>→</td><td>25.76±2.05 +</td><td>15.12±2.20+</td><td></td><td>26.85± 2.29</td><td>5+17.03 ± 1.99</td></tr><tr><td>BART</td><td>+ 26.41 ± 3.10 † 17.14± 3.51</td><td></td><td></td><td>t 25.78± 2.66 +</td><td>14.80±2.56†</td><td></td><td>27.45± 2.84 + 17.50± 2.49</td><td></td></tr><tr><td>GANITE</td><td>+ 24.50 ± 2.27 + 13.84 ± 2.69</td><td></td><td>†</td><td>23.58±2.48 +</td><td>11.20±2.84+2</td><td></td><td>25.12± 3.53 + 13.20±3.28</td><td></td></tr><tr><td>PD</td><td>20.88± 3.24 †</td><td>8.47 ± 4.51</td><td></td><td>21.19 ± 2.29</td><td>7.29 ± 2.97 †</td><td></td><td>22.28± 2.25 + 10.65± 2.22</td><td></td></tr><tr><td>TARNET</td><td>+23.40±2.20</td><td>)†13.63 ± 2.18</td><td>†</td><td>22.39± 2.32 +</td><td>9.38 ± 1.92</td><td>+</td><td>21.19 ± 2.01 †</td><td>8.30 ± 1.66</td></tr><tr><td>CFRNETWass</td><td>t 22.65± 1.97 + 12.96± 1.69</td><td></td><td></td><td>21.64±1.82 +</td><td>8.79 ± 1.68</td><td>+</td><td>20.87±1.46†</td><td>8.05 ±1.40</td></tr></table>",
|
| 667 |
+
"bbox": [
|
| 668 |
+
173,
|
| 669 |
+
113,
|
| 670 |
+
825,
|
| 671 |
+
354
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 7
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Architectures. To ensure that differences between methods of learning counterfactual representations for neural networks are not due to differences in architecture, we based the neural architectures for TARNET, CFRNETWass, PD and PM on the same, previously described extension of the TARNET architecture (Shalit et al. (2017), Details in Appendix G) to the multiple treatment setting. ",
|
| 678 |
+
"bbox": [
|
| 679 |
+
173,
|
| 680 |
+
367,
|
| 681 |
+
825,
|
| 682 |
+
424
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 7
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "text",
|
| 688 |
+
"text": "Hyperparameters. For the IHDP, Jobs, News and TCGA dataset we respectively used 30, 30, 10, and 5 optimisation runs for each method using randomly selected hyperparameters from predefined ranges (Appendix H). We selected the best model across the runs based on validation set $\\hat { \\epsilon } _ { \\mathrm { N N } }$ -PEHE. ",
|
| 689 |
+
"bbox": [
|
| 690 |
+
176,
|
| 691 |
+
439,
|
| 692 |
+
823,
|
| 693 |
+
482
|
| 694 |
+
],
|
| 695 |
+
"page_idx": 7
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"type": "text",
|
| 699 |
+
"text": "Metrics. We calculated the \u000fPEHE and $\\epsilon _ { \\mathrm { A T E } }$ for datasets for which we know the outcome generating process. For the Jobs dataset, we did not have access to counterfactual outcomes. We therefore calculated the $\\begin{array} { r } { \\mathrm { A T T } \\ = \\ \\frac { 1 } { | T _ { 1 } \\cap E | } \\sum _ { n = 0 } ^ { N } y _ { 1 } ( n ) - \\frac { 1 } { | T _ { 0 } \\cap E | } \\sum _ { n = 0 } ^ { N } y _ { 0 } ( n ) } \\end{array}$ PNn=0 y0(n) where E was the randomised subset of the dataset, and reported the error in estimating ATT $\\begin{array} { r } { \\epsilon _ { \\mathrm { A T T } } = | \\mathrm { A T T } - \\frac { 1 } { | T _ { 1 } \\cap E | } \\sum _ { n = 0 } ^ { N } \\hat { y } _ { 1 } ( n ) | , } \\end{array}$ and the policy risk $R _ { \\mathrm { P o l } } ( \\pi )$ (Shalit et al. (2017); Yoon et al. (2018)). The policy risk is the average loss in value when treating according to the policy $\\pi$ implied by an ITE estimator (Appendix I). ",
|
| 700 |
+
"bbox": [
|
| 701 |
+
174,
|
| 702 |
+
497,
|
| 703 |
+
825,
|
| 704 |
+
594
|
| 705 |
+
],
|
| 706 |
+
"page_idx": 7
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"type": "text",
|
| 710 |
+
"text": "5 RESULTS AND DISCUSSION ",
|
| 711 |
+
"text_level": 1,
|
| 712 |
+
"bbox": [
|
| 713 |
+
176,
|
| 714 |
+
613,
|
| 715 |
+
431,
|
| 716 |
+
631
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 7
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Counterfactual Inference. We evaluated the counterfactual inference performance of the listed models in the binary setting (Table 3) and multiple treatment setting (Table 4). On IHDP, PM reached the third best performance in terms of $\\sqrt { \\epsilon _ { \\mathrm { P E H E } } }$ after CFRNET and CMGP, and the second best $\\epsilon _ { \\mathrm { A T E } }$ after CMGP. On Jobs, PM reached the second best $R _ { \\mathrm { P o l } } ( \\pi )$ after GANITE. On the binary News-2, PM outperformed all other methods in terms of $\\sqrt { \\epsilon _ { \\mathrm { P E H E } } }$ and $\\epsilon _ { \\mathrm { A T E } }$ . On the News-4/8/16 datasets with more than two treatments, PM consistently outperformed all other methods - in some cases by a large margin - on both metrics with the exception of the News-4 dataset, where PM came second to PD. The strong performance of PM across a wide range of datasets with varying amounts of treatment options is remarkable considering how simple it is compared to other, highly specialised methods. Notably, PM consistently outperformed both CFRNET, with the exception of the IHDP dataset, which accounted for covariate imbalances between treatments via regularisation rather than matching, and $\\mathrm { P S M } _ { \\mathrm { M I } }$ , which accounted for covariate imbalances by preprocessing the entire training set with a matching algorithm (Ho et al. (2011)). We also found that matching on the propensity score was, in almost all cases, not significantly different from matching on $X$ directly when $X$ was low-dimensional, or a low-dimensional representation of $X$ when $X$ was high-dimensional $^ +$ o n $X$ ). This indicates that PM is effective with any low-dimensional balancing score. In addition, using PM with the TARNET architecture outperformed the MLP $+ \\mathrm { M L P } )$ in almost all cases, with the exception of the low-dimensional IHDP and Jobs. We conclude that matching on the propensity score or a low-dimensional representation of $X$ and using the TARNET architecture are sensible default configurations, particularly when $X$ is high-dimensional. ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
173,
|
| 725 |
+
645,
|
| 726 |
+
825,
|
| 727 |
+
924
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 7
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "image",
|
| 733 |
+
"img_path": "images/781506b3f9930a44bc60e6f40e4a257c591bc7efdf418d1d1b39c427024efb86.jpg",
|
| 734 |
+
"image_caption": [
|
| 735 |
+
"Figure 6: Comparison of the learning dynamics during training (normalised training epochs; from start ${ } = 0$ to end $= 1 0 0$ of training, $\\mathbf { X }$ -axis) of several matching-based methods on the validation set of News-8. The coloured lines correspond to the mean value of the factual error $\\mathrm { \\cdot } \\sqrt { \\mathrm { M S E } }$ ; red) and the counterfactual error $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ ; blue) across 10 randomised hyperparameter configurations (lower is better). The shaded area indicates the standard deviation. All methods used exactly the same model and hyperparameters and only differed in how they addressed treatment assignment imbalance. The leftmost figure shows the desired behavior of the counterfactual and factual error jointly decreasing until convergence. PM exhibits the desired behavior of aligning the optimisation of the factual and counterfactual error. $\\mathrm { P S M } _ { \\mathrm { P M } }$ shows a weaker degree of alignment and much higher variance. In contrast, $\\mathrm { P S M } _ { \\mathrm { M I } }$ shows the undesired behavior of the counterfactual error increasing as the factual error decreases, indicating that the models were overfitting to the properties of the treated group. "
|
| 736 |
+
],
|
| 737 |
+
"image_footnote": [],
|
| 738 |
+
"bbox": [
|
| 739 |
+
179,
|
| 740 |
+
50,
|
| 741 |
+
820,
|
| 742 |
+
150
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 8
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "Model Selection. To judge whether NN-PEHE is more suitable for model selection for counterfactual inference than MSE, we compared their respective correlations with the PEHE on IHDP. We found that NN-PEHE correlates significantly better with the PEHE than MSE (Figure 2). ",
|
| 749 |
+
"bbox": [
|
| 750 |
+
174,
|
| 751 |
+
319,
|
| 752 |
+
825,
|
| 753 |
+
361
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 8
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Number of Matches per Minibatch. To determine the impact of matching fewer than $100 \\%$ of all samples in a batch, we evaluated PM on News-8 trained with varying percentages of matched samples on the range 0 to $100 \\%$ in steps of $10 \\%$ (Figure 3). We found that including more matches indeed consistently reduces the counterfactual error up to $100 \\%$ of samples matched. Interestingly, we found a large improvement over using no matched samples even for relatively small percentages $( < 4 0 \\% )$ of matched samples per batch. This shows that propensity score matching within a batch is indeed highly effective at improving the training of neural networks for counterfactual inference. ",
|
| 760 |
+
"bbox": [
|
| 761 |
+
174,
|
| 762 |
+
376,
|
| 763 |
+
825,
|
| 764 |
+
474
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 8
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "Treatment Assignment Bias. To assess how the predictive performance of the different methods is influenced by increasing amounts of treatment assignment bias, we evaluated their performances on News-8 while varying the assignment bias coefficient $\\kappa$ on the range of 5 to 20 (Figure 4). We found that PM handles high amounts of assignment bias better than existing state-of-the-art methods. ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
489,
|
| 774 |
+
825,
|
| 775 |
+
545
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 8
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "Hidden Confounding. To analyse the sensitivity of the different methods to hidden confounding, we successively retrained the models on a reduced set of covariates $x _ { i }$ in increasing steps of $10 \\%$ $( = \\ 2 0 5 3$ gene loci) in the range of $10 \\%$ to $90 \\%$ (Figure 5). We removed the covariates from the model but kept them for computing assignments and outcomes, i.e. they were hidden confounders. The results showed that PM was competitive with TARNET and CFRNET in terms of robustness to hidden confounding. Notably, PM, TARNET and CFRNET were relatively stable up to levels of $60 \\%$ of hidden confounding, likely because some gene loci are highly correlated. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
560,
|
| 785 |
+
825,
|
| 786 |
+
657
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 8
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "Comparing Minibatch and Dataset Matching. As outlined previously, it is possible to optimise the counterfactual error using the observed factual samples if (1) we manage to break the dependence of treatment assignment on $X$ , and (2) we observe all relevant variables (Ho et al. (2007)). If we were successful in balancing the covariates, we would expect that the counterfactual error is implicitly and consistently improved alongside the factual error, despite optimising the neural network for the observed factual loss only. To elucidate to what degree this is the case when using the various evaluated matching-based methods, we evaluated the respective training dynamics of PM, $\\mathrm { P S M } _ { \\mathrm { P M } }$ and $\\mathrm { P S M } _ { \\mathrm { M I } }$ (Figure 6). We found that PM better conforms to the desired behavior than $\\mathrm { P S M } _ { \\mathrm { P M } }$ and $\\mathrm { P S M } _ { \\mathrm { M I } }$ . $\\mathrm { P S M } _ { \\mathrm { P M } }$ , which used the same matching strategy as PM but on the dataset level, showed a much higher variance than PM. $\\mathrm { P S M } _ { \\mathrm { M I } }$ was overfitting to the treated group. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
672,
|
| 796 |
+
825,
|
| 797 |
+
811
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 8
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Limitations. A limitation of this work is that the theory of matching to balance the covariates only holds in the strongly ignorable setting, i.e. under the assumption that there are no unobserved confounders. However, our experiments (Figure 5) and related works showed that even the presence of large amounts of hidden confounders may not necessarily decrease the performance of ITE estimators in practice if we observe proxy variables (Montgomery et al. (2000); Louizos et al. (2017)). In future work, we would like to integrate PM with diagnostic tools that address hidden confounding (Kallus & Zhou (2018)), and the ability to learn from multiple related tasks (Schwab et al. (2018)). ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
174,
|
| 806 |
+
827,
|
| 807 |
+
825,
|
| 808 |
+
924
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 8
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "6 CONCLUSION ",
|
| 815 |
+
"text_level": 1,
|
| 816 |
+
"bbox": [
|
| 817 |
+
174,
|
| 818 |
+
102,
|
| 819 |
+
318,
|
| 820 |
+
117
|
| 821 |
+
],
|
| 822 |
+
"page_idx": 9
|
| 823 |
+
},
|
| 824 |
+
{
|
| 825 |
+
"type": "text",
|
| 826 |
+
"text": "We presented PM, a new and simple method for training neural networks for estimating ITEs from observational data that extends to any number of available treatment options. In addition, we extended the PEHE metric to settings with more than two treatments, and introduced a nearest neighbour approximation of PEHE and mPEHE that can be used for model selection without having access to counterfactual outcomes. We performed experiments on several real-world and semisynthetic datasets that showed that PM outperforms a number of more complex state-of-the-art methods in inferring counterfactual outcomes. We also found that the NN-PEHE correlates significantly better with real PEHE than MSE, that including more matched samples in each minibatch improves the learning of counterfactual representations, and that PM handles an increasing treatment assignment bias better than existing state-of-the-art methods. PM may be used for settings with any amount of treatment options, is compatible with any existing neural network architecture, simple to implement, and does not introduce any additional hyperparameters or computational complexity. ",
|
| 827 |
+
"bbox": [
|
| 828 |
+
174,
|
| 829 |
+
133,
|
| 830 |
+
825,
|
| 831 |
+
299
|
| 832 |
+
],
|
| 833 |
+
"page_idx": 9
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"type": "text",
|
| 837 |
+
"text": "REFERENCES ",
|
| 838 |
+
"text_level": 1,
|
| 839 |
+
"bbox": [
|
| 840 |
+
176,
|
| 841 |
+
321,
|
| 842 |
+
285,
|
| 843 |
+
335
|
| 844 |
+
],
|
| 845 |
+
"page_idx": 9
|
| 846 |
+
},
|
| 847 |
+
{
|
| 848 |
+
"type": "text",
|
| 849 |
+
"text": "Ahmed M Alaa and Mihaela van der Schaar. Bayesian inference of individualized treatment effects using multi-task gaussian processes. In Advances in Neural Information Processing Systems, pp. 3424–3432, 2017. \nAhmed M Alaa, Michael Weisz, and Mihaela van der Schaar. Deep counterfactual networks with propensity-dropout. arXiv preprint arXiv:1706.05966, 2017. \nSusan Athey, Julie Tibshirani, and Stefan Wager. Generalized random forests. arXiv preprint arXiv:1610.01271, 2016. \nLeo Breiman. Random forests. Machine learning, 45(1):5–32, 2001. \nHugh Chipman and Robert McCulloch. BayesTree: Bayesian additive regression trees. R package version 0.3-1.4, 2016. \nHugh A Chipman, Edward I George, Robert E McCulloch, et al. BART: Bayesian additive regression trees. The Annals of Applied Statistics, 4(1):266–298, 2010. \nDominik Csiba and Peter Richtarik. Importance sampling for minibatches. ´ Journal of Machine Learning Research, 19(27), 2018. \nRajeev H Dehejia and Sadek Wahba. Propensity score-matching methods for nonexperimental causal studies. Review of Economics and statistics, 84(1):151–161, 2002. \nVincent Dorie. NPCI: Non-parametrics for causal inference, 2016. URL https://github. com/vdorie/npci. \nMichele Jonsson Funk, Daniel Westreich, Chris Wiesen, Til Strmer, M. Alan Brookhart, and Marie Davidian. Doubly robust estimation of causal effects. American Journal of Epidemiology, 173 (7):761–767, 2011. \nJennifer L Hill. Bayesian nonparametric modeling for causal inference. Journal of Computational and Graphical Statistics, 20(1):217–240, 2011. \nDaniel E Ho, Kosuke Imai, Gary King, and Elizabeth A Stuart. Matching as nonparametric preprocessing for reducing model dependence in parametric causal inference. Political analysis, 15(3): 199–236, 2007. \nDaniel E Ho, Kosuke Imai, Gary King, Elizabeth A Stuart, et al. MatchIt: nonparametric preprocessing for parametric causal inference. Journal of Statistical Software, 42(8):1–28, 2011. \nFredrik Johansson, Uri Shalit, and David Sontag. Learning representations for counterfactual inference. In International Conference on Machine Learning, pp. 3020–3029, 2016. \nNathan Kallus. Recursive partitioning for personalization using observational data. In International Conference on Machine Learning, 2017. ",
|
| 850 |
+
"bbox": [
|
| 851 |
+
171,
|
| 852 |
+
343,
|
| 853 |
+
826,
|
| 854 |
+
926
|
| 855 |
+
],
|
| 856 |
+
"page_idx": 9
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"type": "text",
|
| 860 |
+
"text": "Nathan Kallus and Angela Zhou. Confounding-robust policy improvement. Advances in Neural Information Processing Systems, 2018. ",
|
| 861 |
+
"bbox": [
|
| 862 |
+
171,
|
| 863 |
+
103,
|
| 864 |
+
825,
|
| 865 |
+
132
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 10
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "Adam Kapelner and Justin Bleich. bartMachine: Machine learning with Bayesian additive regression trees. arXiv preprint arXiv:1312.2171, 2013. ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
171,
|
| 874 |
+
141,
|
| 875 |
+
823,
|
| 876 |
+
170
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 10
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "Robert J LaLonde. Evaluating the econometric evaluations of training programs with experimental data. The American economic review, pp. 604–620, 1986. ",
|
| 883 |
+
"bbox": [
|
| 884 |
+
171,
|
| 885 |
+
179,
|
| 886 |
+
823,
|
| 887 |
+
208
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 10
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "text",
|
| 893 |
+
"text": "Christos Louizos, Uri Shalit, Joris M Mooij, David Sontag, Richard Zemel, and Max Welling. Causal effect inference with deep latent-variable models. In Advances in Neural Information Processing Systems, pp. 6446–6456, 2017. ",
|
| 894 |
+
"bbox": [
|
| 895 |
+
178,
|
| 896 |
+
215,
|
| 897 |
+
823,
|
| 898 |
+
260
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 10
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "Yishay Mansour, Mehryar Mohri, and Afshin Rostamizadeh. Domain adaptation: Learning bounds and algorithms. arXiv preprint arXiv:0902.3430, 2009. ",
|
| 905 |
+
"bbox": [
|
| 906 |
+
171,
|
| 907 |
+
267,
|
| 908 |
+
823,
|
| 909 |
+
296
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 10
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "Mark R Montgomery, Michele Gragnolati, Kathleen A Burke, and Edmundo Paredes. Measuring living standards with proxy variables. Demography, 37(2):155–174, 2000. ",
|
| 916 |
+
"bbox": [
|
| 917 |
+
171,
|
| 918 |
+
305,
|
| 919 |
+
823,
|
| 920 |
+
335
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 10
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
178,
|
| 929 |
+
343,
|
| 930 |
+
823,
|
| 931 |
+
400
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 10
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "Paul R. Rosenbaum and Donald B. Rubin. The central role of the propensity score in observational studies for causal effects. Biometrika, 70(1):41–55, 1983. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
173,
|
| 940 |
+
409,
|
| 941 |
+
823,
|
| 942 |
+
438
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 10
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Donald B Rubin. Causal inference using potential outcomes: Design, modeling, decisions. Journal of the American Statistical Association, 100(469):322–331, 2005. ",
|
| 949 |
+
"bbox": [
|
| 950 |
+
173,
|
| 951 |
+
446,
|
| 952 |
+
823,
|
| 953 |
+
476
|
| 954 |
+
],
|
| 955 |
+
"page_idx": 10
|
| 956 |
+
},
|
| 957 |
+
{
|
| 958 |
+
"type": "text",
|
| 959 |
+
"text": "Patrick Schwab, Emanuela Keller, Carl Muroi, David J Mack, Christian Strassle, and Walter Karlen. ¨ Not to Cry Wolf: Distantly Supervised Multitask Learning in Critical Care. In International Conference on Machine Learning, 2018. ",
|
| 960 |
+
"bbox": [
|
| 961 |
+
176,
|
| 962 |
+
484,
|
| 963 |
+
823,
|
| 964 |
+
527
|
| 965 |
+
],
|
| 966 |
+
"page_idx": 10
|
| 967 |
+
},
|
| 968 |
+
{
|
| 969 |
+
"type": "text",
|
| 970 |
+
"text": "Uri Shalit, Fredrik D Johansson, and David Sontag. Estimating individual treatment effect: Generalization bounds and algorithms. In International Conference on Machine Learning, 2017. ",
|
| 971 |
+
"bbox": [
|
| 972 |
+
173,
|
| 973 |
+
535,
|
| 974 |
+
823,
|
| 975 |
+
565
|
| 976 |
+
],
|
| 977 |
+
"page_idx": 10
|
| 978 |
+
},
|
| 979 |
+
{
|
| 980 |
+
"type": "text",
|
| 981 |
+
"text": "Jeffrey A Smith and Petra E Todd. Does matching overcome LaLonde’s critique of nonexperimental estimators? Journal of Econometrics, 125(1-2):305–353, 2005. ",
|
| 982 |
+
"bbox": [
|
| 983 |
+
173,
|
| 984 |
+
573,
|
| 985 |
+
821,
|
| 986 |
+
603
|
| 987 |
+
],
|
| 988 |
+
"page_idx": 10
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"type": "text",
|
| 992 |
+
"text": "Stefan Wager and Susan Athey. Estimation and inference of heterogeneous treatment effects using random forests. Journal of the American Statistical Association, 2017. ",
|
| 993 |
+
"bbox": [
|
| 994 |
+
173,
|
| 995 |
+
611,
|
| 996 |
+
823,
|
| 997 |
+
641
|
| 998 |
+
],
|
| 999 |
+
"page_idx": 10
|
| 1000 |
+
},
|
| 1001 |
+
{
|
| 1002 |
+
"type": "text",
|
| 1003 |
+
"text": "John N Weinstein, Eric A Collisson, Gordon B Mills, Kenna R Mills Shaw, Brad A Ozenberger, Kyle Ellrott, Ilya Shmulevich, Chris Sander, Joshua M Stuart, Cancer Genome Atlas Research Network, et al. The cancer genome atlas pan-cancer analysis project. Nature genetics, 45(10): 1113–1120, 2013. ",
|
| 1004 |
+
"bbox": [
|
| 1005 |
+
173,
|
| 1006 |
+
648,
|
| 1007 |
+
823,
|
| 1008 |
+
705
|
| 1009 |
+
],
|
| 1010 |
+
"page_idx": 10
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"type": "text",
|
| 1014 |
+
"text": "Jinsung Yoon, James Jordon, and Mihaela van der Schaar. GANITE: Estimation of Individualized Treatment Effects using Generative Adversarial Nets. In International Conference on Learning Representations, 2018. ",
|
| 1015 |
+
"bbox": [
|
| 1016 |
+
171,
|
| 1017 |
+
714,
|
| 1018 |
+
823,
|
| 1019 |
+
757
|
| 1020 |
+
],
|
| 1021 |
+
"page_idx": 10
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"type": "text",
|
| 1025 |
+
"text": "SUPPLEMENTARY MATERIAL FOR:”PERFECT MATCH: A SIMPLE METHOD FOR LEARN-ING REPRESENTATIONS FOR COUNTERFACTUAL IN-FERENCE WITH NEURAL NETWORKS”",
|
| 1026 |
+
"text_level": 1,
|
| 1027 |
+
"bbox": [
|
| 1028 |
+
173,
|
| 1029 |
+
98,
|
| 1030 |
+
825,
|
| 1031 |
+
198
|
| 1032 |
+
],
|
| 1033 |
+
"page_idx": 11
|
| 1034 |
+
},
|
| 1035 |
+
{
|
| 1036 |
+
"type": "text",
|
| 1037 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 1038 |
+
"bbox": [
|
| 1039 |
+
184,
|
| 1040 |
+
220,
|
| 1041 |
+
398,
|
| 1042 |
+
248
|
| 1043 |
+
],
|
| 1044 |
+
"page_idx": 11
|
| 1045 |
+
},
|
| 1046 |
+
{
|
| 1047 |
+
"type": "text",
|
| 1048 |
+
"text": "A PRECISION IN ESTIMATION OF HETEROGENOUS EFFECT (PEHE) ",
|
| 1049 |
+
"text_level": 1,
|
| 1050 |
+
"bbox": [
|
| 1051 |
+
174,
|
| 1052 |
+
306,
|
| 1053 |
+
748,
|
| 1054 |
+
325
|
| 1055 |
+
],
|
| 1056 |
+
"page_idx": 11
|
| 1057 |
+
},
|
| 1058 |
+
{
|
| 1059 |
+
"type": "text",
|
| 1060 |
+
"text": "When the underlying noiseless distributions $\\mu _ { j }$ are not given, PEHE is calculated using: ",
|
| 1061 |
+
"bbox": [
|
| 1062 |
+
171,
|
| 1063 |
+
343,
|
| 1064 |
+
750,
|
| 1065 |
+
359
|
| 1066 |
+
],
|
| 1067 |
+
"page_idx": 11
|
| 1068 |
+
},
|
| 1069 |
+
{
|
| 1070 |
+
"type": "equation",
|
| 1071 |
+
"img_path": "images/a3a0b3941dc4b6db54b577ee0f17af8b509949e35fea32b5898ec7d5f6982fec.jpg",
|
| 1072 |
+
"text": "$$\n{ \\hat { \\epsilon } } _ { \\mathrm { P E H E } } = { \\frac { 1 } { N } } \\sum _ { n = 0 } ^ { N } { \\Big ( } { \\big [ } y _ { 1 } ( n ) - y _ { 0 } ( n ) { \\big ] } - { \\big [ } { \\hat { y } } _ { 1 } ( n ) - { \\hat { y } } _ { 0 } ( n ) { \\big ] } { \\Big ) } ^ { 2 }\n$$",
|
| 1073 |
+
"text_format": "latex",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
315,
|
| 1076 |
+
372,
|
| 1077 |
+
679,
|
| 1078 |
+
416
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 11
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "B AVERAGE TREATMENT EFFECT (ATE) ",
|
| 1085 |
+
"text_level": 1,
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
174,
|
| 1088 |
+
438,
|
| 1089 |
+
527,
|
| 1090 |
+
457
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 11
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "The ATE measures the average difference in effect across the whole population (Hill (2011)). It can be useful indicator of how well an ITE estimator performs at comparing two treatments across the entire population. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
173,
|
| 1099 |
+
474,
|
| 1100 |
+
825,
|
| 1101 |
+
517
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 11
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "equation",
|
| 1107 |
+
"img_path": "images/186ab789e07def2c12a9749a49689b02bd5aca848e5d6c92c226bd2ca5613c36.jpg",
|
| 1108 |
+
"text": "$$\n\\epsilon _ { \\mathrm { A T E } } = | | \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } \\mathbb { E } _ { y ( n ) \\sim \\mu ( n ) } [ y ( n ) ] - \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } \\hat { y } ( n ) | | _ { 2 } ^ { 2 }\n$$",
|
| 1109 |
+
"text_format": "latex",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
326,
|
| 1112 |
+
530,
|
| 1113 |
+
671,
|
| 1114 |
+
574
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 11
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Similar to Equation (A.1), the counterfactual treatment effect can be estimated using the noisy ground truth outcomes if the underlying noiseless distributions $\\mu _ { j }$ are not given: ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
173,
|
| 1123 |
+
593,
|
| 1124 |
+
823,
|
| 1125 |
+
623
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 11
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "equation",
|
| 1131 |
+
"img_path": "images/26469ea5ed15242f1ffe9d80751418ff35e21fb4a9126b7899b27dad2d03e44f.jpg",
|
| 1132 |
+
"text": "$$\n\\hat { \\epsilon } _ { \\mathrm { A T E } } = | | \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } y ( n ) - \\frac { 1 } { N } \\sum _ { n = 0 } ^ { N } \\hat { y } ( n ) | | _ { 2 } ^ { 2 }\n$$",
|
| 1133 |
+
"text_format": "latex",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
369,
|
| 1136 |
+
654,
|
| 1137 |
+
629,
|
| 1138 |
+
698
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 11
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "C DETAILS PERFECT MATCH (PM) ",
|
| 1145 |
+
"text_level": 1,
|
| 1146 |
+
"bbox": [
|
| 1147 |
+
174,
|
| 1148 |
+
720,
|
| 1149 |
+
480,
|
| 1150 |
+
738
|
| 1151 |
+
],
|
| 1152 |
+
"page_idx": 11
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"type": "text",
|
| 1156 |
+
"text": "Algorithm 1 outlines the procedure of using PM to augment a batch with propensity score matches for training a neural network with stochastic gradient descent. We trained a Support Vector Machine (SVM) with probability estimation as propensity score estimator $E _ { \\mathrm { P S } }$ . To speed up recalling nearest neighbours, we additionally prepared an index per treatment into $X _ { \\mathrm { t r a i n } }$ sorted by propensity score. At augmentation time, we used binary search on this index to find the nearest neighbours by propensity score in $\\mathrm { O } ( \\log \\ N _ { t } )$ where $N _ { t }$ is the number of samples $X$ in $X _ { \\mathrm { { t r a i n } } }$ assigned to the treatment group $t$ . To avoid overfitting to specific edge samples when propensity scores are not distributed evenly in the training set, we chose at random from one of the $k { = } 6$ closest samples by propensity score. See Table S1 for a comparison of the effects on predictive performance of choosing varying values of $k$ . For the $^ { \\circ } +$ on $X ^ { \\dag }$ model we matched, using the Euclidean distance, directly on the covariates $X$ on IHDP and Jobs, and using a low dimensional representation of $X$ , obtained using principal component analysis (PCA) with 50 principal components, on News. ",
|
| 1157 |
+
"bbox": [
|
| 1158 |
+
173,
|
| 1159 |
+
756,
|
| 1160 |
+
825,
|
| 1161 |
+
924
|
| 1162 |
+
],
|
| 1163 |
+
"page_idx": 11
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"type": "table",
|
| 1167 |
+
"img_path": "images/66a58c5268b88dc361b8cb3679243f936e1f0cac2884d6bfac327358d944d3ca.jpg",
|
| 1168 |
+
"table_caption": [
|
| 1169 |
+
"Table S1: Comparison of PM with varying numbers of nearest neighbours $k$ considered for randomised matching on the News-2/4/8/16 datasets $k { = } 1$ corresponds to no randomisation; $k { = } 6$ , in cursive, are the results reported in the main body). We report the mean value $\\pm$ the standard deviation of $\\sqrt { \\hat { \\epsilon } _ { \\mathrm { P E H E } } }$ on the test sets over 50 runs. There was no significant differences between different levels of $k$ and $k { = } 6$ (significance level $\\alpha < 0 . 0 5$ ). In particular, there was no significant difference between using randomisation and not using randomisation. "
|
| 1170 |
+
],
|
| 1171 |
+
"table_footnote": [],
|
| 1172 |
+
"table_body": "<table><tr><td>Method</td><td>News-2 VEPEHE</td><td>News-4 VEPEHE</td><td>News-8 VEPEHE</td><td>News-16 VEPEHE</td></tr><tr><td>PM (k=1)</td><td>16.79 ± 1.16</td><td>21.86 ± 2.24</td><td>20.70 ±1.87</td><td>20.06 ±1.43</td></tr><tr><td>PM (k=3)</td><td>16.82 ± 1.17</td><td>21.49 ± 2.43</td><td>20.50 ± 1.48</td><td>20.28 ± 1.52</td></tr><tr><td>PM(k=6)</td><td>16.76 ± 1.26</td><td>21.58 ± 2.58</td><td>20.76 ± 1.86</td><td>20.24 ± 1.46</td></tr><tr><td>PM (k=9)</td><td>16.91 ± 1.18</td><td>21.56 ± 2.58</td><td>20.75 ± 1.53</td><td>20.47 ± 1.94</td></tr><tr><td>PM (k=12)</td><td>17.11 ± 0.94</td><td>21.16 ± 2.20</td><td>21.10 ± 2.14</td><td>20.28 ± 1.64</td></tr><tr><td>PM (k=15)</td><td>16.87 ± 1.14</td><td>20.94 ± 2.05</td><td>20.92 ±1.80</td><td>20.48 ±1.80</td></tr></table>",
|
| 1173 |
+
"bbox": [
|
| 1174 |
+
254,
|
| 1175 |
+
195,
|
| 1176 |
+
736,
|
| 1177 |
+
325
|
| 1178 |
+
],
|
| 1179 |
+
"page_idx": 12
|
| 1180 |
+
},
|
| 1181 |
+
{
|
| 1182 |
+
"type": "text",
|
| 1183 |
+
"text": "D REDUCED VARIANCE IS LINKED TO IMPROVED PERFORMANCE IN ESTIMATING TREATMENT EFFECTS ",
|
| 1184 |
+
"text_level": 1,
|
| 1185 |
+
"bbox": [
|
| 1186 |
+
176,
|
| 1187 |
+
353,
|
| 1188 |
+
756,
|
| 1189 |
+
388
|
| 1190 |
+
],
|
| 1191 |
+
"page_idx": 12
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"type": "text",
|
| 1195 |
+
"text": "In the standard supervised setting, the variance added by minibatch SGD leads to slower convergence (Csiba & Richtrik (2018)), but will not typically lead to models that perform worse if they are trained until a convergence criterion has been met, e.g. early stopping. It is therefore perhaps surprising that we observe a difference not just in convergence (Figure 6), but also in counterfactual estimation performance (Tables 3 and 4) when comparing models trained with and without batch matching. ",
|
| 1196 |
+
"bbox": [
|
| 1197 |
+
173,
|
| 1198 |
+
406,
|
| 1199 |
+
825,
|
| 1200 |
+
477
|
| 1201 |
+
],
|
| 1202 |
+
"page_idx": 12
|
| 1203 |
+
},
|
| 1204 |
+
{
|
| 1205 |
+
"type": "text",
|
| 1206 |
+
"text": "A potential cause of the observed difference in treatment effect estimation performance is that we do not have access to the true counterfactual error in observational data to select the best model encountered during training. We therefore have to resort to using the factual error (e.g. factual MSE) or an estimator based on the factual error (e.g. NN-PEHE) to select the best encountered model. However, when the variance during training is high, chances are that we select a model based on the factual error that at this point during the training happens to be suboptimal in terms of counterfactual error. Through this mechanism, added variance during training for counterfactual inference is directly linked to worse expected performance in treatment effect estimation (Figure S1). We do not observe the same behavior in standard supervised learning tasks because we have direct access to the underlying objective, and are therefore able to select the best encountered model regardless of the variance during optimisation, i.e. models that during training do not perform well momentarily will not be selected because their measured error is high. We confirmed experimentally that gradient steps are more likely to be in opposing directions when not using PM (Figure S2). ",
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
173,
|
| 1209 |
+
484,
|
| 1210 |
+
825,
|
| 1211 |
+
665
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 12
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "image",
|
| 1217 |
+
"img_path": "images/54a44ae4f2da5d207dbfbccbabbcbc6b9a928298616bc3331ca291361b7bc335.jpg",
|
| 1218 |
+
"image_caption": [
|
| 1219 |
+
"Figure S1: Illustration of the impact of added variance introduced by minibatch SGD during training. In the supervised setting (left), high variance does in general not impact the final performance in terms of expected factual error (red), because we can select (dotted black line) the best encountered model during training using the observed error. In the counterfactual setting (right), we are not able to compute the true counterfactual error (blue) in observational data, and must therefore resort to selecting based on the factual error or a measure derived from the factual error. Even though we encounter models that perform similarly well, we are less likely to select these models under high variance, because we do not have direct access to the counterfactual error and the minimum of the factual error in general does not correspond to the minimum of the counterfactual error, particularly when optimisation of counterfactual and factual error are not well aligned. The dashed blue line indicates the counterfactual error of the model selected based on factual error. "
|
| 1220 |
+
],
|
| 1221 |
+
"image_footnote": [],
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
178,
|
| 1224 |
+
672,
|
| 1225 |
+
823,
|
| 1226 |
+
785
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 12
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "image",
|
| 1232 |
+
"img_path": "images/e482f386c8f24bebeefb344e713b1622f13fd82b8b3e2937f1e3f15453e8780c.jpg",
|
| 1233 |
+
"image_caption": [
|
| 1234 |
+
"Figure S2: Comparison of the frequencies of individual gradient steps during training of several matching-based methods on the validation set of News-8. The heatmap entries show the frequencies of pairs of differences in factual error (∆MSE; y-axis) and counterfactual error ( $\\Delta \\epsilon _ { \\mathrm { P E H E } }$ ; $\\mathbf { X }$ -axis) after individual gradient steps. All methods used the same model and only differed in how they addressed treatment assignment bias. The leftmost heatmap shows the desired behavior of gradient steps changing the counterfactual and factual error jointly during training. PM most closely resembles the desired behavior of jointly optimising counterfactual and factual error. In contrast, $\\mathrm { P S M } _ { \\mathrm { P M } }$ and $\\mathrm { P S M _ { M I } }$ have a much higher relative frequency of gradient steps that do not move into the same magnitude or direction (off-diagonal entries) for both factual and counterfactual error. "
|
| 1235 |
+
],
|
| 1236 |
+
"image_footnote": [],
|
| 1237 |
+
"bbox": [
|
| 1238 |
+
197,
|
| 1239 |
+
99,
|
| 1240 |
+
800,
|
| 1241 |
+
205
|
| 1242 |
+
],
|
| 1243 |
+
"page_idx": 13
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"type": "text",
|
| 1247 |
+
"text": "E NEAREST NEIGHBOUR APPROXIMATION OF PEHE FOR MULTIPLE TREATMENTS (NN-MPEHE) ",
|
| 1248 |
+
"text_level": 1,
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
176,
|
| 1251 |
+
371,
|
| 1252 |
+
756,
|
| 1253 |
+
405
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 13
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "The \u000fˆNN-PEHE metric can be extended to the multiple treatment setting by considering the mean \u000fˆNN-PEHE between all $\\binom { k } { 2 }$ possible pairs of treatments: ",
|
| 1260 |
+
"bbox": [
|
| 1261 |
+
173,
|
| 1262 |
+
424,
|
| 1263 |
+
825,
|
| 1264 |
+
455
|
| 1265 |
+
],
|
| 1266 |
+
"page_idx": 13
|
| 1267 |
+
},
|
| 1268 |
+
{
|
| 1269 |
+
"type": "equation",
|
| 1270 |
+
"img_path": "images/5aced9e8422c4f2b07f67a1654accc21963dc77ce3f89952e6715215bd20979d.jpg",
|
| 1271 |
+
"text": "$$\n\\hat { \\epsilon } _ { \\mathrm { N N - m P E H E } } = \\frac { 1 } { \\binom { k } { 2 } } \\sum _ { i = 0 } ^ { k - 1 } \\sum _ { j = 0 } ^ { i - 1 } \\hat { \\epsilon } _ { \\mathrm { N N - P E H E } , i , j }\n$$",
|
| 1272 |
+
"text_format": "latex",
|
| 1273 |
+
"bbox": [
|
| 1274 |
+
374,
|
| 1275 |
+
469,
|
| 1276 |
+
622,
|
| 1277 |
+
515
|
| 1278 |
+
],
|
| 1279 |
+
"page_idx": 13
|
| 1280 |
+
},
|
| 1281 |
+
{
|
| 1282 |
+
"type": "text",
|
| 1283 |
+
"text": "F PSEUDOCODE PROPENSITY SCORE MATCHING (PSM) ",
|
| 1284 |
+
"text_level": 1,
|
| 1285 |
+
"bbox": [
|
| 1286 |
+
174,
|
| 1287 |
+
537,
|
| 1288 |
+
656,
|
| 1289 |
+
555
|
| 1290 |
+
],
|
| 1291 |
+
"page_idx": 13
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"type": "text",
|
| 1295 |
+
"text": "Algorithm S2 outlines the procedure of preprocessing a training set using $\\mathrm { P S M } _ { \\mathrm { M I } }$ . For $\\mathrm { P S M } _ { \\mathrm { P M } }$ , we used the PM matching algorithm (see Algorithm 1) to find matches between samples from the treatment groups. For $\\mathrm { P S M } _ { \\mathrm { M I } }$ , we used the MatchIt package (Ho et al. (2011)) on setting ”nearest” to find matches between sets of samples from two treatment groups (function get matched samples). ",
|
| 1296 |
+
"bbox": [
|
| 1297 |
+
173,
|
| 1298 |
+
573,
|
| 1299 |
+
826,
|
| 1300 |
+
631
|
| 1301 |
+
],
|
| 1302 |
+
"page_idx": 13
|
| 1303 |
+
},
|
| 1304 |
+
{
|
| 1305 |
+
"type": "table",
|
| 1306 |
+
"img_path": "images/1f7d7e64ec570c65dcaf91ddfa6caaa622d2a81b0d6aba82be137fb39f20f330.jpg",
|
| 1307 |
+
"table_caption": [],
|
| 1308 |
+
"table_footnote": [],
|
| 1309 |
+
"table_body": "<table><tr><td>Algorithm S2 Preprocessng a training set using Propensity Score Matching (PSM). After prepro- cessing,the training set contains an equal number of samples from each treatment group and the covariates xi across all treatment groups are approximately balanced.</td></tr><tr><td>Input: N training samples Xtrain with assgned treatments t, Number of treatment options k, func- tion get_mat ched_samples to find nearest matches by propensity score between sets of</td></tr><tr><td>samples Output: Preprocessed training set Xout consisting of matched samples from each treatment group</td></tr><tr><td>1: procedure PREPROCESS_TRAINING_SET: 2: tbase ← index of treatment with smallest number of samples in Xtrain</td></tr><tr><td>Xbase ← all samples in Xtrain With treatment tbase</td></tr><tr><td>fori=O to k-1 do</td></tr><tr><td>if i≠ tbase then</td></tr><tr><td>Xcurrent ← all samples in Xtrain with treatment i</td></tr><tr><td>Xmatched ← get_mat ched_samples(Xbase,Xcurrent) Add all samples in Xmatched to Xout</td></tr><tr><td></td></tr><tr><td>Add all samples in Xbase to Xout</td></tr></table>",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
173,
|
| 1312 |
+
661,
|
| 1313 |
+
826,
|
| 1314 |
+
900
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 13
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "G TARNET, CFRNET AND PD FOR MULTIPLE TREATMENTS ",
|
| 1321 |
+
"text_level": 1,
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
173,
|
| 1324 |
+
101,
|
| 1325 |
+
702,
|
| 1326 |
+
118
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 14
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "In TARNET models, we used ELU nonlinearities between the $L$ hidden layers with $M$ hidden units. $L$ and $M$ were hyperparameters that we optimised during hyperparameter optimisation (Section H). We did not use batch normalisation (BN). To extend CFRNET to the multiple treatment setting, we defined the first treatment option as the control treatment and regularised all treatment options to have the same activation distribution in the topmost shared layer (Shalit et al. (2017)). For PD, we only used propensity dropout and the propensity estimation network. We did not make use of the alternating training schedule proposed in (Alaa et al. (2017)). The $\\ \" { + } \\mathrm { M L P ^ { \\prime } }$ model was a simple MLP with $L$ hidden layers of $M$ hidden units that received the treatment option index $t _ { j }$ as an additional input along with the covariates $X$ , and output a $k$ -dimensional potential outcome vector $\\hat { Y }$ . The MLP used ELU nonlinearities between the $L$ hidden layers, and also did not use BN. ",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
173,
|
| 1335 |
+
132,
|
| 1336 |
+
825,
|
| 1337 |
+
275
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 14
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "H HYPERPARAMETERS ",
|
| 1344 |
+
"text_level": 1,
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
176,
|
| 1347 |
+
295,
|
| 1348 |
+
380,
|
| 1349 |
+
310
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 14
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "To ensure a fair comparison, we used a standardised approach to hyperparameter optimisation for those methods for which we did not have previously reported performance numbers. In particular, each method we trained was optimised over the same amount of hyperparameter optimisation runs. For the methods that used neural network models (TARNET, CFRNET, PD, $\\mathrm { P S M } _ { \\mathrm { P M } }$ , $\\mathrm { P S M _ { M I } }$ , including $^ { , , } +$ on $X ^ { \\dag }$ and $\\ \" { + } \\mathrm { M L P ^ { \\prime } }$ , and PM), we chose hyperparameters at random from predefined ranges (Table S2). For CFRNET, we additionally varied the weight of the imbalance penalty at random between 0.1, 1.0, and 10.0. All methods that used a neural network model used the TARNET architecture to ensure differences in performance are not due to architectural differences. To train PM for the Jobs dataset, we used fixed hyperparameters: A batch size of 50, 60 hidden units per layer, and 3 hidden layers. For optimisation, we used the Adam optimiser with a learning rate of 0.001 for a maximum of 100 (News, TCGA) or 400 (IHDP, Jobs) with an early stopping patience of 30 on the factual MSE. We used the default hyperparameters for BART and CF from the ”bartMachine” (Kapelner & Bleich (2013)) and ”grf” (Athey et al. (2016)) R-packages. For GANITE, we used our own implementation since there was no open source implementation available, and - in addition to the parameters in Table S2 - optimised over the supervised loss weights $\\alpha$ and $\\beta$ (Yoon et al. (2018)) between 0.1, 1, and 10. For the GANITE generators and discriminators, we used MLP architectures with $L$ hidden layers of $M$ hidden units each. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
173,
|
| 1358 |
+
327,
|
| 1359 |
+
825,
|
| 1360 |
+
563
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 14
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "table",
|
| 1366 |
+
"img_path": "images/a4a66408d557807ead43a7aa22fa8ce64e51aa93159be43c497a0af669b10c99.jpg",
|
| 1367 |
+
"table_caption": [
|
| 1368 |
+
"Table S2: Hyperparameter ranges used in the performed experiments. "
|
| 1369 |
+
],
|
| 1370 |
+
"table_footnote": [],
|
| 1371 |
+
"table_body": "<table><tr><td>Hyperparameter</td><td>IHDP</td><td>News/TCGA</td></tr><tr><td>Batch size B</td><td>4,8,50,100</td><td>50</td></tr><tr><td>Number of units per hidden layer M5</td><td>50,100,200</td><td>40,60,80</td></tr><tr><td>Number of hidden layers L</td><td>1,2,3</td><td>2,3</td></tr></table>",
|
| 1372 |
+
"bbox": [
|
| 1373 |
+
292,
|
| 1374 |
+
595,
|
| 1375 |
+
709,
|
| 1376 |
+
664
|
| 1377 |
+
],
|
| 1378 |
+
"page_idx": 14
|
| 1379 |
+
},
|
| 1380 |
+
{
|
| 1381 |
+
"type": "text",
|
| 1382 |
+
"text": "I POLICY RISK $R _ { \\mathrm { P o L } } ( \\pi )$ ",
|
| 1383 |
+
"text_level": 1,
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
174,
|
| 1386 |
+
680,
|
| 1387 |
+
385,
|
| 1388 |
+
698
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 14
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "We define the policy risk $R _ { \\mathrm { P o l } } ( \\pi )$ as the expected loss in value when treating according to the policy $\\pi$ implied by an ITE estimator (Shalit et al. (2017)): ",
|
| 1395 |
+
"bbox": [
|
| 1396 |
+
171,
|
| 1397 |
+
713,
|
| 1398 |
+
823,
|
| 1399 |
+
741
|
| 1400 |
+
],
|
| 1401 |
+
"page_idx": 14
|
| 1402 |
+
},
|
| 1403 |
+
{
|
| 1404 |
+
"type": "equation",
|
| 1405 |
+
"img_path": "images/64302d1135199d1d275fa0a6e42bc8088c6a4804fad766ab394a6e801ca8997c.jpg",
|
| 1406 |
+
"text": "$$\nR _ { \\mathrm { P o l } } ( \\pi ) = 1 - ( \\mathbb { E } [ y _ { 1 } | \\pi ( X ) = 1 ] \\cdot p ( \\pi = 1 ) + \\mathbb { E } [ y _ { 0 } | \\pi ( X ) = 0 ] \\cdot p ( \\pi = 0 ) )\n$$",
|
| 1407 |
+
"text_format": "latex",
|
| 1408 |
+
"bbox": [
|
| 1409 |
+
250,
|
| 1410 |
+
747,
|
| 1411 |
+
746,
|
| 1412 |
+
765
|
| 1413 |
+
],
|
| 1414 |
+
"page_idx": 14
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"type": "text",
|
| 1418 |
+
"text": "where the policy $\\pi ( X )$ for a sample $X$ implied by an ITE estimator that produces potential outcomes $\\hat { y }$ is defined as: ",
|
| 1419 |
+
"bbox": [
|
| 1420 |
+
171,
|
| 1421 |
+
771,
|
| 1422 |
+
826,
|
| 1423 |
+
800
|
| 1424 |
+
],
|
| 1425 |
+
"page_idx": 14
|
| 1426 |
+
},
|
| 1427 |
+
{
|
| 1428 |
+
"type": "equation",
|
| 1429 |
+
"img_path": "images/82503d24722df5135ae22c8605cd4a4170a7965ce554cce48eee1be479bcf610.jpg",
|
| 1430 |
+
"text": "$$\n\\pi ( X ) = { \\left\\{ \\begin{array} { l l } { 1 } & { { \\mathrm { i f ~ } } { \\hat { y } } _ { 1 , X } - { \\hat { y } } _ { 0 , X } > \\lambda } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. } \\quad { \\mathrm { ( t o ~ t r e a t ) } }\n$$",
|
| 1431 |
+
"text_format": "latex",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
330,
|
| 1434 |
+
808,
|
| 1435 |
+
668,
|
| 1436 |
+
843
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 14
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "text",
|
| 1442 |
+
"text": "J ORIGINS OF PERFORMANCE NUMBERS IN TABLE 3 ",
|
| 1443 |
+
"text_level": 1,
|
| 1444 |
+
"bbox": [
|
| 1445 |
+
173,
|
| 1446 |
+
102,
|
| 1447 |
+
627,
|
| 1448 |
+
118
|
| 1449 |
+
],
|
| 1450 |
+
"page_idx": 15
|
| 1451 |
+
},
|
| 1452 |
+
{
|
| 1453 |
+
"type": "text",
|
| 1454 |
+
"text": "Where available, performance numbers in Table 3 were taken from the original authors for IHDP and Jobs (Table S3). For News-2/4/8/16 and TCGA, performance numbers were produced by us. ",
|
| 1455 |
+
"bbox": [
|
| 1456 |
+
174,
|
| 1457 |
+
132,
|
| 1458 |
+
821,
|
| 1459 |
+
161
|
| 1460 |
+
],
|
| 1461 |
+
"page_idx": 15
|
| 1462 |
+
},
|
| 1463 |
+
{
|
| 1464 |
+
"type": "table",
|
| 1465 |
+
"img_path": "images/f250afdd14f93b8be427f817094ba42e314ee81e223b7efe471e72e27096f5f9.jpg",
|
| 1466 |
+
"table_caption": [
|
| 1467 |
+
"Table S3: Origins of the performance results reported in Table 3. Entries show the reference to the original report of the performance results, or ”ours” if we produced the results. n.r. $=$ not reported "
|
| 1468 |
+
],
|
| 1469 |
+
"table_footnote": [],
|
| 1470 |
+
"table_body": "<table><tr><td>Method</td><td>IHDP</td><td>Jobs</td></tr><tr><td>PM</td><td>ours</td><td>ours</td></tr><tr><td>+on X</td><td>ours</td><td>ours</td></tr><tr><td>+ MLP</td><td>ours</td><td>ours</td></tr><tr><td>kNN</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>PSMPM</td><td>n.r.</td><td>ours</td></tr><tr><td>PSMMI</td><td>ours</td><td>ours</td></tr><tr><td>RF</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>CF</td><td>(Shalit et al. 2 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>BART</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>GANITE</td><td>(Yoon et al. 2018)</td><td>(Yoon et al. 2018)</td></tr><tr><td>BNN</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>PD</td><td>n.r.</td><td>n.r.</td></tr><tr><td>TARNET</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td>CFRNETwass</td><td>(Shalit et al. 2017)</td><td>(Shalit et al. 2017)</td></tr><tr><td></td><td></td><td></td></tr><tr><td>CEVAE CMGP</td><td>(Louizos et al. 2017) (Yoon et al. 2018)</td><td>(Louizos et al. 2017) (Yoon et al. 2018)</td></tr></table>",
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
303,
|
| 1473 |
+
210,
|
| 1474 |
+
691,
|
| 1475 |
+
468
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 15
|
| 1478 |
+
}
|
| 1479 |
+
]
|
parse/train/rkxt8oC9FQ/rkxt8oC9FQ_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkxt8oC9FQ/rkxt8oC9FQ_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/vYVI1CHPaQg/vYVI1CHPaQg.md
ADDED
|
@@ -0,0 +1,601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A BETTER ALTERNATIVE TO ERROR FEEDBACK FORCOMMUNICATION-EFFICIENT DISTRIBUTED LEARN-ING
|
| 2 |
+
|
| 3 |
+
Samuel Horváth and Peter Richtárik
|
| 4 |
+
KAUST
|
| 5 |
+
Thuwal, Saudi Arabia
|
| 6 |
+
{samuel.horvath, peter.richtarik}@kaust.edu.sa
|
| 7 |
+
|
| 8 |
+
# ABSTRACT
|
| 9 |
+
|
| 10 |
+
Modern large-scale machine learning applications require stochastic optimization algorithms to be implemented on distributed compute systems. A key bottleneck of such systems is the communication overhead for exchanging information (e.g., stochastic gradients) across the workers. Among the many techniques proposed to remedy this issue, one of the most successful is the framework of compressed communication with error feedback (EF). EF remains the only known technique that can deal with the error induced by contractive compressors which are not unbiased, such as Top- $K$ or PowerSGD. In this paper, we propose a new and theoretically and practically better alternative to EF for dealing with contractive compressors. In particular, we propose a construction which can transform any contractive compressor into an induced unbiased compressor. Following this transformation, existing methods able to work with unbiased compressors can be applied. We show that our approach leads to vast improvements over EF, including reduced memory requirements, better communication complexity guarantees and fewer assumptions. We further extend our results to federated learning with partial participation following an arbitrary distribution over the nodes, and demonstrate the benefits thereof. We perform several numerical experiments which validate our theoretical findings.
|
| 11 |
+
|
| 12 |
+
# 1 INTRODUCTION
|
| 13 |
+
|
| 14 |
+
We consider distributed optimization problems of the form
|
| 15 |
+
|
| 16 |
+
$$
|
| 17 |
+
\operatorname* { m i n } _ { x \in \mathbb { R } ^ { d } } f ( x ) : = { \textstyle { \frac { 1 } { n } } } \sum _ { i = 1 } ^ { n } f _ { i } ( x ) ,
|
| 18 |
+
$$
|
| 19 |
+
|
| 20 |
+
where $\boldsymbol { x } \in \mathbb { R } ^ { d }$ represents the weights of a statistical model we wish to train, $n$ is the number of nodes, and $f _ { i } \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } }$ is a smooth differentiable loss function composed of data stored on worker $i$ . In a classical distributed machine learning scenario, $f _ { i } ( x ) : = \mathrm { E } _ { \zeta \sim \mathcal { D } _ { i } } \left[ f _ { \zeta } ( x ) \right]$ is the expected loss of model $x$ with respect to the local data distribution $\mathcal { D } _ { i }$ of the form, and $f _ { \zeta } \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } }$ is the loss on the single data point $\zeta$ . This definition allows for different distributions $\mathcal { D } _ { 1 } , \ldots , \mathcal { D } _ { n }$ on each node, which means that the functions $f _ { 1 } , \ldots , f _ { n }$ can have different minimizers. This framework covers Stochastic Optimization when either $n = 1$ or all $\mathcal { D } _ { i }$ are identical, Empirical Risk Minimization (ERM), when $f _ { i } ( x )$ can be expressed as a finite average, i.e, $\begin{array} { r } { f _ { i } ( x ) = \frac { 1 } { m _ { i } } \dot { \sum _ { i = 1 } ^ { m _ { i } } f _ { i j } ( x ) } } \end{array}$ for some $f _ { i j } : \mathbb { R } ^ { d } \mathbb { R }$ , and Federated Learning (FL) (Kairouz et al., 2019) where each node represents a client.
|
| 21 |
+
|
| 22 |
+
Communication Bottleneck. In distributed training, model updates (or gradient vectors) have to be exchanged in each iteration. Due to the size of the communicated messages for commonly considered deep models (Alistarh et al., 2016), this represents significant bottleneck of the whole optimization procedure. To reduce the amount of data that has to be transmitted, several strategies were proposed.
|
| 23 |
+
|
| 24 |
+
One of the most popular strategies is to incorporate local steps and communicated updates every few iterations only (Stich, 2019a; Lin et al., 2018a; Stich & Karimireddy, 2020; Karimireddy et al.,
|
| 25 |
+
|
| 26 |
+
2019a; Khaled et al., 2020). Unfortunately, despite their practical success, local methods are poorly understood and their theoretical foundations are currently lacking. Almost all existing error guarantees are dominated by a simple baseline, minibatch SGD (Woodworth et al., 2020).
|
| 27 |
+
|
| 28 |
+
In this work, we focus on another popular approach: gradient compression. In this approach, instead of transmitting the full dimensional (gradient) vector $g \in \mathbb { R } ^ { d }$ , one transmits a compressed vector $\mathcal C ( g )$ , where $\mathcal { C } : \mathbb { R } ^ { d } \mathbb { R } ^ { d }$ is a (possibly random) operator chosen such that $\mathcal C ( g )$ can be represented using fewer bits, for instance by using limited bit representation (quantization) or by enforcing sparsity. A particularly popular class of quantization operators is based on random dithering (Goodall, 1951; Roberts, 1962); see (Alistarh et al., 2016; Wen et al., 2017; Zhang et al., 2017; Horváth et al., 2019a; Ramezani-Kebrya et al., 2019). Much sparser vectors can be obtained by random sparsification techniques that randomly mask the input vectors and only preserve a constant number of coordinates (Wangni et al., 2018; Konecný & Richtárik, 2018; Stich et al., 2018; Mishchenko et al., ˇ 2019b; Vogels et al., 2019). There is also a line of work (Horváth et al., $2 0 1 9 \mathrm { a }$ ; Basu et al., 2019) in which a combination of sparsification and quantization was proposed to obtain a more aggressive effect. We will not further distinguish between sparsification and quantization approaches, and refer to all of them as compression operators hereafter.
|
| 29 |
+
|
| 30 |
+
Considering both practice and theory, compression operators can be split into two groups: biased and unbiased. For the unbiased compressors, $\mathcal { C } ( g )$ is required to be an unbiased estimator of the update $g$ . Once this requirement is lifted, extra tricks are necessary for Distributed Compressed Stochastic Gradient Descent (DCSGD) (Alistarh et al., 2016; 2018; Khirirat et al., 2018) employing such a compressor to work, even if the full gradient is computed by each node. Indeed, the naive approach can lead to exponential divergence (Beznosikov et al., 2020), and Error Feedback (EF) (Seide et al., 2014; Karimireddy et al., 2019b) is the only known mechanism able to remedy the situation.
|
| 31 |
+
|
| 32 |
+
Contributions. Our contributions can be summarized as follows:
|
| 33 |
+
|
| 34 |
+
• Induced Compressor. When used within the stabilizing EF framework, biased compressors (e.g., Top- $K$ ) can often achieve superior performance when compared to their unbiased counterparts (e.g., Rand- $K$ ). This is often attributed to their low variance. However, despite ample research in this area, EF remains the only known mechanism that allows the use of these powerful biased compressors. Our key contribution is the development of a simple but remarkably effective alternative—and this is the only alternative we know of—which we argue leads to better and more versatile methods both in theory and practice. In particular, we propose a general construction that can transform any biased compressor, such as Top- $K$ , into an unbiased one for which we coin the name induced compressor (Section 3). Instead of using the desired biased compressor within EF, our proposal is to instead use the induced compressor within an appropriately chosen existing method designed for unbiased compressors, such as distributed compressed SGD (DCSGD) (Khirirat et al., 2018), variance reduced DCSGD (DIANA) (Mishchenko et al., 2019a) or accelerated DIANA (ADIANA) (Li et al., 2020). While EF can bee seen as a version of DCSGD which can work with biased compressors, variance reduced nor accelerated variants of EF were not known at the time of writing this paper.
|
| 35 |
+
|
| 36 |
+
• Better Theory for DCSGD. As a secondary contribution, we provide a new and tighter theoretical analysis of DCSGD under weaker assumptions. If $f$ is $\mu$ -quasi convex (not necessarily convex) and local functions $f _ { i }$ are $( L , \sigma ^ { 2 } )$ -smooth (weaker version of $L$ -smoothness with strong growth condition), we obtain the rate $\begin{array} { r } { \mathcal { O } \left( \delta _ { n } L r ^ { 0 } \exp \left[ - \frac { \mu T } { 4 \delta _ { n } L } \right] + \frac { ( \delta _ { n } - 1 ) D + { \delta \sigma } ^ { 2 } / n } { \mu T } \right) } \end{array}$ , where $\begin{array} { r } { \delta _ { n } = 1 + \frac { \delta - 1 } { n } } \end{array}$ and $\delta \geq 1$ is the parameter which bounds the second moment of the compression operator, and $T$ is the number of iterations. This rate has linearly decreasing dependence on the number of nodes $n$ , which is strictly better than the best-known rate for DCSGD with EF, whose convergence does not improve as the number of nodes increases, which is one of the main disadvantages of using EF. Moreover, EF requires extra assumptions. In addition, while the best-known rates for EF (Karimireddy et al., 2019b; Beznosikov et al., 2020) are expressed in terms of functional values, our theory guarantees convergence in both iterates and functional values. Another practical implication of our findings is the reduction of the memory requirements by half; this is because in DCSGD one does not need to store the error vector.
|
| 37 |
+
|
| 38 |
+
• Partial Participation. We further extend our results to obtain the first convergence guarantee for partial participation with arbitrary distributions over nodes, which plays a key role in Federated Learning (FL).
|
| 39 |
+
|
| 40 |
+
# Algorithm 1 DCSGD
|
| 41 |
+
|
| 42 |
+
1: Input: $\{ \eta ^ { k } \} _ { k = 0 } ^ { T } > 0 .$ , $x _ { 0 }$
|
| 43 |
+
2: for $k = 0 , 1 , \hdots T$ do
|
| 44 |
+
3: Parallel: Worker side
|
| 45 |
+
4: for $i = 1 , \ldots , n$ do
|
| 46 |
+
5: obtain $g _ { i } ^ { k }$
|
| 47 |
+
6: send $\Delta _ { i } ^ { k } = \mathcal { C } ^ { k } ( g _ { i } ^ { k } )$ to master
|
| 48 |
+
7: [no need to keep track of errors]
|
| 49 |
+
8: end for
|
| 50 |
+
9: Master side
|
| 51 |
+
10: aggregate $\begin{array} { r } { \Delta ^ { k } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \Delta _ { i } ^ { k } } \end{array}$
|
| 52 |
+
11: broadcast $\Delta ^ { k }$ to each worker
|
| 53 |
+
12: Parallel: Worker side
|
| 54 |
+
13: for $i = 1 , \ldots , n$ do
|
| 55 |
+
14: $x ^ { k + 1 } = x ^ { k } - \eta ^ { k } \Delta ^ { k }$
|
| 56 |
+
15: end for
|
| 57 |
+
16: end for
|
| 58 |
+
|
| 59 |
+
# Algorithm 2 DCSGD with Error Feedback
|
| 60 |
+
|
| 61 |
+
1: Input: $\{ \eta ^ { k } \} _ { k = 0 } ^ { T } > 0$ , $x _ { 0 }$ , $e _ { i } ^ { 0 } = 0 \forall i \in [ n ]$
|
| 62 |
+
2: for $k = 0 , 1 , \hdots T$ do
|
| 63 |
+
3: Parallel: Worker side
|
| 64 |
+
4: for $i = 1 , \ldots , n$ do
|
| 65 |
+
5: obtain $g _ { i } ^ { k }$
|
| 66 |
+
6: send $\Delta _ { i } ^ { k } = \mathcal { C } ^ { k } ( \eta ^ { k } g _ { i } ^ { k } + e _ { i } ^ { k } )$ to master
|
| 67 |
+
7: $e _ { i } ^ { k + 1 } = \eta ^ { k } g _ { i } ^ { k } + e _ { i } ^ { k } - \Delta _ { i } ^ { k }$
|
| 68 |
+
8: end for
|
| 69 |
+
9: 10: Master siaggregate $\begin{array} { r } { \Delta ^ { k } = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \Delta _ { i } ^ { k } } \end{array}$
|
| 70 |
+
11: broadcast $\Delta ^ { k }$ to each worker
|
| 71 |
+
12: Parallel: Worker side
|
| 72 |
+
13: for $i = 1 , \ldots , n$ do
|
| 73 |
+
14: $x ^ { k + 1 } = x ^ { k } - \Delta ^ { k }$
|
| 74 |
+
15: end for
|
| 75 |
+
16: end for
|
| 76 |
+
|
| 77 |
+
• Experimental Validation. Finally, we provide an experimental evaluation on an array of classification tasks with CIFAR10 dataset corroborating our theoretical findings.
|
| 78 |
+
|
| 79 |
+
# 2 ERROR FEEDBACK IS NOT A GOOD IDEA WHEN USING UNBIASED COMPRESSORS
|
| 80 |
+
|
| 81 |
+
In this section we first introduce the notions of unbiased and general compression operators, and then compare Distributed Compressed SGD (DCSGD) without (Algorithm 1) and with (Algorithm 2) Error Feedback.
|
| 82 |
+
|
| 83 |
+
Unbiased vs General Compression Operators. We start with the definition of unbiased and general compression operators (Cordonnier, 2018; Stich et al., 2018; Koloskova et al., 2019).
|
| 84 |
+
|
| 85 |
+
Definition 1 (Unbiased Compression Operator). A randomized mapping $\mathcal { C } \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } ^ { d } }$ is an unbiased compression operator (unbiased compressor) if there exists $\delta \geq 1$ such that
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
\begin{array} { r } { \mathrm { E } \left[ \mathcal { C } ( \boldsymbol { x } ) \right] = \boldsymbol { x } , \qquad \mathrm { E } \left. \mathcal { C } ( \boldsymbol { x } ) \right. ^ { 2 } \leq \delta \left. \boldsymbol { x } \right. ^ { 2 } , \qquad \forall \boldsymbol { x } \in \mathbb { R } ^ { d } . } \end{array}
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
If this holds, we will for simplicity write ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ .
|
| 92 |
+
|
| 93 |
+
Definition 2 (General Compression Operator). A (possibly) randomized mapping $\mathcal { C } \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } ^ { d } }$ is a general compression operator (general compressor) if there exists $\lambda > 0$ and $\delta \geq 1$ such that
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\begin{array} { r } { \mathrm { E } \left[ \left. \lambda \mathcal { C } ( x ) - x \right. ^ { 2 } \right] \leq \left( 1 - \frac { 1 } { \delta } \right) \left. x \right. ^ { 2 } , \qquad \forall x \in \mathbb { R } ^ { d } . } \end{array}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
If this holds, we will for simplicity write $\mathcal { C } \in \mathbb { C } ( \delta )$ .
|
| 100 |
+
|
| 101 |
+
The following lemma provides a link between these notions (see, e.g. Beznosikov et al. (2020)).
|
| 102 |
+
|
| 103 |
+
Lemma 1. If ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ , then (3) holds with $\begin{array} { r } { \lambda = \frac { 1 } { \delta } } \end{array}$ , i.e., $\mathcal { C } \in \mathbb { C } ( \delta )$ . That is, $\mathbb { U } ( \delta ) \subset \mathbb { C } ( \delta )$ .
|
| 104 |
+
|
| 105 |
+
Note that the opposite inclusion to that established in the above lemma does not hold. For instance, the Top- $K$ operator belongs to $\mathbb { C } ( \delta )$ , but does not belong to $\mathbb { U } ( \delta )$ . In the next section we develop a procedure for transforming any mapping $\mathcal { C } : \mathbb { R } ^ { d } \mathbb { R } ^ { d }$ (and in particular, any general compressor) into a closely related induced unbiased compressor.
|
| 106 |
+
|
| 107 |
+
Distributed SGD with vs without Error Feedback. In the rest of this section, we compare the convergence rates for DCSGD (Algorithm 1) and DCSGD with EF (Algorithm 2). We do this comparison under standard assumptions (Karimi et al., 2016; Bottou et al., 2018; Necoara et al., 2019; Gower et al., 2019; Stich, 2019b; Stich & Karimireddy, 2020), listed next.
|
| 108 |
+
|
| 109 |
+
First, we assume throughout that $f$ has a unique minimizer $x ^ { \star }$ , and let $f ^ { \star } = f ( x ^ { \star } ) > - \infty$ .
|
| 110 |
+
|
| 111 |
+
Assumption 1 ( $\mu$ -quasi convexity). $f$ is $\mu$ -quasi convex, i.e.,
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array} { r } { f ^ { \star } \geq f ( x ) + \langle \nabla f ( x ) , x ^ { \star } - x \rangle + \frac { \mu } { 2 } \left. x ^ { \star } - x \right. ^ { 2 } , \qquad \forall x \in \mathbb { R } ^ { d } . } \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
Assumption 2 (unbiased gradient oracle). The stochastic gradient used in Algorithms 1 and 2 satisfies
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\operatorname { E } \left[ g _ { i } ^ { k } \mid x ^ { k } \right] = \nabla f _ { i } ( x ^ { k } ) , \qquad \forall i , k .
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
Note that this assumption implies $\begin{array} { r } { \mathrm { E } \left[ \frac { 1 } { n } \sum _ { i = 1 } ^ { n } g _ { i } ^ { k } \mid x ^ { k } \right] = \nabla f ( x ^ { k } ) . } \end{array}$
|
| 124 |
+
|
| 125 |
+
Assumption 3 $( ( L , \sigma ^ { 2 } )$ -expected smoothness). Function $f$ is $( L , \sigma ^ { 2 } )$ -smooth if there exist constants $L > 0$ and $\sigma ^ { 2 } \geq 0$ such that $\forall i \in [ n ]$ and $\forall x ^ { k } \in \mathbb { R } ^ { d }$
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r } { \mathrm { E } \left[ \left\| g _ { i } ^ { k } \right\| ^ { 2 } \right] \leq 2 L ( f _ { i } ( x ^ { k } ) - f _ { i } ^ { \star } ) + \sigma ^ { 2 } , } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\begin{array} { r } { \mathrm { E } \left[ \left. \frac { 1 } { n } \sum _ { i = 1 } ^ { n } g _ { i } ^ { k } \right. ^ { 2 } \right] \leq 2 L ( f ( x ^ { k } ) - f ^ { \star } ) + \sigma ^ { 2 } / n , } \end{array}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
where $f _ { i } ^ { \star }$ is the minimum functional value of $f _ { i }$ and $[ n ] = \{ 1 , 2 , \dots , n \}$ .
|
| 136 |
+
|
| 137 |
+
This assumption generalizes standard smoothness and boundedness of variance assumptions. For more details and discussion, see the works of Gower et al. (2019); Stich (2019b). Equipped with these assumptions, we are ready to proceed with the convergence theory.
|
| 138 |
+
|
| 139 |
+
Theorem 2 (Convergence of DCSGD). Consider the DCSGD algorithm with $n \geq 1$ nodes. Let Assumptions $_ { I - 3 }$ hold and ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ , where $\begin{array} { r } { \delta _ { n } = \frac { \delta - 1 } { n } + 1 } \end{array}$ . Let $\begin{array} { r } { D : = \frac { 2 L } { n } \sum _ { i = 1 } ^ { n } ( f _ { i } ( x ^ { \star } ) - f _ { i } ^ { \star } ) } \end{array}$ . Then there exist stepsizes $\begin{array} { r } { \eta ^ { k } \leq \frac { 1 } { 2 \delta _ { n } L } } \end{array}$ and weights $w ^ { k } \geq 0$ such that for all $T \geq 1$ we have
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\begin{array} { r } { \mathrm { E } \left[ f ( \bar { x } ^ { T } ) - f ^ { \star } \right] + \mu \mathrm { E } \left[ \left. x ^ { T } - x ^ { \star } \right. ^ { 2 } \right] \leq 6 4 \delta _ { n } L r ^ { 0 } \exp \left[ - \frac { \mu T } { 4 \delta _ { n } L } \right] + 3 6 \frac { ( \delta _ { n } - 1 ) D + \delta \sigma ^ { 2 } / n } { \mu T } , } \end{array}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\begin{array} { r } { r ^ { 0 } = \left. x ^ { 0 } - x ^ { \star } \right. ^ { 2 } , W ^ { T } = \sum _ { k = 0 } ^ { T } w ^ { k } , a n d \operatorname* { P r o b } ( \bar { x } ^ { T } = x ^ { k } ) = w ^ { k } / W ^ { T } . } \end{array}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
If $\delta = 1$ (no compression), Theorem 2 recovers the optimal rate of Distributed SGD (Stich, 2019b). If $\delta > 1$ , there is an extra term $( \delta _ { n } - 1 ) D$ in the convergence rate, which appears due to heterogenity of data $\begin{array} { r } { ( \sum _ { i = 1 } ^ { n } \nabla f _ { i } ( x ^ { \star } ) = 0 } \end{array}$ , but $\textstyle \sum _ { i = 1 } ^ { n } { \mathcal { C } } ( \nabla f _ { i } ( x ^ { \star } ) ) \neq { \bar { 0 } }$ in general). In addition, the rate is negatively affected by extra variance due to presence of compression which leads to $L \delta _ { n } L$ and $\sigma ^ { 2 } / { n } \delta \sigma ^ { 2 } / n$ .
|
| 150 |
+
|
| 151 |
+
Next we compare our rate to the best-known result for Error Feedback (Stich & Karimireddy, 2020) $\ R = 1$ ), (Beznosikov et al., 2020) $( n \geq 1 )$ ) used with ${ \mathcal { C } } \in \mathbb { U } ( \delta ) \subset \mathbb { C } ( \delta )$
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\begin{array} { r } { \mathrm { E } \left[ f ( \bar { x } ^ { T } ) - f ^ { \star } \right] = \tilde { \mathcal { O } } \left( \delta L r ^ { 0 } \exp \left[ - \frac { \mu T } { \delta L } \right] + \frac { \delta D + \sigma ^ { 2 } } { \mu T } \right) } \end{array}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
One can note several disadvantages of Error Feedback (Alg. 2) with respect to plain DCSGD (Alg. 1). The first major drawback is that the effect of compression $\delta$ is not reduced with an increasing number of nodes. Another disadvantage is that Theorem 2 implies convergence for both the functional values and the last iterate, rather than for functional values only as it is the case for EF. On top of that, our rate of DCSGD as captured by Theorem 2 does not contain any hidden polylogarithmic factor comparing to EF. Another practical supremacy of DCSGD is that there is no need to store an extra vector for the error, which reduces the storage costs by a factor of two, making Algorithm 1 a viable choice for Deep Learning models with millions of parameters. Finally, one does not need to assume standard $L$ -smoothness in order to prove convergence in Theorem 2, while, one the other hand, $L$ -smoothness is an important building block for proving convergence for general compressors due to the presence of bias (Stich & Karimireddy, 2020; Beznosikov et al., 2020). The only term in which EF might outperform plain DCSGD is $\bar { \mathcal { O } } ( \sigma ^ { 2 } / \mu T )$ for which the corresponding term is $\mathcal { O } ( \delta \sigma ^ { 2 } / n \mu T )$ . This is due to the fact that EF compensates for the error, while standard compression introduces extra variance. Note that this is not major issue as it is reasonable to assume $\delta / { \it n } = \mathcal { O } ( 1 )$ or, in addition, $\sigma ^ { 2 } = 0$ if weak growth condition holds (Vaswani et al., 2019), which is quite standard assumption, or one can remove effect of $\sigma ^ { 2 }$ by either computing full gradient locally or by incorporating variance reduction such as SVRG (Johnson & Zhang, 2013). In Section 4, we also discuss the way how to remove the effect of $D$ in Theorem 2. Putting all together, this suggests that standard DCSGD (Algorithm 1) is strongly preferable, in theory, to DCSGD with Error Feedback (Algorithm 2) for ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ .
|
| 158 |
+
|
| 159 |
+
# 3 INDUCED COMPRESSOR: FIXING BIAS WITH ERROR-COMPRESSION
|
| 160 |
+
|
| 161 |
+
In the previous section, we showed that compressed DCSGD is theoretically preferable to DCSGD with Error Feedback for ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ . Unfortunately, $\mathbb { C } ( \delta ) \ \not \subset \ \mathbb { U } ( \delta )$ , an example being the Top- $K$ compressor (Alistarh et al., 2018; Stich et al., 2018). This compressors belongs to $\mathbb { C } ( { \frac { d } { K } } )$ , but does not belong to $\mathbb { U } ( \delta )$ for any $\delta$ . On the other hand, multiple unbiased alternatives to Top- $\bar { K }$ have been proposed in the literature, including gradient sparsification (Wangni et al., 2018) and adaptive random sparsification (Beznosikov et al., 2020).
|
| 162 |
+
|
| 163 |
+
Induced Compressor. We now propose a general mechanism for constructing an unbiased compressor ${ \mathcal { C } } \in \mathbb { U }$ from any biased compressor ${ \mathcal { C } } _ { 1 } \in \mathbb { C }$ . We shall argue that it is preferable to use this induced compressor within DCSGD, in both theory and practice, to using the original biased compressor $\mathcal { C } _ { 1 }$ within DCSGD $^ +$ Error Feedback.
|
| 164 |
+
|
| 165 |
+
Theorem 3. For $\mathcal { C } _ { 1 } \in \mathbb { C } ( \delta _ { 1 } )$ with $\lambda = 1$ , choose $\mathcal { C } _ { 2 } \in \mathbb { U } ( \delta _ { 2 } )$ and define the induced compressor via
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
{ \mathcal { C } } ( x ) : = { \mathcal { C } } _ { 1 } ( x ) + { \mathcal { C } } _ { 2 } ( x - { \mathcal { C } } _ { 1 } ( x ) ) .
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
The induced compression operator satisfies ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ with $\delta = \delta _ { 2 } \left( 1 - \AA ^ { 1 } / \delta _ { 1 } \right) + \delta _ { 2 } \delta _ { 1 }$
|
| 172 |
+
|
| 173 |
+
To get some intuition about this procedure, recall the structure used in Error Feedback. The gradient estimator is first compressed with $\mathcal { C } _ { 1 } ( g )$ and the error $e = g - \mathcal { C } _ { 1 } ( g )$ is stored in memory and used to modify the gradient in the next iteration. In our proposed approach, instead of storing the error $e$ , we compress it with an unbiased compressor $\mathcal { C } _ { 2 }$ (which can be seen as a parameter allowing flexibility in the design of the induced compressor) and communicate both of these compressed vectors. Note that this procedure results in extra variance as we do not work with the exact error, but with its unbiased estimate only. On the other hand, there is no bias and error accumulation that one needs to correct for. In addition, due to our construction, at least the same amount of information is sent to the master as in the case of plain $\mathcal { C } _ { 1 } ( g )$ : indeed, we send both $\mathcal { C } _ { 1 } ( g )$ and $\mathcal { C } _ { 2 } ( e )$ . The drawback of this is the necessity to send more bits. However, Theorem 3 provides the freedom in generating the induced compressor through the choice of the unbiased compressor $\mathcal { C } _ { 2 }$ . In theory, it makes sense to choose $\mathcal { C } _ { 2 }$ with similar compression factor to the compressor $\mathcal { C } _ { 1 }$ we are transforming as this way the total number of communicated bits per iteration is preserved, up to the factor of two.
|
| 174 |
+
|
| 175 |
+
Remark: The $\mathrm { r t o p } _ { k _ { 1 } , k _ { 2 } } ( x , y )$ operator proposed by Elibol et al. (2020) can be seen as a special case of our induced compressor with $x = y$ , $\mathcal { C } _ { 1 } = \mathrm { T o p } \mathrm { - } k _ { 1 }$ and $\mathcal { C } _ { 2 } = \mathrm { R a n d } \ – k _ { 2 }$ .
|
| 176 |
+
|
| 177 |
+
Benefits of Induced Compressor. In the light of the results in Section 2, we argue that one should always prefer unbiased compressors to biased ones as long as their variances $\delta$ and communication complexities are the same, e.g., Rand- $K$ over Top- $K$ . In practice, biased/greedy compressors are in some settings observed to perform better due to their lower empirical variance (Beznosikov et al., 2020). These considerations give a practical significance to Theorem 3 as we demonstrate on the following example. Let us consider two compressors: one biased $\mathcal { C } _ { 1 } \in \mathbb { C } ( \delta _ { 1 } )$ and one unbiased $\mathcal { C } _ { 2 } \in \mathbb { U } ( \delta _ { 2 } )$ , such that $\delta _ { 1 } = \delta _ { 2 } = \delta$ , having identical communication complexity, e.g., Top- $K$ and Rand- $K$ . The induced compressor $\mathcal { C } ( \boldsymbol { x } ) \mathbf { \bar { \Psi } } { = } \mathcal { C } _ { 1 } ( \boldsymbol { x } ) + \mathcal { C } _ { 2 } ( \boldsymbol { x } - \mathcal { C } _ { 1 } ( \boldsymbol { x } ) )$ belongs to $\mathbb { U } ( \delta _ { 3 } )$ , where $\begin{array} { r } { \delta _ { 3 } = \delta - \left( 1 - \frac { 1 } { \delta } \right) < \delta } \end{array}$ . While the size of the transmitted message is doubled, one can use Algorithm 1 since $\mathcal { C }$ is unbiased, which provides better convergence guarantees than Algorithm 2. Based on the construction of the induced compressor, one might expect that we need extra memory as “the error” $e = g - \mathcal { C } _ { 1 } ( g )$ needs to be stored, but during computation only. This is not an issue as compressors for DNNs are always applied layer-wise (Dutta et al., 2019), and hence the size of the extra memory is negligible. It does not help EF, as the error needs to be stored at any time for each layer.
|
| 178 |
+
|
| 179 |
+
# 4 EXTENSIONS
|
| 180 |
+
|
| 181 |
+
We now develop several extensions of Algorithm 1 relevant to distributed optimization in general, and to Federated Learning in particular. This is all possible due to the simplicity of our approach. Note that in the case of Error Feedback, these extensions have either not been obtained yet, or similarly to Section 2, the results are worse when compared to our derived bounds for unbiased compressors.
|
| 182 |
+
|
| 183 |
+
Partial Participation with Arbitrary Distribution over Nodes. In this section, we extend our results to a variant of DCSGD utilizing partial participation, which is of key relevance to Federated
|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
Figure 1: Comparison of Top-1 $\mathrm { ( + E F ) }$ and NU Rand-1 on Example 1 from Beznosikov et al. (2020).
|
| 187 |
+
|
| 188 |
+
Learning. In this framework, only a subset of all nodes communicates to the master node in each communication round. Such framework was analyzed before, but only for the case of uniform subsampling (Sattler et al., 2019; Reisizadeh et al., 2020). In our work, we consider a more general partial participation framework: we assume that the subset of participating clients is determined by a fixed but otherwise arbitrary random set-valued mapping $\mathbb { S }$ (a “sampling”) with values in $2 ^ { [ n ] }$ , where $[ n ] = \{ 1 , 2 , \dots , n \}$ . To the best of our knowledge, this is the first partial participation result for $\mathrm { F L }$ where an arbitrary distribution over the nodes is considered. On the other hand, this is not the first work which makes use of the arbitrary sampling paradigm; this was used before in other contexts, e.g., for obtaining importance sampling guarantees for coordinate descent (Qu et al., 2015), primal-dual methods (Chambolle et al., 2018), and variance reduction (Horváth & Richtárik, 2019).
|
| 189 |
+
|
| 190 |
+
Note that the sampling $\mathbb { S }$ is uniquely defined by assigning probabilities to all $2 ^ { n }$ subsets of $[ n ]$ . With each sampling $\mathbb { S }$ we associate a probability matrix $\mathbf { P } \in \mathbb { R } ^ { n \times n }$ defined by $\mathbf { P } _ { i j } : = \mathrm { P r o b } ( \{ i , j \} \subseteq \mathbb { S } )$ . The probability vector associated with $\mathbb { S }$ is the vector composed of the diagonal entries of $\mathbf { P }$ : $p = ( p _ { 1 } , \ldots , p _ { n } ) \in \mathbb { R } ^ { n }$ , where $p _ { i } : = { \mathrm { P r o b } } ( i \in \mathbb { S } ) .$ . We say that $\mathbb { S }$ is proper if $p _ { i } > 0$ for all $i$ . It is easy to show that $\begin{array} { r } { b : = \operatorname { E } \left[ | \mathbb { S } | \right] = \operatorname { T r a c e } \left( \mathbf { P } \right) = \sum _ { i = 1 } ^ { n } p _ { i } } \end{array}$ , and hence $b$ can be seen as the expected number of clients participating in each communication round.
|
| 191 |
+
|
| 192 |
+
There are two algorithmic changes due to this extension: line 4 of Algorithm 1 does not iterate over every node, only over nodes $i \in S ^ { k }$ , where $S ^ { k } \sim \mathbb S$ , and the aggregation step in line 9 is adjusted to lead to an unbiased estimator of the gradient, which gives ∆k = Pi∈Sk 1np .
|
| 193 |
+
|
| 194 |
+
To prove convergence, we exploit the following lemma.
|
| 195 |
+
|
| 196 |
+
Lemma 4 (Lemma 1, Horváth & Richtárik (2019)). Let be vectors in $\mathbb { R } ^ { d }$ and let $\textstyle { \bar { \zeta } } : = { \frac { 1 } { n } } \sum _ { i = 1 } ^ { n } \zeta _ { i }$ be their average. Let $\mathbb { S }$ 1 2 n be a proper sampling. Then there exists $v \in \mathbb { R } ^ { n }$ such
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\mathbf { P } - p p ^ { \intercal } \preceq \mathbf { D i a g } \left( p _ { 1 } v _ { 1 } , p _ { 2 } v _ { 2 } , \ldots , p _ { n } v _ { n } \right) .
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
Moreover, if $S \sim \mathbb { S } ,$ , then
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
\begin{array} { r } { \mathrm { E } \left[ \left. \displaystyle \sum _ { i \in S } \frac { \zeta _ { i } } { n p _ { i } } - \bar { \zeta } \right. ^ { 2 } \right] \leq \frac { 1 } { n ^ { 2 } } \displaystyle \sum _ { i = 1 } ^ { n } \frac { v _ { i } } { p _ { i } } \| \zeta _ { i } \| ^ { 2 } . } \end{array}
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
The following theorem establishes the convergence rate for Algorithm 1 with partial participation.
|
| 209 |
+
|
| 210 |
+
Theorem 5. Let Assumptions $_ { I - 3 }$ hold and ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ , then there exist stepsizes $\eta ^ { k } \leq \frac { 1 } { 2 \delta _ { \mathbb { S } } L }$ and weights $w ^ { k } \geq 0$ such that
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
\begin{array} { r } { \mathrm { E } \left[ f ( \bar { x } ^ { T } ) - f ^ { \star } \right] + \mu \mathrm { E } \left[ \left. x ^ { T } - x ^ { \star } \right. ^ { 2 } \right] \leq 6 4 \delta _ { \mathrm { S } } L r ^ { 0 } \exp \left[ - \frac { \mu T } { 4 \delta _ { \mathrm { S } } L } \right] + 3 6 \frac { ( \delta _ { \mathrm { S } } - 1 ) D + ( 1 + a _ { \mathrm { S } } ) \delta \sigma ^ { 2 } / n } { \mu T } , } \end{array}
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
where $\boldsymbol { r } ^ { 0 } , \boldsymbol { W } ^ { T } , \bar { \boldsymbol { x } } ^ { T }$ , and $D$ are defined in Theorem 2, $a _ { \mathbb { S } } = \operatorname* { m a x } _ { i \in [ n ] } \left\{ v _ { i } / p _ { i } \right\}$ , and $\begin{array} { r } { \delta _ { \mathbb { S } } = \frac { \delta a _ { \mathbb { S } } + ( \delta - 1 ) } { n } + 1 . } \end{array}$
|
| 217 |
+
|
| 218 |
+
For the case $\mathbb { S } = [ n ]$ with probability 1, one can show that Lemma 4 holds with $v = 0$ , and hence we exactly recover the results of Theorem 2. In addition, we can quantify the slowdown factor with respect to full participation regime (Theorem 2), which is δ maxi∈[n] vipi . While in our framework we assume the distribution $\mathbb { S }$ to be fixed, it can be easily extended to several proper distributions $\mathbb { S } _ { j }$ ’s or we can even handle a block-cyclic structure with each block having an arbitrary proper distribution $\mathbb { S } _ { j }$ over the given block $j$ combining our analysis with the results of Eichner et al. (2019).
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Figure 2: Algorithm 1 vs. Algorithm 2 on CIFAR10 with ResNet18 (bottom), VGG11 (top) and TernGrad as a compression.
|
| 222 |
+
|
| 223 |
+
Obtaining Linear Convergence. Note that in all the previous theorems, we can only guarantee a sublinear $\bar { \mathcal { O } } ( 1 / T )$ convergence rate. Linear rate is obtained in the special case when $D = 0$ and $\sigma ^ { 2 } = 0$ . The first condition is satisfied, when $f _ { i } ^ { \star } = f _ { i } ( x ^ { \star } )$ for all $\bar { i } \in [ n ]$ , thus when $x ^ { \star }$ is also minimizer of every local function $f _ { i }$ . Furthermore, the effect od $D$ can be removed using compression of gradient differences, as pioneered in the DIANA algorithm (Mishchenko et al., 2019a). Note that $\sigma ^ { 2 } = 0$ if weak growth condition holds (Vaswani et al., 2019). Moreover, one can remove effect of $\sigma ^ { 2 }$ by either computing full gradients locally or by incorporating variance reduction such as SVRG (Johnson & Zhang, 2013). It was shown by Horváth et al. (2019b) that both $\sigma ^ { 2 }$ and $D$ can be removed for the setting of Theorem 2. These results can be easily extended to partial participation using our proof technique for Theorem 5. Note that this reduction is not possible for Error Feedback as the analysis of the DIANA algorithm is heavily dependent on the unbiasedness property. This points to another advantage of the induced compressor framework introduced in Section 3.
|
| 224 |
+
|
| 225 |
+
Acceleration. We now comment on the combination of compression and acceleration/momentum. This setting is very important to consider as essentially all state-of-the-art methods for training deep learning models, including Adam (Kingma & Ba, 2015; Reddi et al., 2018), rely on the use of momentum in one form or another. One can treat the unbiased compressed gradient as a stochastic gradient (Gorbunov et al., 2020) and the theory for momentum SGD (Yang et al., 2016; Gadat et al., 2018; Loizou & Richtárik, 2017) would be applicable with an extra smoothness assumption. Moreover, it is possible to remove the variance caused by stochasticity and obtain linear convergence with an accelerated rate, which leads to the Accelerated DIANA method (Li et al., 2020). Similarly to our previous discussion, both of these techniques are heavily dependent on the unbiasedness property. It is an intriguing question, but out of the scope of the paper, to investigate the combined effect of momentum and Error Feedback and see whether these techniques are compatible theoretically.
|
| 226 |
+
|
| 227 |
+
# 5 EXPERIMENTS
|
| 228 |
+
|
| 229 |
+
In this section, we compare Algorithms 1 and 2 for several compression operators. If the method contains $^ { 6 6 } + \mathrm { E F } ^ { 5 9 }$ , it means that EF is applied, thus Algorithm 2 is applied. Otherwise, Algorithm 1 is displayed. To be fair, we always compare methods with the same communication complexity per iteration. All experimental details can be found in the Appendix.
|
| 230 |
+
|
| 231 |
+
Failure of DCSGD with biased Top-1. In this experiment, we present example considered in Beznosikov et al. (2020), which was used as a counterexample to show that some form of error correction is needed in order for biased compressors to work/provably converge. In addition, we run experiments on their construction and show that while Error Feedback fixes divergence, it is still significantly dominated by unbiased non-uniform sparsification(NU Rand-1), which works by only keeping one non-zero coordinate sampled with probability equal to $| \boldsymbol { x } | \big / \Sigma _ { i = 1 } ^ { d } | \boldsymbol { x } | _ { i }$ , where $| x |$ denotes element-wise absolute value, as can be seen in Figure 1. The details can be found in the Appendix.
|
| 232 |
+
|
| 233 |
+

|
| 234 |
+
Figure 3: Comparison of different sparsification techniques with and without usage of Error Feedback on CIFAR10 with Resnet18 (top) and VGG11 (bottom). $K = 5 \% * d$ , for Induced compressor $\mathcal { C } _ { 1 }$ is Top- $K / 2$ and $\mathcal { C } _ { 2 }$ is Rand- $\kappa / { } _ { 2 }$ (Wangni et al.).
|
| 235 |
+
|
| 236 |
+
Error Feedback for Unbiased Compression Operators. In our second experiment, we compare the effect of Error Feedback in the case when an unbiased compressor is used. Note that unbiased compressors are theoretically guaranteed to work both with Algorithm 1 and 2. We can see from Figure 2 that adding Error Feedback can hurt the performance; we use TernGrad (Wen et al., 2017) (coincides with QSGD (Alistarh et al., 2016) and natural dithering (Horváth et al., 2019a) with the infinity norm and one level) as compressors. This agrees with our theoretical findings. In addition, for sparsification techniques such as Random Sparsification or Gradient Sparsification (Wangni et al., 2018), we observed that when sparsity is set to be $10 \%$ , Algorithm 1 converges for all the selected values of step-sizes, but Algorithm 2 diverges and a smaller step-size needs to be used. This is an important observation as many practical works (Li et al., 2014; Wei et al., 2015; Aji & Heafield, 2017; Hsieh et al., 2017; Lin et al., 2018b; Lim et al., 2018) use sparsification techniques mentioned in this section, but proposed to use EF, while our work shows that using unbiasedness property leads not only to better convergence but also to memory savings.
|
| 237 |
+
|
| 238 |
+
Unbiased Alternatives to Biased Compression. In this section, we investigate candidates for unbiased compressors than can compete with Top- $K$ , one of the most frequently used compressors. Theoretically, Top- $K$ is not guaranteed to work by itself and might lead to divergence (Beznosikov et al., 2020) unless Error Feedback is applied. One would usually compare the performance of Top- $K$ with EF to Rand- $K$ , which keeps $K$ randomly selected coordinates and then scales the output by $d / \kappa$ to preserve unbiasedness. Rather than naively comparing to Rand- $K$ , we propose to use more nuanced unbiased approaches. The first one is Gradient Sparsification proposed by Wagni et al. (Wangni et al., 2018), which we refer to here as Rand- $K$ (Wangni et al.), where the probability of keeping each coordinate scales with its magnitude and communication budget. As the second alternative, we propose to use our induced compressor, where $\mathcal { C } _ { 1 }$ is Top- $a$ and unbiased part $\mathcal { C } _ { 2 }$ is Rand- $( K - a )$ (Wangni et al.) with communication budget $K - a$ . It should be noted that $a$ can be considered as a hyperparameter to tune. For our experiment, we chose it to be $K / 2$ for simplicity. Figure 3 suggests that our induced compressor outperforms all of its competitors as can be seen for both VGG11 and Resnet18. Moreover, induced compressor as well as Rand- $K$ do not require extra memory to store the error vector. Finally, Top- $K$ without EF suffers a significant decrease in performance, which stresses the necessity of error correction.
|
| 239 |
+
|
| 240 |
+
# 6 CONCLUSION
|
| 241 |
+
|
| 242 |
+
In this paper, we argue that if compressed communication is required for distributed training due to communication overhead, it is better to use unbiased compressors. We show that this leads to strictly better convergence guarantees with fewer assumptions. In addition, we propose a new construction for transforming any compressor into an unbiased one using a compressed EF-like approach. Besides theoretical superiority, usage of unbiased compressors enjoys lower memory requirements. Our theoretical findings are corroborated with empirical evaluation.
|
| 243 |
+
|
| 244 |
+
As a future work we plan to investigate the question of the appropriate choice of the inducing compressor $\mathcal { C }$ . Our preliminary studies show that there is much to be discovered here, both in theory and in terms of developing further practical guidelines to those already contained in this work. The question of (theoretically) optimizing for $\mathcal { C } _ { 1 }$ and $\mathcal { C } _ { 2 }$ is difficult, as it necessitates a deeper theoretical understanding of biased compressors, which is currently missing. An alternative is to impose some assumptions on the structure of gradients encountered during the iterative process, or to perform an extensive experimental evaluation on desired tasks to provide guidelines for practitioners.
|
| 245 |
+
|
| 246 |
+
# REFERENCES
|
| 247 |
+
|
| 248 |
+
Alham Fikri Aji and Kenneth Heafield. Sparse communication for distributed gradient descent. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, 2017.
|
| 249 |
+
|
| 250 |
+
Dan Alistarh, Jerry Li, Ryota Tomioka, and Milan Vojnovic. QSGD: Randomized quantization for communication-optimal stochastic gradient descent. arXiv preprint arXiv:1610.02132, 2016.
|
| 251 |
+
|
| 252 |
+
Dan Alistarh, Torsten Hoefler, Mikael Johansson, Nikola Konstantinov, Sarit Khirirat, and Cédric Renggli. The convergence of sparsified gradient methods. In Advances in Neural Information Processing Systems, pp. 5973–5983, 2018.
|
| 253 |
+
|
| 254 |
+
Debraj Basu, Deepesh Data, Can Karakus, and Suhas Diggavi. Qsparse-local-SGD: Distributed SGD with quantization, sparsification and local computations. In Advances in Neural Information Processing Systems, pp. 14668–14679, 2019.
|
| 255 |
+
|
| 256 |
+
Aleksandr Beznosikov, Samuel Horvath, Peter Richtárik, and Mher Safaryan. On biased compression for distributed learning. arXiv preprint arXiv:2002.12410, 2020.
|
| 257 |
+
|
| 258 |
+
Léon Bottou, Frank E Curtis, and Jorge Nocedal. Optimization methods for large-scale machine learning. Siam Review, 60(2):223–311, 2018.
|
| 259 |
+
|
| 260 |
+
Antonin Chambolle, Matthias J Ehrhardt, Peter Richtárik, and Carola-Bibiane Schonlieb. Stochastic primal-dual hybrid gradient algorithm with arbitrary sampling and imaging applications. SIAM Journal on Optimization, 28(4):2783–2808, 2018.
|
| 261 |
+
|
| 262 |
+
Jean-Baptiste Cordonnier. Convex optimization using sparsified stochastic gradient descent with memory. Technical report, 2018.
|
| 263 |
+
|
| 264 |
+
Aritra Dutta, El Houcine Bergou, Ahmed M Abdelmoniem, Chen-Yu Ho, Atal Narayan Sahu, Marco Canini, and Panos Kalnis. On the discrepancy between the theoretical analysis and practical implementations of compressed communication for distributed deep learning. arXiv preprint arXiv:1911.08250, 2019.
|
| 265 |
+
|
| 266 |
+
Hubert Eichner, Tomer Koren, H Brendan McMahan, Nathan Srebro, and Kunal Talwar. Semi-cyclic stochastic gradient descent. arXiv preprint arXiv:1904.10120, 2019.
|
| 267 |
+
|
| 268 |
+
Melih Elibol, Lihua Lei, and Michael I Jordan. Variance reduction with sparse gradients. arXiv preprint arXiv:2001.09623, 2020.
|
| 269 |
+
|
| 270 |
+
Sébastien Gadat, Fabien Panloup, Sofiane Saadane, et al. Stochastic heavy ball. Electronic Journal of Statistics, 12(1):461–529, 2018.
|
| 271 |
+
|
| 272 |
+
WM Goodall. Television by pulse code modulation. Bell System Technical Journal, 30(1):33–49, 1951.
|
| 273 |
+
|
| 274 |
+
Eduard Gorbunov, Filip Hanzely, and Peter Richtárik. A unified theory of sgd: Variance reduction, sampling, quantization and coordinate descent. In The 23rd International Conference on Artificial Intelligence and Statistics, 2020.
|
| 275 |
+
|
| 276 |
+
Robert Mansel Gower, Nicolas Loizou, Xun Qian, Alibek Sailanbayev, Egor Shulgin, and Peter Richtárik. SGD: General analysis and improved rates. Proceedings of the 36th International Conference on Machine Learning, Long Beach, California, 2019.
|
| 277 |
+
|
| 278 |
+
Benjamin Grimmer. Convergence rates for deterministic and stochastic subgradient methods without Lipschitz continuity. SIAM Journal on Optimization, 29(2):1350–1365, 2019.
|
| 279 |
+
|
| 280 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 770–778, 2016.
|
| 281 |
+
|
| 282 |
+
Samuel Horváth and Peter Richtárik. Nonconvex variance reduced optimization with arbitrary sampling. Proceedings of the 36th International Conference on Machine Learning, 2019.
|
| 283 |
+
|
| 284 |
+
Samuel Horváth, Chen-Yu Ho, L’udovit Horváth, Atal Narayan Sahu, Marco Canini, and Peter Richtárik. Natural compression for distributed deep learning. arXiv preprint arXiv:1905.10988, 2019a.
|
| 285 |
+
|
| 286 |
+
Samuel Horváth, Dmitry Kovalev, Konstantin Mishchenko, Sebastian Stich, and Peter Richtárik. Stochastic distributed learning with gradient quantization and variance reduction. arXiv preprint arXiv:1904.05115, 2019b.
|
| 287 |
+
|
| 288 |
+
Kevin Hsieh, Aaron Harlap, Nandita Vijaykumar, Dimitris Konomis, Gregory R Ganger, Phillip B Gibbons, and Onur Mutlu. Gaia: Geo-distributed machine learning approaching LAN speeds. In 14th Symposium on Networked Systems Design and Implementation, pp. 629–647, 2017.
|
| 289 |
+
|
| 290 |
+
Rie Johnson and Tong Zhang. Accelerating stochastic gradient descent using predictive variance reduction. In Advances in neural information processing systems, pp. 315–323, 2013.
|
| 291 |
+
|
| 292 |
+
Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Keith Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. arXiv preprint arXiv:1912.04977, 2019.
|
| 293 |
+
|
| 294 |
+
Hamed Karimi, Julie Nutini, and Mark Schmidt. Linear convergence of gradient and proximalgradient methods under the polyak-łojasiewicz condition. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 795–811. Springer, 2016.
|
| 295 |
+
|
| 296 |
+
Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J Reddi, Sebastian U Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for on-device federated learning. arXiv preprint arXiv:1910.06378, 2019a.
|
| 297 |
+
|
| 298 |
+
Sai Praneeth Karimireddy, Quentin Rebjock, Sebastian U Stich, and Martin Jaggi. Error feedback fixes signSGD and other gradient compression schemes. arXiv preprint arXiv:1901.09847, 2019b.
|
| 299 |
+
|
| 300 |
+
Ahmed Khaled, Konstantin Mishchenko, and Peter Richtárik. Tighter theory for local SGD on identical and heterogeneous data. In The 23rd International Conference on Artificial Intelligence and Statistics (AISTATS 2020), 2020.
|
| 301 |
+
|
| 302 |
+
Sarit Khirirat, Hamid Reza Feyzmahdavian, and Mikael Johansson. Distributed learning with compressed gradients. arXiv preprint arXiv:1806.06573, 2018.
|
| 303 |
+
|
| 304 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. Published as a conference paper at the 3rd International Conference for Learning Representations, San Diego, 2015.
|
| 305 |
+
|
| 306 |
+
Anastasia Koloskova, Sebastian U Stich, and Martin Jaggi. Decentralized stochastic optimization and gossip algorithms with compressed communication. arXiv preprint arXiv:1902.00340, 2019.
|
| 307 |
+
|
| 308 |
+
Jakub Konecný and Peter Richtárik. Randomized distributed mean estimation: Accuracy vs. commu- ˇ nication. Frontiers in Applied Mathematics and Statistics, 4:62, 2018.
|
| 309 |
+
|
| 310 |
+
Simon Lacoste-Julien, Mark Schmidt, and Francis Bach. A simpler approach to obtaining an $\mathcal { O } ( 1 / t )$ convergence rate for the projected stochastic subgradient method. arXiv preprint arXiv:1212.2002, 2012.
|
| 311 |
+
|
| 312 |
+
Mu Li, David G Andersen, Jun Woo Park, Alexander J Smola, Amr Ahmed, Vanja Josifovski, James Long, Eugene J Shekita, and Bor-Yiing Su. Scaling distributed machine learning with the parameter server. In 11th {USENIX} Symposium on Operating Systems Design and Implementation $\{ O S D I \}$ 14), pp. 583–598, 2014.
|
| 313 |
+
|
| 314 |
+
Zhize Li, Dmitry Kovalev, Xun Qian, and Peter Richtárik. Acceleration for compressed gradient descent in distributed and federated optimization. arXiv preprint arXiv:2002.11364, 2020.
|
| 315 |
+
|
| 316 |
+
Hyeontaek Lim, David G Andersen, and Michael Kaminsky. 3LC: Lightweight and effective traffic compression for distributed machine learning. arXiv preprint arXiv:1802.07389, 2018.
|
| 317 |
+
|
| 318 |
+
Tao Lin, Sebastian U Stich, Kumar Kshitij Patel, and Martin Jaggi. Don’t use large mini-batches, use local SGD. arXiv preprint arXiv:1808.07217, 2018a.
|
| 319 |
+
|
| 320 |
+
Yujun Lin, Song Han, Huizi Mao, Yu Wang, and William J Dally. Deep gradient compression: Reducing the communication bandwidth for distributed training. ICLR 2018 - International Conference on Learning Representations, 2018b.
|
| 321 |
+
|
| 322 |
+
Nicolas Loizou and Peter Richtárik. Momentum and stochastic momentum for stochastic gradient, Newton, proximal point and subspace descent methods. arXiv preprint arXiv:1712.09677, 2017.
|
| 323 |
+
|
| 324 |
+
Konstantin Mishchenko, Eduard Gorbunov, Martin Takác, and Peter Richtárik. Distributed learning ˇ with compressed gradient differences. arXiv preprint arXiv:1901.09269, 2019a.
|
| 325 |
+
|
| 326 |
+
Konstantin Mishchenko, Filip Hanzely, and Peter Richtárik. $9 9 \%$ of parallel optimization is inevitably a waste of time. arXiv preprint arXiv:1901.09437, 2019b.
|
| 327 |
+
|
| 328 |
+
Ion Necoara, Yu Nesterov, and Francois Glineur. Linear convergence of first order methods for non-strongly convex optimization. Mathematical Programming, 175(1-2):69–107, 2019.
|
| 329 |
+
|
| 330 |
+
Zheng Qu, Peter Richtárik, and Tong Zhang. Quartz: Randomized dual coordinate ascent with arbitrary sampling. In Advances in Neural Information Processing Systems, pp. 865–873, 2015.
|
| 331 |
+
|
| 332 |
+
Ali Ramezani-Kebrya, Fartash Faghri, and Daniel M Roy. NUQSGD: Improved communication efficiency for data-parallel SGD via nonuniform quantization. arXiv preprint arXiv:1908.06077, 2019.
|
| 333 |
+
|
| 334 |
+
Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of Adam and beyond. ICLR 2018 - International Conference on Learning Representations, 2018.
|
| 335 |
+
|
| 336 |
+
Amirhossein Reisizadeh, Aryan Mokhtari, Hamed Hassani, Ali Jadbabaie, and Ramtin Pedarsani. Fedpaq: A communication-efficient federated learning method with periodic averaging and quantization. In International Conference on Artificial Intelligence and Statistics, pp. 2021–2031, 2020.
|
| 337 |
+
|
| 338 |
+
Peter Richtárik and Martin Takác. Parallel coordinate descent methods for big data optimization.ˇ Mathematical Programming, 156(1-2):433–484, 2016.
|
| 339 |
+
|
| 340 |
+
Lawrence Roberts. Picture coding using pseudo-random noise. IRE Transactions on Information Theory, 8(2):145–154, 1962.
|
| 341 |
+
|
| 342 |
+
Felix Sattler, Simon Wiedemann, Klaus-Robert Müller, and Wojciech Samek. Robust and communication-efficient federated learning from non-iid data. IEEE transactions on neural networks and learning systems, 2019.
|
| 343 |
+
|
| 344 |
+
Frank Seide, Hao Fu, Jasha Droppo, Gang Li, and Dong Yu. 1-bit stochastic gradient descent and its application to data-parallel distributed training of speech dnns. In Fifteenth Annual Conference of the International Speech Communication Association, 2014.
|
| 345 |
+
|
| 346 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. ICLR 2015 - International Conference on Learning Representations, 2015.
|
| 347 |
+
|
| 348 |
+
Sebastian U Stich. Local SGD converges fast and communicates little. ICLR 2019 - International Conference on Learning Representations, 2019a.
|
| 349 |
+
|
| 350 |
+
Sebastian U Stich. Unified optimal analysis of the (stochastic) gradient method. arXiv preprint arXiv:1907.04232, 2019b.
|
| 351 |
+
|
| 352 |
+
Sebastian U Stich and Sai Praneeth Karimireddy. The error-feedback framework: Better rates for SGD with delayed gradients and compressed communication. ICLR 2020 - International Conference on Learning Representations, 2020.
|
| 353 |
+
|
| 354 |
+
Sebastian U Stich, Jean-Baptiste Cordonnier, and Martin Jaggi. Sparsified SGD with memory. In Advances in Neural Information Processing Systems, pp. 4447–4458, 2018.
|
| 355 |
+
|
| 356 |
+
Sharan Vaswani, Francis Bach, and Mark Schmidt. Fast and faster convergence of sgd for overparameterized models and an accelerated perceptron. In The 22nd International Conference on Artificial Intelligence and Statistics, pp. 1195–1204, 2019.
|
| 357 |
+
|
| 358 |
+
Thijs Vogels, Sai Praneeth Karimireddy, and Martin Jaggi. PowerSGD: Practical low-rank gradient compression for distributed optimization. In Advances in Neural Information Processing Systems, pp. 14236–14245, 2019.
|
| 359 |
+
|
| 360 |
+
Jianqiao Wangni, Jialei Wang, Ji Liu, and Tong Zhang. Gradient sparsification for communicationefficient distributed optimization. In Advances in Neural Information Processing Systems, pp. 1299–1309, 2018.
|
| 361 |
+
|
| 362 |
+
Jinliang Wei, Wei Dai, Aurick Qiao, Qirong Ho, Henggang Cui, Gregory R Ganger, Phillip B Gibbons, Garth A Gibson, and Eric P Xing. Managed communication and consistency for fast data-parallel iterative analytics. In Proceedings of the Sixth ACM Symposium on Cloud Computing, pp. 381–394, 2015.
|
| 363 |
+
|
| 364 |
+
Wei Wen, Cong Xu, Feng Yan, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Terngrad: Ternary gradients to reduce communication in distributed deep learning. In Advances in Neural Information Processing Systems, pp. 1509–1519, 2017.
|
| 365 |
+
|
| 366 |
+
Blake Woodworth, Kumar Kshitij Patel, Sebastian U Stich, Zhen Dai, Brian Bullins, H Brendan McMahan, Ohad Shamir, and Nathan Srebro. Is local SGD better than minibatch SGD? arXiv preprint arXiv:2002.07839, 2020.
|
| 367 |
+
|
| 368 |
+
Tianbao Yang, Qihang Lin, and Zhe Li. Unified convergence analysis of stochastic momentum methods for convex and non-convex optimization. arXiv preprint arXiv:1604.03257, 2016.
|
| 369 |
+
|
| 370 |
+
Hantian Zhang, Jerry Li, Kaan Kara, Dan Alistarh, Ji Liu, and Ce Zhang. Zipml: Training linear models with end-to-end low precision, and a little bit of deep learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 4035–4043. JMLR. org, 2017.
|
| 371 |
+
|
| 372 |
+

|
| 373 |
+
Figure 4: Algorithm 1 vs. Algorithm 2 on CIFAR10 with ResNet18 (bottom), VGG11 (top) and TernGrad as a compression.
|
| 374 |
+
|
| 375 |
+
# APPENDIX
|
| 376 |
+
|
| 377 |
+
# A EXPERIMENTAL DETAILS
|
| 378 |
+
|
| 379 |
+
To be fair, we always compare methods with the same communication complexity per iteration. We report the number of epochs (passes over the dataset) with respect to training loss and testing accuracy. The test accuracy is obtained by evaluating the best model in terms of validation accuracy. A validation accuracy is computed based on $10 \%$ randomly selected training data. We tune the step-size using based on the training loss. For every experiment, we randomly distributed the training dataset among 8 workers; each worker computes its local gradient-based on its own dataset. We used a local batch size of 32. All the provided figures display the mean performance with one standard error over 5 independent runs. For a fair comparison, we use the same random seed for the compared methods. Our experimental results are based on a Python implementation of all the methods running in PyTorch. All reported quantities are independent of the system architecture and network bandwidth.
|
| 380 |
+
|
| 381 |
+
Dataset and Models. We do an evaluation on CIFAR10 dataset. We consider VGG11 (Simonyan & Zisserman, 2015) and ResNet18 (He et al., 2016) models and step-sizes 0.1, 0.05 and 0.01.
|
| 382 |
+
|
| 383 |
+
# A.1 EXTRA EXPERIMENTS
|
| 384 |
+
|
| 385 |
+
Momentum. In this extra experiment, we look at the effect of momentum on Algorithm 1 and 2. We set momentum to 0.9. Similarly to Figure 2, we work with the unbiased compressor, concretely TernGrad (Wen et al., 2017) (coincides with QSGD (Alistarh et al., 2016) and natural dithering (Horváth et al., 2019a) with the infinity norm and one level), to see the effect of adding Error Feedback. We can see from Figure 4 that adding Error Feedback can hurt the performance, which agrees with our theoretical findings.
|
| 386 |
+
|
| 387 |
+
# B EXAMPLE 1, BEZNOSIKOV ET AL. (2020)
|
| 388 |
+
|
| 389 |
+
In this section, we present example considered in Beznosikov et al. (2020), which was used as a counterexample to show that some form of error correction is needed in order for biased compressors to work/provably converge. In addition, we run experiments on their construction and show that while Error Feedback fixes divergence, it is still significantly dominated by unbiased non-uniform sparsification as can be seen in Figure 1. The construction follows.
|
| 390 |
+
|
| 391 |
+
Consider $n = d = 3$ and define the following smooth and strongly convex quadratic functions
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
f _ { 1 } ( x ) = \left. a , x \right. ^ { 2 } + { \frac { 1 } { 4 } } \left\| x \right\| ^ { 2 } , \qquad f _ { 2 } ( x ) = \left. b , x \right. ^ { 2 } + { \frac { 1 } { 4 } } \left\| x \right\| ^ { 2 } , \qquad f _ { 3 } ( x ) = \left. c , x \right. ^ { 2 } + { \frac { 1 } { 4 } } \left\| x \right\| ^ { 2 } ,
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
where $a = ( - 3 , 2 , 2 ) , b = ( 2 , - 3 , 2 ) , c = ( 2 , 2 , - 3 )$ . Then, with the initial point $x ^ { 0 } = ( t , t , t ) , t > 0$
|
| 398 |
+
|
| 399 |
+
$$
|
| 400 |
+
\nabla f _ { 1 } ( x ^ { 0 } ) = \frac { t } { 2 } ( - 1 1 , 9 , 9 ) , \qquad \nabla f _ { 2 } ( x ^ { 0 } ) = \frac { t } { 2 } ( 9 , - 1 1 , 9 ) , \qquad \nabla f _ { 3 } ( x ^ { 0 } ) = \frac { t } { 2 } ( 9 , 9 , - 1 1 ) .
|
| 401 |
+
$$
|
| 402 |
+
|
| 403 |
+
Using the Top-1 compressor, we get
|
| 404 |
+
|
| 405 |
+
$$
|
| 406 |
+
\begin{array} { r } { \mathcal { C } ( \nabla f _ { 1 } ( x ^ { 0 } ) ) = \frac { t } { 2 } ( - 1 1 , 0 , 0 ) , \quad \mathcal { C } ( \nabla f _ { 2 } ( x ^ { 0 } ) ) = \frac { t } { 2 } ( 0 , - 1 1 , 0 ) , \quad \mathcal { C } ( \nabla f _ { 3 } ( x ^ { 0 } ) ) = \frac { t } { 2 } ( 0 , 0 , - 1 1 ) . } \end{array}
|
| 407 |
+
$$
|
| 408 |
+
|
| 409 |
+
The next iterate of DCGD is
|
| 410 |
+
|
| 411 |
+
$$
|
| 412 |
+
x ^ { 1 } = x ^ { 0 } - \frac { \eta } { 3 } \sum _ { i = 1 } ^ { 3 } \mathcal { C } ( \nabla f _ { i } ( x ^ { 0 } ) ) = \left( 1 + \frac { 1 1 \eta } { 6 } \right) x ^ { 0 } .
|
| 413 |
+
$$
|
| 414 |
+
|
| 415 |
+
Repeated application gives $\begin{array} { r } { x ^ { k } = \left( 1 + \frac { 1 1 \eta } { 6 } \right) ^ { k } x ^ { 0 } } \end{array}$ , which diverges exponentially fast to $+ \infty$ since $\eta > 0$ .
|
| 416 |
+
|
| 417 |
+
As a initial point, we use $( 1 , 1 , 1 ) ^ { \top }$ in our experiments and we choose step size $\textstyle { \frac { 1 } { L } }$ , where $L$ is smoothness parameter of $\begin{array} { r } { f = \frac { 1 } { 3 } ( f _ { 1 } + f _ { 2 } + f _ { 3 } ) } \end{array}$ . Note that zero vector is the unique minimizer of $f$ .
|
| 418 |
+
|
| 419 |
+
# C PROOFS
|
| 420 |
+
|
| 421 |
+
# C.1 PROOF OF LEMMA 1
|
| 422 |
+
|
| 423 |
+
We follow (2), which holds for ${ \mathcal { C } } \in \mathbb { U } ( \delta )$ .
|
| 424 |
+
|
| 425 |
+
$$
|
| 426 |
+
\begin{array} { r l l } { \displaystyle \operatorname { E } \left[ \left\| \frac { 1 } { \delta } \mathcal { C } ^ { k } ( \boldsymbol { x } ) - \boldsymbol { x } \right\| ^ { 2 } \right] } & { = } & { \displaystyle \frac { 1 } { \delta ^ { 2 } } \mathrm { E } \left[ \left\| \mathcal { C } ^ { k } ( \boldsymbol { x } ) \right\| ^ { 2 } \right] - 2 \frac { 1 } { \delta } \left. \mathrm { E } \left[ \mathcal { C } ^ { k } ( \boldsymbol { x } ) \right] , \boldsymbol { x } \right. + \left\| \boldsymbol { x } \right\| ^ { 2 } } \\ & { \leq } & { \displaystyle \left( \frac { 1 } { \delta } - \frac { 2 } { \delta } + 1 \right) \left\| \boldsymbol { x } \right\| ^ { 2 } } \\ & { = } & { \displaystyle \left( 1 - \frac { 1 } { \delta } \right) \left\| \boldsymbol { x } \right\| ^ { 2 } , } \end{array}
|
| 427 |
+
$$
|
| 428 |
+
|
| 429 |
+
which concludes the proof.
|
| 430 |
+
|
| 431 |
+
# C.2 PROOF OF THEOREM 2
|
| 432 |
+
|
| 433 |
+
We use the update of Algorithm 1 to bound the following quantity
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\begin{array} { r l r l } { \mathbb { E } | | \mathbf { E } ^ { \mu _ { 1 } } - \mathbf { x } ^ { \mu _ { 1 } } | ^ { 2 } } & { = } & & { \| \mathbf { e } - \mathbf { a } ^ { \nu _ { 1 } } \| ^ { 2 } - \frac { \alpha _ { 2 } ^ { 2 } \nu _ { 1 } } { 4 } \sum _ { k = 1 } ^ { \nu _ { 1 } } \big | \mathcal { E } ( \mathbf { a } ^ { 2 } ( k ) ^ { 2 } , k ^ { 2 } - \frac { \nu _ { 1 } ^ { 2 } } { 4 } ) ^ { 2 } \| ^ { 2 } } \\ & { } & & { \mathbf { b } ^ { 2 } ( k ) ^ { 2 } , k ^ { 2 } } \\ & { } & \underset { \mathrm { i f } } { \sum _ { k = 1 } ^ { \nu _ { 1 } } \Big \{ \sum _ { k = 1 } ^ { \nu _ { 2 } } \Big \| \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } + \mathbf { c } ^ { 2 } \Big \} ^ { 2 } \Big | \mathbf { b } ^ { 2 } \Big \} ^ { 2 } } \\ & { } & & { \| \mathbf { e } ^ { \mu _ { 2 } } + \mathbf { c } ^ { 2 } \Big \| \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } + \mathbf { c } ^ { 2 } \Big \} ^ { 2 } \Big | \mathbf { b } ^ { 2 } \Big \} ^ { 2 } } \\ & { } & & { \| \mathbf { e } ^ { \mu _ { 3 } } + \mathbf { b } ^ { 2 } \Big \| \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } + \mathbf { c } ^ { 2 } \Big \} ^ { 2 } \Big | \mathbf { b } ^ { 2 } \Big \} ^ { 2 } } \\ & { } & & { \| \mathbf { e } ^ { \mu _ { 3 } } + \mathbf { b } ^ { 2 } \Big \| \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } + \mathbf { c } ^ { 2 } \Big \} ^ { 2 } \Big | \mathbf { b } ^ { 2 } \Big \{ \mathbf { b } ^ { 2 } \Big \} ^ { 2 } } \\ & { } & & \| \mathbf { e } ^ { \mu _ { 3 } } + \mathbf { b } ^ { 2 } \| \mathbf { b } ^ { 2 } \Big \end{array}
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
Taking full expectation and $\begin{array} { r } { \eta ^ { k } \leq \frac { 1 } { 2 \delta _ { n } L } } \end{array}$ , we obtain
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
\begin{array} { r } { \tilde { \mathsf { L } } \left[ \left\| x ^ { k + 1 } - x ^ { \star } \right\| ^ { 2 } \right] \le ( 1 - \mu \eta ^ { k } ) \mathrm { E } \left[ \left\| x ^ { k } - x ^ { \star } \right\| ^ { 2 } \right] - \eta ^ { k } \mathrm { E } \left[ f ( x ^ { k } ) - f ^ { \star } \right] + ( \eta ^ { k } ) ^ { 2 } \left( ( \delta _ { n } - 1 ) D + \frac { \delta \sigma ^ { 2 } } { n } \right) } \end{array}
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
The rest of the analysis is closely related to the one of Stich (2019b). We would like to point out that similar results to Stich (2019b) were also present in (Lacoste-Julien et al., 2012; Stich et al., 2018; Grimmer, 2019).
|
| 446 |
+
|
| 447 |
+
We first rewrite the previous inequality to the form
|
| 448 |
+
|
| 449 |
+
$$
|
| 450 |
+
r ^ { k + 1 } \leq ( 1 - a \eta ^ { k } ) r ^ { k } - \eta ^ { k } s ^ { k } + ( \eta ^ { k } ) ^ { 2 } c ,
|
| 451 |
+
$$
|
| 452 |
+
|
| 453 |
+
$$
|
| 454 |
+
\begin{array} { r } { r ^ { k } = \operatorname { E } \Big [ \big \| x ^ { k } - x ^ { \star } \big \| ^ { 2 } \Big ] , s ^ { k } = \operatorname { E } \big [ f ( x ^ { k } ) - f ^ { \star } \big ] , a = \mu , c = ( \delta _ { n } - 1 ) D + \frac { \delta \sigma ^ { 2 } } { n } . } \end{array}
|
| 455 |
+
$$
|
| 456 |
+
|
| 457 |
+
We proceed with lemmas that establish a convergence guarantee for every recursion of type (10).
|
| 458 |
+
|
| 459 |
+
Lemma 6. Let $\{ r ^ { k } \} _ { k \geq 0 } , \{ s ^ { k } \} _ { k \geq 0 }$ be as in (10) for $a > 0$ and for constant stepsizes $\begin{array} { r } { \eta ^ { k } \equiv \eta : = \frac { 1 } { d } } \end{array}$ $\forall k \geq 0$ . Then it holds for all $T \geq 0$ :
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
r ^ { T } \leq r ^ { 0 } \exp \left[ - \frac { a T } { d } \right] + \frac { c } { a d } .
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
Proof. This follows by relaxing (10) using $\operatorname { E } \left[ f ( x ^ { k } ) - f ^ { \star } \right] \geq 0$ ,and unrolling the recursion
|
| 466 |
+
|
| 467 |
+
$$
|
| 468 |
+
r ^ { T } \leq ( 1 - a \eta ) r ^ { T - 1 } + c \gamma ^ { 2 } \leq ( 1 - a \eta ) ^ { T } r ^ { 0 } + c \eta ^ { 2 } \sum _ { k = 0 } ^ { T - 1 } ( 1 - a \eta ) ^ { k } \leq ( 1 - a \eta ) ^ { T } r ^ { 0 } + \frac { c \eta } { a } .
|
| 469 |
+
$$
|
| 470 |
+
|
| 471 |
+
Lemma 7. Let $\{ r ^ { k } \} _ { k \geq 0 }$ , $\{ s ^ { k } \} _ { k \geq 0 }$ as in (10) for $a > 0$ and for decreasing stepsizes $\begin{array} { r } { \eta ^ { k } : = \frac { 2 } { a ( \kappa + k ) } } \end{array}$ , $\forall k \geq 0$ , with parameter $\textstyle \kappa : = { \frac { 2 d } { a } }$ , and weights $w ^ { k } : = ( \kappa + k )$ . Then
|
| 472 |
+
|
| 473 |
+
$$
|
| 474 |
+
\frac { 1 } { W ^ { T } } \sum _ { k = 0 } ^ { T } s ^ { k } w ^ { k } + a r ^ { T + 1 } \leq \frac { 2 a \kappa ^ { 2 } r _ { 0 } } { T ^ { 2 } } + \frac { 2 c } { a T } ,
|
| 475 |
+
$$
|
| 476 |
+
|
| 477 |
+
where $\begin{array} { r } { W ^ { T } : = \sum _ { k = 0 } ^ { T } w ^ { k } } \end{array}$
|
| 478 |
+
|
| 479 |
+
Proof. We start by re-arranging (10) and multiplying both sides with $w ^ { k }$
|
| 480 |
+
|
| 481 |
+
$$
|
| 482 |
+
\begin{array} { l } { { s ^ { k } w ^ { k } \leq \displaystyle \frac { w ^ { k } ( 1 - a \eta ^ { k } ) r ^ { k } } { \eta ^ { k } } - \displaystyle \frac { w ^ { k } r ^ { k + 1 } } { \eta ^ { k } } + c \eta ^ { k } w ^ { k } } } \\ { { \quad \quad = a ( \kappa + k ) ( \kappa + k - 2 ) r ^ { k } - a ( \kappa + k ) ^ { 2 } r ^ { k + 1 } + \displaystyle \frac { c } { a } } } \\ { { \quad \quad \leq a ( \kappa + k - 1 ) ^ { 2 } r ^ { k } - a ( \kappa + k ) ^ { 2 } r ^ { k + 1 } + \displaystyle \frac { c } { a } , } } \end{array}
|
| 483 |
+
$$
|
| 484 |
+
|
| 485 |
+
where the equality follows from the definition of $\eta ^ { k }$ and $w ^ { k }$ and the inequality from $( \kappa + k ) ( \kappa + k -$ $2 ) = ( \kappa + \dot { k } - 1 \dot { ) } ^ { 2 } - 1 \le ( \kappa + k - 1 ) ^ { 2 }$ . Again we have a telescoping sum:
|
| 486 |
+
|
| 487 |
+
$$
|
| 488 |
+
\frac { 1 } { W ^ { T } } \sum _ { k = 0 } ^ { T } s ^ { k } w ^ { k } + \frac { a ( \kappa + T ) ^ { 2 } r ^ { T + 1 } } { W ^ { T } } \leq \frac { a \kappa ^ { 2 } r ^ { 0 } } { W ^ { T } } + \frac { c ( T + 1 ) } { a W ^ { T } } ,
|
| 489 |
+
$$
|
| 490 |
+
|
| 491 |
+
with
|
| 492 |
+
|
| 493 |
+
$$
|
| 494 |
+
\begin{array} { r } { W ^ { T } = \sum _ { k = 0 } ^ { T } w ^ { k } = \sum _ { k = 0 } ^ { T } ( \kappa + k ) = \frac { ( 2 \kappa + T ) ( T + 1 ) } { 2 } \geq \frac { T ( T + 1 ) } { 2 } \geq \frac { T ^ { 2 } } { 2 } , } \end{array}
|
| 495 |
+
$$
|
| 496 |
+
|
| 497 |
+
$$
|
| 498 |
+
\begin{array} { r } { W ^ { T } = \frac { ( 2 \kappa + T ) ( T + 1 ) } { 2 } \leq \frac { 2 ( \kappa + T ) ( 1 + T ) } { 2 } \leq ( \kappa + T ) ^ { 2 } \mathrm { f o r } \kappa = \frac { 2 d } { a } \geq 1 . } \end{array}
|
| 499 |
+
$$
|
| 500 |
+
|
| 501 |
+
By applying these two estimates we conclude the proof.
|
| 502 |
+
|
| 503 |
+
The convergence can be obtained as the combination of these two lemmas.
|
| 504 |
+
|
| 505 |
+
Lemma 8. Let $\{ r ^ { k } \} _ { k \geq 0 }$ , $\{ s ^ { k } \} _ { k \geq 0 }$ as in (10), $a > 0$ . Then there exists stepsizes $\begin{array} { r } { \eta ^ { k } \leq \frac { 1 } { d } } \end{array}$ and weighs $\textstyle w ^ { k } \geq 0 , W ^ { T } : = \sum _ { k = 0 } ^ { T } w ^ { k }$ , such that
|
| 506 |
+
|
| 507 |
+
$$
|
| 508 |
+
\frac 1 { W ^ { T } } \sum _ { k = 0 } ^ { T } s ^ { k } w ^ { k } + a r ^ { T + 1 } \leq 3 2 d r _ { 0 } \exp \left[ - \frac { a T } { 2 d } \right] + \frac { 3 6 c } { a T } .
|
| 509 |
+
$$
|
| 510 |
+
|
| 511 |
+
Proof of Lemma 8. For integer $T \geq 0$ , we choose stepsizes and weights as follows
|
| 512 |
+
|
| 513 |
+
$$
|
| 514 |
+
\begin{array} { l l l } { { \displaystyle { \mathrm { i f } T \le \frac { d } { a } } , } } & { { \eta ^ { k } = \frac { 1 } { d } , } } & { { w ^ { k } = ( 1 - a \eta ^ { k } ) ^ { - ( k + 1 ) } = \left( 1 - \frac { a } { d } \right) ^ { - ( k + 1 ) } , } } \\ { { \displaystyle { \mathrm { i f } T > \frac { d } { a } } { \mathrm { a n d } k < t _ { 0 } } , } } & { { \eta ^ { k } = \frac { 1 } { d } , } } & { { w ^ { k } = 0 , } } \\ { { \displaystyle { \mathrm { i f } T > \frac { d } { a } } { \mathrm { a n d } k \ge t _ { 0 } } , } } & { { \eta ^ { k } = \frac { 2 } { a ( \kappa + k - t _ { 0 } ) } , } } & { { w ^ { k } = ( \kappa + k - t _ { 0 } ) ^ { 2 } , } } \end{array}
|
| 515 |
+
$$
|
| 516 |
+
|
| 517 |
+
for $\begin{array} { r } { \kappa = \frac { 2 d } { a } } \end{array}$ and $\begin{array} { r } { t _ { 0 } = \left\lceil \frac { T } { 2 } \right\rceil } \end{array}$ . We will now show that these choices imply the claimed result.
|
| 518 |
+
|
| 519 |
+
We start with the case $\textstyle T \leq { \frac { d } { a } }$ . For this case, the choice $\begin{array} { r } { \eta = \frac { 1 } { d } } \end{array}$ gives
|
| 520 |
+
|
| 521 |
+
$$
|
| 522 |
+
\begin{array} { l } { \displaystyle \frac { 1 } { W ^ { T } } \sum _ { k = 0 } ^ { T } s ^ { k } w ^ { k } + a r ^ { T + 1 } \leq ( 1 - a \eta ) ^ { ( T + 1 ) } \displaystyle \frac { r _ { 0 } } { \eta } + c \eta } \\ { \leq \displaystyle \frac { r _ { 0 } } { \eta } \exp \left[ - a \eta ( T + 1 ) \right] + c \eta } \\ { \leq d r _ { 0 } \exp \left[ - \displaystyle \frac { a T } { d } \right] + \displaystyle \frac { c } { a T } . } \end{array}
|
| 523 |
+
$$
|
| 524 |
+
|
| 525 |
+
If $\textstyle T > { \frac { d } { a } }$ , then we obtain from Lemma 6 that
|
| 526 |
+
|
| 527 |
+
$$
|
| 528 |
+
r ^ { t _ { 0 } } \leq r ^ { 0 } \exp \left[ - \frac { a T } { 2 d } \right] + \frac { c } { a d } .
|
| 529 |
+
$$
|
| 530 |
+
|
| 531 |
+
From Lemma 7 we have for the second half of the iterates:
|
| 532 |
+
|
| 533 |
+
$$
|
| 534 |
+
\frac { 1 } { W ^ { T } } \sum _ { k = 0 } ^ { T } s ^ { k } w ^ { k } + a r ^ { T + 1 } = \frac { 1 } { W ^ { T } } \sum _ { k = t _ { 0 } } ^ { T } s ^ { k } w ^ { k } + a r ^ { T + 1 } \leq \frac { 8 a \kappa ^ { 2 } r ^ { t _ { 0 } } } { T ^ { 2 } } + \frac { 4 c } { a T } .
|
| 535 |
+
$$
|
| 536 |
+
|
| 537 |
+
Now we observe that the restart condition $r ^ { t _ { 0 } }$ satisfies:
|
| 538 |
+
|
| 539 |
+
$$
|
| 540 |
+
\frac { a \kappa ^ { 2 } r ^ { t _ { 0 } } } { T ^ { 2 } } = \frac { a \kappa ^ { 2 } r ^ { 0 } \exp \left( - \frac { a T } { 2 d } \right) } { T ^ { 2 } } + \frac { \kappa ^ { 2 } c } { d T ^ { 2 } } \leq 4 a r ^ { 0 } \exp \left[ - \frac { a T } { 2 d } \right] + \frac { 4 c } { a T } ,
|
| 541 |
+
$$
|
| 542 |
+
|
| 543 |
+
because $\textstyle T > { \frac { d } { a } }$ . These conclude the proof.
|
| 544 |
+
|
| 545 |
+
Having these general convergence lemmas for the recursion of the form (10), the proof of the theorem follows directly from Lemmas 6 and 8 with $a = \mu$ , $c = \sigma ^ { 2 }$ , $d = 2 \delta _ { n } L$ . It is easy to check that condition $\begin{array} { r } { \eta ^ { k } \leq \frac { 1 } { d } = \frac { 1 } { 2 \delta _ { n } L } } \end{array}$ is satisfied.
|
| 546 |
+
|
| 547 |
+
# C.3 PROOF OF THEOREM 3
|
| 548 |
+
|
| 549 |
+
We have to show that our new compression is unbiased and has bounded variance. We start with the first property with $\lambda = 1$ .
|
| 550 |
+
|
| 551 |
+
$$
|
| 552 |
+
\begin{array} { r l } & { \mathrm { E } \left[ \mathcal { C } _ { 1 } ( x ) + \mathcal { C } _ { 2 } ( x - \mathcal { C } _ { 1 } ( x ) ) \right] = \mathrm { E } _ { \mathcal { C } _ { 1 } } \left[ \mathrm { E } _ { \mathcal { C } _ { 2 } } \left[ \mathcal { C } _ { 1 } ( x ) + \mathcal { C } _ { 2 } ( x - \mathcal { C } _ { 1 } ( x ) ) | \mathcal { C } _ { 1 } ( x ) \right] \right] } \\ & { \qquad = \mathrm { E } _ { \mathcal { C } _ { 1 } } \left[ \mathcal { C } _ { 1 } ( x ) + x - \mathcal { C } _ { 1 } ( x ) \right] = x , } \end{array}
|
| 553 |
+
$$
|
| 554 |
+
|
| 555 |
+
where the first equality follows from tower property and the second from unbiasedness of $\mathcal { C } _ { 2 }$ . For the second property, we also use tower property
|
| 556 |
+
|
| 557 |
+
$$
|
| 558 |
+
\begin{array} { r l } & { \displaystyle \operatorname { E } \Big [ \| { \mathcal C } _ { 1 } ( x ) - x + { \mathcal C } _ { 2 } ( x - { \mathcal C } _ { 1 } ( x ) ) \| ^ { 2 } \Big ] = \mathrm { E } _ { { \mathcal C } _ { 1 } } \left[ \mathrm { E } _ { { \mathcal C } _ { 2 } } \left[ \| { \mathcal C } _ { 1 } ( x ) - x + { \mathcal C } _ { 2 } ( x - { \mathcal C } _ { 1 } ( x ) ) \| ^ { 2 } \left| { \mathcal C } _ { 1 } ( x ) \right. \right] \right] } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \leq \left( \delta _ { 2 } - 1 \right) \mathrm { E } _ { { \mathcal C } _ { 1 } } \left[ \| { \mathcal C } _ { 1 } ( x ) - x \| ^ { 2 } \right] } \\ & { \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \quad \leq \left( \delta _ { 2 } - 1 \right) \left( 1 - \displaystyle \frac { 1 } { \delta _ { 1 } } \right) \left\| x \right\| ^ { 2 } , } \end{array}
|
| 559 |
+
$$
|
| 560 |
+
|
| 561 |
+
where the first and second inequalities follow directly from (2) and (3).
|
| 562 |
+
|
| 563 |
+
# C.4 PROOF OF LEMMA 4 (HORVÁTH & RICHTÁRIK, 2019)
|
| 564 |
+
|
| 565 |
+
For the first part of the claim, it was shown that $\mathbf { P } - p p ^ { \top }$ is positive semidefinite (Richtárik & Takác,ˇ 2016), thus we can bound $\mathbf { P } - p p ^ { \top } \preceq n \mathbf { D i a g } \left( \mathbf { P } \bar { \mathbf { \Lambda } } - p p ^ { \top } \right) \widehat { \mathbf { \Lambda } } = \mathbf { D i a g } \left( p \circ v \right) .$ , where $v _ { i } = n ( 1 - p _ { i } )$ , which implies that (8) holds for this choice of $v$ .
|
| 566 |
+
|
| 567 |
+
For the second part of the claim, let $1 _ { i \in \mathbb { S } } = 1$ if $i \in \mathbb { S }$ and $1 _ { i \in \mathbb { S } } = 0$ otherwise. Likewise, let $1 _ { i , j \in \mathbb { S } } = 1$ if $i , j \in \mathbb { S }$ and $1 _ { i , j \in \mathbb { S } } = 0$ otherwise. Note that $\operatorname { E } \left[ 1 _ { i \in \mathbb { S } } \right] = p _ { i }$ and $\mathrm { E } \left[ 1 _ { i , j \in \mathbb { S } } \right] = p _ { i j }$ . Next, let us compute the mean of X := Pi∈S ζinpi :
|
| 568 |
+
|
| 569 |
+
$$
|
| 570 |
+
\operatorname { E } \left[ X \right] = \operatorname { E } \left[ \sum _ { i \in \mathbb { S } } \frac { \zeta _ { i } } { n p _ { i } } \right] = \operatorname { E } \left[ \sum _ { i = 1 } ^ { n } \frac { \zeta _ { i } } { n p _ { i } } 1 _ { i \in \mathbb { S } } \right] = \sum _ { i = 1 } ^ { n } \frac { \zeta _ { i } } { n p _ { i } } \operatorname { E } \left[ 1 _ { i \in \mathbb { S } } \right] = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \zeta _ { i } = \bar { \zeta } .
|
| 571 |
+
$$
|
| 572 |
+
|
| 573 |
+
Let $\mathbf { A } = [ a _ { 1 } , \ldots , a _ { n } ] \in \mathbb { R } ^ { d \times n }$ , where $\begin{array} { r } { a _ { i } = \frac { \zeta _ { i } } { p _ { i } } } \end{array}$ , and let $e$ be the vector of all ones in $\mathbb { R } ^ { n }$ . We now write the variance of $X$ in a form which will be convenient to establish a bound:
|
| 574 |
+
|
| 575 |
+
$$
|
| 576 |
+
\begin{array} { r l } { \mathbb { E } \left[ \left\| X - \mathbf { E } [ X ] \right\| ^ { 2 } \right] } & { = \phantom { - } \mathbb { E } \Big [ \big \| X \big \| ^ { 2 } \Big ] - \big \| \mathbf { E } [ X ] \big \| ^ { 2 } } \\ & { = \phantom { - } \mathbb { E } \left[ \left\| \sum _ { i \in \overline { \partial } } \underline { { \tilde { S } } } _ { p _ { i } } \right\| ^ { 2 } \right] ^ { 2 } - \big \| \tilde { S } \big \| ^ { 2 } } \\ & { = \phantom { - } \mathbb { E } \left[ \sum _ { i \in \overline { \partial } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } ^ { \top } } { \alpha p _ { i } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } _ { \overline { { S } } } _ { \overline { { S } } } } } { \alpha p _ { i } } \mathrm { i } _ { i , i \in \overline { \partial } } \mathbb { E } \right] - \big \| \tilde { S } \big \| ^ { 2 } } \\ & { = \phantom { - } \sum _ { i \in \overline { \partial } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } ^ { \top } } { \alpha p _ { i } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } } { \alpha p _ { i } } - \sum _ { i \in \overline { \partial } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } ^ { \top } } { \alpha } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } } { \alpha } } \\ & { = \phantom { - } \frac { 1 } { \alpha ^ { 2 } } \sum _ { i , j } \Big ( p _ { i } - p _ { i } p _ { j } \Big ) \alpha ^ { - } \alpha ^ { - } } \\ & = \phantom { - } \frac { 1 } { \alpha ^ { 2 } } \frac { \tilde { \mathcal { G } } _ { \overline { { S } } } ^ { \top } } { 2 \tilde { \mathcal { G } } ^ { \top } } \big ( \mathbf { ( \mathrm { P } - p _ { i } \mathbf { \tilde { \mathcal { G } } } ) ^ { 2 } \setminus \partial ^ { \top } \Delta ^ { \top } \big ) \epsilon . } \end{array}
|
| 577 |
+
$$
|
| 578 |
+
|
| 579 |
+
Since by assumption we have $\mathbf { P } - p p ^ { \top } \preceq \mathbf { D i a g } \left( p \circ v \right)$ , we can further bound
|
| 580 |
+
|
| 581 |
+
$$
|
| 582 |
+
e ^ { \top } \left( \left( \mathbf { P } - p p ^ { \top } \right) \circ \mathbf { A } ^ { \top } \mathbf { A } \right) e \leq e ^ { \top } \left( \mathbf { D i a g } \left( p \circ v \right) \circ \mathbf { A } ^ { \top } \mathbf { A } \right) e = \sum _ { i = 1 } ^ { n } p _ { i } v _ { i } \| a _ { i } \| ^ { 2 } .
|
| 583 |
+
$$
|
| 584 |
+
|
| 585 |
+
To obtain (9), it remains to combine this with (13).
|
| 586 |
+
|
| 587 |
+
# C.5 PROOF OF THEOREM 5
|
| 588 |
+
|
| 589 |
+
Similarly to the proof of Theorem 2, we use the update of Algorithm 1 to bound the following quantity
|
| 590 |
+
|
| 591 |
+
$$
|
| 592 |
+
\begin{array} { r l } { \Phi ^ { k } - x ^ { k } \Big \Vert ^ { 2 } | x ^ { k } \Big \Vert } & { = - \left. x ^ { k } - x ^ { k } \right. ^ { 2 } - x ^ { k } \displaystyle { \sum _ { i = 1 } ^ { n } \mathbb { E } _ { x } \left( \displaystyle \sum _ { i = 1 } ^ { n } \sum _ { j = 1 } ^ { n } \mathbb { E } _ { i } ^ { \lambda } ( x _ { i } ^ { k } ) x ^ { k } - x ^ { k } \right) x ^ { k } } \right. + } \\ & { \qquad \mathbb { E } \left[ \left. \displaystyle \sum _ { i = 1 } ^ { n } \displaystyle \sum _ { j = 1 } ^ { n } \mathbb { E } _ { i } ^ { \lambda } ( x _ { i } ^ { k } ) \right. ^ { 2 } | x ^ { k } \right] } \\ & { \overset { \mathrm { o r s i o j . } } { \geq } \quad \left. \mu ^ { k } - x ^ { k } \right. ^ { 2 } - \mu ^ { k } \langle x ^ { k } ( x ^ { k } ) x ^ { k } - x ^ { k } \rangle - } \\ & { \qquad \Big ( \Phi ^ { k } \rangle ^ { 2 } \left( \mathbb { E } \left[ \left. \displaystyle \sum _ { i = 1 } ^ { n } \displaystyle \sum _ { j = 1 } ^ { n } \mu _ { i } ^ { k } ( x _ { i } ^ { k } ) - \displaystyle \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \alpha _ { i } ^ { k } \Phi ^ { j } \right. \right] ^ { 2 } | x ^ { k } \right) + \mathbb { E } \left[ \left. \displaystyle \frac { 1 } { n } \sum _ { j = 1 } ^ { n } \zeta ^ { j } \right] \right.} \\ & { \overset { \mathrm { o r s i o j . } } { \geq } \quad \left. \mu ^ { k } - x ^ { j } \right. ^ { 2 } - \mu ^ { k } \langle \nabla f ( x ^ { k } ) , x ^ { k } - x ^ { k } \rangle - } \\ & { \qquad \quad \leq \mu ^ { k } \leq x ^ { k } \leq \mu ^ { k } \left. \displaystyle \sum _ { i = 1 } ^ { n } \left. \displaystyle \sum _ { j = 1 } ^ { n } \left( \displaystyle \sum _ { i = 1 } ^ { n } \mu _ { i } ^ { k } ( x ^ { k } ) - \displaystyle \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \xi \right. ^ { 2 } | x ^ { k } \right. \right. } \\ & \qquad \quad \left. \mu ^ { k } - x ^ { k } \right. x ^ { k } \Vert \leq \mu ^ { k } \left. \displaystyle \sum _ i \end{array}
|
| 593 |
+
$$
|
| 594 |
+
|
| 595 |
+
$$
|
| 596 |
+
\begin{array} { r l } { \overset { ( 4 ) + ( 6 ) + ( 7 ) } { \leq } } & { \left( 1 - \mu \eta ^ { k } \right) \left. x ^ { k } - x ^ { \star } \right. ^ { 2 } - 2 \eta ^ { k } \left( 1 - \eta ^ { k } \delta _ { \mathtt { S } } L \right) \left( f ( x ^ { k } ) - f ^ { \star } \right) + } \\ & { \quad ( \eta ^ { k } ) ^ { 2 } \left( ( \delta _ { \mathtt { S } } - 1 ) D + ( 1 + a _ { \mathtt { S } } ) \frac { \delta \sigma ^ { 2 } } { n } \right) . } \end{array}
|
| 597 |
+
$$
|
| 598 |
+
|
| 599 |
+
Taking full expectation and $\begin{array} { r } { \eta ^ { k } \leq \frac { 1 } { 2 \delta _ { \mathbb { S } } L } } \end{array}$ , we obtain
|
| 600 |
+
|
| 601 |
+
E h
|
parse/train/vYVI1CHPaQg/vYVI1CHPaQg_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/vYVI1CHPaQg/vYVI1CHPaQg_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/vYVI1CHPaQg/vYVI1CHPaQg_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/y4-e1K23GLC/y4-e1K23GLC.md
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A LAW OF ROBUSTNESS FOR TWO-LAYERS NEURAL NETWORKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
We initiate the study of the inherent tradeoffs between the size of a neural network and its robustness, as measured by its Lipschitz constant. We make a precise conjecture that, for any Lipschitz activation function and for most datasets, any two-layers neural network with $k$ neurons that perfectly fit the data must have its Lipschitz constant larger (up to a constant) than $\sqrt { n / k }$ where $n$ is the number of datapoints. In particular, this conjecture implies that overparametrization is necessary for robustness, since it means that one needs roughly one neuron per datapoint to ensure a $O ( 1 )$ -Lipschitz network, while mere data fitting of $d$ -dimensional data requires only one neuron per $d$ datapoints. We prove a weaker version of this conjecture when the Lipschitz constant is replaced by an upper bound on it based on the spectral norm of the weight matrix. We also prove the conjecture in the highdimensional regime $n \approx d$ (which we also refer to as the undercomplete case, since only $k \leq d$ is relevant here). Finally we prove the conjecture for polynomial activation functions of degree $p$ when $n \approx d ^ { p }$ . We complement these findings with experimental evidence supporting the conjecture.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
We study two-layers neural networks with inputs in $\mathbb { R } ^ { d }$ , $k$ neurons, and Lipschitz non-linearity $\psi : \mathbb { R } \mathbb { R }$ . These are functions of the form:
|
| 12 |
+
|
| 13 |
+
$$
|
| 14 |
+
x \mapsto \sum _ { \ell = 1 } ^ { k } a _ { \ell } \psi ( w _ { \ell } \cdot x + b _ { \ell } ) ,
|
| 15 |
+
$$
|
| 16 |
+
|
| 17 |
+
with $a _ { \ell } , b _ { \ell } \in \mathbb { R }$ and $w _ { \ell } \in \mathbb { R } ^ { d }$ for any $\ell \in \ [ k ]$ . We denote by $\mathcal { F } _ { k } ( \psi )$ the set of functions of the form (1). When $k$ is large enough and $\psi$ is non-polynomial, this set of functions can be used to fit any given data set (Cybenko, 1989; Leshno et al., 1993). That is, given a data set $( x _ { i } , y _ { i } ) _ { i \in [ n ] } \ \in$ $( \mathbb { R } ^ { d } \times \mathbb { R } ) ^ { n }$ , one can find $f \in \mathcal { F } _ { k } ( \psi )$ such that
|
| 18 |
+
|
| 19 |
+
$$
|
| 20 |
+
f ( x _ { i } ) = y _ { i } , \forall i \in [ n ] .
|
| 21 |
+
$$
|
| 22 |
+
|
| 23 |
+
In a variety of scenarios one is furthermore interested in fitting the data smoothly. For example, in machine learning, the data fitting model $f$ is used to make predictions at unseen points $x \not \in$ $\{ x _ { 1 } , \ldots , x _ { n } \}$ . It is reasonable to ask for these predictions to be stable, that is a small perturbation of $x$ should result in a small perturbation of $f ( x )$ .
|
| 24 |
+
|
| 25 |
+
A natural question is: how “costly” is this stability restriction compared to mere data fitting? In practice it seems much harder to find robust models for large scale problems, as first evidenced in the seminal paper (Szegedy et al., 2013). In theory the “cost” of finding robust models has been investigated from a computational complexity perspective in (Bubeck et al., 2019), from a statistical perspective in (Schmidt et al., 2018), and more generally from a model complexity perspective in (Degwekar et al., 2019; Raghunathan et al., 2019; Allen-Zhu and Li, 2020). We propose here a different angle of study within the broad model complexity perspective: does a model have to be larger for it to be robust? Empirical evidence (e.g., (Goodfellow et al., 2015; Madry et al., 2018)) suggests that bigger models (also known as “overparametrization”) do indeed help for robustness.
|
| 26 |
+
|
| 27 |
+
Our main contribution is a conjecture (Conjecture 1 and Conjecture 2) on the precise tradeoffs between size of the model (i.e., the number of neurons $k$ ) and robustness (i.e., the Lipschitz constant of the data fitting model $f \in { \mathcal { F } } _ { k } ( \psi ) .$ ) for generic data sets. We say that a data set $( x _ { i } , y _ { i } ) _ { i \in [ n ] }$ is generic if it is i.i.d. with $x _ { i }$ uniform (or approximately so, see below) on the sphere $\mathbb { S } ^ { d - 1 } = \{ x \in$ $\mathbf { \mathbb { R } } ^ { d } : \| x \| = 1 \}$ and $y _ { i }$ uniform on $\{ - 1 , + 1 \}$ . We give the precise conjecture in Section 2. We prove several weaker versions of Conjecture 1 and Conjecture 2 respectively in Section 4 and Section 3. We also give empirical evidence for the conjecture in Section 5.
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 1: See Section 5 for the details of this experiment.
|
| 31 |
+
|
| 32 |
+
A corollary of our conjecture. A key fact about generic data, established in Baum (1988); Yun et al. (2019); Bubeck et al. (2020), is that one can memorize arbitrary labels with $k \approx n / d$ , that is merely one neuron per $d$ datapoints. Our conjecture implies that for such optimal-size neural networks it is impossible to be robust, in the sense that the Lipschitz constant must be of order $\sqrt { d }$ . The conjecture also states that to be robust (i.e. attain Lipschitz constant $O ( 1 ) _ { . }$ ) one must necessarily have $k \approx n$ , that is roughly each datapoint must have its own neuron. Therefore, we obtain a trade off between size and robustness, namely to make the network robust it needs to be $d$ times larger than for mere data fitting. We illustrate these two cases in Figure 1. We train a neural network to fit generic data, and plot the maximum gradient over several randomly drawn points (a proxy for the√ Lipschitz constant) for various values of $\sqrt { d }$ , when either $k = n$ (blue dots) or $\textstyle k = { \frac { 1 0 n } { d } }$ (red dots). As predicted, for the large neural network $k = n$ ) the Lipschitz constant remains roughly constant,√ while for the optimally-sized one $\textstyle ( k = { \frac { 1 0 n } { d } }$ ) the Lipschitz constant increases roughly linearly in $\sqrt { d }$ .
|
| 33 |
+
|
| 34 |
+
Notation. For Ω ⊂ Rd we define LipΩ(f) = supx6=x0∈Ω (if $\Omega = \mathbb { R } ^ { d }$ we omit the subscript and write $\operatorname { L i p } ( f ) )$ , where $\| \cdot \|$ denotes the Euclidean norm. For matrices we use $\parallel \cdot$ $\| \boldsymbol { \mathrm { o p } } , \| \cdot \mathsf { \bar { \| } } _ { \mathrm { o p , * } } , \| \cdot \| _ { \mathrm { F } }$ and $\langle \cdot , \cdot \rangle$ for respectively the operator norm, the nuclear norm (sum of singular values), the Frobenius norm, and the Frobenius inner product. We also use these notations for tensors of higher order, see Appendix A for more details on tensors. We denote $c > 0$ and $C > 0$ for universal numerical constants, respectively small enough and large enough, whose values can change in different occurences. Similarly, by $c _ { p } > 0$ and $C _ { p } > 0$ we denote constants depending only on the parameter $p$ . We also write $\mathrm { R e L U } ( t ) = \operatorname* { m a x } ( t , 0 )$ for the rectified linear unit.
|
| 35 |
+
|
| 36 |
+
Generic data. We give some flexibility in our definition of “generic data” in order to focus on the essence of the problem, rather than technical details. Namely, in addition to the spherical model mentioned above, where $x _ { i }$ is i.i.d. uniform on the sphere $\mathbb { S } ^ { \bar { d - 1 } } = \{ x \in \mathbb { R } ^ { d } : \lVert x \rVert ^ { \cdot } = 1 \}$ , we also consider the very closely related model where $x _ { i }$ is i.i.d. from a centered Gaussian with covariance $\textstyle { \frac { 1 } { d } } \operatorname { I } _ { d }$ (in particular $\mathbb { E } [ \| x _ { i } \| ^ { 2 } ] = 1$ , and in fact $\| x _ { i } \|$ is tightly concentrated around 1). In both cases we consider $y _ { i }$ to be i.i.d. random signs. We say that a property holds with high probability for generic data, if it holds with high probability either for the spherical model or for the Gaussian model.
|
| 37 |
+
|
| 38 |
+
# 2 A CONJECTURED LAW OF ROBUSTNESS
|
| 39 |
+
|
| 40 |
+
Our main contribution is the following conjecture, which asserts that, on generic data sets, increasing the size of a network is necessary to obtain robustness:
|
| 41 |
+
|
| 42 |
+
Conjecture 1 For generic data sets, with high probability1, any $f \in \mathcal { F } _ { k } ( \psi )$ fitting the data2 (i.e., satisfying (2)) must also satisfy:
|
| 43 |
+
|
| 44 |
+
$$
|
| 45 |
+
\mathrm { L i p } _ { \mathbb { S } ^ { d - 1 } } ( f ) \geq c \sqrt { \frac { n } { k } } .
|
| 46 |
+
$$
|
| 47 |
+
|
| 48 |
+
Note that for generic data, with high probability (for $n = { \mathrm { p o l y } } ( d ) )$ , there exists a smooth interpolation. Namely there exists $g : \bar { \mathbb { R } ^ { d } } \overset { \cdot } { } \mathbb { R }$ with $g ( x _ { i } ) = y _ { i } , \forall i \in [ n ]$ and $\mathrm { L i p } ( g ) = { \cal O } ( 1 )$ . This follows easily from the fact that with high probability (for large $d$ ) one has $\| x _ { i } - x _ { j } \| \geq 1 , \forall i \neq j$ . Conjecture 1 puts restrictions on how smoothly one can interpolate data with small neural networks. A striking consequence of the conjecture is that for a two-layers neural network $f \in \mathcal { F } _ { k } ( \psi )$ to be as robust as this function $g$ (i.e., $\dot { \mathrm { L i p } } ( \dot { \boldsymbol { f } } ) = O ( 1 ) )$ and fit the data, one must have $k = \Omega ( n )$ , i.e., roughly one neuron per data point. On the other hand with that many neurons it is quite trivial to smoothly interpolate the data, as we explain in Section 3.3. Thus the conjecture makes a strong statement that essentially the trivial smooth interpolation is the best thing one can do. In addition to making the prediction that one neuron per datapoint is necessary for optimal smoothness, the conjecture also gives a precise prediction on the possible tradeoff between size of the network and its robustness. We also conjecture that this whole range of tradeoffs is actually achievable:
|
| 49 |
+
|
| 50 |
+
Conjecture 2 Let $n , d , k$ be such that $C \cdot { \frac { n } { d } } \leq k \leq C \cdot n$ and $n \leq d ^ { C }$ where $C$ is an arbitrarily large constant in the latter occurence. There exists $\psi$ such that, for generic data sets, with high probability, there exists $f \in \mathcal { F } _ { k } ( \psi )$ fitting the data (i.e., satisfying (2)) and such that
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\mathrm { L i p } _ { \mathbb { S } ^ { d - 1 } } ( f ) \leq C \sqrt { \frac { n } { k } } .
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
The condition $k \leq C \cdot n$ in Conjecture 2 is necessary, for any interpolation of the data must have Lipschitz constant at least a constant. The other condition on $k$ , namely $k \geq C \cdot \textstyle { \frac { n } { d } }$ , is also necessary, for that many neurons is needed to merely guarantee the existence of a data-fitting neural network with $k$ neurons (see Baum (1988); Yun et al. (2019); Bubeck et al. (2020)). Finally the condition $n \leq d ^ { C }$ is merely used to avoid explicitly stating a logarithmic term in our conjecture (indeed, equivalently one can replace this condition by adding a multiplicative polylogarithmic term in $d$ in the claimed inequality).
|
| 57 |
+
|
| 58 |
+
Our results around Conjecture 2 (Section 3). We prove Conjecture 2 for both the optimal smoothness regime (which is quite straightforward, see Section 3.3) and for the optimal size regime (here more work is needed, and we use a certain tensor-based construction, see Section 3.4). In the latter case we only prove approximate data fitting (mostly to simplify the proofs), and more importantly we need to assume that $n$ is of order $d ^ { p }$ for some even integer $p$ . It would be interesting to generalize the proof to any $n$ . While the conjecture remains open between these two extreme regimes, we do give a construction in Section 3.3 which has the correct qualitative behavior (namely increasing $k$ improves the Lipschitz constant), albeit the scaling we obtain is $n / k$ instead of $\sqrt { n / k }$ , see Theorem 1.
|
| 59 |
+
|
| 60 |
+
Our results around Conjecture 1 (Section 4). We prove a weaker version of Conjecture 1 where the Lipschitz constant on the sphere is replaced by a proxy involving the spectral norm of the weight matrix, see Theorem 3. We also prove the conjecture in the optimal size regime, specifically when $n = d ^ { p }$ for an integer $p$ and one uses a polynomial activation function of degree $p$ , see Theorem 6. For $p = 1$ (i.e., $n \approx d$ ) we in fact prove the conjecture for abritrary non-linearities, see Theorem 4.
|
| 61 |
+
|
| 62 |
+
Further open problems. Our proposed law of robustness is a first mathematical formalization of the broader phenomenon that “overparametrization in neural networks is necessary for robustness”. Ideally one would like a much more refined understanding of the phenomenon than the one given in Conjecture 1. For example, one could imagine that in greater generality, the law would read $\mathrm { L i p } _ { \Omega } ( f ) \geq F ( k , ( x _ { i } , y _ { i } ) _ { i \in [ n ] } , \Omega )$ . That is, we would like to understand how the achievable level of smoothness depends on the particular data set at hand, but also on the set where we expect to be making predictions. Another direction to generalize the law would be to extend it to multilayers neural networks. In particular one could imagine the most general law would replace the parameter $k$ (number of neurons) by the type of architecture being used and in turn predict the best architecture for a given data set and prediction set. Finally note that our proposed law apply to all neural networks, but it would also be interesting to understand how the law interacts with algorithmic considerations (for example in Section 5 we use Adam Kingma and Ba (2015) to find a set of weights that qualitatively match Conjecture 2).
|
| 63 |
+
|
| 64 |
+
# 3 SMOOTH INTERPOLATION
|
| 65 |
+
|
| 66 |
+
We start with a warm-up in Section 3.1 where we discuss the simplest case of interpolation with a linear model $( k = 1 , n \leq d )$ and in Section 3.2 for the optimal smoothness regime $( k = n )$ . We generalize the construction of Section 3.2 in Section 3.3 to obtain the whole range of tradeoffs between $k$ and $\operatorname { L i p } ( f )$ , albeit with a suboptimal scaling, see Theorem 1. We also generalize the linear model calculations of Section 3.1 in Section 3.4 to obtain the optimal size regime for larger values of $n$ via a certain tensor construction.
|
| 67 |
+
|
| 68 |
+
# 3.1 THE SIMPLEST CASE: OPTIMAL SIZE REGIME WHEN $n \leq c \cdot d$
|
| 69 |
+
|
| 70 |
+
Let us consider $k = 1$ , $n \leq c \cdot d$ and $\psi ( t ) = t$ . Thus we are trying to find $w \in \mathbb { R } ^ { d }$ such that $w \cdot x _ { i } = y _ { i }$ for all $i \in [ n ]$ , or in other words $X w = Y$ with $X$ the $n \times d$ matrix whose $i ^ { t h }$ row is $x _ { i }$ , and $Y = \left( y _ { 1 } , \dots , y _ { n } \right)$ . The smoothest solution to this system (i.e., the one minimizing $\lVert \boldsymbol { w } \rVert .$ ) is
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
w = X ^ { \top } ( X X ^ { \top } ) ^ { - 1 } Y ,
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
Note that
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\mathrm { L i p } ( x \mapsto w \cdot x ) = \| w \| = \sqrt { w ^ { \top } w } = \sqrt { Y ^ { \top } ( X X ^ { \top } ) ^ { - 1 } Y } .
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
Using [Theorem 5.58, Vershynin (2012)] one has with probability at least $1 - \exp ( C - c d )$ (and using that $n \leq c \cdot d )$ that
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
X X ^ { \top } \succeq \frac { 1 } { 2 } I _ { n } ,
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
and thus $\operatorname { L i p } ( x \mapsto w \cdot x ) \leq { \sqrt { 2 } } \cdot \| Y \| = { \sqrt { 2 n } }$ . This concludes the proof sketch of Conjecture 2 for the simplest case $k = 1$ and $n \leq d$ .
|
| 89 |
+
|
| 90 |
+
# 3.2 ANOTHER SIMPLE CASE: OPTIMAL SMOOTHNESS REGIME
|
| 91 |
+
|
| 92 |
+
Next we consider the optimal smoothness regime in Conjecture 2, namely $k = n$ . First note that, for generic data and $n = { \mathrm { p o l y } } ( d )$ , with high probability the caps $C _ { i } : = \lbrace x ^ { \rbrace } \in \mathbb { S } ^ { d - 1 } : x _ { i } \cdot x \geq 0 . 9 \rbrace$ are disjoint sets and moreover they each contain a single data point (namely $x _ { i }$ ). With a single ReLU unit it is then easy to make a smooth function (10-Lipschitz) which is 0 outside of $C _ { i }$ and equal to $+ 1$ at $x _ { i }$ (in other words the neuron activates for a single data point), namely $x \mapsto 1 0$ ·ReLU $( x _ { i } \cdot x - 0 . 9 )$ . Thus one can fit the entire data set with the following ReLU network which is 10-Lipschitz on the sphere:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
f ( x ) = \sum _ { i = 1 } ^ { n } 1 0 y _ { i } \cdot \mathrm { R e L U } \left( x _ { i } \cdot x - 0 . 9 \right) .
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
This concludes the proof of Conjecture 2 for the optimal smoothness regime $k = n$
|
| 99 |
+
|
| 100 |
+
# 3.3 INTERMEDIATE REGIMES VIA RELU NETWORKS
|
| 101 |
+
|
| 102 |
+
We now combine the two constructions above (the linear model of Section 3.1 and the “isolation” strategy of Section 3.2) to give a construction that can trade off size for robustness (albeit not optimally according to Conjecture 2), see Appendix $\textrm { C }$ for the proof.
|
| 103 |
+
|
| 104 |
+
Theorem 1 Let $n , d , k$ be such that $\begin{array} { r } { C \cdot \frac { n \log ( n ) } { d } \leq k \leq C \cdot n . } \end{array}$ . For generic data sets, with probability at least $1 - 1 / n ^ { C }$ , there exists $f \in \mathcal { F } _ { k } ( \mathrm { R e L U } )$ fitting the data (i.e., satisfying (2)) and such that
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\mathrm { L i p } _ { \mathbb { S } ^ { d - 1 } } ( f ) \leq C \cdot \frac { n \log ( d ) } { k } .
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
3.4 OPTIMAL SIZE NETWORKS VIA TENSOR INTERPOLATION
|
| 111 |
+
|
| 112 |
+
In this section we essentially prove Conjecture 2 in the optimal size regime (namely $k \cdot d \approx n$ ), with three caveats:
|
| 113 |
+
|
| 114 |
+
1. We allow a slack of a $\log n$ factor by considering $k \cdot d = C n \log ( n )$ instead of the optimal $k \cdot d = C n$ as in Baum (1988); Bubeck et al. (2020).
|
| 115 |
+
2. We only prove approximate fit rather than exact fit. It is likely that with more work one can use the core of our argument to obtain exact fit. For that reason we did not make any attempt to optimize the dependency on $\varepsilon$ in Theorem 2. For instance one could probably obtain $\log ( 1 / \varepsilon )$ rather than $1 / \mathrm { p o l y } ( \varepsilon )$ dependency by using an iterative scheme that fits the residuals, as in (Bresler and Nagaraj, 2020; Bubeck et al., 2020).
|
| 116 |
+
3. We assume that $n$ is of order $d ^ { p }$ for some even integer $p$ . While it might be that one can apply the same proof for odd integers, the whole construction crucially relies on $p$ being an even integer as we essentially do a linear regression over the feature embedding $x \mapsto x ^ { \otimes p }$ . A possible approach to extend the proof to other values of $n$ would be use the scheme of Section 3.3 with the linear regression there replaced by the tensor regression used below.
|
| 117 |
+
|
| 118 |
+
Theorem 2 Fix $\varepsilon > 0$ , $p$ an even integer, and let $\psi ( t ) = t ^ { p }$ . Let $n , d , k$ be such that $n \log ( n ) =$ $\varepsilon ^ { 2 } \cdot d ^ { p }$ and $k = C _ { p } \cdot d ^ { p - 1 }$ . Then for generic data, with probability at least $1 - 1 / n ^ { C }$ , there exists $f \in \mathcal { F } _ { k } ( \psi )$ such that
|
| 119 |
+
|
| 120 |
+
and
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\begin{array} { r l } & { \left| f ( x _ { i } ) - y _ { i } \right| \le C _ { p } \cdot \varepsilon , \forall i \in [ n ] , } \\ & { } \\ & { \quad \quad \mathrm { L i p } _ { \mathbb { S } ^ { d - 1 } } ( f ) \le C _ { p } \sqrt { \displaystyle \frac { n } { k } } . } \end{array}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Proof. We propose to approximately fit with the following neural network:
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
f ( { \boldsymbol { x } } ) = \sum _ { i = 1 } ^ { n } y _ { i } ( x _ { i } \cdot x ) ^ { p } .
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
Naively one might think that this neural network requires $n$ neurons. However, it turns out that one can always decompose a symmetric tensor of order $p$ into $k = 2 ^ { p } d ^ { p - 1 }$ rank-1 symmetric tensors of order $p$ , so that in fact $f \in \mathcal { F } _ { k } ( \psi )$ . For $p = 2$ this simply follows from eigendecomposition and for general $p$ we give a simple proof in [Appendix A, Lemma 2].
|
| 133 |
+
|
| 134 |
+
One also has by applying [Appendix B, Lemma 4] with $\tau = C _ { p } \log ( n )$ and doing an union bound, that with probability at least $1 - 1 / n ^ { C }$ , for any $j \in [ n ]$ ,
|
| 135 |
+
|
| 136 |
+
$$
|
| 137 |
+
\left| \sum _ { i = 1 , i \neq j } ^ { n } y _ { i } ( x _ { i } \cdot x _ { j } ) ^ { p } \right| \leq C _ { p } { \sqrt { \frac { n \log ( n ) } { d ^ { p } } } } \leq C _ { p } \varepsilon .
|
| 138 |
+
$$
|
| 139 |
+
|
| 140 |
+
In particular this proves (3).
|
| 141 |
+
|
| 142 |
+
Thus it only remains to estimate the Lipschitz constant, which by [Appendix A, Lemma 1] is reduced to estimating the operator norm of the tensor $\scriptstyle \sum _ { i = 1 } ^ { n } y _ { i } x _ { i } ^ { \otimes p }$ . We do so in [Appendix B, Lemma 5].
|
| 143 |
+
|
| 144 |
+
# 4 PROVABLE WEAKER VERSIONS OF CONJECTURE 1
|
| 145 |
+
|
| 146 |
+
Conjecture 1 can be made weaker along several directions. For example the quantity of interest $\operatorname { L i p } _ { \mathbb { S } ^ { d - 1 } } ( f )$ can be replaced by various upper bound proxies for the Lipschitz constant. A mild weakening would be to replace it by the Lipschitz constant on the whole space (we shall in fact only consider this notion here). A much more severe weakening is to replace it by a quantity that depends on the spectral norm of the weight matrix (essentially ignoring the pattern of activation functions). For the latter proxy we actually give a complete proof, see Theorem 3, which in particular formally proves that “overparametrization is a law of robustness for generic data sets”. Other interesting directions to weaken the conjecture include specializing it to common activation functions, or simply having a smaller lower bound on the Lipschitz constant. In Section 4.2 we prove the conjecture when $n$ is replaced by $d$ in the lower bound. We say that this inequality is in the “very high-dimensional case”, in the sense that it matches the conjecture for $n \approx d$ (alternatively we also refer to it as the “undercomplete case”, in the sense that only $k \leq d$ is relevant in this very high-dimensional scenario). In the moderately high-dimensional case $\mathit { \Omega } _ { n } \gg d )$ the proof strategy we propose in Section 4.2 cannot work. In Section 4.3 we give another argument for the latter case, specifically in the optimal size regime (i.e., $k \cdot d \approx n$ ) and for a power activation function, see Theorem 5. We generalize this to polynomial activation functions in Section D.1. In the specific case of a quadratic activation function we also show a lower bound that applies for any $k$ and which is in fact larger than the one given in Conjecture 1, see Theorem 7 in Section D.2.
|
| 147 |
+
|
| 148 |
+
# 4.1 SPECTRAL NORM PROXY FOR THE LIPSCHITZ CONSTANT
|
| 149 |
+
|
| 150 |
+
We can rewrite (1) as
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
f ( x ) = a ^ { \top } \psi ( W x + b ) ,
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
where $a = ( a _ { 1 } , \ldots , a _ { k } ) \in \mathbb { R } ^ { k }$ , $b = ( b _ { 1 } , \dots , b _ { k } ) \in \mathbb { R } ^ { k }$ , $W \in \mathbb { R } ^ { k \times d }$ is the matrix whose $\ell ^ { t h }$ row is $w _ { \ell }$ , and $\psi$ is extended from $\mathbb { R } \to \mathbb { R }$ to $\mathbb { R } ^ { k } \to \mathbb { R } ^ { k }$ by applying it coordinate-wise. We prove here the following:
|
| 157 |
+
|
| 158 |
+
Theorem 3 Assume that $\psi$ is $L$ -Lipschitz. For $f \in \mathcal { F } _ { k } ( \psi )$ one has
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\operatorname { L i p } ( f ) \leq L \cdot \| a \| \cdot \| W \| _ { \mathrm { o p } } .
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
For a generic data set, if $f ( x _ { i } ) = y _ { i } , \forall i \in [ n ]$ and $f$ has no bias terms (i.e., $b = 0$ in (4)), then with positive probability one has:
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
L \cdot \| a \| \cdot \| W \| _ { \mathrm { o p } } \geq { \sqrt { \frac { n } { k } } } .
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
Note that we prove the inequality (6) only with positive probability (i.e., there exists a data set where the inequality is true), but in fact it is easy to derive the statement with high probability using classical concentration inequalities.
|
| 171 |
+
|
| 172 |
+
Proof. Since $\psi : \mathbb { R } \mathbb { R }$ is $L$ -Lipschitz, we have:
|
| 173 |
+
|
| 174 |
+
$$
|
| 175 |
+
\begin{array} { r } { ^ { \mathfrak { r } } ( x ) - f ( x ^ { \prime } ) \le \| a \| \cdot \| \psi ( W x + b ) - \psi ( W x ^ { \prime } + b ) \| \le L \cdot \| a \| \cdot \| W x - W x ^ { \prime } \| \le L \cdot \| a \| \cdot \| W \| _ { \infty } \cdot \| x - x ^ { \prime } \| , } \end{array}
|
| 176 |
+
$$
|
| 177 |
+
|
| 178 |
+
which directly proves (5).
|
| 179 |
+
|
| 180 |
+
Next, following the proof of [Proposition 1, Bubeck et al. (2020)] one obtains that for a generic data set, with positive probability, one has (without bias terms):
|
| 181 |
+
|
| 182 |
+
$$
|
| 183 |
+
\sum _ { \ell = 1 } ^ { k } | a _ { \ell } | \cdot \| w _ { \ell } \| \geq \frac { \sqrt { n } } { L } .
|
| 184 |
+
$$
|
| 185 |
+
|
| 186 |
+
It only remains to observe that:
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
{ \frac { \sqrt { n } } { L } } \leq \sum _ { \ell = 1 } ^ { k } | a _ { \ell } | \cdot \| w _ { \ell } \| \leq { \sqrt { \sum _ { \ell = 1 } ^ { k } | a _ { \ell } | ^ { 2 } \cdot \sum _ { \ell = 1 } ^ { k } \| w _ { \ell } \| ^ { 2 } } } = \| a \| \cdot \| W \| _ { \mathrm { F } } \leq { \sqrt { k } } \cdot \| a \| \cdot \| W \| _ { \mathrm { o p } } ,
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
which concludes the proof of (6).
|
| 193 |
+
|
| 194 |
+
# 4.2 UNDERCOMPLETE CASE
|
| 195 |
+
|
| 196 |
+
Next we prove the conjecture in the high dimensional case $n \approx d$ . More precisely we replace $n$ by $d$ in the conjectured lower bound. Importantly note that the resulting lower bound then becomes non-trivial only in the regime $k \leq d$ (the “undercomplete case”).
|
| 197 |
+
|
| 198 |
+
We consider in fact a slightly more general scenario than interpolation with a neural network, namely we simply assume that one interpolates the data with a function $f ( x ) = g ( P x )$ where $P$ is a linear projection on a $k$ -dimensional subspace (this clearly generalizes $f \in \mathcal { F } _ { k } ( \psi )$ , in fact it even allows for the non-linearity $\psi$ to depend on the data3, or to have a different non-linearity for each neuron).
|
| 199 |
+
|
| 200 |
+
Theorem 4 Let $n \geq d$ . Let $f : { \mathbb { R } ^ { d } } \to { \mathbb { R } }$ be a function such that $f ( x _ { i } ) = y _ { i } , \forall i \in [ n ]$ and moreover $f ( x ) = g ( P x )$ for some differentiable function $g : \mathbb { R } ^ { k } \mathbb { R }$ and matrix $P \in \dot { \mathbb { R } } ^ { k \times d }$ . Then, for generic data, with probability at least $1 - \exp ( C - c d )$ one must have
|
| 201 |
+
|
| 202 |
+
$$
|
| 203 |
+
\mathrm { L i p } ( f ) \geq c \sqrt { \frac { d } { k } } .
|
| 204 |
+
$$
|
| 205 |
+
|
| 206 |
+
Proof. Let us modify $g$ so that $P$ is simply an orthogonal projection operator (i.e., $P P ^ { \top } = \operatorname { I } _ { k } ,$ ). Let us also assume for sake of notational simplicity that we have a balanced data set of size $2 n$ , that is with: $y _ { 1 } , . . . y _ { n } = + 1$ and $y _ { n + 1 } , . . . , y _ { 2 n } = - 1$ . Let us denote $x _ { i } ^ { \prime } = x _ { i } - x _ { n + i }$ for $i \in [ n ]$ . The sequence $x _ { i } ^ { \prime }$ is i.i.d. and satisfies $\begin{array} { r } { \mathbb { E } [ x _ { i } ^ { \prime } x _ { i } ^ { \prime \top } ] = \frac { 2 } { d } { \mathrm { I } } _ { d } } \end{array}$ .
|
| 207 |
+
|
| 208 |
+
Now observe that on the segment $[ x _ { i } , x _ { n + i } ]$ (whose length is less than 2), the function $f$ changes value from $+ 1$ to $- 1$ , and thus there exists $\dot { z } _ { i } \in [ x _ { i } , x _ { n + i } ]$ such that:
|
| 209 |
+
|
| 210 |
+
Moreover one has (using that $\nabla f ( x ) = P ^ { \top } \nabla g ( x )$ , and thus $\| \nabla g ( x ) \| = \| P \nabla f ( x ) \| \le \mathrm { L i p } ( f ) )$
|
| 211 |
+
|
| 212 |
+
$$
|
| 213 |
+
| \nabla f ( z _ { i } ) \cdot x _ { i } ^ { \prime } | = | \nabla g ( P z _ { i } ) \cdot ( P x _ { i } ^ { \prime } ) | \leq \mathrm { L i p } ( f ) \cdot \| P x _ { i } ^ { \prime } \|
|
| 214 |
+
$$
|
| 215 |
+
|
| 216 |
+
Combining the two above displays one has:
|
| 217 |
+
|
| 218 |
+
$$
|
| 219 |
+
\frac { n } { \mathrm { L i p } ( f ) } \leq \sum _ { i = 1 } ^ { n } \| P x _ { i } ^ { \prime } \| \leq \sqrt { n \sum _ { i = 1 } ^ { n } \| P x _ { i } ^ { \prime } \| ^ { 2 } } = \sqrt { n \sum _ { i = 1 } ^ { n } { x _ { i } ^ { \prime } } ^ { \top } P ^ { \top } P x _ { i } ^ { \prime } } = \sqrt { n \langle \sum _ { i = 1 } ^ { n } x _ { i } ^ { \prime } x _ { i } ^ { \prime } | ^ { \top } , P ^ { \top } P \rangle _ { \mathrm { H S } } } .
|
| 220 |
+
$$
|
| 221 |
+
|
| 222 |
+
Using [Theorem 5.39, Vershynin (2012)] (specifically (5.23)) we know that with probability at least $1 - \exp ( C - c d )$ we have $\begin{array} { r } { \left. \sum _ { i = 1 } ^ { n } x _ { i } ^ { \prime } x _ { i } ^ { \prime \top } \right. _ { \mathrm { o p } } ^ { \cdot } \leq C \frac { n } { d } } \end{array}$ (here we use $n \geq d$ too). Moreover we have $\| P ^ { \top } P \| _ { \mathrm { o p } , * } = \operatorname { T r } ( P ^ { \top } P ) = \operatorname { T r } ( P P ^ { \top } ) = k$ . Thus we have $\begin{array} { r } { \langle \sum _ { i = 1 } ^ { n } x _ { i } ^ { \prime } x _ { i } ^ { \prime \top } , P ^ { \top } P \rangle _ { \mathrm { H S } } \leq C \frac { n \cdot k } { d } } \end{array}$ so that with the above display one obtains $\textstyle { \frac { n } { \operatorname { L i p } ( f ) } } \leq n { \sqrt { \frac { C k } { d } } }$ , which concludes the proof.
|
| 223 |
+
|
| 224 |
+
# 4.3 POWER ACTIVATION
|
| 225 |
+
|
| 226 |
+
We prove here the conjecture for the power activation function $\psi ( t ) = t ^ { p }$ with $p$ an integer and with no bias terms (we deal with general polynomials, including with bias, in Appendix D). Without bias such a network can be written as:
|
| 227 |
+
|
| 228 |
+
$$
|
| 229 |
+
f ( x ) = \sum _ { \ell = 1 } ^ { k } a _ { \ell } ( w _ { \ell } \cdot x ) ^ { p } = \langle T , x ^ { \otimes p } \rangle ,
|
| 230 |
+
$$
|
| 231 |
+
|
| 232 |
+
where T = Pk\`=1 a\`w⊗\` . As we already saw in the proof of Theorem 2 (see specifically [Appendix A, Lemma 2]), without loss of generality we have $k \leq C _ { p } d ^ { p - 1 }$ . We now prove that tensor networks of the form (7) cannot obtain a Lipschitz constant4 better than $\scriptstyle { \sqrt { n / d ^ { p - 1 } } }$ , in accordance with Conjecture 1 for full rank tensors (where $k \approx d ^ { p - 1 }$ ).
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 2: Scatter plot of maximum random gradient with respect to $\sqrt { \frac { n } { k } }$ with 906 data points (Experiment 1)
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 3: Scatter plot of maximum random gradient with respect to $\sqrt { d }$ in optimal smoothness (blue) and optimal size (red) regimes (Experiment 2)
|
| 239 |
+
|
| 240 |
+
Theorem 5 Assume that we have a tensor $T$ of order $p$ such that $\langle T , x _ { i } ^ { \otimes p } \rangle = y _ { i } , \forall i \in [ n ]$ . Then, for generic data, with probability at least $1 - C \exp ( - c _ { p } d )$ , one must have
|
| 241 |
+
|
| 242 |
+
$$
|
| 243 |
+
\| T \| _ { \mathrm { o p } } \geq c _ { p } { \sqrt { \frac { n } { d ^ { p - 1 } } } } .
|
| 244 |
+
$$
|
| 245 |
+
|
| 246 |
+
Proof. Denoting Ω = Pni=1 yix⊗i , we have (using $y _ { i } ^ { 2 } = 1$ for the first equality and [Appendix A, Lemma 3] for the last inequality):
|
| 247 |
+
|
| 248 |
+
$$
|
| 249 |
+
n = \langle T , \Omega \rangle \leq \| \Omega \| _ { \mathrm { o p } } \cdot \| T \| _ { \mathrm { o p } , * } \leq d ^ { p - 1 } \cdot \| \Omega \| _ { \mathrm { o p } } \cdot \| T \| _ { \mathrm { o p } } .
|
| 250 |
+
$$
|
| 251 |
+
|
| 252 |
+
Thus we obtain $\begin{array} { r } { \| T \| _ { \mathrm { o p } } \geq \frac { n } { d ^ { p - 1 } \cdot \| \Omega \| _ { \mathrm { o p } } } } \end{array}$ , and it only remains to apply [Appendix B, Lemma 5] which states that with probability at least $1 - C \exp ( - c _ { p } d )$ one has $\begin{array} { r } { \| \Omega \| _ { \mathrm { o p } } \leq C _ { p } \sqrt { \frac { n } { d ^ { p - 1 } } } } \end{array}$ .
|
| 253 |
+
|
| 254 |
+
# 5 EXPERIMENTS
|
| 255 |
+
|
| 256 |
+
We consider a generic dataset from the Gaussian model (i.e., $x _ { 1 } , \ldots , x _ { n }$ i.i.d. from $\mathcal { N } ( 0 , \textstyle \frac { 1 } { d } I _ { d } )$ and labels $y _ { 1 } , \ldots , y _ { n }$ i.i.d from the uniform distribution over $\{ - 1 , 1 \}$ and independent of $x _ { 1 } , \ldots , x _ { n } )$ . For various values of $( n , d , k )$ we train two-layers neural networks with $k$ ReLU units and batch normalization (see Ioffe and Szegedy (2015)) between the linear layer and ReLU layer, using the Adam optimizer (Kingma and Ba, 2015) on the least squares loss. We keep the values of $( n , k , d )$ where the network successfully memorizes the random labels (possibly after a rounding to $\{ - 1 , + 1 \}$ , and such that prior to rounding the least squares loss is at most some small value $\varepsilon$ to be specified later). Given a triple $( n , d , k )$ , suppose the output of the trained network is $f _ { n , d , k } : \mathbb { R } ^ { d } \dot { \mathbb { R } }$ . We then generate $z _ { 1 } , \dots , z _ { T }$ (where $T = 1 0 0 0$ ) i.i.d from the distribution $\textstyle { \mathcal { N } } ( 0 , { \frac { 1 } { d } } I _ { d } )$ , independently of everything else and define the “maximum random gradient” to be $\begin{array} { r } { \operatorname* { m a x } _ { i \in [ T ] } \lVert \nabla f _ { n , k , d } ( z _ { i } ) \rVert } \end{array}$ (it is our proxy for the true Lipschitz constant $\begin{array} { r } { \operatorname* { s u p } _ { z \in \mathbb { S } ^ { d - 1 } } \| \nabla f _ { n , d , k } ( z ) \| ) } \end{array}$ . Our experimental results are as follows:
|
| 257 |
+
|
| 258 |
+
Experiment 1: We ran experiments with $n$ between 100 and 2000, $d$ between $\sim 5 0$ and $\sim n$ , and $k$ between $\sim 1 0$ and $\sim n$ (we also choose $\varepsilon = 0 . 0 2$ for the thresholding). In Figure 2 we give a scatter plot of $\begin{array} { r l } { { \big ( \sqrt { \frac { n } { k } } , \operatorname* { m a x } _ { i \in [ T ] } \| \nabla f _ { n , k , d } ( z _ { i } ) \| \big ) } \quad } & { { } } \end{array}$ , and as predicted we see a linear trend, thus providing empirical evidence for Conjecture 1.
|
| 259 |
+
|
| 260 |
+
Experiment 2: In this experiment, we investigate the two extreme cases $k \sim n$ and $k \sim n / d$ . We fix $n = 1 0 ^ { 4 }$ and sweep the value of $d$ between 10 to 5000 (we also choose $\varepsilon = 0 . 1$ for the thresholding). In the first case, we let $k = n$ and in the second case we let $k = 1 0 n / d$ . In Figure 3 we plot $\sqrt { d }$ versus the maximum random gradient (as defined above) for both cases. We observe a linear dependence between the maximum gradient value and $\sqrt { d }$ when we have $k = 1 0 n / d$ , and roughly a constant maximum gradient value when $k = n$ , thus providing again evidence for Conjecture 1
|
| 261 |
+
|
| 262 |
+
# REFERENCES
|
| 263 |
+
|
| 264 |
+
James Alexander and Andre Hirschowitz. Polynomial interpolation in several variables. ´ Journal of Algebraic Geometry, 4(2):201–222, 1995.
|
| 265 |
+
|
| 266 |
+
Zeyuan Allen-Zhu and Yuanzhi Li. Feature purification: How adversarial training performs robust deep learning. arXiv preprint arXiv:2005.10190, 2020.
|
| 267 |
+
|
| 268 |
+
Eric B Baum. On the capabilities of multilayer perceptrons. Journal of complexity, 4(3):193–215, 1988.
|
| 269 |
+
|
| 270 |
+
Guy Bresler and Dheeraj Nagaraj. A corrective view of neural networks: Representation, memorization and learning. arXiv preprint arXiv:2002.00274, 2020.
|
| 271 |
+
|
| 272 |
+
Sebastien Bubeck, Yin Tat Lee, Eric Price, and Ilya Razenshteyn. Adversarial examples from com-´ putational constraints. In International Conference on Machine Learning, pages 831–840, 2019.
|
| 273 |
+
|
| 274 |
+
Sebastien Bubeck, Ronen Eldan, Yin Tat Lee, and Dan Mikulincer. Network size and weights size ´ for memorization with two-layers neural networks. arXiv preprint arXiv:2006.02855, 2020.
|
| 275 |
+
|
| 276 |
+
Pierre Comon, Gene Golub, Lek-Heng Lim, and Bernard Mourrain. Symmetric tensors and symmetric tensor rank. SIAM Journal on Matrix Analysis and Applications, 30(3):1254–1279, 2008.
|
| 277 |
+
|
| 278 |
+
George Cybenko. Approximation by superpositions of a sigmoidal function. Mathematics of control, signals and systems, 2(4):303–314, 1989.
|
| 279 |
+
|
| 280 |
+
Akshay Degwekar, Preetum Nakkiran, and Vinod Vaikuntanathan. Computational limitations in robust classification and win-win results. volume 99 of Proceedings of Machine Learning Research (COLT), pages 994–1028, 2019.
|
| 281 |
+
|
| 282 |
+
Shmuel Friedland and Lek-Heng Lim. Nuclear norm of higher-order tensors. Mathematics of Computation, 87(311):1255–1281, 2018.
|
| 283 |
+
|
| 284 |
+
Ian Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In International Conference on Learning Representations, 2015.
|
| 285 |
+
|
| 286 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International Conference on Machine Learning, pages 448– 456, 2015.
|
| 287 |
+
|
| 288 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
|
| 289 |
+
|
| 290 |
+
Moshe Leshno, Vladimir Ya Lin, Allan Pinkus, and Shimon Schocken. Multilayer feedforward networks with a nonpolynomial activation function can approximate any function. Neural networks, 6(6):861–867, 1993.
|
| 291 |
+
|
| 292 |
+
Zhening Li, Yuji Nakatsukasa, Tasuku Soma, and Andre Uschmajew. On orthogonal tensors and ´ best rank-one approximation ratio. SIAM Journal on Matrix Analysis and Applications, 39(1): 400–425, 2018.
|
| 293 |
+
|
| 294 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.
|
| 295 |
+
|
| 296 |
+
Arkadi Nemirovski. Interior point polynomial time methods in convex programming. Lecture notes, 2004.
|
| 297 |
+
|
| 298 |
+
Grigoris Paouris, Petros Valettas, and Joel Zinn. Random version of dvoretzky’s theorem in lpn. Stochastic Processes and their Applications, 127(10):3187–3227, 2017.
|
| 299 |
+
|
| 300 |
+
Aditi Raghunathan, Sang Michael Xie, Fanny Yang, John C Duchi, and Percy Liang. Adversarial training can hurt generalization. In International Conference on Learning Representations, 2019.
|
| 301 |
+
|
| 302 |
+
Bruce Arie Reznick. Sum of even powers of real linear forms, volume 463. American Mathematical Soc., 1992.
|
| 303 |
+
|
| 304 |
+
Ludwig Schmidt, Shibani Santurkar, Dimitris Tsipras, Kunal Talwar, and Aleksander Madry. Adversarially robust generalization requires more data. In Advances in Neural Information Processing Systems, 2018.
|
| 305 |
+
|
| 306 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2013.
|
| 307 |
+
|
| 308 |
+
Roman Vershynin. Introduction to the non-asymptotic analysis of random matrices. In Compressed Sensing: Theory and Practice, pages 210–268. Cambridge University Prteess, 2012.
|
| 309 |
+
|
| 310 |
+
Chulhee Yun, Suvrit Sra, and Ali Jadbabaie. Small relu networks are powerful memorizers: a tight analysis of memorization capacity. In Advances in Neural Information Processing Systems, pages 15532–15543, 2019.
|
| 311 |
+
|
| 312 |
+
# A RESULTS ON TENSORS
|
| 313 |
+
|
| 314 |
+
A tensor of order $p$ is an array $T = ( T _ { i _ { 1 } , \dots , i _ { p } } ) _ { i _ { 1 } , \dots , i _ { p } \in [ d ] }$ . The Frobenius inner product for tensors is defined by:
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
\langle T , S \rangle = \sum _ { i _ { 1 } , \dots , i _ { p } = 1 } ^ { d } T _ { i _ { 1 } , \dots , i _ { p } } S _ { i _ { 1 } , \dots , i _ { p } } ,
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
with the corresponding norm $\| \cdot \| _ { \mathrm { F } }$ . A tensor is said to be of rank 1 if it can be written as:
|
| 321 |
+
|
| 322 |
+
$$
|
| 323 |
+
T = u _ { 1 } \otimes \ldots \otimes u _ { p } ,
|
| 324 |
+
$$
|
| 325 |
+
|
| 326 |
+
for some $u _ { 1 } , \ldots , u _ { p } \in \mathbb { R } ^ { d }$ . The operator norm $\| \cdot \| _ { \mathrm { o p } }$ is defined by:
|
| 327 |
+
|
| 328 |
+
$$
|
| 329 |
+
\| T \| _ { \mathrm { o p } } = \operatorname* { s u p } _ { S \operatorname { r a n k } 1 , \| S \| _ { \mathrm { F } } \leq 1 } \langle T , S \rangle .
|
| 330 |
+
$$
|
| 331 |
+
|
| 332 |
+
For symmetric tensors (i.e., such that the entries of the array are invariant under permutation of the $p$ indices), Banach’s Theorem (see e.g., [(2.32), Nemirovski (2004)]) states that in fact one has
|
| 333 |
+
|
| 334 |
+
$$
|
| 335 |
+
\| T \| _ { \mathrm { o p } } = \operatorname* { s u p } _ { x \in \mathbb { S } ^ { d - 1 } } \langle T , x ^ { \otimes p } \rangle .
|
| 336 |
+
$$
|
| 337 |
+
|
| 338 |
+
We refer to Friedland and Lim (2018) for more details and background on tensors. We now list a couple of useful results, with short proofs.
|
| 339 |
+
|
| 340 |
+
Lemma 1 For a tensor $T$ of order $p$ , one has
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
\mathrm { L i p } _ { \mathbb { S } ^ { d - 1 } } ( x \mapsto \langle T , x ^ { \otimes p } \rangle ) \leq p \cdot \| T \| _ { \mathrm { o p } } .
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
Proof. One has for any $x , y \in \mathbb { S } ^ { d - 1 }$ ,
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
\begin{array} { r c l } { \left| \left. T , x ^ { \otimes p } \right. - \left. T , y ^ { \otimes p } \right. \right| } & { \leq } & { \displaystyle \sum _ { q = 1 } ^ { p } \left| \left. T , x ^ { \otimes p - q + 1 } \otimes y ^ { \otimes q - 1 } \right. - \left. T , x ^ { \otimes p - q } \otimes y ^ { \otimes q } \right. \right| } \\ & { \leq } & { p \cdot \left\| x - y \right\| \cdot \operatorname* { s u p } _ { x ^ { 1 } , \ldots , x ^ { p } \in \mathbb { S } ^ { d - 1 } } \left| \left. T , \otimes _ { q = 1 } ^ { p } x ^ { q } \right. \right| } \\ & { = } & { p \cdot \left\| x - y \right\| \cdot \left\| T \right\| _ { \mathrm { l o p } } . } \end{array}
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
Lemma 2 For any tensor $T$ of order $p$ , there exists $w _ { 1 } , \ldots , w _ { 2 ^ { p } d ^ { p - 1 } } \in \mathbb { R } ^ { d }$ and $\xi _ { 1 } , \dotsc , \xi _ { 2 ^ { p } d ^ { p - 1 } } \in$ $\{ - 1 , + 1 \}$ such that for all $x \in \mathbb { R } ^ { d }$ ,
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
\langle T , x ^ { \otimes p } \rangle = \sum _ { \ell = 1 } ^ { 2 ^ { p } d ^ { p - 1 } } \xi _ { \ell } \cdot ( w _ { \ell } \cdot x ) ^ { p } .
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
Results like Lemma 2 go back at least to Reznick (1992). In fact much more precise results on minimal decomposition in rank-1 tensors are known thanks to the work of Alexander and Hirschowitz (1995). We refer to (Comon et al., 2008) for more discussion on this topic.
|
| 359 |
+
|
| 360 |
+
Proof. First note that trivially $T$ can be written as:
|
| 361 |
+
|
| 362 |
+
$$
|
| 363 |
+
T = \sum _ { i _ { 1 } , \dots , i _ { p - 1 } = 1 } ^ { d } e _ { i _ { 1 } } \otimes \dots \otimes e _ { i _ { p - 1 } } \otimes T [ i _ { 1 } , \dots , i _ { p - 1 } , 1 : d ] .
|
| 364 |
+
$$
|
| 365 |
+
|
| 366 |
+
Thus one only needs to prove that a function of the form $\begin{array} { r } { x \mapsto \prod _ { q = 1 } ^ { p } ( w _ { q } \cdot x ) } \end{array}$ can be written as the sum of $2 ^ { p }$ functions of the form $( w ^ { \prime } \cdot x ) ^ { p }$ . To do so note that, with $\varepsilon _ { q }$ i.i.d. random signs,
|
| 367 |
+
|
| 368 |
+
$$
|
| 369 |
+
\mathbb E \left[ \prod _ { q = 1 } ^ { p } \varepsilon _ { q } \cdot \left( \sum _ { q = 1 } ^ { p } \varepsilon _ { q } w _ { q } \cdot x \right) ^ { p } \right] = \mathbb E \left[ \prod _ { q = 1 } ^ { p } \varepsilon _ { q } \cdot \sum _ { q _ { 1 } , \ldots , q _ { p } = 1 } ^ { p } \left( \prod _ { r = 1 } ^ { p } \varepsilon _ { q _ { r } } w _ { q _ { r } } \cdot x \right) \right] = p ! \prod _ { q = 1 } ^ { p } ( w _ { q } \cdot x ) .
|
| 370 |
+
$$
|
| 371 |
+
|
| 372 |
+
Lemma 3 For any tensor $T$ of order $p$ one has:
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
\| T \| _ { \mathrm { o p } , * } \leq d ^ { p - 1 } \cdot \| T \| _ { \mathrm { o p } } .
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
The above result and its proof are directly taken from Li et al. (2018). We only repeat the argument here for sake of completeness.
|
| 379 |
+
|
| 380 |
+
Proof. Note that the decomposition (10) is orthogonal, and thus for any tensor $S$ of order $p$ one has:
|
| 381 |
+
|
| 382 |
+
$$
|
| 383 |
+
\begin{array} { r c l } { \langle T , S \rangle } & { \le } & { \sqrt { d ^ { p - 1 } \cdot \displaystyle \sum _ { i _ { 1 } , \ldots , i _ { p - 1 } = 1 } ^ { d } \left. e _ { i _ { 1 } } \otimes \ldots \otimes e _ { i _ { p - 1 } } \otimes T [ i _ { 1 } , \ldots , i _ { p - 1 } , 1 : d ] , S \right. ^ { 2 } } } \\ & { \le } & { \sqrt { d ^ { p - 1 } \cdot \| S \| _ { \mathrm { o p } } ^ { 2 } \cdot \displaystyle \sum _ { i _ { 1 } , \ldots , i _ { p - 1 } = 1 } ^ { d } \| T [ i _ { 1 } , \ldots , i _ { p - 1 } , 1 : d ] \| ^ { 2 } } } \\ & { = } & { d ^ { \frac { p - 1 } { 2 } } \cdot \| S \| _ { \mathrm { o p } } \cdot \| T \| _ { F } . } \end{array}
|
| 384 |
+
$$
|
| 385 |
+
|
| 386 |
+
Thus one has $\| T \| _ { \mathrm { o p } , * } \leq d ^ { \frac { p - 1 } { 2 } } \cdot \| T \| _ { F }$ . By duality one also has $\| T \| _ { \mathrm { o p } } \geq d ^ { - { \frac { p - 1 } { 2 } } } \cdot \| T \| _ { F }$ , which concludes the proof.
|
| 387 |
+
|
| 388 |
+
# B RESULTS ON RANDOM TENSORS
|
| 389 |
+
|
| 390 |
+
Lemma 4 For any fixed $x \in \mathbb { S } ^ { d - 1 }$ and generic data, with probability at least $1 - C \exp ( - c _ { p } \tau )$ one has:
|
| 391 |
+
|
| 392 |
+
$$
|
| 393 |
+
\left| \sum _ { i = 1 } ^ { n } y _ { i } ( x _ { i } \cdot x ) ^ { p } \right| \leq C _ { p } { \sqrt { \frac { n \tau } { d ^ { p } } } } .
|
| 394 |
+
$$
|
| 395 |
+
|
| 396 |
+
Proof. Using [Theorem 1, Paouris et al. (2017)] one has, for any fixed $x \in \mathbb { S } ^ { d - 1 }$ and $\tau \leq n$
|
| 397 |
+
|
| 398 |
+
$$
|
| 399 |
+
\mathbb { P } \left( \left| d ^ { p / 2 } \sum _ { i = 1 } ^ { n } | x _ { i } \cdot x | ^ { p } - n \sigma _ { p } \right| > C _ { p } { \sqrt { n \tau } } \right) \leq C \exp ( - c _ { p } \tau ) ,
|
| 400 |
+
$$
|
| 401 |
+
|
| 402 |
+
where denotes the $p ^ { t h }$ moment of the standard Gaussian. Let us denote $n ^ { + } = | \{ i \in [ n ] : y _ { i } =$ +1} T + = Pi:yi=+1 and xi , and si arly for $n ^ { - } , T ^ { - }$ . Now with probability $1 - C \exp ( - c \tau )$ $y _ { i } ^ { \prime } s$
|
| 403 |
+
|
| 404 |
+
$$
|
| 405 |
+
| n ^ { + } - n ^ { - } | \leq { \sqrt { n \tau } } .
|
| 406 |
+
$$
|
| 407 |
+
|
| 408 |
+
Thus combining the two above displays we obtain with probability at least $1 - C \exp ( - c _ { p } \tau )$ ,
|
| 409 |
+
|
| 410 |
+
$$
|
| 411 |
+
d ^ { p / 2 } \left| \sum _ { i : y _ { i } = + 1 } | x _ { i } \cdot x | ^ { p } - \sum _ { i : y _ { i } = - 1 } | x _ { i } \cdot x | ^ { p } \right| \leq C _ { p } { \sqrt { n \tau } } + \sigma _ { p } | n ^ { + } - n ^ { - } | \leq C _ { p } { \sqrt { n \tau } } ,
|
| 412 |
+
$$
|
| 413 |
+
|
| 414 |
+
Lemma 5 For generic data, with probability at least $1 - C \exp ( - c _ { p } d )$ one has:
|
| 415 |
+
|
| 416 |
+
$$
|
| 417 |
+
\left. \sum _ { i = 1 } ^ { n } y _ { i } x _ { i } ^ { \otimes p } \right. _ { \mathrm { o p } } \leq C _ { p } { \sqrt { \frac { n } { d ^ { p - 1 } } } } .
|
| 418 |
+
$$
|
| 419 |
+
|
| 420 |
+
Proof. Let $\mathcal { N }$ be an $\frac { 1 } { 2 p }$ -net of $S ^ { d - 1 }$ (in particular $| { \mathcal { N } } | \leq C _ { p } ^ { d } )$ . By an union bound and Lemma 4 one has:
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
\mathbb { P } \left( \exists x \in \mathcal { N } _ { \varepsilon } \ : \ \left. \sum _ { i = 1 } ^ { n } y _ { i } \vert x _ { i } \cdot x \vert ^ { p } \right. > C _ { p } \sqrt { \frac { n } { d ^ { p - 1 } } } \right) \leq C \exp ( - c _ { p } d ) ,
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
$\textstyle T = \sum _ { i = 1 } ^ { n } y _ { i } x _ { i } ^ { \otimes p }$ $T$
|
| 427 |
+
|
| 428 |
+
$$
|
| 429 |
+
\| T \| _ { \mathrm { o p } } \leq \operatorname* { m a x } _ { x \in \mathcal { N } } \langle T , x ^ { \otimes p } \rangle + \frac { 1 } { 2 } \| T \| _ { \mathrm { o p } } ,
|
| 430 |
+
$$
|
| 431 |
+
|
| 432 |
+
and in particular $\begin{array} { r } { \| T \| _ { \mathrm { o p } } \leq 2 \operatorname* { m a x } _ { x \in \mathcal { N } } \langle T , x ^ { \otimes p } \rangle } \end{array}$ , which together with (11) concludes the proof.
|
| 433 |
+
|
| 434 |
+
# C PROOF OF THEOREM 1
|
| 435 |
+
|
| 436 |
+
Let $\begin{array} { r } { m = { \frac { n } { k } } } \end{array}$ (by assumption $\begin{array} { r } { m \leq c \cdot \frac { d } { \log ( n ) } ) } \end{array}$ and assume it is an integer. Let us choose $m$ points with the same label, say it is the points $x _ { 1 } , \ldots , x _ { m }$ with label $+ 1$ . As in Section 3.1 let $w \in \mathbb { R } ^ { d }$ be the minimal norm vector that satisfy $w \cdot x _ { i } = 1$ , and thus as we proved there with probability at least $1 - \exp ( C - c d )$ one has $\| w \| \leq \sqrt { 2 m }$ . Crucially for the end of the proof, also note that the distribution of $w$ is rotationally invariant. Next observe that with probability at least $1 - 1 / n ^ { C }$ (with respect to the sampling of $x _ { m + 1 } , \ldots , x _ { n } )$ one has $\begin{array} { r } { \operatorname* { m a x } _ { i \in \{ m + 1 , \ldots , n \} } | w \cdot x _ { i } | \leq C \cdot \| w \| \sqrt { \frac { \log ( n ) } { d } } \leq \frac { 1 } { 2 } } \end{array}$ . In particular the cap $\mathcal { C } : = \{ x \in \mathbb { S } ^ { d - 1 } : w \cdot x \geq \frac { 1 } { 2 } \}$ contains $x _ { 1 } , \ldots , x _ { m }$ but does not contain any $x _ { i }$ , $i > m$ . Thus the neuron
|
| 437 |
+
|
| 438 |
+
$$
|
| 439 |
+
x \mapsto 2 \cdot { \mathrm { R e L U } } \left( w \cdot x - { \frac { 1 } { 2 } } \right) ~ ,
|
| 440 |
+
$$
|
| 441 |
+
|
| 442 |
+
computes the value 1 at points $x _ { 1 } , \ldots , x _ { m }$ and the value 0 at the rest of the training set.
|
| 443 |
+
|
| 444 |
+
One can now repeat this process, and build the neurons $w _ { 1 } , \ldots , w _ { k }$ (all with $\mathrm { n o r m } \leq \sqrt { 2 m } )$ ), so that (with well-chosen signs $\xi _ { \ell } \in \{ - 1 , 1 \}$ ) the data is perfectly fitted by the function:
|
| 445 |
+
|
| 446 |
+
$$
|
| 447 |
+
f ( x ) = \sum _ { \ell = 1 } ^ { k } 2 \cdot \xi _ { \ell } \cdot \mathrm { { R e L U } } \left( w _ { \ell } \cdot x - \frac 1 2 \right) .
|
| 448 |
+
$$
|
| 449 |
+
|
| 450 |
+
It only remains to estimate the Lipschitz constant. Note that if a point $x \in \mathbb { S } ^ { d - 1 }$ activates a certain subset $A \subset \{ 1 , \ldots , k \}$ of the neurons, then the gradient at this point is $\textstyle \sum _ { \ell \in A } w _ { \ell } ^ { \prime }$ with $w _ { \ell } ^ { \prime } = 2 \xi _ { \ell } w _ { \ell }$ . Using that the $w _ { \ell ^ { \prime } }$ are rotationally invariant, one also has with probability at least $1 - C n \exp ( - c d )$ that $\begin{array} { r } { \left\| \sum _ { \ell \in A } w _ { \ell } ^ { \prime } \right\| ^ { 2 } \leq C \cdot | A | \cdot m } \end{array}$ for all $A \subset \{ 1 , \ldots , k \}$ . Thus it only remains to control how large $A$ can be. We show below that $| A | \leq C m \log ( d )$ with probability at least $1 - C \exp ( - c d \log ( d ) )$ which will conclude the proof.
|
| 451 |
+
|
| 452 |
+
$x$ activates neuron $\ell$ then $\begin{array} { r } { w _ { \ell } \cdot x \ge \frac { 1 } { 2 } \ge \frac { \| w _ { \ell } \| } { 4 \sqrt { m } } } \end{array}$ . Now note that for any fixed $x \in \mathbb { S } ^ { d - 1 }$ and fixed $\begin{array} { r } { A \subset [ k ] , \mathbb { P } \left( \forall \ell \in A , w _ { \ell } \cdot x \geq \frac { \| w _ { \ell } \| } { 4 \sqrt { m } } \right) \leq C \exp \left( - c | A | \frac { d } { m } \right) } \end{array}$ , so that
|
| 453 |
+
|
| 454 |
+
$$
|
| 455 |
+
\mathbb { P } \left( \exists A \subset [ k ] : | A | = a { \mathrm { ~ a n d } } \forall \ell \in A , w _ { \ell } \cdot x \geq { \frac { \| w _ { \ell } \| } { 4 { \sqrt { m } } } } \right) \leq \exp \left( C a \log ( k ) - c a { \frac { d } { m } } \right) .
|
| 456 |
+
$$
|
| 457 |
+
|
| 458 |
+
In particular we conclude that with $a = C m \log ( d )$ the probability that a fixed point on the sphere activates more than $a$ neuron is exponentially small in $d \log ( d )$ (recall that $m \bar { \log ( k ) } \leq c d$ by assumption). Thus we can conclude via an union bound on an $\varepsilon$ -net that the same holds for the entire sphere simultaneously. This concludes the proof.
|
| 459 |
+
|
| 460 |
+
# D FURTHER RESULTS AROUND CONJECTURE 1
|
| 461 |
+
|
| 462 |
+
# D.1 POLYNOMIAL ACTIVATION
|
| 463 |
+
|
| 464 |
+
We now observe that one can generalize Theorem 5 to handle biases (the parameters $b _ { l }$ in 1), and in fact even general polynomial activation function. Indeed, observe that any polynomial of $\langle w , x \rangle + b$ must also be a polynomial in $\langle w , x \rangle$ , albeit with different coefficients.
|
| 465 |
+
|
| 466 |
+
Theorem 6 Let $\begin{array} { r } { \psi ( t ) = \sum _ { q = 0 } ^ { p } \alpha _ { q } t ^ { q } } \end{array}$ and assume that we have $f \in \mathcal { F } _ { k } ( \psi )$ such that $f ( x _ { i } ) = y _ { i } , \forall i \in$ $[ n ]$ . Then, for generic data, with probability at least $1 - C \exp ( - c _ { p } d )$ one must have
|
| 467 |
+
|
| 468 |
+
$$
|
| 469 |
+
\begin{array} { r } { \mathrm { L i p } _ { \{ x : \| x \| \leq 1 \} } ( f ) \geq c _ { p } \sqrt { \frac { n } { d ^ { p - 1 } } } . } \end{array}
|
| 470 |
+
$$
|
| 471 |
+
|
| 472 |
+
Proof. Note that for $f \in \mathcal { F } _ { k } ( \psi )$ there exists tensors $T _ { 0 } , \ldots , T _ { p }$ , such that $T _ { q }$ is a tensor of order $q$ , and $f$ can be written as:
|
| 473 |
+
|
| 474 |
+
$$
|
| 475 |
+
f ( x ) = \sum _ { q = 0 } ^ { p } \langle T _ { q } , x ^ { \otimes q } \rangle .
|
| 476 |
+
$$
|
| 477 |
+
|
| 478 |
+
Now let us define $\begin{array} { r } { \Omega _ { q } = \sum _ { i = 1 } ^ { n } y _ { i } x _ { i } ^ { \otimes q } } \end{array}$ , and observe that
|
| 479 |
+
|
| 480 |
+
$$
|
| 481 |
+
n = \sum _ { i = 1 } ^ { n } y _ { i } f ( x _ { i } ) = \sum _ { q = 0 } ^ { p } \langle T _ { q } , \Omega _ { q } \rangle ,
|
| 482 |
+
$$
|
| 483 |
+
|
| 484 |
+
and thus there exists $q \in \{ 1 , \ldots , p \}$ such that $\langle T _ { q } , \Omega _ { q } \rangle \geq c _ { p } n$ (we ignore the term $q \ : = \ : 0$ by considering the largest balanced subset of the data, i.e. we assume $\textstyle \sum _ { i = 1 } ^ { n ^ { - } } y _ { i } = 0 )$ . Now one can repeat the proof of Theorem 5 to obtain that with probability at least $\mathrm { ~ i ~ } \overset { \cdot } { - } C \exp ( - c _ { p } d )$ , one has $\| T _ { q } \| _ { \mathrm { o p } } \geq c _ { p } \sqrt { \frac { n } { d ^ { p - 1 } } }$ . It only remains to observe that the Lipschitz constant of $f$ on the unit ball is lower bounded by $\| T _ { q } \| _ { \mathrm { o p } }$ .
|
| 485 |
+
|
| 486 |
+
As we mentioned in Section 4.3, without loss of generality we can assume $T _ { q }$ is symmetric, and thus by (9) there exists $x \in \mathbb { S } ^ { d - 1 }$ such that $\| T _ { q } \| _ { \mathrm { o p } } = \langle T _ { q } , x ^ { \otimes q } \rangle$ . Now consider the univariate polynomial $P ( t ) = f ( t x )$ . By Markov brothers’ inequality one has $\begin{array} { r } { \operatorname* { m a x } _ { t \in [ - 1 , 1 ] } P ( t ) \geq | P ^ { ( q ) } ( 0 ) | = } \end{array}$ $q ! \cdot | \langle T _ { q } , x ^ { \otimes q } \rangle | = q ! \cdot \| T _ { q } \| _ { \mathrm { o p } }$ , thus concluding the proof.
|
| 487 |
+
|
| 488 |
+
# D.2 QUADRATIC ACTIVATION
|
| 489 |
+
|
| 490 |
+
In Section 4.3 we obtained a lower bound for tensor networks that match Conjecture 1 only when the rank of the corresponding tensor is maximal. Here we show that for quadratic networks (i.e., $p = 2$ ) we can match Conjecture 1, and in fact even obtain a better bound, for any rank $k$ :
|
| 491 |
+
|
| 492 |
+
Theorem 7 Assume that we have a matrix $T \in \mathbb { R } ^ { d \times d }$ with rank $k$ such that:
|
| 493 |
+
|
| 494 |
+
$$
|
| 495 |
+
\langle T , x _ { i } ^ { \otimes 2 } \rangle = y _ { i } , \forall i \in [ n ] .
|
| 496 |
+
$$
|
| 497 |
+
|
| 498 |
+
Then, for generic data, with probability at least $1 - C \exp ( - c d )$ , one must have
|
| 499 |
+
|
| 500 |
+
$$
|
| 501 |
+
\| T \| _ { \mathrm { o p } } \geq c { \frac { \sqrt { n d } } { k } } \ \left( \geq c { \sqrt { n / k } } \right) .
|
| 502 |
+
$$
|
| 503 |
+
|
| 504 |
+
Proof. The proof is exactly the same as for Theorem 5, except that in (8), instead of using Lemma 3 we use the fact that for a matrix $T$ of rank $k$ one has:
|
| 505 |
+
|
| 506 |
+
$$
|
| 507 |
+
\| T \| _ { \mathrm { o p , * } } \leq k \cdot \| T \| _ { \mathrm { o p } } .
|
| 508 |
+
$$
|
parse/train/y4-e1K23GLC/y4-e1K23GLC_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/y4-e1K23GLC/y4-e1K23GLC_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/y4-e1K23GLC/y4-e1K23GLC_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|