Datasets:
Add files using upload-large-folder tool
Browse files- parse/train/HklRwaEKwB/HklRwaEKwB.md +0 -0
- parse/train/HklRwaEKwB/HklRwaEKwB_content_list.json +0 -0
- parse/train/HklRwaEKwB/HklRwaEKwB_middle.json +0 -0
- parse/train/HklRwaEKwB/HklRwaEKwB_model.json +0 -0
- parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW.md +269 -0
- parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_content_list.json +1127 -0
- parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_middle.json +0 -0
- parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_model.json +0 -0
- parse/train/S1eALyrYDH/S1eALyrYDH.md +484 -0
- parse/train/S1eALyrYDH/S1eALyrYDH_content_list.json +0 -0
- parse/train/S1eALyrYDH/S1eALyrYDH_middle.json +0 -0
- parse/train/S1eALyrYDH/S1eALyrYDH_model.json +0 -0
- parse/train/S1l-C0NtwS/S1l-C0NtwS.md +333 -0
- parse/train/S1l-C0NtwS/S1l-C0NtwS_content_list.json +1799 -0
- parse/train/S1l-C0NtwS/S1l-C0NtwS_middle.json +0 -0
- parse/train/S1l-C0NtwS/S1l-C0NtwS_model.json +0 -0
- parse/train/rkePU0VYDr/rkePU0VYDr.md +565 -0
- parse/train/rkePU0VYDr/rkePU0VYDr_content_list.json +0 -0
- parse/train/rkePU0VYDr/rkePU0VYDr_middle.json +0 -0
- parse/train/rkePU0VYDr/rkePU0VYDr_model.json +0 -0
parse/train/HklRwaEKwB/HklRwaEKwB.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklRwaEKwB/HklRwaEKwB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklRwaEKwB/HklRwaEKwB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HklRwaEKwB/HklRwaEKwB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW.md
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Global Filter Networks for Image Classification
|
| 2 |
+
|
| 3 |
+
Yongming Rao∗ Wenliang Zhao∗ Zheng Zhu Jiwen $\mathbf { L } \mathbf { u } ^ { \dagger }$ Jie Zhou
|
| 4 |
+
|
| 5 |
+
Department of Automation, Tsinghua University State Key Lab of Intelligent Technologies and Systems Beijing National Research Center for Information Science and Technology
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Recent advances in self-attention and pure multi-layer perceptrons (MLP) models for vision have shown great potential in achieving promising performance with fewer inductive biases. These models are generally based on learning interaction among spatial locations from raw data. The complexity of self-attention and MLP grows quadratically as the image size increases, which makes these models hard to scale up when high-resolution features are required. In this paper, we present the Global Filter Network (GFNet), a conceptually simple yet computationally efficient architecture, that learns long-term spatial dependencies in the frequency domain with log-linear complexity. Our architecture replaces the self-attention layer in vision transformers with three key operations: a 2D discrete Fourier transform, an element-wise multiplication between frequency-domain features and learnable global filters, and a 2D inverse Fourier transform. We exhibit favorable accuracy/complexity trade-offs of our models on both ImageNet and downstream tasks. Our results demonstrate that GFNet can be a very competitive alternative to transformer-style models and CNNs in efficiency, generalization ability and robustness. Code is available at https://github.com/raoyongming/GFNet.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
The transformer architecture, originally designed for the natural language processing (NLP) tasks [42], has shown promising performance on various vision problems recently [10, 40, 27, 49, 4, 47, 35, 5]. Different from convolutional neural networks (CNNs), vision transformer models use self-attention layers to capture long-term dependencies, which are able to learn more diverse interactions between spatial locations. The pure multi-layer perceptrons (MLP) models [38, 39] further simplify the vision transformers by replacing the self-attention layers with MLPs that are applied across spatial locations. Since fewer inductive biases are introduced, these two kinds of models have the potential to learn more generic and flexible interactions among spatial locations from raw data.
|
| 14 |
+
|
| 15 |
+
One primary challenge of applying self-attention and pure MLP models to vision tasks is the considerable computational complexity that grows quadratically as the number of tokens increases. Therefore, typical vision transformer style models usually consider a relatively small resolution for the intermediate features (e.g. $1 4 \times 1 4$ tokens are extracted from the input images in both ViT [10] and MLP-Mixer [38]). This design may limit the applications of downstream dense prediction tasks like detection and segmentation. A possible solution is to replace the global self-attention with several local self-attention like Swin transformer [27]. Despite the effectiveness in practice, local self-attention brings quite a few hand-made choices (e.g., window size, padding strategy, etc.) and limits the receptive field of each layer.
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: The overall architecture of the Global Filter Network. Our architecture is based on Vision Transformer (ViT) models with some minimal modifications. We replace the self-attention sub-layer with the proposed global filter layer, which consists of three key operations: a 2D discrete Fourier transform to convert the input spatial features to the frequency domain, an element-wise multiplication between frequency-domain features and the global filters, and a 2D inverse Fourier transform to map the features back to the spatial domain. The efficient fast Fourier transform (FFT) enables us to learn arbitrary interactions among spatial locations with log-linear complexity.
|
| 19 |
+
|
| 20 |
+
In this paper, we present a new conceptually simple yet computationally efficient architecture called Global Filter Network (GFNet), which follows the trend of removing inductive biases from vision models while enjoying the log-linear complexity in computation. The basic idea behind our architecture is to learn the interactions among spatial locations in the frequency domain. Different from the self-attention mechanism in vision transformers and the fully connected layers in MLP models, the interactions among tokens are modeled as a set of learnable global filters that are applied to the spectrum of the input features. Since the global filters are able to cover all the frequencies, our model can capture both long-term and short-term interactions. The filters are directly learned from the raw data without introducing human priors. Our architecture is largely based on the vision transformers only with some minimal modifications. We replace the self-attention sub-layer in vision transformers with three key operations: a 2D discrete Fourier transform to convert the input spatial features to the frequency domain, an element-wise multiplication between frequency-domain features and the global filters, and a 2D inverse Fourier transform to map the features back to the spatial domain. Since the Fourier transform is used to mix the information of different tokens, the global filter is much more efficient compared to the self-attention and MLP thanks to the $\mathcal { O } ( L \log L )$ complexity of the fast Fourier transform algorithm (FFT) [7]. Benefiting from this, the proposed global filter layer is less sensitive to the token length $L$ and thus is compatible with larger feature maps and CNN-style hierarchical architectures without modifications. The overall architecture of GFNet is illustrated in Figure 1. We also compare our global filter with prevalent operations in deep vision models in Table 1.
|
| 21 |
+
|
| 22 |
+
Our experiments on ImageNet verify the effectiveness of GFNet. With a similar architecture, our model outperform the recent vision transformer and MLP models including DeiT [40], ResMLP [39] and gMLP [26]. When using the hierarchical architecture, GFNet can further enlarge the gap. GFNet also works well on downstream transfer learning and semantic segmentation tasks. Our results demonstrate that GFNet can be a very competitive alternative to transformer-style models and CNNs in efficiency, generalization ability and robustness.
|
| 23 |
+
|
| 24 |
+
# 2 Related works
|
| 25 |
+
|
| 26 |
+
Vision transformers. Since Dosovitskiy et al. [10] introduce transformers to the image classification and achieve a competitive performance compared to CNNs, transformers begin to exhibit their potential in various vision tasks [3, 4, 49]. Recently, there are a large number of works which aim to improve the transformers [40, 41, 27, 44, 18, 11, 48]. These works either seek for better training strategies [40, 11] or design better architectures [27, 44, 48] or both [41, 11]. However, most of the architecture modification of the transformers [44, 18, 27, 48] introduces additional inductive biases similar to CNNs. In this work, we only focus on the standard transformer architecture [10, 40] and our goal is to replace the heavy self-attention layer $( \mathcal { O } ( L ^ { 2 } ) )$ to an more efficient operation which can still model the interactions among different spatial locations without introducing the inductive biases associated with CNNs.
|
| 27 |
+
|
| 28 |
+
Table 1: Comparisons of the proposed Global Filter with prevalent operations in deep vision models. $H$ , $W$ and $D$ are the height, width and the number of channels of the feature maps. $k$ is the kernel size of the convolution operation. The proposed global filter is much more efficient than self-attention and spatial MLP.
|
| 29 |
+
|
| 30 |
+
<table><tr><td></td><td>Complexity (FLOPs)</td><td># Parameters</td></tr><tr><td>Depthwise Convolution</td><td>O(k² HWD)</td><td>k²D</td></tr><tr><td> Self-Attention</td><td>O(HWD² + H²W²D)</td><td>4D2</td></tr><tr><td> Spatial MLP</td><td>O(H²W² D)</td><td>H²W2</td></tr><tr><td>Global Filter</td><td>O(HWD[log2(HW)] + HWD)</td><td>HWD</td></tr></table>
|
| 31 |
+
|
| 32 |
+
MLP-like models. More recently, there are several works that question the importance of selfattention in the vision transformers and propose to use MLP to replace the self-attention layer in the transformers [38, 39, 26]. The MLP-Mixer [38] employs MLPs to perform token mixing and channel mixing alternatively in each block. ResMLP [39] adopts a similar idea but substitutes the Layer Normalization with an Affine transformation for acceleration. The recently proposed gMLP [26] uses a spatial gating unit to re-weight tokens in the spatial dimension. However, all of the above models include MLPs to mix the tokens spatially, which brings two drawbacks: (1) like the self-attention in the transformers, the spatial MLP still requires computational complexity quadratic to the length of tokens. (2) unlike transformers, MLP models are hard to scale up to higher resolution since the weights of the spatial MLPs have fixed sizes. Our work follows this trend and successfully resolves the above issues in MLP-like models. The proposed GFNet enjoys log-linear complexity and can be easily scaled up to any resolution.
|
| 33 |
+
|
| 34 |
+
Applications of Fourier transform in vision. Fourier transform has been an important tool in digital image processing for decades [32, 1]. With the breakthroughs of CNNs in vision [14, 13], there are a variety of works that start to incorporate Fourier transform in some deep learning method [24, 46, 9, 22, 6] for vision tasks. Some of these works employ discrete Fourier transform to convert the images to the frequency domain and leverage the frequency information to improve the performance in certain tasks [22, 46], while others utilize the convolution theorem to accelerate the CNNs via fast Fourier transform (FFT) [24, 9]. FFC [6] replaces the convolution in CNNs with an Local Fourier Unit and perform convolutions in the frequency domain. Very recent works also try to leverage Fourier transform to develop deep learning models to solve partial differential equations [25] and NLP tasks [23]. In this work, we propose to use learnable filters to interchange information globally among the tokens in the Fourier domain, inspired by the frequency filters in the digital image processing [32]. We also take advantage of some properties of FFT to reduce the computational costs and the number of parameters.
|
| 35 |
+
|
| 36 |
+
# 3 Method
|
| 37 |
+
|
| 38 |
+
# 3.1 Preliminaries: discrete Fourier transform
|
| 39 |
+
|
| 40 |
+
We start by introducing the discrete Fourier transform (DFT), which plays an important role in the area of digital signal processing and is a crucial component in our GFNet. For clarity, We first consider the 1D DFT. Given a sequence of $N$ complex numbers $x [ n ] , 0 \leq n \leq N - 1$ , the 1D DFT converts the sequence into the frequency domain by:
|
| 41 |
+
|
| 42 |
+
$$
|
| 43 |
+
X [ k ] = \sum _ { n = 0 } ^ { N - 1 } x [ n ] e ^ { - j ( 2 \pi / N ) k n } : = \sum _ { n = 0 } ^ { N - 1 } x [ n ] W _ { N } ^ { k n }
|
| 44 |
+
$$
|
| 45 |
+
|
| 46 |
+
# Algorithm 1 Pseudocode of Global Filter Layer.
|
| 47 |
+
|
| 48 |
+
X = rfft2(x, dim=(1, 2)) X_tilde $= \texttt { X * K }$ $\texttt { x } =$ irfft2(X_tilde, ${ \mathsf { d i m } } { = } ( 1 , \ 2 ) .$ )
|
| 49 |
+
|
| 50 |
+
rfft2/irfft2: 2D FFT/IFFT for real signal
|
| 51 |
+
|
| 52 |
+
where $j$ is the imaginary unit and $W _ { N } = e ^ { - j ( 2 \pi / N ) }$ . The formulation of DFT in Equation (3.1) can be derived from the Fourier transform for continuous signal by sampling in both the time domain and the frequency domain (see Appendix A for details). Since $X [ k ]$ repeats on intervals of length $N$ , it is suffice to take the value of $X [ k ]$ at $N$ consecutive points $k = 0 , 1 , \ldots , N - 1$ . Specifically, $X [ k ]$ represents to the spectrum of the sequence $x [ n ]$ at the frequency $\omega _ { k } = 2 \pi \boldsymbol { k } / N$ .
|
| 53 |
+
|
| 54 |
+
It is also worth noting that DFT is a one-to-one transformation. Given the DFT $X [ k ]$ , we can recover the original signal $x [ n ]$ by the inverse DFT (IDFT):
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
x [ n ] = { \frac { 1 } { N } } \sum _ { k = 0 } ^ { N - 1 } X [ k ] e ^ { j ( 2 \pi / N ) k n } .
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
For real input $x [ n ]$ , it can be proved that (see Appendix A) its DFT is conjugate symmetric, i.e., $X [ N - k ] { \ ' } = X ^ { * } [ { \dot { k } } ]$ . The reverse is true as well: if we perform IDFT to $X [ k ]$ which is conjugate symmetric, a real discrete signal can be recovered. This property implies that the half of the DFT $\{ X [ k ] : 0 \le k \le \lceil N / 2 \rceil \}$ contains the full information about the frequency characteristics of $x [ n ]$ .
|
| 61 |
+
|
| 62 |
+
DFT is widely used in modern signal processing algorithms for mainly two reasons: (1) the input and output of DFT are both discrete thus can be easily processed by computers; (2) there exist efficient algorithms for computing the DFT. The fast Fourier transform (FFT) algorithms take advantage of the symmetry and periodicity properties of $W _ { N } ^ { k n }$ and reduce the complexity to compute DFT from $\mathcal { O } ( N ^ { 2 } )$ to $\mathcal { O } ( N \log N )$ . The inverse DFT (3.2), which has a similar form to the DFT, can also be computed efficiently using the inverse fast Fourier transform (IFFT).
|
| 63 |
+
|
| 64 |
+
The DFT described above can be extend to 2D signals. Given the 2D signal $X [ m , n ] , 0 \leq m \leq$ $M - 1 , 0 \leq n \leq N - 1$ , the 2D DFT of $x [ m , n ]$ is given by:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
X [ u , v ] = \sum _ { m = 0 } ^ { M - 1 } \sum _ { n = 0 } ^ { N - 1 } x [ m , n ] e ^ { - j 2 \pi \left( { \frac { u m } { M } } + { \frac { v n } { N } } \right) } .
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
The 2D DFT can be viewed as performing 1D DFT on the two dimensions alternatively. Similar to 1D DFT, 2D DFT of real input $x [ m , n ]$ satisfied the conjugate symmetry property $X [ M - u , N - v ] =$ $X ^ { * } [ u , v ]$ . The FFT algorithms can also be applied to 2D DFT to improve computational efficiency.
|
| 71 |
+
|
| 72 |
+
# 3.2 Global Filter Networks
|
| 73 |
+
|
| 74 |
+
Overall architecture. Recent advances in vision transformers [10, 40] demonstrate that models based on self-attention can achieve competitive performance even without the inductive biases associated with the convolutions. Henceforth, there are several works [39, 38] that exploit approaches (e.g., MLPs) other than self-attention to mix the information among the tokens. The proposed Global Filter Networks (GFNet) follows this line of work and aims to replace the heavy self-attention layer $( \mathcal { O } ( N ^ { 2 } ) )$ ) with a simpler and more efficient one.
|
| 75 |
+
|
| 76 |
+
The overall architecture of our model is depicted in Figure 1. Our model takes as an input $H \times W$ non-overlapping patches and projects the flattened patches into $L = H W$ tokens with dimension $D$ . The basic building block of GFNet consists of: 1) a global filter layer that can exchange spatial information efficiently $( { \mathcal { O } } ( L \log L ) )$ ; 2) a feedforward network (FFN) as in [10, 40]. The output tokens of the last block are fed into a global average pooling layer followed by a linear classifier.
|
| 77 |
+
|
| 78 |
+
Global filter layer. We propose global filter layer as an alternative to the self-attention layer which can mix tokens representing different spatial locations. Given the tokens $\pmb { x } \in \mathbb { R } ^ { H \times W \times \tilde { D } }$ , we first perform 2D FFT (see Section 3.1) along the spatial dimensions to convert $_ { \textbf { \em x } }$ to the frequency domain:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\pmb { X } = \mathcal { F } [ \pmb { x } ] \in \mathbb { C } ^ { H \times W \times D } ,
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $\mathcal { F } [ \cdot ]$ denotes the 2D FFT. Note that $\boldsymbol { X }$ is a complex tensor and represents the spectrum of $_ { x }$ We can then modulate the spectrum by multiplying a learnable filter $\pmb { K } \in \mathbb { C } ^ { H \times W \times D }$ to the $\boldsymbol { X }$ :
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\tilde { \cal X } = { \cal K } \odot { \cal X } ,
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\odot$ is the element-wise multiplication (also known as the Hadamard product). The filter $\kappa$ is called the global filter since it has the same dimension with $\boldsymbol { X }$ , which can represent an arbitrary filter in the frequency domain. Finally, we adopt the inverse FFT to transform the modulated spectrum $\tilde { X }$ back to the spatial domain and update the tokens:
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\pmb { x } \mathcal { F } ^ { - 1 } [ \tilde { \pmb { X } } ] .
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
The formulation of the global filter layer is motivated by the frequency filters in the digital image processing [32], where the global filter $\kappa$ can be regarded as a set of learnable frequency filters for different hidden dimensions. It can be proved (see Appendix A) that the global filter layer is equivalent to a depthwise global circular convolution with the filter size $H \times W$ . Therefore, the global filter layer is different from the standard convolutional layer which adopts a relatively small filter size to enforce the inductive biases of the locality. We also find although the proposed global filter can also be interpreted as a spatial domain operation, the filters learned in our networks exhibit more clear patterns in the frequency domain than the spatial domain, which indicates our models tend to capture relation in the frequency domain instead of spatial domain (see Figure 4). Note that the global filter implemented in the frequency domain is also much more efficient compared to the spatial domain, which enjoys a complexity of $\mathcal { O } ( D L \log L )$ while the vanilla depthwise global circular convolution in the spatial domain has $\mathcal { O } ( D L ^ { 2 } )$ complexity. We will also show that the global filter layer is better than its local convolution counterparts in the experiments.
|
| 97 |
+
|
| 98 |
+
It is also worth noting that in the implementation, we make use of the property of DFT to reduce the redundant computation. Since $_ { \textbf { \em x } }$ is a real tensor, its DFT $\boldsymbol { X }$ is conjugate symmetric, i.e. $X [ H -$ $u , W - v , : ] = \mathbf { \bar { X } } ^ { * } [ H , W , : ]$ . Therefore, we can take only the half of the values in the $\boldsymbol { X }$ but preserve the full information at the same time:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
\pmb { X } _ { r } = \pmb { X } [ : , 0 : \widehat { W } ] : = \mathcal { F } _ { r } [ \pmb { x } ] , \quad \widehat { W } = \lceil W / 2 \rceil ,
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $\mathcal { F } _ { r }$ denotes the 2D FFT for real input. In this way, we can implement the global filter as $\boldsymbol { K _ { r } } \in \mathbb { C } ^ { H \times \widehat { W } \times D }$ , which can reduce half the parameters. This can also ensure $\mathcal { F } _ { r } ^ { - 1 } [ K _ { r } \odot X _ { r } ]$ is a real tensor, thus it can be added directly to the input $_ { \textbf { \em x } }$ . The global filter layer can be easily in modern deep learning frameworks (e.g., PyTorch [31]), as is shown in Algorithm 1. The FFT and IFFT are well supported by GPU and CPU thanks to the acceleration libraries like cuFFT and mkl-fft, which makes our models perform well on hardware.
|
| 105 |
+
|
| 106 |
+
Relationship to other transformer-style models. The GFNet follows the line of research about the exploration of approaches to mix the tokens. Compared to existing architectures like vision transformers and pure MLP models, we exhibit that GFNet has several favorable properties: 1) GFNet is more efficient. The complexity of both the vision transformers [10, 40, 41] and the MLP models [38, 39] is $\mathcal { O } ( L ^ { 2 } )$ . Different from them, global filter layer only consists an FFT $( { \mathcal { O } } ( L \log L ) )$ , an element-wise multiplication $( \mathcal { O } ( L ) )$ and an IFFT $\scriptstyle ( { \mathcal { O } } ( L \log L ) )$ ), which means the total computational complexity is $\mathcal { O } ( \bar { L } \log L )$ . 2) Although pure MLP models are simpler compared to transformers, it is hard to fine-tune them on higher resolution (e.g., from $2 2 4 \times 2 2 4$ resolution to $3 8 4 \times 3 8 4$ resolution) since they can only process a fixed number of tokens. As opposed to pure MLP models, we will show that our GFNet can be easily scaled up to higher resolution. Our model is more flexible since both the FFT and the IFFT have no learnable parameters and can process sequences with arbitrary length. We can simply interpolate the global filter K to K0 ∈ CH0×W0×D for different inputs, where $H ^ { \prime } \times W ^ { \prime }$ is the target size. The interpolation is reasonable due to the property of DFT. Each element of the global filter $K [ u , v ]$ corresponds to the spectrum of the filter at $\omega _ { u } = 2 \pi u / H , \omega _ { v } = 2 \pi v / W$ and thus, the global filter $\kappa$ can be viewed as a sampling of a continuous spectrum $\pmb { K } ( \omega _ { u } , \omega _ { v } )$ , where $\omega _ { u } , \omega _ { v } \in [ 0 , 2 \pi ]$ . Hence, changing the resolution is equivalent to changing the sampling interval of $\pmb { K } ( \omega _ { u } , \omega _ { v } )$ . Therefore, we only need to perform interpolation to shift from one resolution to another.
|
| 107 |
+
|
| 108 |
+
Table 2: Detailed configurations of different variants of GFNet. For hierarchical models, we provide the number of channels and blocks in 4 stages. The FLOPs are calculated with $2 2 4 \times 2 2 4$ input.
|
| 109 |
+
|
| 110 |
+
<table><tr><td>Model</td><td>#Blocks</td><td>#Channels</td><td>Params (M)</td><td>FLOPs (G)</td></tr><tr><td>GFNet-Ti</td><td>12</td><td>256</td><td>7</td><td>1.3</td></tr><tr><td>GFNet-XS</td><td>12</td><td>384</td><td>16</td><td>2.9</td></tr><tr><td>GFNet-S</td><td>19</td><td>384</td><td>25</td><td>4.5</td></tr><tr><td>GFNet-B</td><td>19</td><td>512</td><td>43</td><td>7.9</td></tr><tr><td>GFNet-H-Ti</td><td>[3,3,10, 3]</td><td>[64, 128,256, 512]</td><td>15</td><td>2.1</td></tr><tr><td>GFNet-H-S</td><td>[3,3,10, 3]</td><td>[96,192, 384, 768]</td><td>32</td><td>4.6</td></tr><tr><td>GFNet-H-B</td><td>[3,3, 27, 3]</td><td>[96,192, 384, 768]</td><td>54</td><td>8.6</td></tr></table>
|
| 111 |
+
|
| 112 |
+
We also notice recently a concurrent work FNet [23] leverages Fourier transform to mix tokens. Our work is distinct from FNet in three aspects: (1) FNet performs FFT to the input and directly adds the real part of the spectrum to the input tokens, which blends the information from different domains (spatial/frequency) together. On the other hand, GFNet draws motivation from the frequency filters, which is more reasonable. (2) FNet only keeps the real part of the spectrum. Note that the spectrum of real input is conjugate symmetric, which means the real part is exactly symmetric and thus contains redundant information. Our GFNet, however, utilizes this property to simplify the computation. (3) FNet is designed for NLP tasks, while our GFNet focuses on vision tasks. In our experiments, we also implement the FNet and show that our model outperforms it.
|
| 113 |
+
|
| 114 |
+
Architecture variants. Due to the limitation from the quadratic complexity in the self-attention, vision transformers [10, 40] are usually designed to process a relatively small feature map (e.g., $1 4 \times 1 4$ ). However, our GFNet, which enjoys log-linear complexity, avoids that problem. Since in our GFNet the computational costs do not grow such significantly when the feature map size increases, we can adopt a hierarchical architecture inspired by the success of CNNs [21, 14]. Generally speaking, we can start from a large feature map (e.g., $5 6 \times 5 6$ ) and gradually perform downsampling after a few blocks. In this paper, we mainly investigate two kinds of variants of GFNet: transformer-style models with a fixed number of tokens in each block and CNN-style hierarchical models with gradually downsampled tokens. For transformer-style models, we begin with a 12-layer model (GFNet-XS) with a similar architecture with DeiT-S and ResMLP-12. Then, we obtain 3 variants of the model (GFNet-Ti, GFNet-S and GFNet-B) by simply adjusting the depth and embedding dimension, which have similar computational costs with ResNet-18, 50 and 101 [14]. For hierarchical models, we also design three models (GFNet-H-Ti, GFNet-H-S and GFNet-H-B) that have these three levels of complexity following the design of PVT [43]. We use $4 \times 4$ patch embedding to form the input tokens and use a non-overlapping convolution layer to downsample tokens following [43, 27]. Unlike PVT [43] and Swin [27], we directly apply our building block on different stages without any modifications. The detailed architectures are summarized in Table 2.
|
| 115 |
+
|
| 116 |
+
# 4 Experiments
|
| 117 |
+
|
| 118 |
+
We conduct extensive experiments to verify the effectiveness of our GFNet. We present the main results on ImageNet [8] and compare them with various architectures. We also test our models on the downstream transfer learning datasets including CIFAR-10/100 [20], Stanford Cars [19] and Flowers-102 [30]. Lastly, we investigate the efficiency and robustness of the proposed models and provide visualization to have an intuitive understanding of our method.
|
| 119 |
+
|
| 120 |
+
# 4.1 ImageNet Classification
|
| 121 |
+
|
| 122 |
+
Setups. We conduct our main experiments on ImageNet [8], which is a widely used large-scale benchmark for image classification. ImageNet contains roughly 1.2M images from 1,000 categories. Following common practice [14, 40], we train our models on the training set of ImageNet and report the single-crop top-1 accuracy on 50,000 validation images. To fairly compare with previous works [40, 39], we follow the most training details for our models and do not add extra regularization methods like [18]. Different from [40], we does not use EMA model [33], RandomEarse [50] and repeated augmentation [17], which are important to train DeiT while sightly hurting the performance of our models. We set the gradient clipping norm to 1 for all of our models. During finetuning at the higher resolution, we use the hyper-parameters suggested by the implementation of [40] and train the model for 30 epochs. All of our models are trained on a single machine with 8 GPUs. More details can be found in Appendix B.
|
| 123 |
+
|
| 124 |
+
Table 3: Comparisons with transformer-style architectures on ImageNet. We compare different transformer-style architectures for image classification including vision transformers [40], MLP-like models [39, 26] and our models that have comparable FLOPs and the number of parameters. We report the top-1 accuracy on the validation set of ImageNet as well as the number of parameters and FLOPs. All of our models are trained with $2 2 4 \times 2 2 4$ images. We use “ $\uparrow 3 8 4 "$ to represent models finetuned on $3 8 4 \times 3 8 4$ images for 30 epochs.
|
| 125 |
+
|
| 126 |
+
<table><tr><td>Model</td><td>Params (M)</td><td>FLOPs (G)</td><td>Resolution</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>DeiT-Ti40]</td><td>5</td><td>1.2</td><td>224</td><td>72.2</td><td>91.1</td></tr><tr><td>gMLP-Ti[26]</td><td>6</td><td>1.4</td><td>224</td><td>72.0</td><td>1</td></tr><tr><td>GFNet-Ti</td><td>7</td><td>1.3</td><td>224</td><td>74.6</td><td>92.2</td></tr><tr><td>ResMLP-12 [39]</td><td>15</td><td>3.0</td><td>224</td><td>76.6</td><td>1</td></tr><tr><td>GFNet-XS</td><td>16</td><td>2.9</td><td>224</td><td>78.6</td><td>94.2</td></tr><tr><td>DeiT-S40]</td><td>22</td><td>4.6</td><td>224</td><td>79.8</td><td>95.0</td></tr><tr><td>gMLP-S [26]</td><td>20</td><td>4.5</td><td>224</td><td>79.4</td><td>1</td></tr><tr><td>GFNet-S</td><td>25</td><td>4.5</td><td>224</td><td>80.0</td><td>94.9</td></tr><tr><td>ResMLP-36 [39]</td><td>45</td><td>8.9</td><td>224</td><td>79.7</td><td>1</td></tr><tr><td>GFNet-B</td><td>43</td><td>7.9</td><td>224</td><td>80.7</td><td>95.1</td></tr><tr><td>GFNet-XS1384</td><td>18</td><td>8.4</td><td>384</td><td>80.6</td><td>95.4</td></tr><tr><td>DeiT-B40]</td><td>86</td><td>17.5</td><td>224</td><td>81.8</td><td>95.6</td></tr><tr><td>gMLP-B [26]</td><td>73</td><td>15.8</td><td>224</td><td>81.6</td><td></td></tr><tr><td>GFNet-S↑384</td><td>28</td><td>13.2</td><td>384</td><td>81.7</td><td>95.8</td></tr><tr><td>GFNet-B↑384</td><td>47</td><td>23.3</td><td>384</td><td>82.1</td><td>95.8</td></tr></table>
|
| 127 |
+
|
| 128 |
+
Table 4: Comparisons with hierarchical architectures on ImageNet. We compare different hierarchical architectures for image classification including convolutional neural networks [14, 34], hierarchical vision transformers [43, 27] and our hierarchical models that have comparable FLOPs and number of parameters. We report the top-1 accuracy on the validation set of ImageNet as well as the number of parameters and FLOPs. All models are trained and tested with $2 2 4 \times 2 2 4$ images.
|
| 129 |
+
|
| 130 |
+
<table><tr><td>Model</td><td>Params (M)</td><td>FLOPs (G)</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>ResNet-18 [14]</td><td>12</td><td>1.8</td><td>69.8</td><td>89.1</td></tr><tr><td>RegNetY-1.6GF [34]</td><td>11</td><td>1.6</td><td>78.0</td><td>1</td></tr><tr><td>PVT-Ti [26]</td><td>13</td><td>1.9</td><td>75.1</td><td>=</td></tr><tr><td>GFNet-H-Ti</td><td>15</td><td>2.1</td><td>80.1</td><td>95.1</td></tr><tr><td>ResNet-50 [40]</td><td>26</td><td>4.1</td><td>76.1</td><td>92.9</td></tr><tr><td>RegNetY-4.0GF [34]</td><td>21</td><td>4.0</td><td>80.0</td><td>-</td></tr><tr><td>PVT-S [26]</td><td>25</td><td>3.8</td><td>79.8</td><td>-</td></tr><tr><td>Swin-Ti [27]</td><td>29</td><td>4.5</td><td>81.3</td><td>1</td></tr><tr><td>GFNet-H-S</td><td>32</td><td>4.6</td><td>81.5</td><td>95.6</td></tr><tr><td>ResNet-101 [40]</td><td>45</td><td>7.9</td><td>77.4</td><td>93.5</td></tr><tr><td>RegNetY-8.0GF [34]</td><td>39</td><td>8.0</td><td>81.7</td><td>1</td></tr><tr><td>PVT-M[26]</td><td>44</td><td>6.7</td><td>81.2</td><td>=</td></tr><tr><td>Swin-S [27]</td><td>50</td><td>8.7</td><td>83.0</td><td></td></tr><tr><td>GFNet-H-B</td><td>54</td><td>8.6</td><td>82.9</td><td>96.2</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Comparisons with transformer-style architectures. The results are presented in Table 3. We compare our method with different transformer-style architectures for image classification including vision transformers (DeiT [40]) and MLP-like models (ResMLP [39] and $\mathrm { g M L P }$ [26]) that have similar complexity and number of parameters. We see that our method can clearly outperform recent MLP-like models such as ResMLP [39] and $\mathrm { g M L P }$ [26], and show similar performance to DeiT. Specifically, GFNet-XS outperforms ResMLP-12 by $2 . 0 \%$ while having slightly fewer FLOPs. GFNet-S also achieves better top-1 accuracy compared to gMLP-S and DeiT-S. Our tiny model is significantly better compared to both DeiT-Ti $( + 2 . 4 \% )$ and gMLP-Ti $( + 2 . 6 \% )$ with the similar level of complexity.
|
| 133 |
+
|
| 134 |
+
Comparisons with hierarchical architectures. We compare different kinds of hierarchical models in Figure 4. ResNet [14] is the most widely used convolutional model while RegNet [34] is a family of carefully designed CNN models. We also compare with recent hierarchical vision transformers PVT [43] and Swin [27]. Benefiting from the log-linear complexity, GFNet-H models show significantly better performance than ResNet, RegNet and PVT and achieve similar performance with Swin while having a much simpler and more generic design.
|
| 135 |
+
|
| 136 |
+
Fine-tuning at higher resolution. One prominent problem of MLP-like models is that the feature resolution is not adjustable. On the contrary, the proposed global filter is more flexible. We demonstrate the advantage of GFNet by finetuning the model trained at $2 2 4 \times 2 2 4$ resolution to higher resolution following the practice in vision transformers [40]. As shown in Table 3, our model can easily adapt to higher resolution with only 30 epoch finetuning and achieve better performance.
|
| 137 |
+
|
| 138 |
+
Table 5: Results on transfer learning datasets. We report the top-1 accuracy on the four datasets as well as the number of parameters and FLOPs.
|
| 139 |
+
|
| 140 |
+
<table><tr><td>Model</td><td>FLOPs</td><td>Params</td><td>CIFAR-10</td><td>CIFAR-100</td><td>Flowers-102</td><td>Cars-196</td></tr><tr><td>ResNet50 [14]</td><td>4.1G</td><td>26M</td><td>=</td><td></td><td>96.2</td><td>90.0</td></tr><tr><td>EfficientNet-B7 [37]</td><td>37G</td><td>66M</td><td>98.9</td><td>91.7</td><td>98.8</td><td>94.7</td></tr><tr><td>ViT-B/16 [10]</td><td>55.4G</td><td>86M</td><td>98.1</td><td>87.1</td><td>89.5</td><td>-</td></tr><tr><td>ViT-L/16 [10]</td><td>190.7G</td><td>307M</td><td>97.9</td><td>86.4</td><td>89.7</td><td>=</td></tr><tr><td>Deit-B/16 [40]</td><td>17.5G</td><td>86M</td><td>99.1</td><td>90.8</td><td>98.4</td><td>92.1</td></tr><tr><td>ResMLP-12[39]</td><td>3.0G</td><td>15M</td><td>98.1</td><td>87.0</td><td>97.4</td><td>84.6</td></tr><tr><td>ResMLP-24 [39]</td><td>6.0G</td><td>30M</td><td>98.7</td><td>89.5</td><td>97.9</td><td>89.5</td></tr><tr><td>GFNet-XS</td><td>2.9G</td><td>16M</td><td>98.6</td><td>89.1</td><td>98.1</td><td>92.8</td></tr><tr><td>GFNet-H-B</td><td>8.6G</td><td>54M</td><td>99.0</td><td>90.3</td><td>98.8</td><td>93.2</td></tr></table>
|
| 141 |
+
|
| 142 |
+
# 4.2 Transfer learning
|
| 143 |
+
|
| 144 |
+
To test the generality of our architecture and the learned representation, we evaluate GFNet on a set of commonly used transfer learning benchmark datasets including CIFAR-10 [20], CIFAR-100 [20], Stanford Cars [19] and Flowers-102 [30]. We follow the setting of previous works [37, 10, 40, 39], where the model is initialized by the ImageNet pre-trained weights and finetuned on the new datasets. We evaluate the transfer learning performance of our basic model and best model. The results are presented in Table 5. The proposed models generally work well on downstream datasets. GFNet models outperform ResMLP models by a large margin and achieve very competitive performance with state-of-the-art EfficientNet-B7. Our models also show competitive performance compared to state-of-the-art CNNs and vision transformers.
|
| 145 |
+
|
| 146 |
+
# 4.3 Analysis and visualization
|
| 147 |
+
|
| 148 |
+
Efficiency of GFNet. We demonstrate the efficiency of our GFNet in Figure 2, where the models are compared in theoretical FLOPs, actual latency and peak memory usage on GPU. We test a single building block of each model (including one token mixing layer and one FFN) with respect to the different numbers of tokens and set the feature dimension and batch size to 384 and 32 respectively. The self-attention model quickly runs out of memory when feature resolution exceeds $5 6 ^ { 2 }$ , which is also the feature resolution of our hierarchical model. The advantage of the proposed architecture becomes larger as the resolution increases, which strongly shows the potential of our model in vision tasks requiring high-resolution feature maps.
|
| 149 |
+
|
| 150 |
+

|
| 151 |
+
Figure 2: Comparisons among GFNet, ViT [10] and ResMLP [39] in (a) FLOPs (b) latency and (c) GPU memory with respect to the number of tokens (feature resolution). The dotted lines indicate the estimated values when the GPU memory has run out. The latency and GPU memory is measured using a single NVIDIA RTX 3090 GPU with batch size 32 and feature dimension 384.
|
| 152 |
+
|
| 153 |
+

|
| 154 |
+
Figure 3: ImageNet acc. vs model complexity.
|
| 155 |
+
|
| 156 |
+
Table 6: Comparisons among the GFNet and other variants based on the transformer-like architecture on ImageNet. We show that GFNet outperforms the ResMLP [39], FNet [23] and models with local depthwise convolutions. We also report the number of parameters and theoretical complexity in FLOPs.
|
| 157 |
+
|
| 158 |
+
<table><tr><td>Model</td><td>Acc (%)</td><td>Param (M)</td><td>FLOPs (G)</td></tr><tr><td>DeiT-S [40]</td><td>79.8</td><td>22</td><td>4.6</td></tr><tr><td>Local Conv (3 × 3)</td><td>77.7</td><td>15</td><td>2.8</td></tr><tr><td>Local Conv (5 × 5)</td><td>78.1</td><td>15</td><td>2.9</td></tr><tr><td>Local Conv (7 × 7)</td><td>78.2</td><td>15</td><td>2.9</td></tr><tr><td>ResMLP [39]</td><td>76.6</td><td>15</td><td>3.0</td></tr><tr><td>FNet [23]</td><td>71.2</td><td>15</td><td>2.9</td></tr><tr><td>GFNet-XS</td><td>78.6</td><td>16</td><td>2.9</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Complexity/accuracy trade-offs. We show the computational complexity and accuracy trade-offs of various transformer-style architectures in Figure 3. It is clear that GFNet achieves the best trade-off among all kinds of models.
|
| 161 |
+
|
| 162 |
+
Ablation study on the global filter. To more clearly show the effectiveness of the proposed global filters, we compare GFNet-XS with several baseline models that are equipped with different token mixing operations. The results are presented in Table 6. All models have a similar building block ( token mixing layer $^ +$ FFN ) and the same feature dimension of $D = 3 8 4$ . We also implement the recent FNet [23] for comparison, where a 1D FFT on feature dimension and a 2D FFT on spatial dimensions are used to mix tokens. As shown in Table 6, our method outperforms all baseline methods except DeiT-S that has $64 \%$ higher FLOPs.
|
| 163 |
+
|
| 164 |
+
Robustness & generalization ability. Inspired by the [29], we further conduct experiments to evaluate the robustness and the generalization ability of the GFNet. For robustness, we consider ImageNet-A, ImageNet-C, FGSM and PGD. ImageNet-A [16] (IN-A) is a challenging dataset that contains natural adversarial examples. ImageNet-C [15] (IN-C) is used to validate the robustness of the model under various types of corruption. We use the mean corruption error (mCE, lower is better) on ImageNet-C as the evaluation metric. FGSM [12] and PGD [28] are two widely used algorithms that are targeted to evaluate the adversarial robustness of the model by single-step attack and multistep attack, respectively. For generalization ability, we adopt two variants of ImageNet validation set: ImageNet-V2 [36] (IN-V2) and ImageNet-Real [2] (IN-Real). ImageNet-V2 is a re-collected version of ImageNet validation set following the same data collection procedure of ImageNet, while ImageNet-Real contains the same images as ImageNet validation set but has reassessed labels. We compare GFNet-S with various baselines in Table 7 including CNNs, Transformers and MLP-like architectures and find the GFNet enjoys both favorable robustness and generalization ability.
|
| 165 |
+
|
| 166 |
+
Table 7: Evaluation of robustness and generalization ability. We measure the robustness from different aspects, including the adversarial robustness by adopting adversarial attack algorithms including FGSM and PGD and the performance on corrupted/out-of-distribution datasets including ImageNet-A [16] (top-1 accuracy) and ImageNet-C [15] (mCE, lower is better). The generalization ability is evaluated on ImageNet-V2 [36] and ImageNet-Real [2].
|
| 167 |
+
|
| 168 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">FLOPs (G)</td><td rowspan="2">Params (M)</td><td colspan="2">ImageNet</td><td colspan="2">Generalization</td><td colspan="4">Robustness</td></tr><tr><td>Top-1个</td><td>Top-5个</td><td>IN-V2↑</td><td>IN-Real个</td><td>FGSM↑</td><td>PGD↑</td><td>IN-C↓</td><td>IN-A↑</td></tr><tr><td>ResNet-50[14]</td><td>4.1</td><td>26</td><td>76.1</td><td>92.9</td><td>67.4</td><td>85.8</td><td>12.2</td><td>0.9</td><td>76.7</td><td>0.0</td></tr><tr><td>ResNeXt50-32x4d [45]</td><td>4.3</td><td>25</td><td>79.8</td><td>94.6</td><td>68.2</td><td>85.2</td><td>34.7</td><td>13.5</td><td>64.7</td><td>10.7</td></tr><tr><td>DeiT-S[40]</td><td>4.6</td><td>22</td><td>79.8</td><td>95.0</td><td>68.4</td><td>85.6</td><td>40.7</td><td>16.7</td><td>54.6</td><td>18.9</td></tr><tr><td>ResMLP-12 [39]</td><td>3.0</td><td>15</td><td>76.6</td><td>93.2</td><td>64.4</td><td>83.3</td><td>23.9</td><td>8.5</td><td>66.0</td><td>7.1</td></tr><tr><td>GFNet-S</td><td>4.5</td><td>25</td><td>80.1</td><td>94.9</td><td>68.5</td><td>85.8</td><td>42.6</td><td>21.0</td><td>53.8</td><td>14.3</td></tr></table>
|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
Figure 4: Visualization of the learned global filters in GFNet-XS. We visualize the original frequency domain global filters in (a) and show the corresponding spatial domain filters for the first 6 columns in (b). There are more clear patterns in the frequency domain than the spatial domain.
|
| 172 |
+
|
| 173 |
+
Visualization. The core operation in GFNet is the element-wise multiplication between frequencydomain features and the global filter. Therefore, it is easy to visualize and interpret. We visualize the frequency domain filters as well as their corresponding spatial domain filters in Figure 4. The learned global filters have more clear patterns in the frequency domain, where different layers have different characteristics. Interestingly, the filters in the last layer particularly focus on the low-frequency component. The corresponding filters in the spatial domain are less interpretable for humans.
|
| 174 |
+
|
| 175 |
+
# 5 Conclusion
|
| 176 |
+
|
| 177 |
+
We have presented the Global Filter Network (GFNet), which is a conceptually simple yet computationally efficient architecture for image classification. Our model replaces the self-attention sub-layer in vision transformer with 2D FFT/IFFT and a set of learnable global filters in the frequency domain. Benefiting from the token mixing operation with log-linear complexity, our architecture is highly efficient. Our experimental results demonstrated that GFNet can be a very competitive alternative to vision transformers, MLP-like models and CNNs in accuracy/complexity trade-offs.
|
| 178 |
+
|
| 179 |
+
# Acknowledgment
|
| 180 |
+
|
| 181 |
+
This work was supported in part by the National Key Research and Development Program of China under Grant 2017YFA0700802, in part by the National Natural Science Foundation of China under Grant 62125603, Grant 61822603, Grant U1813218, Grant U1713214, in part by Beijing Academy of Artificial Intelligence (BAAI), and in part by a grant from the Institute for Guo Qiang, Tsinghua University.
|
| 182 |
+
|
| 183 |
+
References
|
| 184 |
+
[1] Gregory A Baxes. Digital image processing: principles and applications. John Wiley & Sons, Inc., 1994. 3
|
| 185 |
+
[2] Lucas Beyer, Olivier J Hénaff, Alexander Kolesnikov, Xiaohua Zhai, and Aäron van den Oord. Are we done with imagenet? arXiv preprint arXiv:2006.07159, 2020. 9, 10
|
| 186 |
+
[3] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, pages 213–229. Springer, 2020. 3
|
| 187 |
+
[4] Xin Chen, Bin Yan, Jiawen Zhu, Dong Wang, Xiaoyun Yang, and Huchuan Lu. Transformer tracking. In CVPR, 2021. 1, 3
|
| 188 |
+
[5] Bowen Cheng, Alexander G. Schwing, and Alexander Kirillov. Per-pixel classification is not all you need for semantic segmentation. NeurIPS, 2021. 1
|
| 189 |
+
[6] Lu Chi, Borui Jiang, and Yadong Mu. Fast fourier convolution. NeurIPS, 33, 2020. 3
|
| 190 |
+
[7] James W Cooley and John W Tukey. An algorithm for the machine calculation of complex fourier series. Mathematics of computation, 19(90):297–301, 1965. 2
|
| 191 |
+
[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 6
|
| 192 |
+
[9] Caiwen Ding, Siyu Liao, Yanzhi Wang, Zhe Li, Ning Liu, Youwei Zhuo, Chao Wang, Xuehai Qian, Yu Bai, Geng Yuan, et al. Circnn: accelerating and compressing deep neural networks using block-circulant weight matrices. In MICRO, pages 395–408, 2017. 3
|
| 193 |
+
[10] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. 1, 2, 3, 4, 5, 6, 8, 9
|
| 194 |
+
[11] Chengyue Gong, Dilin Wang, Meng Li, Vikas Chandra, and Qiang Liu. Improve vision transformers training by suppressing over-smoothing. arXiv preprint arXiv:2104.12753, 2021. 3
|
| 195 |
+
[12] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. 9
|
| 196 |
+
[13] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 3
|
| 197 |
+
[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016. 3, 6, 7, 8, 10
|
| 198 |
+
[15] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 9, 10
|
| 199 |
+
[16] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In CVPR, pages 15262–15271, 2021. 9, 10
|
| 200 |
+
[17] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your batch: Improving generalization through instance repetition. In CVPR, pages 8129–8138, 2020. 7
|
| 201 |
+
[18] Zihang Jiang, Qibin Hou, Li Yuan, Daquan Zhou, Xiaojie Jin, Anran Wang, and Jiashi Feng. Token labeling: Training a $8 5 . 5 \%$ top-1 accuracy vision transformer with 56m parameters on imagenet. arXiv preprint arXiv:2104.10858, 2021. 3, 6
|
| 202 |
+
[19] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In ICCVW, pages 554–561, 2013. 6, 8
|
| 203 |
+
[20] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 6, 8
|
| 204 |
+
[21] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NeurIPS, 25:1097–1105, 2012. 6
|
| 205 |
+
[22] Jae-Han Lee, Minhyeok Heo, Kyung-Rae Kim, and Chang-Su Kim. Single-image depth estimation based on fourier domain analysis. In CVPR, pages 330–339, 2018. 3
|
| 206 |
+
[23] James Lee-Thorp, Joshua Ainslie, Ilya Eckstein, and Santiago Ontanon. Fnet: Mixing tokens with fourier transforms. arXiv preprint arXiv:2105.03824, 2021. 3, 6, 9
|
| 207 |
+
[24] Shaohua Li, Kaiping Xue, Bin Zhu, Chenkai Ding, Xindi Gao, David Wei, and Tao Wan. Falcon: A fourier transform based approach for fast and secure convolutional neural network predictions. In CVPR, pages 8705–8714, 2020. 3
|
| 208 |
+
[25] Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. ICLR, 2021. 3
|
| 209 |
+
[26] Hanxiao Liu, Zihang Dai, David R So, and Quoc V Le. Pay attention to mlps. arXiv preprint arXiv:2105.08050, 2021. 2, 3, 7, 8
|
| 210 |
+
[27] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. 1, 3, 6, 7, 8
|
| 211 |
+
[28] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. 9
|
| 212 |
+
[29] Xiaofeng Mao, Gege Qi, Yuefeng Chen, Xiaodan Li, Shaokai Ye, Yuan He, and Hui Xue. Rethinking the design principles of robust vision transformer. arXiv preprint arXiv:2105.07926, 2021. 9
|
| 213 |
+
[30] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In ICVGIP, pages 722–729, 2008. 6, 8
|
| 214 |
+
[31] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019. 5
|
| 215 |
+
[32] Ioannis Pitas. Digital image processing algorithms and applications. John Wiley & Sons, 2000. 3, 5
|
| 216 |
+
[33] Boris T Polyak and Anatoli B Juditsky. Acceleration of stochastic approximation by averaging. SIAM journal on control and optimization, 30(4):838–855, 1992. 6
|
| 217 |
+
[34] Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollár. Designing network design spaces. In CVPR, 2020. 7, 8
|
| 218 |
+
[35] Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In NeurIPS, 2021. 1
|
| 219 |
+
[36] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In ICML, pages 5389–5400. PMLR, 2019. 9, 10
|
| 220 |
+
[37] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, pages 6105–6114. PMLR, 2019. 8
|
| 221 |
+
[38] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, et al. Mlp-mixer: An all-mlp architecture for vision. arXiv preprint arXiv:2105.01601, 2021. 1, 3, 4, 5
|
| 222 |
+
[39] Hugo Touvron, Piotr Bojanowski, Mathilde Caron, Matthieu Cord, Alaaeldin El-Nouby, Edouard Grave, Armand Joulin, Gabriel Synnaeve, Jakob Verbeek, and Hervé Jégou. Resmlp: Feedforward networks for image classification with data-efficient training. arXiv preprint arXiv:2105.03404, 2021. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
|
| 223 |
+
[40] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
|
| 224 |
+
[41] Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper with image transformers. arXiv preprint arXiv:2103.17239, 2021. 3, 5
|
| 225 |
+
[42] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, pages 5998–6008, 2017. 1
|
| 226 |
+
[43] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions, 2021. 6, 7, 8
|
| 227 |
+
[44] Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. arXiv preprint arXiv:2103.15808, 2021. 3
|
| 228 |
+
[45] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, pages 1492–1500, 2017. 10
|
| 229 |
+
[46] Yanchao Yang and Stefano Soatto. Fda: Fourier domain adaptation for semantic segmentation. In CVPR, pages 4085–4095, 2020. 3
|
| 230 |
+
[47] Xumin Yu, Yongming Rao, Ziyi Wang, Zuyan Liu, Jiwen Lu, and Jie Zhou. Pointr: Diverse point cloud completion with geometry-aware transformers. In ICCV, 2021. 1
|
| 231 |
+
[48] Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zihang Jiang, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. arXiv preprint arXiv:2101.11986, 2021. 3
|
| 232 |
+
[49] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840, 2020. 1, 3
|
| 233 |
+
[50] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data
|
| 234 |
+
|
| 235 |
+
augmentation. In AAAI, volume 34, pages 13001–13008, 2020. 6
|
| 236 |
+
|
| 237 |
+
# Checklist
|
| 238 |
+
|
| 239 |
+
1. For all authors...
|
| 240 |
+
|
| 241 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 242 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 5.
|
| 243 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A] We develop a general framework for image classification in this paper. Our model is not for specific applications.
|
| 244 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 245 |
+
|
| 246 |
+
2. If you are including theoretical results...
|
| 247 |
+
|
| 248 |
+
(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A]
|
| 249 |
+
|
| 250 |
+
3. If you ran experiments...
|
| 251 |
+
|
| 252 |
+
(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes]
|
| 253 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
|
| 254 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We follow the common practice used in our baseline methods, where no error bars are reported.
|
| 255 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See our implementation details in the experiment part.
|
| 256 |
+
|
| 257 |
+
4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 258 |
+
|
| 259 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes]
|
| 260 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 261 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [No]
|
| 262 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 263 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 264 |
+
|
| 265 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 266 |
+
|
| 267 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 268 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 269 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_content_list.json
ADDED
|
@@ -0,0 +1,1127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Global Filter Networks for Image Classification ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
210,
|
| 8 |
+
122,
|
| 9 |
+
789,
|
| 10 |
+
147
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yongming Rao∗ Wenliang Zhao∗ Zheng Zhu Jiwen $\\mathbf { L } \\mathbf { u } ^ { \\dagger }$ Jie Zhou ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
258,
|
| 19 |
+
199,
|
| 20 |
+
741,
|
| 21 |
+
215
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Department of Automation, Tsinghua University State Key Lab of Intelligent Technologies and Systems Beijing National Research Center for Information Science and Technology ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
253,
|
| 30 |
+
223,
|
| 31 |
+
745,
|
| 32 |
+
265
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "Abstract ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
462,
|
| 42 |
+
301,
|
| 43 |
+
535,
|
| 44 |
+
318
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Recent advances in self-attention and pure multi-layer perceptrons (MLP) models for vision have shown great potential in achieving promising performance with fewer inductive biases. These models are generally based on learning interaction among spatial locations from raw data. The complexity of self-attention and MLP grows quadratically as the image size increases, which makes these models hard to scale up when high-resolution features are required. In this paper, we present the Global Filter Network (GFNet), a conceptually simple yet computationally efficient architecture, that learns long-term spatial dependencies in the frequency domain with log-linear complexity. Our architecture replaces the self-attention layer in vision transformers with three key operations: a 2D discrete Fourier transform, an element-wise multiplication between frequency-domain features and learnable global filters, and a 2D inverse Fourier transform. We exhibit favorable accuracy/complexity trade-offs of our models on both ImageNet and downstream tasks. Our results demonstrate that GFNet can be a very competitive alternative to transformer-style models and CNNs in efficiency, generalization ability and robustness. Code is available at https://github.com/raoyongming/GFNet. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
335,
|
| 54 |
+
764,
|
| 55 |
+
556
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 Introduction ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
588,
|
| 66 |
+
310,
|
| 67 |
+
606
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The transformer architecture, originally designed for the natural language processing (NLP) tasks [42], has shown promising performance on various vision problems recently [10, 40, 27, 49, 4, 47, 35, 5]. Different from convolutional neural networks (CNNs), vision transformer models use self-attention layers to capture long-term dependencies, which are able to learn more diverse interactions between spatial locations. The pure multi-layer perceptrons (MLP) models [38, 39] further simplify the vision transformers by replacing the self-attention layers with MLPs that are applied across spatial locations. Since fewer inductive biases are introduced, these two kinds of models have the potential to learn more generic and flexible interactions among spatial locations from raw data. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
622,
|
| 77 |
+
825,
|
| 78 |
+
733
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "One primary challenge of applying self-attention and pure MLP models to vision tasks is the considerable computational complexity that grows quadratically as the number of tokens increases. Therefore, typical vision transformer style models usually consider a relatively small resolution for the intermediate features (e.g. $1 4 \\times 1 4$ tokens are extracted from the input images in both ViT [10] and MLP-Mixer [38]). This design may limit the applications of downstream dense prediction tasks like detection and segmentation. A possible solution is to replace the global self-attention with several local self-attention like Swin transformer [27]. Despite the effectiveness in practice, local self-attention brings quite a few hand-made choices (e.g., window size, padding strategy, etc.) and limits the receptive field of each layer. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
739,
|
| 88 |
+
825,
|
| 89 |
+
864
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "image",
|
| 95 |
+
"img_path": "images/8156734ec27d2da454b6f04c895b494dad72fc5c974408d7d893bfd19e9f8e4c.jpg",
|
| 96 |
+
"image_caption": [
|
| 97 |
+
"Figure 1: The overall architecture of the Global Filter Network. Our architecture is based on Vision Transformer (ViT) models with some minimal modifications. We replace the self-attention sub-layer with the proposed global filter layer, which consists of three key operations: a 2D discrete Fourier transform to convert the input spatial features to the frequency domain, an element-wise multiplication between frequency-domain features and the global filters, and a 2D inverse Fourier transform to map the features back to the spatial domain. The efficient fast Fourier transform (FFT) enables us to learn arbitrary interactions among spatial locations with log-linear complexity. "
|
| 98 |
+
],
|
| 99 |
+
"image_footnote": [],
|
| 100 |
+
"bbox": [
|
| 101 |
+
199,
|
| 102 |
+
89,
|
| 103 |
+
795,
|
| 104 |
+
327
|
| 105 |
+
],
|
| 106 |
+
"page_idx": 1
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"type": "text",
|
| 110 |
+
"text": "In this paper, we present a new conceptually simple yet computationally efficient architecture called Global Filter Network (GFNet), which follows the trend of removing inductive biases from vision models while enjoying the log-linear complexity in computation. The basic idea behind our architecture is to learn the interactions among spatial locations in the frequency domain. Different from the self-attention mechanism in vision transformers and the fully connected layers in MLP models, the interactions among tokens are modeled as a set of learnable global filters that are applied to the spectrum of the input features. Since the global filters are able to cover all the frequencies, our model can capture both long-term and short-term interactions. The filters are directly learned from the raw data without introducing human priors. Our architecture is largely based on the vision transformers only with some minimal modifications. We replace the self-attention sub-layer in vision transformers with three key operations: a 2D discrete Fourier transform to convert the input spatial features to the frequency domain, an element-wise multiplication between frequency-domain features and the global filters, and a 2D inverse Fourier transform to map the features back to the spatial domain. Since the Fourier transform is used to mix the information of different tokens, the global filter is much more efficient compared to the self-attention and MLP thanks to the $\\mathcal { O } ( L \\log L )$ complexity of the fast Fourier transform algorithm (FFT) [7]. Benefiting from this, the proposed global filter layer is less sensitive to the token length $L$ and thus is compatible with larger feature maps and CNN-style hierarchical architectures without modifications. The overall architecture of GFNet is illustrated in Figure 1. We also compare our global filter with prevalent operations in deep vision models in Table 1. ",
|
| 111 |
+
"bbox": [
|
| 112 |
+
174,
|
| 113 |
+
463,
|
| 114 |
+
825,
|
| 115 |
+
739
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 1
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "text",
|
| 121 |
+
"text": "Our experiments on ImageNet verify the effectiveness of GFNet. With a similar architecture, our model outperform the recent vision transformer and MLP models including DeiT [40], ResMLP [39] and gMLP [26]. When using the hierarchical architecture, GFNet can further enlarge the gap. GFNet also works well on downstream transfer learning and semantic segmentation tasks. Our results demonstrate that GFNet can be a very competitive alternative to transformer-style models and CNNs in efficiency, generalization ability and robustness. ",
|
| 122 |
+
"bbox": [
|
| 123 |
+
174,
|
| 124 |
+
746,
|
| 125 |
+
825,
|
| 126 |
+
830
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "2 Related works ",
|
| 133 |
+
"text_level": 1,
|
| 134 |
+
"bbox": [
|
| 135 |
+
174,
|
| 136 |
+
849,
|
| 137 |
+
325,
|
| 138 |
+
867
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "Vision transformers. Since Dosovitskiy et al. [10] introduce transformers to the image classification and achieve a competitive performance compared to CNNs, transformers begin to exhibit their potential in various vision tasks [3, 4, 49]. Recently, there are a large number of works which aim to improve the transformers [40, 41, 27, 44, 18, 11, 48]. These works either seek for better training strategies [40, 11] or design better architectures [27, 44, 48] or both [41, 11]. However, most of the architecture modification of the transformers [44, 18, 27, 48] introduces additional inductive biases similar to CNNs. In this work, we only focus on the standard transformer architecture [10, 40] and our goal is to replace the heavy self-attention layer $( \\mathcal { O } ( L ^ { 2 } ) )$ to an more efficient operation which can still model the interactions among different spatial locations without introducing the inductive biases associated with CNNs. ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
173,
|
| 147 |
+
883,
|
| 148 |
+
821,
|
| 149 |
+
911
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "table",
|
| 155 |
+
"img_path": "images/c07d9517c5ae039af4fd9058f6285ef10507398b0b9bf6471ac45adec4bfa97f.jpg",
|
| 156 |
+
"table_caption": [
|
| 157 |
+
"Table 1: Comparisons of the proposed Global Filter with prevalent operations in deep vision models. $H$ , $W$ and $D$ are the height, width and the number of channels of the feature maps. $k$ is the kernel size of the convolution operation. The proposed global filter is much more efficient than self-attention and spatial MLP. "
|
| 158 |
+
],
|
| 159 |
+
"table_footnote": [],
|
| 160 |
+
"table_body": "<table><tr><td></td><td>Complexity (FLOPs)</td><td># Parameters</td></tr><tr><td>Depthwise Convolution</td><td>O(k² HWD)</td><td>k²D</td></tr><tr><td> Self-Attention</td><td>O(HWD² + H²W²D)</td><td>4D2</td></tr><tr><td> Spatial MLP</td><td>O(H²W² D)</td><td>H²W2</td></tr><tr><td>Global Filter</td><td>O(HWD[log2(HW)] + HWD)</td><td>HWD</td></tr></table>",
|
| 161 |
+
"bbox": [
|
| 162 |
+
173,
|
| 163 |
+
88,
|
| 164 |
+
825,
|
| 165 |
+
178
|
| 166 |
+
],
|
| 167 |
+
"page_idx": 2
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"type": "text",
|
| 171 |
+
"text": "",
|
| 172 |
+
"bbox": [
|
| 173 |
+
173,
|
| 174 |
+
261,
|
| 175 |
+
825,
|
| 176 |
+
372
|
| 177 |
+
],
|
| 178 |
+
"page_idx": 2
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"type": "text",
|
| 182 |
+
"text": "MLP-like models. More recently, there are several works that question the importance of selfattention in the vision transformers and propose to use MLP to replace the self-attention layer in the transformers [38, 39, 26]. The MLP-Mixer [38] employs MLPs to perform token mixing and channel mixing alternatively in each block. ResMLP [39] adopts a similar idea but substitutes the Layer Normalization with an Affine transformation for acceleration. The recently proposed gMLP [26] uses a spatial gating unit to re-weight tokens in the spatial dimension. However, all of the above models include MLPs to mix the tokens spatially, which brings two drawbacks: (1) like the self-attention in the transformers, the spatial MLP still requires computational complexity quadratic to the length of tokens. (2) unlike transformers, MLP models are hard to scale up to higher resolution since the weights of the spatial MLPs have fixed sizes. Our work follows this trend and successfully resolves the above issues in MLP-like models. The proposed GFNet enjoys log-linear complexity and can be easily scaled up to any resolution. ",
|
| 183 |
+
"bbox": [
|
| 184 |
+
173,
|
| 185 |
+
381,
|
| 186 |
+
825,
|
| 187 |
+
546
|
| 188 |
+
],
|
| 189 |
+
"page_idx": 2
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"type": "text",
|
| 193 |
+
"text": "Applications of Fourier transform in vision. Fourier transform has been an important tool in digital image processing for decades [32, 1]. With the breakthroughs of CNNs in vision [14, 13], there are a variety of works that start to incorporate Fourier transform in some deep learning method [24, 46, 9, 22, 6] for vision tasks. Some of these works employ discrete Fourier transform to convert the images to the frequency domain and leverage the frequency information to improve the performance in certain tasks [22, 46], while others utilize the convolution theorem to accelerate the CNNs via fast Fourier transform (FFT) [24, 9]. FFC [6] replaces the convolution in CNNs with an Local Fourier Unit and perform convolutions in the frequency domain. Very recent works also try to leverage Fourier transform to develop deep learning models to solve partial differential equations [25] and NLP tasks [23]. In this work, we propose to use learnable filters to interchange information globally among the tokens in the Fourier domain, inspired by the frequency filters in the digital image processing [32]. We also take advantage of some properties of FFT to reduce the computational costs and the number of parameters. ",
|
| 194 |
+
"bbox": [
|
| 195 |
+
173,
|
| 196 |
+
554,
|
| 197 |
+
825,
|
| 198 |
+
733
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 2
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "text",
|
| 204 |
+
"text": "3 Method ",
|
| 205 |
+
"text_level": 1,
|
| 206 |
+
"bbox": [
|
| 207 |
+
174,
|
| 208 |
+
753,
|
| 209 |
+
271,
|
| 210 |
+
770
|
| 211 |
+
],
|
| 212 |
+
"page_idx": 2
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"type": "text",
|
| 216 |
+
"text": "3.1 Preliminaries: discrete Fourier transform ",
|
| 217 |
+
"text_level": 1,
|
| 218 |
+
"bbox": [
|
| 219 |
+
173,
|
| 220 |
+
784,
|
| 221 |
+
503,
|
| 222 |
+
799
|
| 223 |
+
],
|
| 224 |
+
"page_idx": 2
|
| 225 |
+
},
|
| 226 |
+
{
|
| 227 |
+
"type": "text",
|
| 228 |
+
"text": "We start by introducing the discrete Fourier transform (DFT), which plays an important role in the area of digital signal processing and is a crucial component in our GFNet. For clarity, We first consider the 1D DFT. Given a sequence of $N$ complex numbers $x [ n ] , 0 \\leq n \\leq N - 1$ , the 1D DFT converts the sequence into the frequency domain by: ",
|
| 229 |
+
"bbox": [
|
| 230 |
+
174,
|
| 231 |
+
809,
|
| 232 |
+
825,
|
| 233 |
+
866
|
| 234 |
+
],
|
| 235 |
+
"page_idx": 2
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"type": "equation",
|
| 239 |
+
"img_path": "images/41b7091450ca28316e77089f5ae664eb20aee70f5409b8c5387a76e5ad70a9af.jpg",
|
| 240 |
+
"text": "$$\nX [ k ] = \\sum _ { n = 0 } ^ { N - 1 } x [ n ] e ^ { - j ( 2 \\pi / N ) k n } : = \\sum _ { n = 0 } ^ { N - 1 } x [ n ] W _ { N } ^ { k n }\n$$",
|
| 241 |
+
"text_format": "latex",
|
| 242 |
+
"bbox": [
|
| 243 |
+
339,
|
| 244 |
+
872,
|
| 245 |
+
658,
|
| 246 |
+
916
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "text",
|
| 252 |
+
"text": "Algorithm 1 Pseudocode of Global Filter Layer. ",
|
| 253 |
+
"text_level": 1,
|
| 254 |
+
"bbox": [
|
| 255 |
+
174,
|
| 256 |
+
90,
|
| 257 |
+
490,
|
| 258 |
+
106
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 3
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "X = rfft2(x, dim=(1, 2)) X_tilde $= \\texttt { X * K }$ $\\texttt { x } =$ irfft2(X_tilde, ${ \\mathsf { d i m } } { = } ( 1 , \\ 2 ) .$ ) ",
|
| 265 |
+
"bbox": [
|
| 266 |
+
173,
|
| 267 |
+
142,
|
| 268 |
+
362,
|
| 269 |
+
172
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 3
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "text",
|
| 275 |
+
"text": "rfft2/irfft2: 2D FFT/IFFT for real signal ",
|
| 276 |
+
"bbox": [
|
| 277 |
+
174,
|
| 278 |
+
184,
|
| 279 |
+
388,
|
| 280 |
+
195
|
| 281 |
+
],
|
| 282 |
+
"page_idx": 3
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"type": "text",
|
| 286 |
+
"text": "where $j$ is the imaginary unit and $W _ { N } = e ^ { - j ( 2 \\pi / N ) }$ . The formulation of DFT in Equation (3.1) can be derived from the Fourier transform for continuous signal by sampling in both the time domain and the frequency domain (see Appendix A for details). Since $X [ k ]$ repeats on intervals of length $N$ , it is suffice to take the value of $X [ k ]$ at $N$ consecutive points $k = 0 , 1 , \\ldots , N - 1$ . Specifically, $X [ k ]$ represents to the spectrum of the sequence $x [ n ]$ at the frequency $\\omega _ { k } = 2 \\pi \\boldsymbol { k } / N$ . ",
|
| 287 |
+
"bbox": [
|
| 288 |
+
173,
|
| 289 |
+
219,
|
| 290 |
+
825,
|
| 291 |
+
292
|
| 292 |
+
],
|
| 293 |
+
"page_idx": 3
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"type": "text",
|
| 297 |
+
"text": "It is also worth noting that DFT is a one-to-one transformation. Given the DFT $X [ k ]$ , we can recover the original signal $x [ n ]$ by the inverse DFT (IDFT): ",
|
| 298 |
+
"bbox": [
|
| 299 |
+
173,
|
| 300 |
+
297,
|
| 301 |
+
823,
|
| 302 |
+
325
|
| 303 |
+
],
|
| 304 |
+
"page_idx": 3
|
| 305 |
+
},
|
| 306 |
+
{
|
| 307 |
+
"type": "equation",
|
| 308 |
+
"img_path": "images/0042ac3d1acd0d2e5b4e6704a57106027f6c328ceddf64d8ad9ca01b929f00f2.jpg",
|
| 309 |
+
"text": "$$\nx [ n ] = { \\frac { 1 } { N } } \\sum _ { k = 0 } ^ { N - 1 } X [ k ] e ^ { j ( 2 \\pi / N ) k n } .\n$$",
|
| 310 |
+
"text_format": "latex",
|
| 311 |
+
"bbox": [
|
| 312 |
+
390,
|
| 313 |
+
333,
|
| 314 |
+
606,
|
| 315 |
+
378
|
| 316 |
+
],
|
| 317 |
+
"page_idx": 3
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"type": "text",
|
| 321 |
+
"text": "For real input $x [ n ]$ , it can be proved that (see Appendix A) its DFT is conjugate symmetric, i.e., $X [ N - k ] { \\ ' } = X ^ { * } [ { \\dot { k } } ]$ . The reverse is true as well: if we perform IDFT to $X [ k ]$ which is conjugate symmetric, a real discrete signal can be recovered. This property implies that the half of the DFT $\\{ X [ k ] : 0 \\le k \\le \\lceil N / 2 \\rceil \\}$ contains the full information about the frequency characteristics of $x [ n ]$ . ",
|
| 322 |
+
"bbox": [
|
| 323 |
+
173,
|
| 324 |
+
392,
|
| 325 |
+
825,
|
| 326 |
+
449
|
| 327 |
+
],
|
| 328 |
+
"page_idx": 3
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"type": "text",
|
| 332 |
+
"text": "DFT is widely used in modern signal processing algorithms for mainly two reasons: (1) the input and output of DFT are both discrete thus can be easily processed by computers; (2) there exist efficient algorithms for computing the DFT. The fast Fourier transform (FFT) algorithms take advantage of the symmetry and periodicity properties of $W _ { N } ^ { k n }$ and reduce the complexity to compute DFT from $\\mathcal { O } ( N ^ { 2 } )$ to $\\mathcal { O } ( N \\log N )$ . The inverse DFT (3.2), which has a similar form to the DFT, can also be computed efficiently using the inverse fast Fourier transform (IFFT). ",
|
| 333 |
+
"bbox": [
|
| 334 |
+
173,
|
| 335 |
+
454,
|
| 336 |
+
825,
|
| 337 |
+
537
|
| 338 |
+
],
|
| 339 |
+
"page_idx": 3
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"type": "text",
|
| 343 |
+
"text": "The DFT described above can be extend to 2D signals. Given the 2D signal $X [ m , n ] , 0 \\leq m \\leq$ $M - 1 , 0 \\leq n \\leq N - 1$ , the 2D DFT of $x [ m , n ]$ is given by: ",
|
| 344 |
+
"bbox": [
|
| 345 |
+
173,
|
| 346 |
+
544,
|
| 347 |
+
821,
|
| 348 |
+
573
|
| 349 |
+
],
|
| 350 |
+
"page_idx": 3
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"type": "equation",
|
| 354 |
+
"img_path": "images/8b1cedb56ceef897047bfd82a83add39e2ea9a379bc0d317ff0cbb789c3ebbe7.jpg",
|
| 355 |
+
"text": "$$\nX [ u , v ] = \\sum _ { m = 0 } ^ { M - 1 } \\sum _ { n = 0 } ^ { N - 1 } x [ m , n ] e ^ { - j 2 \\pi \\left( { \\frac { u m } { M } } + { \\frac { v n } { N } } \\right) } .\n$$",
|
| 356 |
+
"text_format": "latex",
|
| 357 |
+
"bbox": [
|
| 358 |
+
352,
|
| 359 |
+
579,
|
| 360 |
+
645,
|
| 361 |
+
625
|
| 362 |
+
],
|
| 363 |
+
"page_idx": 3
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"type": "text",
|
| 367 |
+
"text": "The 2D DFT can be viewed as performing 1D DFT on the two dimensions alternatively. Similar to 1D DFT, 2D DFT of real input $x [ m , n ]$ satisfied the conjugate symmetry property $X [ M - u , N - v ] =$ $X ^ { * } [ u , v ]$ . The FFT algorithms can also be applied to 2D DFT to improve computational efficiency. ",
|
| 368 |
+
"bbox": [
|
| 369 |
+
174,
|
| 370 |
+
630,
|
| 371 |
+
825,
|
| 372 |
+
672
|
| 373 |
+
],
|
| 374 |
+
"page_idx": 3
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"type": "text",
|
| 378 |
+
"text": "3.2 Global Filter Networks ",
|
| 379 |
+
"text_level": 1,
|
| 380 |
+
"bbox": [
|
| 381 |
+
174,
|
| 382 |
+
689,
|
| 383 |
+
374,
|
| 384 |
+
704
|
| 385 |
+
],
|
| 386 |
+
"page_idx": 3
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"type": "text",
|
| 390 |
+
"text": "Overall architecture. Recent advances in vision transformers [10, 40] demonstrate that models based on self-attention can achieve competitive performance even without the inductive biases associated with the convolutions. Henceforth, there are several works [39, 38] that exploit approaches (e.g., MLPs) other than self-attention to mix the information among the tokens. The proposed Global Filter Networks (GFNet) follows this line of work and aims to replace the heavy self-attention layer $( \\mathcal { O } ( N ^ { 2 } ) )$ ) with a simpler and more efficient one. ",
|
| 391 |
+
"bbox": [
|
| 392 |
+
173,
|
| 393 |
+
715,
|
| 394 |
+
825,
|
| 395 |
+
800
|
| 396 |
+
],
|
| 397 |
+
"page_idx": 3
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"type": "text",
|
| 401 |
+
"text": "The overall architecture of our model is depicted in Figure 1. Our model takes as an input $H \\times W$ non-overlapping patches and projects the flattened patches into $L = H W$ tokens with dimension $D$ . The basic building block of GFNet consists of: 1) a global filter layer that can exchange spatial information efficiently $( { \\mathcal { O } } ( L \\log L ) )$ ; 2) a feedforward network (FFN) as in [10, 40]. The output tokens of the last block are fed into a global average pooling layer followed by a linear classifier. ",
|
| 402 |
+
"bbox": [
|
| 403 |
+
174,
|
| 404 |
+
805,
|
| 405 |
+
825,
|
| 406 |
+
876
|
| 407 |
+
],
|
| 408 |
+
"page_idx": 3
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"type": "text",
|
| 412 |
+
"text": "Global filter layer. We propose global filter layer as an alternative to the self-attention layer which can mix tokens representing different spatial locations. Given the tokens $\\pmb { x } \\in \\mathbb { R } ^ { H \\times W \\times \\tilde { D } }$ , we first perform 2D FFT (see Section 3.1) along the spatial dimensions to convert $_ { \\textbf { \\em x } }$ to the frequency domain: ",
|
| 413 |
+
"bbox": [
|
| 414 |
+
173,
|
| 415 |
+
882,
|
| 416 |
+
821,
|
| 417 |
+
911
|
| 418 |
+
],
|
| 419 |
+
"page_idx": 3
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"type": "text",
|
| 423 |
+
"text": "",
|
| 424 |
+
"bbox": [
|
| 425 |
+
173,
|
| 426 |
+
90,
|
| 427 |
+
826,
|
| 428 |
+
107
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 4
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "equation",
|
| 434 |
+
"img_path": "images/5696f66c4b0e1d2734bd2539c05adbaa48dbecb4edb5b28aa0ebb71c9f7c9bf4.jpg",
|
| 435 |
+
"text": "$$\n\\pmb { X } = \\mathcal { F } [ \\pmb { x } ] \\in \\mathbb { C } ^ { H \\times W \\times D } ,\n$$",
|
| 436 |
+
"text_format": "latex",
|
| 437 |
+
"bbox": [
|
| 438 |
+
413,
|
| 439 |
+
116,
|
| 440 |
+
583,
|
| 441 |
+
136
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 4
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "where $\\mathcal { F } [ \\cdot ]$ denotes the 2D FFT. Note that $\\boldsymbol { X }$ is a complex tensor and represents the spectrum of $_ { x }$ We can then modulate the spectrum by multiplying a learnable filter $\\pmb { K } \\in \\mathbb { C } ^ { H \\times W \\times D }$ to the $\\boldsymbol { X }$ : ",
|
| 448 |
+
"bbox": [
|
| 449 |
+
169,
|
| 450 |
+
140,
|
| 451 |
+
825,
|
| 452 |
+
167
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 4
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "equation",
|
| 458 |
+
"img_path": "images/cf14913398cfb1f7f6bede932b13f67d635146b6cbe33e158d75147caf33f8ed.jpg",
|
| 459 |
+
"text": "$$\n\\tilde { \\cal X } = { \\cal K } \\odot { \\cal X } ,\n$$",
|
| 460 |
+
"text_format": "latex",
|
| 461 |
+
"bbox": [
|
| 462 |
+
449,
|
| 463 |
+
174,
|
| 464 |
+
549,
|
| 465 |
+
194
|
| 466 |
+
],
|
| 467 |
+
"page_idx": 4
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"type": "text",
|
| 471 |
+
"text": "where $\\odot$ is the element-wise multiplication (also known as the Hadamard product). The filter $\\kappa$ is called the global filter since it has the same dimension with $\\boldsymbol { X }$ , which can represent an arbitrary filter in the frequency domain. Finally, we adopt the inverse FFT to transform the modulated spectrum $\\tilde { X }$ back to the spatial domain and update the tokens: ",
|
| 472 |
+
"bbox": [
|
| 473 |
+
173,
|
| 474 |
+
200,
|
| 475 |
+
825,
|
| 476 |
+
258
|
| 477 |
+
],
|
| 478 |
+
"page_idx": 4
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"type": "equation",
|
| 482 |
+
"img_path": "images/bc7c276000705b108b223168026cb9650f3bd1423943d3d806a128bfb199d268.jpg",
|
| 483 |
+
"text": "$$\n\\pmb { x } \\mathcal { F } ^ { - 1 } [ \\tilde { \\pmb { X } } ] .\n$$",
|
| 484 |
+
"text_format": "latex",
|
| 485 |
+
"bbox": [
|
| 486 |
+
449,
|
| 487 |
+
266,
|
| 488 |
+
550,
|
| 489 |
+
285
|
| 490 |
+
],
|
| 491 |
+
"page_idx": 4
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"type": "text",
|
| 495 |
+
"text": "The formulation of the global filter layer is motivated by the frequency filters in the digital image processing [32], where the global filter $\\kappa$ can be regarded as a set of learnable frequency filters for different hidden dimensions. It can be proved (see Appendix A) that the global filter layer is equivalent to a depthwise global circular convolution with the filter size $H \\times W$ . Therefore, the global filter layer is different from the standard convolutional layer which adopts a relatively small filter size to enforce the inductive biases of the locality. We also find although the proposed global filter can also be interpreted as a spatial domain operation, the filters learned in our networks exhibit more clear patterns in the frequency domain than the spatial domain, which indicates our models tend to capture relation in the frequency domain instead of spatial domain (see Figure 4). Note that the global filter implemented in the frequency domain is also much more efficient compared to the spatial domain, which enjoys a complexity of $\\mathcal { O } ( D L \\log L )$ while the vanilla depthwise global circular convolution in the spatial domain has $\\mathcal { O } ( D L ^ { 2 } )$ complexity. We will also show that the global filter layer is better than its local convolution counterparts in the experiments. ",
|
| 496 |
+
"bbox": [
|
| 497 |
+
173,
|
| 498 |
+
292,
|
| 499 |
+
825,
|
| 500 |
+
473
|
| 501 |
+
],
|
| 502 |
+
"page_idx": 4
|
| 503 |
+
},
|
| 504 |
+
{
|
| 505 |
+
"type": "text",
|
| 506 |
+
"text": "It is also worth noting that in the implementation, we make use of the property of DFT to reduce the redundant computation. Since $_ { \\textbf { \\em x } }$ is a real tensor, its DFT $\\boldsymbol { X }$ is conjugate symmetric, i.e. $X [ H -$ $u , W - v , : ] = \\mathbf { \\bar { X } } ^ { * } [ H , W , : ]$ . Therefore, we can take only the half of the values in the $\\boldsymbol { X }$ but preserve the full information at the same time: ",
|
| 507 |
+
"bbox": [
|
| 508 |
+
173,
|
| 509 |
+
478,
|
| 510 |
+
825,
|
| 511 |
+
535
|
| 512 |
+
],
|
| 513 |
+
"page_idx": 4
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"type": "equation",
|
| 517 |
+
"img_path": "images/77f7bad99cc49570dfa1086bde703c7bb2d647f44f92a5fbc19a8f2fc443c89d.jpg",
|
| 518 |
+
"text": "$$\n\\pmb { X } _ { r } = \\pmb { X } [ : , 0 : \\widehat { W } ] : = \\mathcal { F } _ { r } [ \\pmb { x } ] , \\quad \\widehat { W } = \\lceil W / 2 \\rceil ,\n$$",
|
| 519 |
+
"text_format": "latex",
|
| 520 |
+
"bbox": [
|
| 521 |
+
346,
|
| 522 |
+
537,
|
| 523 |
+
650,
|
| 524 |
+
559
|
| 525 |
+
],
|
| 526 |
+
"page_idx": 4
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"type": "text",
|
| 530 |
+
"text": "where $\\mathcal { F } _ { r }$ denotes the 2D FFT for real input. In this way, we can implement the global filter as $\\boldsymbol { K _ { r } } \\in \\mathbb { C } ^ { H \\times \\widehat { W } \\times D }$ , which can reduce half the parameters. This can also ensure $\\mathcal { F } _ { r } ^ { - 1 } [ K _ { r } \\odot X _ { r } ]$ is a real tensor, thus it can be added directly to the input $_ { \\textbf { \\em x } }$ . The global filter layer can be easily in modern deep learning frameworks (e.g., PyTorch [31]), as is shown in Algorithm 1. The FFT and IFFT are well supported by GPU and CPU thanks to the acceleration libraries like cuFFT and mkl-fft, which makes our models perform well on hardware. ",
|
| 531 |
+
"bbox": [
|
| 532 |
+
173,
|
| 533 |
+
565,
|
| 534 |
+
825,
|
| 535 |
+
654
|
| 536 |
+
],
|
| 537 |
+
"page_idx": 4
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"type": "text",
|
| 541 |
+
"text": "Relationship to other transformer-style models. The GFNet follows the line of research about the exploration of approaches to mix the tokens. Compared to existing architectures like vision transformers and pure MLP models, we exhibit that GFNet has several favorable properties: 1) GFNet is more efficient. The complexity of both the vision transformers [10, 40, 41] and the MLP models [38, 39] is $\\mathcal { O } ( L ^ { 2 } )$ . Different from them, global filter layer only consists an FFT $( { \\mathcal { O } } ( L \\log L ) )$ , an element-wise multiplication $( \\mathcal { O } ( L ) )$ and an IFFT $\\scriptstyle ( { \\mathcal { O } } ( L \\log L ) )$ ), which means the total computational complexity is $\\mathcal { O } ( \\bar { L } \\log L )$ . 2) Although pure MLP models are simpler compared to transformers, it is hard to fine-tune them on higher resolution (e.g., from $2 2 4 \\times 2 2 4$ resolution to $3 8 4 \\times 3 8 4$ resolution) since they can only process a fixed number of tokens. As opposed to pure MLP models, we will show that our GFNet can be easily scaled up to higher resolution. Our model is more flexible since both the FFT and the IFFT have no learnable parameters and can process sequences with arbitrary length. We can simply interpolate the global filter K to K0 ∈ CH0×W0×D for different inputs, where $H ^ { \\prime } \\times W ^ { \\prime }$ is the target size. The interpolation is reasonable due to the property of DFT. Each element of the global filter $K [ u , v ]$ corresponds to the spectrum of the filter at $\\omega _ { u } = 2 \\pi u / H , \\omega _ { v } = 2 \\pi v / W$ and thus, the global filter $\\kappa$ can be viewed as a sampling of a continuous spectrum $\\pmb { K } ( \\omega _ { u } , \\omega _ { v } )$ , where $\\omega _ { u } , \\omega _ { v } \\in [ 0 , 2 \\pi ]$ . Hence, changing the resolution is equivalent to changing the sampling interval of $\\pmb { K } ( \\omega _ { u } , \\omega _ { v } )$ . Therefore, we only need to perform interpolation to shift from one resolution to another. ",
|
| 542 |
+
"bbox": [
|
| 543 |
+
173,
|
| 544 |
+
659,
|
| 545 |
+
825,
|
| 546 |
+
911
|
| 547 |
+
],
|
| 548 |
+
"page_idx": 4
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"type": "table",
|
| 552 |
+
"img_path": "images/176f7f47b078dfb2a7f5e4d67280fbcad4f4fbd6319beaae99afc9316ccdf7e4.jpg",
|
| 553 |
+
"table_caption": [
|
| 554 |
+
"Table 2: Detailed configurations of different variants of GFNet. For hierarchical models, we provide the number of channels and blocks in 4 stages. The FLOPs are calculated with $2 2 4 \\times 2 2 4$ input. "
|
| 555 |
+
],
|
| 556 |
+
"table_footnote": [],
|
| 557 |
+
"table_body": "<table><tr><td>Model</td><td>#Blocks</td><td>#Channels</td><td>Params (M)</td><td>FLOPs (G)</td></tr><tr><td>GFNet-Ti</td><td>12</td><td>256</td><td>7</td><td>1.3</td></tr><tr><td>GFNet-XS</td><td>12</td><td>384</td><td>16</td><td>2.9</td></tr><tr><td>GFNet-S</td><td>19</td><td>384</td><td>25</td><td>4.5</td></tr><tr><td>GFNet-B</td><td>19</td><td>512</td><td>43</td><td>7.9</td></tr><tr><td>GFNet-H-Ti</td><td>[3,3,10, 3]</td><td>[64, 128,256, 512]</td><td>15</td><td>2.1</td></tr><tr><td>GFNet-H-S</td><td>[3,3,10, 3]</td><td>[96,192, 384, 768]</td><td>32</td><td>4.6</td></tr><tr><td>GFNet-H-B</td><td>[3,3, 27, 3]</td><td>[96,192, 384, 768]</td><td>54</td><td>8.6</td></tr></table>",
|
| 558 |
+
"bbox": [
|
| 559 |
+
173,
|
| 560 |
+
131,
|
| 561 |
+
825,
|
| 562 |
+
265
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 5
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "We also notice recently a concurrent work FNet [23] leverages Fourier transform to mix tokens. Our work is distinct from FNet in three aspects: (1) FNet performs FFT to the input and directly adds the real part of the spectrum to the input tokens, which blends the information from different domains (spatial/frequency) together. On the other hand, GFNet draws motivation from the frequency filters, which is more reasonable. (2) FNet only keeps the real part of the spectrum. Note that the spectrum of real input is conjugate symmetric, which means the real part is exactly symmetric and thus contains redundant information. Our GFNet, however, utilizes this property to simplify the computation. (3) FNet is designed for NLP tasks, while our GFNet focuses on vision tasks. In our experiments, we also implement the FNet and show that our model outperforms it. ",
|
| 569 |
+
"bbox": [
|
| 570 |
+
173,
|
| 571 |
+
291,
|
| 572 |
+
825,
|
| 573 |
+
416
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 5
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "Architecture variants. Due to the limitation from the quadratic complexity in the self-attention, vision transformers [10, 40] are usually designed to process a relatively small feature map (e.g., $1 4 \\times 1 4$ ). However, our GFNet, which enjoys log-linear complexity, avoids that problem. Since in our GFNet the computational costs do not grow such significantly when the feature map size increases, we can adopt a hierarchical architecture inspired by the success of CNNs [21, 14]. Generally speaking, we can start from a large feature map (e.g., $5 6 \\times 5 6$ ) and gradually perform downsampling after a few blocks. In this paper, we mainly investigate two kinds of variants of GFNet: transformer-style models with a fixed number of tokens in each block and CNN-style hierarchical models with gradually downsampled tokens. For transformer-style models, we begin with a 12-layer model (GFNet-XS) with a similar architecture with DeiT-S and ResMLP-12. Then, we obtain 3 variants of the model (GFNet-Ti, GFNet-S and GFNet-B) by simply adjusting the depth and embedding dimension, which have similar computational costs with ResNet-18, 50 and 101 [14]. For hierarchical models, we also design three models (GFNet-H-Ti, GFNet-H-S and GFNet-H-B) that have these three levels of complexity following the design of PVT [43]. We use $4 \\times 4$ patch embedding to form the input tokens and use a non-overlapping convolution layer to downsample tokens following [43, 27]. Unlike PVT [43] and Swin [27], we directly apply our building block on different stages without any modifications. The detailed architectures are summarized in Table 2. ",
|
| 580 |
+
"bbox": [
|
| 581 |
+
173,
|
| 582 |
+
424,
|
| 583 |
+
825,
|
| 584 |
+
659
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 5
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "text",
|
| 590 |
+
"text": "4 Experiments ",
|
| 591 |
+
"text_level": 1,
|
| 592 |
+
"bbox": [
|
| 593 |
+
174,
|
| 594 |
+
680,
|
| 595 |
+
312,
|
| 596 |
+
696
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "We conduct extensive experiments to verify the effectiveness of our GFNet. We present the main results on ImageNet [8] and compare them with various architectures. We also test our models on the downstream transfer learning datasets including CIFAR-10/100 [20], Stanford Cars [19] and Flowers-102 [30]. Lastly, we investigate the efficiency and robustness of the proposed models and provide visualization to have an intuitive understanding of our method. ",
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
713,
|
| 606 |
+
825,
|
| 607 |
+
782
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 5
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "4.1 ImageNet Classification ",
|
| 614 |
+
"text_level": 1,
|
| 615 |
+
"bbox": [
|
| 616 |
+
174,
|
| 617 |
+
800,
|
| 618 |
+
379,
|
| 619 |
+
815
|
| 620 |
+
],
|
| 621 |
+
"page_idx": 5
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"type": "text",
|
| 625 |
+
"text": "Setups. We conduct our main experiments on ImageNet [8], which is a widely used large-scale benchmark for image classification. ImageNet contains roughly 1.2M images from 1,000 categories. Following common practice [14, 40], we train our models on the training set of ImageNet and report the single-crop top-1 accuracy on 50,000 validation images. To fairly compare with previous works [40, 39], we follow the most training details for our models and do not add extra regularization methods like [18]. Different from [40], we does not use EMA model [33], RandomEarse [50] and repeated augmentation [17], which are important to train DeiT while sightly hurting the performance of our models. We set the gradient clipping norm to 1 for all of our models. During finetuning at the higher resolution, we use the hyper-parameters suggested by the implementation of [40] and train the model for 30 epochs. All of our models are trained on a single machine with 8 GPUs. More details can be found in Appendix B. ",
|
| 626 |
+
"bbox": [
|
| 627 |
+
174,
|
| 628 |
+
827,
|
| 629 |
+
825,
|
| 630 |
+
911
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 5
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "table",
|
| 636 |
+
"img_path": "images/56675fb36202727989f953dd9c6386565f7e07bfd58adc0fbce22ef764ba2d70.jpg",
|
| 637 |
+
"table_caption": [
|
| 638 |
+
"Table 3: Comparisons with transformer-style architectures on ImageNet. We compare different transformer-style architectures for image classification including vision transformers [40], MLP-like models [39, 26] and our models that have comparable FLOPs and the number of parameters. We report the top-1 accuracy on the validation set of ImageNet as well as the number of parameters and FLOPs. All of our models are trained with $2 2 4 \\times 2 2 4$ images. We use “ $\\uparrow 3 8 4 \"$ to represent models finetuned on $3 8 4 \\times 3 8 4$ images for 30 epochs. "
|
| 639 |
+
],
|
| 640 |
+
"table_footnote": [],
|
| 641 |
+
"table_body": "<table><tr><td>Model</td><td>Params (M)</td><td>FLOPs (G)</td><td>Resolution</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>DeiT-Ti40]</td><td>5</td><td>1.2</td><td>224</td><td>72.2</td><td>91.1</td></tr><tr><td>gMLP-Ti[26]</td><td>6</td><td>1.4</td><td>224</td><td>72.0</td><td>1</td></tr><tr><td>GFNet-Ti</td><td>7</td><td>1.3</td><td>224</td><td>74.6</td><td>92.2</td></tr><tr><td>ResMLP-12 [39]</td><td>15</td><td>3.0</td><td>224</td><td>76.6</td><td>1</td></tr><tr><td>GFNet-XS</td><td>16</td><td>2.9</td><td>224</td><td>78.6</td><td>94.2</td></tr><tr><td>DeiT-S40]</td><td>22</td><td>4.6</td><td>224</td><td>79.8</td><td>95.0</td></tr><tr><td>gMLP-S [26]</td><td>20</td><td>4.5</td><td>224</td><td>79.4</td><td>1</td></tr><tr><td>GFNet-S</td><td>25</td><td>4.5</td><td>224</td><td>80.0</td><td>94.9</td></tr><tr><td>ResMLP-36 [39]</td><td>45</td><td>8.9</td><td>224</td><td>79.7</td><td>1</td></tr><tr><td>GFNet-B</td><td>43</td><td>7.9</td><td>224</td><td>80.7</td><td>95.1</td></tr><tr><td>GFNet-XS1384</td><td>18</td><td>8.4</td><td>384</td><td>80.6</td><td>95.4</td></tr><tr><td>DeiT-B40]</td><td>86</td><td>17.5</td><td>224</td><td>81.8</td><td>95.6</td></tr><tr><td>gMLP-B [26]</td><td>73</td><td>15.8</td><td>224</td><td>81.6</td><td></td></tr><tr><td>GFNet-S↑384</td><td>28</td><td>13.2</td><td>384</td><td>81.7</td><td>95.8</td></tr><tr><td>GFNet-B↑384</td><td>47</td><td>23.3</td><td>384</td><td>82.1</td><td>95.8</td></tr></table>",
|
| 642 |
+
"bbox": [
|
| 643 |
+
173,
|
| 644 |
+
185,
|
| 645 |
+
830,
|
| 646 |
+
450
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 6
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "table",
|
| 652 |
+
"img_path": "images/8c28d1a481c75f2feacca6f6d0a1b098ab30d44a7357af8b8b3e1b3d9d61402e.jpg",
|
| 653 |
+
"table_caption": [
|
| 654 |
+
"Table 4: Comparisons with hierarchical architectures on ImageNet. We compare different hierarchical architectures for image classification including convolutional neural networks [14, 34], hierarchical vision transformers [43, 27] and our hierarchical models that have comparable FLOPs and number of parameters. We report the top-1 accuracy on the validation set of ImageNet as well as the number of parameters and FLOPs. All models are trained and tested with $2 2 4 \\times 2 2 4$ images. "
|
| 655 |
+
],
|
| 656 |
+
"table_footnote": [],
|
| 657 |
+
"table_body": "<table><tr><td>Model</td><td>Params (M)</td><td>FLOPs (G)</td><td>Top-1 Acc. (%)</td><td>Top-5 Acc. (%)</td></tr><tr><td>ResNet-18 [14]</td><td>12</td><td>1.8</td><td>69.8</td><td>89.1</td></tr><tr><td>RegNetY-1.6GF [34]</td><td>11</td><td>1.6</td><td>78.0</td><td>1</td></tr><tr><td>PVT-Ti [26]</td><td>13</td><td>1.9</td><td>75.1</td><td>=</td></tr><tr><td>GFNet-H-Ti</td><td>15</td><td>2.1</td><td>80.1</td><td>95.1</td></tr><tr><td>ResNet-50 [40]</td><td>26</td><td>4.1</td><td>76.1</td><td>92.9</td></tr><tr><td>RegNetY-4.0GF [34]</td><td>21</td><td>4.0</td><td>80.0</td><td>-</td></tr><tr><td>PVT-S [26]</td><td>25</td><td>3.8</td><td>79.8</td><td>-</td></tr><tr><td>Swin-Ti [27]</td><td>29</td><td>4.5</td><td>81.3</td><td>1</td></tr><tr><td>GFNet-H-S</td><td>32</td><td>4.6</td><td>81.5</td><td>95.6</td></tr><tr><td>ResNet-101 [40]</td><td>45</td><td>7.9</td><td>77.4</td><td>93.5</td></tr><tr><td>RegNetY-8.0GF [34]</td><td>39</td><td>8.0</td><td>81.7</td><td>1</td></tr><tr><td>PVT-M[26]</td><td>44</td><td>6.7</td><td>81.2</td><td>=</td></tr><tr><td>Swin-S [27]</td><td>50</td><td>8.7</td><td>83.0</td><td></td></tr><tr><td>GFNet-H-B</td><td>54</td><td>8.6</td><td>82.9</td><td>96.2</td></tr></table>",
|
| 658 |
+
"bbox": [
|
| 659 |
+
199,
|
| 660 |
+
549,
|
| 661 |
+
794,
|
| 662 |
+
786
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 6
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
805,
|
| 672 |
+
825,
|
| 673 |
+
876
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 6
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "text",
|
| 679 |
+
"text": "Comparisons with transformer-style architectures. The results are presented in Table 3. We compare our method with different transformer-style architectures for image classification including vision transformers (DeiT [40]) and MLP-like models (ResMLP [39] and $\\mathrm { g M L P }$ [26]) that have similar complexity and number of parameters. We see that our method can clearly outperform recent MLP-like models such as ResMLP [39] and $\\mathrm { g M L P }$ [26], and show similar performance to DeiT. Specifically, GFNet-XS outperforms ResMLP-12 by $2 . 0 \\%$ while having slightly fewer FLOPs. GFNet-S also achieves better top-1 accuracy compared to gMLP-S and DeiT-S. Our tiny model is significantly better compared to both DeiT-Ti $( + 2 . 4 \\% )$ and gMLP-Ti $( + 2 . 6 \\% )$ with the similar level of complexity. ",
|
| 680 |
+
"bbox": [
|
| 681 |
+
174,
|
| 682 |
+
883,
|
| 683 |
+
820,
|
| 684 |
+
911
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 6
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "",
|
| 691 |
+
"bbox": [
|
| 692 |
+
173,
|
| 693 |
+
90,
|
| 694 |
+
825,
|
| 695 |
+
188
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 7
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "Comparisons with hierarchical architectures. We compare different kinds of hierarchical models in Figure 4. ResNet [14] is the most widely used convolutional model while RegNet [34] is a family of carefully designed CNN models. We also compare with recent hierarchical vision transformers PVT [43] and Swin [27]. Benefiting from the log-linear complexity, GFNet-H models show significantly better performance than ResNet, RegNet and PVT and achieve similar performance with Swin while having a much simpler and more generic design. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
173,
|
| 704 |
+
195,
|
| 705 |
+
825,
|
| 706 |
+
279
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 7
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Fine-tuning at higher resolution. One prominent problem of MLP-like models is that the feature resolution is not adjustable. On the contrary, the proposed global filter is more flexible. We demonstrate the advantage of GFNet by finetuning the model trained at $2 2 4 \\times 2 2 4$ resolution to higher resolution following the practice in vision transformers [40]. As shown in Table 3, our model can easily adapt to higher resolution with only 30 epoch finetuning and achieve better performance. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
286,
|
| 716 |
+
825,
|
| 717 |
+
357
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 7
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "table",
|
| 723 |
+
"img_path": "images/673906fb2a44cd862b53e7d0f7e37a3a19b846090e67e675fba39244c9df1a9f.jpg",
|
| 724 |
+
"table_caption": [
|
| 725 |
+
"Table 5: Results on transfer learning datasets. We report the top-1 accuracy on the four datasets as well as the number of parameters and FLOPs. "
|
| 726 |
+
],
|
| 727 |
+
"table_footnote": [],
|
| 728 |
+
"table_body": "<table><tr><td>Model</td><td>FLOPs</td><td>Params</td><td>CIFAR-10</td><td>CIFAR-100</td><td>Flowers-102</td><td>Cars-196</td></tr><tr><td>ResNet50 [14]</td><td>4.1G</td><td>26M</td><td>=</td><td></td><td>96.2</td><td>90.0</td></tr><tr><td>EfficientNet-B7 [37]</td><td>37G</td><td>66M</td><td>98.9</td><td>91.7</td><td>98.8</td><td>94.7</td></tr><tr><td>ViT-B/16 [10]</td><td>55.4G</td><td>86M</td><td>98.1</td><td>87.1</td><td>89.5</td><td>-</td></tr><tr><td>ViT-L/16 [10]</td><td>190.7G</td><td>307M</td><td>97.9</td><td>86.4</td><td>89.7</td><td>=</td></tr><tr><td>Deit-B/16 [40]</td><td>17.5G</td><td>86M</td><td>99.1</td><td>90.8</td><td>98.4</td><td>92.1</td></tr><tr><td>ResMLP-12[39]</td><td>3.0G</td><td>15M</td><td>98.1</td><td>87.0</td><td>97.4</td><td>84.6</td></tr><tr><td>ResMLP-24 [39]</td><td>6.0G</td><td>30M</td><td>98.7</td><td>89.5</td><td>97.9</td><td>89.5</td></tr><tr><td>GFNet-XS</td><td>2.9G</td><td>16M</td><td>98.6</td><td>89.1</td><td>98.1</td><td>92.8</td></tr><tr><td>GFNet-H-B</td><td>8.6G</td><td>54M</td><td>99.0</td><td>90.3</td><td>98.8</td><td>93.2</td></tr></table>",
|
| 729 |
+
"bbox": [
|
| 730 |
+
174,
|
| 731 |
+
416,
|
| 732 |
+
825,
|
| 733 |
+
564
|
| 734 |
+
],
|
| 735 |
+
"page_idx": 7
|
| 736 |
+
},
|
| 737 |
+
{
|
| 738 |
+
"type": "text",
|
| 739 |
+
"text": "4.2 Transfer learning ",
|
| 740 |
+
"text_level": 1,
|
| 741 |
+
"bbox": [
|
| 742 |
+
174,
|
| 743 |
+
595,
|
| 744 |
+
334,
|
| 745 |
+
611
|
| 746 |
+
],
|
| 747 |
+
"page_idx": 7
|
| 748 |
+
},
|
| 749 |
+
{
|
| 750 |
+
"type": "text",
|
| 751 |
+
"text": "To test the generality of our architecture and the learned representation, we evaluate GFNet on a set of commonly used transfer learning benchmark datasets including CIFAR-10 [20], CIFAR-100 [20], Stanford Cars [19] and Flowers-102 [30]. We follow the setting of previous works [37, 10, 40, 39], where the model is initialized by the ImageNet pre-trained weights and finetuned on the new datasets. We evaluate the transfer learning performance of our basic model and best model. The results are presented in Table 5. The proposed models generally work well on downstream datasets. GFNet models outperform ResMLP models by a large margin and achieve very competitive performance with state-of-the-art EfficientNet-B7. Our models also show competitive performance compared to state-of-the-art CNNs and vision transformers. ",
|
| 752 |
+
"bbox": [
|
| 753 |
+
173,
|
| 754 |
+
623,
|
| 755 |
+
826,
|
| 756 |
+
748
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 7
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "4.3 Analysis and visualization ",
|
| 763 |
+
"text_level": 1,
|
| 764 |
+
"bbox": [
|
| 765 |
+
176,
|
| 766 |
+
771,
|
| 767 |
+
393,
|
| 768 |
+
786
|
| 769 |
+
],
|
| 770 |
+
"page_idx": 7
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"type": "text",
|
| 774 |
+
"text": "Efficiency of GFNet. We demonstrate the efficiency of our GFNet in Figure 2, where the models are compared in theoretical FLOPs, actual latency and peak memory usage on GPU. We test a single building block of each model (including one token mixing layer and one FFN) with respect to the different numbers of tokens and set the feature dimension and batch size to 384 and 32 respectively. The self-attention model quickly runs out of memory when feature resolution exceeds $5 6 ^ { 2 }$ , which is also the feature resolution of our hierarchical model. The advantage of the proposed architecture becomes larger as the resolution increases, which strongly shows the potential of our model in vision tasks requiring high-resolution feature maps. ",
|
| 775 |
+
"bbox": [
|
| 776 |
+
174,
|
| 777 |
+
800,
|
| 778 |
+
825,
|
| 779 |
+
911
|
| 780 |
+
],
|
| 781 |
+
"page_idx": 7
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"type": "image",
|
| 785 |
+
"img_path": "images/3211ca51af5b9d445d6134414166f71b40db289c91e3eccaacf4c9df0de46a48.jpg",
|
| 786 |
+
"image_caption": [
|
| 787 |
+
"Figure 2: Comparisons among GFNet, ViT [10] and ResMLP [39] in (a) FLOPs (b) latency and (c) GPU memory with respect to the number of tokens (feature resolution). The dotted lines indicate the estimated values when the GPU memory has run out. The latency and GPU memory is measured using a single NVIDIA RTX 3090 GPU with batch size 32 and feature dimension 384. "
|
| 788 |
+
],
|
| 789 |
+
"image_footnote": [],
|
| 790 |
+
"bbox": [
|
| 791 |
+
171,
|
| 792 |
+
87,
|
| 793 |
+
825,
|
| 794 |
+
229
|
| 795 |
+
],
|
| 796 |
+
"page_idx": 8
|
| 797 |
+
},
|
| 798 |
+
{
|
| 799 |
+
"type": "image",
|
| 800 |
+
"img_path": "images/b03ce60b4d0897451f906dcc82cc18a30470840802fbe32925187887ba3bc25f.jpg",
|
| 801 |
+
"image_caption": [
|
| 802 |
+
"Figure 3: ImageNet acc. vs model complexity. "
|
| 803 |
+
],
|
| 804 |
+
"image_footnote": [],
|
| 805 |
+
"bbox": [
|
| 806 |
+
178,
|
| 807 |
+
315,
|
| 808 |
+
477,
|
| 809 |
+
539
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 8
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "table",
|
| 815 |
+
"img_path": "images/48c64dfa35f05260529afea8f2450c7be04d8293929d1a070d59eb425c5fb39e.jpg",
|
| 816 |
+
"table_caption": [
|
| 817 |
+
"Table 6: Comparisons among the GFNet and other variants based on the transformer-like architecture on ImageNet. We show that GFNet outperforms the ResMLP [39], FNet [23] and models with local depthwise convolutions. We also report the number of parameters and theoretical complexity in FLOPs. "
|
| 818 |
+
],
|
| 819 |
+
"table_footnote": [],
|
| 820 |
+
"table_body": "<table><tr><td>Model</td><td>Acc (%)</td><td>Param (M)</td><td>FLOPs (G)</td></tr><tr><td>DeiT-S [40]</td><td>79.8</td><td>22</td><td>4.6</td></tr><tr><td>Local Conv (3 × 3)</td><td>77.7</td><td>15</td><td>2.8</td></tr><tr><td>Local Conv (5 × 5)</td><td>78.1</td><td>15</td><td>2.9</td></tr><tr><td>Local Conv (7 × 7)</td><td>78.2</td><td>15</td><td>2.9</td></tr><tr><td>ResMLP [39]</td><td>76.6</td><td>15</td><td>3.0</td></tr><tr><td>FNet [23]</td><td>71.2</td><td>15</td><td>2.9</td></tr><tr><td>GFNet-XS</td><td>78.6</td><td>16</td><td>2.9</td></tr></table>",
|
| 821 |
+
"bbox": [
|
| 822 |
+
514,
|
| 823 |
+
409,
|
| 824 |
+
810,
|
| 825 |
+
555
|
| 826 |
+
],
|
| 827 |
+
"page_idx": 8
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"type": "text",
|
| 831 |
+
"text": "Complexity/accuracy trade-offs. We show the computational complexity and accuracy trade-offs of various transformer-style architectures in Figure 3. It is clear that GFNet achieves the best trade-off among all kinds of models. ",
|
| 832 |
+
"bbox": [
|
| 833 |
+
174,
|
| 834 |
+
577,
|
| 835 |
+
823,
|
| 836 |
+
619
|
| 837 |
+
],
|
| 838 |
+
"page_idx": 8
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"type": "text",
|
| 842 |
+
"text": "Ablation study on the global filter. To more clearly show the effectiveness of the proposed global filters, we compare GFNet-XS with several baseline models that are equipped with different token mixing operations. The results are presented in Table 6. All models have a similar building block ( token mixing layer $^ +$ FFN ) and the same feature dimension of $D = 3 8 4$ . We also implement the recent FNet [23] for comparison, where a 1D FFT on feature dimension and a 2D FFT on spatial dimensions are used to mix tokens. As shown in Table 6, our method outperforms all baseline methods except DeiT-S that has $64 \\%$ higher FLOPs. ",
|
| 843 |
+
"bbox": [
|
| 844 |
+
173,
|
| 845 |
+
626,
|
| 846 |
+
825,
|
| 847 |
+
724
|
| 848 |
+
],
|
| 849 |
+
"page_idx": 8
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"type": "text",
|
| 853 |
+
"text": "Robustness & generalization ability. Inspired by the [29], we further conduct experiments to evaluate the robustness and the generalization ability of the GFNet. For robustness, we consider ImageNet-A, ImageNet-C, FGSM and PGD. ImageNet-A [16] (IN-A) is a challenging dataset that contains natural adversarial examples. ImageNet-C [15] (IN-C) is used to validate the robustness of the model under various types of corruption. We use the mean corruption error (mCE, lower is better) on ImageNet-C as the evaluation metric. FGSM [12] and PGD [28] are two widely used algorithms that are targeted to evaluate the adversarial robustness of the model by single-step attack and multistep attack, respectively. For generalization ability, we adopt two variants of ImageNet validation set: ImageNet-V2 [36] (IN-V2) and ImageNet-Real [2] (IN-Real). ImageNet-V2 is a re-collected version of ImageNet validation set following the same data collection procedure of ImageNet, while ImageNet-Real contains the same images as ImageNet validation set but has reassessed labels. We compare GFNet-S with various baselines in Table 7 including CNNs, Transformers and MLP-like architectures and find the GFNet enjoys both favorable robustness and generalization ability. ",
|
| 854 |
+
"bbox": [
|
| 855 |
+
173,
|
| 856 |
+
731,
|
| 857 |
+
825,
|
| 858 |
+
911
|
| 859 |
+
],
|
| 860 |
+
"page_idx": 8
|
| 861 |
+
},
|
| 862 |
+
{
|
| 863 |
+
"type": "table",
|
| 864 |
+
"img_path": "images/f48f5e137ea2e0c5f36bdc6cc208fe38506b4509e72bc06c5f893b9ee467dddf.jpg",
|
| 865 |
+
"table_caption": [
|
| 866 |
+
"Table 7: Evaluation of robustness and generalization ability. We measure the robustness from different aspects, including the adversarial robustness by adopting adversarial attack algorithms including FGSM and PGD and the performance on corrupted/out-of-distribution datasets including ImageNet-A [16] (top-1 accuracy) and ImageNet-C [15] (mCE, lower is better). The generalization ability is evaluated on ImageNet-V2 [36] and ImageNet-Real [2]. "
|
| 867 |
+
],
|
| 868 |
+
"table_footnote": [],
|
| 869 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">FLOPs (G)</td><td rowspan=\"2\">Params (M)</td><td colspan=\"2\">ImageNet</td><td colspan=\"2\">Generalization</td><td colspan=\"4\">Robustness</td></tr><tr><td>Top-1个</td><td>Top-5个</td><td>IN-V2↑</td><td>IN-Real个</td><td>FGSM↑</td><td>PGD↑</td><td>IN-C↓</td><td>IN-A↑</td></tr><tr><td>ResNet-50[14]</td><td>4.1</td><td>26</td><td>76.1</td><td>92.9</td><td>67.4</td><td>85.8</td><td>12.2</td><td>0.9</td><td>76.7</td><td>0.0</td></tr><tr><td>ResNeXt50-32x4d [45]</td><td>4.3</td><td>25</td><td>79.8</td><td>94.6</td><td>68.2</td><td>85.2</td><td>34.7</td><td>13.5</td><td>64.7</td><td>10.7</td></tr><tr><td>DeiT-S[40]</td><td>4.6</td><td>22</td><td>79.8</td><td>95.0</td><td>68.4</td><td>85.6</td><td>40.7</td><td>16.7</td><td>54.6</td><td>18.9</td></tr><tr><td>ResMLP-12 [39]</td><td>3.0</td><td>15</td><td>76.6</td><td>93.2</td><td>64.4</td><td>83.3</td><td>23.9</td><td>8.5</td><td>66.0</td><td>7.1</td></tr><tr><td>GFNet-S</td><td>4.5</td><td>25</td><td>80.1</td><td>94.9</td><td>68.5</td><td>85.8</td><td>42.6</td><td>21.0</td><td>53.8</td><td>14.3</td></tr></table>",
|
| 870 |
+
"bbox": [
|
| 871 |
+
176,
|
| 872 |
+
172,
|
| 873 |
+
825,
|
| 874 |
+
273
|
| 875 |
+
],
|
| 876 |
+
"page_idx": 9
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"type": "image",
|
| 880 |
+
"img_path": "images/8a458037fb6470589930cee1ac1eb171b69323f82c27f6c9821446afc75a0a70.jpg",
|
| 881 |
+
"image_caption": [
|
| 882 |
+
"Figure 4: Visualization of the learned global filters in GFNet-XS. We visualize the original frequency domain global filters in (a) and show the corresponding spatial domain filters for the first 6 columns in (b). There are more clear patterns in the frequency domain than the spatial domain. "
|
| 883 |
+
],
|
| 884 |
+
"image_footnote": [],
|
| 885 |
+
"bbox": [
|
| 886 |
+
183,
|
| 887 |
+
294,
|
| 888 |
+
821,
|
| 889 |
+
497
|
| 890 |
+
],
|
| 891 |
+
"page_idx": 9
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"type": "text",
|
| 895 |
+
"text": "Visualization. The core operation in GFNet is the element-wise multiplication between frequencydomain features and the global filter. Therefore, it is easy to visualize and interpret. We visualize the frequency domain filters as well as their corresponding spatial domain filters in Figure 4. The learned global filters have more clear patterns in the frequency domain, where different layers have different characteristics. Interestingly, the filters in the last layer particularly focus on the low-frequency component. The corresponding filters in the spatial domain are less interpretable for humans. ",
|
| 896 |
+
"bbox": [
|
| 897 |
+
173,
|
| 898 |
+
565,
|
| 899 |
+
825,
|
| 900 |
+
650
|
| 901 |
+
],
|
| 902 |
+
"page_idx": 9
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"type": "text",
|
| 906 |
+
"text": "5 Conclusion ",
|
| 907 |
+
"text_level": 1,
|
| 908 |
+
"bbox": [
|
| 909 |
+
174,
|
| 910 |
+
674,
|
| 911 |
+
299,
|
| 912 |
+
690
|
| 913 |
+
],
|
| 914 |
+
"page_idx": 9
|
| 915 |
+
},
|
| 916 |
+
{
|
| 917 |
+
"type": "text",
|
| 918 |
+
"text": "We have presented the Global Filter Network (GFNet), which is a conceptually simple yet computationally efficient architecture for image classification. Our model replaces the self-attention sub-layer in vision transformer with 2D FFT/IFFT and a set of learnable global filters in the frequency domain. Benefiting from the token mixing operation with log-linear complexity, our architecture is highly efficient. Our experimental results demonstrated that GFNet can be a very competitive alternative to vision transformers, MLP-like models and CNNs in accuracy/complexity trade-offs. ",
|
| 919 |
+
"bbox": [
|
| 920 |
+
174,
|
| 921 |
+
709,
|
| 922 |
+
826,
|
| 923 |
+
792
|
| 924 |
+
],
|
| 925 |
+
"page_idx": 9
|
| 926 |
+
},
|
| 927 |
+
{
|
| 928 |
+
"type": "text",
|
| 929 |
+
"text": "Acknowledgment ",
|
| 930 |
+
"text_level": 1,
|
| 931 |
+
"bbox": [
|
| 932 |
+
174,
|
| 933 |
+
814,
|
| 934 |
+
297,
|
| 935 |
+
829
|
| 936 |
+
],
|
| 937 |
+
"page_idx": 9
|
| 938 |
+
},
|
| 939 |
+
{
|
| 940 |
+
"type": "text",
|
| 941 |
+
"text": "This work was supported in part by the National Key Research and Development Program of China under Grant 2017YFA0700802, in part by the National Natural Science Foundation of China under Grant 62125603, Grant 61822603, Grant U1813218, Grant U1713214, in part by Beijing Academy of Artificial Intelligence (BAAI), and in part by a grant from the Institute for Guo Qiang, Tsinghua University. ",
|
| 942 |
+
"bbox": [
|
| 943 |
+
174,
|
| 944 |
+
842,
|
| 945 |
+
825,
|
| 946 |
+
911
|
| 947 |
+
],
|
| 948 |
+
"page_idx": 9
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"type": "text",
|
| 952 |
+
"text": "References \n[1] Gregory A Baxes. Digital image processing: principles and applications. John Wiley & Sons, Inc., 1994. 3 \n[2] Lucas Beyer, Olivier J Hénaff, Alexander Kolesnikov, Xiaohua Zhai, and Aäron van den Oord. Are we done with imagenet? arXiv preprint arXiv:2006.07159, 2020. 9, 10 \n[3] Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. End-to-end object detection with transformers. In ECCV, pages 213–229. Springer, 2020. 3 \n[4] Xin Chen, Bin Yan, Jiawen Zhu, Dong Wang, Xiaoyun Yang, and Huchuan Lu. Transformer tracking. In CVPR, 2021. 1, 3 \n[5] Bowen Cheng, Alexander G. Schwing, and Alexander Kirillov. Per-pixel classification is not all you need for semantic segmentation. NeurIPS, 2021. 1 \n[6] Lu Chi, Borui Jiang, and Yadong Mu. Fast fourier convolution. NeurIPS, 33, 2020. 3 \n[7] James W Cooley and John W Tukey. An algorithm for the machine calculation of complex fourier series. Mathematics of computation, 19(90):297–301, 1965. 2 \n[8] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, pages 248–255, 2009. 6 \n[9] Caiwen Ding, Siyu Liao, Yanzhi Wang, Zhe Li, Ning Liu, Youwei Zhuo, Chao Wang, Xuehai Qian, Yu Bai, Geng Yuan, et al. Circnn: accelerating and compressing deep neural networks using block-circulant weight matrices. In MICRO, pages 395–408, 2017. 3 \n[10] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020. 1, 2, 3, 4, 5, 6, 8, 9 \n[11] Chengyue Gong, Dilin Wang, Meng Li, Vikas Chandra, and Qiang Liu. Improve vision transformers training by suppressing over-smoothing. arXiv preprint arXiv:2104.12753, 2021. 3 \n[12] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014. 9 \n[13] Kaiming He, Georgia Gkioxari, Piotr Dollar, and Ross Girshick. Mask r-cnn. In ICCV, 2017. 3 \n[14] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, pages 770–778, 2016. 3, 6, 7, 8, 10 \n[15] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. 9, 10 \n[16] Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In CVPR, pages 15262–15271, 2021. 9, 10 \n[17] Elad Hoffer, Tal Ben-Nun, Itay Hubara, Niv Giladi, Torsten Hoefler, and Daniel Soudry. Augment your batch: Improving generalization through instance repetition. In CVPR, pages 8129–8138, 2020. 7 \n[18] Zihang Jiang, Qibin Hou, Li Yuan, Daquan Zhou, Xiaojie Jin, Anran Wang, and Jiashi Feng. Token labeling: Training a $8 5 . 5 \\%$ top-1 accuracy vision transformer with 56m parameters on imagenet. arXiv preprint arXiv:2104.10858, 2021. 3, 6 \n[19] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In ICCVW, pages 554–561, 2013. 6, 8 \n[20] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 6, 8 \n[21] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. NeurIPS, 25:1097–1105, 2012. 6 \n[22] Jae-Han Lee, Minhyeok Heo, Kyung-Rae Kim, and Chang-Su Kim. Single-image depth estimation based on fourier domain analysis. In CVPR, pages 330–339, 2018. 3 \n[23] James Lee-Thorp, Joshua Ainslie, Ilya Eckstein, and Santiago Ontanon. Fnet: Mixing tokens with fourier transforms. arXiv preprint arXiv:2105.03824, 2021. 3, 6, 9 \n[24] Shaohua Li, Kaiping Xue, Bin Zhu, Chenkai Ding, Xindi Gao, David Wei, and Tao Wan. Falcon: A fourier transform based approach for fast and secure convolutional neural network predictions. In CVPR, pages 8705–8714, 2020. 3 \n[25] Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. ICLR, 2021. 3 \n[26] Hanxiao Liu, Zihang Dai, David R So, and Quoc V Le. Pay attention to mlps. arXiv preprint arXiv:2105.08050, 2021. 2, 3, 7, 8 \n[27] Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. 1, 3, 6, 7, 8 \n[28] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. 9 \n[29] Xiaofeng Mao, Gege Qi, Yuefeng Chen, Xiaodan Li, Shaokai Ye, Yuan He, and Hui Xue. Rethinking the design principles of robust vision transformer. arXiv preprint arXiv:2105.07926, 2021. 9 \n[30] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In ICVGIP, pages 722–729, 2008. 6, 8 \n[31] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. In NeurIPS, 2019. 5 \n[32] Ioannis Pitas. Digital image processing algorithms and applications. John Wiley & Sons, 2000. 3, 5 \n[33] Boris T Polyak and Anatoli B Juditsky. Acceleration of stochastic approximation by averaging. SIAM journal on control and optimization, 30(4):838–855, 1992. 6 \n[34] Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Dollár. Designing network design spaces. In CVPR, 2020. 7, 8 \n[35] Yongming Rao, Wenliang Zhao, Benlin Liu, Jiwen Lu, Jie Zhou, and Cho-Jui Hsieh. Dynamicvit: Efficient vision transformers with dynamic token sparsification. In NeurIPS, 2021. 1 \n[36] Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In ICML, pages 5389–5400. PMLR, 2019. 9, 10 \n[37] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In ICML, pages 6105–6114. PMLR, 2019. 8 \n[38] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, et al. Mlp-mixer: An all-mlp architecture for vision. arXiv preprint arXiv:2105.01601, 2021. 1, 3, 4, 5 \n[39] Hugo Touvron, Piotr Bojanowski, Mathilde Caron, Matthieu Cord, Alaaeldin El-Nouby, Edouard Grave, Armand Joulin, Gabriel Synnaeve, Jakob Verbeek, and Hervé Jégou. Resmlp: Feedforward networks for image classification with data-efficient training. arXiv preprint arXiv:2105.03404, 2021. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 \n[40] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877, 2020. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 \n[41] Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper with image transformers. arXiv preprint arXiv:2103.17239, 2021. 3, 5 \n[42] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, pages 5998–6008, 2017. 1 \n[43] Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions, 2021. 6, 7, 8 \n[44] Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. arXiv preprint arXiv:2103.15808, 2021. 3 \n[45] Saining Xie, Ross Girshick, Piotr Dollár, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, pages 1492–1500, 2017. 10 \n[46] Yanchao Yang and Stefano Soatto. Fda: Fourier domain adaptation for semantic segmentation. In CVPR, pages 4085–4095, 2020. 3 \n[47] Xumin Yu, Yongming Rao, Ziyi Wang, Zuyan Liu, Jiwen Lu, and Jie Zhou. Pointr: Diverse point cloud completion with geometry-aware transformers. In ICCV, 2021. 1 \n[48] Li Yuan, Yunpeng Chen, Tao Wang, Weihao Yu, Yujun Shi, Zihang Jiang, Francis EH Tay, Jiashi Feng, and Shuicheng Yan. Tokens-to-token vit: Training vision transformers from scratch on imagenet. arXiv preprint arXiv:2101.11986, 2021. 3 \n[49] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840, 2020. 1, 3 \n[50] Zhun Zhong, Liang Zheng, Guoliang Kang, Shaozi Li, and Yi Yang. Random erasing data ",
|
| 953 |
+
"bbox": [
|
| 954 |
+
171,
|
| 955 |
+
39,
|
| 956 |
+
828,
|
| 957 |
+
919
|
| 958 |
+
],
|
| 959 |
+
"page_idx": 10
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"type": "text",
|
| 963 |
+
"text": "",
|
| 964 |
+
"bbox": [
|
| 965 |
+
169,
|
| 966 |
+
47,
|
| 967 |
+
828,
|
| 968 |
+
919
|
| 969 |
+
],
|
| 970 |
+
"page_idx": 11
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"type": "text",
|
| 974 |
+
"text": "",
|
| 975 |
+
"bbox": [
|
| 976 |
+
171,
|
| 977 |
+
88,
|
| 978 |
+
828,
|
| 979 |
+
577
|
| 980 |
+
],
|
| 981 |
+
"page_idx": 12
|
| 982 |
+
},
|
| 983 |
+
{
|
| 984 |
+
"type": "text",
|
| 985 |
+
"text": "augmentation. In AAAI, volume 34, pages 13001–13008, 2020. 6 ",
|
| 986 |
+
"bbox": [
|
| 987 |
+
174,
|
| 988 |
+
560,
|
| 989 |
+
823,
|
| 990 |
+
589
|
| 991 |
+
],
|
| 992 |
+
"page_idx": 12
|
| 993 |
+
},
|
| 994 |
+
{
|
| 995 |
+
"type": "text",
|
| 996 |
+
"text": "Checklist ",
|
| 997 |
+
"text_level": 1,
|
| 998 |
+
"bbox": [
|
| 999 |
+
174,
|
| 1000 |
+
614,
|
| 1001 |
+
254,
|
| 1002 |
+
630
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 12
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "1. For all authors... ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
214,
|
| 1011 |
+
641,
|
| 1012 |
+
339,
|
| 1013 |
+
655
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 12
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 5. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] We develop a general framework for image classification in this paper. Our model is not for specific applications. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
238,
|
| 1022 |
+
660,
|
| 1023 |
+
825,
|
| 1024 |
+
777
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 12
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "2. If you are including theoretical results... ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
214,
|
| 1033 |
+
781,
|
| 1034 |
+
493,
|
| 1035 |
+
796
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 12
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "(a) Did you state the full set of assumptions of all theoretical results? [N/A] (b) Did you include complete proofs of all theoretical results? [N/A] ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
236,
|
| 1044 |
+
799,
|
| 1045 |
+
738,
|
| 1046 |
+
830
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 12
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "3. If you ran experiments... ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
212,
|
| 1055 |
+
835,
|
| 1056 |
+
393,
|
| 1057 |
+
849
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 12
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "(a) Did you include the code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL)? [Yes] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] We follow the common practice used in our baseline methods, where no error bars are reported. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See our implementation details in the experiment part. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
238,
|
| 1066 |
+
853,
|
| 1067 |
+
825,
|
| 1068 |
+
911
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 12
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
238,
|
| 1077 |
+
92,
|
| 1078 |
+
825,
|
| 1079 |
+
178
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 13
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
210,
|
| 1088 |
+
181,
|
| 1089 |
+
823,
|
| 1090 |
+
196
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 13
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [No] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
238,
|
| 1099 |
+
200,
|
| 1100 |
+
823,
|
| 1101 |
+
308
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 13
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
212,
|
| 1110 |
+
311,
|
| 1111 |
+
705,
|
| 1112 |
+
327
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 13
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
|
| 1119 |
+
"bbox": [
|
| 1120 |
+
238,
|
| 1121 |
+
330,
|
| 1122 |
+
826,
|
| 1123 |
+
420
|
| 1124 |
+
],
|
| 1125 |
+
"page_idx": 13
|
| 1126 |
+
}
|
| 1127 |
+
]
|
parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/K_Mnsw5VoOW/K_Mnsw5VoOW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1eALyrYDH/S1eALyrYDH.md
ADDED
|
@@ -0,0 +1,484 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RNA SECONDARY STRUCTURE PREDICTION BY LEARNING UNROLLED ALGORITHMS
|
| 2 |
+
|
| 3 |
+
Xinshi Chen1∗, $\mathbf { Y } \mathbf { u } \mathbf { L i } ^ { 2 * }$ , Ramzan Umarov2, Xin Gao2,†, Le Song1,3,†
|
| 4 |
+
|
| 5 |
+
1Georgia Tech 2KAUST 3Ant Financial
|
| 6 |
+
xinshi.chen@gatech.edu
|
| 7 |
+
{yu.li;ramzan.umarov;xin.gao}@kaust.edu.sa
|
| 8 |
+
lsong@cc.gatech.edu
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
In this paper, we propose an end-to-end deep learning model, called E2Efold, for RNA secondary structure prediction which can effectively take into account the inherent constraints in the problem. The key idea of E2Efold is to directly predict the RNA base-pairing matrix, and use an unrolled algorithm for constrained programming as the template for deep architectures to enforce constraints. With comprehensive experiments on benchmark datasets, we demonstrate the superior performance of E2Efold: it predicts significantly better structures compared to previous SOTA (especially for pseudoknotted structures), while being as efficient as the fastest algorithms in terms of inference time.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
Ribonucleic acid (RNA) is a molecule playing essential roles in numerous cellular processes and regulating expression of genes (Crick, 1970). It consists of an ordered sequence of nucleotides, with each nucleotide containing one of four bases: Adenine $( A )$ , Guanine $( G )$ , Cytosine $( C )$ and Uracile $( U )$ . This sequence of bases can be represented as
|
| 17 |
+
|
| 18 |
+
$$
|
| 19 |
+
\pmb { x } : = ( x _ { 1 } , \ldots , x _ { L } ) \mathrm { w h e r e } x _ { i } \in \{ A , G , C , U \} ,
|
| 20 |
+
$$
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: Graph and matrix representations of RNA secondary structure.
|
| 24 |
+
|
| 25 |
+
which is known as the primary structure of RNA. The bases can bond with one another to form a set of base-pairs, which defines the secondary structure. A secondary structure can be represented by a binary matrix $A ^ { * }$ where $A _ { i j } ^ { * } = 1$ if the $i , j$ -th bases are paired (Fig 1). Discovering the secondary structure of RNA is important for understanding functions of RNA since the structure essentially affects the interaction and reaction between RNA and other cellular components. Although secondary structure can be determined by experimental assays (e.g. X-ray diffraction), it is slow, expensive and technically challenging. Therefore, computational prediction of RNA secondary structure becomes an important task in RNA research and is useful in many applications such as drug design (Iorns et al., 2007).
|
| 26 |
+
|
| 27 |
+
Research on computational prediction of RNA secondary structure from knowledge of primary structure has been carried out for decades. Most existing methods assume the secondary structure is a result of energy minimization, i.e., $A ^ { * } = \arg \operatorname* { m i n } _ { A } E _ { \pmb { x } } ( A )$ . The energy function is either estimated by physics-based thermodynamic experiments (Lorenz et al., 2011; Bellaousov et al., 2013; Markham & Zuker, 2008) or learned from data (Do et al.,
|
| 28 |
+
|
| 29 |
+

|
| 30 |
+
Figure 2: Nested and non-nested structures.
|
| 31 |
+
|
| 32 |
+
2006). These approaches are faced with a common problem that the search space of all valid secondary structures is exponentially-large with respect to the length $L$ of the sequence. To make the minimization tractable, it is often assumed the base-pairing has a nested structure (Fig 2 left), and the energy function factorizes pairwisely. With this assumption, dynamic programming (DP) based algorithms can iteratively find the optimal structure for subsequences and thus consider an enormous number of structures in time $\mathcal { O } ( L ^ { 3 } )$ .
|
| 33 |
+
|
| 34 |
+
Although DP-based algorithms have dominated RNA structure prediction, it is notable that they restrict the search space to nested structures, which excludes some valid yet biologically important RNA secondary structures that contain ‘pseudoknots’, i.e., elements with at least two non-nested base-pairs (Fig 2 right). Pseudoknots make up roughly $1 . 4 \%$ of base-pairs (Mathews & Turner, 2006), and are overrepresented in functionally important regions (Hajdin et al., 2013; Staple & Butcher, 2005). Furthermore, pseudoknots are present in around $40 \%$ of the RNAs. They also assist folding into 3D structures (Fechter et al., 2001) and thus should not be ignored. To predict RNA structures with pseudoknots, energy-based methods need to run more computationally intensive algorithms to decode the structures.
|
| 35 |
+
|
| 36 |
+
In summary, in the presence of more complex structured output (i.e., pseudoknots), it is challenging for energy-based approaches to simultaneously take into account the complex constraints while being efficient. In this paper, we adopt a different viewpoint by assuming that the secondary structure is the output of a feed-forward function, i.e., $A ^ { * } = { \mathcal { F } } _ { \theta } ( { \pmb x } )$ , and propose to learn $\theta$ from data in an end-to-end fashion. It avoids the second minimization step needed in energy function based approach, and does not require the output structure to be nested. Furthermore, the feed-forward model can be fitted by directly optimizing the loss that one is interested in.
|
| 37 |
+
|
| 38 |
+
Despite the above advantages of using a feed-forward model, the architecture design is challenging. To be more concrete, in the RNA case, $\mathcal { F } _ { \theta }$ is difficult to design for the following reasons:
|
| 39 |
+
|
| 40 |
+
(i) RNA secondary structure needs to obey certain hard constraints (see details in Section 3), which means certain kinds of pairings cannot occur at all (Steeg, 1993). Ideally, the output of $\mathcal { F } _ { \theta }$ needs to satisfy these constraints.
|
| 41 |
+
(ii) The number of RNA data points is limited, so we cannot expect that a naive fully connected network can learn the predictive information and constraints directly from data. Thus, inductive biases need to be encoded into the network architecture.
|
| 42 |
+
(iii) One may take a two-step approach, where a post-processing step can be carried out to enforce the constraints when $\mathcal { F } _ { \theta }$ predicts an invalid structure. However, in this design, the deep network trained in the first stage is unaware of the post-processing stage, making less effective use of the potential prior knowledge encoded in the constraints.
|
| 43 |
+
|
| 44 |
+
In this paper, we present an end-to-end deep learning solution which integrates the two stages. The first part of the architecture is a transformer-based deep model called Deep Score Network which represents sequence information useful for structure prediction. The second part is a multilayer network called Post-Processing Network which gradually enforces the constraints and restrict the output space. It is designed based on an unrolled algorithm for solving a constrained optimiza-tion. These two networks are coupled together and learned jointly in an end-to-end fashion. Therefore, we call our model E2Efold.
|
| 45 |
+
|
| 46 |
+

|
| 47 |
+
Figure 3: Output space of E2Efold.
|
| 48 |
+
|
| 49 |
+
By using an unrolled algorithm as the inductive bias to design Post-Processing Network, the output space of E2Efold is constrained (illustrated in Fig 3), which makes it easier to learn a good model in the case of limited data and also reduces the overfitting issue. Yet, the constraints encoded in E2Efold are flexible enough such that pseudoknots are not excluded. In summary, E2Efold strikes a nice balance between model biases for learning and expressiveness for valid RNA structures.
|
| 50 |
+
|
| 51 |
+
We conduct extensive experiments to compare E2Efold with state-of-the-art (SOTA) methods on several RNA benchmark datasets, showing superior performance of E2Efold including:
|
| 52 |
+
|
| 53 |
+
• being able to predict valid RNA secondary structures including pseudoknots;
|
| 54 |
+
• running as efficient as the fastest algorithm in terms of inference time;
|
| 55 |
+
• producing structures that are visually close to the true structure;
|
| 56 |
+
• better than previous SOTA in terms of F1 score, precision and recall.
|
| 57 |
+
|
| 58 |
+
Although in this paper we focus on RNA secondary structure prediction, which presents an important and concrete problem where E2Efold leads to significant improvements, our method is generic and can be applied to other problems where constraints need to be enforced or prior knowledge is provided. We imagine that our design idea of learning unrolled algorithm to enforce constraints can also be transferred to problems such as protein folding and natural language understanding problems (e.g., building correspondence structure between different parts in a document).
|
| 59 |
+
|
| 60 |
+
# 2 RELATED WORK
|
| 61 |
+
|
| 62 |
+
Classical RNA folding methods identify candidate structures for an RNA sequence energy minimization through DP and rely on thousands of experimentally-measured thermodynamic parameters. A few widely used methods such as RNAstructure (Bellaousov et al., 2013), Vienna RNAfold (Lorenz et al., 2011) and UNAFold (Markham & Zuker, 2008) adpoted this approach. These methods typically scale as $\mathcal { O } ( L ^ { 3 } )$ in time and $\mathcal { O } ( L ^ { 2 } )$ in storage (Mathews, 2006), making them slow for long sequences. A recent advance called LinearFold (Huang et al., 2019) achieved linear run time ${ \mathcal { O } } ( { \bar { L } } )$ by applying beam search, but it can not handle pseudoknots in RNA structures. The prediction of lowest free energy structures with pseudoknots is NP-complete (Lyngsø & Pedersen, 2000), so pseudoknots are not considered in most algorithms. Heuristic algorithms such as HotKnots (Andronescu et al., 2010) and Probknots (Bellaousov & Mathews, 2010) have been made to predict structures with pseudoknots, but the predictive accuracy and efficiency still need to be improved.
|
| 63 |
+
|
| 64 |
+
Learning-based RNA folding methods such as ContraFold (Do et al., 2006) and ContextFold (Zakov et al., 2011) have been proposed for energy parameters estimation due to the increasing availability of known RNA structures, resulting in higher prediction accuracies, but these methods still rely on the above DP-based algorithms for energy minimization. A recent deep learning model, CDPfold (Zhang et al., 2019), applied convolutional neural networks to predict base-pairings, but it adopts the dot-bracket representation for RNA secondary structure, which can not represent pseudoknotted structures. Moreover, it requires a DP-based post-processing step whose computational complexity is prohibitive for sequences longer than a few hundreds.
|
| 65 |
+
|
| 66 |
+
Learning with differentiable algorithms is a useful idea that inspires a series of works (Hershey et al., 2014; Belanger et al., 2017; Ingraham et al., 2018; Chen et al., 2018; Shrivastava et al., 2019), which shared similar idea of using differentiable unrolled algorithms as a building block in neural architectures. Some models are also applied to structured prediction problems (Hershey et al., 2014; Pillutla et al., 2018; Ingraham et al., 2018), but they did not consider the challenging RNA secondary structure problem or discuss how to properly incorporating constraints into the architecture. OptNet (Amos & Kolter, 2017) integrates constraints by differentiating KKT conditions, but it has cubic complexity in the number of variables and constraints, which is prohibitive for the RNA case.
|
| 67 |
+
|
| 68 |
+
Dependency parsing in NLP is a different but related problem to RNA folding. It predicts the dependency between the words in a sentence. Similar to nested/non-nested structures, the corresponding terms in NLP are projective/non-projective parsing, where most works focus on the former and DP-based inference algorithms are commonly used (McDonald et al., 2005). Deep learning models (Dozat & Manning, 2016; Kiperwasser & Goldberg, 2016) are proposed to proposed to score the dependency between words, which has a similar flavor to the Deep Score Network in our work.
|
| 69 |
+
|
| 70 |
+
# 3 RNA SECONDARY STRUCTURE PREDICTION PROBLEM
|
| 71 |
+
|
| 72 |
+
In the RNA secondary structure prediction problem, the input is the ordered sequence of bases $\pmb { x } = ( x _ { 1 } , \dots , x _ { L } )$ and the output is the RNA secondary structure represented by a matrix $A ^ { * } \in$ $\{ 0 , 1 \} ^ { L \times L }$ . Hard constraints on the forming of an RNA secondary structure dictate that certain kinds of pairings cannot occur at all (Steeg, 1993). Formally, these constraints are:
|
| 73 |
+
|
| 74 |
+
<table><tr><td>i)(</td><td>Only three types of nucleotides combinations, B := {AU, UA}U {GC,CG} U {GU,UG},can form base-pairs.</td><td>Vi,j,if xixj B, then Aij = 0.</td></tr><tr><td>(ii) No sharp loops are allowed.</td><td></td><td>∀|i-jl<4,Aij = 0. ,∑=1Aij ≤1.</td></tr><tr><td></td><td>(iii) There is no overlap of pairs,i.e.,it is a matching.</td><td></td></tr></table>
|
| 75 |
+
|
| 76 |
+
(i) and (ii) prevent pairing of certain base-pairs based on their types and relative locations. Incorporating these two constraints can help the model exclude lots of illegal pairs. (iii) is a global constraint among the entries of $A ^ { * }$ .
|
| 77 |
+
|
| 78 |
+
The space of all valid secondary structures contains all symmetric matrices $A \in \{ 0 , 1 \} ^ { L \times L }$ that satisfy the above three constraints. This space is much smaller than the space of all binary matrices $\{ 0 , 1 \} ^ { L \times L }$ . Therefore, if we could incorporate these constraints in our deep model, the reduced output space could help us train a better predictive model with less training data. We do this by using an unrolled algorithm as the inductive bias to design deep architecture.
|
| 79 |
+
|
| 80 |
+
# 4 E2EFOLD: DEEP LEARNING MODEL BASED ON UNROLLED ALGORITHM
|
| 81 |
+
|
| 82 |
+
In the literature on feed-forward networks for structured prediction, most models are designed using traditional deep learning architectures. However, for RNA secondary structure prediction, directly using these architectures does not work well due to the limited amount of RNA data points and the hard constraints on forming an RNA secondary structure. These challenges motivate the design of our E2Efold deep model, which combines a Deep Score Network with a Post-Processing Network based on an unrolled algorithm for solving a constrained optimization problem.
|
| 83 |
+
|
| 84 |
+
# 4.1 DEEP SCORE NETWORK
|
| 85 |
+
|
| 86 |
+
The first part of E2Efold is a Deep Score Network $U _ { \theta } ( { \pmb x } )$ whose output is an $L \times L$ symmetric matrix. Each entry of this matrix, i.e., $U _ { \theta } ( { \pmb x } ) _ { i j }$ , indicates the score of nucleotides $x _ { i }$ and $x _ { j }$ being paired. The $_ { \textbf { \em x } }$ input to the network here is the $L \times 4$ dimensional one-hot embedding. The specific architecture of $U _ { \theta }$ is shown in $\operatorname { F i g } 4$ . It mainly consists of
|
| 87 |
+
|
| 88 |
+
• a position embedding matrix $_ { P }$ which distinguishes $\{ x _ { i } \} _ { i = 1 } ^ { L }$ by their exact and relative positions: $P _ { i } = \mathrm { M L P } \big ( \psi _ { 1 } ( i ) , \ldots , \psi _ { \ell } ( i ) , \psi _ { \ell + 1 } ( i / L ) , \ldots , \psi _ { n } ( i / L ) \big )$ , where $\{ \psi _ { j } \}$ is a set of $n$ feature maps such as $\sin ( \cdot ) , \mathrm { p o l y } ( \cdot )$ , sigmoid $( \cdot )$ , etc, and $\mathrm { \mathbf { M L P } ( \cdot ) }$ denotes multi-layer perceptions. Such position embedding idea has been used in natural language modeling such as BERT (Devlin et al., 2018), but we adapted for RNA sequence representation;
|
| 89 |
+
• a stack of Transformer Encoders (Vaswani et al., 2017) which encode the sequence information and the global dependency between nucleotides;
|
| 90 |
+
• a 2D Convolution layers (Wang et al., 2017) for outputting the pairwise scores.
|
| 91 |
+
|
| 92 |
+
With the representation power of neural networks, the hope is that we can learn an informative $U _ { \theta }$ such that higher scoring entries in $U _ { \theta } ( { \pmb x } )$ correspond well to actual paired bases in RNA structure. Once the score matrix $U _ { \theta } ( { \pmb x } )$ is computed, a naive approach to use it is to choose an offset term $s \in \mathbb { R }$ (e.g., $s = 0$ ) and let $A _ { i j } ~ = ~ 1$ if $U _ { \theta } ( { \pmb x } ) _ { i j } ~ > ~ s$ . However, such entry-wise independent predictions of $A _ { i j }$ may result in a matrix $A$ that violates the constraints for a valid RNA secondary structure. Therefore, a postprocessing step is needed to make sure the predicted $A$ is valid. This step could be carried out separately after $U _ { \theta }$ is learned. But such decoupling of base-pair scoring and post-processing for constraints may lead to sub-optimal results, where the errors in these two stages can not be considered together and tuned together. Instead, we will introduce a Post-Processing Network which can be trained end-to-end together with $U _ { \theta }$ to enforce the constraints.
|
| 93 |
+
|
| 94 |
+
# 4.2 POST-PROCESSING NETWORK
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 4: Architecture of Deep Score Network.
|
| 98 |
+
|
| 99 |
+
The second part of E2Efold is a Post-Processing Network $\mathrm { P P } _ { \phi }$ which is an unrolled and parameterized algorithm for solving a constrained optimization prob
|
| 100 |
+
|
| 101 |
+
lem. We first present how we formulate the post-processing step as a constrained optimization problem and the algorithm for solving it. After that, we show how we use the algorithm as a template to design deep architecture $\mathrm { P P } _ { \phi }$ .
|
| 102 |
+
|
| 103 |
+
# 4.2.1 POST-PROCESSING WITH CONSTRAINED OPTIMIZATION
|
| 104 |
+
|
| 105 |
+
Formulation of constrained optimization. Given the scores predicted by $U _ { \theta } ( { \pmb x } )$ , we define the total score $\begin{array} { r } { \frac 1 2 \sum _ { i , j } ( U _ { \theta } ( \pmb { x } ) _ { i j } - s ) \hat { \textmd { A } } _ { i j } } \end{array}$ as the objective to maximize, where $s$ is an offset term. Clearly, without structure constraints, the optimal solution is to take $A _ { i j } = 1$ when $U _ { \theta } ( { \pmb x } ) _ { i j } > s$ . Intuitively, the objective measures the covariation between the entries in the scoring matrix and the $A$ matrix. With constraints, the exact maximization becomes intractable. To make it tractable, we consider a convex relaxation of this discrete optimization to a continuous one by allowing $A _ { i j } ~ \in ~ [ 0 , 1 ]$ . Consequently, the solution space that we consider to optimize over is $\begin{array} { r l } { A ( \pmb { x } ) } & { { } : = } \end{array}$ $\{ A \in [ 0 , 1 ] ^ { L \times L } \mid A$ is symmetric and satisfies constraints (i)-(iii) in Section $3 \}$ .
|
| 106 |
+
|
| 107 |
+
To further simplify the search space, we define a nonlinear transformation $\tau$ on $\mathbb { R } ^ { L \times L }$ as $\mathcal { T } ( \hat { A } ) : =$ $\begin{array} { r } { \frac { 1 } { 2 } \left( \hat { A } \circ \hat { A } + ( \hat { A } \circ \hat { A } ) ^ { \top } \right) \circ M ( { \pmb x } ) } \end{array}$ , where $\circ$ denotes element-wise multiplication. Matrix $M$ is defined as $M ( { \pmb x } ) _ { i j } : = 1$ if $x _ { i } x _ { j } \in B$ and also $| i - j | \geq 4$ , and $M ( { \pmb x } ) _ { i j } : = 0$ otherwise. From this definition we can see that $M ( { \pmb x } )$ encodes both constraint (i) and (ii). With transformation $\tau$ , the resulting matrix is non-negative, symmetric, and satisfies constraint (i) and (ii). Hence, by defining $A : = { \mathcal { T } } ( { \hat { A } } )$ , the solution space is simplified as $\mathcal { A } ( \pmb { x } ) = \{ A = \mathcal { T } ( \hat { A } ) \ | \ \hat { A } \in \mathbb { R } ^ { L \times L } , A \mathbf { 1 } \leq \mathbf { 1 } \}$ .
|
| 108 |
+
|
| 109 |
+
Finally, we introduce a $\ell _ { 1 }$ penalty term $\begin{array} { r } { \| \hat { A } \| _ { 1 } : = \sum _ { i , j } | \hat { A } _ { i j } | } \end{array}$ to make $A$ sparse and formulate the post-processing step as: $\langle \cdot , \cdot \rangle$ denotes matrix inner product, i.e., sum of entry-wise multiplication)
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\begin{array} { r } { \operatorname* { m a x } _ { \hat { A } \in \mathbb { R } ^ { L \times L } } \frac { 1 } { 2 } \left. U _ { \theta } ( \pmb { x } ) - s , A : = \mathcal { T } ( \hat { A } ) \right. - \rho \| \hat { A } \| _ { 1 } \quad \mathrm { s . t . } ~ A \mathbf { 1 } \leq \mathbf { 1 } } \end{array}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
The advantages of this formulation are that the variables ${ \hat { A } } _ { i j }$ are free variables in $\mathbb { R }$ and there are only $L$ inequality constraints $A \mathbf { 1 } \leq \mathbf { 1 }$ . This system of linear inequalities can be replaced by a set of nonlinear equalities $\operatorname { r e l u } ( A \mathbf { 1 } - \mathbf { 1 } ) = \mathbf { 0 }$ so that the constrained problem can be easily transformed into an unconstrained problem by introducing a Lagrange multiplier $\lambda \in \mathbb { R } _ { + } ^ { L }$ :
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\operatorname* { m i n } _ { \lambda \geq 0 } \operatorname* { m a x } _ { \hat { A } \in \mathbb { R } ^ { L \times L } } \underbrace { \frac { 1 } { 2 } \langle U _ { \theta } ( \pmb { x } ) - s , A \rangle - \langle \pmb { \lambda } , \mathrm { r e l u } ( A \mathbf { 1 } - \mathbf { 1 } ) \rangle } _ { f } - \rho \| \hat { A } \| _ { 1 } .
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
Algorithm for solving it. We use a primal-dual method for solving Eq. 2 (derived in Appendix B). In each iteration, $\hat { A }$ and $\boldsymbol { \lambda }$ are updated alternatively by:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
\dot { A } _ { t + 1 } \gets \hat { A } _ { t } + \alpha \cdot \gamma _ { \alpha } ^ { t } \cdot \hat { A } _ { t } \circ M ( { \pmb x } ) \circ \Big ( \partial f / \partial A _ { t } + ( \partial f / \partial A _ { t } ) ^ { \top } \Big ) ,
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
where $\alpha$ , $\beta$ are step sizes and $\gamma _ { \alpha } , \gamma _ { \beta }$ are decaying coefficients. When it converges at $T$ , an approximate solution $R o u n d \big ( A _ { T } = \mathcal { T } ( \hat { A } _ { T } ) \big )$ is obtained. With this algorithm operated on the learned $U _ { \theta } ( { \pmb x } )$ , even if this step is disconnected to the training phase of $U _ { \theta } ( { \pmb x } )$ , the final prediction works much better than many other existing methods (as reported in Section 6). Next, we introduce how to couple this post-processing step with the training of $U _ { \theta } ( { \pmb x } )$ to further improve the performance.
|
| 128 |
+
|
| 129 |
+
# 4.2.2 POST-PROCESSING NETWORK VIA AN UNROLLED ALGORITHM
|
| 130 |
+
|
| 131 |
+
We design a Post-Processing Network, denoted by $\mathrm { P P } _ { \phi }$ , based on the above algorithm. After it is defined, we can connect it with the deep score network $U _ { \theta }$ and train them jointly in an end-to-end fashion, so that the training phase of $U _ { \theta } ( { \pmb x } )$ is aware of the post-processing step.
|
| 132 |
+
|
| 133 |
+
# Algorithm 1: Post-Processing Network $\mathrm { P P } _ { \phi } ( U , M )$
|
| 134 |
+
|
| 135 |
+
# Algorithm 2: Neural Cell PPcellφ
|
| 136 |
+
|
| 137 |
+
The specific computation graph of $\mathrm { P P } _ { \phi }$ is given in Algorithm 1, whose main component is a recurrent cell which we call ${ \mathrm { P P c e l l } } _ { \phi }$ . The computation graph is almost the same as the iterative update from Eq. 3 to Eq. 6, except for several modifications:
|
| 138 |
+
|
| 139 |
+
• (learnable hyperparameters) The hyperparameters including step sizes $\alpha , \beta$ , decaying rate $\gamma _ { \alpha } , \gamma _ { \beta }$ , sparsity coefficient $\rho$ and the offset term $s$ are treated as learnable parameters in $\phi$ , so that there is no need to tune the hyperparameters by hand but automatically learn them from data instead.
|
| 140 |
+
• (fixed # iterations) Instead of running the iterative updates until convergence, ${ \mathrm { P P c e l l } } _ { \phi }$ is applied recursively for $T$ iterations where $T$ is a manually fixed number. This is why in Fig 3 the output space of E2Efold is slightly larger than the true solution space. (smoothed sign function) Resulted from the gradient of $\mathrm { r e l u } ( \cdot )$ , the update step in Eq. 4 contains a $\mathrm { s i g n } ( \cdot )$ function. However, to push gradient through $\mathrm { P P } _ { \phi }$ , we require a differentiable update step. Therefore, we use a smoothed sign function defined as softsign $( c ) : = 1 / ( 1 + \exp ( - k c ) )$ , where $k$ is a temperature.
|
| 141 |
+
• (clip $\hat { A }$ ) An additional step, $\hat { A } \gets \operatorname* { m i n } ( \hat { A } , 1 )$ , is included to make the output $A _ { t }$ at each iteration stay in the range $[ 0 , 1 ] ^ { L \times L }$ . This is useful for computing the loss over intermediate results $\{ A _ { t } \} _ { t = 1 } ^ { T }$ , for which we will explain more in Section 5.
|
| 142 |
+
|
| 143 |
+
With these modifications, the Post-Processing Network $\mathrm { P P } _ { \phi }$ is a tuning-free and differentiable unrolled algorithm with meaningful intermediate outputs. Combining it with the deep score network, the final deep model is
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\mathbf { E } 2 \mathbf { E } \mathbf { f o l d : } \quad \{ A _ { t } \} _ { t = 1 } ^ { T } = \widetilde { \mathbf { P } \mathbf { P } _ { \phi } ( \mathbf { \mathscr { \textbf { \textsf { \textbf { U } } } } } \mathbf { U } _ { \theta } ( \mathbf { x } ) , \quad , M ( \mathbf { x } ) ) } .
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
# 5 END-TO-END TRAINING ALGORITHM
|
| 150 |
+
|
| 151 |
+
Given a dataset $\mathcal { D }$ containing examples of input-output pairs $( x , A ^ { * } )$ , the training procedure of E2Efold is similar to standard gradient-based supervised learning. However, for RNA secondary structure prediction problems, commonly used metrics for evaluating predictive performances are F1 score, precision and recall, which are non-differentiable.
|
| 152 |
+
|
| 153 |
+
Differentiable F1 Loss. To directly optimize these metrics, we mimic true positive (TP), false positive (FP), true negative (TN) and false negative (FN) by defining continuous functions on $[ 0 , 1 ] ^ { \hat { L } \times L }$
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
\mathrm { T P } = \langle A , A ^ { * } \rangle , \mathrm { F P } = \langle A , 1 - A ^ { * } \rangle , \mathrm { F N } = \langle 1 - A , A ^ { * } \rangle , \mathrm { T N } = \langle 1 - A , 1 - A ^ { * } \rangle .
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
Since $\mathrm { F 1 } = 2 \mathrm { T P } / ( 2 \mathrm { T P } + \mathrm { F P } + \mathrm { F N } )$ , we define a loss function to mimic the negative of F1 score as:
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\begin{array} { r } { \textstyle \mathcal { L } _ { - \mathrm { F l } } ( A , A ^ { * } ) : = - 2 \langle A , A ^ { * } \rangle / \left( 2 \langle A , A ^ { * } \rangle + \langle A , 1 - A ^ { * } \rangle + \langle 1 - A , A ^ { * } \rangle \right) . } \end{array}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
Assuming that $\textstyle \sum _ { i j } A _ { i j } ^ { * } \neq 0$ , this loss is well-defined and differentiable on $[ 0 , 1 ] ^ { L \times L }$ . Precision and recall losses can be defined in a similar way, but we optimize F1 score in this paper.
|
| 166 |
+
|
| 167 |
+
It is notable that this F1 loss takes advantages over other differentiable losses including $\ell _ { 2 }$ and cross-entropy losses, because there are much more negative samples (i.e. $A _ { i j } = 0$ ) than positive samples (i.e. $A _ { i j } = 1$ ). A hand-tuned weight is needed to balance them while using $\ell _ { 2 }$ or crossentropy losses, but F1 loss handles this issue automatically, which can be useful for a number of problems (Wang et al., 2016; Li et al., 2017).
|
| 168 |
+
|
| 169 |
+
Overall Loss Function. As noted earlier, E2Efold outputs a matrix $A _ { t } \in [ 0 , 1 ] ^ { L \times L }$ in each iteration. This allows us to add auxiliary losses to regularize the intermediate results, guiding it to learn parameters which can generate a smooth solution trajectory. More specifically, we use an objective that depends on the entire trajectory of optimization:
|
| 170 |
+
|
| 171 |
+
$$
|
| 172 |
+
\operatorname* { m i n } _ { \theta , \phi } \frac { 1 } { | \mathscr { D } | } \sum _ { ( x , A ^ { * } ) \in \mathcal { D } } \frac { 1 } { T } \sum _ { t = 1 } ^ { T } \gamma ^ { T - t } \mathcal { L } _ { - \mathrm { F } 1 } ( A _ { t } , A ^ { * } ) ,
|
| 173 |
+
$$
|
| 174 |
+
|
| 175 |
+
where $\{ A _ { t } \} _ { t = 1 } ^ { T } = \mathrm { P P } _ { \phi } ( U _ { \theta } ( \pmb { x } ) , M ( \pmb { x } ) )$ and $\gamma \leq 1$ is a discounting factor. Empirically, we find it very useful to pre-train $U _ { \theta }$ using logistic regression loss. Also, it is helpful to add this additional loss to Eq. 9 as a regularization.
|
| 176 |
+
|
| 177 |
+
# 6 EXPERIMENTS
|
| 178 |
+
|
| 179 |
+
We compare E2Efold with the SOTA and also the most commonly used methods in the RNA secondary structure prediction field on two benchmark datasets. It is revealed from the experimental results that E2Efold achieves $2 9 . 7 \%$ improvement in terms of F1 score on RNAstralign dataset and it infers the RNA secondary structure as fast as the most efficient algorithm (LinearFold) among existing ones. An ablation study is also conducted to show the necessity of pushing gradient through the post-processing step. The codes for reproducing the experimental results are released.1
|
| 180 |
+
|
| 181 |
+
Dataset. We use two benchmark datasets: (i) ArchiveII (Sloma & Mathews, 2016), containing 3975 RNA structures from 10 RNA types, is a widely used benchmark dataset for classical RNA folding methods. (ii) RNAStralign (Tan et al., 2017), composed of 37149 structures from 8 RNA types, is one of the most comprehensive collections of RNA structures in the market. After removing redundant sequences and structures, 30451 structures remain. See Table 1 for statistics about these two datasets.
|
| 182 |
+
|
| 183 |
+
Experiments On RNAStralign. We divide RNAStralign dataset into training, testing and validation sets by stratified sampling (see details in Table 7 and Fig 6), so that each set contains all RNA types. We compare the performance of E2Efold to six methods including CDPfold, LinearFold, Mfold, RNAstructure (ProbKnot), RNAfold and CONTRAfold. Both E2Efold and CDPfold are learned from the same training/validation sets. For other methods, we directly use the provided packages or web-servers to generate predicted structures. We evaluate the F1 score, Precision and Recall for each sequence in the test set. Averaged values are reported in Table 2. As suggested by Mathews (2019), for a base pair $( i , j )$ , the following predictions are also considered as correct: $( i + 1 , j )$ , $( i - 1 , j )$ , $( i , j + 1 )$ , $( i , j - 1 )$ , so we also reported the metrics when one-position shift is allowed.
|
| 184 |
+
|
| 185 |
+
Table 1: Dataset Statistics
|
| 186 |
+
|
| 187 |
+
<table><tr><td rowspan="2">Type</td><td colspan="2">ArchiveII</td><td colspan="2">RNAStralign</td></tr><tr><td>length</td><td>#samples</td><td>length #samples</td><td></td></tr><tr><td>All</td><td>28~2968</td><td>3975</td><td>30~1851</td><td>30451 11620</td></tr><tr><td>16SrRNA 5SrRNA</td><td>73~1995 102~135</td><td>110 1283</td><td>54~1851 104~132</td><td>9385</td></tr><tr><td>tRNA</td><td>54~93</td><td>557</td><td>59~95</td><td>6443</td></tr><tr><td>grp1</td><td>210~736</td><td>98</td><td>163~615</td><td>1502</td></tr><tr><td>SRP</td><td>28~533</td><td>928</td><td>30~553</td><td>468</td></tr><tr><td>tmRNA</td><td>102~437</td><td>462</td><td>102~437</td><td>572</td></tr><tr><td>RNaseP</td><td>120~486</td><td>454</td><td></td><td>434</td></tr><tr><td></td><td></td><td></td><td>189~486</td><td></td></tr><tr><td></td><td>telomerase 382~559</td><td>37</td><td>382~559</td><td>37</td></tr><tr><td>23SrRNA 242~2968</td><td></td><td>35</td><td></td><td>=</td></tr><tr><td>grp2</td><td>619~780</td><td>11</td><td>-</td><td>=</td></tr></table>
|
| 188 |
+
|
| 189 |
+
Table 2: Results on RNAStralign test set. “(S)” indicates the results when one-position shift is allowed.
|
| 190 |
+
|
| 191 |
+
<table><tr><td>Method</td><td>Prec</td><td>Rec</td><td>F1</td><td>Prec(S) Rec(S) F1(S)</td></tr><tr><td>E2Efold</td><td>0.866</td><td>0.788</td><td>0.821</td><td>0.880 0.798 0.833</td></tr><tr><td>CDPfold</td><td>0.633</td><td>0.597</td><td>0.614</td><td>0.720 0.677 0.697</td></tr><tr><td>LinearFold</td><td>0.620</td><td>0.606</td><td>0.609</td><td>0.635 0.622 0.624</td></tr><tr><td>Mfold</td><td>0.450</td><td>0.398</td><td>0.420</td><td>0.463 0.409 0.433</td></tr><tr><td>RNAstructure</td><td>0.537</td><td>0.568</td><td>0.550</td><td>0.559 0.592 0.573</td></tr><tr><td>RNAfold</td><td>0.516 0.568</td><td></td><td>0.540</td><td>0.533 0.587 0.558</td></tr><tr><td>CONTRAfold</td><td>0.608</td><td>:0.663</td><td>0.633</td><td>0.624 0.681 0.650</td></tr></table>
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 5: Distribution of F1 score.
|
| 195 |
+
|
| 196 |
+
As shown in Table 2, traditional methods can achieve a F1 score ranging from 0.433 to 0.624, which is consistent with the performance reported with their original papers. The two learning-based methods, CONTRAfold and CDPfold, can outperform classical methods with reasonable margin on some criteria. E2Efold, on the other hand, significantly outperforms all previous methods across all criteria, with at least $20 \%$ improvement. Notice that, for almost all the other methods, the recall is usually higher than precision, while for E2Efold, the precision is higher than recall. That can be the result of incorporating constraints during neural network training. Fig 5 shows the distributions of F1 scores for each method. It suggests that E2Efold has consistently good performance.
|
| 197 |
+
|
| 198 |
+
To estimate the performance of E2Efold on long sequences, we also compute the F1 scores weighted by the length of sequences, such that the results are more dominated by longer sequences. Detailed results are given in Appendix D.3.
|
| 199 |
+
|
| 200 |
+
Table 3: Performance comparison on ArchiveII
|
| 201 |
+
|
| 202 |
+
<table><tr><td>Method</td><td>Prec</td><td>Rec</td><td>F1</td><td>Prec(S) Rec(S)</td><td>F1(S)</td></tr><tr><td>E2Efold</td><td>0.734</td><td>0.66</td><td>0.686</td><td>0.758</td><td>0.676 0.704</td></tr><tr><td>CDPfold</td><td>0.557</td><td>0.535</td><td>0.545</td><td>0.612 0.585</td><td>0.597</td></tr><tr><td>LinearFold</td><td>0.641</td><td>0.617</td><td>0.621</td><td>0.668 0.644</td><td>0.647</td></tr><tr><td>Mfold</td><td>0.428</td><td>0.383</td><td>0.401</td><td>0.450 0.403</td><td>0.421</td></tr><tr><td>RNAstructure</td><td>0.563</td><td>0.615</td><td>0.585</td><td>0.590 0.645</td><td>0.613</td></tr><tr><td>RNAfold</td><td>0.565</td><td>0.627</td><td>0.592</td><td>0.586</td><td>0.652 0.615</td></tr><tr><td>CONTRAfold</td><td>0.607</td><td>0.679</td><td>0.638</td><td>0.629</td><td>0.705 0.662</td></tr></table>
|
| 203 |
+
|
| 204 |
+
Table 4: Inference time on RNAStralign
|
| 205 |
+
|
| 206 |
+
<table><tr><td>Method</td><td>total run time time per seq</td></tr><tr><td>E2Efold (Pytorch)</td><td>19m (GPU) 0.40s</td></tr><tr><td>CDPfold (Pytorch)</td><td>440m*32 threads 300.107s</td></tr><tr><td>LinearFold (C)</td><td>20m 0.43s</td></tr><tr><td>Mfold (C)</td><td>360m 7.65s</td></tr><tr><td>RNAstructure (C) 3 days</td><td>142.02s</td></tr><tr><td>RNAfold (C)</td><td>26m 0.55s</td></tr><tr><td>CONTRAfold (C)</td><td>1 day 30.58s</td></tr></table>
|
| 207 |
+
|
| 208 |
+
Test On ArchiveII Without Re-training. To mimic the real world scenario where the users want to predict newly discovered RNA’s structures which may have a distribution different from the training dataset, we directly test the model learned from RNAStralign training set on the ArchiveII dataset, without re-training the model. To make the comparison fair, we exclude sequences that are overlapped with the RNAStralign dataset. We then test the model on sequences in ArchiveII that have overlapping RNA types (5SrRNA, 16SrRNA, etc) with the RNAStralign dataset. Results are shown in Table 3. It is understandable that the performances of classical methods which are not learningbased are consistent with that on RNAStralign. The performance of E2Efold, though is not as good as that on RNAStralign, is still better than all the other methods across different evaluation criteria. In addition, since the original ArchiveII dataset contains domain sequences (subsequences), we remove the domains and report the results in Appendix D.4, which are similar to results in Table 3.
|
| 209 |
+
|
| 210 |
+
Inference Time Comparison. We record the running time of all algorithms for predicting RNA secondary structures on the RNAStralign test set, which is summarized in Table 4. LinearFold is the most efficient among baselines because it uses beam pruning heuristic to accelerate DP. CDPfold, which achieves higher F1 score than other baselines, however, is extremely slow due to its DP post-processing step. Since we use a gradient-based algorithm which is simple to design the PostProcessing Network, E2Efold is fast. On GPU, E2Efold has similar inference time as LinearFold.
|
| 211 |
+
|
| 212 |
+
Pseudoknot Prediction. Even though E2Efold does not exclude pseudoknots, it is not sure whether it actually generates pseudoknotted structures. Therefore, we pick all sequences containing pseudoknots and compute the averaged F1 score only on this set. Besides, we count the number of pseudoknotted sequences that are predicted as pseudoknotted and report this count as true positive (TP). Similarly we report TN, F and FN in Table 5 along with the F1 score. Most tools exclude pseudoknots while RNAstructure i the most famous one that can predict pseudoknots, so we choose it for comparison.
|
| 213 |
+
|
| 214 |
+
Table 5: Evaluation of pseudoknot prediction
|
| 215 |
+
|
| 216 |
+
<table><tr><td>Method</td><td>SetF1 TP FP TN FN</td></tr><tr><td>E2Efold</td><td>0.710 )1312 242 1271 0</td></tr><tr><td></td><td></td></tr><tr><td>RNAstructure 0.472</td><td>1248 307 983 286</td></tr></table>
|
| 217 |
+
|
| 218 |
+

|
| 219 |
+
|
| 220 |
+
Visualization. We visualize predicted structures of three RNA sequences in the main text. More examples are provided in appendix (Fig 8 to 14). In these figures, purple lines indicate edges of pseudoknotted elements. Although CDPfold has higher F1 score than other basetrue structurelines, its predictions are visually far from the groundtruth. Instead, RNAstructure and CONTRAfold produce comparatively more reasonable visualizations among all baselines, so we compare with them. These two methods can capture a rough sketch of the structure, but not good enough. For most cases, E2Efold produces structures most similar to the ground-truths. Moreover, it works surprisingly well for some RNA sequences that are long and very difficult to predict.
|
| 221 |
+
|
| 222 |
+

|
| 223 |
+
|
| 224 |
+
Ablation Study. To exam whether integrating the two stages by pushing gradient through the postprocess is necessary for performance of E2Efold, we conduct an ablation study (Table 6). We test the performance when the post-processing step is disconnected with the training of Deep Score Network $U _ { \theta }$ . We apply the post-processing step (i.e., for solving augmented Lagrangian) after $U _ { \theta }$ is learned (thus the notation $ { ^ { \circ } U _ { \theta } } + { \operatorname { P P } } ^ { \beta }$ in Table 6). Although $\mathbf { \cdots } U _ { \theta } + \mathbf { P } \mathbf { P } ^ { \boldsymbol { \cdots } }$ performs decently well, with constraints incorporated into training, E2Efold still has significant advantages over it.
|
| 225 |
+
|
| 226 |
+
Table 6: Ablation study (RNAStralign test set)
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Method Prec</td><td>Rec</td><td>F1 Prec(S)Rec(S)F1(S)</td></tr><tr><td>E2Efold 0.866 0.788 U+PP 0.755 0.712</td><td>0.821 0.880 0.721 0.782</td><td>0.798 0.833 0.737 0.752</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Discussion. To better estimate the performance of E2Efold on different RNA types, we include the per-family F1 scores in Appendix D.5. E2Efold performs significantly better than other methods in 16S rRNA, tRNA, 5S RNA, tmRNA, and telomerase. These results are from a single model. In the future, we can view it as multi-task learning and further improve the performance by learning multiple models for different RNA families and learning an additional classifier to predict which model to use for the input sequence.
|
| 231 |
+
|
| 232 |
+
# 7 CONCLUSION
|
| 233 |
+
|
| 234 |
+
We propose a novel DL model, E2Efold, for RNA secondary structure prediction, which incorporates hard constraints in its architecture design. Comprehensive experiments are conducted to show the superior performance of E2Efold, no matter on quantitative criteria, running time, or visualization. Further studies need to be conducted to deal with the RNA types with less samples. Finally, we believe the idea of unrolling constrained programming and pushing gradient through post-processing can be generic and useful for other constrained structured prediction problems.
|
| 235 |
+
|
| 236 |
+
# ACKNOWLEDGEMENT
|
| 237 |
+
|
| 238 |
+
We would like to thank anonymous reviewers for providing constructive feedbacks. This work is supported in part by NSF grants CDS&E-1900017 D3SC, CCF-1836936 FMitF, IIS-1841351, CAREER IIS-1350983 to L.S. and grants from King Abdullah University of Science and Technology, under award numbers BAS/1/1624-01, FCC/1/1976-18-01, FCC/1/1976-23-01, FCC/1/1976-25-01, FCC/1/1976-26-01, REI/1/0018-01-01, and URF/1/4098-01-01.
|
| 239 |
+
|
| 240 |
+
# REFERENCES
|
| 241 |
+
|
| 242 |
+
Brandon Amos and J Zico Kolter. Optnet: Differentiable optimization as a layer in neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 136– 145. JMLR. org, 2017.
|
| 243 |
+
|
| 244 |
+
Mirela S Andronescu, Cristina Pop, and Anne E Condon. Improved free energy parameters for RNA pseudoknotted secondary structure prediction. RNA, 16(1):26–42, 2010.
|
| 245 |
+
|
| 246 |
+
David Belanger, Bishan Yang, and Andrew McCallum. End-to-end learning for structured prediction energy networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 429–439. JMLR. org, 2017.
|
| 247 |
+
|
| 248 |
+
Stanislav Bellaousov and David H Mathews. Probknot: fast prediction of RNA secondary structure including pseudoknots. RNA, 16(10):1870–1880, 2010.
|
| 249 |
+
|
| 250 |
+
Stanislav Bellaousov, Jessica S Reuter, Matthew G Seetin, and David H Mathews. RNAstructure: web servers for RNA secondary structure prediction and analysis. Nucleic acids research, 41 (W1):W471–W474, 2013.
|
| 251 |
+
|
| 252 |
+
Xiaohan Chen, Jialin Liu, Zhangyang Wang, and Wotao Yin. Theoretical linear convergence of unfolded ista and its practical weights and thresholds. In Advances in Neural Information Processing Systems, pp. 9061–9071, 2018.
|
| 253 |
+
|
| 254 |
+
Francis Crick. Central dogma of molecular biology. Nature, 227(5258):561, 1970.
|
| 255 |
+
|
| 256 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
|
| 257 |
+
|
| 258 |
+
Chuong B Do, Daniel A Woods, and Serafim Batzoglou. Contrafold: RNA secondary structure prediction without physics-based models. Bioinformatics, 22(14):e90–e98, 2006.
|
| 259 |
+
|
| 260 |
+
Timothy Dozat and Christopher D Manning. Deep biaffine attention for neural dependency parsing. arXiv preprint arXiv:1611.01734, 2016.
|
| 261 |
+
|
| 262 |
+
P Fechter, J Rudinger-Thirion, C Florentz, and R Giege. Novel features in the tRNA-like world of plant viral RNAs. Cellular and Molecular Life Sciences CMLS, 58(11):1547–1561, 2001.
|
| 263 |
+
|
| 264 |
+
Christine E Hajdin, Stanislav Bellaousov, Wayne Huggins, Christopher W Leonard, David H Mathews, and Kevin M Weeks. Accurate shape-directed RNA secondary structure modeling, including pseudoknots. Proceedings of the National Academy of Sciences, 110(14):5498–5503, 2013.
|
| 265 |
+
|
| 266 |
+
John R Hershey, Jonathan Le Roux, and Felix Weninger. Deep unfolding: Model-based inspiration of novel deep architectures. arXiv preprint arXiv:1409.2574, 2014.
|
| 267 |
+
|
| 268 |
+
Liang Huang, He Zhang, Dezhong Deng, Kai Zhao, Kaibo Liu, David A Hendrix, and David H Mathews. Linearfold: linear-time approximate RNA folding by $_ 5 '$ -to-3’dynamic programming and beam search. Bioinformatics, 35(14):i295–i304, 2019.
|
| 269 |
+
|
| 270 |
+
John Ingraham, Adam Riesselman, Chris Sander, and Debora Marks. Learning protein structure with a differentiable simulator. 2018.
|
| 271 |
+
|
| 272 |
+
Elizabeth Iorns, Christopher J Lord, Nicholas Turner, and Alan Ashworth. Utilizing RNA interference to enhance cancer drug discovery. Nature reviews Drug discovery, 6(7):556, 2007.
|
| 273 |
+
|
| 274 |
+
Eliyahu Kiperwasser and Yoav Goldberg. Simple and accurate dependency parsing using bidirectional lstm feature representations. Transactions of the Association for Computational Linguistics, 4:313–327, 2016.
|
| 275 |
+
|
| 276 |
+
Yu Li, Sheng Wang, Ramzan Umarov, Bingqing Xie, Ming Fan, Lihua Li, and Xin Gao. Deepre: sequence-based enzyme ec number prediction by deep learning. Bioinformatics, 34(5):760–769, 2017.
|
| 277 |
+
|
| 278 |
+
Ronny Lorenz, Stephan H Bernhart, Christian Honer Zu Siederdissen, Hakim Tafer, Christoph ¨ Flamm, Peter F Stadler, and Ivo L Hofacker. ViennaRNA package 2.0. Algorithms for molecular biology, 6(1):26, 2011.
|
| 279 |
+
|
| 280 |
+
Rune B Lyngsø and Christian NS Pedersen. RNA pseudoknot prediction in energy-based models. Journal of computational biology, 7(3-4):409–427, 2000.
|
| 281 |
+
|
| 282 |
+
NR Markham and M Zuker. Unafold: software for nucleic acid folding and hybridization in: Keith jm, editor.(ed.) bioinformatics methods in molecular biology, vol. 453, 2008.
|
| 283 |
+
|
| 284 |
+
David H Mathews. Predicting RNA secondary structure by free energy minimization. Theoretical Chemistry Accounts, 116(1-3):160–168, 2006.
|
| 285 |
+
|
| 286 |
+
David H Mathews. How to benchmark RNA secondary structure prediction accuracy. Methods, 2019.
|
| 287 |
+
|
| 288 |
+
David H Mathews and Douglas H Turner. Prediction of RNA secondary structure by free energy minimization. Current opinion in structural biology, 16(3):270–278, 2006.
|
| 289 |
+
|
| 290 |
+
Ryan McDonald, Fernando Pereira, Kiril Ribarov, and Jan Hajic. Non-projective dependency pars- ˇ ing using spanning tree algorithms. In Proceedings of the conference on Human Language Technology and Empirical Methods in Natural Language Processing, pp. 523–530. Association for Computational Linguistics, 2005.
|
| 291 |
+
|
| 292 |
+
Venkata Krishna Pillutla, Vincent Roulet, Sham M Kakade, and Zaid Harchaoui. A smoother way to train structured prediction models. In Advances in Neural Information Processing Systems, pp. 4766–4778, 2018.
|
| 293 |
+
|
| 294 |
+
Harsh Shrivastava, Xinshi Chen, Binghong Chen, Guanghui Lan, Srinvas Aluru, and Le Song. Glad: Learning sparse graph recovery. arXiv preprint arXiv:1906.00271, 2019.
|
| 295 |
+
|
| 296 |
+
Michael F Sloma and David H Mathews. Exact calculation of loop formation probability identifies folding motifs in RNA secondary structures. RNA, 22(12):1808–1818, 2016.
|
| 297 |
+
|
| 298 |
+
David W Staple and Samuel E Butcher. Pseudoknots: RNA structures with diverse functions. PLoS biology, 3(6):e213, 2005.
|
| 299 |
+
|
| 300 |
+
Evan W Steeg. Neural networks, adaptive optimization, and RNA secondary structure prediction. Artificial intelligence and molecular biology, pp. 121–160, 1993.
|
| 301 |
+
|
| 302 |
+
Zhen Tan, Yinghan Fu, Gaurav Sharma, and David H Mathews. Turbofold ii: RNA structural alignment and secondary structure prediction informed by multiple homologs. Nucleic acids research, 45(20):11570–11581, 2017.
|
| 303 |
+
|
| 304 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in neural information processing systems, pp. 5998–6008, 2017.
|
| 305 |
+
|
| 306 |
+
Sheng Wang, Siqi Sun, and Jinbo Xu. Auc-maximized deep convolutional neural fields for protein sequence labeling. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 1–16. Springer, 2016.
|
| 307 |
+
|
| 308 |
+
Sheng Wang, Siqi Sun, Zhen Li, Renyu Zhang, and Jinbo Xu. Accurate de novo prediction of protein contact map by ultra-deep learning model. PLoS computational biology, 13(1):e1005324, 2017.
|
| 309 |
+
|
| 310 |
+
Shay Zakov, Yoav Goldberg, Michael Elhadad, and Michal Ziv-Ukelson. Rich parameterization improves RNA structure prediction. Journal of Computational Biology, 18(11):1525–1542, 2011.
|
| 311 |
+
|
| 312 |
+
Hao Zhang, Chunhe Zhang, Zhi Li, Cong Li, Xu Wei, Borui Zhang, and Yuanning Liu. A new method of RNA secondary structure prediction based on convolutional neural network and dynamic programming. Frontiers in genetics, 10, 2019.
|
| 313 |
+
|
| 314 |
+
# A MORE DISCUSSION ON RELATED WORKS
|
| 315 |
+
|
| 316 |
+
Here we explain the difference between our approach and other works on unrolling optimization problems.
|
| 317 |
+
|
| 318 |
+
First, our view of incorporating constraints to reduce output space and to reduce sample complexity is novel. Previous works (Hershey et al., 2014; Belanger et al., 2017; Ingraham et al., 2018) did not discuss these aspects. The most related work which also integrates constraints is OptNet (Amos & Kolter, 2017), but its very expensive and can not scale to the RNA problem. Therefore, our proposed approach is a simple and effective one.
|
| 319 |
+
|
| 320 |
+
Second, compared to (Chen et al., 2018; Shrivastava et al., 2019), our approach has a different purpose of using the algorithm. Their goal is to learn a better algorithm, so they commonly make their architecture more flexible than the original algorithm for the room of improvement. However, we aim at enforcing constraints. To ensure that constraints are nicely incorporated, we keep the original structure of the algorithm and only make the hyperparameters learnable.
|
| 321 |
+
|
| 322 |
+
Finally, although all works consider end-to-end training, none of them can directly optimize the F1 score. We proposed a differentiable loss function to mimic the F1 score/precision/recall, which is effective and also very useful when negative samples are much fewer than positive samples (or the inverse).
|
| 323 |
+
|
| 324 |
+
# B DERIVATION OF THE PROXIMAL GRADIENT STEP
|
| 325 |
+
|
| 326 |
+
The maximization step in Eq. 1 can be written as the following minimization:
|
| 327 |
+
|
| 328 |
+
$$
|
| 329 |
+
\operatorname* { m i n } _ { \hat { A } \in \mathbb { R } ^ { L \times L } } ~ \underbrace { - \frac { 1 } { 2 } \langle U _ { \theta } ( { \boldsymbol x } ) - s , A \rangle + \langle \lambda , \operatorname { r e l u } ( A \mathbf { 1 } - \mathbf { 1 } ) \rangle } _ { - f ( \hat { A } ) } + \rho \| \hat { A } \| _ { 1 } .
|
| 330 |
+
$$
|
| 331 |
+
|
| 332 |
+
Consider the quadratic approximation of $- f ( { \hat { A } } )$ centered at $\hat { A } _ { t }$
|
| 333 |
+
|
| 334 |
+
$$
|
| 335 |
+
\begin{array} { r l } & { - \tilde { f } _ { \alpha } ( \hat { A } ) : = - f ( \hat { A } _ { t } ) + \langle - \frac { \partial f } { \partial \hat { A } _ { t } } , \hat { A } - \hat { A } _ { t } \rangle + \displaystyle \frac { 1 } { 2 \alpha } \| \hat { A } - \hat { A } _ { t } \| _ { F } ^ { 2 } } \\ & { \quad \quad \quad \quad = - f ( \hat { A } _ { t } ) + \displaystyle \frac { 1 } { 2 \alpha } \Big \| \hat { A } - \left( \hat { A } _ { t } + \alpha \frac { \partial f } { \partial \hat { A } _ { t } } \right) \Big \| _ { F } ^ { 2 } , } \end{array}
|
| 336 |
+
$$
|
| 337 |
+
|
| 338 |
+
and rewrite the optimization in Eq. 10 as
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\begin{array} { r l } & { \underset { \hat { A } \in \mathbb R ^ { L \times L } } { \mathrm { m i n } } ~ - ~ { f ( \hat { A } _ { t } ) } + \frac { 1 } { 2 \alpha } \Big \| \hat { A } - \dot { A } _ { t + 1 } \Big \| _ { F } ^ { 2 } + \rho \| \hat { A } \| _ { 1 } } \\ & { \underset { \hat { A } \in \mathbb R ^ { L \times L } } { \equiv } \frac { 1 } { 2 \alpha } \Big \| \hat { A } - \dot { A } _ { t + 1 } \Big \| _ { F } ^ { 2 } + \rho \| \hat { A } \| _ { 1 } , } \end{array}
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
where
|
| 345 |
+
|
| 346 |
+
$$
|
| 347 |
+
\dot { A } _ { t + 1 } : = \hat { A } _ { t } + \alpha \frac { \partial f } { \partial \hat { A } _ { t } } .
|
| 348 |
+
$$
|
| 349 |
+
|
| 350 |
+
Next, we define proximal mapping as a function depending on $\alpha$ as follows:
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\begin{array} { r l } & { \displaystyle p r o x _ { \alpha } ( \dot { A } _ { t + 1 } ) = \underset { \dot { A } \in \mathbb R ^ { L \times L } } { \arg \operatorname* { m i n } } \ \frac { 1 } { 2 \alpha } \Bigl \| \hat { A } - \dot { A } _ { t + 1 } \Bigr \| _ { F } ^ { 2 } + \rho \| \hat { A } \| _ { 1 } } \\ & { \quad \quad \quad = \underset { \dot { A } \in \mathbb R ^ { L \times L } } { \arg \operatorname* { m i n } } \ \frac { 1 } { 2 } \Bigl \| \hat { A } - \dot { A } _ { t + 1 } \Bigr \| _ { F } ^ { 2 } + \alpha \rho \| \hat { A } \| _ { 1 } } \\ & { \quad \quad \quad = \mathrm { s i g n } ( \dot { A } _ { t + 1 } ) \operatorname* { m a x } ( | \dot { A } _ { t + 1 } | - \alpha \rho , 0 ) } \\ & { \quad \quad \quad = \mathrm { s i g n } ( \dot { A } _ { t + 1 } ) \mathrm { r e l u } ( | \dot { A } _ { t + 1 } | - \alpha \rho ) . } \end{array}
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
Since we always use $\hat { A } \circ \hat { A }$ instead of $\hat { A }$ in our problem, we can take the absolute value $| p r o x _ { \alpha } ( \dot { A } _ { t + 1 } ) | = \mathrm { r e l u } ( | \dot { A } _ { t + 1 } | - \alpha \rho )$ without loss of generality. Therefore, the proximal gradient
|
| 357 |
+
|
| 358 |
+
step is
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
\begin{array} { r l } & { \dot { A } _ { t + 1 } \hat { A } _ { t } + \alpha \cfrac { \partial f } { \partial \hat { A } _ { t } } \quad \mathrm { ( c o r r e s p o n d t o E q . 3 ) } } \\ & { \dot { A } _ { t + 1 } \mathrm { r e l u } ( \vert \dot { A } _ { t + 1 } \vert - \alpha \rho ) \quad \mathrm { ( c o r r e s p o n d t o E q . 5 ) } . } \end{array}
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
More specifically, in the main text, we write $\frac { \partial f } { \partial \hat { A } _ { t } }$ as
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\begin{array} { r l } & { \frac { \partial f } { \partial \hat { A } _ { t } } = \frac { 1 } { 2 } \left( \frac { \partial f } { \partial A _ { t } } + \frac { \partial f } { \partial A _ { t } } ^ { \top } \right) \circ \frac { \partial A _ { t } } { \partial \hat { A } _ { t } } } \\ & { \qquad = \left( \frac { 1 } { 2 } \frac { \partial A _ { t } } { \partial \hat { A } _ { t } } \right) \circ \left( \frac { \partial f } { \partial A _ { t } } + \frac { \partial f } { \partial A _ { t } } ^ { \top } \right) } \\ & { \qquad = \left( \frac { 1 } { 2 ^ { 2 } } \circ M \circ ( 2 \hat { A } _ { t } + 2 \hat { A } _ { t } ^ { \top } ) \right) \circ \left( \frac { \partial f } { \partial A _ { t } } + \frac { \partial f } { \partial A _ { t } } ^ { \top } \right) } \\ & { \qquad = \left( \frac { 1 } { 2 ^ { 2 } } \circ M \circ ( 2 \hat { A } _ { t } + 2 \hat { A } _ { t } ^ { \top } ) \right) \circ \left( \frac { \partial f } { \partial A _ { t } } + \frac { \partial f } { \partial A _ { t } } ^ { \top } \right) } \\ & { \qquad = M \circ \hat { A } _ { t } \circ \left( \frac { \partial f } { \partial A _ { t } } + \frac { \partial f } { \partial A _ { t } } ^ { \top } \right) . } \end{array}
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
The last equation holds since $\hat { A } _ { t }$ will remain symmetric in our algorithm if the initial $\hat { A } _ { 0 }$ is symmetric. Moreover, in the main text, $\alpha$ is replaced by $\boldsymbol { \alpha } \cdot \boldsymbol { \gamma } _ { \alpha } ^ { t }$ .
|
| 371 |
+
|
| 372 |
+
# C IMPLEMENTATION AND TRAINING DETAILS
|
| 373 |
+
|
| 374 |
+
We used Pytorch to implement the whole package of E2Efold.
|
| 375 |
+
|
| 376 |
+
Deep Score Network. In the deep score network, we used a hyper-parameter, $d$ , which was set as 10 in the final model, to control the model capacity. In the transformer encoder layers, we set the number of heads as 2, the dimension of the feed-forward network as 2048, the dropout rate as 0.1. As for the position encoding, we used 58 base functions to form the position feature map, which goes through a 3-layer fully-connected neural network (the number of hidden neurons is $5 * d$ ) to generate the final position embedding, whose dimension is $L$ by $d$ . In the final output layer, the pairwise concatenation is carried out in the following way: Let $\boldsymbol { X } \in \mathbb { R } ^ { L \times 3 d }$ be the input to the final output layers in Figure 4 (which is the concatenation of the sequence embedding and position embedding). The pairwise concatenation results in a tensor $Y \in \mathbb { R } ^ { L \times L \times 6 d }$ defined as
|
| 377 |
+
|
| 378 |
+
$$
|
| 379 |
+
Y ( i , j , : ) = [ X ( i , : ) , X ( j , : ) ] ,
|
| 380 |
+
$$
|
| 381 |
+
|
| 382 |
+
where $Y ( i , j , : ) \in \mathbb { R } ^ { 6 d }$ , $X ( i , : ) \in \mathbb { R } ^ { 3 d }$ , and $X ( j , : ) \in \mathbb { R } ^ { 3 d }$ .
|
| 383 |
+
|
| 384 |
+
In the 2D convolution layers, the the channel of the feature map gradually change from $6 { * d }$ to $d$ , and finally to 1. We set the kernel size as 1 to translate the feature map into the final score matrix. Each 2D convolution layer is followed by a batch normalization layer. We used ReLU as the activation function within the whole score network.
|
| 385 |
+
|
| 386 |
+
Post-Processing Network. In the PP network, we initialized $w$ as 1, $s$ as $\log ( 9 )$ , $\alpha$ as 0.01, $\beta$ as 0.1, $\gamma _ { \alpha }$ as 0.99, $\gamma _ { \beta }$ as 0.99, and $\rho$ as 1. We set $T$ as 20.
|
| 387 |
+
|
| 388 |
+
Training details. During training, we first pre-trained a deep score network and then fine-tuned the score network and the PP network together. To pre-train the score network, we used binary crossentropy loss and Adam optimizer. Since, in the contact map, most entries are 0, we used weighted loss and set the positive sample weight as 300. The batch size was set to fully use the GPU memory, which was 20 for the Titan Xp card. We pre-train the score network for 100 epochs. As for the fine-tuning, we used binary cross-entropy loss for the score network and F1 loss for the PP network and summed up these two losses as the final loss. The user can also choose to only use the F1 loss or use another coefficient to weight the loss estimated on the score network $U _ { \theta }$ . Due to the limitation of the GPU memory, we set the batch size as 8. However, we updated the model’s parameters every 30 steps to stabilize the training process. We fine-tuned the whole model for 20 epochs. Also, since the data for different RNA families are imbalanced, we up-sampled the data in the small RNA families based on their size. For the training of the score network $U _ { \theta }$ in the ablation study, it is exactly the same as the training of the above mentioned process. Except that during the fine-tune process, there is the unrolled number of iterations is set to be 0.
|
| 389 |
+
|
| 390 |
+
# D MORE EXPERIMENTAL DETAILS
|
| 391 |
+
|
| 392 |
+
# D.1 DATASET STATISTICS
|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
Figure 6: The RNAStralign length distribution.
|
| 396 |
+
|
| 397 |
+
Table 7: RNAStralign dataset splits statistics
|
| 398 |
+
|
| 399 |
+
<table><tr><td>RNA type</td><td>All</td><td>Training</td><td>Validation</td><td>Testing</td></tr><tr><td>16SrRNA</td><td>11620</td><td>9325</td><td>1145</td><td>1150</td></tr><tr><td>5SrRNA</td><td>9385</td><td>7687</td><td>819</td><td>879</td></tr><tr><td>tRNA</td><td>6443</td><td>5412</td><td>527</td><td>504</td></tr><tr><td>grp1</td><td>1502</td><td>1243</td><td>123</td><td>136</td></tr><tr><td>SRP</td><td>468</td><td>379</td><td>36</td><td>53</td></tr><tr><td>tmRNA</td><td>572</td><td>461</td><td>50</td><td>61</td></tr><tr><td>RNaseP</td><td>434</td><td>360</td><td>37</td><td>37</td></tr><tr><td>telomerase</td><td>37</td><td>28</td><td>4</td><td>5</td></tr><tr><td>RNAStralign</td><td>30451</td><td>24895</td><td>2702</td><td>2854</td></tr></table>
|
| 400 |
+
|
| 401 |
+
# D.2 TWO-SAMPLE HYPOTHESIS TESTING
|
| 402 |
+
|
| 403 |
+
To better understand the data distribution in different datasets, we provide statistical hypothesis test results in this section.
|
| 404 |
+
|
| 405 |
+
We can assume that
|
| 406 |
+
|
| 407 |
+
(i) Samples in RNAStralign training set are i.i.d. from the distribution $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } )$
|
| 408 |
+
|
| 409 |
+
(ii) Samples in RNAStralign testing set are i.i.d. from the distribution $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t e s t } } )$ ;
|
| 410 |
+
|
| 411 |
+
(iii) Samples in ArchiveII dataset are i.i.d. from the distribution $\mathcal { P } ( \mathrm { A r c I I } )$ .
|
| 412 |
+
|
| 413 |
+
To compare the differences among these data distributions, we can test the following hypothesis:
|
| 414 |
+
|
| 415 |
+
(a) $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t e s t } } )$ (b) $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ( \mathrm { A r c h i v e I I } )$
|
| 416 |
+
|
| 417 |
+
The approach that we adopted is the permutation test on the unbiased empirical Maximum Mean Discrepancy (MMD) estimator:
|
| 418 |
+
|
| 419 |
+
$$
|
| 420 |
+
{ \mathbf { M M D } } _ { u } ( X , Y ) : = \Big ( \sum _ { i = 1 } ^ { N } \sum _ { j \neq i } ^ { N } k ( x _ { i } , x _ { j } ) + \sum _ { i = 1 } ^ { M } \sum _ { j \neq i } ^ { M } k ( y _ { i } , y _ { j } ) - \frac { 2 } { m n } \sum _ { i = 1 } ^ { N } \sum _ { j = 1 } ^ { M } k ( x _ { i } , y _ { j } ) \Big ) ^ { \frac { 1 } { 2 } } ,
|
| 421 |
+
$$
|
| 422 |
+
|
| 423 |
+
where $X = \{ x _ { i } \} _ { i = 1 } ^ { N }$ contains $N$ i.i.d. samples from a distribution $\mathcal { P } _ { 1 }$ , $Y = \{ y _ { i } \} _ { i = 1 } ^ { M }$ contains $M$ i.i.d. samples from a distribution $\mathcal { P } _ { 2 }$ , and $k ( \cdot , \cdot )$ is a string kernel.
|
| 424 |
+
|
| 425 |
+
Since we conduct stratified sampling to split the training and testing dataset, when we perform permutation test, we use stratified re-sampling as well (for both Hypothese (a) and (b)). The result of the permutation test (permuted 1000 times) is reported in Figure 7.
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
Figure 7: Left: Distribution of $\mathbf { M M D } _ { u }$ under Hypothesis $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t e s t } } )$ . Right: Distribution of $\mathbf { M M D } _ { u }$ under Hypothesis $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ($ (ArchiveII).
|
| 429 |
+
|
| 430 |
+
The result shows
|
| 431 |
+
|
| 432 |
+
(a) Hypothesis $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t e s t } } )$ can be accepted with significance level 0.1.
|
| 433 |
+
(b) Hypothesis $\mathcal { P } ( \mathrm { R N A S t r } _ { \mathrm { t r a i n } } ) = \mathcal { P } ($ (ArchiveII) is rejected since the p-value is 0.
|
| 434 |
+
|
| 435 |
+
Therefore, the data distribution in ArchiveII is very different from the RNAStralign training set. A good performance on ArchiveII shows a significant generalization power of E2Efold.
|
| 436 |
+
|
| 437 |
+
D.3 PERFORMANCE ON LONG SEQUENCES: WEIGHTED F1 SCORE
|
| 438 |
+
|
| 439 |
+
For long sequences, E2Efold still performs better than other methods. We compute F1 scores weighted by the length of sequences (Table 8), such that the results are more dominated by longer sequences.
|
| 440 |
+
|
| 441 |
+
Table 8: RNAStralign: F1 after a weighted average by sequence length.
|
| 442 |
+
|
| 443 |
+
<table><tr><td>Method</td><td>E2Efold</td><td>CDPfold</td><td>LinearFold</td><td>Mfold</td><td>RNAstructure</td><td>RNAfold</td><td>CONTRAfold</td></tr><tr><td>non-weighted</td><td>0.821</td><td>0.614</td><td>0.609</td><td>0.420</td><td>0.550</td><td>0.540</td><td>0.633</td></tr><tr><td>weighted</td><td>0.720</td><td>0.691</td><td>0.509</td><td>0.366</td><td>0.471</td><td>0.444</td><td>0.542</td></tr><tr><td>change</td><td>-12.3%</td><td>+12.5%</td><td>-16.4%</td><td>-12.8%</td><td>-14.3%</td><td>-17.7%</td><td>-14.3%</td></tr></table>
|
| 444 |
+
|
| 445 |
+
The third row reports how much F1 score drops after reweighting.
|
| 446 |
+
|
| 447 |
+
# D.4 ARCHIVEII RESULTS AFTER DOMAIN SEQUENCES ARE REMOVED
|
| 448 |
+
|
| 449 |
+
Since domain sequence (subsequences) in ArchiveII are explicitly labeled, we filter them out in ArchiveII and recompute the F1 scores (Table 9).
|
| 450 |
+
|
| 451 |
+
The results do not change too much before or after filtering out subsequences.
|
| 452 |
+
|
| 453 |
+
Table 9: ArchiveII: F1 after subsequences are filtered out.
|
| 454 |
+
|
| 455 |
+
<table><tr><td>Method</td><td>E2Efold</td><td>CDPfold</td><td>LinearFold</td><td>Mfold</td><td>RNAstructure</td><td>RNAfold</td><td>CONTRAfold</td></tr><tr><td>original</td><td>0.704</td><td>0.597</td><td>0.647</td><td>0.421</td><td>0.613</td><td>0.615</td><td>0.662</td></tr><tr><td>filtered</td><td>0.723</td><td>0.605</td><td>0.645</td><td>0.419</td><td>0.611</td><td>0.615</td><td>0.659</td></tr></table>
|
| 456 |
+
|
| 457 |
+
# D.5 PER-FAMILY PERFORMANCES
|
| 458 |
+
|
| 459 |
+
To balance the performance among different families, during the training phase we conducted weighted sampling of the data based on their family size. With weighted sampling, the overall F1 score (S) is 0.83, which is the same as when we did equal-weighted sampling. The per-family results are shown in Table 10.
|
| 460 |
+
|
| 461 |
+
Table 10: RNAStralign: per-family performances
|
| 462 |
+
|
| 463 |
+
<table><tr><td rowspan="2"></td><td colspan="2">16S rRNA</td><td colspan="2">tRNA</td><td colspan="2">5S RNA</td><td colspan="2">SRP</td></tr><tr><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td></tr><tr><td>E2Efold</td><td>0.783</td><td>0.795</td><td>0.917</td><td>0.939</td><td>0.906</td><td>0.936</td><td>0.550</td><td>0.614</td></tr><tr><td>LinearFold</td><td>0.493</td><td>0.504</td><td>0.734</td><td>0.739</td><td>0.713</td><td>0.738</td><td>0.618</td><td>0.648</td></tr><tr><td>Mfold</td><td>0.362</td><td>0.373</td><td>0.662</td><td>0.675</td><td>0.356</td><td>0.367</td><td>0.350</td><td>0.378</td></tr><tr><td>RNAstructure</td><td>0.464</td><td>0.485</td><td>0.709</td><td>0.736</td><td>0.578</td><td>0.597</td><td>0.579</td><td>0.617</td></tr><tr><td>RNAfold</td><td>0.430</td><td>0.449</td><td>0.695</td><td>0.706</td><td>0.592</td><td>0.612</td><td>0.617</td><td>0.651</td></tr><tr><td>CONTRAfold</td><td>0.529</td><td>0.546</td><td>0.758</td><td>0.765</td><td>0.717</td><td>0.740</td><td>0.563</td><td>0.596</td></tr><tr><td></td><td colspan="2">tmRNA</td><td>Group Iintron</td><td></td><td colspan="2">RNaseP</td><td colspan="2">telomerase</td></tr><tr><td></td><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td><td>F1</td><td>F1(S)</td></tr><tr><td>E2Efold</td><td>0.588</td><td>0.653</td><td>0.387</td><td>0.428</td><td>0.565</td><td>0.604</td><td>0.954</td><td>0.961</td></tr><tr><td>LinearFold</td><td>0.393</td><td>0.412</td><td>0.565</td><td>0.579</td><td>0.567</td><td>0.578</td><td>0.515</td><td>0.531</td></tr><tr><td>Mfold</td><td>0.290</td><td>0.308</td><td>0.483</td><td>0.498</td><td>0.562</td><td>0.579</td><td>0.403</td><td>0.531</td></tr><tr><td>RNAstructure</td><td>0.400</td><td>0.423</td><td>0.566</td><td>0.599</td><td>0.589</td><td>0.616</td><td>0.512</td><td>0.545</td></tr><tr><td>RNAfold</td><td>0.411</td><td>0.430</td><td>0.589</td><td>0.599</td><td>0.544</td><td>0.563</td><td>0.471</td><td>0.496</td></tr><tr><td>CONTRAfold</td><td>0.463</td><td>0.482</td><td>0.603</td><td>0.620</td><td>0.645</td><td>0.662</td><td>0.529</td><td>0.548</td></tr></table>
|
| 464 |
+
|
| 465 |
+

|
| 466 |
+
Figure 8: Visualization of 5S rRNA, B01865.
|
| 467 |
+
|
| 468 |
+

|
| 469 |
+
Figure 9: Visualization of 16S rRNA, DQ170870.
|
| 470 |
+
|
| 471 |
+

|
| 472 |
+
Figure 10: Visualization of Group I intron, IC3, Kaf.c.trnL.
|
| 473 |
+
|
| 474 |
+

|
| 475 |
+
Figure 11: Visualization of RNaseP, A.salinestris-184.
|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
Figure 12: Visualization of SRP, Homo.sapi. BU56690.
|
| 479 |
+
|
| 480 |
+

|
| 481 |
+
Figure 13: Visualization of tmRNA, uncu.bact. AF389956.
|
| 482 |
+
|
| 483 |
+

|
| 484 |
+
Figure 14: Visualization of tRNA, tdbD00012019.
|
parse/train/S1eALyrYDH/S1eALyrYDH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1eALyrYDH/S1eALyrYDH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1eALyrYDH/S1eALyrYDH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1l-C0NtwS/S1l-C0NtwS.md
ADDED
|
@@ -0,0 +1,333 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CROSS-LINGUAL ALIGNMENT VS JOINT TRAINING:A COMPARATIVE STUDY AND A SIMPLE UNIFIEDFRAMEWORK
|
| 2 |
+
|
| 3 |
+
Zirui Wang∗, Jiateng Xie∗, Ruochen Xu, Yiming Yang, Graham Neubig, Jaime Carbonell Language Technologies Institute, Carnegie Mellon University, Pittsburgh, PA 15213, USA {ziruiw, jiatengx, ruochenx, yiming, gneubig, jgc}@cs.cmu.edu
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Learning multilingual representations of text has proven a successful method for many cross-lingual transfer learning tasks. There are two main paradigms for learning such representations: (1) alignment, which maps different independently trained monolingual representations into a shared space, and (2) joint training, which directly learns unified multilingual representations using monolingual and cross-lingual objectives jointly. In this paper, we first conduct direct comparisons of representations learned using both of these methods across diverse crosslingual tasks. Our empirical results reveal a set of pros and cons for both methods, and show that the relative performance of alignment versus joint training is taskdependent. Stemming from this analysis, we propose a simple and novel framework that combines these two previously mutually-exclusive approaches. Extensive experiments demonstrate that our proposed framework alleviates limitations of both approaches, and outperforms existing methods on the MUSE bilingual lexicon induction (BLI) benchmark. We further show that this framework can generalize to contextualized representations such as Multilingual BERT, and produces state-of-the-art results on the CoNLL cross-lingual NER benchmark.1
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Continuous word representations (Mikolov et al., 2013a; Pennington et al., 2014; Bojanowski et al., 2017) have become ubiquitous across a wide range of NLP tasks. In particular, methods for crosslingual word embeddings (CLWE) have proven a powerful tool for cross-lingual transfer for downstream tasks, such as text classification (Klementiev et al., 2012), dependency parsing (Ahmad et al., 2019), named entity recognition (NER) (Xie et al., 2018; Chen et al., 2019), natural language inference (Conneau et al., 2018b), language modeling (Adams et al., 2017), and machine translation (MT) (Zou et al., 2013; Lample et al., 2018a; Artetxe et al., 2018b; Lample et al., 2018b). The goal of these CLWE methods is to learn embeddings in a shared vector space for two or more languages. There are two main paradigms for learning CLWE: cross-lingual alignment and joint training.
|
| 12 |
+
|
| 13 |
+
The most successful approach has been the cross-lingual embedding alignment method (Mikolov et al., 2013b), which relies on the assumption that monolingually-trained continuous word embedding spaces share similar structure across different languages. The underlying idea is to first independently train embeddings in different languages using monolingual corpora alone, and then learn a mapping to align them to a shared vector space. Such a mapping can be trained in a supervised fashion using parallel resources such as bilingual lexicons (Xing et al., 2015; Smith et al., 2017; Joulin et al., 2018b; Jawanpuria et al., 2019), or even in an unsupervised2 manner based on distribution matching (Zhang et al., 2017a; Conneau et al., 2018a; Artetxe et al., 2018a; Zhou et al., 2019). Recently, it has been shown that alignment methods can also be effectively applied to contextualized word representations (Schuster et al., 2019; Aldarmaki & Diab, 2019).
|
| 14 |
+
|
| 15 |
+
Another successful line of research for CLWE considers joint training methods, which optimize a monolingual objective predicting the context of a word in a monolingual corpus along with either a hard or soft cross-lingual constraint. Similar to alignment methods, some early works rely on bilingual dictionaries (Ammar et al., 2016; Duong et al., 2016) or parallel corpora (Luong et al., 2015; Gouws et al., 2015) for direct supervision. More recently, a seemingly naive unsupervised joint training approach has received growing attention due to its simplicity and effectiveness. In particular, Lample et al. (2018b) reports that simply training embeddings on concatenated monolingual corpora of two related languages using a shared vocabulary without any cross-lingual resources is able to produce higher accuracy than the more sophisticated alignment methods on unsupervised MT tasks. Besides, for contextualized representations, unsupervised multilingual language model pretraining using a shared vocabulary has produced state-of-the-art results on multiple benchmarks3 (Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019).
|
| 16 |
+
|
| 17 |
+
Despite a large amount of research on both alignment and joint training, previous work has neither performed a systematic comparison between the two, analyzed their pros and cons, nor elucidated when we may prefer one method over the other. Particularly, it’s natural to ask: (1) Does the phenomenon reported in Lample et al. (2018b) extend to other cross-lingual tasks? (2) Can we employ alignment methods to further improve unsupervised joint training? (3) If so, how would such a framework compare to supervised joint training methods that exploit equivalent resources, i.e., bilingual dictionaries? (4) And lastly, can this framework generalize to contextualized representations?
|
| 18 |
+
|
| 19 |
+
In this work, we attempt to address these questions. Specifically, we first evaluate and compare alignment versus joint training methods across three diverse tasks: BLI, cross-lingual NER, and unsupervised MT. We seek to characterize the conditions under which one approach outperforms the other, and glean insight on the reasons behind these differences. Based on our analysis, we further propose a simple, novel, and highly generic framework that uses unsupervised joint training as initialization and alignment as refinement to combine both paradigms. Our experiments demonstrate that our framework improves over both alignment and joint training baselines, and outperforms existing methods on the MUSE BLI benchmark. Moreover, we show that our framework can generalize to contextualized representations such as Multilingual BERT, producing state-of-the-art results on the CoNLL cross-lingual NER benchmark. To the best of our knowledge, this is the first framework that combines previously mutually-exclusive alignment and joint training methods.
|
| 20 |
+
|
| 21 |
+
# 2 BACKGROUND: CROSS-LINGUAL REPRESENTATIONS
|
| 22 |
+
|
| 23 |
+
Notation. We assume we have two different languages $\{ L _ { 1 } , L _ { 2 } \}$ and access to their corresponding training corpora. We use $V _ { L _ { i } } = { \{ w _ { L _ { i } } ^ { j } \} } _ { j = 1 } ^ { n _ { L _ { i } } }$ to denote the vocabulary set of the ith language where each $w _ { L _ { i } } ^ { j }$ represents a unique token, such as a word or subword. The goal is to learn a set of embeddings $E = \{ \pmb { x } ^ { j } \} _ { j = 1 } ^ { m }$ , with $\pmb { x } ^ { j } \in \mathbb { R } ^ { d }$ , in a shared vector space, where each token $w _ { L _ { i } } ^ { j }$ is mapped to a vector in $E$ . Ideally, these vectorial representations should have similar values for tokens with similar meanings or syntactic properties, so they can better facilitate cross-lingual transfer.
|
| 24 |
+
|
| 25 |
+
# 2.1 ALIGNMENT METHODS
|
| 26 |
+
|
| 27 |
+
Given the notation, alignment methods consist of the following steps:
|
| 28 |
+
|
| 29 |
+
Step 1: Train an embedding set $E _ { 0 } = E _ { L _ { 1 } } \cup E _ { L _ { 2 } }$ , where each subset $E _ { L _ { i } } = \{ x _ { L _ { i } } ^ { j } \} _ { j = 1 } ^ { n _ { L _ { i } } }$ is trained independently using the ith language corpus and contains an embedding $x _ { L _ { i } } ^ { j }$ for each token $w _ { L _ { i } } ^ { j }$ .
|
| 30 |
+
|
| 31 |
+
Step 2: Obtain a seed dictionary $D = \{ ( w _ { L _ { 1 } } ^ { i } , w _ { L _ { 2 } } ^ { j } ) \} _ { k = 1 } ^ { K }$ , either provided or learnt unsupervised.
|
| 32 |
+
|
| 33 |
+
Step 3: Learn a projection matrix $W \in \mathbb { R } ^ { d \times d }$ based on $D$ , resulting in a final embedding set $\ c E _ { A } \overset { - } { = } ( W \cdot E _ { L _ { 1 } } ) \overset { - } { \cup } \bar { E } _ { L _ { 2 } }$ in a shared vector space.
|
| 34 |
+
|
| 35 |
+
To find the optimal projection matrix $W$ , Mikolov et al. (2013b) proposed to solve the following optimization problem:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
\operatorname* { m i n } _ { W \in \mathbb { R } ^ { d \times d } } \| W X _ { L _ { 1 } } - X _ { L _ { 2 } } \| _ { F }
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
where $X _ { L _ { 1 } }$ and $X _ { L _ { 2 } }$ are matrices of size $d \times K$ containing embeddings of the words in $D$ . Xing et al. (2015) later showed further improvement could be achieved by restricting $W$ to an orthogonal matrix, which turns the Eq.(1) into the Procrustes problem with the following closed form solution:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
\begin{array} { r } { W ^ { * } = U V ^ { T } , \quad \quad } \\ { \mathrm { w i t h ~ } U \Sigma V ^ { T } = \mathrm { S V D } ( X _ { L _ { 2 } } X _ { L _ { 1 } } ^ { T } ) } \end{array}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $W ^ { * }$ denotes the optimal solution and SVD(·) stands for the singular value decomposition.
|
| 48 |
+
|
| 49 |
+
As surveyed in Section 5, different methods (Smith et al., 2017; Conneau et al., 2018a; Joulin et al., 2018b; Artetxe et al., 2018a) differ in the way how they obtain the dictionary $D$ and how they solve for $W$ in step 3. However, most of them still involve solving the Eq.(2) as a crucial step.
|
| 50 |
+
|
| 51 |
+
# 2.2 JOINT TRAINING METHODS
|
| 52 |
+
|
| 53 |
+
Joint training methods in general have the following objective:
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\mathscr { L } _ { J } = \mathscr { L } _ { 1 } + \mathscr { L } _ { 2 } + \mathscr { R } \left( L _ { 1 } , L _ { 2 } \right)
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
where $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ are monolingual objectives and $\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ is a cross-lingual regularization term. For example, Klementiev et al. (2012) use language modeling objectives for $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ . The term $\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ encourages alignment of representations of words that are translations. Training an embedding set $E _ { J } = E _ { L _ { 1 } } \cup E _ { L _ { 2 } }$ is usually done by directly optimizing $\mathcal { L } _ { J }$ .
|
| 60 |
+
|
| 61 |
+
While supervised joint training requires access to parallel resources, recent studies (Lample et al., 2018b; Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019) have suggested that unsupervised joint training without such resources is also effective. Specifically, they show that the cross-lingual regularization term $\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ does not require direct cross-lingual supervision to achieve highly competitive results. This is because the shared words between $\mathcal { L } _ { 1 }$ and $\mathcal { L } _ { 2 }$ can serve implicitly as anchors by sharing their embeddings to ensure that representations of different languages lie in a shared space. Using our notation, the unsupervised joint training approach takes the following steps:
|
| 62 |
+
|
| 63 |
+
Step 1: Construct a joint vocabulary $V _ { J } = V _ { L _ { 1 } } \cup V _ { L _ { 2 } }$ that is shared across two languages.
|
| 64 |
+
|
| 65 |
+
Step 2: Concatenate the two training corpora and learn an embedding set $E _ { J }$ corresponding to $V _ { J }$
|
| 66 |
+
|
| 67 |
+
The joint vocabulary is composed of three disjoint sets: $V _ { J } ^ { 1 } , V _ { J } ^ { 2 } , V _ { J } ^ { s }$ , where $V _ { J } ^ { s } = V _ { L _ { 1 } } \cap V _ { L _ { 2 } }$ is the shared vocabulary set and $V _ { J } ^ { i }$ is the set of tokens that appear in the $i$ th language only. Note that a key difference of existing supervised joint training methods is that embeddings corresponding to $V _ { J } ^ { s }$ are not shared between $E _ { L _ { 1 } }$ and $E _ { L _ { 2 } }$ , meaning that they are disjoint, as in alignment methods.
|
| 68 |
+
|
| 69 |
+
# 2.3 DISCUSSION
|
| 70 |
+
|
| 71 |
+
While alignment methods have had great success, there are still some critical downsides, among which we stress the following points:
|
| 72 |
+
|
| 73 |
+
1. While recent studies in unsupervised joint training have suggested the potential benefits of word sharing, alignment methods rely on two disjoint sets of embeddings. Along with some possible loss of information due to no sharing, one consequence is that finetuning the aligned embeddings on downstream tasks may be sub-optimal due to the lack of crosslingual constraints at the finetuning stage, whereas shared words can fulfill this role in jointly trained models.
|
| 74 |
+
2. A key assumption of alignment methods is the isomorphism of monolingual embedding spaces. However, some recent papers have challenged this assumption, showing that it does not hold for many language pairs (Søgaard et al., 2018; Patra et al., 2019). Also notably, Ormazabal et al. (2019) suggests that this limitation results from the fact that the two sets of monolingual embeddings are independently trained.
|
| 75 |
+
|
| 76 |
+
On the other hand, the unsupervised joint training method is much simpler and doesn’t share these disadvantages with the alignment methods, but there are also some key limitations:
|
| 77 |
+
|
| 78 |
+

|
| 79 |
+
Figure 1: PCA visualization of English and Spanish embeddings learnt by unsupervised joint training as in Lample et al. (2018b). As shown by plots (a) and (b), most words are shared in the initial embedding space but not well-aligned, hence the oversharing problem. Plots (b) and (c) shows that the vocabulary reallocation step effectively mitigates oversharing while the alignment refinement step further improves the poorly aligned embeddings by projecting them into a close neighborhood.
|
| 80 |
+
|
| 81 |
+
1. It assumes that all shared words across two languages serve implicitly as anchors and thus need not be aligned to other words. Nonetheless, this assumption is not always true, leading to misalignment. For example, the English word “the” will most likely also appear in the training corpus of Spanish, but preferably it should be paired with Spanish words such as “el” and “la” instead of itself. We refer to this problem as oversharing.
|
| 82 |
+
2. It does not utilize any explicit form of seed dictionary as in alignment methods, resulting in potentially less accurate alignments, especially for words that are not shared.
|
| 83 |
+
|
| 84 |
+
Lastly, while the supervised joint training approach does not have the same issues of unsupervised joint training, it shares limitation 1 of the alignment methods.
|
| 85 |
+
|
| 86 |
+
We empirically compare both joint training and alignment approaches in Section 4 and shed light on some of these pros and cons for both paradigms (See Section 4.3.1).
|
| 87 |
+
|
| 88 |
+
# 3 PROPOSED FRAMEWORK
|
| 89 |
+
|
| 90 |
+
Motivated by the pros and cons of both paradigms, we propose a unified framework that first uses unsupervised joint training as a coarse initialization and then applies alignment methods for refinement, as demonstrated in Figure 1. Specifically, we first build a single set of embeddings with a shared vocabulary through unsupervised joint training, so as to alleviate the limitations of alignment methods. Next, we use a vocabulary reallocation technique to mitigate oversharing, before finally resorting back to alignment methods to further improve the embeddings’ quality. Lastly, we show that this framework can generalize to contextualized representations.
|
| 91 |
+
|
| 92 |
+
# 3.1 UNIFYING ALIGNMENT WITH JOINT TRAINING
|
| 93 |
+
|
| 94 |
+
Our proposed framework mainly involves three components and we discuss each of them as follows.
|
| 95 |
+
|
| 96 |
+
Joint Initialization. We use unsupervised joint training (Lample et al., 2018b) to train the initial CLWE. As described in Section 2.2, we first obtain a joint vocabulary $V _ { J }$ and train its corresponding set of embeddings $E _ { J }$ on the concatenated corpora of two languages. This allows us to obtain a single set of embeddings that maximizes sharing across two languages. To train embeddings, we used fastText4 (Bojanowski et al., 2017) in all our experiments for both word and subword tokens.
|
| 97 |
+
|
| 98 |
+
Vocabulary Reallocation. As discussed in Section 2.3, a key issue of unsupervised joint training is oversharing, which prohibits further refinement as shown in Figure 1. To alleviate this drawback, we attempt to “unshare” some of the overshared words, so their embeddings can be better aligned in the next step. Particularly, we perform a vocabulary reallocation step such that words appearing mostly exclusively in the ith language are reallocated from the shared vocabulary $V _ { J } ^ { s }$ to $V _ { J } ^ { i }$ , whereas words that appear similarly frequent in both languages stay still in $V _ { J } ^ { s }$ . Formally, for each token $w$ in the shared vocabulary $V _ { J } ^ { s }$ , we use the ratio of counts within each language to determine whether it belongs to the shared vocabulary:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
r = \frac { T _ { L _ { 2 } } } { T _ { L _ { 1 } } } \cdot \frac { C _ { L _ { 1 } } ( w ) } { C _ { L _ { 2 } } ( w ) } ,
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
where $C _ { L _ { i } } ( w )$ is the count of $w$ in the training corpus of the $i$ th language and $\begin{array} { r } { T _ { L _ { i } } = \sum _ { w } C _ { L _ { i } } ( w ) } \end{array}$ is the total number of tokens. The token $w$ is allocated to the shared vocabulary if
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
\frac { 1 - \gamma } { \gamma } \leq r \leq \frac { \gamma } { 1 - \gamma } ,
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where $\gamma$ is a hyper-parameter. Otherwise, we put $w$ into either $V _ { J } ^ { 1 }$ or $V _ { J } ^ { 2 }$ , where it appears mostly frequent. The above process generates three new disjoint vocabulary sets $V _ { J } ^ { 1 ^ { \prime } } , V _ { J } ^ { 2 ^ { \prime } } , V _ { J } ^ { s ^ { \prime } }$ and their corresponding embeddings $E _ { J } ^ { 1 ^ { \prime } } , E _ { J } ^ { 2 ^ { \prime } } , E _ { J } ^ { s ^ { \prime } }$ that are used thereafter. Note that, $V _ { J } ^ { ' } = V _ { J }$ and $E _ { J } ^ { ' } = E _ { J }$ .
|
| 111 |
+
|
| 112 |
+
Alignment Refinement. The unsupervised joint training method does not explicitly utilize any dictionary or form of alignment. Thus, the resulting embedding set is coarse and ill-aligned in the shared vector space, as demonstrated in Figure 1. As a final refinement step, we utilize any off-the-shelf alignment method to refine alignments across the non-sharing embedding sets, i.e. mapping $E _ { J } ^ { 1 ^ { \prime } }$ to $\mathrm { ~ \bar { \it E } _ { \it J } ^ { 2 ^ { \prime } } ~ }$ and leaving $E _ { J } ^ { s ^ { \prime } }$ untouched. This step could be conducted by either supervised or unsupervised alignment method and we compare both in our experiments.
|
| 113 |
+
|
| 114 |
+
# 3.2 EXTENSION TO CONTEXTUALIZED REPRESENTATIONS
|
| 115 |
+
|
| 116 |
+
As our framework is highly generic and applicable to any alignment and unsupervised joint training methods, it can naturally generalize to contextualized word representations by aligning the fixed outputs of a multilingual encoder such as multilingual BERT (M-BERT) (Devlin et al., 2019). While our vocab reallocation technique is no longer necessary as contextualized representations are dependent on context and thus dynamic, we can still apply alignment refinement on extracted contextualized features for further improvement. For instance, as proposed by Aldarmaki & Diab (2019), one method to perform alignment on contextualized representations is to first use word alignment pairs extracted from parallel corpora as a dictionary, learn an alignment matrix $W$ based on it, and apply $W$ back to the extracted representations. To obtain $W$ , we can solve Eq.( 1) as described in Section 2.1, where the embedding matrices $X _ { L _ { 1 } }$ and $X _ { L _ { 2 } }$ now contain contextualized representations of aligned word pairs. Note that this method is applicable to fixed representations but not finetuning.
|
| 117 |
+
|
| 118 |
+
# 4 EXPERIMENTS
|
| 119 |
+
|
| 120 |
+
We evaluate the proposed approach and compare with alignment and joint training methods on three NLP benchmarks. This evaluation aims to: (1) systematically compare alignment vs. joint training paradigms and reveal their pros and cons discussed in Section 2.3, (2) show that the proposed framework can effectively alleviate limitations of both alignment and joint training, and (3) demonstrate the effectiveness of the proposed framework in both non-contextualized and contextualized settings.
|
| 121 |
+
|
| 122 |
+
# 4.1 EVALUATION TASKS
|
| 123 |
+
|
| 124 |
+
Bilingual Lexicon Induction (BLI) This task has been the de facto evaluation task for CLWE methods. It considers the problem of retrieving the target language translations of source langauge words. We use bilingual dictionaries complied by Conneau et al. (2018a) and test on six diverse language pairs, including Chinese and Russian, which use a different writing script than English. Each test set consists of 1500 queries and we report precision at $^ { l }$ scores $( \mathrm { P } @ 1 )$ , following standard evaluation practices (Conneau et al., 2018a; Glavas et al., 2019).
|
| 125 |
+
|
| 126 |
+
Name Entity Recognition (NER) We also evaluate our proposed framework on cross-lingual NER, a sequence labeling task, where we assign a label to each token in a sequence. We evaluate both non-contextualized and contextualized word representations on the CoNLL 2002 and 2003 benchmarks (Tjong Kim Sang, 2002; Tjong Kim Sang & De Meulder, 2003), which contain 4 European languages. To measure the quality of CLWE, we perform zero-shot cross-lingual classification, where we train a model on English and directly apply it to each of the other 3 languages.
|
| 127 |
+
|
| 128 |
+
Table 1: Precision $@ 1$ for the BLI task on the MUSE dataset6. Within each category, unsupervised methods are listed at the top while supervised methods are at the bottom. The best result for unsupervised methods is underlined while bold signifies the overall best. “IN” refers to iterative normalization proposed in Zhang et al. (2019), “AR” refers to alignment refinement and “VR” refers to vocabulary reallocation.
|
| 129 |
+
|
| 130 |
+
<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan="10">Alignment Methods</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(1)MUSE(Conneau et al.,2018a)</td><td>81.7</td><td>83.3</td><td>82.3</td><td>82.1</td><td>74.0</td><td>72.0</td><td>77.7</td><td>78.2</td><td>44.0</td><td>59.1</td><td>32.5</td><td>31.4</td><td></td><td>66.5</td></tr><tr><td>(2) VECMAP(Artetxe etal.,218a)</td><td>82.3</td><td>84.7</td><td>82.3</td><td>83.6</td><td>75.1</td><td>74.3</td><td>-</td><td>-</td><td>49.2</td><td></td><td>65.6</td><td>0.0</td><td>0.0</td><td>1</td></tr><tr><td>(3)DeMa-BWE(Zhou et al.,2019)</td><td>82.8</td><td>84.9</td><td>83.1</td><td>83.5</td><td>77.2</td><td>74.4</td><td>-</td><td>-</td><td></td><td>49.2</td><td>65.7</td><td>42.5</td><td>37.9</td><td>-</td></tr><tr><td>(4) Procrustes (Smith et al.,2017)</td><td>81.4</td><td>82.9</td><td>81.1</td><td>82.4</td><td>73.5</td><td>72.4</td><td>77.5</td><td>77.9</td><td></td><td>51.7</td><td>63.7</td><td>42.7</td><td>36.7</td><td>68.7</td></tr><tr><td>(5) GeoMM (Jawanpuria et al., 2019)</td><td>81.4</td><td>85.5</td><td>82.1</td><td>84.1</td><td>74.7</td><td>76.7</td><td>77.9</td><td>80.9</td><td></td><td>51.3</td><td>67.6</td><td>49.1</td><td>45.3</td><td>71.4</td></tr><tr><td>(6) RCSLS (Joulin et al.,2018b) (7) RCSLS + IN (Zhang et al., 2019)</td><td>84.1</td><td>86.3</td><td>83.3 83.9</td><td>84.1</td><td>79.1</td><td>76.3</td><td>78.5 79.1</td><td>79.8 -</td><td>57.9</td><td></td><td>67.2</td><td>45.9</td><td>46.4</td><td>72.4</td></tr><tr><td></td><td>83.9</td><td>-</td><td></td><td>-</td><td>78.1</td><td></td><td></td><td></td><td></td><td>57.9</td><td>1</td><td>48.6</td><td>-</td><td>1</td></tr><tr><td colspan="10">Joint Traing Methods</td><td></td><td></td><td>17.9</td><td></td><td></td></tr><tr><td>(8) Unsupervised Joint</td><td>33.4</td><td>36.6</td><td>42.2</td><td>47.4</td><td>39.5</td><td>41.4</td><td>36.8</td><td>38.8</td><td>4.0</td><td>3.5</td><td></td><td>10.2</td><td></td><td>29.3</td></tr><tr><td>(9) Supervised Joint (Duong et al.,2016)</td><td>79.7</td><td>79.8</td><td>78.1</td><td>76.7</td><td>67.5</td><td>68.9</td><td>74.4</td><td>74.1</td><td>41.8</td><td></td><td>51.8</td><td>46.7</td><td></td><td>65.2</td></tr><tr><td>(10) Joint - Replace</td><td>48.2</td><td>47.7</td><td>49.4</td><td>52.1</td><td>46.5</td><td>46.9</td><td>43.8</td><td>45.8</td><td></td><td>20.3</td><td>36.6</td><td>32.7</td><td>43.3 34.1</td><td>42.0</td></tr><tr><td colspan="10">Joint Align Framework</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(11) Joint_Align (w/o AR)</td><td>55.9</td><td>62.8</td><td>61.8</td><td>67.0</td><td>49.1</td><td>54.6</td><td>50.2</td><td>51.4</td><td>8.7</td><td></td><td>8.2</td><td>19.4</td><td></td><td>42.3</td></tr><tr><td>(12) Joint_Align+MUSE</td><td>81.4</td><td>84.2</td><td>82.8</td><td>83.6</td><td>74.2</td><td>72.2</td><td>77.5</td><td>81.5</td><td>45.0</td><td></td><td>58.3</td><td>36.1</td><td>18.2 35.3</td><td>67.7</td></tr><tr><td>(13)Joint_Align+RCSLS(w/o VR)</td><td>34.2</td><td>37.0</td><td>41.2</td><td>46.8</td><td>34.0</td><td>35.6</td><td>35.3</td><td>35.1</td><td></td><td>7.7</td><td>5.2</td><td>20.2</td><td>15.7</td><td>29.0</td></tr><tr><td>(14)Joint_Align+GeoMM</td><td>82.6</td><td>85.7</td><td>82.5</td><td>84.2</td><td>75.5</td><td>77.2</td><td>78.2</td><td>81.4</td><td></td><td>52.4</td><td>67.7</td><td>50.4</td><td>46.5</td><td>72.0</td></tr><tr><td>(15) Joint_Align + RCSLS</td><td>84.7</td><td>87.9</td><td>83.5</td><td>85.6</td><td>79.6</td><td>78.0</td><td>80.6</td><td>84.0</td><td></td><td>59.8</td><td>67.8</td><td>54.3</td><td>48.7</td><td>74.5</td></tr></table>
|
| 131 |
+
|
| 132 |
+
Unsupervised Machine Translation (UMT) Lastly, we test our approach using the unsupervised MT task, on which the initialization of CLWE plays a crucial role (Lample et al., 2018b). Note that our purpose here is to directly compare with similar studies in Lample et al. (2018b), and thus we follow their settings and consider two language pairs, English-French and English-German, and evaluate on the widely used WMT’14 en-fr and WMT’16 en-de benchmarks.
|
| 133 |
+
|
| 134 |
+
# 4.2 EXPERIMENTAL SETUP
|
| 135 |
+
|
| 136 |
+
For the BLI task, we compare our framework to recent state-of-the-art methods. We obtain numbers from the corresponding papers or Zhou et al. (2019), and use the official tools for MUSE (Conneau et al., 2018a), GeoMM (Jawanpuria et al., 2019) and RCSLS (Joulin et al., 2018b) to obtain missing results. We consider the method of Duong et al. (2016) for supervised joint training based on bilingual dictionaries, which is comparable to supervised alignment methods in terms of resources used. For unsupervised joint training, we train uncased joint fastText word vectors of dimension 300 on concatenated Wikipedia corpora of each language pair with default parameters. The hyperparameter $\gamma$ is selected from $\{ 0 . 7 , \bar { 0 } . 8 , 0 . 9 , 0 . 9 5 \}$ on validation sets. For the alignment refinement step in our proposed framework, we use RCSLS and GeoMM to compare with supervised methods, and MUSE for unsupervised methods. In addition, we include an additional baseline of joint training, denoted as Joint - Replace, which is identical to unsupervised joint training except that it utilizes a seed dictionary to randomly replace words with their translations in the training corpus. Following standard practices, we consider the top $2 0 0 \mathrm { k }$ most frequent words and use the crossdomain similarity local scaling (CSLS) (Conneau et al., 2018a) as the retrieval criteria. Note that a concurrent work (Artetxe et al., 2019) proposed a new retrieval method based on MT systems and produced state-of-the-art results. Although their method is applicable to our framework, it has high computational cost and is out of the scope of this work.
|
| 137 |
+
|
| 138 |
+
For the NER task: (1) For non-contextualized representations, we train embeddings the same way as in the BLI task and use a vanilla Bi-LSTM-CRF model (Lample et al., 2016). For all alignment steps, we apply the supervised Procrustes method using dictionaries from the MUSE library for simplicity. (2) For contextualized representations, we use M-BERT, an unsupervised joint training model, as our base model and apply our proposed framework on it by first aligning its extracted features and then feeding them to a task-specific model (M-BERT Feature $^ +$ Align). Specifically, we use the sum of the last $4 \mathbf { M }$ -BERT layers’ outputs as the extracted features. To obtain the alignment matrices, one for each layer, we use 30k parallel sentences from the Europarl corpus for each language pair and follow the procedure of Section 3.2. We feed the extracted features as inputs to a task-specific model with 2 Bi-LSTM layers and a CRF layer (see appendix A). We compare our framework to both finetuning (M-BERT Finetune), which has been studied by previous papers, and feature extraction (M-BERT Feature). Lastly, we also compare against XLM, a supervised joint training model.
|
| 139 |
+
|
| 140 |
+
Table 2: Precision $@ 1$ for the BLI task on the MUSE dataset with test pairs of same surface form removed. The best result for unsupervised methods is underlined while bold signifies the overall best.
|
| 141 |
+
|
| 142 |
+
<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan="10"></td><td></td><td></td><td></td><td></td></tr><tr><td>(1) MUSE(Conneau et al.,2018a)</td><td>77.1</td><td>82.5</td><td>76.4</td><td>Unsupervised 78.0</td><td>674</td><td>67.8 10.5</td><td>72.5 78</td><td>77.5</td><td>42.7</td><td>50.2</td><td>28.7</td><td>29.1</td><td>62.5</td></tr><tr><td>(2) Unsupervised Joint</td><td>3.7</td><td>10.2</td><td>5.1</td><td>10.7</td><td>8.5</td><td></td><td></td><td>8.1</td><td>0.4</td><td>2.7</td><td>2.5</td><td>6.4</td><td>6.4</td></tr><tr><td>(3) Joint_Align + MUSE</td><td>77.5</td><td>83.0</td><td>770</td><td>79.5</td><td>66.7</td><td>68.0</td><td>70.9</td><td>78.0</td><td>43.5</td><td>55.1</td><td>32.3</td><td>32.7</td><td>63.7</td></tr><tr><td></td><td></td><td></td><td></td><td>Supervised</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(4) RCSLS (Joulin et al.,2018b) 78.0</td><td></td><td>83.9</td><td>76.0</td><td>78.6</td><td>68.2</td><td>68.4</td><td>71.8</td><td>78.2</td><td>50.7</td><td>56.9</td><td>51.0</td><td>41.7</td><td>67.0</td></tr><tr><td>(5) Supervised Joint (Duong et al.,2016)</td><td>76.8</td><td>80.8</td><td>73.4</td><td>76.1</td><td>60.1</td><td>61.7</td><td>69.7</td><td>76.2</td><td>41.0</td><td>51.8</td><td>52.3</td><td>43.3</td><td>63.6</td></tr><tr><td>(6) Joint_Align + RCSLS</td><td>82.1</td><td>84.6</td><td>78.1</td><td>80.4</td><td>68.4</td><td>70.4</td><td>73.7</td><td>79.0</td><td>59.0</td><td>66.8</td><td>51.4</td><td>45.7</td><td>70.0</td></tr></table>
|
| 143 |
+
|
| 144 |
+
For the UMT task, we use the exact same data, architecture and parameters released by Lample et al.
|
| 145 |
+
(2018b)7. We simply use different embeddings trained with the same data as inputs to the model.
|
| 146 |
+
|
| 147 |
+
# 4.3 RESULTS AND ANALYSIS
|
| 148 |
+
|
| 149 |
+
# 4.3.1 ALIGNMENT VS. JOINT TRAINING
|
| 150 |
+
|
| 151 |
+
We compare alignment methods with joint training on all three downstream tasks. As shown in Table 1 and Table 3, we find alignment methods significantly outperform the joint training approach by a large margin in all language pairs for both BLI and NER. However, the unsupervised joint training method is superior than its alignment counterpart on the unsupervised MT task as demonstrated in 2(c). While these results demonstrate that their relative performance is task-dependent, we conduct further analysis to reveal three limitations as discussed in Sec 2.3.
|
| 152 |
+
|
| 153 |
+
First, their poor performance on BLI and NER tasks shows that unsupervised joint training fails to generate high-quality alignments due to the lack of a fine-grained seed dictionary as discussed in its limitation 2. To evaluate accuracy on words that are not shared, we further remove test pairs of the same surface form (e.g. (hate, hate) as a test pair for en-de) of the BLI task and report their results in Table 2. We find unsupervised joint training (row 2) to achieve extremely low scores which shows that emebddings of non-shared parts are poorly aligned, consistent with the PCA visualization shown in Figure 1.
|
| 154 |
+
|
| 155 |
+
Moreover, we delve into the relative performance of the two paradigms on the MT task by plotting their test BLEU scores of the first 20 epochs in Figure 2(a) and 2(b). We observe that the alignment method actually obtains higher BLEU scores in the first few epochs, but gets surpassed by joint training in later epochs. This shows the importance of parameter sharing as discussed in limitation 1 of alignment methods: shared words can be used as a cross-lingual constraint for unsupervised joint training during fine-tuning but this constraint cannot easily be used in alignment methods. The lack of sharing is also a limitation for the supervised joint training method, which performs poorly on the MT task even with supervision as shown in Figure 2(c).
|
| 156 |
+
|
| 157 |
+
Lastly, we demonstrate that oversharing can be sub-optimal for unsupervised joint training as discussed in its limitation 2. Specifically, we conduct ablation studies for our framework in Table 1. Applying alignment refinement on unsupervised joint training without any vocabulary reallocation does not improve its performance (row 13). On the other hand, simple vocabulary reallocation alone boosts the performance by quite a margin (row 11). This shows some words are shared erroneously across languages in unsupervised joint training, thereby hindering its performance. In addition, while utilizing a seed dictionary (row 10) improves the performance of unsupervised joint train
|
| 158 |
+
|
| 159 |
+
Table 3: F1 score for the crosslingual NER task. “Adv” refers to adversarial training. ‡ denotes results that are not directly comparable due to different resources and architectures used. ∗ denotes supervised XLM model trained with MLM and TLM objectives. Its Dutch (nl) result is blank because the model is not pretrained on it. Bold signifies state-of-the-art results. We report the average of 5 runs.
|
| 160 |
+
|
| 161 |
+
<table><tr><td></td><td>es</td><td>nl</td><td>de</td><td>avg</td></tr><tr><td colspan="5">Non-contextualized</td></tr><tr><td>Unsupervised Joint</td><td>50.28</td><td>42.77</td><td>21.49</td><td>38.18</td></tr><tr><td>Supervised Joint (Duong et al.,2016)</td><td>63.16</td><td>63.60</td><td>36.24</td><td>54.33</td></tr><tr><td>Joint- Replace</td><td>65.28</td><td>68.44</td><td>51.59</td><td>61.77</td></tr><tr><td>Align</td><td>69.00</td><td>71.33</td><td>52.17</td><td>64.17</td></tr><tr><td>Joint_Align</td><td>70.46</td><td>72.10</td><td>56.47</td><td>66.34</td></tr><tr><td>Xie et al. (2018)</td><td>71.67</td><td>70.90</td><td>57.43</td><td>66.67</td></tr><tr><td>Chen et al. (2019)‡</td><td>73.50</td><td>72.40</td><td>56.00</td><td>67.30</td></tr><tr><td colspan="5">Contextualized</td></tr><tr><td>XLMFinetune (Lample& Conneau,2019)*</td><td>63.18</td><td>-</td><td>67.55</td><td>-</td></tr><tr><td>M-BERT Finetune (Pires et al., 2019)</td><td>73.59</td><td>77.36</td><td>69.74</td><td>73.56</td></tr><tr><td>M-BERT Finetune (Wu& Dredze,2019)</td><td>74.96</td><td>77.57</td><td>69.56</td><td>74.03</td></tr><tr><td>M-BERT Finetune (Keung et al., 2019)</td><td>75.00</td><td>77.50</td><td>68.60</td><td>73.70</td></tr><tr><td>M-BERT Finetune + Adv (Keung et al.,2019)</td><td>74.30</td><td>77.60</td><td>71.90</td><td>74.60</td></tr><tr><td>M-BERT Feature</td><td>74.23</td><td>78.65</td><td>67.63</td><td>73.50</td></tr><tr><td>M-BERT Feature + Align</td><td>75.77</td><td>79.03</td><td>70.54</td><td>75.11</td></tr></table>
|
| 162 |
+
|
| 163 |
+
ing, it still suffers from the oversharing problem and performs worse compared to supervised joint training (row 9).
|
| 164 |
+
|
| 165 |
+
# 4.3.2 EVALUATION OF PROPOSED FRAMEWORK
|
| 166 |
+
|
| 167 |
+
As shown in Table 1, Table 3, and Figure 2, our proposed framework substantially improves over the alignment and joint training baselines on all three tasks. In particular, it outperforms existing methods on all language pairs for the BLI task (using the CSLS as retrieval metric) and achieves state-of-the-art results on 2 out of 3 language pairs for the NER task. Besides, we show that it alleviates limitations of alignment and joint training methods shown in the previous section.
|
| 168 |
+
|
| 169 |
+
First, the proposed framework largely improves the poor alignment of unsupervised joint training, especially for non-sharing parts. As shown in Table 1, the proposed Joint Align framework achieves comparable results to prior methods in the unsupervised case (row 12) and it outperforms previous state-of-the-art methods in the supervised setting (row 15). Specifically, our proposed framework can generate well-aligned embeddings after alignment refinement is applied to the initially ill-aligned embeddings, as demonstrated in Figure 1. This is further verified by results in Table 2, where our proposed framework largely improves accuracy on words not shared between two languages over the unsupervised joint training baseline (row 3 and 6 vs row 2).
|
| 170 |
+
|
| 171 |
+
Besides, our ablation study in Table 1 further shows the effectiveness of the proposed vocabulary reallocation technique, which alleviates the issue of oversharing. Particularly, we observe no improvement compared to unsupervised joint training baseline (row 8) when an alignment refinement step is used without vocabulary reallocation (row 13), while a vocabulary reallocation step alone significantly improves the performance (row 11). This is consistent with Figure 1 and shows that the oversharing is a bottleneck for applying alignment methods to joint training. It also suggests detecting what to share is crucial to achieve better cross-lingual transfer.
|
| 172 |
+
|
| 173 |
+
Lastly, while supervised joint training shares the limitation 1 of alignment methods and performs poorly when finetuned, our proposed framework exploits the same idea of vocabulary sharing used in unsupervised joint training. In the MT tasks, our framework obtains a maximum gain of 2.97 BLEU over baselines we ran and consistently performs better than results reported in Lample et al. (2018b). In addition, Figure 2 shows that Joint Align not only converges faster in earlier training epochs but also consistently outperforms the two baselines thereafter. These empirical findings demonstrate the effectiveness of our proposed methods in the non-contextualized case.
|
| 174 |
+
|
| 175 |
+
# 4.3.3 CONTEXTUALIZED WORD REPRESENTATIONS
|
| 176 |
+
|
| 177 |
+
As can be seen in Table 3, when using our framework (M-BERT Feature $^ +$ Align), we achieve state-of-the-art results on cross-lingual NER on 2 out of 3 languages and the overall average. This shows that our framework can effectively generalize to contextualized representations. Specifically, our framework improves over both the M-BERT feature extraction and finetuning baselines on all three language pairs. However, when compared to non-contextualized results, the gain of using alignment refinement on top of unsupervised joint training is much smaller. This suggests that, as the contextualized unsupervised joint training model performs very well already even without any supervision, it is harder to achieve large improvements. While alignment refinement relies on word alignment, a process that is noisy itself, a better alignment approach may be warranted. Lastly, the reason why a supervised joint training model, XLM, performs worse than its unsupervised counterpart, M-BERT, is likely that XLM uses an uncased vocabulary, where casing information is important for NER tasks.
|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
Figure 2: (a)(b): Results on MT of Align, Joint and our framework for the first 20 training epochs. Results after 20 epochs have similar patterns. (c): BLEU scores for the MT task. Results evaluated on the WMT’14 English-French and WMT’16 German-English. All training settings are the same for each language pair except the embedding initialization. Note that we are not trying to outperform state-of-the-art methods (Song et al., 2019) but rather to observe improvements afforded by embedding initialization. †Results reported by Lample et al. (2018b). Our results are obtained using the official code released by the author. ‡Duong et al. (2016) is a supervised method that we include for analysis purpose only and is not directly comparable to other results in this table.
|
| 181 |
+
|
| 182 |
+
# 5 RELATED WORK
|
| 183 |
+
|
| 184 |
+
Word embeddings (Mikolov et al., 2013a; Ruder et al., 2019) are a key ingredient to achieving success in monolingual NLP tasks. However, directly using word embeddings independently trained for each language may cause negative transfer (Wang et al., 2019) in cross-lingual transfer tasks. In order to capture the cross-lingual mapping, a rich body of existing work relying on cross-lingual supervision, including bilingual dictionaries (Mikolov et al., 2013a; Faruqui & Dyer, 2014; Artetxe et al., 2016; Xing et al., 2015; Duong et al., 2016; Gouws & Søgaard, 2015; Joulin et al., 2018a), sentence-aligned corpora (Kocisk ˇ y et al., 2014; Hermann & Blunsom, 2014; Gouws et al., 2015) \` and document-aligned corpora (Vulic & Moens, 2016; Søgaard et al., 2015). ´
|
| 185 |
+
|
| 186 |
+
Besides, unsupervised alignment methods aim to eliminate the requirement for cross-lingual supervision. Early work of Cao et al. (2016) matches the mean and the standard deviation of two embedding spaces after alignment. Barone (2016); Zhang et al. (2017a;b); Conneau et al. (2018a) adapted a generative adversarial network (GAN) (Goodfellow et al., 2014) to make the distributions of two word embedding spaces indistinguishable. Follow-up works improve upon GAN-based training for better stability and robustness by introducing Sinkhorn distance (Xu et al., 2018), by stochastic self-training (Artetxe et al., 2018a), or by introducing latent variables (Dou et al., 2018).
|
| 187 |
+
|
| 188 |
+
While alignment methods utilize embeddings trained independently on different languages, joint training methods train word embeddings at the same time. Klementiev et al. (2012) train a bilingual dictionary-based regularization term jointly with monolingual language model objectives while Kocisk ˇ y et al. (2014) defines the cross-lingual regularization with the parallel corpus. Another \` branch of methods (Xiao & Guo, 2014; Gouws & Søgaard, 2015; Ammar et al., 2016; Duong et al., 2016) build a pseudo-bilingual corpus by randomly replacing words in monolingual corpus with their translations and use monolingual word embedding algorithms to induce bilingual representations. The unsupervised joint method by Lample & Conneau (2019) simply exploit words that share the same surface form as bilingual “supervision” and directly train a shared set of embedding with joint vocabulary. Recently, unsupervised joint training of contextualized word embeddings through the form of multilingual language model pretraining using shared subword vocabularies has produced state-of-the-art results on various benchmarks (Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019; Pires et al., 2019; Wu & Dredze, 2019).
|
| 189 |
+
|
| 190 |
+
A concurrent work by Ormazabal et al. (2019) also compares alignment and joint method in the bilingual lexicon induction task. Different from their setup which only tests on supervised settings, we conduct analysis across various tasks and experiment with both supervised and unsupervised conditions. While Ormazabal et al. (2019) suggests that the combination of the alignment and joint model could potentially advance the state-of-art of both worlds, we propose such a framework and empirically verify its effectiveness on various tasks and settings.
|
| 191 |
+
|
| 192 |
+
# 6 CONCLUSION
|
| 193 |
+
|
| 194 |
+
In this paper, we systematically compare the alignment and joint training methods for CLWE. We point out that the nature of each category of methods leads to certain strengths and limitations. The empirical experiments on extensive benchmark datasets and various NLP tasks verified our analysis. To further improve the state-of-art of CLWE, we propose a simple hybrid framework which combines the strength from both worlds and achieves significantly better performance in the BLI, MT and NER tasks. Our work opens a promising new direction that combines two previously exclusive lines of research. For future work, an interesting direction is to find a more effective word sharing strategy.
|
| 195 |
+
|
| 196 |
+
Acknowledgments: This research was sponsored by Defense Advanced Research Projects Agency Information Innovation Office (I2O) under the Low Resource Languages for Emergent Incidents (LORELEI) program, issued by DARPA/I2O under Contract No. HR0011-15-C0114. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. government. The U.S. government is authorized to reproduce and distribute reprints for government purposes notwithstanding any copyright notation here on.
|
| 197 |
+
|
| 198 |
+
# REFERENCES
|
| 199 |
+
|
| 200 |
+
Oliver Adams, Adam Makarucha, Graham Neubig, Steven Bird, and Trevor Cohn. Cross-lingual word embeddings for low-resource language modeling. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pp. 937–947, Valencia, Spain, April 2017. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/E17-1088.
|
| 201 |
+
Wasi Uddin Ahmad, Zhisong Zhang, Xuezhe Ma, Eduard Hovy, Kai-Wei Chang, and Nanyun Peng. On difficulties of cross-lingual transfer with order differences: A case study on dependency parsing. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1811.00570.
|
| 202 |
+
Hanan Aldarmaki and Mona Diab. Context-aware cross-lingual mapping. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1903.03243.
|
| 203 |
+
Waleed Ammar, George Mulcaire, Yulia Tsvetkov, Guillaume Lample, Chris Dyer, and Noah A Smith. Massively multilingual word embeddings. arXiv preprint arXiv:1602.01925, 2016.
|
| 204 |
+
Mikel Artetxe and Holger Schwenk. Massively multilingual sentence embeddings for zero-shot cross-lingual transfer and beyond. Transactions of the Association for Computational Linguistics, 7:597–610, 2019.
|
| 205 |
+
Mikel Artetxe, Gorka Labaka, and Eneko Agirre. Learning principled bilingual mappings of word embeddings while preserving monolingual invariance. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2289–2294, 2016.
|
| 206 |
+
Mikel Artetxe, Gorka Labaka, and Eneko Agirre. A robust self-learning method for fully unsupervised cross-lingual mappings of word embeddings. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 789–798, 2018a.
|
| 207 |
+
Mikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. In International Conference on Learning Representations, 2018b. URL https: //openreview.net/forum?id=Sy2ogebAW.
|
| 208 |
+
|
| 209 |
+
Mikel Artetxe, Gorka Labaka, and Eneko Agirre. Bilingual lexicon induction through unsupervised machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 5002–5007, 2019.
|
| 210 |
+
|
| 211 |
+
Antonio Valerio Miceli Barone. Towards cross-lingual distributed representations without parallel text trained with adversarial autoencoders. In Proceedings of the 1st Workshop on Representation Learning for NLP, pp. 121–126, 2016.
|
| 212 |
+
|
| 213 |
+
Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:135–146, 2017.
|
| 214 |
+
|
| 215 |
+
Hailong Cao, Tiejun Zhao, Shu ZHANG, and Yao Meng. A distribution-based model to learn bilingual word embeddings. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pp. 1818–1827, Osaka, Japan, December 2016. The COLING 2016 Organizing Committee. URL https://www.aclweb.org/ anthology/C16-1171.
|
| 216 |
+
|
| 217 |
+
Xilun Chen, Ahmed Hassan Awadallah, Hany Hassan, Wei Wang, and Claire Cardie. Multisource cross-lingual model transfer: Learning what to share. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3098–3112, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1299. URL https://www.aclweb.org/anthology/P19-1299.
|
| 218 |
+
|
| 219 |
+
Alexis Conneau, Guillaume Lample, Marc’Aurelio Ranzato, Ludovic Denoyer, and Herve J ´ egou.´ Word translation without parallel data. In International Conference on Learning Representations (ICLR), 2018a.
|
| 220 |
+
|
| 221 |
+
Alexis Conneau, Ruty Rinott, Guillaume Lample, Adina Williams, Samuel R. Bowman, Holger Schwenk, and Veselin Stoyanov. Xnli: Evaluating cross-lingual sentence representations. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2018b.
|
| 222 |
+
|
| 223 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019.
|
| 224 |
+
|
| 225 |
+
Zi-Yi Dou, Zhi-Hao Zhou, and Shujian Huang. Unsupervised bilingual lexicon induction via latent variable models. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 621–626, 2018.
|
| 226 |
+
|
| 227 |
+
Long Duong, Hiroshi Kanayama, Tengfei Ma, Steven Bird, and Trevor Cohn. Learning crosslingual word embeddings without bilingual corpora. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1285–1295, 2016.
|
| 228 |
+
|
| 229 |
+
Chris Dyer, Victor Chahuneau, and Noah A. Smith. A simple, fast, and effective reparameterization of IBM model 2. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 644–648, Atlanta, Georgia, June 2013. Association for Computational Linguistics.
|
| 230 |
+
|
| 231 |
+
Manaal Faruqui and Chris Dyer. Improving vector space word representations using multilingual correlation. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, pp. 462–471, 2014.
|
| 232 |
+
|
| 233 |
+
Goran Glavas, Robert Litschko, Sebastian Ruder, and Ivan Vulic. How to (properly) evaluate crosslingual word embeddings: On strong baselines, comparative analyses, and some misconceptions. arXiv preprint arXiv:1902.00508, 2019.
|
| 234 |
+
|
| 235 |
+
Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
|
| 236 |
+
|
| 237 |
+
Stephan Gouws and Anders Søgaard. Simple task-specific bilingual word embeddings. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1386–1390, 2015.
|
| 238 |
+
|
| 239 |
+
Stephan Gouws, Yoshua Bengio, and Greg Corrado. Bilbowa: Fast bilingual distributed representations without word alignments. In International Conference on Machine Learning, pp. 748–756, 2015.
|
| 240 |
+
|
| 241 |
+
Karl Moritz Hermann and Phil Blunsom. Multilingual models for compositional distributed semantics. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 58–68, 2014.
|
| 242 |
+
|
| 243 |
+
Pratik Jawanpuria, Arjun Balgovind, Anoop Kunchukuttan, and Bamdev Mishra. Learning multilingual word embeddings in latent metric space: a geometric approach. Transactions of the Association for Computational Linguistics, 7:107–120, 2019.
|
| 244 |
+
|
| 245 |
+
Armand Joulin, Piotr Bojanowski, Tomas Mikolov, Herve J´ egou, and Edouard Grave. Loss in´ translation: Learning bilingual word mapping with a retrieval criterion. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2979–2984, Brussels, Belgium, October-November 2018a. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/D18-1330.
|
| 246 |
+
|
| 247 |
+
Armand Joulin, Piotr Bojanowski, Tomas Mikolov, Herve J ´ egou, and Edouard Grave. Loss in trans- ´ lation: Learning bilingual word mapping with a retrieval criterion. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2979–2984, 2018b.
|
| 248 |
+
|
| 249 |
+
Phillip Keung, Yichao Lu, and Vikas Bhardwaj. Adversarial learning with contextual embeddings for zero-resource cross-lingual classification and ner. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), November 2019. URL https: //arxiv.org/abs/1909.00153.
|
| 250 |
+
|
| 251 |
+
Alexandre Klementiev, Ivan Titov, and Binod Bhattarai. Inducing crosslingual distributed representations of words. In Proceedings of COLING 2012, pp. 1459–1474, Mumbai, India, December 2012. The COLING 2012 Organizing Committee. URL https://www.aclweb.org/ anthology/C12-1089.
|
| 252 |
+
|
| 253 |
+
Toma´s Ko ˇ cisk ˇ y, Karl Moritz Hermann, and Phil Blunsom. Learning bilingual word representations \` by marginalizing alignments. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 224–229, 2014.
|
| 254 |
+
|
| 255 |
+
Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. In Proceedings of NeurIPS, 2019.
|
| 256 |
+
|
| 257 |
+
Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. Neural architectures for named entity recognition. In Kevin Knight, Ani Nenkova, and Owen Rambow (eds.), NAACL, pp. 260–270. The Association for Computational Linguistics, 2016. ISBN 978-1-941643-91-4. URL http://aclweb.org/anthology/N/N16/ N16-1030.pdf.
|
| 258 |
+
|
| 259 |
+
Guillaume Lample, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Unsupervised machine translation using monolingual corpora only. In International Conference on Learning Representations, 2018a. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ rkYTTf-AZ.
|
| 260 |
+
|
| 261 |
+
Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, et al. Phrase-based & neural unsupervised machine translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 5039–5049, 2018b.
|
| 262 |
+
|
| 263 |
+
Thang Luong, Hieu Pham, and Christopher D Manning. Bilingual word representations with monolingual quality in mind. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, pp. 151–159, 2015.
|
| 264 |
+
|
| 265 |
+
Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. ICLR, 2013a.
|
| 266 |
+
|
| 267 |
+
Tomas Mikolov, Quoc V Le, and Ilya Sutskever. Exploiting similarities among languages for machine translation. arXiv preprint arXiv:1309.4168, 2013b.
|
| 268 |
+
|
| 269 |
+
Aitor Ormazabal, Mikel Artetxe, Gorka Labaka, Aitor Soroa, and Eneko Agirre. Analyzing the limitations of cross-lingual word embedding mappings. arXiv preprint arXiv:1906.05407, 2019.
|
| 270 |
+
|
| 271 |
+
Barun Patra, Joel Ruben Antony Moniz, Sarthak Garg, Matthew R. Gormley, and Graham Neubig. Bilingual lexicon induction with semi-supervision in non-isometric embedding spaces. In The 57th Annual Meeting of the Association for Computational Linguistics (ACL), Florence, Italy, July 2019. URL https://www.aclweb.org/anthology/P19-1018.
|
| 272 |
+
|
| 273 |
+
Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pp. 1532–1543, 2014.
|
| 274 |
+
|
| 275 |
+
Telmo Pires, Eva Schlinger, and Dan Garrette. How multilingual is multilingual bert? In The 57th Annual Meeting of the Association for Computational Linguistics (ACL), July 2019. URL https://arxiv.org/abs/1906.01502.
|
| 276 |
+
|
| 277 |
+
Sebastian Ruder, Ivan Vulic, and Anders Søgaard. A survey of cross-lingual word embedding mod- ´ els. Journal of Artificial Intelligence Research, 65:569–631, 2019.
|
| 278 |
+
|
| 279 |
+
Tal Schuster, Ori Ram, Regina Barzilay, and Amir Globerson. Cross-lingual alignment of contextual word embeddings, with applications to zero-shot dependency parsing. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1902.09492.
|
| 280 |
+
|
| 281 |
+
Samuel L. Smith, David H. P. Turban, Steven Hamblin, and Nils Y. Hammerla. Offline bilingual word vectors, orthogonal transformations and the inverted softmax. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ r1Aab85gg.
|
| 282 |
+
|
| 283 |
+
Anders Søgaard, Zeljko Agi ˇ c, H ´ ector Mart ´ ´ınez Alonso, Barbara Plank, Bernd Bohnet, and Anders Johannsen. Inverted indexing for cross-lingual nlp. In The 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference of the Asian Federation of Natural Language Processing (ACL-IJCNLP 2015), 2015.
|
| 284 |
+
|
| 285 |
+
Anders Søgaard, Sebastian Ruder, and Ivan Vulic. On the limitations of unsupervised bilin- ´ gual dictionary induction. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 778–788, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-1072. URL https: //www.aclweb.org/anthology/P18-1072.
|
| 286 |
+
|
| 287 |
+
Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. Mass: Masked sequence to sequence pre-training for language generation. In International Conference on Machine Learning, pp. 5926–5936, 2019.
|
| 288 |
+
|
| 289 |
+
Erik F. Tjong Kim Sang. Introduction to the CoNLL-2002 shared task: Language-independent named entity recognition. In CoNLL, pp. 1–4, 2002. doi: 10.3115/1118853.1118877. URL https://doi.org/10.3115/1118853.1118877.
|
| 290 |
+
|
| 291 |
+
Erik F Tjong Kim Sang and Fien De Meulder. Introduction to the CoNLL-2003 shared task: Language-independent named entity recognition. In CoNLL, pp. 142–147, 2003.
|
| 292 |
+
|
| 293 |
+
Ivan Vulic and Marie-Francine Moens. Bilingual distributed word representations from document- ´ aligned comparable data. Journal of Artificial Intelligence Research, 55:953–994, 2016.
|
| 294 |
+
|
| 295 |
+
Zirui Wang, Zihang Dai, Barnabas P ´ oczos, and Jaime Carbonell. Characterizing and avoiding nega- ´ tive transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11293–11302, 2019.
|
| 296 |
+
|
| 297 |
+
Shijie Wu and Mark Dredze. Beto, bentz, becas: The surprising cross-lingual effectiveness of BERT. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), November 2019. URL https://arxiv.org/abs/1904.09077.
|
| 298 |
+
|
| 299 |
+
Min Xiao and Yuhong Guo. Distributed word representation learning for cross-lingual dependency parsing. In Proceedings of the Eighteenth Conference on Computational Natural Language Learning, pp. 119–129, 2014.
|
| 300 |
+
|
| 301 |
+
Jiateng Xie, Zhilin Yang, Graham Neubig, Noah A Smith, and Jaime Carbonell. Neural crosslingual named entity recognition with minimal resources. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 369–379, 2018.
|
| 302 |
+
|
| 303 |
+
Chao Xing, Dong Wang, Chao Liu, and Yiye Lin. Normalized word embedding and orthogonal transform for bilingual word translation. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1006–1011, 2015.
|
| 304 |
+
|
| 305 |
+
Ruochen Xu, Yiming Yang, Naoki Otani, and Yuexin Wu. Unsupervised cross-lingual transfer of word embedding spaces. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2465–2474, 2018.
|
| 306 |
+
|
| 307 |
+
Meng Zhang, Yang Liu, Huanbo Luan, and Maosong Sun. Adversarial training for unsupervised bilingual lexicon induction. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1959–1970, 2017a.
|
| 308 |
+
|
| 309 |
+
Meng Zhang, Yang Liu, Huanbo Luan, and Maosong Sun. Earth mover’s distance minimization for unsupervised bilingual lexicon induction. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1934–1945, 2017b.
|
| 310 |
+
|
| 311 |
+
Mozhi Zhang, Keyulu Xu, Ken-ichi Kawarabayashi, Stefanie Jegelka, and Jordan Boyd-Graber. Are girls neko or $\mathrm { s h } \backslash =$ ojo? cross-lingual alignment of non-isomorphic embeddings with iterative normalization. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 31803189, 2019.
|
| 312 |
+
|
| 313 |
+
Chunting Zhou, Xuezhe Ma, Di Wang, and Graham Neubig. Density matching for bilingual word embedding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 1588–1598, 2019.
|
| 314 |
+
|
| 315 |
+
Will Y. Zou, Richard Socher, Daniel Cer, and Christopher D. Manning. Bilingual word embeddings for phrase-based machine translation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 1393–1398, Seattle, Washington, USA, October 2013. Association for Computational Linguistics. URL https://www.aclweb.org/ anthology/D13-1141.
|
| 316 |
+
|
| 317 |
+
# APPENDIX
|
| 318 |
+
|
| 319 |
+
# A NER EXPERIMENT DETAILS
|
| 320 |
+
|
| 321 |
+
Here we include some additional details for the NER experiments with contextualized representations:
|
| 322 |
+
|
| 323 |
+
• Alignment As described in Section 3.2, we apply word alignment methods, such as fastalign (Dyer et al., 2013), on parallel data to extract word-aligned pairs for learning the alignment matrix. As M-BERT is based on subword tokens, we use the average of the representations of all subword tokens that correspond to a word as the representation for that word. For instance, assume that an English word “Resumption” is aligned to a German word “Wiederaufnahme”, and they are tokenized by M-BERT as “Res”, “##sumption”, and “Wie”, “##dera”, “##uf”, “##nahme”, respectively. Then the representation for “Resumption” is the average of the representations of subword tokens “Res” and “##sumption”, and the same goes for “Wiederaufnahme”. • Hyperparameters For the task-specific NER model, we use a 2-layer Bi-LSTM with a hidden size of 768 followed by a CRF layer. We apply a dropout rate of 0.5 on the input and the output of the Bi-LSTM, and use Adam with default parameters and a learning rate of 0.0001 for optimization. We train the model for 40 epochs with a batch size of 10, and evaluate the model per 150 steps. For prediction, we feed the outputs of the Bi-LSTM that correspond to the first subword tokens of each word to the CRF model. This is identical to finetuning BERT on the NER task, except that in our case the outputs that correspond to the first subword token are fed into a CRF, rather than a linear layer as done in BERT.
|
| 324 |
+
|
| 325 |
+
Table 4: Precision $@ 1$ for the BLI task on the MUSE dataset using test set produced by vocabulary reallocation. Within each category, unsupervised methods are listed at the top while supervised methods are at the bottom. Bold signifies the overall best results. “AR” refers to alignment refinement and “VR” refers to vocabulary reallocation.
|
| 326 |
+
|
| 327 |
+
<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan="10">Alignment Methods</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(1) MUSE(Conneau et al.,2018a)</td><td>82.1</td><td>83.5</td><td>82.6</td><td>83.1</td><td>74.1</td><td>71.8</td><td>77.4</td><td>79.8</td><td>44.1</td><td>59.1</td><td>34.1</td><td>31.6</td><td>66.9</td></tr><tr><td>(4) Procrustes (Smith et al.,2017)</td><td>81.6</td><td>82.0</td><td>80.5</td><td>81.5</td><td>74.2</td><td>73.3</td><td>77.0</td><td>77.8</td><td>50.8</td><td>63.5</td><td>44.2</td><td>37.0</td><td>68.6</td></tr><tr><td>(5) GeoMM (Jawanpuria et al., 2019)</td><td>82.1</td><td>86.9</td><td>82.3</td><td>85.1</td><td>75.3</td><td>77.2</td><td>78.6</td><td>82.2</td><td>51.7</td><td>67.8</td><td>50.5</td><td>45.6</td><td>72.1</td></tr><tr><td>(6) RCSLS (Joulin et al.,2018b)</td><td>82.8</td><td>84.3</td><td>82.4</td><td>83.3</td><td>78.6</td><td>75.6</td><td>78.3</td><td>81.0</td><td>57.7</td><td>66.8</td><td>48.3</td><td>45.6</td><td>72.1</td></tr><tr><td colspan="10">Joint Traing Methods</td><td></td><td></td><td></td><td></td></tr><tr><td>(7) Unsupervised Joint</td><td>33.2</td><td>36.3</td><td>41.5</td><td>46.8</td><td>39.1</td><td>40.7</td><td>35.8</td><td>38.1</td><td>4.1</td><td>3.7</td><td>8.2</td><td>5.7</td><td>27.8</td></tr><tr><td>(8) Supervised Joint (Duong et al., 2016)</td><td>80.1</td><td>80.5</td><td>78.6</td><td>77.1</td><td>67.2</td><td>68.3</td><td>74.6</td><td>74.5</td><td>41.7</td><td>51.8</td><td>47.2</td><td>44.0</td><td>65.5</td></tr><tr><td colspan="10">Joint Align Framework</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(9)Joint_Align (w/o AR)</td><td>56.8</td><td>63.2</td><td>62.2</td><td>67.2</td><td>49.2</td><td>55.1</td><td>50.6</td><td>51.9</td><td>8.7</td><td>8.2</td><td>19.5</td><td>18.4</td><td>42.6</td></tr><tr><td>(10) Joint_Align +MUSE</td><td>82.4</td><td>85.0</td><td>83.5</td><td>84.7</td><td>74.6</td><td>72.9</td><td>78.2</td><td>82.6</td><td>46.1</td><td>58.7</td><td>39.9</td><td>36.2</td><td>68.7</td></tr><tr><td>(11) Joint_Align +RCSLS(w/o VR) (12) Joint_Align +GeoMM</td><td>34.3</td><td>36.8</td><td>41.0</td><td>47.0</td><td>34.3</td><td>35.9</td><td>35.5</td><td>35.2</td><td>7.6</td><td>5.2</td><td>21.3 54.8</td><td>16.1 48.0</td><td>29.2 73.3</td></tr><tr><td></td><td>83.9</td><td>86.2</td><td>83.1</td><td>85.2</td><td>76.1</td><td>77.9</td><td>79.0</td><td>82.8</td><td>53.7</td><td>68.3</td><td></td><td></td><td></td></tr><tr><td>(13) Joint_Align + RCSLS</td><td>87.1</td><td>88.5</td><td>84.2</td><td>86.6</td><td>80.1</td><td>78.7</td><td>81.3</td><td>85.2</td><td>61.3</td><td>68.3</td><td>59.6</td><td>50.7</td><td>76.0</td></tr></table>
|
| 328 |
+
|
| 329 |
+
# B BLI TEST PAIRS
|
| 330 |
+
|
| 331 |
+
The official evaluation script8 of MUSE only includes test pairs whose source words and target words both appear in their corresponding vocabularies, leaving out those that are OOV on either side. Since our proposed vocabulary reallocation step modifies both the source and target vocabularies, the script may exclude some test pairs when evaluating our model. For example, the word “age” from the test pair (age, age) for en-fr could be allocated as an en (not shared) word, so it is OOV on the fr side and the pair would thus be left out by the script. As a result, the total number of test pairs would be smaller, thereby changing the denominator when we calculate accuracy. To ensure fair comparison, we include these OOV pairs so the total number of test pairs stays the same. Specifically, if the source word of a test pair is OOV, we retrieve itself. Otherwise, we count it as incorrect.
|
| 332 |
+
|
| 333 |
+
In addition, we further investigate which pairs are left out and found that the MUSE benchmark contains some noisy test data. Specifically, we find that the majority of these pairs are in the same surface form, such as (sit, sit), but many target words are not actual translations of the source words. For example, we found test pairs such as {(age, age), (century, century)} for en- $f r$ and {(mickey, mickey), (uncredited, uncredited) $\}$ for en-zh. Clearly, these are English words and should not be considered as appropriate translations for French or Chinese. In Table 1, we mark these pairs as incorrect for our framework to ensure fair comparison, while in fact our framework correctly allocates these words to English. To reveal the full picture, we also conduct BLI experiments without test pairs that got left out due to vocabulary reallocation. The results are shown in Table 4. We observe that our proposed framework obtains a gain of 3.9 accuracy on average over the RCSLS baseline.
|
parse/train/S1l-C0NtwS/S1l-C0NtwS_content_list.json
ADDED
|
@@ -0,0 +1,1799 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CROSS-LINGUAL ALIGNMENT VS JOINT TRAINING:A COMPARATIVE STUDY AND A SIMPLE UNIFIEDFRAMEWORK",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
171
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Zirui Wang∗, Jiateng Xie∗, Ruochen Xu, Yiming Yang, Graham Neubig, Jaime Carbonell Language Technologies Institute, Carnegie Mellon University, Pittsburgh, PA 15213, USA {ziruiw, jiatengx, ruochenx, yiming, gneubig, jgc}@cs.cmu.edu ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
195,
|
| 20 |
+
790,
|
| 21 |
+
238
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
273,
|
| 32 |
+
544,
|
| 33 |
+
289
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Learning multilingual representations of text has proven a successful method for many cross-lingual transfer learning tasks. There are two main paradigms for learning such representations: (1) alignment, which maps different independently trained monolingual representations into a shared space, and (2) joint training, which directly learns unified multilingual representations using monolingual and cross-lingual objectives jointly. In this paper, we first conduct direct comparisons of representations learned using both of these methods across diverse crosslingual tasks. Our empirical results reveal a set of pros and cons for both methods, and show that the relative performance of alignment versus joint training is taskdependent. Stemming from this analysis, we propose a simple and novel framework that combines these two previously mutually-exclusive approaches. Extensive experiments demonstrate that our proposed framework alleviates limitations of both approaches, and outperforms existing methods on the MUSE bilingual lexicon induction (BLI) benchmark. We further show that this framework can generalize to contextualized representations such as Multilingual BERT, and produces state-of-the-art results on the CoNLL cross-lingual NER benchmark.1 ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
308,
|
| 43 |
+
764,
|
| 44 |
+
526
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
556,
|
| 55 |
+
334,
|
| 56 |
+
571
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Continuous word representations (Mikolov et al., 2013a; Pennington et al., 2014; Bojanowski et al., 2017) have become ubiquitous across a wide range of NLP tasks. In particular, methods for crosslingual word embeddings (CLWE) have proven a powerful tool for cross-lingual transfer for downstream tasks, such as text classification (Klementiev et al., 2012), dependency parsing (Ahmad et al., 2019), named entity recognition (NER) (Xie et al., 2018; Chen et al., 2019), natural language inference (Conneau et al., 2018b), language modeling (Adams et al., 2017), and machine translation (MT) (Zou et al., 2013; Lample et al., 2018a; Artetxe et al., 2018b; Lample et al., 2018b). The goal of these CLWE methods is to learn embeddings in a shared vector space for two or more languages. There are two main paradigms for learning CLWE: cross-lingual alignment and joint training. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
588,
|
| 66 |
+
825,
|
| 67 |
+
713
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The most successful approach has been the cross-lingual embedding alignment method (Mikolov et al., 2013b), which relies on the assumption that monolingually-trained continuous word embedding spaces share similar structure across different languages. The underlying idea is to first independently train embeddings in different languages using monolingual corpora alone, and then learn a mapping to align them to a shared vector space. Such a mapping can be trained in a supervised fashion using parallel resources such as bilingual lexicons (Xing et al., 2015; Smith et al., 2017; Joulin et al., 2018b; Jawanpuria et al., 2019), or even in an unsupervised2 manner based on distribution matching (Zhang et al., 2017a; Conneau et al., 2018a; Artetxe et al., 2018a; Zhou et al., 2019). Recently, it has been shown that alignment methods can also be effectively applied to contextualized word representations (Schuster et al., 2019; Aldarmaki & Diab, 2019). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
720,
|
| 77 |
+
825,
|
| 78 |
+
859
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Another successful line of research for CLWE considers joint training methods, which optimize a monolingual objective predicting the context of a word in a monolingual corpus along with either a hard or soft cross-lingual constraint. Similar to alignment methods, some early works rely on bilingual dictionaries (Ammar et al., 2016; Duong et al., 2016) or parallel corpora (Luong et al., 2015; Gouws et al., 2015) for direct supervision. More recently, a seemingly naive unsupervised joint training approach has received growing attention due to its simplicity and effectiveness. In particular, Lample et al. (2018b) reports that simply training embeddings on concatenated monolingual corpora of two related languages using a shared vocabulary without any cross-lingual resources is able to produce higher accuracy than the more sophisticated alignment methods on unsupervised MT tasks. Besides, for contextualized representations, unsupervised multilingual language model pretraining using a shared vocabulary has produced state-of-the-art results on multiple benchmarks3 (Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
103,
|
| 88 |
+
825,
|
| 89 |
+
270
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 1
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Despite a large amount of research on both alignment and joint training, previous work has neither performed a systematic comparison between the two, analyzed their pros and cons, nor elucidated when we may prefer one method over the other. Particularly, it’s natural to ask: (1) Does the phenomenon reported in Lample et al. (2018b) extend to other cross-lingual tasks? (2) Can we employ alignment methods to further improve unsupervised joint training? (3) If so, how would such a framework compare to supervised joint training methods that exploit equivalent resources, i.e., bilingual dictionaries? (4) And lastly, can this framework generalize to contextualized representations? ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
277,
|
| 99 |
+
825,
|
| 100 |
+
375
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "In this work, we attempt to address these questions. Specifically, we first evaluate and compare alignment versus joint training methods across three diverse tasks: BLI, cross-lingual NER, and unsupervised MT. We seek to characterize the conditions under which one approach outperforms the other, and glean insight on the reasons behind these differences. Based on our analysis, we further propose a simple, novel, and highly generic framework that uses unsupervised joint training as initialization and alignment as refinement to combine both paradigms. Our experiments demonstrate that our framework improves over both alignment and joint training baselines, and outperforms existing methods on the MUSE BLI benchmark. Moreover, we show that our framework can generalize to contextualized representations such as Multilingual BERT, producing state-of-the-art results on the CoNLL cross-lingual NER benchmark. To the best of our knowledge, this is the first framework that combines previously mutually-exclusive alignment and joint training methods. ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
382,
|
| 110 |
+
825,
|
| 111 |
+
535
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 BACKGROUND: CROSS-LINGUAL REPRESENTATIONS ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
558,
|
| 122 |
+
642,
|
| 123 |
+
574
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Notation. We assume we have two different languages $\\{ L _ { 1 } , L _ { 2 } \\}$ and access to their corresponding training corpora. We use $V _ { L _ { i } } = { \\{ w _ { L _ { i } } ^ { j } \\} } _ { j = 1 } ^ { n _ { L _ { i } } }$ to denote the vocabulary set of the ith language where each $w _ { L _ { i } } ^ { j }$ represents a unique token, such as a word or subword. The goal is to learn a set of embeddings $E = \\{ \\pmb { x } ^ { j } \\} _ { j = 1 } ^ { m }$ , with $\\pmb { x } ^ { j } \\in \\mathbb { R } ^ { d }$ , in a shared vector space, where each token $w _ { L _ { i } } ^ { j }$ is mapped to a vector in $E$ . Ideally, these vectorial representations should have similar values for tokens with similar meanings or syntactic properties, so they can better facilitate cross-lingual transfer. ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
590,
|
| 133 |
+
825,
|
| 134 |
+
688
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "2.1 ALIGNMENT METHODS ",
|
| 141 |
+
"text_level": 1,
|
| 142 |
+
"bbox": [
|
| 143 |
+
174,
|
| 144 |
+
707,
|
| 145 |
+
379,
|
| 146 |
+
722
|
| 147 |
+
],
|
| 148 |
+
"page_idx": 1
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"type": "text",
|
| 152 |
+
"text": "Given the notation, alignment methods consist of the following steps: ",
|
| 153 |
+
"bbox": [
|
| 154 |
+
174,
|
| 155 |
+
734,
|
| 156 |
+
629,
|
| 157 |
+
750
|
| 158 |
+
],
|
| 159 |
+
"page_idx": 1
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"type": "text",
|
| 163 |
+
"text": "Step 1: Train an embedding set $E _ { 0 } = E _ { L _ { 1 } } \\cup E _ { L _ { 2 } }$ , where each subset $E _ { L _ { i } } = \\{ x _ { L _ { i } } ^ { j } \\} _ { j = 1 } ^ { n _ { L _ { i } } }$ is trained independently using the ith language corpus and contains an embedding $x _ { L _ { i } } ^ { j }$ for each token $w _ { L _ { i } } ^ { j }$ . ",
|
| 164 |
+
"bbox": [
|
| 165 |
+
173,
|
| 166 |
+
751,
|
| 167 |
+
823,
|
| 168 |
+
784
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Step 2: Obtain a seed dictionary $D = \\{ ( w _ { L _ { 1 } } ^ { i } , w _ { L _ { 2 } } ^ { j } ) \\} _ { k = 1 } ^ { K }$ , either provided or learnt unsupervised. ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
785,
|
| 178 |
+
807,
|
| 179 |
+
803
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "text",
|
| 185 |
+
"text": "Step 3: Learn a projection matrix $W \\in \\mathbb { R } ^ { d \\times d }$ based on $D$ , resulting in a final embedding set $\\ c E _ { A } \\overset { - } { = } ( W \\cdot E _ { L _ { 1 } } ) \\overset { - } { \\cup } \\bar { E } _ { L _ { 2 } }$ in a shared vector space. ",
|
| 186 |
+
"bbox": [
|
| 187 |
+
173,
|
| 188 |
+
804,
|
| 189 |
+
823,
|
| 190 |
+
833
|
| 191 |
+
],
|
| 192 |
+
"page_idx": 1
|
| 193 |
+
},
|
| 194 |
+
{
|
| 195 |
+
"type": "text",
|
| 196 |
+
"text": "To find the optimal projection matrix $W$ , Mikolov et al. (2013b) proposed to solve the following optimization problem: ",
|
| 197 |
+
"bbox": [
|
| 198 |
+
173,
|
| 199 |
+
838,
|
| 200 |
+
825,
|
| 201 |
+
867
|
| 202 |
+
],
|
| 203 |
+
"page_idx": 1
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"type": "equation",
|
| 207 |
+
"img_path": "images/ffbe63811888b837f9c0c1aae793bd0d28976553157f2f8c8a7aa6c37721a077.jpg",
|
| 208 |
+
"text": "$$\n\\operatorname* { m i n } _ { W \\in \\mathbb { R } ^ { d \\times d } } \\| W X _ { L _ { 1 } } - X _ { L _ { 2 } } \\| _ { F }\n$$",
|
| 209 |
+
"text_format": "latex",
|
| 210 |
+
"bbox": [
|
| 211 |
+
408,
|
| 212 |
+
869,
|
| 213 |
+
591,
|
| 214 |
+
893
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "where $X _ { L _ { 1 } }$ and $X _ { L _ { 2 } }$ are matrices of size $d \\times K$ containing embeddings of the words in $D$ . Xing et al. (2015) later showed further improvement could be achieved by restricting $W$ to an orthogonal matrix, which turns the Eq.(1) into the Procrustes problem with the following closed form solution: ",
|
| 221 |
+
"bbox": [
|
| 222 |
+
174,
|
| 223 |
+
103,
|
| 224 |
+
825,
|
| 225 |
+
146
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "equation",
|
| 231 |
+
"img_path": "images/ca812aafd61f2255bae50ed38b3918ed33543ff042c58c5839a5ea4257a98678.jpg",
|
| 232 |
+
"text": "$$\n\\begin{array} { r } { W ^ { * } = U V ^ { T } , \\quad \\quad } \\\\ { \\mathrm { w i t h ~ } U \\Sigma V ^ { T } = \\mathrm { S V D } ( X _ { L _ { 2 } } X _ { L _ { 1 } } ^ { T } ) } \\end{array}\n$$",
|
| 233 |
+
"text_format": "latex",
|
| 234 |
+
"bbox": [
|
| 235 |
+
390,
|
| 236 |
+
152,
|
| 237 |
+
606,
|
| 238 |
+
196
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 2
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "where $W ^ { * }$ denotes the optimal solution and SVD(·) stands for the singular value decomposition. ",
|
| 245 |
+
"bbox": [
|
| 246 |
+
171,
|
| 247 |
+
202,
|
| 248 |
+
803,
|
| 249 |
+
217
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "As surveyed in Section 5, different methods (Smith et al., 2017; Conneau et al., 2018a; Joulin et al., 2018b; Artetxe et al., 2018a) differ in the way how they obtain the dictionary $D$ and how they solve for $W$ in step 3. However, most of them still involve solving the Eq.(2) as a crucial step. ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
174,
|
| 258 |
+
223,
|
| 259 |
+
825,
|
| 260 |
+
266
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "text",
|
| 266 |
+
"text": "2.2 JOINT TRAINING METHODS ",
|
| 267 |
+
"text_level": 1,
|
| 268 |
+
"bbox": [
|
| 269 |
+
176,
|
| 270 |
+
285,
|
| 271 |
+
406,
|
| 272 |
+
299
|
| 273 |
+
],
|
| 274 |
+
"page_idx": 2
|
| 275 |
+
},
|
| 276 |
+
{
|
| 277 |
+
"type": "text",
|
| 278 |
+
"text": "Joint training methods in general have the following objective: ",
|
| 279 |
+
"bbox": [
|
| 280 |
+
174,
|
| 281 |
+
311,
|
| 282 |
+
583,
|
| 283 |
+
327
|
| 284 |
+
],
|
| 285 |
+
"page_idx": 2
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"type": "equation",
|
| 289 |
+
"img_path": "images/970aeca484b0c4e7d257b76f445daf272b7af4988a454a45a7c684e3339d8086.jpg",
|
| 290 |
+
"text": "$$\n\\mathscr { L } _ { J } = \\mathscr { L } _ { 1 } + \\mathscr { L } _ { 2 } + \\mathscr { R } \\left( L _ { 1 } , L _ { 2 } \\right)\n$$",
|
| 291 |
+
"text_format": "latex",
|
| 292 |
+
"bbox": [
|
| 293 |
+
401,
|
| 294 |
+
335,
|
| 295 |
+
596,
|
| 296 |
+
353
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 2
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "where $\\mathcal { L } _ { 1 }$ and $\\mathcal { L } _ { 2 }$ are monolingual objectives and $\\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ is a cross-lingual regularization term. For example, Klementiev et al. (2012) use language modeling objectives for $\\mathcal { L } _ { 1 }$ and $\\mathcal { L } _ { 2 }$ . The term $\\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ encourages alignment of representations of words that are translations. Training an embedding set $E _ { J } = E _ { L _ { 1 } } \\cup E _ { L _ { 2 } }$ is usually done by directly optimizing $\\mathcal { L } _ { J }$ . ",
|
| 303 |
+
"bbox": [
|
| 304 |
+
174,
|
| 305 |
+
368,
|
| 306 |
+
825,
|
| 307 |
+
425
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 2
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "While supervised joint training requires access to parallel resources, recent studies (Lample et al., 2018b; Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019) have suggested that unsupervised joint training without such resources is also effective. Specifically, they show that the cross-lingual regularization term $\\mathcal { R } ( L _ { 1 } , L _ { 2 } )$ does not require direct cross-lingual supervision to achieve highly competitive results. This is because the shared words between $\\mathcal { L } _ { 1 }$ and $\\mathcal { L } _ { 2 }$ can serve implicitly as anchors by sharing their embeddings to ensure that representations of different languages lie in a shared space. Using our notation, the unsupervised joint training approach takes the following steps: ",
|
| 314 |
+
"bbox": [
|
| 315 |
+
173,
|
| 316 |
+
431,
|
| 317 |
+
825,
|
| 318 |
+
542
|
| 319 |
+
],
|
| 320 |
+
"page_idx": 2
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"type": "text",
|
| 324 |
+
"text": "Step 1: Construct a joint vocabulary $V _ { J } = V _ { L _ { 1 } } \\cup V _ { L _ { 2 } }$ that is shared across two languages. ",
|
| 325 |
+
"bbox": [
|
| 326 |
+
169,
|
| 327 |
+
542,
|
| 328 |
+
802,
|
| 329 |
+
559
|
| 330 |
+
],
|
| 331 |
+
"page_idx": 2
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"type": "text",
|
| 335 |
+
"text": "Step 2: Concatenate the two training corpora and learn an embedding set $E _ { J }$ corresponding to $V _ { J }$ ",
|
| 336 |
+
"bbox": [
|
| 337 |
+
174,
|
| 338 |
+
558,
|
| 339 |
+
820,
|
| 340 |
+
571
|
| 341 |
+
],
|
| 342 |
+
"page_idx": 2
|
| 343 |
+
},
|
| 344 |
+
{
|
| 345 |
+
"type": "text",
|
| 346 |
+
"text": "The joint vocabulary is composed of three disjoint sets: $V _ { J } ^ { 1 } , V _ { J } ^ { 2 } , V _ { J } ^ { s }$ , where $V _ { J } ^ { s } = V _ { L _ { 1 } } \\cap V _ { L _ { 2 } }$ is the shared vocabulary set and $V _ { J } ^ { i }$ is the set of tokens that appear in the $i$ th language only. Note that a key difference of existing supervised joint training methods is that embeddings corresponding to $V _ { J } ^ { s }$ are not shared between $E _ { L _ { 1 } }$ and $E _ { L _ { 2 } }$ , meaning that they are disjoint, as in alignment methods. ",
|
| 347 |
+
"bbox": [
|
| 348 |
+
174,
|
| 349 |
+
577,
|
| 350 |
+
825,
|
| 351 |
+
636
|
| 352 |
+
],
|
| 353 |
+
"page_idx": 2
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"type": "text",
|
| 357 |
+
"text": "2.3 DISCUSSION ",
|
| 358 |
+
"text_level": 1,
|
| 359 |
+
"bbox": [
|
| 360 |
+
174,
|
| 361 |
+
654,
|
| 362 |
+
302,
|
| 363 |
+
669
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "While alignment methods have had great success, there are still some critical downsides, among which we stress the following points: ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
178,
|
| 372 |
+
681,
|
| 373 |
+
823,
|
| 374 |
+
709
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 2
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "1. While recent studies in unsupervised joint training have suggested the potential benefits of word sharing, alignment methods rely on two disjoint sets of embeddings. Along with some possible loss of information due to no sharing, one consequence is that finetuning the aligned embeddings on downstream tasks may be sub-optimal due to the lack of crosslingual constraints at the finetuning stage, whereas shared words can fulfill this role in jointly trained models. \n2. A key assumption of alignment methods is the isomorphism of monolingual embedding spaces. However, some recent papers have challenged this assumption, showing that it does not hold for many language pairs (Søgaard et al., 2018; Patra et al., 2019). Also notably, Ormazabal et al. (2019) suggests that this limitation results from the fact that the two sets of monolingual embeddings are independently trained. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
212,
|
| 383 |
+
722,
|
| 384 |
+
825,
|
| 385 |
+
882
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 2
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "On the other hand, the unsupervised joint training method is much simpler and doesn’t share these disadvantages with the alignment methods, but there are also some key limitations: ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
176,
|
| 394 |
+
895,
|
| 395 |
+
821,
|
| 396 |
+
924
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "image",
|
| 402 |
+
"img_path": "images/b6891e82933db0590976c1a8dfda71666b5167846eb8b62f827eff934a7e3443.jpg",
|
| 403 |
+
"image_caption": [
|
| 404 |
+
"Figure 1: PCA visualization of English and Spanish embeddings learnt by unsupervised joint training as in Lample et al. (2018b). As shown by plots (a) and (b), most words are shared in the initial embedding space but not well-aligned, hence the oversharing problem. Plots (b) and (c) shows that the vocabulary reallocation step effectively mitigates oversharing while the alignment refinement step further improves the poorly aligned embeddings by projecting them into a close neighborhood. "
|
| 405 |
+
],
|
| 406 |
+
"image_footnote": [],
|
| 407 |
+
"bbox": [
|
| 408 |
+
186,
|
| 409 |
+
107,
|
| 410 |
+
805,
|
| 411 |
+
236
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "1. It assumes that all shared words across two languages serve implicitly as anchors and thus need not be aligned to other words. Nonetheless, this assumption is not always true, leading to misalignment. For example, the English word “the” will most likely also appear in the training corpus of Spanish, but preferably it should be paired with Spanish words such as “el” and “la” instead of itself. We refer to this problem as oversharing. \n2. It does not utilize any explicit form of seed dictionary as in alignment methods, resulting in potentially less accurate alignments, especially for words that are not shared. ",
|
| 418 |
+
"bbox": [
|
| 419 |
+
205,
|
| 420 |
+
352,
|
| 421 |
+
825,
|
| 422 |
+
457
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "text",
|
| 428 |
+
"text": "Lastly, while the supervised joint training approach does not have the same issues of unsupervised joint training, it shares limitation 1 of the alignment methods. ",
|
| 429 |
+
"bbox": [
|
| 430 |
+
174,
|
| 431 |
+
468,
|
| 432 |
+
823,
|
| 433 |
+
496
|
| 434 |
+
],
|
| 435 |
+
"page_idx": 3
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"type": "text",
|
| 439 |
+
"text": "We empirically compare both joint training and alignment approaches in Section 4 and shed light on some of these pros and cons for both paradigms (See Section 4.3.1). ",
|
| 440 |
+
"bbox": [
|
| 441 |
+
174,
|
| 442 |
+
503,
|
| 443 |
+
823,
|
| 444 |
+
531
|
| 445 |
+
],
|
| 446 |
+
"page_idx": 3
|
| 447 |
+
},
|
| 448 |
+
{
|
| 449 |
+
"type": "text",
|
| 450 |
+
"text": "3 PROPOSED FRAMEWORK ",
|
| 451 |
+
"text_level": 1,
|
| 452 |
+
"bbox": [
|
| 453 |
+
176,
|
| 454 |
+
553,
|
| 455 |
+
411,
|
| 456 |
+
568
|
| 457 |
+
],
|
| 458 |
+
"page_idx": 3
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"type": "text",
|
| 462 |
+
"text": "Motivated by the pros and cons of both paradigms, we propose a unified framework that first uses unsupervised joint training as a coarse initialization and then applies alignment methods for refinement, as demonstrated in Figure 1. Specifically, we first build a single set of embeddings with a shared vocabulary through unsupervised joint training, so as to alleviate the limitations of alignment methods. Next, we use a vocabulary reallocation technique to mitigate oversharing, before finally resorting back to alignment methods to further improve the embeddings’ quality. Lastly, we show that this framework can generalize to contextualized representations. ",
|
| 463 |
+
"bbox": [
|
| 464 |
+
174,
|
| 465 |
+
584,
|
| 466 |
+
825,
|
| 467 |
+
681
|
| 468 |
+
],
|
| 469 |
+
"page_idx": 3
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"type": "text",
|
| 473 |
+
"text": "3.1 UNIFYING ALIGNMENT WITH JOINT TRAINING ",
|
| 474 |
+
"text_level": 1,
|
| 475 |
+
"bbox": [
|
| 476 |
+
174,
|
| 477 |
+
699,
|
| 478 |
+
540,
|
| 479 |
+
714
|
| 480 |
+
],
|
| 481 |
+
"page_idx": 3
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"type": "text",
|
| 485 |
+
"text": "Our proposed framework mainly involves three components and we discuss each of them as follows. ",
|
| 486 |
+
"bbox": [
|
| 487 |
+
176,
|
| 488 |
+
726,
|
| 489 |
+
821,
|
| 490 |
+
739
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "Joint Initialization. We use unsupervised joint training (Lample et al., 2018b) to train the initial CLWE. As described in Section 2.2, we first obtain a joint vocabulary $V _ { J }$ and train its corresponding set of embeddings $E _ { J }$ on the concatenated corpora of two languages. This allows us to obtain a single set of embeddings that maximizes sharing across two languages. To train embeddings, we used fastText4 (Bojanowski et al., 2017) in all our experiments for both word and subword tokens. ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
174,
|
| 499 |
+
756,
|
| 500 |
+
823,
|
| 501 |
+
827
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "text",
|
| 507 |
+
"text": "Vocabulary Reallocation. As discussed in Section 2.3, a key issue of unsupervised joint training is oversharing, which prohibits further refinement as shown in Figure 1. To alleviate this drawback, we attempt to “unshare” some of the overshared words, so their embeddings can be better aligned in the next step. Particularly, we perform a vocabulary reallocation step such that words appearing mostly exclusively in the ith language are reallocated from the shared vocabulary $V _ { J } ^ { s }$ to $V _ { J } ^ { i }$ , whereas words that appear similarly frequent in both languages stay still in $V _ { J } ^ { s }$ . Formally, for each token $w$ in the shared vocabulary $V _ { J } ^ { s }$ , we use the ratio of counts within each language to determine whether it belongs to the shared vocabulary: ",
|
| 508 |
+
"bbox": [
|
| 509 |
+
174,
|
| 510 |
+
843,
|
| 511 |
+
823,
|
| 512 |
+
898
|
| 513 |
+
],
|
| 514 |
+
"page_idx": 3
|
| 515 |
+
},
|
| 516 |
+
{
|
| 517 |
+
"type": "text",
|
| 518 |
+
"text": "",
|
| 519 |
+
"bbox": [
|
| 520 |
+
174,
|
| 521 |
+
103,
|
| 522 |
+
823,
|
| 523 |
+
160
|
| 524 |
+
],
|
| 525 |
+
"page_idx": 4
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"type": "equation",
|
| 529 |
+
"img_path": "images/cc657fc1a1e48241706f9ac3f54bb5cb5e9bc159c978bba9bc47207b1bbd7e48.jpg",
|
| 530 |
+
"text": "$$\nr = \\frac { T _ { L _ { 2 } } } { T _ { L _ { 1 } } } \\cdot \\frac { C _ { L _ { 1 } } ( w ) } { C _ { L _ { 2 } } ( w ) } ,\n$$",
|
| 531 |
+
"text_format": "latex",
|
| 532 |
+
"bbox": [
|
| 533 |
+
431,
|
| 534 |
+
176,
|
| 535 |
+
565,
|
| 536 |
+
212
|
| 537 |
+
],
|
| 538 |
+
"page_idx": 4
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"type": "text",
|
| 542 |
+
"text": "where $C _ { L _ { i } } ( w )$ is the count of $w$ in the training corpus of the $i$ th language and $\\begin{array} { r } { T _ { L _ { i } } = \\sum _ { w } C _ { L _ { i } } ( w ) } \\end{array}$ is the total number of tokens. The token $w$ is allocated to the shared vocabulary if ",
|
| 543 |
+
"bbox": [
|
| 544 |
+
169,
|
| 545 |
+
215,
|
| 546 |
+
823,
|
| 547 |
+
244
|
| 548 |
+
],
|
| 549 |
+
"page_idx": 4
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"type": "equation",
|
| 553 |
+
"img_path": "images/071a169edb6ab333291b8e050f369a0734fc982d34d955ffb981c1fb712dfd34.jpg",
|
| 554 |
+
"text": "$$\n\\frac { 1 - \\gamma } { \\gamma } \\leq r \\leq \\frac { \\gamma } { 1 - \\gamma } ,\n$$",
|
| 555 |
+
"text_format": "latex",
|
| 556 |
+
"bbox": [
|
| 557 |
+
428,
|
| 558 |
+
251,
|
| 559 |
+
568,
|
| 560 |
+
284
|
| 561 |
+
],
|
| 562 |
+
"page_idx": 4
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"type": "text",
|
| 566 |
+
"text": "where $\\gamma$ is a hyper-parameter. Otherwise, we put $w$ into either $V _ { J } ^ { 1 }$ or $V _ { J } ^ { 2 }$ , where it appears mostly frequent. The above process generates three new disjoint vocabulary sets $V _ { J } ^ { 1 ^ { \\prime } } , V _ { J } ^ { 2 ^ { \\prime } } , V _ { J } ^ { s ^ { \\prime } }$ and their corresponding embeddings $E _ { J } ^ { 1 ^ { \\prime } } , E _ { J } ^ { 2 ^ { \\prime } } , E _ { J } ^ { s ^ { \\prime } }$ that are used thereafter. Note that, $V _ { J } ^ { ' } = V _ { J }$ and $E _ { J } ^ { ' } = E _ { J }$ . ",
|
| 567 |
+
"bbox": [
|
| 568 |
+
174,
|
| 569 |
+
290,
|
| 570 |
+
823,
|
| 571 |
+
340
|
| 572 |
+
],
|
| 573 |
+
"page_idx": 4
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"type": "text",
|
| 577 |
+
"text": "Alignment Refinement. The unsupervised joint training method does not explicitly utilize any dictionary or form of alignment. Thus, the resulting embedding set is coarse and ill-aligned in the shared vector space, as demonstrated in Figure 1. As a final refinement step, we utilize any off-the-shelf alignment method to refine alignments across the non-sharing embedding sets, i.e. mapping $E _ { J } ^ { 1 ^ { \\prime } }$ to $\\mathrm { ~ \\bar { \\it E } _ { \\it J } ^ { 2 ^ { \\prime } } ~ }$ and leaving $E _ { J } ^ { s ^ { \\prime } }$ untouched. This step could be conducted by either supervised or unsupervised alignment method and we compare both in our experiments. ",
|
| 578 |
+
"bbox": [
|
| 579 |
+
174,
|
| 580 |
+
354,
|
| 581 |
+
825,
|
| 582 |
+
441
|
| 583 |
+
],
|
| 584 |
+
"page_idx": 4
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"type": "text",
|
| 588 |
+
"text": "3.2 EXTENSION TO CONTEXTUALIZED REPRESENTATIONS ",
|
| 589 |
+
"text_level": 1,
|
| 590 |
+
"bbox": [
|
| 591 |
+
174,
|
| 592 |
+
458,
|
| 593 |
+
591,
|
| 594 |
+
473
|
| 595 |
+
],
|
| 596 |
+
"page_idx": 4
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"type": "text",
|
| 600 |
+
"text": "As our framework is highly generic and applicable to any alignment and unsupervised joint training methods, it can naturally generalize to contextualized word representations by aligning the fixed outputs of a multilingual encoder such as multilingual BERT (M-BERT) (Devlin et al., 2019). While our vocab reallocation technique is no longer necessary as contextualized representations are dependent on context and thus dynamic, we can still apply alignment refinement on extracted contextualized features for further improvement. For instance, as proposed by Aldarmaki & Diab (2019), one method to perform alignment on contextualized representations is to first use word alignment pairs extracted from parallel corpora as a dictionary, learn an alignment matrix $W$ based on it, and apply $W$ back to the extracted representations. To obtain $W$ , we can solve Eq.( 1) as described in Section 2.1, where the embedding matrices $X _ { L _ { 1 } }$ and $X _ { L _ { 2 } }$ now contain contextualized representations of aligned word pairs. Note that this method is applicable to fixed representations but not finetuning. ",
|
| 601 |
+
"bbox": [
|
| 602 |
+
174,
|
| 603 |
+
484,
|
| 604 |
+
825,
|
| 605 |
+
637
|
| 606 |
+
],
|
| 607 |
+
"page_idx": 4
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"type": "text",
|
| 611 |
+
"text": "4 EXPERIMENTS ",
|
| 612 |
+
"text_level": 1,
|
| 613 |
+
"bbox": [
|
| 614 |
+
176,
|
| 615 |
+
659,
|
| 616 |
+
326,
|
| 617 |
+
674
|
| 618 |
+
],
|
| 619 |
+
"page_idx": 4
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"type": "text",
|
| 623 |
+
"text": "We evaluate the proposed approach and compare with alignment and joint training methods on three NLP benchmarks. This evaluation aims to: (1) systematically compare alignment vs. joint training paradigms and reveal their pros and cons discussed in Section 2.3, (2) show that the proposed framework can effectively alleviate limitations of both alignment and joint training, and (3) demonstrate the effectiveness of the proposed framework in both non-contextualized and contextualized settings. ",
|
| 624 |
+
"bbox": [
|
| 625 |
+
174,
|
| 626 |
+
690,
|
| 627 |
+
825,
|
| 628 |
+
761
|
| 629 |
+
],
|
| 630 |
+
"page_idx": 4
|
| 631 |
+
},
|
| 632 |
+
{
|
| 633 |
+
"type": "text",
|
| 634 |
+
"text": "4.1 EVALUATION TASKS ",
|
| 635 |
+
"text_level": 1,
|
| 636 |
+
"bbox": [
|
| 637 |
+
176,
|
| 638 |
+
779,
|
| 639 |
+
356,
|
| 640 |
+
792
|
| 641 |
+
],
|
| 642 |
+
"page_idx": 4
|
| 643 |
+
},
|
| 644 |
+
{
|
| 645 |
+
"type": "text",
|
| 646 |
+
"text": "Bilingual Lexicon Induction (BLI) This task has been the de facto evaluation task for CLWE methods. It considers the problem of retrieving the target language translations of source langauge words. We use bilingual dictionaries complied by Conneau et al. (2018a) and test on six diverse language pairs, including Chinese and Russian, which use a different writing script than English. Each test set consists of 1500 queries and we report precision at $^ { l }$ scores $( \\mathrm { P } @ 1 )$ , following standard evaluation practices (Conneau et al., 2018a; Glavas et al., 2019). ",
|
| 647 |
+
"bbox": [
|
| 648 |
+
174,
|
| 649 |
+
804,
|
| 650 |
+
825,
|
| 651 |
+
888
|
| 652 |
+
],
|
| 653 |
+
"page_idx": 4
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "text",
|
| 657 |
+
"text": "Name Entity Recognition (NER) We also evaluate our proposed framework on cross-lingual NER, a sequence labeling task, where we assign a label to each token in a sequence. We evaluate both non-contextualized and contextualized word representations on the CoNLL 2002 and 2003 benchmarks (Tjong Kim Sang, 2002; Tjong Kim Sang & De Meulder, 2003), which contain 4 European languages. To measure the quality of CLWE, we perform zero-shot cross-lingual classification, where we train a model on English and directly apply it to each of the other 3 languages. ",
|
| 658 |
+
"bbox": [
|
| 659 |
+
173,
|
| 660 |
+
895,
|
| 661 |
+
823,
|
| 662 |
+
924
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 4
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "table",
|
| 668 |
+
"img_path": "images/1752a672c3357cb205d3fb46002e5f7c1a18b8c9f08ff63f381a4b032e1b2b6f.jpg",
|
| 669 |
+
"table_caption": [
|
| 670 |
+
"Table 1: Precision $@ 1$ for the BLI task on the MUSE dataset6. Within each category, unsupervised methods are listed at the top while supervised methods are at the bottom. The best result for unsupervised methods is underlined while bold signifies the overall best. “IN” refers to iterative normalization proposed in Zhang et al. (2019), “AR” refers to alignment refinement and “VR” refers to vocabulary reallocation. "
|
| 671 |
+
],
|
| 672 |
+
"table_footnote": [],
|
| 673 |
+
"table_body": "<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan=\"10\">Alignment Methods</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(1)MUSE(Conneau et al.,2018a)</td><td>81.7</td><td>83.3</td><td>82.3</td><td>82.1</td><td>74.0</td><td>72.0</td><td>77.7</td><td>78.2</td><td>44.0</td><td>59.1</td><td>32.5</td><td>31.4</td><td></td><td>66.5</td></tr><tr><td>(2) VECMAP(Artetxe etal.,218a)</td><td>82.3</td><td>84.7</td><td>82.3</td><td>83.6</td><td>75.1</td><td>74.3</td><td>-</td><td>-</td><td>49.2</td><td></td><td>65.6</td><td>0.0</td><td>0.0</td><td>1</td></tr><tr><td>(3)DeMa-BWE(Zhou et al.,2019)</td><td>82.8</td><td>84.9</td><td>83.1</td><td>83.5</td><td>77.2</td><td>74.4</td><td>-</td><td>-</td><td></td><td>49.2</td><td>65.7</td><td>42.5</td><td>37.9</td><td>-</td></tr><tr><td>(4) Procrustes (Smith et al.,2017)</td><td>81.4</td><td>82.9</td><td>81.1</td><td>82.4</td><td>73.5</td><td>72.4</td><td>77.5</td><td>77.9</td><td></td><td>51.7</td><td>63.7</td><td>42.7</td><td>36.7</td><td>68.7</td></tr><tr><td>(5) GeoMM (Jawanpuria et al., 2019)</td><td>81.4</td><td>85.5</td><td>82.1</td><td>84.1</td><td>74.7</td><td>76.7</td><td>77.9</td><td>80.9</td><td></td><td>51.3</td><td>67.6</td><td>49.1</td><td>45.3</td><td>71.4</td></tr><tr><td>(6) RCSLS (Joulin et al.,2018b) (7) RCSLS + IN (Zhang et al., 2019)</td><td>84.1</td><td>86.3</td><td>83.3 83.9</td><td>84.1</td><td>79.1</td><td>76.3</td><td>78.5 79.1</td><td>79.8 -</td><td>57.9</td><td></td><td>67.2</td><td>45.9</td><td>46.4</td><td>72.4</td></tr><tr><td></td><td>83.9</td><td>-</td><td></td><td>-</td><td>78.1</td><td></td><td></td><td></td><td></td><td>57.9</td><td>1</td><td>48.6</td><td>-</td><td>1</td></tr><tr><td colspan=\"10\">Joint Traing Methods</td><td></td><td></td><td>17.9</td><td></td><td></td></tr><tr><td>(8) Unsupervised Joint</td><td>33.4</td><td>36.6</td><td>42.2</td><td>47.4</td><td>39.5</td><td>41.4</td><td>36.8</td><td>38.8</td><td>4.0</td><td>3.5</td><td></td><td>10.2</td><td></td><td>29.3</td></tr><tr><td>(9) Supervised Joint (Duong et al.,2016)</td><td>79.7</td><td>79.8</td><td>78.1</td><td>76.7</td><td>67.5</td><td>68.9</td><td>74.4</td><td>74.1</td><td>41.8</td><td></td><td>51.8</td><td>46.7</td><td></td><td>65.2</td></tr><tr><td>(10) Joint - Replace</td><td>48.2</td><td>47.7</td><td>49.4</td><td>52.1</td><td>46.5</td><td>46.9</td><td>43.8</td><td>45.8</td><td></td><td>20.3</td><td>36.6</td><td>32.7</td><td>43.3 34.1</td><td>42.0</td></tr><tr><td colspan=\"10\">Joint Align Framework</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(11) Joint_Align (w/o AR)</td><td>55.9</td><td>62.8</td><td>61.8</td><td>67.0</td><td>49.1</td><td>54.6</td><td>50.2</td><td>51.4</td><td>8.7</td><td></td><td>8.2</td><td>19.4</td><td></td><td>42.3</td></tr><tr><td>(12) Joint_Align+MUSE</td><td>81.4</td><td>84.2</td><td>82.8</td><td>83.6</td><td>74.2</td><td>72.2</td><td>77.5</td><td>81.5</td><td>45.0</td><td></td><td>58.3</td><td>36.1</td><td>18.2 35.3</td><td>67.7</td></tr><tr><td>(13)Joint_Align+RCSLS(w/o VR)</td><td>34.2</td><td>37.0</td><td>41.2</td><td>46.8</td><td>34.0</td><td>35.6</td><td>35.3</td><td>35.1</td><td></td><td>7.7</td><td>5.2</td><td>20.2</td><td>15.7</td><td>29.0</td></tr><tr><td>(14)Joint_Align+GeoMM</td><td>82.6</td><td>85.7</td><td>82.5</td><td>84.2</td><td>75.5</td><td>77.2</td><td>78.2</td><td>81.4</td><td></td><td>52.4</td><td>67.7</td><td>50.4</td><td>46.5</td><td>72.0</td></tr><tr><td>(15) Joint_Align + RCSLS</td><td>84.7</td><td>87.9</td><td>83.5</td><td>85.6</td><td>79.6</td><td>78.0</td><td>80.6</td><td>84.0</td><td></td><td>59.8</td><td>67.8</td><td>54.3</td><td>48.7</td><td>74.5</td></tr></table>",
|
| 674 |
+
"bbox": [
|
| 675 |
+
173,
|
| 676 |
+
101,
|
| 677 |
+
823,
|
| 678 |
+
276
|
| 679 |
+
],
|
| 680 |
+
"page_idx": 5
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"type": "text",
|
| 684 |
+
"text": "",
|
| 685 |
+
"bbox": [
|
| 686 |
+
174,
|
| 687 |
+
383,
|
| 688 |
+
823,
|
| 689 |
+
439
|
| 690 |
+
],
|
| 691 |
+
"page_idx": 5
|
| 692 |
+
},
|
| 693 |
+
{
|
| 694 |
+
"type": "text",
|
| 695 |
+
"text": "Unsupervised Machine Translation (UMT) Lastly, we test our approach using the unsupervised MT task, on which the initialization of CLWE plays a crucial role (Lample et al., 2018b). Note that our purpose here is to directly compare with similar studies in Lample et al. (2018b), and thus we follow their settings and consider two language pairs, English-French and English-German, and evaluate on the widely used WMT’14 en-fr and WMT’16 en-de benchmarks. ",
|
| 696 |
+
"bbox": [
|
| 697 |
+
174,
|
| 698 |
+
446,
|
| 699 |
+
825,
|
| 700 |
+
516
|
| 701 |
+
],
|
| 702 |
+
"page_idx": 5
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"type": "text",
|
| 706 |
+
"text": "4.2 EXPERIMENTAL SETUP ",
|
| 707 |
+
"text_level": 1,
|
| 708 |
+
"bbox": [
|
| 709 |
+
176,
|
| 710 |
+
535,
|
| 711 |
+
375,
|
| 712 |
+
547
|
| 713 |
+
],
|
| 714 |
+
"page_idx": 5
|
| 715 |
+
},
|
| 716 |
+
{
|
| 717 |
+
"type": "text",
|
| 718 |
+
"text": "For the BLI task, we compare our framework to recent state-of-the-art methods. We obtain numbers from the corresponding papers or Zhou et al. (2019), and use the official tools for MUSE (Conneau et al., 2018a), GeoMM (Jawanpuria et al., 2019) and RCSLS (Joulin et al., 2018b) to obtain missing results. We consider the method of Duong et al. (2016) for supervised joint training based on bilingual dictionaries, which is comparable to supervised alignment methods in terms of resources used. For unsupervised joint training, we train uncased joint fastText word vectors of dimension 300 on concatenated Wikipedia corpora of each language pair with default parameters. The hyperparameter $\\gamma$ is selected from $\\{ 0 . 7 , \\bar { 0 } . 8 , 0 . 9 , 0 . 9 5 \\}$ on validation sets. For the alignment refinement step in our proposed framework, we use RCSLS and GeoMM to compare with supervised methods, and MUSE for unsupervised methods. In addition, we include an additional baseline of joint training, denoted as Joint - Replace, which is identical to unsupervised joint training except that it utilizes a seed dictionary to randomly replace words with their translations in the training corpus. Following standard practices, we consider the top $2 0 0 \\mathrm { k }$ most frequent words and use the crossdomain similarity local scaling (CSLS) (Conneau et al., 2018a) as the retrieval criteria. Note that a concurrent work (Artetxe et al., 2019) proposed a new retrieval method based on MT systems and produced state-of-the-art results. Although their method is applicable to our framework, it has high computational cost and is out of the scope of this work. ",
|
| 719 |
+
"bbox": [
|
| 720 |
+
174,
|
| 721 |
+
560,
|
| 722 |
+
825,
|
| 723 |
+
796
|
| 724 |
+
],
|
| 725 |
+
"page_idx": 5
|
| 726 |
+
},
|
| 727 |
+
{
|
| 728 |
+
"type": "text",
|
| 729 |
+
"text": "For the NER task: (1) For non-contextualized representations, we train embeddings the same way as in the BLI task and use a vanilla Bi-LSTM-CRF model (Lample et al., 2016). For all alignment steps, we apply the supervised Procrustes method using dictionaries from the MUSE library for simplicity. (2) For contextualized representations, we use M-BERT, an unsupervised joint training model, as our base model and apply our proposed framework on it by first aligning its extracted features and then feeding them to a task-specific model (M-BERT Feature $^ +$ Align). Specifically, we use the sum of the last $4 \\mathbf { M }$ -BERT layers’ outputs as the extracted features. To obtain the alignment matrices, one for each layer, we use 30k parallel sentences from the Europarl corpus for each language pair and follow the procedure of Section 3.2. We feed the extracted features as inputs to a task-specific model with 2 Bi-LSTM layers and a CRF layer (see appendix A). We compare our framework to both finetuning (M-BERT Finetune), which has been studied by previous papers, and feature extraction (M-BERT Feature). Lastly, we also compare against XLM, a supervised joint training model. ",
|
| 730 |
+
"bbox": [
|
| 731 |
+
174,
|
| 732 |
+
804,
|
| 733 |
+
823,
|
| 734 |
+
859
|
| 735 |
+
],
|
| 736 |
+
"page_idx": 5
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"type": "table",
|
| 740 |
+
"img_path": "images/54e6d93bac850917e03d9c2562c6e038e9c336a473c79c066ff31f2f6acb0e03.jpg",
|
| 741 |
+
"table_caption": [
|
| 742 |
+
"Table 2: Precision $@ 1$ for the BLI task on the MUSE dataset with test pairs of same surface form removed. The best result for unsupervised methods is underlined while bold signifies the overall best. "
|
| 743 |
+
],
|
| 744 |
+
"table_footnote": [],
|
| 745 |
+
"table_body": "<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan=\"10\"></td><td></td><td></td><td></td><td></td></tr><tr><td>(1) MUSE(Conneau et al.,2018a)</td><td>77.1</td><td>82.5</td><td>76.4</td><td>Unsupervised 78.0</td><td>674</td><td>67.8 10.5</td><td>72.5 78</td><td>77.5</td><td>42.7</td><td>50.2</td><td>28.7</td><td>29.1</td><td>62.5</td></tr><tr><td>(2) Unsupervised Joint</td><td>3.7</td><td>10.2</td><td>5.1</td><td>10.7</td><td>8.5</td><td></td><td></td><td>8.1</td><td>0.4</td><td>2.7</td><td>2.5</td><td>6.4</td><td>6.4</td></tr><tr><td>(3) Joint_Align + MUSE</td><td>77.5</td><td>83.0</td><td>770</td><td>79.5</td><td>66.7</td><td>68.0</td><td>70.9</td><td>78.0</td><td>43.5</td><td>55.1</td><td>32.3</td><td>32.7</td><td>63.7</td></tr><tr><td></td><td></td><td></td><td></td><td>Supervised</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(4) RCSLS (Joulin et al.,2018b) 78.0</td><td></td><td>83.9</td><td>76.0</td><td>78.6</td><td>68.2</td><td>68.4</td><td>71.8</td><td>78.2</td><td>50.7</td><td>56.9</td><td>51.0</td><td>41.7</td><td>67.0</td></tr><tr><td>(5) Supervised Joint (Duong et al.,2016)</td><td>76.8</td><td>80.8</td><td>73.4</td><td>76.1</td><td>60.1</td><td>61.7</td><td>69.7</td><td>76.2</td><td>41.0</td><td>51.8</td><td>52.3</td><td>43.3</td><td>63.6</td></tr><tr><td>(6) Joint_Align + RCSLS</td><td>82.1</td><td>84.6</td><td>78.1</td><td>80.4</td><td>68.4</td><td>70.4</td><td>73.7</td><td>79.0</td><td>59.0</td><td>66.8</td><td>51.4</td><td>45.7</td><td>70.0</td></tr></table>",
|
| 746 |
+
"bbox": [
|
| 747 |
+
173,
|
| 748 |
+
102,
|
| 749 |
+
821,
|
| 750 |
+
191
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 6
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "text",
|
| 756 |
+
"text": "",
|
| 757 |
+
"bbox": [
|
| 758 |
+
174,
|
| 759 |
+
267,
|
| 760 |
+
825,
|
| 761 |
+
378
|
| 762 |
+
],
|
| 763 |
+
"page_idx": 6
|
| 764 |
+
},
|
| 765 |
+
{
|
| 766 |
+
"type": "text",
|
| 767 |
+
"text": "For the UMT task, we use the exact same data, architecture and parameters released by Lample et al. \n(2018b)7. We simply use different embeddings trained with the same data as inputs to the model. ",
|
| 768 |
+
"bbox": [
|
| 769 |
+
174,
|
| 770 |
+
386,
|
| 771 |
+
823,
|
| 772 |
+
414
|
| 773 |
+
],
|
| 774 |
+
"page_idx": 6
|
| 775 |
+
},
|
| 776 |
+
{
|
| 777 |
+
"type": "text",
|
| 778 |
+
"text": "4.3 RESULTS AND ANALYSIS ",
|
| 779 |
+
"text_level": 1,
|
| 780 |
+
"bbox": [
|
| 781 |
+
176,
|
| 782 |
+
433,
|
| 783 |
+
387,
|
| 784 |
+
446
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 6
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "4.3.1 ALIGNMENT VS. JOINT TRAINING ",
|
| 791 |
+
"text_level": 1,
|
| 792 |
+
"bbox": [
|
| 793 |
+
176,
|
| 794 |
+
459,
|
| 795 |
+
465,
|
| 796 |
+
474
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 6
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "We compare alignment methods with joint training on all three downstream tasks. As shown in Table 1 and Table 3, we find alignment methods significantly outperform the joint training approach by a large margin in all language pairs for both BLI and NER. However, the unsupervised joint training method is superior than its alignment counterpart on the unsupervised MT task as demonstrated in 2(c). While these results demonstrate that their relative performance is task-dependent, we conduct further analysis to reveal three limitations as discussed in Sec 2.3. ",
|
| 803 |
+
"bbox": [
|
| 804 |
+
174,
|
| 805 |
+
484,
|
| 806 |
+
825,
|
| 807 |
+
568
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 6
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "First, their poor performance on BLI and NER tasks shows that unsupervised joint training fails to generate high-quality alignments due to the lack of a fine-grained seed dictionary as discussed in its limitation 2. To evaluate accuracy on words that are not shared, we further remove test pairs of the same surface form (e.g. (hate, hate) as a test pair for en-de) of the BLI task and report their results in Table 2. We find unsupervised joint training (row 2) to achieve extremely low scores which shows that emebddings of non-shared parts are poorly aligned, consistent with the PCA visualization shown in Figure 1. ",
|
| 814 |
+
"bbox": [
|
| 815 |
+
174,
|
| 816 |
+
575,
|
| 817 |
+
825,
|
| 818 |
+
672
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 6
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "Moreover, we delve into the relative performance of the two paradigms on the MT task by plotting their test BLEU scores of the first 20 epochs in Figure 2(a) and 2(b). We observe that the alignment method actually obtains higher BLEU scores in the first few epochs, but gets surpassed by joint training in later epochs. This shows the importance of parameter sharing as discussed in limitation 1 of alignment methods: shared words can be used as a cross-lingual constraint for unsupervised joint training during fine-tuning but this constraint cannot easily be used in alignment methods. The lack of sharing is also a limitation for the supervised joint training method, which performs poorly on the MT task even with supervision as shown in Figure 2(c). ",
|
| 825 |
+
"bbox": [
|
| 826 |
+
174,
|
| 827 |
+
680,
|
| 828 |
+
825,
|
| 829 |
+
791
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 6
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "Lastly, we demonstrate that oversharing can be sub-optimal for unsupervised joint training as discussed in its limitation 2. Specifically, we conduct ablation studies for our framework in Table 1. Applying alignment refinement on unsupervised joint training without any vocabulary reallocation does not improve its performance (row 13). On the other hand, simple vocabulary reallocation alone boosts the performance by quite a margin (row 11). This shows some words are shared erroneously across languages in unsupervised joint training, thereby hindering its performance. In addition, while utilizing a seed dictionary (row 10) improves the performance of unsupervised joint train",
|
| 836 |
+
"bbox": [
|
| 837 |
+
174,
|
| 838 |
+
797,
|
| 839 |
+
825,
|
| 840 |
+
896
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 6
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "text",
|
| 846 |
+
"text": "Table 3: F1 score for the crosslingual NER task. “Adv” refers to adversarial training. ‡ denotes results that are not directly comparable due to different resources and architectures used. ∗ denotes supervised XLM model trained with MLM and TLM objectives. Its Dutch (nl) result is blank because the model is not pretrained on it. Bold signifies state-of-the-art results. We report the average of 5 runs. ",
|
| 847 |
+
"bbox": [
|
| 848 |
+
607,
|
| 849 |
+
101,
|
| 850 |
+
823,
|
| 851 |
+
281
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 7
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "table",
|
| 857 |
+
"img_path": "images/07d2d5e3bec392d13ccecfb057c3a2ba6b8f8317b5457426c196b8b1e664af5d.jpg",
|
| 858 |
+
"table_caption": [],
|
| 859 |
+
"table_footnote": [],
|
| 860 |
+
"table_body": "<table><tr><td></td><td>es</td><td>nl</td><td>de</td><td>avg</td></tr><tr><td colspan=\"5\">Non-contextualized</td></tr><tr><td>Unsupervised Joint</td><td>50.28</td><td>42.77</td><td>21.49</td><td>38.18</td></tr><tr><td>Supervised Joint (Duong et al.,2016)</td><td>63.16</td><td>63.60</td><td>36.24</td><td>54.33</td></tr><tr><td>Joint- Replace</td><td>65.28</td><td>68.44</td><td>51.59</td><td>61.77</td></tr><tr><td>Align</td><td>69.00</td><td>71.33</td><td>52.17</td><td>64.17</td></tr><tr><td>Joint_Align</td><td>70.46</td><td>72.10</td><td>56.47</td><td>66.34</td></tr><tr><td>Xie et al. (2018)</td><td>71.67</td><td>70.90</td><td>57.43</td><td>66.67</td></tr><tr><td>Chen et al. (2019)‡</td><td>73.50</td><td>72.40</td><td>56.00</td><td>67.30</td></tr><tr><td colspan=\"5\">Contextualized</td></tr><tr><td>XLMFinetune (Lample& Conneau,2019)*</td><td>63.18</td><td>-</td><td>67.55</td><td>-</td></tr><tr><td>M-BERT Finetune (Pires et al., 2019)</td><td>73.59</td><td>77.36</td><td>69.74</td><td>73.56</td></tr><tr><td>M-BERT Finetune (Wu& Dredze,2019)</td><td>74.96</td><td>77.57</td><td>69.56</td><td>74.03</td></tr><tr><td>M-BERT Finetune (Keung et al., 2019)</td><td>75.00</td><td>77.50</td><td>68.60</td><td>73.70</td></tr><tr><td>M-BERT Finetune + Adv (Keung et al.,2019)</td><td>74.30</td><td>77.60</td><td>71.90</td><td>74.60</td></tr><tr><td>M-BERT Feature</td><td>74.23</td><td>78.65</td><td>67.63</td><td>73.50</td></tr><tr><td>M-BERT Feature + Align</td><td>75.77</td><td>79.03</td><td>70.54</td><td>75.11</td></tr></table>",
|
| 861 |
+
"bbox": [
|
| 862 |
+
176,
|
| 863 |
+
102,
|
| 864 |
+
591,
|
| 865 |
+
291
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 7
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "text",
|
| 871 |
+
"text": "ing, it still suffers from the oversharing problem and performs worse compared to supervised joint training (row 9). ",
|
| 872 |
+
"bbox": [
|
| 873 |
+
174,
|
| 874 |
+
319,
|
| 875 |
+
823,
|
| 876 |
+
347
|
| 877 |
+
],
|
| 878 |
+
"page_idx": 7
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"type": "text",
|
| 882 |
+
"text": "4.3.2 EVALUATION OF PROPOSED FRAMEWORK ",
|
| 883 |
+
"text_level": 1,
|
| 884 |
+
"bbox": [
|
| 885 |
+
174,
|
| 886 |
+
363,
|
| 887 |
+
517,
|
| 888 |
+
377
|
| 889 |
+
],
|
| 890 |
+
"page_idx": 7
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"type": "text",
|
| 894 |
+
"text": "As shown in Table 1, Table 3, and Figure 2, our proposed framework substantially improves over the alignment and joint training baselines on all three tasks. In particular, it outperforms existing methods on all language pairs for the BLI task (using the CSLS as retrieval metric) and achieves state-of-the-art results on 2 out of 3 language pairs for the NER task. Besides, we show that it alleviates limitations of alignment and joint training methods shown in the previous section. ",
|
| 895 |
+
"bbox": [
|
| 896 |
+
174,
|
| 897 |
+
387,
|
| 898 |
+
823,
|
| 899 |
+
458
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 7
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "First, the proposed framework largely improves the poor alignment of unsupervised joint training, especially for non-sharing parts. As shown in Table 1, the proposed Joint Align framework achieves comparable results to prior methods in the unsupervised case (row 12) and it outperforms previous state-of-the-art methods in the supervised setting (row 15). Specifically, our proposed framework can generate well-aligned embeddings after alignment refinement is applied to the initially ill-aligned embeddings, as demonstrated in Figure 1. This is further verified by results in Table 2, where our proposed framework largely improves accuracy on words not shared between two languages over the unsupervised joint training baseline (row 3 and 6 vs row 2). ",
|
| 906 |
+
"bbox": [
|
| 907 |
+
174,
|
| 908 |
+
465,
|
| 909 |
+
823,
|
| 910 |
+
577
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 7
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "Besides, our ablation study in Table 1 further shows the effectiveness of the proposed vocabulary reallocation technique, which alleviates the issue of oversharing. Particularly, we observe no improvement compared to unsupervised joint training baseline (row 8) when an alignment refinement step is used without vocabulary reallocation (row 13), while a vocabulary reallocation step alone significantly improves the performance (row 11). This is consistent with Figure 1 and shows that the oversharing is a bottleneck for applying alignment methods to joint training. It also suggests detecting what to share is crucial to achieve better cross-lingual transfer. ",
|
| 917 |
+
"bbox": [
|
| 918 |
+
174,
|
| 919 |
+
583,
|
| 920 |
+
825,
|
| 921 |
+
680
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 7
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Lastly, while supervised joint training shares the limitation 1 of alignment methods and performs poorly when finetuned, our proposed framework exploits the same idea of vocabulary sharing used in unsupervised joint training. In the MT tasks, our framework obtains a maximum gain of 2.97 BLEU over baselines we ran and consistently performs better than results reported in Lample et al. (2018b). In addition, Figure 2 shows that Joint Align not only converges faster in earlier training epochs but also consistently outperforms the two baselines thereafter. These empirical findings demonstrate the effectiveness of our proposed methods in the non-contextualized case. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
688,
|
| 931 |
+
825,
|
| 932 |
+
785
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 7
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "4.3.3 CONTEXTUALIZED WORD REPRESENTATIONS ",
|
| 939 |
+
"text_level": 1,
|
| 940 |
+
"bbox": [
|
| 941 |
+
174,
|
| 942 |
+
801,
|
| 943 |
+
545,
|
| 944 |
+
815
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 7
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "As can be seen in Table 3, when using our framework (M-BERT Feature $^ +$ Align), we achieve state-of-the-art results on cross-lingual NER on 2 out of 3 languages and the overall average. This shows that our framework can effectively generalize to contextualized representations. Specifically, our framework improves over both the M-BERT feature extraction and finetuning baselines on all three language pairs. However, when compared to non-contextualized results, the gain of using alignment refinement on top of unsupervised joint training is much smaller. This suggests that, as the contextualized unsupervised joint training model performs very well already even without any supervision, it is harder to achieve large improvements. While alignment refinement relies on word alignment, a process that is noisy itself, a better alignment approach may be warranted. Lastly, the reason why a supervised joint training model, XLM, performs worse than its unsupervised counterpart, M-BERT, is likely that XLM uses an uncased vocabulary, where casing information is important for NER tasks. ",
|
| 951 |
+
"bbox": [
|
| 952 |
+
174,
|
| 953 |
+
825,
|
| 954 |
+
823,
|
| 955 |
+
924
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 7
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "image",
|
| 961 |
+
"img_path": "images/0ed39ba542e2114a70a133ccf587b90c94874585c425f7eae793846915ce0375.jpg",
|
| 962 |
+
"image_caption": [
|
| 963 |
+
"Figure 2: (a)(b): Results on MT of Align, Joint and our framework for the first 20 training epochs. Results after 20 epochs have similar patterns. (c): BLEU scores for the MT task. Results evaluated on the WMT’14 English-French and WMT’16 German-English. All training settings are the same for each language pair except the embedding initialization. Note that we are not trying to outperform state-of-the-art methods (Song et al., 2019) but rather to observe improvements afforded by embedding initialization. †Results reported by Lample et al. (2018b). Our results are obtained using the official code released by the author. ‡Duong et al. (2016) is a supervised method that we include for analysis purpose only and is not directly comparable to other results in this table. "
|
| 964 |
+
],
|
| 965 |
+
"image_footnote": [],
|
| 966 |
+
"bbox": [
|
| 967 |
+
183,
|
| 968 |
+
108,
|
| 969 |
+
812,
|
| 970 |
+
222
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
385,
|
| 980 |
+
825,
|
| 981 |
+
455
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "5 RELATED WORK ",
|
| 988 |
+
"text_level": 1,
|
| 989 |
+
"bbox": [
|
| 990 |
+
176,
|
| 991 |
+
483,
|
| 992 |
+
344,
|
| 993 |
+
500
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "Word embeddings (Mikolov et al., 2013a; Ruder et al., 2019) are a key ingredient to achieving success in monolingual NLP tasks. However, directly using word embeddings independently trained for each language may cause negative transfer (Wang et al., 2019) in cross-lingual transfer tasks. In order to capture the cross-lingual mapping, a rich body of existing work relying on cross-lingual supervision, including bilingual dictionaries (Mikolov et al., 2013a; Faruqui & Dyer, 2014; Artetxe et al., 2016; Xing et al., 2015; Duong et al., 2016; Gouws & Søgaard, 2015; Joulin et al., 2018a), sentence-aligned corpora (Kocisk ˇ y et al., 2014; Hermann & Blunsom, 2014; Gouws et al., 2015) \\` and document-aligned corpora (Vulic & Moens, 2016; Søgaard et al., 2015). ´ ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
520,
|
| 1003 |
+
825,
|
| 1004 |
+
632
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 8
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "Besides, unsupervised alignment methods aim to eliminate the requirement for cross-lingual supervision. Early work of Cao et al. (2016) matches the mean and the standard deviation of two embedding spaces after alignment. Barone (2016); Zhang et al. (2017a;b); Conneau et al. (2018a) adapted a generative adversarial network (GAN) (Goodfellow et al., 2014) to make the distributions of two word embedding spaces indistinguishable. Follow-up works improve upon GAN-based training for better stability and robustness by introducing Sinkhorn distance (Xu et al., 2018), by stochastic self-training (Artetxe et al., 2018a), or by introducing latent variables (Dou et al., 2018). ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
174,
|
| 1013 |
+
638,
|
| 1014 |
+
823,
|
| 1015 |
+
736
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 8
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "While alignment methods utilize embeddings trained independently on different languages, joint training methods train word embeddings at the same time. Klementiev et al. (2012) train a bilingual dictionary-based regularization term jointly with monolingual language model objectives while Kocisk ˇ y et al. (2014) defines the cross-lingual regularization with the parallel corpus. Another \\` branch of methods (Xiao & Guo, 2014; Gouws & Søgaard, 2015; Ammar et al., 2016; Duong et al., 2016) build a pseudo-bilingual corpus by randomly replacing words in monolingual corpus with their translations and use monolingual word embedding algorithms to induce bilingual representations. The unsupervised joint method by Lample & Conneau (2019) simply exploit words that share the same surface form as bilingual “supervision” and directly train a shared set of embedding with joint vocabulary. Recently, unsupervised joint training of contextualized word embeddings through the form of multilingual language model pretraining using shared subword vocabularies has produced state-of-the-art results on various benchmarks (Devlin et al., 2019; Artetxe & Schwenk, 2019; Lample & Conneau, 2019; Pires et al., 2019; Wu & Dredze, 2019). ",
|
| 1022 |
+
"bbox": [
|
| 1023 |
+
174,
|
| 1024 |
+
743,
|
| 1025 |
+
825,
|
| 1026 |
+
922
|
| 1027 |
+
],
|
| 1028 |
+
"page_idx": 8
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"type": "text",
|
| 1032 |
+
"text": "A concurrent work by Ormazabal et al. (2019) also compares alignment and joint method in the bilingual lexicon induction task. Different from their setup which only tests on supervised settings, we conduct analysis across various tasks and experiment with both supervised and unsupervised conditions. While Ormazabal et al. (2019) suggests that the combination of the alignment and joint model could potentially advance the state-of-art of both worlds, we propose such a framework and empirically verify its effectiveness on various tasks and settings. ",
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
174,
|
| 1035 |
+
103,
|
| 1036 |
+
825,
|
| 1037 |
+
188
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 9
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "6 CONCLUSION ",
|
| 1044 |
+
"text_level": 1,
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
176,
|
| 1047 |
+
207,
|
| 1048 |
+
318,
|
| 1049 |
+
223
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "In this paper, we systematically compare the alignment and joint training methods for CLWE. We point out that the nature of each category of methods leads to certain strengths and limitations. The empirical experiments on extensive benchmark datasets and various NLP tasks verified our analysis. To further improve the state-of-art of CLWE, we propose a simple hybrid framework which combines the strength from both worlds and achieves significantly better performance in the BLI, MT and NER tasks. Our work opens a promising new direction that combines two previously exclusive lines of research. For future work, an interesting direction is to find a more effective word sharing strategy. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
174,
|
| 1058 |
+
238,
|
| 1059 |
+
825,
|
| 1060 |
+
349
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Acknowledgments: This research was sponsored by Defense Advanced Research Projects Agency Information Innovation Office (I2O) under the Low Resource Languages for Emergent Incidents (LORELEI) program, issued by DARPA/I2O under Contract No. HR0011-15-C0114. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the U.S. government. The U.S. government is authorized to reproduce and distribute reprints for government purposes notwithstanding any copyright notation here on. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
174,
|
| 1069 |
+
357,
|
| 1070 |
+
825,
|
| 1071 |
+
454
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "REFERENCES ",
|
| 1078 |
+
"text_level": 1,
|
| 1079 |
+
"bbox": [
|
| 1080 |
+
174,
|
| 1081 |
+
476,
|
| 1082 |
+
285,
|
| 1083 |
+
489
|
| 1084 |
+
],
|
| 1085 |
+
"page_idx": 9
|
| 1086 |
+
},
|
| 1087 |
+
{
|
| 1088 |
+
"type": "text",
|
| 1089 |
+
"text": "Oliver Adams, Adam Makarucha, Graham Neubig, Steven Bird, and Trevor Cohn. Cross-lingual word embeddings for low-resource language modeling. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 1, Long Papers, pp. 937–947, Valencia, Spain, April 2017. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/E17-1088. \nWasi Uddin Ahmad, Zhisong Zhang, Xuezhe Ma, Eduard Hovy, Kai-Wei Chang, and Nanyun Peng. On difficulties of cross-lingual transfer with order differences: A case study on dependency parsing. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1811.00570. \nHanan Aldarmaki and Mona Diab. Context-aware cross-lingual mapping. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1903.03243. \nWaleed Ammar, George Mulcaire, Yulia Tsvetkov, Guillaume Lample, Chris Dyer, and Noah A Smith. Massively multilingual word embeddings. arXiv preprint arXiv:1602.01925, 2016. \nMikel Artetxe and Holger Schwenk. Massively multilingual sentence embeddings for zero-shot cross-lingual transfer and beyond. Transactions of the Association for Computational Linguistics, 7:597–610, 2019. \nMikel Artetxe, Gorka Labaka, and Eneko Agirre. Learning principled bilingual mappings of word embeddings while preserving monolingual invariance. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 2289–2294, 2016. \nMikel Artetxe, Gorka Labaka, and Eneko Agirre. A robust self-learning method for fully unsupervised cross-lingual mappings of word embeddings. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 789–798, 2018a. \nMikel Artetxe, Gorka Labaka, Eneko Agirre, and Kyunghyun Cho. Unsupervised neural machine translation. In International Conference on Learning Representations, 2018b. URL https: //openreview.net/forum?id=Sy2ogebAW. ",
|
| 1090 |
+
"bbox": [
|
| 1091 |
+
171,
|
| 1092 |
+
498,
|
| 1093 |
+
826,
|
| 1094 |
+
928
|
| 1095 |
+
],
|
| 1096 |
+
"page_idx": 9
|
| 1097 |
+
},
|
| 1098 |
+
{
|
| 1099 |
+
"type": "text",
|
| 1100 |
+
"text": "Mikel Artetxe, Gorka Labaka, and Eneko Agirre. Bilingual lexicon induction through unsupervised machine translation. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 5002–5007, 2019. ",
|
| 1101 |
+
"bbox": [
|
| 1102 |
+
174,
|
| 1103 |
+
103,
|
| 1104 |
+
823,
|
| 1105 |
+
146
|
| 1106 |
+
],
|
| 1107 |
+
"page_idx": 10
|
| 1108 |
+
},
|
| 1109 |
+
{
|
| 1110 |
+
"type": "text",
|
| 1111 |
+
"text": "Antonio Valerio Miceli Barone. Towards cross-lingual distributed representations without parallel text trained with adversarial autoencoders. In Proceedings of the 1st Workshop on Representation Learning for NLP, pp. 121–126, 2016. ",
|
| 1112 |
+
"bbox": [
|
| 1113 |
+
176,
|
| 1114 |
+
155,
|
| 1115 |
+
823,
|
| 1116 |
+
199
|
| 1117 |
+
],
|
| 1118 |
+
"page_idx": 10
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"type": "text",
|
| 1122 |
+
"text": "Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. Enriching word vectors with subword information. Transactions of the Association for Computational Linguistics, 5:135–146, 2017. ",
|
| 1123 |
+
"bbox": [
|
| 1124 |
+
173,
|
| 1125 |
+
208,
|
| 1126 |
+
825,
|
| 1127 |
+
250
|
| 1128 |
+
],
|
| 1129 |
+
"page_idx": 10
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"type": "text",
|
| 1133 |
+
"text": "Hailong Cao, Tiejun Zhao, Shu ZHANG, and Yao Meng. A distribution-based model to learn bilingual word embeddings. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pp. 1818–1827, Osaka, Japan, December 2016. The COLING 2016 Organizing Committee. URL https://www.aclweb.org/ anthology/C16-1171. ",
|
| 1134 |
+
"bbox": [
|
| 1135 |
+
173,
|
| 1136 |
+
260,
|
| 1137 |
+
825,
|
| 1138 |
+
330
|
| 1139 |
+
],
|
| 1140 |
+
"page_idx": 10
|
| 1141 |
+
},
|
| 1142 |
+
{
|
| 1143 |
+
"type": "text",
|
| 1144 |
+
"text": "Xilun Chen, Ahmed Hassan Awadallah, Hany Hassan, Wei Wang, and Claire Cardie. Multisource cross-lingual model transfer: Learning what to share. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 3098–3112, Florence, Italy, July 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1299. URL https://www.aclweb.org/anthology/P19-1299. ",
|
| 1145 |
+
"bbox": [
|
| 1146 |
+
174,
|
| 1147 |
+
340,
|
| 1148 |
+
825,
|
| 1149 |
+
411
|
| 1150 |
+
],
|
| 1151 |
+
"page_idx": 10
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"type": "text",
|
| 1155 |
+
"text": "Alexis Conneau, Guillaume Lample, Marc’Aurelio Ranzato, Ludovic Denoyer, and Herve J ´ egou.´ Word translation without parallel data. In International Conference on Learning Representations (ICLR), 2018a. ",
|
| 1156 |
+
"bbox": [
|
| 1157 |
+
174,
|
| 1158 |
+
420,
|
| 1159 |
+
825,
|
| 1160 |
+
463
|
| 1161 |
+
],
|
| 1162 |
+
"page_idx": 10
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"type": "text",
|
| 1166 |
+
"text": "Alexis Conneau, Ruty Rinott, Guillaume Lample, Adina Williams, Samuel R. Bowman, Holger Schwenk, and Veselin Stoyanov. Xnli: Evaluating cross-lingual sentence representations. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2018b. ",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
174,
|
| 1169 |
+
473,
|
| 1170 |
+
825,
|
| 1171 |
+
530
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4171–4186, 2019. ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
539,
|
| 1181 |
+
826,
|
| 1182 |
+
595
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Zi-Yi Dou, Zhi-Hao Zhou, and Shujian Huang. Unsupervised bilingual lexicon induction via latent variable models. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 621–626, 2018. ",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
176,
|
| 1191 |
+
604,
|
| 1192 |
+
823,
|
| 1193 |
+
648
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 10
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "text",
|
| 1199 |
+
"text": "Long Duong, Hiroshi Kanayama, Tengfei Ma, Steven Bird, and Trevor Cohn. Learning crosslingual word embeddings without bilingual corpora. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pp. 1285–1295, 2016. ",
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
173,
|
| 1202 |
+
657,
|
| 1203 |
+
826,
|
| 1204 |
+
702
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 10
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "text",
|
| 1210 |
+
"text": "Chris Dyer, Victor Chahuneau, and Noah A. Smith. A simple, fast, and effective reparameterization of IBM model 2. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 644–648, Atlanta, Georgia, June 2013. Association for Computational Linguistics. ",
|
| 1211 |
+
"bbox": [
|
| 1212 |
+
173,
|
| 1213 |
+
710,
|
| 1214 |
+
826,
|
| 1215 |
+
767
|
| 1216 |
+
],
|
| 1217 |
+
"page_idx": 10
|
| 1218 |
+
},
|
| 1219 |
+
{
|
| 1220 |
+
"type": "text",
|
| 1221 |
+
"text": "Manaal Faruqui and Chris Dyer. Improving vector space word representations using multilingual correlation. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, pp. 462–471, 2014. ",
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
173,
|
| 1224 |
+
776,
|
| 1225 |
+
823,
|
| 1226 |
+
820
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "Goran Glavas, Robert Litschko, Sebastian Ruder, and Ivan Vulic. How to (properly) evaluate crosslingual word embeddings: On strong baselines, comparative analyses, and some misconceptions. arXiv preprint arXiv:1902.00508, 2019. ",
|
| 1233 |
+
"bbox": [
|
| 1234 |
+
174,
|
| 1235 |
+
829,
|
| 1236 |
+
823,
|
| 1237 |
+
871
|
| 1238 |
+
],
|
| 1239 |
+
"page_idx": 10
|
| 1240 |
+
},
|
| 1241 |
+
{
|
| 1242 |
+
"type": "text",
|
| 1243 |
+
"text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
|
| 1244 |
+
"bbox": [
|
| 1245 |
+
174,
|
| 1246 |
+
881,
|
| 1247 |
+
823,
|
| 1248 |
+
924
|
| 1249 |
+
],
|
| 1250 |
+
"page_idx": 10
|
| 1251 |
+
},
|
| 1252 |
+
{
|
| 1253 |
+
"type": "text",
|
| 1254 |
+
"text": "Stephan Gouws and Anders Søgaard. Simple task-specific bilingual word embeddings. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1386–1390, 2015. ",
|
| 1255 |
+
"bbox": [
|
| 1256 |
+
176,
|
| 1257 |
+
103,
|
| 1258 |
+
821,
|
| 1259 |
+
147
|
| 1260 |
+
],
|
| 1261 |
+
"page_idx": 11
|
| 1262 |
+
},
|
| 1263 |
+
{
|
| 1264 |
+
"type": "text",
|
| 1265 |
+
"text": "Stephan Gouws, Yoshua Bengio, and Greg Corrado. Bilbowa: Fast bilingual distributed representations without word alignments. In International Conference on Machine Learning, pp. 748–756, 2015. ",
|
| 1266 |
+
"bbox": [
|
| 1267 |
+
174,
|
| 1268 |
+
155,
|
| 1269 |
+
823,
|
| 1270 |
+
196
|
| 1271 |
+
],
|
| 1272 |
+
"page_idx": 11
|
| 1273 |
+
},
|
| 1274 |
+
{
|
| 1275 |
+
"type": "text",
|
| 1276 |
+
"text": "Karl Moritz Hermann and Phil Blunsom. Multilingual models for compositional distributed semantics. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 58–68, 2014. ",
|
| 1277 |
+
"bbox": [
|
| 1278 |
+
174,
|
| 1279 |
+
205,
|
| 1280 |
+
825,
|
| 1281 |
+
250
|
| 1282 |
+
],
|
| 1283 |
+
"page_idx": 11
|
| 1284 |
+
},
|
| 1285 |
+
{
|
| 1286 |
+
"type": "text",
|
| 1287 |
+
"text": "Pratik Jawanpuria, Arjun Balgovind, Anoop Kunchukuttan, and Bamdev Mishra. Learning multilingual word embeddings in latent metric space: a geometric approach. Transactions of the Association for Computational Linguistics, 7:107–120, 2019. ",
|
| 1288 |
+
"bbox": [
|
| 1289 |
+
173,
|
| 1290 |
+
258,
|
| 1291 |
+
825,
|
| 1292 |
+
301
|
| 1293 |
+
],
|
| 1294 |
+
"page_idx": 11
|
| 1295 |
+
},
|
| 1296 |
+
{
|
| 1297 |
+
"type": "text",
|
| 1298 |
+
"text": "Armand Joulin, Piotr Bojanowski, Tomas Mikolov, Herve J´ egou, and Edouard Grave. Loss in´ translation: Learning bilingual word mapping with a retrieval criterion. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2979–2984, Brussels, Belgium, October-November 2018a. Association for Computational Linguistics. URL https://www.aclweb.org/anthology/D18-1330. ",
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
174,
|
| 1301 |
+
309,
|
| 1302 |
+
826,
|
| 1303 |
+
381
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 11
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Armand Joulin, Piotr Bojanowski, Tomas Mikolov, Herve J ´ egou, and Edouard Grave. Loss in trans- ´ lation: Learning bilingual word mapping with a retrieval criterion. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2979–2984, 2018b. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
176,
|
| 1312 |
+
388,
|
| 1313 |
+
823,
|
| 1314 |
+
433
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 11
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "Phillip Keung, Yichao Lu, and Vikas Bhardwaj. Adversarial learning with contextual embeddings for zero-resource cross-lingual classification and ner. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), November 2019. URL https: //arxiv.org/abs/1909.00153. ",
|
| 1321 |
+
"bbox": [
|
| 1322 |
+
174,
|
| 1323 |
+
440,
|
| 1324 |
+
825,
|
| 1325 |
+
497
|
| 1326 |
+
],
|
| 1327 |
+
"page_idx": 11
|
| 1328 |
+
},
|
| 1329 |
+
{
|
| 1330 |
+
"type": "text",
|
| 1331 |
+
"text": "Alexandre Klementiev, Ivan Titov, and Binod Bhattarai. Inducing crosslingual distributed representations of words. In Proceedings of COLING 2012, pp. 1459–1474, Mumbai, India, December 2012. The COLING 2012 Organizing Committee. URL https://www.aclweb.org/ anthology/C12-1089. ",
|
| 1332 |
+
"bbox": [
|
| 1333 |
+
174,
|
| 1334 |
+
506,
|
| 1335 |
+
825,
|
| 1336 |
+
563
|
| 1337 |
+
],
|
| 1338 |
+
"page_idx": 11
|
| 1339 |
+
},
|
| 1340 |
+
{
|
| 1341 |
+
"type": "text",
|
| 1342 |
+
"text": "Toma´s Ko ˇ cisk ˇ y, Karl Moritz Hermann, and Phil Blunsom. Learning bilingual word representations \\` by marginalizing alignments. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 224–229, 2014. ",
|
| 1343 |
+
"bbox": [
|
| 1344 |
+
174,
|
| 1345 |
+
570,
|
| 1346 |
+
825,
|
| 1347 |
+
614
|
| 1348 |
+
],
|
| 1349 |
+
"page_idx": 11
|
| 1350 |
+
},
|
| 1351 |
+
{
|
| 1352 |
+
"type": "text",
|
| 1353 |
+
"text": "Guillaume Lample and Alexis Conneau. Cross-lingual language model pretraining. In Proceedings of NeurIPS, 2019. ",
|
| 1354 |
+
"bbox": [
|
| 1355 |
+
173,
|
| 1356 |
+
623,
|
| 1357 |
+
823,
|
| 1358 |
+
651
|
| 1359 |
+
],
|
| 1360 |
+
"page_idx": 11
|
| 1361 |
+
},
|
| 1362 |
+
{
|
| 1363 |
+
"type": "text",
|
| 1364 |
+
"text": "Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. Neural architectures for named entity recognition. In Kevin Knight, Ani Nenkova, and Owen Rambow (eds.), NAACL, pp. 260–270. The Association for Computational Linguistics, 2016. ISBN 978-1-941643-91-4. URL http://aclweb.org/anthology/N/N16/ N16-1030.pdf. ",
|
| 1365 |
+
"bbox": [
|
| 1366 |
+
173,
|
| 1367 |
+
661,
|
| 1368 |
+
825,
|
| 1369 |
+
732
|
| 1370 |
+
],
|
| 1371 |
+
"page_idx": 11
|
| 1372 |
+
},
|
| 1373 |
+
{
|
| 1374 |
+
"type": "text",
|
| 1375 |
+
"text": "Guillaume Lample, Alexis Conneau, Ludovic Denoyer, and Marc’Aurelio Ranzato. Unsupervised machine translation using monolingual corpora only. In International Conference on Learning Representations, 2018a. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ rkYTTf-AZ. ",
|
| 1376 |
+
"bbox": [
|
| 1377 |
+
174,
|
| 1378 |
+
739,
|
| 1379 |
+
825,
|
| 1380 |
+
784
|
| 1381 |
+
],
|
| 1382 |
+
"page_idx": 11
|
| 1383 |
+
},
|
| 1384 |
+
{
|
| 1385 |
+
"type": "text",
|
| 1386 |
+
"text": "Guillaume Lample, Myle Ott, Alexis Conneau, Ludovic Denoyer, et al. Phrase-based & neural unsupervised machine translation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 5039–5049, 2018b. ",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
173,
|
| 1389 |
+
791,
|
| 1390 |
+
825,
|
| 1391 |
+
835
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 11
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Thang Luong, Hieu Pham, and Christopher D Manning. Bilingual word representations with monolingual quality in mind. In Proceedings of the 1st Workshop on Vector Space Modeling for Natural Language Processing, pp. 151–159, 2015. ",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
173,
|
| 1400 |
+
843,
|
| 1401 |
+
823,
|
| 1402 |
+
886
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 11
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. ICLR, 2013a. ",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
173,
|
| 1411 |
+
895,
|
| 1412 |
+
821,
|
| 1413 |
+
924
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 11
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "Tomas Mikolov, Quoc V Le, and Ilya Sutskever. Exploiting similarities among languages for machine translation. arXiv preprint arXiv:1309.4168, 2013b. ",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
171,
|
| 1422 |
+
103,
|
| 1423 |
+
823,
|
| 1424 |
+
132
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 12
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "Aitor Ormazabal, Mikel Artetxe, Gorka Labaka, Aitor Soroa, and Eneko Agirre. Analyzing the limitations of cross-lingual word embedding mappings. arXiv preprint arXiv:1906.05407, 2019. ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
171,
|
| 1433 |
+
140,
|
| 1434 |
+
823,
|
| 1435 |
+
170
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 12
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "text",
|
| 1441 |
+
"text": "Barun Patra, Joel Ruben Antony Moniz, Sarthak Garg, Matthew R. Gormley, and Graham Neubig. Bilingual lexicon induction with semi-supervision in non-isometric embedding spaces. In The 57th Annual Meeting of the Association for Computational Linguistics (ACL), Florence, Italy, July 2019. URL https://www.aclweb.org/anthology/P19-1018. ",
|
| 1442 |
+
"bbox": [
|
| 1443 |
+
173,
|
| 1444 |
+
176,
|
| 1445 |
+
825,
|
| 1446 |
+
234
|
| 1447 |
+
],
|
| 1448 |
+
"page_idx": 12
|
| 1449 |
+
},
|
| 1450 |
+
{
|
| 1451 |
+
"type": "text",
|
| 1452 |
+
"text": "Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pp. 1532–1543, 2014. ",
|
| 1453 |
+
"bbox": [
|
| 1454 |
+
169,
|
| 1455 |
+
242,
|
| 1456 |
+
825,
|
| 1457 |
+
271
|
| 1458 |
+
],
|
| 1459 |
+
"page_idx": 12
|
| 1460 |
+
},
|
| 1461 |
+
{
|
| 1462 |
+
"type": "text",
|
| 1463 |
+
"text": "Telmo Pires, Eva Schlinger, and Dan Garrette. How multilingual is multilingual bert? In The 57th Annual Meeting of the Association for Computational Linguistics (ACL), July 2019. URL https://arxiv.org/abs/1906.01502. ",
|
| 1464 |
+
"bbox": [
|
| 1465 |
+
176,
|
| 1466 |
+
279,
|
| 1467 |
+
823,
|
| 1468 |
+
321
|
| 1469 |
+
],
|
| 1470 |
+
"page_idx": 12
|
| 1471 |
+
},
|
| 1472 |
+
{
|
| 1473 |
+
"type": "text",
|
| 1474 |
+
"text": "Sebastian Ruder, Ivan Vulic, and Anders Søgaard. A survey of cross-lingual word embedding mod- ´ els. Journal of Artificial Intelligence Research, 65:569–631, 2019. ",
|
| 1475 |
+
"bbox": [
|
| 1476 |
+
171,
|
| 1477 |
+
330,
|
| 1478 |
+
823,
|
| 1479 |
+
359
|
| 1480 |
+
],
|
| 1481 |
+
"page_idx": 12
|
| 1482 |
+
},
|
| 1483 |
+
{
|
| 1484 |
+
"type": "text",
|
| 1485 |
+
"text": "Tal Schuster, Ori Ram, Regina Barzilay, and Amir Globerson. Cross-lingual alignment of contextual word embeddings, with applications to zero-shot dependency parsing. In Meeting of the North American Chapter of the Association for Computational Linguistics (NAACL), Minneapolis, USA, June 2019. URL https://arxiv.org/abs/1902.09492. ",
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
174,
|
| 1488 |
+
367,
|
| 1489 |
+
825,
|
| 1490 |
+
424
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 12
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "text",
|
| 1496 |
+
"text": "Samuel L. Smith, David H. P. Turban, Steven Hamblin, and Nils Y. Hammerla. Offline bilingual word vectors, orthogonal transformations and the inverted softmax. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. URL https://openreview.net/forum?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ r1Aab85gg. ",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
174,
|
| 1499 |
+
433,
|
| 1500 |
+
825,
|
| 1501 |
+
503
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 12
|
| 1504 |
+
},
|
| 1505 |
+
{
|
| 1506 |
+
"type": "text",
|
| 1507 |
+
"text": "Anders Søgaard, Zeljko Agi ˇ c, H ´ ector Mart ´ ´ınez Alonso, Barbara Plank, Bernd Bohnet, and Anders Johannsen. Inverted indexing for cross-lingual nlp. In The 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference of the Asian Federation of Natural Language Processing (ACL-IJCNLP 2015), 2015. ",
|
| 1508 |
+
"bbox": [
|
| 1509 |
+
174,
|
| 1510 |
+
511,
|
| 1511 |
+
825,
|
| 1512 |
+
568
|
| 1513 |
+
],
|
| 1514 |
+
"page_idx": 12
|
| 1515 |
+
},
|
| 1516 |
+
{
|
| 1517 |
+
"type": "text",
|
| 1518 |
+
"text": "Anders Søgaard, Sebastian Ruder, and Ivan Vulic. On the limitations of unsupervised bilin- ´ gual dictionary induction. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 778–788, Melbourne, Australia, July 2018. Association for Computational Linguistics. doi: 10.18653/v1/P18-1072. URL https: //www.aclweb.org/anthology/P18-1072. ",
|
| 1519 |
+
"bbox": [
|
| 1520 |
+
174,
|
| 1521 |
+
575,
|
| 1522 |
+
825,
|
| 1523 |
+
646
|
| 1524 |
+
],
|
| 1525 |
+
"page_idx": 12
|
| 1526 |
+
},
|
| 1527 |
+
{
|
| 1528 |
+
"type": "text",
|
| 1529 |
+
"text": "Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. Mass: Masked sequence to sequence pre-training for language generation. In International Conference on Machine Learning, pp. 5926–5936, 2019. ",
|
| 1530 |
+
"bbox": [
|
| 1531 |
+
174,
|
| 1532 |
+
654,
|
| 1533 |
+
823,
|
| 1534 |
+
696
|
| 1535 |
+
],
|
| 1536 |
+
"page_idx": 12
|
| 1537 |
+
},
|
| 1538 |
+
{
|
| 1539 |
+
"type": "text",
|
| 1540 |
+
"text": "Erik F. Tjong Kim Sang. Introduction to the CoNLL-2002 shared task: Language-independent named entity recognition. In CoNLL, pp. 1–4, 2002. doi: 10.3115/1118853.1118877. URL https://doi.org/10.3115/1118853.1118877. ",
|
| 1541 |
+
"bbox": [
|
| 1542 |
+
174,
|
| 1543 |
+
705,
|
| 1544 |
+
821,
|
| 1545 |
+
748
|
| 1546 |
+
],
|
| 1547 |
+
"page_idx": 12
|
| 1548 |
+
},
|
| 1549 |
+
{
|
| 1550 |
+
"type": "text",
|
| 1551 |
+
"text": "Erik F Tjong Kim Sang and Fien De Meulder. Introduction to the CoNLL-2003 shared task: Language-independent named entity recognition. In CoNLL, pp. 142–147, 2003. ",
|
| 1552 |
+
"bbox": [
|
| 1553 |
+
176,
|
| 1554 |
+
756,
|
| 1555 |
+
820,
|
| 1556 |
+
786
|
| 1557 |
+
],
|
| 1558 |
+
"page_idx": 12
|
| 1559 |
+
},
|
| 1560 |
+
{
|
| 1561 |
+
"type": "text",
|
| 1562 |
+
"text": "Ivan Vulic and Marie-Francine Moens. Bilingual distributed word representations from document- ´ aligned comparable data. Journal of Artificial Intelligence Research, 55:953–994, 2016. ",
|
| 1563 |
+
"bbox": [
|
| 1564 |
+
171,
|
| 1565 |
+
792,
|
| 1566 |
+
821,
|
| 1567 |
+
821
|
| 1568 |
+
],
|
| 1569 |
+
"page_idx": 12
|
| 1570 |
+
},
|
| 1571 |
+
{
|
| 1572 |
+
"type": "text",
|
| 1573 |
+
"text": "Zirui Wang, Zihang Dai, Barnabas P ´ oczos, and Jaime Carbonell. Characterizing and avoiding nega- ´ tive transfer. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 11293–11302, 2019. ",
|
| 1574 |
+
"bbox": [
|
| 1575 |
+
174,
|
| 1576 |
+
829,
|
| 1577 |
+
823,
|
| 1578 |
+
873
|
| 1579 |
+
],
|
| 1580 |
+
"page_idx": 12
|
| 1581 |
+
},
|
| 1582 |
+
{
|
| 1583 |
+
"type": "text",
|
| 1584 |
+
"text": "Shijie Wu and Mark Dredze. Beto, bentz, becas: The surprising cross-lingual effectiveness of BERT. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), November 2019. URL https://arxiv.org/abs/1904.09077. ",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
174,
|
| 1587 |
+
882,
|
| 1588 |
+
825,
|
| 1589 |
+
924
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 12
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "Min Xiao and Yuhong Guo. Distributed word representation learning for cross-lingual dependency parsing. In Proceedings of the Eighteenth Conference on Computational Natural Language Learning, pp. 119–129, 2014. ",
|
| 1596 |
+
"bbox": [
|
| 1597 |
+
174,
|
| 1598 |
+
103,
|
| 1599 |
+
823,
|
| 1600 |
+
146
|
| 1601 |
+
],
|
| 1602 |
+
"page_idx": 13
|
| 1603 |
+
},
|
| 1604 |
+
{
|
| 1605 |
+
"type": "text",
|
| 1606 |
+
"text": "Jiateng Xie, Zhilin Yang, Graham Neubig, Noah A Smith, and Jaime Carbonell. Neural crosslingual named entity recognition with minimal resources. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 369–379, 2018. ",
|
| 1607 |
+
"bbox": [
|
| 1608 |
+
174,
|
| 1609 |
+
155,
|
| 1610 |
+
820,
|
| 1611 |
+
199
|
| 1612 |
+
],
|
| 1613 |
+
"page_idx": 13
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"type": "text",
|
| 1617 |
+
"text": "Chao Xing, Dong Wang, Chao Liu, and Yiye Lin. Normalized word embedding and orthogonal transform for bilingual word translation. In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 1006–1011, 2015. ",
|
| 1618 |
+
"bbox": [
|
| 1619 |
+
173,
|
| 1620 |
+
207,
|
| 1621 |
+
825,
|
| 1622 |
+
263
|
| 1623 |
+
],
|
| 1624 |
+
"page_idx": 13
|
| 1625 |
+
},
|
| 1626 |
+
{
|
| 1627 |
+
"type": "text",
|
| 1628 |
+
"text": "Ruochen Xu, Yiming Yang, Naoki Otani, and Yuexin Wu. Unsupervised cross-lingual transfer of word embedding spaces. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2465–2474, 2018. ",
|
| 1629 |
+
"bbox": [
|
| 1630 |
+
173,
|
| 1631 |
+
273,
|
| 1632 |
+
826,
|
| 1633 |
+
316
|
| 1634 |
+
],
|
| 1635 |
+
"page_idx": 13
|
| 1636 |
+
},
|
| 1637 |
+
{
|
| 1638 |
+
"type": "text",
|
| 1639 |
+
"text": "Meng Zhang, Yang Liu, Huanbo Luan, and Maosong Sun. Adversarial training for unsupervised bilingual lexicon induction. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), volume 1, pp. 1959–1970, 2017a. ",
|
| 1640 |
+
"bbox": [
|
| 1641 |
+
173,
|
| 1642 |
+
325,
|
| 1643 |
+
823,
|
| 1644 |
+
369
|
| 1645 |
+
],
|
| 1646 |
+
"page_idx": 13
|
| 1647 |
+
},
|
| 1648 |
+
{
|
| 1649 |
+
"type": "text",
|
| 1650 |
+
"text": "Meng Zhang, Yang Liu, Huanbo Luan, and Maosong Sun. Earth mover’s distance minimization for unsupervised bilingual lexicon induction. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pp. 1934–1945, 2017b. ",
|
| 1651 |
+
"bbox": [
|
| 1652 |
+
174,
|
| 1653 |
+
377,
|
| 1654 |
+
823,
|
| 1655 |
+
421
|
| 1656 |
+
],
|
| 1657 |
+
"page_idx": 13
|
| 1658 |
+
},
|
| 1659 |
+
{
|
| 1660 |
+
"type": "text",
|
| 1661 |
+
"text": "Mozhi Zhang, Keyulu Xu, Ken-ichi Kawarabayashi, Stefanie Jegelka, and Jordan Boyd-Graber. Are girls neko or $\\mathrm { s h } \\backslash =$ ojo? cross-lingual alignment of non-isomorphic embeddings with iterative normalization. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 31803189, 2019. ",
|
| 1662 |
+
"bbox": [
|
| 1663 |
+
173,
|
| 1664 |
+
430,
|
| 1665 |
+
825,
|
| 1666 |
+
486
|
| 1667 |
+
],
|
| 1668 |
+
"page_idx": 13
|
| 1669 |
+
},
|
| 1670 |
+
{
|
| 1671 |
+
"type": "text",
|
| 1672 |
+
"text": "Chunting Zhou, Xuezhe Ma, Di Wang, and Graham Neubig. Density matching for bilingual word embedding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 1588–1598, 2019. ",
|
| 1673 |
+
"bbox": [
|
| 1674 |
+
173,
|
| 1675 |
+
496,
|
| 1676 |
+
825,
|
| 1677 |
+
553
|
| 1678 |
+
],
|
| 1679 |
+
"page_idx": 13
|
| 1680 |
+
},
|
| 1681 |
+
{
|
| 1682 |
+
"type": "text",
|
| 1683 |
+
"text": "Will Y. Zou, Richard Socher, Daniel Cer, and Christopher D. Manning. Bilingual word embeddings for phrase-based machine translation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 1393–1398, Seattle, Washington, USA, October 2013. Association for Computational Linguistics. URL https://www.aclweb.org/ anthology/D13-1141. ",
|
| 1684 |
+
"bbox": [
|
| 1685 |
+
174,
|
| 1686 |
+
561,
|
| 1687 |
+
825,
|
| 1688 |
+
632
|
| 1689 |
+
],
|
| 1690 |
+
"page_idx": 13
|
| 1691 |
+
},
|
| 1692 |
+
{
|
| 1693 |
+
"type": "text",
|
| 1694 |
+
"text": "APPENDIX ",
|
| 1695 |
+
"text_level": 1,
|
| 1696 |
+
"bbox": [
|
| 1697 |
+
176,
|
| 1698 |
+
656,
|
| 1699 |
+
256,
|
| 1700 |
+
671
|
| 1701 |
+
],
|
| 1702 |
+
"page_idx": 13
|
| 1703 |
+
},
|
| 1704 |
+
{
|
| 1705 |
+
"type": "text",
|
| 1706 |
+
"text": "A NER EXPERIMENT DETAILS ",
|
| 1707 |
+
"text_level": 1,
|
| 1708 |
+
"bbox": [
|
| 1709 |
+
178,
|
| 1710 |
+
691,
|
| 1711 |
+
446,
|
| 1712 |
+
708
|
| 1713 |
+
],
|
| 1714 |
+
"page_idx": 13
|
| 1715 |
+
},
|
| 1716 |
+
{
|
| 1717 |
+
"type": "text",
|
| 1718 |
+
"text": "Here we include some additional details for the NER experiments with contextualized representations: ",
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
176,
|
| 1721 |
+
723,
|
| 1722 |
+
823,
|
| 1723 |
+
751
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 13
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "text",
|
| 1729 |
+
"text": "• Alignment As described in Section 3.2, we apply word alignment methods, such as fastalign (Dyer et al., 2013), on parallel data to extract word-aligned pairs for learning the alignment matrix. As M-BERT is based on subword tokens, we use the average of the representations of all subword tokens that correspond to a word as the representation for that word. For instance, assume that an English word “Resumption” is aligned to a German word “Wiederaufnahme”, and they are tokenized by M-BERT as “Res”, “##sumption”, and “Wie”, “##dera”, “##uf”, “##nahme”, respectively. Then the representation for “Resumption” is the average of the representations of subword tokens “Res” and “##sumption”, and the same goes for “Wiederaufnahme”. • Hyperparameters For the task-specific NER model, we use a 2-layer Bi-LSTM with a hidden size of 768 followed by a CRF layer. We apply a dropout rate of 0.5 on the input and the output of the Bi-LSTM, and use Adam with default parameters and a learning rate of 0.0001 for optimization. We train the model for 40 epochs with a batch size of 10, and evaluate the model per 150 steps. For prediction, we feed the outputs of the Bi-LSTM that correspond to the first subword tokens of each word to the CRF model. This is identical to finetuning BERT on the NER task, except that in our case the outputs that correspond to the first subword token are fed into a CRF, rather than a linear layer as done in BERT. ",
|
| 1730 |
+
"bbox": [
|
| 1731 |
+
215,
|
| 1732 |
+
765,
|
| 1733 |
+
823,
|
| 1734 |
+
924
|
| 1735 |
+
],
|
| 1736 |
+
"page_idx": 13
|
| 1737 |
+
},
|
| 1738 |
+
{
|
| 1739 |
+
"type": "table",
|
| 1740 |
+
"img_path": "images/8302085309ea76b84f005a5ce136a497525d56b4b505aecb9350797ea4c4acce.jpg",
|
| 1741 |
+
"table_caption": [
|
| 1742 |
+
"Table 4: Precision $@ 1$ for the BLI task on the MUSE dataset using test set produced by vocabulary reallocation. Within each category, unsupervised methods are listed at the top while supervised methods are at the bottom. Bold signifies the overall best results. “AR” refers to alignment refinement and “VR” refers to vocabulary reallocation. "
|
| 1743 |
+
],
|
| 1744 |
+
"table_footnote": [],
|
| 1745 |
+
"table_body": "<table><tr><td></td><td>en-es</td><td>es-en</td><td>en-fr</td><td>fr-en</td><td>en-de</td><td>de-en</td><td>en-it</td><td>it-en</td><td>en-ru</td><td>ru-en</td><td>en-zh</td><td>zh-en</td><td>avg</td></tr><tr><td colspan=\"10\">Alignment Methods</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(1) MUSE(Conneau et al.,2018a)</td><td>82.1</td><td>83.5</td><td>82.6</td><td>83.1</td><td>74.1</td><td>71.8</td><td>77.4</td><td>79.8</td><td>44.1</td><td>59.1</td><td>34.1</td><td>31.6</td><td>66.9</td></tr><tr><td>(4) Procrustes (Smith et al.,2017)</td><td>81.6</td><td>82.0</td><td>80.5</td><td>81.5</td><td>74.2</td><td>73.3</td><td>77.0</td><td>77.8</td><td>50.8</td><td>63.5</td><td>44.2</td><td>37.0</td><td>68.6</td></tr><tr><td>(5) GeoMM (Jawanpuria et al., 2019)</td><td>82.1</td><td>86.9</td><td>82.3</td><td>85.1</td><td>75.3</td><td>77.2</td><td>78.6</td><td>82.2</td><td>51.7</td><td>67.8</td><td>50.5</td><td>45.6</td><td>72.1</td></tr><tr><td>(6) RCSLS (Joulin et al.,2018b)</td><td>82.8</td><td>84.3</td><td>82.4</td><td>83.3</td><td>78.6</td><td>75.6</td><td>78.3</td><td>81.0</td><td>57.7</td><td>66.8</td><td>48.3</td><td>45.6</td><td>72.1</td></tr><tr><td colspan=\"10\">Joint Traing Methods</td><td></td><td></td><td></td><td></td></tr><tr><td>(7) Unsupervised Joint</td><td>33.2</td><td>36.3</td><td>41.5</td><td>46.8</td><td>39.1</td><td>40.7</td><td>35.8</td><td>38.1</td><td>4.1</td><td>3.7</td><td>8.2</td><td>5.7</td><td>27.8</td></tr><tr><td>(8) Supervised Joint (Duong et al., 2016)</td><td>80.1</td><td>80.5</td><td>78.6</td><td>77.1</td><td>67.2</td><td>68.3</td><td>74.6</td><td>74.5</td><td>41.7</td><td>51.8</td><td>47.2</td><td>44.0</td><td>65.5</td></tr><tr><td colspan=\"10\">Joint Align Framework</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>(9)Joint_Align (w/o AR)</td><td>56.8</td><td>63.2</td><td>62.2</td><td>67.2</td><td>49.2</td><td>55.1</td><td>50.6</td><td>51.9</td><td>8.7</td><td>8.2</td><td>19.5</td><td>18.4</td><td>42.6</td></tr><tr><td>(10) Joint_Align +MUSE</td><td>82.4</td><td>85.0</td><td>83.5</td><td>84.7</td><td>74.6</td><td>72.9</td><td>78.2</td><td>82.6</td><td>46.1</td><td>58.7</td><td>39.9</td><td>36.2</td><td>68.7</td></tr><tr><td>(11) Joint_Align +RCSLS(w/o VR) (12) Joint_Align +GeoMM</td><td>34.3</td><td>36.8</td><td>41.0</td><td>47.0</td><td>34.3</td><td>35.9</td><td>35.5</td><td>35.2</td><td>7.6</td><td>5.2</td><td>21.3 54.8</td><td>16.1 48.0</td><td>29.2 73.3</td></tr><tr><td></td><td>83.9</td><td>86.2</td><td>83.1</td><td>85.2</td><td>76.1</td><td>77.9</td><td>79.0</td><td>82.8</td><td>53.7</td><td>68.3</td><td></td><td></td><td></td></tr><tr><td>(13) Joint_Align + RCSLS</td><td>87.1</td><td>88.5</td><td>84.2</td><td>86.6</td><td>80.1</td><td>78.7</td><td>81.3</td><td>85.2</td><td>61.3</td><td>68.3</td><td>59.6</td><td>50.7</td><td>76.0</td></tr></table>",
|
| 1746 |
+
"bbox": [
|
| 1747 |
+
173,
|
| 1748 |
+
101,
|
| 1749 |
+
823,
|
| 1750 |
+
244
|
| 1751 |
+
],
|
| 1752 |
+
"page_idx": 14
|
| 1753 |
+
},
|
| 1754 |
+
{
|
| 1755 |
+
"type": "text",
|
| 1756 |
+
"text": "",
|
| 1757 |
+
"bbox": [
|
| 1758 |
+
232,
|
| 1759 |
+
333,
|
| 1760 |
+
825,
|
| 1761 |
+
417
|
| 1762 |
+
],
|
| 1763 |
+
"page_idx": 14
|
| 1764 |
+
},
|
| 1765 |
+
{
|
| 1766 |
+
"type": "text",
|
| 1767 |
+
"text": "B BLI TEST PAIRS ",
|
| 1768 |
+
"text_level": 1,
|
| 1769 |
+
"bbox": [
|
| 1770 |
+
176,
|
| 1771 |
+
438,
|
| 1772 |
+
346,
|
| 1773 |
+
454
|
| 1774 |
+
],
|
| 1775 |
+
"page_idx": 14
|
| 1776 |
+
},
|
| 1777 |
+
{
|
| 1778 |
+
"type": "text",
|
| 1779 |
+
"text": "The official evaluation script8 of MUSE only includes test pairs whose source words and target words both appear in their corresponding vocabularies, leaving out those that are OOV on either side. Since our proposed vocabulary reallocation step modifies both the source and target vocabularies, the script may exclude some test pairs when evaluating our model. For example, the word “age” from the test pair (age, age) for en-fr could be allocated as an en (not shared) word, so it is OOV on the fr side and the pair would thus be left out by the script. As a result, the total number of test pairs would be smaller, thereby changing the denominator when we calculate accuracy. To ensure fair comparison, we include these OOV pairs so the total number of test pairs stays the same. Specifically, if the source word of a test pair is OOV, we retrieve itself. Otherwise, we count it as incorrect. ",
|
| 1780 |
+
"bbox": [
|
| 1781 |
+
174,
|
| 1782 |
+
468,
|
| 1783 |
+
825,
|
| 1784 |
+
594
|
| 1785 |
+
],
|
| 1786 |
+
"page_idx": 14
|
| 1787 |
+
},
|
| 1788 |
+
{
|
| 1789 |
+
"type": "text",
|
| 1790 |
+
"text": "In addition, we further investigate which pairs are left out and found that the MUSE benchmark contains some noisy test data. Specifically, we find that the majority of these pairs are in the same surface form, such as (sit, sit), but many target words are not actual translations of the source words. For example, we found test pairs such as {(age, age), (century, century)} for en- $f r$ and {(mickey, mickey), (uncredited, uncredited) $\\}$ for en-zh. Clearly, these are English words and should not be considered as appropriate translations for French or Chinese. In Table 1, we mark these pairs as incorrect for our framework to ensure fair comparison, while in fact our framework correctly allocates these words to English. To reveal the full picture, we also conduct BLI experiments without test pairs that got left out due to vocabulary reallocation. The results are shown in Table 4. We observe that our proposed framework obtains a gain of 3.9 accuracy on average over the RCSLS baseline. ",
|
| 1791 |
+
"bbox": [
|
| 1792 |
+
173,
|
| 1793 |
+
602,
|
| 1794 |
+
825,
|
| 1795 |
+
741
|
| 1796 |
+
],
|
| 1797 |
+
"page_idx": 14
|
| 1798 |
+
}
|
| 1799 |
+
]
|
parse/train/S1l-C0NtwS/S1l-C0NtwS_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/S1l-C0NtwS/S1l-C0NtwS_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkePU0VYDr/rkePU0VYDr.md
ADDED
|
@@ -0,0 +1,565 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# A PERTURBATION ANALYSIS OF INPUT TRANSFORMATIONS FOR ADVERSARIAL ATTACKS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Many defenses for Convolutional Neural Networks are based on a simple observation that the adversarial examples are not robust and small perturbations to the attacking input often recover the desired prediction. Intuitively, the adversarial examples occupy a very small cone in the decision space which is surrounded by a large area corresponding to the correct class. While the intuition is simple, a detailed understanding of this phenomenon is missing from the research literature.
|
| 8 |
+
|
| 9 |
+
We identify a family of defense techniques that are based on the instability assumption. The defenses include deterministic lossy compression algorithms and randomized perturbations to the input that all lead to similar gains in robustness. We present a comprehensive experimental analysis of when and why perturbation defenses work and potential mechanisms that could explain their effectiveness (or ineffectiveness) in different settings.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
The attacks on Convolutional Neural Networks, such as Carlini & Wanger (Carlini & Wagner, 2017) or PGD (Madry et al., 2017), generate strategically placed modifications that can be easily dominated by different types of perturbations resulting in correct predictions (Dziugaite et al., 2016; Roth et al., 2019). This suggests that the standard adversarial examples are not robust. Many defense techniques explicitly leverage this property and can be retrospectively interpreted as perturbations of the input images. However, a detailed understanding of this phenomenon is lacking from the research literature including: (1) what types of perturbations work and what is their underlying mechanism, (2) whether all attacks exhibit this property, and (3) possible counter-measures attackers can employ to defeat perturbation defenses.
|
| 14 |
+
|
| 15 |
+
We can interpret a large number of recent defenses as a type of input perturbations, for example, feature squeezing (Xu et al., 2017), frequency or JPEG compression (Dziugaite et al., 2016), randomized smoothing (Cohen et al., 2019), and perturbation of network structure or the inputs randomly (JafarniaJahromi et al., 2018; Zhang & Liang, 2019; Guo et al., 2017). The defense techniques exhibit very similar gains in robustness. To show it, we start with a simple model where every example is passed through a lossy channel (stochastic or deterministic) prior to model inference. This channel induces a small perturbation to the input. We optimize the perturbation to be small enough as not to affect the prediction accuracy on clean examples but large enough to dominate any adversarial attack. We find that this trade-off is surprisingly consistent across very different families of input perturbations, where the relationship between channel distortion (the $L _ { 2 }$ distance between channel input and output) and robustness is very similar.
|
| 16 |
+
|
| 17 |
+
Why are some state-of-the-art attacks are sensitive to perturbation-based defenses? We find that many attacks execute an optimization procedure that finds an adversarial image that is very close to the original image in terms of of $L _ { 1 }$ , $L _ { 2 }$ , or $L _ { \infty }$ norm. The resultant optimum, i.e., the adversarial image, tends to exhibit a higher level of instability than natural examples, which we demonstrate from the perspective of a first-order and second-order analysis. By instability we mean that small perturbations of the example can affect the prediction confidences.
|
| 18 |
+
|
| 19 |
+
The unification of perturbation-based defense also gives us some insight into how an attacker might avoid them.
|
| 20 |
+
|
| 21 |
+
Our experiments suggest that all the perturbation based defenses are vulnerable to the same types of attack strategies. We argue that the optimization procedure in the attacker should find the smallest distance from the original image that closes the recovery window. In fact, we can devise a generic attacker that attacks a particularly strong lossy channel, based on the additive Laplace noise, and adaptive attacks designed on this channel are often successful against other defenses. This result implies that for many input perturbation defenses the attacker need not be fully adaptive, i.e., they do not need to know exactly what kind of transformation is used to defend the network.
|
| 22 |
+
|
| 23 |
+
# 2 RELATED WORK
|
| 24 |
+
|
| 25 |
+
Much of the community’s current understanding of adversarial sensitivity in neural networks is based on the seminal work by Szegedy et al. (2014). Multiple contemporaneous works also studied different aspects of this problem, postulating linearity and over-parametrization as possible explanations (Goodfellow et al., 2014; Biggio et al., 2013). Since the beginning of this line of work, the connection between compression and adversarial robustness has been recognized. The main defense strategies include: the idea of defensive network distillation1 (Papernot et al., 2015), quantizing inputs using feature squeezing (Xu et al., 2017), the thermometer encoding as another form of quantization (Buckman et al., 2018), JPEG compression harnessed by (Dziugaite et al., 2016; Guo et al., 2017; Das et al., 2017; 2018; Aydemir et al., 2018; Liu et al., 2019). Other line of research leveraged connection between randomization and adversarial robustness: Pixel Deflection (Prakash et al., 2018), random resizing and padding of the input image (Xie et al., 2017), and total variance minimization (Guo et al., 2017). In our work we unify the methods based on compression and randomization that are applied to the input images.
|
| 26 |
+
|
| 27 |
+
While all of the aforementioned defenses were later broken (Carlini & Wagner, 2017; Athalye et al., 2018), it is important to understand why these approaches afforded any form of robustness. The community actually lacks consensus on this point: Szegedy et al. (2014) suggest that neural networks have blind spots, Xu et al. (2017) suggest that quantization makes the adversarial search space smaller, Buckman et al. (2018) suggest the linearity is the main culprit and quantized inputs break up linearity.
|
| 28 |
+
|
| 29 |
+
Zhang & Liang (2019) inject random Gaussian noise into an image and then discretize it. This method fits into the noisy channel framework with different definitions of $C ( x )$ . They show improved performance of this combined model in the non-adaptive setting. Our experiments find that simply injecting Gaussian noise (or even Uniform or Laplace noise) is an equally effective defense method. We also show that the discretization is not essential to good performance if the level of noise is appropriately tuned. The imprecise channel defense in a neural network is also related to the idea of gradient masking or gradient obfuscation, i.e., a hard to differentiate layer (Papernot et al., 2017). In this work, the backward pass computation is perturbed to make it difficult for a gradient-based attack to synthesize an adversarial image (while the forward pass is kept the same). We implement both non-adaptive attacks and adaptive that can observe the channel and take an approximate gradient through it. We further focus our study on the families of white-box attacks proposed by Carlini & Wagner (2017), and their adaptive variants.
|
| 30 |
+
|
| 31 |
+
Noise injection can be much more powerful than regularization or a dataset augmentation method. The dropout algorithm can be seen as applying noise to the hidden units. The dropout randomization (Feinman et al., 2017) was used to create a defense that was not completely broken and required a high distortion added to the adversarial examples (Carlini & Wagner, 2017). Many new defenses propose randomization through noise injection without considering the adversarial training (Zhang & Liang, 2019; Cohen et al., 2019). The work on injection of noise into inputs and each of the layers of neural networks by Liu et al. (2018) is a strong heuristic that led to defenses with theoretical guarantees. The random smoothing provides a certified robustness up to a certain threshold of input distortion (and is not designed to be robust beyond the threshold) by utilizing inequalities from the differential privacy literature (Lecuyer et al., 2018). Cohen et al. (2019) improve the theoretical bounds of methods that randomly smooth the input examples. Recent work focuses on combination of randomized smoothing with adversarial training and achieves state of the art in terms of the provable robustness (Salman et al., 2019).
|
| 32 |
+
|
| 33 |
+
# 3 LOSSY CHANNEL MODEL
|
| 34 |
+
|
| 35 |
+
We consider convolutional neural networks that take $w \times h$ (width times height) RGB digital images as input, giving an example space of $\mathcal { X } \in ( 2 5 5 ) ^ { w \times h \times 3 }$ , where $( z )$ denotes the integer numbers from 0 to $z$ . We consider a discrete label space of $k$ classes represented as a confidence value $\mathcal { V } \in [ 0 , 1 ] ^ { k }$ . Neural networks are parametrized functions (by a weight vector $\theta$ ) between the example and label spaces $f ( x ; \theta ) : \mathcal { X } \mapsto \mathcal { Y }$ .
|
| 36 |
+
|
| 37 |
+
An adversarial input $x _ { a d v }$ is a perturbation of a correctly predicted example $x$ that is incorrectly predicted by $f$ .
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
f ( x ) \neq f ( x _ { a d v } )
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
The distortion is the $\ell _ { 2 }$ error between the original example and the adversarial one:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\delta _ { a d v } = \lVert \boldsymbol { x } - \boldsymbol { x } _ { a d v } \rVert _ { 2 }
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
# 3.1 MODEL
|
| 50 |
+
|
| 51 |
+
Approximating $f ( \cdot )$ with a less precise version $\bar { f } ( \cdot )$ can counter-intuitively make it more robust (Dziugaite et al., 2016):
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
f ( x ) = { \bar { f } } ( x _ { a d v } )
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
Intuitively, a lossy version of $f$ introduces noise into a prediction which dominates the strategic perturbations found by an adversarial attack procedure. It turns out that we can characterize a number of popular defense methodologies with this basic framework.
|
| 58 |
+
|
| 59 |
+
Let $x$ be an example and $f$ be a trained neural network. Precise evaluation means running $f ( x )$ and observing the predicted label. Imprecise evaluation involves first transforming $x$ through a deterministic or stochastic noise process $C ( x ) = C [ x ^ { \prime } \mid x ]$ , and then evaluating the neural network
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
y = f ( x ^ { \prime } ) \quad x ^ { \prime } \sim C ( x )
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
We can think of $C ( x )$ as a noisy channel (as in signal processing). The distortion of a $C ( x )$ is the expected $\ell _ { 2 }$ reconstruction error:
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
\delta _ { c } = \mathbf { E } [ \| C ( x ) - x \| _ { 2 } ] ,
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
which is a measure of how much information is lost passing the example through a channel.
|
| 72 |
+
|
| 73 |
+
This paper shows that there is a subtle trade-off between $\delta _ { c }$ and $\delta _ { a d v }$ . In particular, we can find $\delta _ { c }$ such that $\delta _ { c } > > \delta _ { a d v }$ and $f ( x ) = f ( C ( x _ { a d v } ) )$ . We show that compression and randomization based techniques exhibit this property.
|
| 74 |
+
|
| 75 |
+
EXAMPLE OF DETERMINISTIC CHANNEL
|
| 76 |
+
|
| 77 |
+
When $C ( x )$ is deterministic it can be thought of as a lossy compression technique. Essentially, we run the following operation on each input example:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
x ^ { \prime } = \mathtt { c o m p r e s s } ( x )
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
One form of compression for CNNs is color-depth compression. Most common image classification neural network architectures convert the integer valued inputs into floating point numbers. We abstract this process with the norm function that for each pixel $n \in ( 2 5 5 )$ maps it to a real number $v \in [ 0 , 1 ]$ by normalizing the value and the corresponding denorm function that retrieves the original integer value (where $\lfloor \rceil$ denotes the nearest integer function) 2:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\operatorname { n o r m } ( n ) : = { \frac { n } { 2 5 5 } } \qquad \operatorname { d e n o r m } ( v ) : = \left\lfloor 2 5 5 * v \right\rceil
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
This process is normally reversible $v = \mathtt { n o r m } ( \mathtt { d e n o r m } ( v ) )$ , but we can artificially make this process lossy. Consider a parametrized $C ( \cdot )$ version of the color-depth compression function:
|
| 90 |
+
|
| 91 |
+
$$
|
| 92 |
+
C ( v , b ) : = \frac { 1 } { 2 ^ { b } - 1 } \cdot \lfloor ( 2 ^ { b } - 1 ) * v \rceil
|
| 93 |
+
$$
|
| 94 |
+
|
| 95 |
+
By decreasing $b$ by $\Delta b$ we reduce the fidelity of representing $v$ by a factor of $2 ^ { \Delta b }$ (for the $b$ bits of precision).
|
| 96 |
+
|
| 97 |
+
# EXAMPLE OF STOCHASTIC PERTURBATION
|
| 98 |
+
|
| 99 |
+
The channel model is particularly interesting when $C ( x )$ is stochastic. Randomization has also been noted to play a big role in strong defenses in prior work (Madry et al., 2017; Zhang & Liang, 2019; Cohen et al., 2019). For example, we could add independent random noise to each input pixel:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
x ^ { \prime } = x + \epsilon
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
We consider two schemes, Gaussian $\epsilon \sim N ( 0 , \sigma )$ and additive Uniform noise $\epsilon \sim U ( - B , B )$ which add independent noise to each pixel.
|
| 106 |
+
|
| 107 |
+
One of the advantages of randomization is that an adversary cannot anticipate how the particular channel $C$ will transform an input before prediction. However, there is another subtle advantage to randomization. Randomized approaches can partially recover their loss in accuracy due to imprecision by averaging over multiple instances of the perturbation. In classification problems, we can take the most frequent label seen after $T$ perturbation trials:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\bar { f } ( x ) = \arg \operatorname* { m a x } _ { 1 \ldots k } \sum _ { i } ^ { T } f ( x + \epsilon )
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
# 3.2 PERTURBATION ANALYSIS
|
| 114 |
+
|
| 115 |
+
While the intuition is that the channel’s perturbations dominate strategically placed distortions in an adversarial example, the underlying mathematical mechanism of why recovery is possible is not clear. We start with the hypothesis that synthesized adversarial examples have unstable predictions–meaning that small perturbations to the input space can change confidence values drastically. How do we quantify instability?
|
| 116 |
+
|
| 117 |
+
Let $f ( x )$ be a function that maps an image to a single class confidence value (i.e., a scalar output). We want to understand how $f ( x )$ changes if $x$ is perturbed by $\epsilon$ . We can apply a Taylor expansion of $f$ around the given example $x$ :
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
f ( x + \epsilon ) \approx f ( x ) + \epsilon ^ { T } \nabla _ { x } f ( x ) + \frac { 1 } { 2 } \epsilon ^ { T } \nabla _ { x } ^ { 2 } f ( x ) \epsilon + . . .
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $\nabla _ { x } f ( x )$ denotes the gradient of the function $f$ with respect to $x$ and $\nabla _ { x } ^ { 2 } f ( x )$ denotes the Hessian of the function $f$ with respect to $x$ . The magnitude of the change in confidence is governed by the Taylor series terms in factorially decreasing importance. $\lVert \epsilon \rVert _ { 2 }$ is exactly the distortion measure $\delta _ { c }$ described at the beginning of Section 3.1. Thus, the expression is bounded in terms of the operator norm, or the maximal change in norm that could be induced, of each of the terms (see Appendix A):
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\epsilon ^ { T } \nabla _ { x } f ( x ) + \frac { 1 } { 2 } \epsilon ^ { T } \nabla _ { x } ^ { 2 } f ( x ) \boldsymbol { \epsilon } + \ldots \leq \delta _ { c } M _ { 1 } ( x ) + \frac { 1 } { 2 } \delta _ { c } ^ { 2 } M _ { 2 } ( x ) + \ldots
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
As $\nabla _ { x } f ( x )$ is a vector, this is simply the familiar $\ell _ { 2 }$ norm, and for the second order term this is the maximal eigenvalue:
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\begin{array} { r l } { M _ { 1 } ( x ) = \| \nabla _ { x } f ( x ) \| _ { 2 } } & { { } M _ { 2 } ( x ) = \lambda _ { m a x } ( \nabla _ { x } ^ { 2 } f ( x ) ) } \end{array}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
When $M _ { 1 }$ and $M _ { 2 }$ are larger this means there is a greater propensity to change the prediction for small perturbations. We will show experimentally that for certain types of attacks the $M _ { 1 }$ and $M _ { 2 }$ values around adversarial examples exhibit signs of instability compared to those around natural examples–suggesting a mathematical mechanism of why recovery is possible.
|
| 136 |
+
|
| 137 |
+
# 4 EXPERIMENTS
|
| 138 |
+
|
| 139 |
+
Our experiments evaluate the efficacy of imprecision based defenses in a number of different adversarial problem settings.
|
| 140 |
+
|
| 141 |
+
# 4.1 EXPERIMENTAL SETUP
|
| 142 |
+
|
| 143 |
+
We run our experiments using ResNet-18 on CIFAR-10 and ResNet-50 on ImageNet dataset using P-100 GPUs (16GB memory). We explore a number of different attacks that are implemented in the foolbox library (Rauber et al., 2017). In each experiment we measure the test accuracy $( \% )$ , the confidence of predictions, and distances between the original images and either their adversarial counterparts or the recovered images after applying one of the defenses. We present our results for non-targeted attacks; if the adversary is successful it induces any misclassification. We experiment with many gradient-based attacks provided in the foolbox library that explore different optimization algorithms and distance measures, for instance:
|
| 144 |
+
|
| 145 |
+
• LBFGS minimizes the distance between the input image and the adversarial example as well as the cross-entropy between the predictions for the adversarial and the input image; introduced by Szegedy et al. (2014) and further extended in Tabacof & Valle (2015). Carlini-Wagner $L _ { 2 }$ (C&W $L _ { 2 }$ ) is a generalization of the LBFGS attack that is devised after exhaustive search over possible space of: norms, loss functions, box optimization procedures, etc. (Carlini & Wagner, 2017). BIM $L _ { 1 }$ is a modified version of the Basic Iterative Method that minimizes the $L _ { 1 }$ distance (Kurakin et al., 2016).
|
| 146 |
+
• FGSM adds the sign of the gradient to the image, gradually increasing the magnitude until the image is misclassified Goodfellow et al. (2014).
|
| 147 |
+
• PGD $L _ { \infty }$ the Projected Gradient Descent Attack that is an iterative version of the FGSM attack; we use the version that minimizes the $L _ { \infty }$ distance (Madry et al., 2017).
|
| 148 |
+
|
| 149 |
+
We extend the Carlini-Wagner $L _ { 2 }$ attack in its adaptive version so that the gradients are not obfuscated. We approximate the gradients for the backward pass on the compression layers as an identity function, similarly to (He et al., 2017; Athalye et al., 2018). More details on the setup can be found in the Appendix, Section C.13
|
| 150 |
+
|
| 151 |
+
# 1. PERTURBATION DEFENSES GIVE SIMILAR GAINS IN ROBUSTNESS
|
| 152 |
+
|
| 153 |
+
In the first experiment, we select 1000 random images from ImageNet and CIFAR-10 datasets. For each of these images we generate an adversarial attack with popular white-box gradient-based methods. Then, we run the adversarial images through different channels: Frequency Compression (FC), Color Depth reduction (CD), Uniform noise (Unif), Gaussian Noise (Gauss), SVD-based compression (SVD), Identity (Iden). The identity channel just passes through the adversarial image with no modification. We measure the accuracy of $f ( C ( x ) )$ , which indicates the ability of the imprecise channels to recover the original label. We present the results in Figure 1 and also in the Supplement in Figure 7 (for all images in the test CIFAR-10 and dev ImageNet sets) and in Table 3 (for different channel parameters and five attacks).
|
| 154 |
+
|
| 155 |
+
When there is an identity channel, the adversarial attack is always successful. However, each of the imprecise channels is able to recover a substantial portion of original labels from the adversarial examples. It is important to note that we are evaluating these attacks in the setting, where any mis-classification is considered a success and the adversary is not aware of the defense.
|
| 156 |
+
|
| 157 |
+
Importantly, all the channels can be tuned to recover very similar maximum accuracy after attacks. For example, all the channels can achieve about $85 \%$ accuracy for CIFAR-10 after nonadaptive PGD or C&W attacks. This suggests that any form of imprecision with the right error magnitude is effective at defending against these types of attacks. We observe that the attacks that incur higher distortions such as FGSM or LBFGS decrease the accuracy more than the iterative attacks such as C&W $L _ { 2 }$ or PGD $L _ { \infty }$ . This is because the iterative attacks find the adversarial images that are closer to the original images in terms of the corresponding distance measure that they optimize for in the input space. The key is to ensure that the error introduced by the imprecise channels is big enough to dominate the adversarial perturbations but small enough to generate valid predictions. Figure 1 illustrates this relationship (see also a detailed analysis for a single image presented in Figure 9 in the Appendix). For five different imprecise channels, we plot the channel distortion against the accuracy for CIFAR-10 and ImageNet datasets. We analyze FC, CD, Unif, Gauss, and SVD channels. The curves are qualitatively similar in the low noise regime, but they show more differences when higher distortions are incurred. The lowest accuracy across the datasets for high distortions is observed for content-preserving FC and SVD compression channels. The Gaussian and Uniform channels have very similar trends. They outperform other channels on ImageNet for
|
| 158 |
+
|
| 159 |
+

|
| 160 |
+
Figure 1: We plot the channel distortion against test accuracy $( \% )$ . The distortion of the imprecise channels has to be large enough to recover the correct label but not so large that it degrades model performance. The base test accuracy is about $9 3 . 5 \%$ for CIFAR-10 and $8 3 . 5 \%$ for ImageNet on 1000 randomly chosen images (results for the full test CIFAR-10 set and the full dev ImageNet set can be found in the Appendix in Figure 7). The experiment is run for the C&W $L _ { 2 }$ attack with 100 iterations and the PGD attack with 40 iterations.
|
| 161 |
+
|
| 162 |
+
Table 1: Transferability of the adversarial images created against a given noisy channel denoted as A (adaptive attack specified in the first column) to the defense protected with a noisy channel denoted as $D$ (the defense with a noisy channel specified in the first row). Each result represents a recovery $( \% )$ of the adversarial examples (generated for $A$ ) to correct labels after applying the defense $( D )$ . We use $30 \%$ FC compression, $50 \%$ SVD compression, 4 bit values in CD, 0.03 noise level for Gauss and Laplace, and 0.04 noise level for the Uniform channel. We use 2000 images from the CIFAR-10 test set and 100 attack iterations with 5 binary steps to find the $c$ value (with initial $c$ value set to 0.01) for the adaptive C&W $L _ { 2 }$ attack. The baseline test accuracy is $9 3 . 5 6 \%$ . The test accuracy of the noisy channels on clean images is given in the first row denoted: Empty (an empty attack).
|
| 163 |
+
|
| 164 |
+
<table><tr><td>D</td><td rowspan="3">FC</td><td rowspan="3">CD</td><td rowspan="3">SVD</td><td rowspan="3">Gauss</td><td rowspan="3">Uniform</td><td rowspan="3">Laplace</td></tr><tr><td>A</td><td></td></tr><tr><td>Empty</td><td>93.12</td></tr><tr><td></td><td>93.32 0.20</td><td>93.01 80.75</td><td>83.05</td><td>92.53 81.15</td><td>91.6 79.65</td><td>91.35 78.70</td></tr><tr><td>FC CD</td><td>3.85</td><td>0.70</td><td>43.60</td><td>47.30</td><td>60.45</td><td>62.35</td></tr><tr><td>SVD</td><td>1.99</td><td>47.96</td><td>0.77</td><td>46.52</td><td>62.87</td><td>65.75</td></tr><tr><td>Gauss</td><td>4.45</td><td>48.70</td><td>44.80</td><td>51.50</td><td>61.75</td><td>60.15</td></tr><tr><td>Uniform</td><td>3.45</td><td>30.30</td><td>30.60</td><td>30.15</td><td>48.05</td><td>51.55</td></tr><tr><td>Laplace</td><td>3.05</td><td>23.35</td><td>24.60</td><td>23.80</td><td>39.15</td><td>46.70</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>
|
| 165 |
+
|
| 166 |
+
large distortions but are less performant on low-resolution CIFAR-10 images, where the CD channel achieves higher accuracy.
|
| 167 |
+
|
| 168 |
+
# 2. ATTACKS ARE TRANSFERABLE
|
| 169 |
+
|
| 170 |
+
Many input transformation defenses are broken. If the attacker has full knowledge of the defense, it is possible to construct an attack that is impervious to the defense. This is called the adaptive setting. Since the underlying mechanisms of input transformations are similar, we find that an attacker does not need to be fully adaptive. The attacker can assume a particular strong defense and that same adversarial input often transfers to other defenses. We narrow the attacker to a single adaptive step (for details see Section C.8 in the Appendix). Even in this weak adaptive setting, the deterministic channels are fully broken but the randomized channels retain relatively high accuracy above $2 3 . 8 \%$ . We show in the Appendix in Figure 14 that the randomized defenses can also be broken when the adversary is given an unlimited number of adaptive steps.
|
| 171 |
+
|
| 172 |
+
Laplace attacked images transfer the best to other defenses. They decrease the accuracy of the defense models by at least $4 4 . 3 \%$ (for Laplace itself). Table 1 shows that FC attacked images do not transfer well to other defenses; the maximum drop in accuracy of the model protected by other defenses is $1 2 . 2 6 \%$ . Most adversarial images (against a given defense) transfer very well to the FC defense, i.e. an adversarial image against any defense (e.g. CD, SVD, Gauss, Uniform, or Laplace) is also adversarial against the FC defense. The adversarial images generated against the Uniform defense show better transfer to other defenses in comparison to the adversarial images generated against the Gaussian defense. This is because the higher noise level is applied in the Uniform defense. We observe analogous trends for the ImageNet dataset and present the results in the supplement (Tables 6 and 7).
|
| 173 |
+
|
| 174 |
+
# 3. RECOVERABLE RANGE SHRINKS WITH HIGHER ATTACK DISTORTION
|
| 175 |
+
|
| 176 |
+
We use an example from the ImageNet dataset, the ResNet-50 model, and set the stochastic channel to the Gaussian noise. We start from an adversarial example generated with the Carlini & Wagner (non-adaptive) $L _ { 2 }$ attack and for consecutive subplots (in the left to right and top to bottom sequence), we increase the attack strength and incur higher distortion of the adversarial image from the original image. For a single plot, we increase the $L _ { 2 }$ distance of the output from the channel to the adversarial example by increasing the Gaussian noise (controlled by parameter $\sigma$ ). For $L _ { 2 }$ distances incurred by different noise levels, we execute 100 predictions. In Figure 9 in the Appendix, we use the frequency count and report how many times the model predicts the original, adversarial or other class. The plot shows what range of distances from the adversarial image reveal the correct class. For the adversarial examples that are very close to the original image (e.g. adversarial distance of 0.006 for the top-left figure), the window of recovery (which indicates which strengths of the random noise can recover the correct label) is relatively wide, however, as we increase the distance of the adversarial image from the original image, the window shrinks and finally we are not enable to recover the correct label.
|
| 177 |
+
|
| 178 |
+
For attacks that incur more input distortion or the stronger white-box attacks, we can resort to other statistics as proposed in Roth et al. (2019). They show that adversarial examples are much closer to the unperturbed sample than to any other neighbor and use the fact that the probability of the correct class increases faster than the probability of the highest other class when adding noise with a small to intermediate magnitude to the adversarial example.
|
| 179 |
+
|
| 180 |
+
# 4. COMPARISON WITH OTHER METHODS
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 2: Non-adaptive attack and the recoverable ranges in terms of the c parameter that controls the strength of the C&W $L _ { 2 }$ attack. We systematically change the c parameter and keep the parameters for the channels unchanged. We use the VGG-16 network and all images from the CIFAR-10 test set. The test accuracy of the model without any noise layers and on the clean data is $8 5 . 2 3 \%$ .
|
| 184 |
+
Figure 3: The top eigenvalues of the Hessians with respect to (w.r.t.) the input 1024 images from the CIFAR-10 dataset trained on the ResNet-18 architecture. We plot the histogram that shows counts of magnitudes for the eigenvalues. Yao et al. (2018) show analysis of the Hessian w.r.t. parameters and we extend it to analyze Hessian w.r.t. inputs.
|
| 185 |
+
|
| 186 |
+
In Figure 2 we present the accuracy of different channels as the strength of the C&W attack is systematically increased. The strength is controlled by the $c$ tradeoff-parameter that is used to set the relative importance of distance and confidence.
|
| 187 |
+
|
| 188 |
+
We present a related approach which is the RSE (Random Self-Ensemble) network with 0.2 noise level in the first layer and 0.1 noise level in the remaining layers (as recommended in Liu et al. (2018)). This defense does better for lower distortion levels (c value below 0.1) than other noisy channels, but then its accuracy deterioration is faster for higher distortion levels. The Laplace channel gives the highest accuracy for high values of the $c$ parameter (above 1.0). The CD, FC, SVD, Gauss, and
|
| 189 |
+
|
| 190 |
+
Uniform channels show similar trends. We also include a very simple channel that reduces brightness of an image by subtracting an arbitrary value from each pixel. The comparison between very complex approaches and a simple input transformation is informative–as they largely follow the same trends.
|
| 191 |
+
|
| 192 |
+

|
| 193 |
+
Figure 4: Comparison of magnitude of gradients for original and adversarial images.
|
| 194 |
+
|
| 195 |
+
First-order analysis. The key question is why adversarial examples are more sensitive to perturbations than natural inputs, when there is evidence that from an input perspective they are statistically indistinguishable. Our experiments suggest that this sensitivity arises from the optimization process that generates adversarial inputs. Based on the operator-norm analysis presented in Section 3.2, we plot in Figure 4 the $L _ { 2 }$ norm of gradients w.r.t. the original $x _ { o r g }$ and adversarial $x _ { a d v }$ images for original (correct) $c _ { o r g }$ and adversarial classes $c _ { a d v }$ . The work by Simon-Gabriel et al. (2019) also evaluates the norm of gradients of the network output with respect to its inputs. They show that the adversarial examples are primarily caused by large gradients of the classifier as captured via the induced loss. At first-order approximation in $\epsilon$ , an $\epsilon$ -sized $L _ { 2 }$ untargeted adversarial attack increases the loss $\mathcal { L }$ at point $x$ by $\epsilon | | \partial _ { x } \mathcal { L } ( x , c _ { o r g } ) | | _ { 2 }$ . Analogously, at first-order approximation in $\epsilon$ , an $\epsilon$ -sized $L _ { 2 }$ targeted adversarial attack decreases the loss $\mathcal { L }$ at point $x$ by $\epsilon | | \partial _ { x } \mathcal { L } ( \bar { x } , c _ { a d v } ) | | _ { 2 }$ . In our experiments, the recovered original images have lower norms of the gradients for both original and adversarial classes than the not recovered images. Additionally, the gradient w.r.t. original image for the original class is much smaller than the gradient w.r.t. adversarial image for the adversarial class. We also observe that the magnitudes of gradients change smoothly as we systematically add more Gaussian noise to the original or adversarial images (Figures 15, 16). For the adversarial image, the gradient w.r.t. adversarial image and for adversarial class decreases as we increase the attack strength and the confidence of adversarial predictions.
|
| 196 |
+
|
| 197 |
+
Second-order analysis. Our results in Figure 3 show that the adversarial inputs lead to noticeably higher Hessian spectrum than the original inputs. This suggests that the model predictions for the adversarial inputs are less stable than for the original images. Thus, perturbations of the adversarial images with some form of noise can easily change the classification outcome while the prediction for the original images are much more robust and do not lead to such unstable predictions.
|
| 198 |
+
|
| 199 |
+
# 5 CONCLUSION, LIMITATIONS, AND FUTURE WORK
|
| 200 |
+
|
| 201 |
+
The non-adaptive attacks are not robust since small changes to the adversarial input often recover the original label. This is an obvious corollary to the very existence of adversarial examples that by definition are relatively close to correctly predicted examples in the input space. Random perturbations of the input can dominate the strategically placed perturbations synthesized by an attack. In fact, the results are consistent across both deterministic and stochastic channels that degrade the fidelity of the input example. From the perspective of the attacker, the recovery window can be closed to make the perturbation based recovery techniques ineffective.
|
| 202 |
+
|
| 203 |
+
# REFERENCES
|
| 204 |
+
|
| 205 |
+
Anish Athalye, Nicholas Carlini, and David A. Wagner. Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In ICML, 2018.
|
| 206 |
+
|
| 207 |
+
Ayse Elvan Aydemir, Alptekin Temizel, and Tugba Taskaya-Temizel. The effects of JPEG and JPEG2000 compression on attacks using adversarial examples. CoRR, abs/1803.10418, 2018. URL http://arxiv.org/abs/1803.10418.
|
| 208 |
+
|
| 209 |
+
Battista Biggio, Igino Corona, Davide Maiorca, Blaine Nelson, Nedim Srndi ˇ c, Pavel Laskov, Giorgio ´ Giacinto, and Fabio Roli. Evasion attacks against machine learning at test time. In Joint European conference on machine learning and knowledge discovery in databases, pp. 387–402. Springer, 2013.
|
| 210 |
+
|
| 211 |
+
Jacob Buckman, Aurko Roy, Colin Raffel, and Ian Goodfellow. Thermometer encoding: One hot way to resist adversarial examples. In International Conference on Learning Representations, 2018.
|
| 212 |
+
|
| 213 |
+
N. Carlini and D. Wagner. Towards evaluating the robustness of neural networks. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 39–57, May 2017.
|
| 214 |
+
|
| 215 |
+
Nicholas Carlini and David Wagner. Adversarial examples are not easily detected: Bypassing ten detection methods. In Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 3–14. ACM, 2017.
|
| 216 |
+
|
| 217 |
+
Jeremy M Cohen, Elan Rosenfeld, and J Zico Kolter. Certified adversarial robustness via randomized smoothing. arXiv preprint arXiv:1902.02918, 2019.
|
| 218 |
+
|
| 219 |
+
Nilaksh Das, Madhuri Shanbhogue, Shang-Tse Chen, Fred Hohman, Li Chen, Michael E. Kounavis, and Duen Horng Chau. Keeping the bad guys out: Protecting and vaccinating deep learning with JPEG compression. CoRR, abs/1705.02900, 2017. URL http://arxiv.org/abs/1705. 02900.
|
| 220 |
+
|
| 221 |
+
Nilaksh Das, Madhuri Shanbhogue, Shang-Tse Chen, Fred Hohman, Siwei Li, Li Chen, Michael E. Kounavis, and Duen Horng Chau. Shield: Fast, practical defense and vaccination for deep learning using JPEG compression. CoRR, abs/1802.06816, 2018. URL http://arxiv.org/abs/ 1802.06816.
|
| 222 |
+
|
| 223 |
+
Gintare Karolina Dziugaite, Zoubin Ghahramani, and Daniel M Roy. A study of the effect of jpg compression on adversarial images. arXiv preprint arXiv:1608.00853, 2016.
|
| 224 |
+
|
| 225 |
+
Reuben Feinman, Ryan R Curtin, Saurabh Shintre, and Andrew B Gardner. Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017.
|
| 226 |
+
|
| 227 |
+
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
|
| 228 |
+
|
| 229 |
+
Chuan Guo, Mayank Rana, Moustapha Cisse, and Laurens van der Maaten. Countering Adversarial Images using Input Transformations. arXiv e-prints, art. arXiv:1711.00117, Oct 2017.
|
| 230 |
+
|
| 231 |
+
Warren He, James Wei, Xinyun Chen, Nicholas Carlini, and Dawn Song. Adversarial example defense: Ensembles of weak defenses are not strong. In 11th USENIX Workshop on Offensive Technologies (WOOT 17), 2017.
|
| 232 |
+
|
| 233 |
+
Mehdi Jafarnia-Jahromi, Tasmin Chowdhury, Hsin-Tai Wu, and Sayandev Mukherjee. Ppd: Permutation phase defense against adversarial examples in deep learning. arXiv preprint arXiv:1812.10049, 2018.
|
| 234 |
+
|
| 235 |
+
Alexey Kurakin, Ian J. Goodfellow, and Samy Bengio. Adversarial examples in the physical world. CoRR, abs/1607.02533, 2016.
|
| 236 |
+
|
| 237 |
+
Mathias Lecuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu, and Suman Jana. Certified Robustness to Adversarial Examples with Differential Privacy. arXiv e-prints, art. arXiv:1802.03471, Feb 2018.
|
| 238 |
+
|
| 239 |
+
Xuanqing Liu, Minhao Cheng, Huan Zhang, and Cho-Jui Hsieh. Towards robust neural networks via random self-ensemble. In Vittorio Ferrari, Martial Hebert, Cristian Sminchisescu, and Yair Weiss (eds.), Computer Vision – ECCV 2018, pp. 381–397, Cham, 2018. Springer International Publishing. ISBN 978-3-030-01234-2.
|
| 240 |
+
|
| 241 |
+
Zihao Liu, Qi Liu, Tao Liu, Nuo Xu, Xue Lin, Yanzhi Wang, and Wujie Wen. Feature distillation: Dnnoriented jpeg compression against adversarial examples. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
|
| 242 |
+
|
| 243 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
|
| 244 |
+
|
| 245 |
+
Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. arXiv preprint arXiv:1511.04508, 2015.
|
| 246 |
+
|
| 247 |
+
Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against machine learning. In Proceedings of the 2017 ACM on Asia conference on computer and communications security, pp. 506–519. ACM, 2017.
|
| 248 |
+
|
| 249 |
+
Aaditya Prakash, Nick Moran, Solomon Garber, Antonella DiLillo, and James Storer. Deflecting adversarial attacks with pixel deflection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
|
| 250 |
+
|
| 251 |
+
Jonas Rauber, Wieland Brendel, and Matthias Bethge. Foolbox: A python toolbox to benchmark the robustness of machine learning models. arXiv preprint arXiv:1707.04131, 2017.
|
| 252 |
+
|
| 253 |
+
Kevin Roth, Yannic Kilcher, and Thomas Hofmann. The odds are odd: A statistical test for detecting adversarial examples. 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. 5498–5507, Long Beach, California, USA, 09–15 Jun 2019. PMLR. URL http://proceedings.mlr.press/v97/roth19a.html.
|
| 254 |
+
|
| 255 |
+
Hadi Salman, Greg Yang, Jerry Li, Pengchuan Zhang, Huan Zhang, Ilya P. Razenshteyn, and Sebastien ´ Bubeck. Provably robust deep learning via adversarially trained smoothed classifiers. CoRR, abs/1906.04584, 2019. URL http://arxiv.org/abs/1906.04584.
|
| 256 |
+
|
| 257 |
+
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 Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, Long Beach, California, USA, 09–15 Jun 2019.
|
| 258 |
+
|
| 259 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian J. Goodfellow, and Rob Fergus. Intriguing properties of neural networks. CoRR, abs/1312.6199, 2014.
|
| 260 |
+
|
| 261 |
+
Pedro Tabacof and Eduardo Valle. Exploring the space of adversarial images. CoRR, abs/1510.05328, 2015. URL http://arxiv.org/abs/1510.05328.
|
| 262 |
+
|
| 263 |
+
Cihang Xie, Jianyu Wang, Zhishuai Zhang, Zhou Ren, and Alan Yuille. Mitigating adversarial effects through randomization. arXiv preprint arXiv:1711.01991, 2017.
|
| 264 |
+
|
| 265 |
+
Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
|
| 266 |
+
|
| 267 |
+
Zhewei Yao, Amir Gholami, Qi Lei, Kurt Keutzer, and Michael W Mahoney. Hessian-based analysis of large batch training and robustness to adversaries. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett (eds.), Advances in Neural Information Processing Systems 31, pp. 4949–4959. Curran Associates, Inc., 2018.
|
| 268 |
+
|
| 269 |
+
Yuchen Zhang and Percy Liang. Defending against whitebox adversarial attacks via randomized discretization. AISTATS, 2019.
|
| 270 |
+
|
| 271 |
+
# A PERTURBATION ANALYSIS: ADDENDUM
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
\epsilon ^ { T } \nabla _ { x } f ( x ) + \frac { 1 } { 2 } \epsilon ^ { T } \nabla _ { x } ^ { 2 } f ( x ) \boldsymbol { \epsilon } + \ldots \leq \delta _ { c } M _ { 1 } ( x ) + \frac { 1 } { 2 } \delta _ { c } ^ { 2 } M _ { 2 } ( x ) + \ldots
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
$$
|
| 278 |
+
\begin{array} { r l } { M _ { 1 } ( x ) = \| \nabla _ { x } f ( x ) \| _ { 2 } } & { { } M _ { 2 } ( x ) = \lambda _ { m a x } ( \nabla _ { x } ^ { 2 } f ( x ) ) } \end{array}
|
| 279 |
+
$$
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
\epsilon ^ { T } \nabla _ { x } f ( x ) \leq \delta _ { c } M _ { 1 } ( x )
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
From the Cauchy-Schwarz inequality: $\epsilon ^ { T } \nabla _ { x } f ( x ) \leq | | \epsilon | | _ { 2 } M _ { 1 } ( x )$
|
| 286 |
+
|
| 287 |
+
$$
|
| 288 |
+
| | \epsilon | | _ { 2 } M _ { 1 } ( x ) = \delta _ { a d v } M _ { 1 } ( x ) \leq \delta _ { c } M _ { 1 } ( x ) ( \mathrm { s i n c e } \delta _ { a d v } < < \delta _ { c } )
|
| 289 |
+
$$
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
\nabla _ { x } ^ { 2 } f ( x ) \epsilon \leq \delta _ { c } ^ { 2 } M _ { 2 } ( x )
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
From the definition of maximum eigenvalue : $: \lambda _ { m a x } \geq \frac { \epsilon ^ { T } \nabla _ { x } ^ { 2 } f ( x ) \epsilon } { \epsilon ^ { T } \epsilon }$
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\epsilon ^ { T } \nabla _ { x } ^ { 2 } f ( x ) \epsilon \leq | | \epsilon | | _ { 2 } ^ { 2 } \lambda _ { m a x } = \delta _ { a d v } ^ { 2 } \lambda _ { m a x } \leq \delta _ { c } ^ { 2 } \lambda _ { m a x }
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
# B COMPRESSION TECHNIQUES
|
| 302 |
+
|
| 303 |
+
# B.1 FFT-BASED COMPRESSION
|
| 304 |
+
|
| 305 |
+
We apply compression in the frequency domain to reduce the precision of the input images. Let $x$ be an input image, which has corresponding Fourier representation that re-indexes each tensor in the frequency domain:
|
| 306 |
+
|
| 307 |
+
$$
|
| 308 |
+
F [ \omega ] = F ( x [ \mathbf { n } ] )
|
| 309 |
+
$$
|
| 310 |
+
|
| 311 |
+
This Fourier representation can be efficiently computed with an FFT. The mapping is invertible $x = F ^ { - 1 } ( F ( x ) )$ . Let $M _ { f } [ \omega ]$ be a discrete indicator function defined as follows:
|
| 312 |
+
|
| 313 |
+
$$
|
| 314 |
+
M _ { f } [ \omega ] = \left\{ 1 , \omega \leq f \right.
|
| 315 |
+
$$
|
| 316 |
+
|
| 317 |
+
$M _ { f } [ \omega ]$ is a mask that limits the $F [ \omega ]$ to a certain band of frequencies. $f$ represents how much of the frequency domain is considered. The band-limited spectrum is defined as, $F [ \omega ] \cdot M _ { f } [ \omega ]$ , and the band-limited filter is defined as:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
x ^ { \prime } = F ^ { - 1 } ( F [ \omega ] \cdot M _ { f } [ \omega ] )
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
# B.2 SVD-BASED COMPRESSION
|
| 324 |
+
|
| 325 |
+
Analogously to the FFT-based method, we decompose an image with SVD transformation and reconstruct its compressed version with dominant singular values. The basis used in SVD are adaptive and determined by an image, as opposed to pre-selected basis used in FFT. This can result in higher quality for the same compression rate in case of SVD, however it is more computationally intensive than FFT-based compression.
|
| 326 |
+
|
| 327 |
+
# C ADDITIONAL EXPERIMENTS FOR WHITE-BOX ATTACKS
|
| 328 |
+
|
| 329 |
+
# C.1 ACCURACY OF PERTURBATION DEFENSES ON CLEAN DATA
|
| 330 |
+
|
| 331 |
+
One pitfall of the imprecise channel defense is that it introduces errors whether or not there are any adversarial examples. The errors act as an upper-bound for the best possible test accuracy we can get under adversarial perturbations. For frequency compression, color depth compression, and uniform noise injection, we compare the test accuracy for different levels of imprecision. Table 2 shows the results for all test images from CIFAR-10 on the ResNet-18 architecture, for three of the imprecise channels, and for different noise settings.
|
| 332 |
+
|
| 333 |
+
Table 2: On CIFAR-10 with ResNet-18, we measure the max test accuracy for imprecise channels without any adversarial perturbation. This signifies the amount of accuracy we sacrifice with respect to the baseline test accuracy of the model (without any perturbations of the images): $9 3 . 5 6 \%$ .
|
| 334 |
+
|
| 335 |
+
<table><tr><td>FC (%)</td><td>Acc. (%)</td><td>CD (bits)</td><td>Acc. (%)</td><td>Uniform (ε)</td><td>Acc. (%)</td></tr><tr><td>1</td><td>93.5</td><td>8</td><td>93.4</td><td>0.009</td><td>93.52</td></tr><tr><td>10</td><td>93.42</td><td>6</td><td>93.3</td><td>0.03</td><td>92.59</td></tr><tr><td>50</td><td>91.6</td><td>4</td><td>91.9</td><td>0.07</td><td>85.2</td></tr><tr><td>75</td><td>79.53</td><td>2</td><td>87.4</td><td>0.1</td><td>70.67</td></tr></table>
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
Figure 5: The test accuracy after passing clean images through six different noisy channels, where the added noise is controlled by the compression rate and epsilon parameters. We use full CIFAR-10 test set for ResNet-18, and full ImageNet validation set for ResNet-50.
|
| 339 |
+
|
| 340 |
+
The test accuracy of the models can be increased by training with compression, e.g., by using FFT based convolutions with $50 \%$ compression in the frequency domain increases the accuracy to $9 2 . 3 2 \%$ .
|
| 341 |
+
|
| 342 |
+
We present the results for six different noisy channels; three of them are compression based: FC, CD, SVD, and other three add different type of noise: Gauss, Uniform, and Laplace. For each of the compression based channels, we increase the compression rate systematically from 0 to about $90 \%$ (in case of the CD channel, the compression rate is computed based on how many bits are used per value). For the noise based channels, we increase the strength of the noise by controlling the epsilon parameter $\epsilon$ (in case of the Gaussian noise, it corresponds to the sigma parameter $\sigma$ ). The full result is presented in Figure 5.
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 6: The test accuracy after four different attacks and the recovery via the uniform noise stochastic channel with different parameters . For the Carlini-Wagner L2 attack, the best performing parameter $\epsilon = 0 . 0 3$ . We run the experiment for ResNet-50 on ImageNet (1000 samples).
|
| 346 |
+
|
| 347 |
+

|
| 348 |
+
Figure 7: We plot the channel distortion against accuracy $( \% )$ , analogously to Figure 1. The experiment is run for the PGD attack with 40 iterations and C&W $L _ { 2 }$ attack with 100 iterations on all images from the test CIFAR-10 and the dev ImageNet datasets. The adversary is not aware of the defense. The test accuracy on the full clean data is $9 3 . 5 6 \%$ and $7 6 . 1 3 \%$ for CIFAR-10 and ImageNet, respectively. Interestingly enough, we observe that the C&W attack is on the sub-pixel level for ImageNet and rounding to the nearest 8 bit integers in the CD channel has high recovery rate, while for 7 bit integer the accuracy drops slightly due to imprecision.
|
| 349 |
+
|
| 350 |
+
Figure 6 presents the test accuracy $( \% )$ after four different attacks (3 different norms) and the recovery via the uniform noise stochastic channel in more detail.
|
| 351 |
+
|
| 352 |
+
# C.2 CHANNEL DISTORTION VS ACCURACY
|
| 353 |
+
|
| 354 |
+
We show channel distortion vs accuracy for the C&W $L _ { 2 }$ attack on the full CIFAR-10 test set and full ImageNet dev set in Figure 7.
|
| 355 |
+
|
| 356 |
+
We further show the performance of the defenses across different attacks and 1000 images in Table 3.
|
| 357 |
+
|
| 358 |
+
Table 3: Given an adversarial input, we pass the input through a channel before prediction. We evaluate the accuracy $( \% )$ of the classifier over 1000 images, the best possible accuracy is listed in the Baseline column. For the channels, we report in parentheses: compression used $( \% )$ , number of bits per value, and the strength of the attack (). We use the attacks described in Section: 4.1
|
| 359 |
+
|
| 360 |
+
<table><tr><td>Attack</td><td>Data set</td><td>Baseline</td><td>FC (%)</td><td>CD (bits)</td><td>Uniform (ε)</td><td>Gauss (e)</td><td>Iden</td></tr><tr><td>BIM L1</td><td>CIFAR10</td><td>93.5</td><td>86.2 (20)</td><td>85.1(4)</td><td>82.8 (0.03)</td><td>82.1 (0.03)</td><td>0</td></tr><tr><td>LBFGS</td><td>CIFAR10</td><td>93.5</td><td>82.8 (50)</td><td>80.2 (4)</td><td>79.2 (0.04)</td><td>79.3 (0.05)</td><td>0</td></tr><tr><td>C&WL2</td><td>CIFAR10</td><td>93.5</td><td>85.2 (20)</td><td>84.4 (4)</td><td>84.3 (0.01)</td><td>84.8 (0.02)</td><td>0</td></tr><tr><td>FGSM</td><td>CIFAR10</td><td>93.5</td><td>79.0 (50)</td><td>49.2 (4)</td><td>49.4 (0.03)</td><td>49.9 (0.03)</td><td>0</td></tr><tr><td>PGDL</td><td>CIFAR10</td><td>93.5</td><td>88.6 (10)</td><td>84.3 (5)</td><td>85.7 (0.01)</td><td>84.9 (0.02)</td><td>0</td></tr><tr><td>BIM L1</td><td>ImageNet</td><td>83.5</td><td>81.5 (10)</td><td>82.0 (4)</td><td>81.2 (0.009)</td><td>81.2 (0.009)</td><td>0</td></tr><tr><td>LBFGS</td><td>ImageNet</td><td>83.5</td><td>71.7 (70)</td><td>77.6 (4)</td><td>76.4 (0.07)</td><td>76.5 (0.07)</td><td>0</td></tr><tr><td>C&WL2</td><td>ImageNet</td><td>83.5</td><td>78.7 (50)</td><td>80.9 (4)</td><td>81.4 (0.03)</td><td>80.4 (0.03)</td><td>0</td></tr><tr><td>FGSM</td><td>ImageNet</td><td>83.5</td><td>73.8 (50)</td><td>76.0 (4)</td><td>75.4 (0.03)</td><td>75.4 (0.02)</td><td>0</td></tr><tr><td>PGD Lo</td><td>ImageNet</td><td>83.5</td><td>82.1 (5)</td><td>82.9 (4)</td><td>82.0 (0.007)</td><td>80.9 (0.01)</td><td>0</td></tr></table>
|
| 361 |
+
|
| 362 |
+
# C.3 CHANNEL ACCURACY ON CLEAN AND ADVERSARIAL EXAMPLES
|
| 363 |
+
|
| 364 |
+
We compare the accuracy of the perturbation channels on clean and adversarial examples in Figure 8. We plot the results for the whole test set from CIFAR-10 and the whole validation set from ImageNet. We use two deterministic channels (FFT compression denoted by FC and SVD compression) and two noisy channels (Gaussian and Uniform noise). We use C&W and PGD attacks. The FC Clean label denotes that we pass clean images through the channel that applies FFT compression. The SVD C&W label denotes that we pass adversarial images found with the C&W attack through the channel that applies SVD compression. We tune the channels for a given dataset across the attacks, and present the results in Table 4. The accuracy of the channels on clean data gives us the upper bound for the accuracy on the adversarial examples. Thus, we choose the channel parameter based on the highest accuracy on the adversarial images.
|
| 365 |
+
|
| 366 |
+
Table 4: Channel tuning. The best parameters for the perturbation channels when tuned on the PGD and C&W attacks.
|
| 367 |
+
|
| 368 |
+
<table><tr><td></td><td>Dataset</td><td>CIFAR-10</td><td>ImageNet</td></tr><tr><td>Channel</td><td></td><td></td><td></td></tr><tr><td>FC (%)</td><td></td><td>20</td><td>60</td></tr><tr><td>SVD (%)</td><td></td><td>40</td><td>70</td></tr><tr><td>Gauss (∈)</td><td></td><td>0.015 0.025</td><td>0.04 0.04</td></tr><tr><td>Uniform (ε)</td><td></td><td></td><td></td></tr></table>
|
| 369 |
+
|
| 370 |
+
# C.4 NEIGHBORHOOD OF ADVERSARIAL EXAMPLES
|
| 371 |
+
|
| 372 |
+
Please, see Figure 9 and description in Section 4.1.
|
| 373 |
+
|
| 374 |
+
C.5 DISTRIBUTIONS OF DELTAS BETWEEN INPUTS & OUTPUTS FOR CHANNELS
|
| 375 |
+
|
| 376 |
+
We plot the distribution of deltas for six imprecise channels in Figure 10. We compute the deltas by subtracting an original image from the perturbed adversarial image and plot the histograms of differences. We use an image from the ImageNet dataset. For all the examples, the correct labels were recovered. We use the C&W attack with 1000 iterations and the initial value $c = 0 . 0 1$ .
|
| 377 |
+
|
| 378 |
+
The CD channel resembles the Uniform distribution. The FFT and SVD compression methods belong to double-sided exponential distributions, thus they are more related to the Laplace distribution than to the Gaussian distribution.
|
| 379 |
+
|
| 380 |
+

|
| 381 |
+
Figure 8: Comparison of accuracy of the perturbation channels on clean and adversarial images. We pass either clean or adversarial images through the channels and measure their accuracy. The accuracy on clean inputs gives us an upper bound for the accuracy on the adversarial examples. The channels can be tuned based on their accuracy after different attacks.
|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
CarliniWagnerL2Attack (adv. dist.: 0.006)
|
| 385 |
+
|
| 386 |
+

|
| 387 |
+
CarliniWagnerL2Attack (adv. dist.: 0.033)
|
| 388 |
+
|
| 389 |
+

|
| 390 |
+
CarliniWagnerL2Attack (adv. dist.: 0.297)
|
| 391 |
+
Figure 9: Frequency of model predictions for original, adversarial, and other classes as we increase the distance from an adversarial example using Gaussian noise.
|
| 392 |
+
|
| 393 |
+

|
| 394 |
+
CarliniWagnerL2Attack (adv. dist.: 0.016)
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
CarliniWagnerL2Attack (adv. dist.: 0.104)
|
| 398 |
+
|
| 399 |
+

|
| 400 |
+
CarliniWagnerL2Attack (adv. dist.: 1.590)
|
| 401 |
+
|
| 402 |
+

|
| 403 |
+
Figure 10: Distribution of deltas for imprecise channels.
|
| 404 |
+
|
| 405 |
+
# C.6 VISUALIZATIONS OF ATTACKS AND IMPRECISE CHANNELS
|
| 406 |
+
|
| 407 |
+
Figure 11 presents a sample image from ImageNet for the Carlini-Wagner L2 attack.
|
| 408 |
+
|
| 409 |
+
Figure 12 shows the effect of the FC (frequency-based imprecise channel) in both spatial and Fourier domains.
|
| 410 |
+
|
| 411 |
+
# C.7 MULTIPLE TRIALS FOR STOCHASTIC CHANNELS
|
| 412 |
+
|
| 413 |
+
In addition to the robustness to non-adaptive attacks, another compelling reason to use a stochastic channel (like Uniform noise) as a defense is that it can be run repeatedly in a number of random trials. We show that doing so improves the efficacy of the defense. We randomly choose 1000 images from the CIFAR-10 test set. For each of these images, we generate an adversarial attack. We then pass each image through the same stochastic channel multiple times. We take the most frequent prediction. Figure 13 illustrates the results.
|
| 414 |
+
|
| 415 |
+
Only 16 trials are needed to get a relatively strong defense. We argue that this result is significant. Randomized defenses are difficult to attack. The attacker cannot anticipate which particular perturbation to the model will happen. The downside is a potential of erratic predictions. We show that a relatively small number of trials can greatly reduce this noise. Furthermore, the expense of running multiple trials of a randomized defense is small relative to the expense of synthesizing an attack in the first place.
|
| 416 |
+
|
| 417 |
+
# C.8 WHITE-BOX ADAPTIVE ATTACK
|
| 418 |
+
|
| 419 |
+
We consider the problem setting when the adversary knows the defense method (i.e., has full knowledge of $C ( x )$ ). We use the strategy described in He et al. (2017) to construct attacks for each case. Not surprisingly, deterministic channels (CD, FC, and SVD) are easy for an adversary to fool when they are known. However, such attacks incur higher distortion (distance to the original image)
|
| 420 |
+
|
| 421 |
+
when compared to attacks against unprotected networks. Intuitively, when the channel is deterministic and known, the adversary can account for the error introduced by the channel. Table 5 illustrates the results.
|
| 422 |
+
|
| 423 |
+
Table 5: The distortion and accuracy for the adaptive setting where the adversary knows the defense method. We report top-1 class, use 100 image samples, run 1000 iterations of $\mathrm { C } \& \mathbf { W }$ attack, $\epsilon = 0 . 0 4$ , apply a single random noise injection.
|
| 424 |
+
|
| 425 |
+
<table><tr><td>CIFAR-10</td><td>L2 Distortion</td><td>Acc. (%)</td></tr><tr><td>Iden</td><td>0.17</td><td>0</td></tr><tr><td>CD (b=5)</td><td>0.5</td><td>0</td></tr><tr><td>FC (c=30)</td><td>0.74</td><td>0</td></tr></table>
|
| 426 |
+
|
| 427 |
+
<table><tr><td>ImageNet</td><td>L2 Distortion</td><td>Acc. (%)</td></tr><tr><td>Iden</td><td>0.28</td><td>0</td></tr><tr><td>CD (b=5)</td><td>3.6</td><td>0</td></tr><tr><td>FC (c=30)</td><td>3.64</td><td>0</td></tr></table>
|
| 428 |
+
|
| 429 |
+
The stochastic channel is harder to attack with a gradient-based adaptive methods. Unlike for deterministic compression, the adversary cannot anticipate the particular error pattern. We build an adaptive attack against the additive uniform noise channel. Our strategy is to send an output from the adversarial algorithm through the stochastic channel and the network at least as many times as set in the defense. We mark the attack as successful if the most frequent output label is different from the ground truth. The more passes through the noisy channel we optimize for, the stronger the attack. Furthermore, we run many iterations of the attack to decrease the $L _ { 2 }$ distortion. An attack that always evades the noise injection defense is more difficult to generate because of randomization. The other randomized approach was introduced in dropout (Feinman et al., 2017). The attacks against randomized defenses require optimization of complex loss functions, incur higher distortion, and the attacks are not fully successful (Carlini & Wagner, 2017).
|
| 430 |
+
|
| 431 |
+
In the Figure 14, we present the result of running attacks and defenses on CIFAR-10 data with single and many iterations. The defense with many trials can be drawn to $0 \%$ accuracy, however, the defense not fully optimized by the adversary (single noise injection) can result in about $40 \%$ or higher accuracy.
|
| 432 |
+
|
| 433 |
+
# C.9 HYBRID APPROACHES
|
| 434 |
+
|
| 435 |
+
A natural thought is whether these defenses can be made more effective by combining them. This is an approach that has been applied, for example, in random discretization (Zhang & Liang, 2019). Our experiments contrast with the previous work and suggest that there is little benefit to hybrid approaches. We present an illustrative example for pair-wise combinations of Frequency Compression (FC), Color Depth (CD) compression, and Uniform (Unif) noise. Other combinations are possible but for brevity, we exclude them from the manuscript; we found no to very small benefit to combining for properly tuned channels. We show the recovery rate, i.e. a fraction of original labels recovered. Table C.9 presents results for the L2 Carlini-Wagner attack on the MNIST, the whole test set of CIFAR-10, and the whole development set of ImageNet.
|
| 436 |
+
|
| 437 |
+
<table><tr><td></td><td>CD (bits)</td><td>FC (%)</td><td>Unif ()</td><td>CD+FC</td><td>FC+CD</td><td>CD+Unif</td><td>FC+Unif</td></tr><tr><td>MNIST</td><td>100</td><td>95</td><td>100</td><td>100</td><td>100</td><td>100</td><td>100</td></tr><tr><td>CIFAR-10</td><td>84.4(4)</td><td>85.2(20)</td><td>83.4(0.03)</td><td>86.0</td><td>83.6</td><td>85.18</td><td>86.45</td></tr><tr><td>ImageNet</td><td>80.9(4)</td><td>78.7(50)</td><td>80.3(0.03)</td><td>78.6</td><td>77.5</td><td>73.15</td><td>76.13</td></tr></table>
|
| 438 |
+
|
| 439 |
+
We believe these results suggest that the noisy channels do not exploit anything inherent to the images. Simply the addition of noise (through reconstruction error) is the mechanism for robustness. Composing two different schemes usually increases this noise.
|
| 440 |
+
|
| 441 |
+
# C.10 TRANSFERABILITY OF THE ADVERSARIAL IMAGES
|
| 442 |
+
|
| 443 |
+
We present more results on the transferability of adversarial examples between different channels in Table 1 and Table 7).
|
| 444 |
+
|
| 445 |
+
Table 6: Transferability of the adversarial images that extend results from Table 1 for ImageNet dataset. We use $30 \%$ FC compression, $50 \%$ SVD compression, 4 bit values in CD, 0.03 noise level for Laplace, and 0.04 noise level for the Gauss and Uniform channels. We use 3000 images from the ImageNet-10 validation set and 100 attack iterations.
|
| 446 |
+
|
| 447 |
+
<table><tr><td>D A</td><td>FC</td><td>CD</td><td>SVD</td><td>Gauss</td><td>Uniform</td><td>Laplace</td></tr><tr><td>FC</td><td>0.10</td><td>75.50</td><td>75.83</td><td>77.04</td><td>77.49</td><td>76.29</td></tr><tr><td>CD</td><td>0.17</td><td>1.16</td><td>6.77</td><td>62.60</td><td>62.04</td><td>65.46</td></tr><tr><td>SVD</td><td>12.02</td><td>72.33</td><td>0.46</td><td>72.79</td><td>72.52</td><td>73.09</td></tr><tr><td>Gauss</td><td>0.57</td><td>26.67</td><td>6.67</td><td>58.68</td><td>58.62</td><td>64.95</td></tr><tr><td>Uniform</td><td>0.50</td><td>26.71</td><td>6.99</td><td>58.48</td><td>59.06</td><td>64.59</td></tr><tr><td>Laplace</td><td>0.33</td><td>18.59</td><td>4.16</td><td>29.76</td><td>29.84</td><td>50.00</td></tr></table>
|
| 448 |
+
|
| 449 |
+
Table 7: Transferability of the adversarial images. The results are presented similarly to Figure 1 but for different parameters. We use $50 \%$ FC compression, $50 \%$ SVD compression, 4 bit values in CD, 0.03 noise level for Laplace, and 0.04 noise level for the Gauss and Uniform channels. We use 3000 images from the CIFAR-10 validation set and 1000 attack iterations.
|
| 450 |
+
|
| 451 |
+
<table><tr><td>D A</td><td>FC</td><td>CD</td><td>SVD</td><td>Gauss</td><td>Uniform</td><td>Laplace</td></tr><tr><td>FC</td><td>0.19</td><td>79.00</td><td>83.73</td><td>79.19</td><td>79.38</td><td>76.70</td></tr><tr><td>CD</td><td>6.74</td><td>0.93</td><td>47.57</td><td>62.98</td><td>63.04</td><td>65.22</td></tr><tr><td>SVD</td><td>78.89</td><td>47.04</td><td>0.50</td><td>59.85</td><td>63.42</td><td>67.94</td></tr><tr><td>Gauss</td><td>4.77</td><td>38.52</td><td>36.95</td><td>51.36</td><td>51.27</td><td>52.61</td></tr><tr><td>Uniform</td><td>4.65</td><td>38.14</td><td>36.35</td><td>50.14</td><td>51.08</td><td>53.21</td></tr><tr><td>Laplace</td><td>46.75</td><td>22.22</td><td>22.68</td><td>34.03</td><td>33.93</td><td>46.39</td></tr></table>
|
| 452 |
+
|
| 453 |
+
# C.11 GRADIENT-BASED ANALYSIS
|
| 454 |
+
|
| 455 |
+
We run the experiment on the ImageNet dataset. We analyze only the clean images that were classified correctly.
|
| 456 |
+
|
| 457 |
+
We present how the gradient of the loss w.r.t. the input image changes for the correct class as we add the Gaussian noise to the original image in Figure 15. The norm of the gradient smoothly increases.
|
| 458 |
+
|
| 459 |
+
In Figure 16, we start from an adversarial image found with the default C&W attack from the foolbox library. Then, we systematically add Gaussian noise to the adversarial image and collect data on the norm of gradients for the original and adversarial classes. The norm of the gradients for the adversarial class increases while the norm of the gradients for the original class decreases. We cross the decision boundary to the correct class very early and recover the correct labels for images. Then, as we add more and more Gaussian noise, the predictions of the classifier become random and the norm of the gradients converge to a single value.
|
| 460 |
+
|
| 461 |
+
In Figure 17, we plot the gradients also for a random class. We observe that for an untargeted attack, the gradients for the original and adversarial classes are larger than for the other classes. The targeted attack decreases the loss for the target class and the gradients for the adversarial classes are lower when compared with gradients from the untargeted attacks, so fewer images can be recovered in the former case. The targeted attack causes a smaller increase of the norms of gradients for the original class than the untargted attack. However, it is still higher than for a random class.
|
| 462 |
+
|
| 463 |
+
# C.12 HESSIAN-BASED ANALYSIS
|
| 464 |
+
|
| 465 |
+
We present the Hessian spectrum in Figure 18 for top 20 eigenvalues and in Figure 19 the distribution of top eigenvalues of Hessians on ImageNet. For the adversarial images, the eigenvalues are clearly higher in both cases, which indicates higher instability and proclivity to prediction changes.
|
| 466 |
+
|
| 467 |
+
# C.13 DETAILS ON THE EXPERIMENTAL SETUP
|
| 468 |
+
|
| 469 |
+
We use the foolbox library (Rauber et al., 2017) in our experiments. We borrowed the nomenclature used for the attacks from the library. For example, the name for the attack initially proposed in Szegedy et al. (2014) and extended in Tabacof & Valle (2015) is LBFGS. In most of our experiments, we also use the default foolbox parameters for the attacks. For example, for PGD the initial limit on the perturbation size epsilon is set to 0.3, step size to 0.01, default number of iterations is 40. For Carlini & Wagner, we set maximum number of iterations to 1000, learning rate to 0.005, initial value of the constant $c$ to 0.01. Note that for the Carlini & Wagner attack presented in 2, we use the $c$ parameter as described in (Carlini & Wagner, 2017) and the code from Liu et al. (2018). For the LBFGS attack, we use the epsilon parameter set to 0.00001 and up to 150 iterations. For the FGSM attack, different epsilons starting from 50 and up to 1000 are tried until the adversarial image is found. For the BIM $L _ { 1 }$ attack, we set epsilon to 0.3, step size to 0.05, and number of iterations to 10.
|
| 470 |
+
|
| 471 |
+
# D ADDITIONAL EXPERIMENTS FOR BLACK-BOX ATTACKS
|
| 472 |
+
|
| 473 |
+
As a black box attack, we define an attack that does not need the knowledge about the gradient or the model.
|
| 474 |
+
|
| 475 |
+
# D.1 DECISION-BASED ATTACKS
|
| 476 |
+
|
| 477 |
+
The attacks require neither gradients nor probabilities. They operate directly on the images.
|
| 478 |
+
|
| 479 |
+
D.1.1 ROBUSTNESS TO UNIFORM AND GAUSSIAN NOISE
|
| 480 |
+
|
| 481 |
+
We evaluate the robustness of band-limited CNNs. Specifically, models trained with more compression discard part of the noise by removing the high frequency Fourier coefficients (FC channel). In Figure 20, we show the test accuracy for input images perturbed with different levels of uniform and Gaussian noise, which is controlled systematically by the sigma parameter, fed into models trained with different compression levels (i.e., $0 \%$ , $50 \%$ , or $8 5 \%$ ) and methods (i.e., band-limited vs. RPA-based3). Our results demonstrate that models trained with higher compression are more robust to the inserted noise. Interestingly, band-limited CNNs also outperform the RPA-based method and under-fitted models (e.g., via early stopping), which do not exhibit the robustness to noise.
|
| 482 |
+
|
| 483 |
+
Input test images are perturbed with uniform or Gaussian noise, where the sigma parameter is changed from 0 to 1 or 0 to 2, respectively. The more band-limited model, the more robust it is to the introduced noise.
|
| 484 |
+
|
| 485 |
+
# D.1.2 CONTRAST REDUCTION ATTACK
|
| 486 |
+
|
| 487 |
+
This black-box attack gradually distorts all the pixels:
|
| 488 |
+
|
| 489 |
+
$$
|
| 490 |
+
\begin{array} { c } { { \mathrm { t a r g e t } = \displaystyle \frac { { \operatorname* { m a x } } + { \operatorname* { m i n } } } { 2 } } } \\ { { \mathrm { p e r t u r b e d } = ( 1 - \epsilon ) * \displaystyle \operatorname* { i m a g e } + \epsilon * \mathrm { t a r g e t } } } \end{array}
|
| 491 |
+
$$
|
| 492 |
+
|
| 493 |
+
where min and max values are computed across all pixels of images in the dataset.
|
| 494 |
+
|
| 495 |
+
We can defend the attack with CD (Color Depth reduction) until certain value of epsilon, but then every pixel is perturbed in a smooth way so there are no high-frequency coefficients increased in the FFT domain of the image. The contrast reduction attack becomes a low-frequency based attack when considered in the frequency domain. Another way to defend the attack is to run a high-pass filter in the frequency domain instead of the low-pass filter.
|
| 496 |
+
|
| 497 |
+
We run the experiments for different models with CD and two band-limited models (the model with full spectra and no compression as well as model with $85 \%$ of compression - with FC layers). The CD does defend the attack to some extent and the fewer pixels per channel (the stronger the CD in a model), the more robust the model is against the contrast reduction attack.
|
| 498 |
+
|
| 499 |
+
Test accuracy as a function of the contrast reduction attack for ResNet-18 on CIFAR-10 (after 350 epochs) is plotted in Figure 20. We control the strength of the attack with parameter epsilon that is changed systematically from 0.0 to 1.0. We use the whole test set for CIFAR-10. R denotes the number of values used per channel (e.g., $\scriptstyle \mathrm { R } = 3 2$ means that we use 32 values instead of standard 256).
|
| 500 |
+
|
| 501 |
+
# D.1.3 MULTIPLE PIXELS ATTACK
|
| 502 |
+
|
| 503 |
+
The foolbox library supports a single pixel attack, where a given pixel is set to white or black4. A certain number of pixels (e.g., 1000) is chosen and each of them is checked separately if it can lead to the misclassification of the image. The natural extension is to increase the number of pixels to be perturbed, in case where the single pixel attack does not succeed. We present results for the multiple pixel attack in Figure 20.
|
| 504 |
+
|
| 505 |
+
# D.2 SPATIAL-BASED ATTACKS
|
| 506 |
+
|
| 507 |
+
Spatial attacks apply adversarial rotations and translations that can be easily added to the data augmentation during training. However, these attacks are defended neither by removing the high frequency coefficients nor by quantization (CD) . We separately apply rotation by changing its angle from 0 to 20 degrees and do the translations within a horizontal and vertical limit of shifted pixels (Figure 20).
|
| 508 |
+
|
| 509 |
+
# D.3 SCORE-BASED ATTACKS
|
| 510 |
+
|
| 511 |
+
The score based attack require access to the model predictions and its probabilities (the inputs to the softmax) or the logits to estimate the gradients.
|
| 512 |
+
|
| 513 |
+
# D.3.1 LOCAL SEARCH ATTACK
|
| 514 |
+
|
| 515 |
+
The local search attack estimates the sensitivity of individual pixels by applying extreme perturbations and observing the effect on the probability of the correct class. Next, it perturbs the pixels to which the model is most sensitive. The procedure is repeated until the image is misclassified, searching for additional critical pixels in the neighborhood of previously found ones. We run the experiments for the attack on 100 test images from CIFAR-10, since the attack is relatively slow (Figure 20).
|
| 516 |
+
|
| 517 |
+
Original label: Loafer confidence: 0.9561 L2 distance: 0.0
|
| 518 |
+
|
| 519 |
+
Adv. label: pencil box, pencil case confidence: 0.5466 L2 distance: 0.4032
|
| 520 |
+
|
| 521 |
+

|
| 522 |
+
|
| 523 |
+

|
| 524 |
+
|
| 525 |
+
CD (32) label: Loafer confidence: 0.7438 L2 distance: 7.2698
|
| 526 |
+
|
| 527 |
+
FC (30) label: Loafer confidence: 0.8995 L2 distance: 12.6384
|
| 528 |
+
|
| 529 |
+

|
| 530 |
+
|
| 531 |
+

|
| 532 |
+
|
| 533 |
+
Gauss (0.03) label: Loafer confidence: 0.9642 L2 distance: 16.0992
|
| 534 |
+
|
| 535 |
+
Uniform (0.03) label: Loafer confidence: 0.966 L2 distance: 16.088
|
| 536 |
+
|
| 537 |
+

|
| 538 |
+
|
| 539 |
+

|
| 540 |
+
Figure 11: We plot a sample image from the ImageNet dataset in its original state, after adversarial (white-box, non-adaptive) attack, and then after recovery via imprecise channels: CD (color depth reduction with 32 bits), FC $30 \%$ compression in the frequency domain), Gaussian, and uniform noise $\epsilon = 0 . 0 3$ ). The order is from left to right, and from top to bottom.
|
| 541 |
+
|
| 542 |
+

|
| 543 |
+
|
| 544 |
+

|
| 545 |
+
Figure 12: The original image from the ImageNet dataset, its adversarial example, and the state of the image after recovery from the attack via the $30 \%$ compressed Fourier Channel (FC). The heat maps of magnitudes of Fourier coefficients are presented in a logarithmic scale (dB) with linear interpolation and the max value is colored with white while the min value is colored with black. The black part of the (bottom-right) image represents the removed high-frequency coefficients. The Fourier-ed representation is plotted for a single (0-th) channel. The lowest frequency coefficients are placed in the corners of the FFT maps (with the DC component in the top-left corner).
|
| 546 |
+
Figure 13: For the CIFAR-10 dataset, we run multiple trials of the uniform noise channel and take the most frequent prediction. We further test multiple noise levels. The multiple trials improve overall accuracy for different noise levels significantly. After 128 trials for the best setting we are within of the overall model accuracy (of about $9 3 . 5 \%$ ).
|
| 547 |
+
Figure 14: For the CIFAR-10 dataset, we run multiple trials of the uniform noise channel and take the most frequent prediction in the defense (many noise iterations). We also run just a single noise injection and return the predicated label. The attacker runs the same number of many uniform trials as the defender. The experiment is run on 100 images, with 100 C&W $L _ { 2 }$ attack iterations.
|
| 548 |
+
|
| 549 |
+

|
| 550 |
+
Figure 15: The changes in the $L _ { 2 }$ norm of the gradient of the loss w.r.t. the input image $x$ for the correct class $c _ { o r g }$ as we add Gaussian noise to the original image. The experiment is run on 1000 images from the ImageNet dataset.
|
| 551 |
+
|
| 552 |
+

|
| 553 |
+
Figure 16: The changes in the $L _ { 2 }$ norm of the gradient for the correct class $c _ { o r g }$ and the adversarial class $c _ { a d v }$ as we add Gaussian noise to the adversarial image generated with C&W $L _ { 2 }$ attack (we label such an image as a gauss image $x$ ). The experiment is run on 1000 images from the CIFAR-10 dataset.
|
| 554 |
+
|
| 555 |
+

|
| 556 |
+
Figure 17: The changes in the $L _ { 2 }$ norm of the gradient of the loss for the correct class $c _ { o r g }$ , the adversarial class $c _ { a d v }$ , and a random class $c _ { r a n }$ as we add Gaussian noise to the adversarial image generated with C&W $L _ { 2 }$ attack (we label such an image as a gauss image $x$ ). The experiment is run on 1000 images from the CIFAR-10 dataset.
|
| 557 |
+
|
| 558 |
+

|
| 559 |
+
Figure 18: The spectrum of the Hessian with respect to the original and adversarial inputs. We use the symmetric log scale on the y axis and plot the min and max ranges of the eigenvalues for 100 images from the ImageNet dataset trained the ResNet-50 architecture.
|
| 560 |
+
|
| 561 |
+

|
| 562 |
+
Figure 19: The top eigenvalues of the Hessians on ImageNet using ResNet-50.
|
| 563 |
+
|
| 564 |
+

|
| 565 |
+
Figure 20: Test accuracy as a function of the strenghts of the attacks for ResNet-18 on CIFAR-10.
|
parse/train/rkePU0VYDr/rkePU0VYDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkePU0VYDr/rkePU0VYDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/rkePU0VYDr/rkePU0VYDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|